mce 0.14.1 → 0.14.3

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.
@@ -0,0 +1,10 @@
1
+ type __VLS_ModelProps = {
2
+ 'isActive'?: boolean;
3
+ };
4
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
5
+ "update:isActive": (value: boolean | undefined) => any;
6
+ }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
7
+ "onUpdate:isActive"?: ((value: boolean | undefined) => any) | undefined;
8
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ declare const _default: typeof __VLS_export;
10
+ export default _default;
@@ -1,5 +1,6 @@
1
1
  type __VLS_Props = {
2
2
  active?: boolean;
3
+ icon?: boolean;
3
4
  };
4
5
  declare var __VLS_1: {};
5
6
  type __VLS_Slots = {} & {
@@ -7,7 +7,9 @@ type __VLS_ModelProps = {
7
7
  modelValue?: boolean;
8
8
  };
9
9
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
10
- declare var __VLS_22: {};
10
+ declare var __VLS_22: {
11
+ isActive: import("vue").ModelRef<boolean | undefined, string, boolean | undefined, boolean | undefined>;
12
+ };
11
13
  type __VLS_Slots = {} & {
12
14
  default?: (props: typeof __VLS_22) => any;
13
15
  };
package/dist/index.css CHANGED
@@ -84,8 +84,6 @@
84
84
  }.mce-btn {
85
85
  padding: 4px;
86
86
  border-radius: 4px;
87
- height: 24px;
88
- width: 24px;
89
87
  font-size: 0.75rem;
90
88
  display: flex;
91
89
  align-items: center;
@@ -96,6 +94,10 @@
96
94
  color: rgb(var(--mce-theme-on-background));
97
95
  background: rgb(var(--mce-theme-background));
98
96
  }
97
+ .mce-btn--icon {
98
+ height: 24px;
99
+ width: 24px;
100
+ }
99
101
  .mce-btn.mce-btn--active {
100
102
  color: rgb(var(--mce-theme-on-primary));
101
103
  background: rgb(var(--mce-theme-primary));
@@ -325,6 +327,71 @@
325
327
  justify-content: center;
326
328
  font-size: 0.75rem;
327
329
  margin-right: -6px;
330
+ }.mce-node-creator {
331
+ position: relative;
332
+ width: 100%;
333
+ height: 100%;
334
+ display: flex;
335
+ flex-direction: column;
336
+ overflow: hidden;
337
+ }
338
+ .mce-node-creator__tree {
339
+ flex: 1;
340
+ padding: 8px;
341
+ width: 100%;
342
+ overflow: auto;
343
+ }
344
+ .mce-node-creator__node {
345
+ position: relative;
346
+ flex: none;
347
+ display: flex;
348
+ align-items: center;
349
+ height: 32px;
350
+ font-size: 0.75rem;
351
+ padding-left: calc(4px + var(--indent-padding, 0));
352
+ width: 100%;
353
+ min-width: max-content;
354
+ border-radius: 4px;
355
+ }
356
+ .mce-node-creator__node:before {
357
+ content: "";
358
+ position: absolute;
359
+ left: 0;
360
+ right: 0;
361
+ top: 4px;
362
+ bottom: 4px;
363
+ background-color: var(--underlay-color, transparent);
364
+ pointer-events: none;
365
+ border-radius: inherit;
366
+ }
367
+ .mce-node-creator__node:after {
368
+ content: "";
369
+ position: absolute;
370
+ left: 0;
371
+ right: 0;
372
+ top: 4px;
373
+ bottom: 4px;
374
+ background-color: var(--overlay-color, transparent);
375
+ pointer-events: none;
376
+ border-radius: inherit;
377
+ }
378
+ .mce-node-creator__node:hover {
379
+ --overlay-color: rgba(var(--mce-theme-on-background), var(--mce-hover-opacity));
380
+ }
381
+ .mce-node-creator__node--active {
382
+ --underlay-color: rgba(var(--mce-theme-primary), calc(var(--mce-activated-opacity) * 3));
383
+ }
384
+ .mce-node-creator__node--active:hover {
385
+ --overlay-color: rgba(var(--mce-theme-primary), var(--mce-hover-opacity));
386
+ }
387
+ .mce-node-creator__actions {
388
+ display: flex;
389
+ align-items: center;
390
+ justify-content: space-evenly;
391
+ height: 24px;
392
+ padding: 8px;
393
+ flex-basis: max-content;
394
+ border-top: 1px solid rgba(var(--mce-border-color), var(--mce-border-opacity));
328
395
  }.mce-tooltip {
329
396
  background: rgb(var(--mce-theme-surface-variant));
330
397
  color: rgb(var(--mce-theme-on-surface-variant));
@@ -1069,6 +1136,7 @@
1069
1136
  }.mce-float-panel {
1070
1137
  position: absolute;
1071
1138
  pointer-events: auto !important;
1139
+ z-index: 2000;
1072
1140
  }
1073
1141
  .mce-float-panel__card {
1074
1142
  display: flex;