@crystallize/design-system 1.13.0 → 1.14.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.
- package/CHANGELOG.md +18 -0
- package/dist/index.css +44 -42
- package/dist/index.js +3039 -3177
- package/dist/index.mjs +3039 -3177
- package/package.json +19 -19
- package/src/rich-text-editor/i18n/translations/en.ts +2 -2
- package/src/rich-text-editor/plugins/CodeActionMenuPlugin/index.css +8 -19
- package/src/rich-text-editor/plugins/CodeActionMenuPlugin/index.tsx +1 -1
- package/src/rich-text-editor/rich-text-editor.css +40 -46
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @crystallize/design-system
|
|
2
2
|
|
|
3
|
+
## 1.14.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 97f6c34: Clean up the visuals of the code block in rich text editor
|
|
8
|
+
|
|
9
|
+
## 1.13.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- a86c6794: It was found that all of a sudden storybook build time increased significantly. The issue was isolated to update on the pnpm.lock file. Since a lot of packages changed the cause for the issue was not found. To fix this, the pnpm.lock file from before the issue was taken and packages that were changed after that were installed again. Thus the build time to back to just a few seconds.
|
|
14
|
+
|
|
15
|
+
## 1.13.1
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- 1fb6f91: Fix typo in table actions menu
|
|
20
|
+
|
|
3
21
|
## 1.13.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
package/dist/index.css
CHANGED
|
@@ -2145,58 +2145,66 @@ button {
|
|
|
2145
2145
|
|
|
2146
2146
|
/* src/rich-text-editor/plugins/CodeActionMenuPlugin/index.css */
|
|
2147
2147
|
.c-rte-code-action-menu-container {
|
|
2148
|
-
height:
|
|
2149
|
-
font-size: 10px;
|
|
2150
|
-
color: rgba(0, 0, 0, 0.5);
|
|
2148
|
+
height: 37px;
|
|
2151
2149
|
position: absolute;
|
|
2152
2150
|
display: flex;
|
|
2153
2151
|
align-items: center;
|
|
2154
2152
|
flex-direction: row;
|
|
2155
2153
|
user-select: none;
|
|
2154
|
+
border-radius: 0.375rem;
|
|
2155
|
+
background-color: rgb(var(--c-color-gray-100-800) / 0.75);
|
|
2156
|
+
padding-left: 0.75rem;
|
|
2157
|
+
padding-right: 0.75rem;
|
|
2158
|
+
font-size: 0.75rem;
|
|
2159
|
+
line-height: 1rem;
|
|
2160
|
+
--tw-text-opacity: 1;
|
|
2161
|
+
color: rgb(var(--c-color-gray-700-200) / var(--tw-text-opacity));
|
|
2156
2162
|
}
|
|
2157
2163
|
.c-rte-code-highlight-language {
|
|
2158
2164
|
margin-right: 4px;
|
|
2159
2165
|
}
|
|
2160
2166
|
.c-rte-code-button {
|
|
2167
|
+
border-radius: 0.125rem;
|
|
2168
|
+
padding: 0.25rem;
|
|
2161
2169
|
border: 1px solid transparent;
|
|
2162
|
-
border-radius: 4px;
|
|
2163
|
-
padding: 4px;
|
|
2164
2170
|
background: none;
|
|
2165
2171
|
cursor: pointer;
|
|
2166
2172
|
flex-shrink: 0;
|
|
2167
2173
|
display: flex;
|
|
2168
2174
|
align-items: center;
|
|
2169
|
-
color: rgba(0, 0, 0, 0.5);
|
|
2170
2175
|
text-transform: uppercase;
|
|
2171
2176
|
}
|
|
2172
2177
|
.c-rte-code-button:hover {
|
|
2173
|
-
border:
|
|
2178
|
+
border-color: rgb(var(--c-color-gray-900-50) / 0.3);
|
|
2174
2179
|
opacity: 0.9;
|
|
2175
2180
|
}
|
|
2176
2181
|
.c-rte-code-button:active {
|
|
2177
|
-
|
|
2178
|
-
|
|
2182
|
+
border-color: rgb(var(--c-color-gray-900-50) / 0.5);
|
|
2183
|
+
--tw-bg-opacity: 1;
|
|
2184
|
+
background-color: rgb(var(--c-color-gray-50-900) / var(--tw-bg-opacity));
|
|
2179
2185
|
}
|
|
2180
2186
|
.c-rte-code-button__icon {
|
|
2181
2187
|
height: 16px;
|
|
2182
2188
|
width: 16px;
|
|
2183
2189
|
opacity: 0.6;
|
|
2184
2190
|
display: flex;
|
|
2185
|
-
color: rgba(0, 0, 0, 0.5);
|
|
2186
2191
|
background-size: contain;
|
|
2192
|
+
color: rgb(var(--c-color-gray));
|
|
2187
2193
|
}
|
|
2188
2194
|
.c-rte-prettier-wrapper {
|
|
2189
2195
|
position: relative;
|
|
2190
2196
|
}
|
|
2191
2197
|
.c-rte-code-error-tips {
|
|
2192
|
-
padding: 5px;
|
|
2193
|
-
border-radius: 4px;
|
|
2194
|
-
color: #fff;
|
|
2195
|
-
background: #222;
|
|
2196
|
-
margin-top: 4px;
|
|
2197
2198
|
position: absolute;
|
|
2199
|
+
right: 0px;
|
|
2198
2200
|
top: 26px;
|
|
2199
|
-
|
|
2201
|
+
margin-top: 0.5rem;
|
|
2202
|
+
border-radius: 0.25rem;
|
|
2203
|
+
--tw-bg-opacity: 1;
|
|
2204
|
+
background-color: rgb(var(--c-color-gray-200-700) / var(--tw-bg-opacity));
|
|
2205
|
+
padding: 0.75rem;
|
|
2206
|
+
--tw-text-opacity: 1;
|
|
2207
|
+
color: rgb(var(--c-color-gray-900-50) / var(--tw-text-opacity));
|
|
2200
2208
|
}
|
|
2201
2209
|
|
|
2202
2210
|
/* src/rich-text-editor/plugins/DraggableBlockPlugin/index.css */
|
|
@@ -2527,7 +2535,7 @@ button {
|
|
|
2527
2535
|
padding-bottom: 8px;
|
|
2528
2536
|
min-height: calc(var(--c-rte-min-height) - 8px);
|
|
2529
2537
|
}
|
|
2530
|
-
.c-rich-text-editor pre {
|
|
2538
|
+
.c-rich-text-editor [contenteditable] pre {
|
|
2531
2539
|
line-height: 1.1;
|
|
2532
2540
|
color: #fff;
|
|
2533
2541
|
margin: 0;
|
|
@@ -2539,41 +2547,21 @@ button {
|
|
|
2539
2547
|
font-size: 0.875rem;
|
|
2540
2548
|
line-height: 1.25rem;
|
|
2541
2549
|
}
|
|
2542
|
-
.c-rich-text-editor pre::-webkit-scrollbar {
|
|
2550
|
+
.c-rich-text-editor [contenteditable] pre::-webkit-scrollbar {
|
|
2543
2551
|
background: transparent;
|
|
2544
2552
|
width: 10px;
|
|
2545
2553
|
}
|
|
2546
|
-
.c-rich-text-editor pre::-webkit-scrollbar-thumb {
|
|
2554
|
+
.c-rich-text-editor [contenteditable] pre::-webkit-scrollbar-thumb {
|
|
2547
2555
|
background: #999;
|
|
2548
2556
|
}
|
|
2549
|
-
.c-rich-text-editor [
|
|
2550
|
-
height: 1px;
|
|
2551
|
-
--tw-bg-opacity: 1;
|
|
2552
|
-
background-color: rgb(var(--c-color-gray-200-700) / var(--tw-bg-opacity));
|
|
2553
|
-
}
|
|
2554
|
-
.c-rich-text-editor .ltr {
|
|
2555
|
-
text-align: left;
|
|
2556
|
-
}
|
|
2557
|
-
.c-rich-text-editor .rtl {
|
|
2558
|
-
text-align: right;
|
|
2559
|
-
}
|
|
2560
|
-
.c-rich-text-editor button.item i {
|
|
2561
|
-
opacity: 0.6;
|
|
2562
|
-
}
|
|
2563
|
-
.c-rich-text-editor button.item.dropdown-item-active {
|
|
2564
|
-
background-color: rgba(223, 232, 250, 0.3);
|
|
2565
|
-
}
|
|
2566
|
-
.c-rich-text-editor button.item.dropdown-item-active i {
|
|
2567
|
-
opacity: 1;
|
|
2568
|
-
}
|
|
2569
|
-
.c-rich-text-editor hr {
|
|
2557
|
+
.c-rich-text-editor [contenteditable] hr {
|
|
2570
2558
|
padding: 4px 0;
|
|
2571
2559
|
border: 1px solid red;
|
|
2572
2560
|
border: none;
|
|
2573
2561
|
margin: 1em 0;
|
|
2574
2562
|
cursor: pointer;
|
|
2575
2563
|
}
|
|
2576
|
-
.c-rich-text-editor hr:after {
|
|
2564
|
+
.c-rich-text-editor [contenteditable] hr:after {
|
|
2577
2565
|
content: "";
|
|
2578
2566
|
display: block;
|
|
2579
2567
|
height: 1px;
|
|
@@ -2582,10 +2570,24 @@ button {
|
|
|
2582
2570
|
--tw-bg-opacity: 1;
|
|
2583
2571
|
background-color: rgb(var(--c-color-purple-100-800) / var(--tw-bg-opacity));
|
|
2584
2572
|
}
|
|
2585
|
-
.c-rich-text-editor hr.selected {
|
|
2573
|
+
.c-rich-text-editor [contenteditable] hr.selected {
|
|
2586
2574
|
outline: 2px solid rgb(60, 132, 244);
|
|
2587
2575
|
user-select: none;
|
|
2588
2576
|
}
|
|
2577
|
+
.c-rich-text-editor [role=separator] {
|
|
2578
|
+
height: 1px;
|
|
2579
|
+
--tw-bg-opacity: 1;
|
|
2580
|
+
background-color: rgb(var(--c-color-gray-200-700) / var(--tw-bg-opacity));
|
|
2581
|
+
}
|
|
2582
|
+
.c-rich-text-editor .ltr {
|
|
2583
|
+
text-align: left;
|
|
2584
|
+
}
|
|
2585
|
+
.c-rich-text-editor .rtl {
|
|
2586
|
+
text-align: right;
|
|
2587
|
+
}
|
|
2588
|
+
.c-rich-text-editor button.item i {
|
|
2589
|
+
opacity: 0.6;
|
|
2590
|
+
}
|
|
2589
2591
|
.c-rich-text-editor .TableNode__contentEditable {
|
|
2590
2592
|
min-height: 20px;
|
|
2591
2593
|
border: 0px;
|