@threadlabs/looma 0.53.1 → 0.53.2

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.
@@ -1,10 +1,10 @@
1
1
  /* Document whitespace belongs to projected content, not the component templates around it.
2
2
  A low-priority layer preserves each component's explicit wrapping rules. */
3
3
  @layer looma-editor-whitespace {
4
- :is([data-component~="ui-editor-surface"], .ui-editor-surface) .ProseMirror :where([data-component]) {
4
+ :is(ui-editor-surface, [component~="ui-editor-surface"], [data-component~="ui-editor-surface"], .ui-editor-surface) .ProseMirror :where([data-component]) {
5
5
  white-space: normal;
6
6
  }
7
- :is([data-component~="ui-editor-surface"], .ui-editor-surface) .ProseMirror :where([data-looma-editor-content]) {
7
+ :is(ui-editor-surface, [component~="ui-editor-surface"], [data-component~="ui-editor-surface"], .ui-editor-surface) .ProseMirror :where([data-looma-editor-content]) {
8
8
  white-space: break-spaces;
9
9
  }
10
10
  }
@@ -29,11 +29,15 @@
29
29
  --_ui-editor-toc-gutter: calc(var(--ui-space-6) + var(--ui-space-4));
30
30
  }
31
31
 
32
- :is([data-component~="ui-editor-surface"], .ui-editor-surface) .ProseMirror {
32
+ :is(ui-editor-surface, [component~="ui-editor-surface"], [data-component~="ui-editor-surface"], .ui-editor-surface) .ProseMirror {
33
33
  min-height: var(--ui-editor-content-min-height, var(--_ui-editor-content-min-height, 300px));
34
34
  padding:
35
35
  var(--ui-editor-content-padding-block, var(--_ui-editor-content-padding-block, var(--ui-space-4)))
36
36
  var(--ui-editor-content-padding-inline, var(--_ui-editor-content-padding-inline, var(--_ui-editor-toc-gutter, var(--ui-space-6))));
37
+ padding-block-end: calc(
38
+ var(--ui-editor-content-padding-block, var(--_ui-editor-content-padding-block, var(--ui-space-4)))
39
+ + var(--ui-editor-trailing-scroll-space, 0px)
40
+ );
37
41
  outline: none;
38
42
  color: var(--ui-editor-content-color, var(--ui-text-primary));
39
43
  caret-color: var(--ui-editor-caret-color, var(--ui-accent-solid));
@@ -42,15 +46,23 @@
42
46
  line-height: var(--ui-editor-line-height, var(--ui-line-height-relaxed));
43
47
  }
44
48
 
49
+ :is(ui-editor-surface, [component~="ui-editor-surface"], [data-component~="ui-editor-surface"], .ui-editor-surface) .ProseMirror > p {
50
+ text-indent: var(--ui-editor-paragraph-indent, 0);
51
+ white-space: var(--ui-editor-paragraph-white-space, break-spaces);
52
+ }
53
+
45
54
  @media (max-width: 767px) {
46
- :is([data-component~="ui-editor-surface"], .ui-editor-surface) .ProseMirror {
47
- padding-bottom: var(--ui-editor-mobile-bottom-space, var(--_ui-editor-mobile-bottom-space, 80px));
55
+ :is(ui-editor-surface, [component~="ui-editor-surface"], [data-component~="ui-editor-surface"], .ui-editor-surface) .ProseMirror {
56
+ padding-block-end: calc(
57
+ var(--ui-editor-mobile-bottom-space, var(--_ui-editor-mobile-bottom-space, 80px))
58
+ + var(--ui-editor-trailing-scroll-space, 0px)
59
+ );
48
60
  }
49
61
  }
50
62
 
51
63
 
52
- :is([data-component~="ui-editor-surface"], .ui-editor-surface)[data-ui-editor-surface-prop-density="compact"] .ProseMirror > :first-child { margin-block-start: 0; }
53
- :is([data-component~="ui-editor-surface"], .ui-editor-surface)[data-ui-editor-surface-prop-density="compact"] .ProseMirror > :last-child { margin-block-end: 0; }
64
+ :is(ui-editor-surface, [component~="ui-editor-surface"], [data-component~="ui-editor-surface"], .ui-editor-surface)[data-ui-editor-surface-prop-density="compact"] .ProseMirror > :first-child { margin-block-start: 0; }
65
+ :is(ui-editor-surface, [component~="ui-editor-surface"], [data-component~="ui-editor-surface"], .ui-editor-surface)[data-ui-editor-surface-prop-density="compact"] .ProseMirror > :last-child { margin-block-end: 0; }
54
66
 
55
67
  /* List items own their small inter-item gap; paragraphs must not add another one. */
56
68
  .looma-editor .ProseMirror li > p:last-of-type,
@@ -76,11 +88,11 @@
76
88
  }
77
89
 
78
90
  /* A held navigation modifier makes links actionable without interrupting editing. */
79
- :is([data-component~="ui-editor-surface"], .ui-editor-surface) .ProseMirror[contenteditable="true"] a[href] {
91
+ :is(ui-editor-surface, [component~="ui-editor-surface"], [data-component~="ui-editor-surface"], .ui-editor-surface) .ProseMirror[contenteditable="true"] a[href] {
80
92
  cursor: text;
81
93
  }
82
94
 
83
- :is([data-component~="ui-editor-surface"], .ui-editor-surface) .ProseMirror[data-link-navigation] a[href] {
95
+ :is(ui-editor-surface, [component~="ui-editor-surface"], [data-component~="ui-editor-surface"], .ui-editor-surface) .ProseMirror[data-link-navigation] a[href] {
84
96
  cursor: pointer;
85
97
  }
86
98
 
package/docs/catalog.json CHANGED
@@ -780,7 +780,7 @@
780
780
  ],
781
781
  "schemaVersion": 1,
782
782
  "package": "@threadlabs/looma",
783
- "version": "0.53.1",
783
+ "version": "0.53.2",
784
784
  "groups": [
785
785
  {
786
786
  "id": "layout",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@threadlabs/looma",
3
- "version": "0.53.1",
3
+ "version": "0.53.2",
4
4
  "type": "module",
5
5
  "description": "HTML Next UI components, native DOM support and design tokens.",
6
6
  "license": "MIT",