@thangph2146/lexical-editor 0.0.4 → 0.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.
- package/dist/editor-x/editor.cjs +721 -432
- package/dist/editor-x/editor.cjs.map +1 -1
- package/dist/editor-x/editor.css +1418 -1120
- package/dist/editor-x/editor.css.map +1 -1
- package/dist/editor-x/editor.js +725 -436
- package/dist/editor-x/editor.js.map +1 -1
- package/dist/index.cjs +757 -469
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1418 -1120
- package/dist/index.css.map +1 -1
- package/dist/index.js +760 -472
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/components/lexical-editor.tsx +138 -123
- package/src/editor-x/editor.tsx +16 -3
- package/src/editor-x/plugins.tsx +385 -380
- package/src/nodes/list-with-color-node.tsx +160 -160
- package/src/plugins/autocomplete-plugin.tsx +2574 -2574
- package/src/plugins/context-menu-plugin.tsx +239 -9
- package/src/plugins/floating-text-format-plugin.tsx +84 -92
- package/src/plugins/images-plugin.tsx +4 -4
- package/src/plugins/list-color-plugin.tsx +178 -178
- package/src/plugins/tab-focus-plugin.tsx +66 -66
- package/src/plugins/table-column-resizer-plugin.tsx +329 -190
- package/src/plugins/toolbar/block-format/block-format-data.tsx +4 -0
- package/src/plugins/toolbar/block-format/format-bulleted-list.tsx +40 -40
- package/src/plugins/toolbar/block-format/format-list-with-marker.tsx +74 -74
- package/src/plugins/toolbar/block-format/format-numbered-list.tsx +40 -40
- package/src/plugins/toolbar/block-format-toolbar-plugin.tsx +118 -117
- package/src/plugins/toolbar/element-format-toolbar-plugin.tsx +37 -53
- package/src/plugins/toolbar/font-format-toolbar-plugin.tsx +8 -15
- package/src/plugins/toolbar/font-size-toolbar-plugin.tsx +2 -3
- package/src/plugins/toolbar/history-toolbar-plugin.tsx +2 -5
- package/src/plugins/toolbar/subsuper-toolbar-plugin.tsx +15 -23
- package/src/themes/_mixins.scss +158 -10
- package/src/themes/_variables.scss +168 -0
- package/src/themes/core/_code.scss +59 -0
- package/src/themes/core/_images.scss +80 -0
- package/src/themes/core/_lists.scss +214 -0
- package/src/themes/core/_misc.scss +46 -0
- package/src/themes/core/_reset.scss +119 -0
- package/src/themes/core/_tables.scss +145 -0
- package/src/themes/core/_text.scss +35 -0
- package/src/themes/core/_typography.scss +73 -0
- package/src/themes/editor-theme copy.scss +763 -0
- package/src/themes/editor-theme.scss +9 -623
- package/src/themes/editor-theme.ts +118 -118
- package/src/themes/plugins/_auto-embed.scss +11 -0
- package/src/themes/plugins/_color-picker.scss +103 -0
- package/src/themes/plugins/_draggable-block.scss +32 -0
- package/src/themes/plugins/_floating-link-editor.scss +47 -0
- package/src/themes/plugins/_floating-toolbars.scss +61 -0
- package/src/themes/plugins/_image-resizer.scss +38 -0
- package/src/themes/plugins/_image.scss +57 -0
- package/src/themes/plugins/_layout.scss +39 -0
- package/src/themes/plugins/_list-color.scss +23 -0
- package/src/themes/plugins/_mentions.scss +21 -0
- package/src/themes/plugins/_menus-and-pickers.scss +153 -0
- package/src/themes/plugins/_table.scss +20 -0
- package/src/themes/plugins/_toolbar.scss +36 -0
- package/src/themes/plugins/_tree-view.scss +11 -0
- package/src/themes/plugins copy.scss +656 -0
- package/src/themes/plugins.scss +20 -1165
- package/src/themes/ui-components/_animations.scss +31 -0
- package/src/themes/ui-components/_backgrounds.scss +27 -0
- package/src/themes/ui-components/_borders.scss +20 -0
- package/src/themes/ui-components/_button.scss +176 -0
- package/src/themes/ui-components/_checkbox.scss +14 -0
- package/src/themes/ui-components/_cursors.scss +31 -0
- package/src/themes/ui-components/_dialog.scss +86 -0
- package/src/themes/ui-components/_display-sizing.scss +100 -0
- package/src/themes/ui-components/_flex.scss +124 -0
- package/src/themes/ui-components/_form-layout.scss +15 -0
- package/src/themes/ui-components/_icons.scss +23 -0
- package/src/themes/ui-components/_input.scss +86 -0
- package/src/themes/ui-components/_label.scss +19 -0
- package/src/themes/ui-components/_loader.scss +9 -0
- package/src/themes/ui-components/_margins-paddings.scss +45 -0
- package/src/themes/ui-components/_popover.scss +16 -0
- package/src/themes/ui-components/_positioning.scss +73 -0
- package/src/themes/ui-components/_rounded.scss +19 -0
- package/src/themes/ui-components/_scroll-area.scss +11 -0
- package/src/themes/ui-components/_select.scss +110 -0
- package/src/themes/ui-components/_separator.scss +19 -0
- package/src/themes/ui-components/_shadow.scss +15 -0
- package/src/themes/ui-components/_tabs.scss +46 -0
- package/src/themes/ui-components/_text-utilities.scss +48 -0
- package/src/themes/ui-components/_toggle-toolbar.scss +128 -0
- package/src/themes/ui-components/_toggle.scss +80 -0
- package/src/themes/ui-components/_typography.scss +22 -0
- package/src/themes/ui-components copy.scss +1335 -0
- package/src/themes/ui-components.scss +27 -937
- package/src/transformers/markdown-list-transformer.ts +51 -51
- package/src/ui/button.tsx +11 -2
- package/src/ui/collapsible.tsx +1 -1
- package/src/ui/dialog.tsx +2 -2
- package/src/ui/flex.tsx +4 -4
- package/src/ui/popover.tsx +1 -1
- package/src/ui/tooltip.tsx +2 -2
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
@use "../variables" as *;
|
|
2
|
+
@use "../mixins" as *;
|
|
3
|
+
|
|
4
|
+
/* --- ANIMATIONS & TRANSITIONS --- */
|
|
5
|
+
.editor-transition-colors {
|
|
6
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
|
|
7
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
8
|
+
transition-duration: $editor-transition-fast;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.editor-transition-transform {
|
|
12
|
+
transition-property: transform;
|
|
13
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
14
|
+
transition-duration: $editor-transition-fast;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.editor-animate-pulse {
|
|
18
|
+
animation: pulse $editor-animation-pulse cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.editor-animate-spin {
|
|
22
|
+
animation: spin $editor-animation-spin linear infinite;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.editor-rotate-90 {
|
|
26
|
+
transform: rotate(90deg);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.editor-resize-none {
|
|
30
|
+
resize: none;
|
|
31
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
@use "../variables" as *;
|
|
2
|
+
@use "../mixins" as *;
|
|
3
|
+
|
|
4
|
+
/* --- BACKGROUNDS --- */
|
|
5
|
+
.editor-bg-background {
|
|
6
|
+
background-color: var(--background);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.editor-bg-primary {
|
|
10
|
+
background-color: $editor-primary-color;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.editor-bg-muted {
|
|
14
|
+
background-color: var(--muted);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.editor-bg-accent {
|
|
18
|
+
background-color: $editor-accent-color;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.editor-bg-transparent {
|
|
22
|
+
background-color: transparent;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.editor-bg-none {
|
|
26
|
+
background: none;
|
|
27
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
@use "../variables" as *;
|
|
2
|
+
@use "../mixins" as *;
|
|
3
|
+
|
|
4
|
+
/* --- BORDERS --- */
|
|
5
|
+
.editor-border {
|
|
6
|
+
border: $editor-border-width solid var(--border);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.editor-border-0 {
|
|
10
|
+
border-width: 0;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.editor-border-transparent {
|
|
14
|
+
border-color: transparent;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.editor-outline-none {
|
|
18
|
+
outline: $editor-outline-width solid transparent;
|
|
19
|
+
outline-offset: $editor-outline-offset;
|
|
20
|
+
}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
@use "../variables" as *;
|
|
2
|
+
@use "../mixins" as *;
|
|
3
|
+
|
|
4
|
+
/* --- BUTTON --- */
|
|
5
|
+
.editor-btn {
|
|
6
|
+
@include flex-center-justify;
|
|
7
|
+
gap: $editor-gap-2;
|
|
8
|
+
white-space: nowrap;
|
|
9
|
+
@include rounded-md;
|
|
10
|
+
font-weight: $editor-font-weight-medium;
|
|
11
|
+
transition: all $editor-transition-normal;
|
|
12
|
+
@include text-sm;
|
|
13
|
+
@include focus-ring;
|
|
14
|
+
border: $editor-border-width solid transparent;
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
user-select: none;
|
|
17
|
+
position: relative;
|
|
18
|
+
padding: $editor-gap-2 $editor-gap-4;
|
|
19
|
+
box-sizing: border-box; // Ensure consistent sizing
|
|
20
|
+
@include editor-button-interactive;
|
|
21
|
+
|
|
22
|
+
&:disabled {
|
|
23
|
+
pointer-events: none;
|
|
24
|
+
opacity: $editor-opacity-disabled;
|
|
25
|
+
cursor: not-allowed;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&--loading {
|
|
29
|
+
cursor: wait;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&__loader {
|
|
33
|
+
@include absolute-full;
|
|
34
|
+
left: 50%;
|
|
35
|
+
top: 50%;
|
|
36
|
+
transform: translate(-50%, -50%);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&__content {
|
|
40
|
+
@include flex-center;
|
|
41
|
+
gap: $editor-gap-2;
|
|
42
|
+
transition: opacity $editor-transition-normal;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&[data-state="on"],
|
|
46
|
+
&[data-state="active"] {
|
|
47
|
+
background-color: $editor-accent-color;
|
|
48
|
+
color: $editor-accent-foreground-color !important;
|
|
49
|
+
border-color: $editor-accent-color;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&--default {
|
|
53
|
+
background-color: var(--primary);
|
|
54
|
+
color: var(--primary-foreground);
|
|
55
|
+
border-color: var(--primary);
|
|
56
|
+
@include shadow-sm;
|
|
57
|
+
|
|
58
|
+
&:hover {
|
|
59
|
+
background-color: color-mix(in srgb, var(--primary), black 10%);
|
|
60
|
+
@include shadow-md;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&--destructive {
|
|
65
|
+
background-color: var(--destructive);
|
|
66
|
+
color: var(--destructive-foreground);
|
|
67
|
+
border-color: var(--destructive);
|
|
68
|
+
@include shadow-sm;
|
|
69
|
+
|
|
70
|
+
&:hover {
|
|
71
|
+
background-color: color-mix(in srgb, var(--destructive), black 10%);
|
|
72
|
+
@include shadow-md;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&--outline {
|
|
77
|
+
border-color: var(--input);
|
|
78
|
+
background-color: var(--background);
|
|
79
|
+
color: var(--foreground);
|
|
80
|
+
|
|
81
|
+
&:hover {
|
|
82
|
+
background-color: var(--accent);
|
|
83
|
+
color: var(--accent-foreground);
|
|
84
|
+
border-color: var(--accent);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&--secondary {
|
|
89
|
+
background-color: var(--secondary);
|
|
90
|
+
color: var(--secondary-foreground);
|
|
91
|
+
border-color: transparent;
|
|
92
|
+
|
|
93
|
+
&:hover {
|
|
94
|
+
background-color: color-mix(in srgb, var(--secondary), black 10%);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&--ghost {
|
|
99
|
+
background-color: transparent;
|
|
100
|
+
border-color: transparent;
|
|
101
|
+
color: var(--foreground);
|
|
102
|
+
|
|
103
|
+
&:hover {
|
|
104
|
+
background-color: var(--accent);
|
|
105
|
+
color: var(--accent-foreground);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
&--link {
|
|
110
|
+
color: var(--primary);
|
|
111
|
+
text-decoration-line: underline;
|
|
112
|
+
text-underline-offset: $editor-gap-1;
|
|
113
|
+
background-color: transparent;
|
|
114
|
+
border: none;
|
|
115
|
+
padding: 0;
|
|
116
|
+
height: auto;
|
|
117
|
+
|
|
118
|
+
&:hover {
|
|
119
|
+
text-decoration-line: underline;
|
|
120
|
+
transform: none;
|
|
121
|
+
box-shadow: none;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/* Sizes */
|
|
126
|
+
&--size-default {
|
|
127
|
+
height: $editor-control-size-md;
|
|
128
|
+
padding: 0 $editor-gap-4;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
&--size-sm {
|
|
132
|
+
height: $editor-control-size-sm;
|
|
133
|
+
@include rounded-sm;
|
|
134
|
+
padding: 0 $editor-gap-3;
|
|
135
|
+
font-size: $editor-font-size-xs;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
&--size-md {
|
|
139
|
+
height: $editor-control-size-md;
|
|
140
|
+
padding: 0 $editor-gap-4;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&--size-lg {
|
|
144
|
+
height: $editor-control-size-lg;
|
|
145
|
+
@include rounded-md;
|
|
146
|
+
padding: 0 $editor-gap-4 + $editor-gap-2;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
&--size-icon,
|
|
150
|
+
&.editor-btn--size-icon,
|
|
151
|
+
button.editor-btn--size-icon {
|
|
152
|
+
width: $editor-control-size-md !important;
|
|
153
|
+
height: $editor-control-size-md !important;
|
|
154
|
+
min-width: $editor-control-size-md !important;
|
|
155
|
+
min-height: $editor-control-size-md !important;
|
|
156
|
+
flex-shrink: 0;
|
|
157
|
+
padding: 0 !important;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/* --- BUTTON GROUP --- */
|
|
162
|
+
.editor-button-group {
|
|
163
|
+
@include flex-center;
|
|
164
|
+
flex-wrap: wrap;
|
|
165
|
+
gap: $editor-gap-1;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.editor-btn-icon-lg {
|
|
169
|
+
@include control-size($editor-control-size-lg);
|
|
170
|
+
min-height: $editor-control-size-lg;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.editor-btn-icon-md {
|
|
174
|
+
@include control-size($editor-control-size-md);
|
|
175
|
+
}
|
|
176
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
@use "../variables" as *;
|
|
2
|
+
@use "../mixins" as *;
|
|
3
|
+
|
|
4
|
+
.editor-checkbox {
|
|
5
|
+
@include control-size($editor-icon-size-sm);
|
|
6
|
+
@include rounded-sm;
|
|
7
|
+
border: $editor-border-width solid var(--input);
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
|
|
10
|
+
&:checked {
|
|
11
|
+
background-color: var(--primary);
|
|
12
|
+
border-color: var(--primary);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
@use "../variables" as *;
|
|
2
|
+
@use "../mixins" as *;
|
|
3
|
+
|
|
4
|
+
/* --- CURSORS --- */
|
|
5
|
+
.editor-cursor-default {
|
|
6
|
+
cursor: default;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.editor-cursor-pointer {
|
|
10
|
+
cursor: pointer;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.editor-cursor-text {
|
|
14
|
+
cursor: text;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.editor-cursor-ns-resize {
|
|
18
|
+
cursor: ns-resize;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.editor-cursor-ew-resize {
|
|
22
|
+
cursor: ew-resize;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.editor-cursor-nesw-resize {
|
|
26
|
+
cursor: nesw-resize;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.editor-cursor-nwse-resize {
|
|
30
|
+
cursor: nwse-resize;
|
|
31
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
@use "../variables" as *;
|
|
2
|
+
@use "../mixins" as *;
|
|
3
|
+
|
|
4
|
+
/* --- DIALOG --- */
|
|
5
|
+
.editor-dialog-overlay {
|
|
6
|
+
position: fixed;
|
|
7
|
+
inset: 0;
|
|
8
|
+
z-index: $editor-z-index-dialog-overlay;
|
|
9
|
+
@include backdrop-blur($editor-dialog-overlay-blur, $editor-dialog-overlay-bg);
|
|
10
|
+
animation: editor-fade-in $editor-transition-normal ease-out;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.editor-dialog-content {
|
|
14
|
+
position: fixed;
|
|
15
|
+
left: 50%;
|
|
16
|
+
top: 50%;
|
|
17
|
+
z-index: $editor-z-index-dialog;
|
|
18
|
+
display: grid;
|
|
19
|
+
width: 100%;
|
|
20
|
+
max-width: $editor-dialog-max-width-default;
|
|
21
|
+
transform: translate(-50%, -50%);
|
|
22
|
+
gap: $editor-gap-5;
|
|
23
|
+
border: $editor-border-width solid var(--border);
|
|
24
|
+
background-color: var(--background);
|
|
25
|
+
padding: $editor-gap-5;
|
|
26
|
+
@include shadow-lg;
|
|
27
|
+
@include rounded-lg;
|
|
28
|
+
outline: none;
|
|
29
|
+
animation: editor-dialog-zoom-in $editor-transition-normal cubic-bezier(0.16, 1, 0.3, 1);
|
|
30
|
+
|
|
31
|
+
&--lg {
|
|
32
|
+
max-width: $editor-dialog-max-width-lg;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&__close {
|
|
36
|
+
position: absolute;
|
|
37
|
+
right: $editor-gap-4;
|
|
38
|
+
top: $editor-gap-4;
|
|
39
|
+
@include rounded-md;
|
|
40
|
+
opacity: $editor-opacity-muted;
|
|
41
|
+
background: transparent;
|
|
42
|
+
border: none;
|
|
43
|
+
cursor: pointer;
|
|
44
|
+
transition: opacity $editor-transition-normal;
|
|
45
|
+
|
|
46
|
+
&:hover {
|
|
47
|
+
opacity: 1;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@include focus-ring;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.editor-dialog-header {
|
|
55
|
+
@include flex-col;
|
|
56
|
+
gap: $editor-gap-1;
|
|
57
|
+
text-align: center;
|
|
58
|
+
|
|
59
|
+
@media (min-width: 640px) {
|
|
60
|
+
text-align: left;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&__title {
|
|
64
|
+
font-size: $editor-font-size-lg;
|
|
65
|
+
font-weight: $editor-font-weight-semibold;
|
|
66
|
+
line-height: $editor-line-height-tight;
|
|
67
|
+
margin: 0;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&__description {
|
|
71
|
+
@include text-sm;
|
|
72
|
+
color: var(--muted-foreground);
|
|
73
|
+
margin: 0;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.editor-dialog-footer {
|
|
78
|
+
@include flex-col;
|
|
79
|
+
flex-direction: column-reverse;
|
|
80
|
+
gap: $editor-gap-2;
|
|
81
|
+
|
|
82
|
+
@media (min-width: 640px) {
|
|
83
|
+
flex-direction: row;
|
|
84
|
+
justify-content: flex-end;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
@use "../variables" as *;
|
|
2
|
+
@use "../mixins" as *;
|
|
3
|
+
|
|
4
|
+
/* --- DISPLAY & SIZING --- */
|
|
5
|
+
.editor-w-full {
|
|
6
|
+
width: 100%;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.editor-h-full {
|
|
10
|
+
height: 100%;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.editor-w-14 {
|
|
14
|
+
width: $editor-control-size-xl + $editor-gap-3;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.editor-w-48 {
|
|
18
|
+
width: $editor-popover-width * 0.67; // approx 12rem
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.editor-w-\[200px\] {
|
|
22
|
+
width: $editor-image-broken-size;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.editor-h-4 {
|
|
26
|
+
height: $editor-gap-4;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.editor-h-2 {
|
|
30
|
+
height: $editor-gap-2;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.editor-w-2 {
|
|
34
|
+
width: $editor-gap-2;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.editor-min-h-5 {
|
|
38
|
+
min-height: $editor-gap-5;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.editor-inline-block {
|
|
42
|
+
display: inline-block;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.editor-block {
|
|
46
|
+
display: block;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.editor-inline {
|
|
50
|
+
display: inline;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.editor-overflow-hidden {
|
|
54
|
+
overflow: hidden;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.editor-pointer-events-none {
|
|
58
|
+
pointer-events: none;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.editor-select-none {
|
|
62
|
+
user-select: none;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.editor-user-select-text,
|
|
66
|
+
.editor-select-text {
|
|
67
|
+
user-select: text;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.editor-z-10 {
|
|
71
|
+
z-index: $editor-z-index-layer-10;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.editor-box-border {
|
|
75
|
+
box-sizing: border-box;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.editor-opacity-30 {
|
|
79
|
+
opacity: $editor-opacity-soft;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.editor-truncate {
|
|
83
|
+
@include truncate;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.editor-object-cover {
|
|
87
|
+
object-fit: cover;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.editor-sr-only {
|
|
91
|
+
@include absolute-full;
|
|
92
|
+
width: $editor-border-width;
|
|
93
|
+
height: $editor-border-width;
|
|
94
|
+
padding: 0;
|
|
95
|
+
margin: -$editor-border-width;
|
|
96
|
+
@include overflow-hidden;
|
|
97
|
+
clip: rect(0, 0, 0, 0);
|
|
98
|
+
white-space: nowrap;
|
|
99
|
+
border-width: 0;
|
|
100
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
@use "../variables" as *;
|
|
2
|
+
@use "../mixins" as *;
|
|
3
|
+
|
|
4
|
+
/* --- FLEX Component Utilities --- */
|
|
5
|
+
.editor-flex {
|
|
6
|
+
display: flex;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.editor-flex-1 {
|
|
10
|
+
flex: 1 1 0%;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.editor-shrink-0 {
|
|
14
|
+
flex-shrink: 0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.editor-flex-grow {
|
|
18
|
+
flex-grow: 1;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.editor-items-start {
|
|
22
|
+
align-items: flex-start;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.editor-items-center {
|
|
26
|
+
align-items: center;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.editor-items-end {
|
|
30
|
+
align-items: flex-end;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.editor-items-baseline {
|
|
34
|
+
align-items: baseline;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.editor-items-stretch {
|
|
38
|
+
align-items: stretch;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.editor-justify-start {
|
|
42
|
+
justify-content: flex-start;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.editor-justify-center {
|
|
46
|
+
justify-content: center;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.editor-justify-end {
|
|
50
|
+
justify-content: flex-end;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.editor-justify-between {
|
|
54
|
+
justify-content: space-between;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.editor-justify-around {
|
|
58
|
+
justify-content: space-around;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.editor-justify-evenly {
|
|
62
|
+
justify-content: space-evenly;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.editor-flex-row {
|
|
66
|
+
flex-direction: row;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.editor-flex-col {
|
|
70
|
+
flex-direction: column;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.editor-flex-row-reverse {
|
|
74
|
+
flex-direction: row-reverse;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.editor-flex-col-reverse {
|
|
78
|
+
flex-direction: column-reverse;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.editor-flex-nowrap {
|
|
82
|
+
flex-wrap: nowrap;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.editor-flex-wrap {
|
|
86
|
+
flex-wrap: wrap;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.editor-flex-wrap-reverse {
|
|
90
|
+
flex-wrap: wrap-reverse;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.editor-flex-end {
|
|
94
|
+
@include flex-center;
|
|
95
|
+
justify-content: flex-end;
|
|
96
|
+
gap: $editor-gap-1;
|
|
97
|
+
flex-wrap: nowrap;
|
|
98
|
+
flex-shrink: 0;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.editor-flex-row-center {
|
|
102
|
+
@include flex-center;
|
|
103
|
+
gap: $editor-gap-2;
|
|
104
|
+
|
|
105
|
+
&--pointer {
|
|
106
|
+
cursor: pointer;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.editor-flex-col-gap-2 {
|
|
111
|
+
@include flex-col;
|
|
112
|
+
gap: $editor-gap-2;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.editor-flex-col-gap-4 {
|
|
116
|
+
@include flex-col;
|
|
117
|
+
gap: $editor-gap-4;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.editor-flex-center-justify-py-8 {
|
|
121
|
+
@include flex-center-justify;
|
|
122
|
+
padding-top: $editor-gap-5;
|
|
123
|
+
padding-bottom: $editor-gap-5;
|
|
124
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
@use "../variables" as *;
|
|
2
|
+
@use "../mixins" as *;
|
|
3
|
+
|
|
4
|
+
/* --- FORM LAYOUT --- */
|
|
5
|
+
.editor-form-grid {
|
|
6
|
+
display: grid;
|
|
7
|
+
gap: $editor-gap-4;
|
|
8
|
+
padding-top: $editor-gap-4;
|
|
9
|
+
padding-bottom: $editor-gap-4;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.editor-form-item {
|
|
13
|
+
display: grid;
|
|
14
|
+
gap: $editor-gap-2;
|
|
15
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
@use "../variables" as *;
|
|
2
|
+
@use "../mixins" as *;
|
|
3
|
+
|
|
4
|
+
/* --- ICONS --- */
|
|
5
|
+
.editor-icon-xs {
|
|
6
|
+
@include icon-size($editor-icon-size-xs);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.editor-icon-sm {
|
|
10
|
+
@include icon-size($editor-icon-size-sm);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.editor-icon-md {
|
|
14
|
+
@include icon-size($editor-icon-size-md);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.editor-icon-lg {
|
|
18
|
+
@include icon-size($editor-icon-size-lg);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.editor-icon-xl {
|
|
22
|
+
@include icon-size($editor-icon-size-xl);
|
|
23
|
+
}
|