@byline/richtext-lexical 6.10.0 → 6.11.0

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.
Files changed (60) hide show
  1. package/dist/field/content-editable.css +22 -18
  2. package/dist/field/editor-component.css +33 -29
  3. package/dist/field/editor.css +1218 -1214
  4. package/dist/field/extensions/admonition/admonition-modal.css +20 -16
  5. package/dist/field/extensions/admonition/admonition-node.css +114 -110
  6. package/dist/field/extensions/admonition/icons/danger-icon.css +13 -9
  7. package/dist/field/extensions/admonition/icons/note-icon.css +13 -9
  8. package/dist/field/extensions/admonition/icons/tip-icon.css +13 -9
  9. package/dist/field/extensions/admonition/icons/warning-icon.css +13 -9
  10. package/dist/field/extensions/auto-embed/auto-embed-modal.css +14 -10
  11. package/dist/field/extensions/floating-text-format/index.css +130 -126
  12. package/dist/field/extensions/inline-image/inline-image-modal.css +120 -116
  13. package/dist/field/extensions/inline-image/inline-image-node-component.css +243 -239
  14. package/dist/field/extensions/layout/insert-layout-modal.css +16 -12
  15. package/dist/field/extensions/link/floating-link-editor.css +113 -109
  16. package/dist/field/extensions/link/link-target-fields.css +61 -57
  17. package/dist/field/normalize/adapted-notice.css +2 -4
  18. package/dist/field/plugins/table-plugin/table-modal.css +17 -13
  19. package/dist/field/themes/lexical-editor-theme.css +471 -467
  20. package/dist/field/ui/button.css +28 -24
  21. package/dist/field/ui/checkbox.css +43 -39
  22. package/dist/field/ui/color-picker.css +69 -65
  23. package/dist/field/ui/dialog.css +18 -14
  24. package/dist/field/ui/input.css +23 -19
  25. package/dist/field/ui/modal.css +66 -62
  26. package/dist/field/ui/placeholder.css +25 -21
  27. package/dist/field/ui/select.css +32 -28
  28. package/dist/field/ui/text-area.css +29 -25
  29. package/dist/richtext-field_module.css +21 -17
  30. package/package.json +6 -6
  31. package/src/field/content-editable.css +31 -17
  32. package/src/field/editor-component.css +56 -40
  33. package/src/field/editor.css +1248 -1232
  34. package/src/field/extensions/admonition/admonition-modal.css +32 -16
  35. package/src/field/extensions/admonition/admonition-node.css +105 -89
  36. package/src/field/extensions/admonition/icons/danger-icon.css +25 -9
  37. package/src/field/extensions/admonition/icons/note-icon.css +25 -9
  38. package/src/field/extensions/admonition/icons/tip-icon.css +25 -9
  39. package/src/field/extensions/admonition/icons/warning-icon.css +25 -9
  40. package/src/field/extensions/auto-embed/auto-embed-modal.css +25 -9
  41. package/src/field/extensions/floating-text-format/index.css +142 -126
  42. package/src/field/extensions/inline-image/inline-image-modal.css +144 -128
  43. package/src/field/extensions/inline-image/inline-image-node-component.css +258 -242
  44. package/src/field/extensions/layout/insert-layout-modal.css +28 -12
  45. package/src/field/extensions/link/floating-link-editor.css +129 -113
  46. package/src/field/extensions/link/link-target-fields.css +68 -52
  47. package/src/field/normalize/adapted-notice.css +5 -4
  48. package/src/field/plugins/table-plugin/table-modal.css +29 -13
  49. package/src/field/themes/lexical-editor-theme.css +508 -494
  50. package/src/field/ui/button.css +46 -30
  51. package/src/field/ui/checkbox.css +62 -46
  52. package/src/field/ui/color-picker.css +89 -73
  53. package/src/field/ui/dialog.css +30 -14
  54. package/src/field/ui/input.css +38 -22
  55. package/src/field/ui/modal.css +81 -65
  56. package/src/field/ui/placeholder.css +36 -20
  57. package/src/field/ui/select.css +46 -30
  58. package/src/field/ui/text-area.css +45 -29
  59. package/src/lexical-editor.tsx +2 -0
  60. package/src/richtext-field.module.css +38 -22
