@cgi-learning-hub/ui 1.15.0-dev.1788883967 → 1.15.0-dev.1789035749
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/dist/tiptap/styles.css +88 -0
- package/dist/ui.css +2 -88
- package/package.json +1 -1
package/dist/tiptap/styles.css
CHANGED
|
@@ -619,3 +619,91 @@
|
|
|
619
619
|
transition: margin-left 0.2s ease-in-out;
|
|
620
620
|
margin-left: calc(var(--tt-indent-unit) * var(--tt-indent-level, 0));
|
|
621
621
|
}
|
|
622
|
+
|
|
623
|
+
:root {
|
|
624
|
+
--tt-toolbar-height: 2.75rem;
|
|
625
|
+
--tt-safe-area-bottom: env(safe-area-inset-bottom, 0px);
|
|
626
|
+
--tt-toolbar-bg-color: var(--theme-palette-common-white);
|
|
627
|
+
--tt-toolbar-border-color: var(--theme-palette-divider);
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
.dark {
|
|
631
|
+
--tt-toolbar-bg-color: var(--theme-palette-common-black);
|
|
632
|
+
--tt-toolbar-border-color: var(--theme-palette-divider);
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
.tiptap-toolbar {
|
|
636
|
+
display: flex;
|
|
637
|
+
align-items: center;
|
|
638
|
+
gap: 0.25rem;
|
|
639
|
+
}
|
|
640
|
+
.tiptap-toolbar-group {
|
|
641
|
+
display: flex;
|
|
642
|
+
align-items: center;
|
|
643
|
+
gap: 0.125rem;
|
|
644
|
+
}
|
|
645
|
+
.tiptap-toolbar-group:empty {
|
|
646
|
+
display: none;
|
|
647
|
+
}
|
|
648
|
+
.tiptap-toolbar-group:empty + .tiptap-separator, .tiptap-separator + .tiptap-toolbar-group:empty {
|
|
649
|
+
display: none;
|
|
650
|
+
}
|
|
651
|
+
.tiptap-toolbar[data-variant=fixed] {
|
|
652
|
+
position: sticky;
|
|
653
|
+
top: 0;
|
|
654
|
+
z-index: 50;
|
|
655
|
+
width: 100%;
|
|
656
|
+
min-height: var(--tt-toolbar-height);
|
|
657
|
+
background: var(--tt-toolbar-bg-color);
|
|
658
|
+
border-bottom: 1px solid var(--tt-toolbar-border-color);
|
|
659
|
+
padding: 0 0.5rem;
|
|
660
|
+
overflow-x: auto;
|
|
661
|
+
overscroll-behavior-x: contain;
|
|
662
|
+
-webkit-overflow-scrolling: touch;
|
|
663
|
+
scrollbar-width: none;
|
|
664
|
+
-ms-overflow-style: none;
|
|
665
|
+
}
|
|
666
|
+
.tiptap-toolbar[data-variant=fixed]::-webkit-scrollbar {
|
|
667
|
+
display: none;
|
|
668
|
+
}
|
|
669
|
+
@media (max-width: 480px) {
|
|
670
|
+
.tiptap-toolbar[data-variant=fixed] {
|
|
671
|
+
position: absolute;
|
|
672
|
+
top: auto;
|
|
673
|
+
height: calc(var(--tt-toolbar-height) + var(--tt-safe-area-bottom));
|
|
674
|
+
border-top: 1px solid var(--tt-toolbar-border-color);
|
|
675
|
+
border-bottom: none;
|
|
676
|
+
padding: 0 0.5rem var(--tt-safe-area-bottom);
|
|
677
|
+
flex-wrap: nowrap;
|
|
678
|
+
justify-content: flex-start;
|
|
679
|
+
}
|
|
680
|
+
.tiptap-toolbar[data-variant=fixed] .tiptap-toolbar-group {
|
|
681
|
+
flex: 0 0 auto;
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
.tiptap-toolbar[data-variant=floating] {
|
|
685
|
+
--tt-toolbar-padding: 0.125rem;
|
|
686
|
+
--tt-toolbar-border-width: 1px;
|
|
687
|
+
padding: 0.188rem;
|
|
688
|
+
border-radius: calc(var(--tt-toolbar-padding) + var(--tt-radius-lg) + var(--tt-toolbar-border-width));
|
|
689
|
+
border: var(--tt-toolbar-border-width) solid var(--tt-toolbar-border-color);
|
|
690
|
+
background-color: var(--tt-toolbar-bg-color);
|
|
691
|
+
box-shadow: var(--tt-shadow-elevated-md);
|
|
692
|
+
outline: none;
|
|
693
|
+
overflow: hidden;
|
|
694
|
+
}
|
|
695
|
+
.tiptap-toolbar[data-variant=floating][data-plain=true] {
|
|
696
|
+
padding: 0;
|
|
697
|
+
border-radius: 0;
|
|
698
|
+
border: none;
|
|
699
|
+
box-shadow: none;
|
|
700
|
+
background-color: transparent;
|
|
701
|
+
}
|
|
702
|
+
@media screen and (max-width: 480px) {
|
|
703
|
+
.tiptap-toolbar[data-variant=floating] {
|
|
704
|
+
width: 100%;
|
|
705
|
+
border-radius: 0;
|
|
706
|
+
border: none;
|
|
707
|
+
box-shadow: none;
|
|
708
|
+
}
|
|
709
|
+
}
|
package/dist/ui.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
.Toastify {
|
|
2
2
|
--toastify-color-light: var(--theme-palette-common-white);
|
|
3
3
|
--toastify-color-dark: var(--theme-palette-common-black);
|
|
4
4
|
--toastify-color-info: var(--theme-palette-info-main);
|
|
@@ -11,90 +11,4 @@
|
|
|
11
11
|
--toastify-text-color-light: var(--theme-palette-text-primary);
|
|
12
12
|
--toastify-text-color-dark: var(--theme-palette-common-white);
|
|
13
13
|
}
|
|
14
|
-
|
|
15
|
-
--tt-toolbar-height: 2.75rem;
|
|
16
|
-
--tt-safe-area-bottom: env(safe-area-inset-bottom, 0px);
|
|
17
|
-
--tt-toolbar-bg-color: var(--theme-palette-common-white);
|
|
18
|
-
--tt-toolbar-border-color: var(--theme-palette-divider);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.dark {
|
|
22
|
-
--tt-toolbar-bg-color: var(--theme-palette-common-black);
|
|
23
|
-
--tt-toolbar-border-color: var(--theme-palette-divider);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.tiptap-toolbar {
|
|
27
|
-
display: flex;
|
|
28
|
-
align-items: center;
|
|
29
|
-
gap: 0.25rem;
|
|
30
|
-
}
|
|
31
|
-
.tiptap-toolbar-group {
|
|
32
|
-
display: flex;
|
|
33
|
-
align-items: center;
|
|
34
|
-
gap: 0.125rem;
|
|
35
|
-
}
|
|
36
|
-
.tiptap-toolbar-group:empty {
|
|
37
|
-
display: none;
|
|
38
|
-
}
|
|
39
|
-
.tiptap-toolbar-group:empty + .tiptap-separator, .tiptap-separator + .tiptap-toolbar-group:empty {
|
|
40
|
-
display: none;
|
|
41
|
-
}
|
|
42
|
-
.tiptap-toolbar[data-variant=fixed] {
|
|
43
|
-
position: sticky;
|
|
44
|
-
top: 0;
|
|
45
|
-
z-index: 50;
|
|
46
|
-
width: 100%;
|
|
47
|
-
min-height: var(--tt-toolbar-height);
|
|
48
|
-
background: var(--tt-toolbar-bg-color);
|
|
49
|
-
border-bottom: 1px solid var(--tt-toolbar-border-color);
|
|
50
|
-
padding: 0 0.5rem;
|
|
51
|
-
overflow-x: auto;
|
|
52
|
-
overscroll-behavior-x: contain;
|
|
53
|
-
-webkit-overflow-scrolling: touch;
|
|
54
|
-
scrollbar-width: none;
|
|
55
|
-
-ms-overflow-style: none;
|
|
56
|
-
}
|
|
57
|
-
.tiptap-toolbar[data-variant=fixed]::-webkit-scrollbar {
|
|
58
|
-
display: none;
|
|
59
|
-
}
|
|
60
|
-
@media (max-width: 480px) {
|
|
61
|
-
.tiptap-toolbar[data-variant=fixed] {
|
|
62
|
-
position: absolute;
|
|
63
|
-
top: auto;
|
|
64
|
-
height: calc(var(--tt-toolbar-height) + var(--tt-safe-area-bottom));
|
|
65
|
-
border-top: 1px solid var(--tt-toolbar-border-color);
|
|
66
|
-
border-bottom: none;
|
|
67
|
-
padding: 0 0.5rem var(--tt-safe-area-bottom);
|
|
68
|
-
flex-wrap: nowrap;
|
|
69
|
-
justify-content: flex-start;
|
|
70
|
-
}
|
|
71
|
-
.tiptap-toolbar[data-variant=fixed] .tiptap-toolbar-group {
|
|
72
|
-
flex: 0 0 auto;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
.tiptap-toolbar[data-variant=floating] {
|
|
76
|
-
--tt-toolbar-padding: 0.125rem;
|
|
77
|
-
--tt-toolbar-border-width: 1px;
|
|
78
|
-
padding: 0.188rem;
|
|
79
|
-
border-radius: calc(var(--tt-toolbar-padding) + var(--tt-radius-lg) + var(--tt-toolbar-border-width));
|
|
80
|
-
border: var(--tt-toolbar-border-width) solid var(--tt-toolbar-border-color);
|
|
81
|
-
background-color: var(--tt-toolbar-bg-color);
|
|
82
|
-
box-shadow: var(--tt-shadow-elevated-md);
|
|
83
|
-
outline: none;
|
|
84
|
-
overflow: hidden;
|
|
85
|
-
}
|
|
86
|
-
.tiptap-toolbar[data-variant=floating][data-plain=true] {
|
|
87
|
-
padding: 0;
|
|
88
|
-
border-radius: 0;
|
|
89
|
-
border: none;
|
|
90
|
-
box-shadow: none;
|
|
91
|
-
background-color: transparent;
|
|
92
|
-
}
|
|
93
|
-
@media screen and (max-width: 480px) {
|
|
94
|
-
.tiptap-toolbar[data-variant=floating] {
|
|
95
|
-
width: 100%;
|
|
96
|
-
border-radius: 0;
|
|
97
|
-
border: none;
|
|
98
|
-
box-shadow: none;
|
|
99
|
-
}
|
|
100
|
-
}/*$vite$:1*/
|
|
14
|
+
/*$vite$:1*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cgi-learning-hub/ui",
|
|
3
|
-
"version": "1.15.0-dev.
|
|
3
|
+
"version": "1.15.0-dev.1789035749",
|
|
4
4
|
"description": "React component library for Hub's design system, built on Material UI with custom and extended components.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cgi-learning-hub",
|