@@ -1,124 +1,128 @@
1
- .link-editor {
2
- z-index: 10;
3
- opacity: 0;
4
- will-change: transform;
5
- background-color: #fff;
6
- border-radius: 6px;
7
- width: 100%;
8
- max-width: 400px;
9
- transition: opacity .5s;
10
- position: absolute;
11
- top: 0;
12
- left: 0;
13
- box-shadow: 0 5px 10px #0000004d;
14
- }
1
+ @layer base, byline-base, theme, byline-theme, byline-functional, byline-typography, components, byline-components, overrides, byline-utilities, utilities, byline-components.primitives;
15
2
 
16
- .link-editor .button {
17
- cursor: pointer;
18
- border-radius: 6px;
19
- width: 20px;
20
- height: 20px;
21
- margin: 0 2px;
22
- padding: 6px;
23
- display: inline-block;
24
- }
3
+ @layer byline-components.cms {
4
+ .link-editor {
5
+ z-index: 10;
6
+ opacity: 0;
7
+ will-change: transform;
8
+ background-color: #fff;
9
+ border-radius: 6px;
10
+ width: 100%;
11
+ max-width: 400px;
12
+ transition: opacity .5s;
13
+ position: absolute;
14
+ top: 0;
15
+ left: 0;
16
+ box-shadow: 0 5px 10px #0000004d;
17
+ }
25
18
 
26
- .link-editor .button.hovered {
27
- background-color: #eee;
28
- width: 20px;
29
- height: 20px;
30
- display: inline-block;
31
- }
19
+ .link-editor .button {
20
+ cursor: pointer;
21
+ border-radius: 6px;
22
+ width: 20px;
23
+ height: 20px;
24
+ margin: 0 2px;
25
+ padding: 6px;
26
+ display: inline-block;
27
+ }
32
28
 
33
- .link-editor .button i, .actions i {
34
- vertical-align: -.25em;
35
- background-size: contain;
36
- width: 20px;
37
- height: 20px;
38
- display: inline-block;
39
- }
29
+ .link-editor .button.hovered {
30
+ background-color: #eee;
31
+ width: 20px;
32
+ height: 20px;
33
+ display: inline-block;
34
+ }
40
35
 
41
- .link-editor .button.active, .toolbar .button.active {
42
- background-color: #dfe8fa;
43
- }
36
+ .link-editor .button i, .actions i {
37
+ vertical-align: -.25em;
38
+ background-size: contain;
39
+ width: 20px;
40
+ height: 20px;
41
+ display: inline-block;
42
+ }
44
43
 
45
- .link-editor .link-input {
46
- box-sizing: border-box;
47
- color: #050505;
48
- background-color: #eee;
49
- border: 0;
50
- border-radius: 8px;
51
- outline: 0;
52
- min-height: 26px;
53
- margin: 8px 4px 8px 10px;
54
- padding: 2px;
55
- font-family: inherit;
56
- font-size: 15px;
57
- display: block;
58
- position: relative;
59
- }
44
+ .link-editor .button.active, .toolbar .button.active {
45
+ background-color: #dfe8fa;
46
+ }
60
47
 
61
- .link-editor .link-view a {
62
- word-break: break-word;
63
- width: calc(100% - 33px);
64
- display: block;
65
- }
48
+ .link-editor .link-input {
49
+ box-sizing: border-box;
50
+ color: #050505;
51
+ background-color: #eee;
52
+ border: 0;
53
+ border-radius: 8px;
54
+ outline: 0;
55
+ min-height: 26px;
56
+ margin: 8px 4px 8px 10px;
57
+ padding: 2px;
58
+ font-family: inherit;
59
+ font-size: 15px;
60
+ display: block;
61
+ position: relative;
62
+ }
66
63
 
67
- .link-editor div.link-edit {
68
- vertical-align: -.25em;
69
- cursor: pointer;
70
- background-image: url(../../../static/svg/pencil-fill.svg);
71
- background-position: center;
72
- background-repeat: no-repeat;
73
- background-size: 16px;
74
- width: 35px;
75
- position: absolute;
76
- top: 0;
77
- bottom: 0;
78
- right: 30px;
79
- }
64
+ .link-editor .link-view a {
65
+ word-break: break-word;
66
+ width: calc(100% - 33px);
67
+ display: block;
68
+ }
80
69
 
81
- .link-editor div.link-trash {
82
- vertical-align: -.25em;
83
- cursor: pointer;
84
- background-image: url(../../../static/svg/trash.svg);
85
- background-position: center;
86
- background-repeat: no-repeat;
87
- background-size: 16px;
88
- width: 35px;
89
- position: absolute;
90
- top: 0;
91
- bottom: 0;
92
- right: 0;
93
- }
70
+ .link-editor div.link-edit {
71
+ vertical-align: -.25em;
72
+ cursor: pointer;
73
+ background-image: url(../../../static/svg/pencil-fill.svg);
74
+ background-position: center;
75
+ background-repeat: no-repeat;
76
+ background-size: 16px;
77
+ width: 35px;
78
+ position: absolute;
79
+ top: 0;
80
+ bottom: 0;
81
+ right: 30px;
82
+ }
94
83
 
95
- .link-editor .link-input a {
96
- color: #216fdb;
97
- white-space: nowrap;
98
- text-overflow: ellipsis;
99
- margin-right: 30px;
100
- text-decoration: none;
101
- display: block;
102
- overflow: hidden;
103
- }
84
+ .link-editor div.link-trash {
85
+ vertical-align: -.25em;
86
+ cursor: pointer;
87
+ background-image: url(../../../static/svg/trash.svg);
88
+ background-position: center;
89
+ background-repeat: no-repeat;
90
+ background-size: 16px;
91
+ width: 35px;
92
+ position: absolute;
93
+ top: 0;
94
+ bottom: 0;
95
+ right: 0;
96
+ }
104
97
 
105
- .link-editor .link-input a:hover {
106
- text-decoration: underline;
107
- }
98
+ .link-editor .link-input a {
99
+ color: #216fdb;
100
+ white-space: nowrap;
101
+ text-overflow: ellipsis;
102
+ margin-right: 30px;
103
+ text-decoration: none;
104
+ display: block;
105
+ overflow: hidden;
106
+ }
108
107
 
109
- .link-editor .font-size-wrapper, .link-editor .font-family-wrapper {
110
- margin: 0 4px;
111
- display: flex;
112
- }
108
+ .link-editor .link-input a:hover {
109
+ text-decoration: underline;
110
+ }
113
111
 
114
- .link-editor select {
115
- background-color: #00000013;
116
- border: none;
117
- border-radius: 4px;
118
- padding: 6px;
119
- }
112
+ .link-editor .font-size-wrapper, .link-editor .font-family-wrapper {
113
+ margin: 0 4px;
114
+ display: flex;
115
+ }
116
+
117
+ .link-editor select {
118
+ background-color: #00000013;
119
+ border: none;
120
+ border-radius: 4px;
121
+ padding: 6px;
122
+ }
120
123
 
121
- .dark .link-editor {
122
- background-color: var(--canvas-800);
124
+ .dark .link-editor {
125
+ background-color: var(--canvas-800);
126
+ }
123
127
  }
124
128
 
@@ -1,59 +1,63 @@
1
- .byline-link-target-frame {
2
- border: var(--border-width-thin, 1px) var(--border-style-solid, solid) var(--field-border);
3
- border-radius: var(--border-radius-md, 6px);
4
- margin-top: .25rem;
5
- padding: .5rem;
6
- }
7
-
8
- .byline-link-target-tile {
9
- justify-content: space-between;
10
- align-items: flex-start;
11
- gap: var(--spacing-8, .5rem);
12
- padding: var(--spacing-8, .5rem);
13
- border: var(--border-width-thin, 1px) var(--border-style-solid, solid) var(--primary-500);
14
- border-radius: var(--border-radius-md, 6px);
15
- font-size: var(--font-size-xs);
16
- display: flex;
17
- }
18
-
19
- .byline-link-target-summary {
20
- flex-direction: column;
21
- gap: .125rem;
22
- min-width: 0;
23
- display: flex;
24
- }
25
-
26
- .byline-link-target-kind {
27
- color: var(--gray-500);
28
- }
29
-
30
- .byline-link-target-value {
31
- color: var(--gray-900);
32
- text-overflow: ellipsis;
33
- white-space: nowrap;
34
- overflow: hidden;
35
- }
36
-
37
- .byline-link-target-actions {
38
- align-items: center;
39
- gap: var(--spacing-4, .25rem);
40
- flex-shrink: 0;
41
- display: flex;
42
- }
43
-
44
- .byline-link-target-actions .byline-button {
45
- color: var(--gray-900);
46
- }
47
-
48
- :is([data-theme="dark"], .dark) .byline-link-target-frame {
49
- border-color: var(--canvas-700, var(--field-border));
50
- }
51
-
52
- :is([data-theme="dark"], .dark) .byline-link-target-value {
53
- color: var(--gray-100);
54
- }
55
-
56
- :is([data-theme="dark"], .dark) .byline-link-target-actions .byline-button {
57
- color: var(--gray-200);
1
+ @layer base, byline-base, theme, byline-theme, byline-functional, byline-typography, components, byline-components, overrides, byline-utilities, utilities, byline-components.primitives;
2
+
3
+ @layer byline-components.cms {
4
+ .byline-link-target-frame {
5
+ border: var(--border-width-thin, 1px) var(--border-style-solid, solid) var(--field-border);
6
+ border-radius: var(--border-radius-md, 6px);
7
+ margin-top: .25rem;
8
+ padding: .5rem;
9
+ }
10
+
11
+ .byline-link-target-tile {
12
+ justify-content: space-between;
13
+ align-items: flex-start;
14
+ gap: var(--spacing-8, .5rem);
15
+ padding: var(--spacing-8, .5rem);
16
+ border: var(--border-width-thin, 1px) var(--border-style-solid, solid) var(--primary-500);
17
+ border-radius: var(--border-radius-md, 6px);
18
+ font-size: var(--font-size-xs);
19
+ display: flex;
20
+ }
21
+
22
+ .byline-link-target-summary {
23
+ flex-direction: column;
24
+ gap: .125rem;
25
+ min-width: 0;
26
+ display: flex;
27
+ }
28
+
29
+ .byline-link-target-kind {
30
+ color: var(--gray-500);
31
+ }
32
+
33
+ .byline-link-target-value {
34
+ color: var(--gray-900);
35
+ text-overflow: ellipsis;
36
+ white-space: nowrap;
37
+ overflow: hidden;
38
+ }
39
+
40
+ .byline-link-target-actions {
41
+ align-items: center;
42
+ gap: var(--spacing-4, .25rem);
43
+ flex-shrink: 0;
44
+ display: flex;
45
+ }
46
+
47
+ .byline-link-target-actions .byline-button {
48
+ color: var(--gray-900);
49
+ }
50
+
51
+ :is([data-theme="dark"], .dark) .byline-link-target-frame {
52
+ border-color: var(--canvas-700, var(--field-border));
53
+ }
54
+
55
+ :is([data-theme="dark"], .dark) .byline-link-target-value {
56
+ color: var(--gray-100);
57
+ }
58
+
59
+ :is([data-theme="dark"], .dark) .byline-link-target-actions .byline-button {
60
+ color: var(--gray-200);
61
+ }
58
62
  }
59
63
 
@@ -1,6 +1,6 @@
1
- @layer base, byline-base, theme, byline-theme, byline-functional, byline-typography, components;
1
+ @layer base, byline-base, theme, byline-theme, byline-functional, byline-typography, components, byline-components, overrides, byline-utilities, utilities, byline-components.primitives;
2
2
 
3
- @layer byline-components {
3
+ @layer byline-components.cms {
4
4
  .byline-richtext-notice {
5
5
  border-radius: var(--border-radius-sm, 4px);
6
6
  font-size: var(--font-size-sm, .8125rem);
@@ -30,5 +30,3 @@
30
30
  }
31
31
  }
32
32
 
33
- @layer utilities, byline-utilities;
34
-
@@ -1,20 +1,24 @@
1
- .table-modal-container {
2
- min-width: 340px;
3
- max-width: 600px;
4
- }
1
+ @layer base, byline-base, theme, byline-theme, byline-functional, byline-typography, components, byline-components, overrides, byline-utilities, utilities, byline-components.primitives;
5
2
 
6
- .table-modal-header {
7
- margin-bottom: .5rem;
8
- }
3
+ @layer byline-components.cms {
4
+ .table-modal-container {
5
+ min-width: 340px;
6
+ max-width: 600px;
7
+ }
9
8
 
10
- @media screen and (min-width: 640px) {
11
- .table-modal-select {
12
- width: 100%;
13
- margin: 1rem 0 .5rem;
9
+ .table-modal-header {
10
+ margin-bottom: .5rem;
14
11
  }
15
12
 
16
- .table-modal-actions {
17
- margin: 0;
13
+ @media screen and (min-width: 640px) {
14
+ .table-modal-select {
15
+ width: 100%;
16
+ margin: 1rem 0 .5rem;
17
+ }
18
+
19
+ .table-modal-actions {
20
+ margin: 0;
21
+ }
18
22
  }
19
23
  }
20
24