@youcan/celeste 0.6.99 → 0.6.100
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/celeste.css +57 -51
- package/dist/cjs/chunks/extra-settings.cjs +2 -1
- package/dist/cjs/chunks/link-bubble.cjs +4 -1
- package/dist/cjs/chunks/rich-editor.cjs +2 -1
- package/dist/es/chunks/extra-settings.js +2 -1
- package/dist/es/chunks/link-bubble.js +4 -1
- package/dist/es/chunks/rich-editor.js +2 -1
- package/package.json +3 -3
- package/src/components/rich-editor/extra-settings.vue +1 -0
- package/src/components/rich-editor/link-bubble.vue +3 -0
- package/src/components/rich-editor/rich-editor.vue +9 -0
package/dist/celeste.css
CHANGED
|
@@ -3178,10 +3178,10 @@ to {
|
|
|
3178
3178
|
scale: 0.98;
|
|
3179
3179
|
opacity: 0;
|
|
3180
3180
|
}
|
|
3181
|
-
}.show-more-wrapper[data-v-
|
|
3181
|
+
}.show-more-wrapper[data-v-3c432b0c] .i-celeste-arrow-down-s-line {
|
|
3182
3182
|
display: none;
|
|
3183
3183
|
}
|
|
3184
|
-
.celeste-select-item[data-state=checked][data-v-
|
|
3184
|
+
.celeste-select-item[data-state=checked][data-v-3c432b0c] .i-celeste-check-line {
|
|
3185
3185
|
display: none;
|
|
3186
3186
|
}.celeste-file-upload-area[data-v-0e4f337e] {
|
|
3187
3187
|
display: flex;
|
|
@@ -3379,7 +3379,7 @@ to {
|
|
|
3379
3379
|
}
|
|
3380
3380
|
.celeste-switch:hover:not(:active, :disabled)[aria-checked=true] {
|
|
3381
3381
|
--bg-color: var(--color-primary-darker);
|
|
3382
|
-
}.link-bubble[data-v-
|
|
3382
|
+
}.link-bubble[data-v-d757fd2c] {
|
|
3383
3383
|
max-width: calc(100vw - 40px);
|
|
3384
3384
|
padding: var(--spacing-12);
|
|
3385
3385
|
border: 1px solid var(--color-stroke-soft-200);
|
|
@@ -3387,58 +3387,58 @@ to {
|
|
|
3387
3387
|
background-color: var(--color-bg-white-0);
|
|
3388
3388
|
box-shadow: var(--shadow-regular-xs);
|
|
3389
3389
|
}
|
|
3390
|
-
.link-bubble .set-mode[data-v-
|
|
3390
|
+
.link-bubble .set-mode[data-v-d757fd2c] {
|
|
3391
3391
|
display: flex;
|
|
3392
3392
|
flex-direction: column;
|
|
3393
3393
|
gap: var(--spacing-12);
|
|
3394
3394
|
}
|
|
3395
|
-
.link-bubble .set-mode .set-link[data-v-
|
|
3395
|
+
.link-bubble .set-mode .set-link[data-v-d757fd2c] {
|
|
3396
3396
|
display: flex;
|
|
3397
3397
|
gap: var(--spacing-8);
|
|
3398
3398
|
}
|
|
3399
|
-
.link-bubble .set-mode .set-link .link-input[data-v-
|
|
3399
|
+
.link-bubble .set-mode .set-link .link-input[data-v-d757fd2c] {
|
|
3400
3400
|
flex: 1;
|
|
3401
3401
|
min-width: 140px;
|
|
3402
3402
|
}
|
|
3403
|
-
.link-bubble .set-mode .set-link button[data-v-
|
|
3403
|
+
.link-bubble .set-mode .set-link button[data-v-d757fd2c] {
|
|
3404
3404
|
flex-shrink: 0;
|
|
3405
3405
|
white-space: nowrap;
|
|
3406
3406
|
}
|
|
3407
|
-
.link-bubble .set-mode[data-v-
|
|
3407
|
+
.link-bubble .set-mode[data-v-d757fd2c] .celeste-switch[aria-checked='true'] {
|
|
3408
3408
|
background-color: var(--color-neutral-700);
|
|
3409
3409
|
}
|
|
3410
|
-
.link-bubble .set-mode[data-v-
|
|
3410
|
+
.link-bubble .set-mode[data-v-d757fd2c] .celeste-switch[aria-checked='true'] .celeste-switch-thumb::before {
|
|
3411
3411
|
background-color: currentcolor;
|
|
3412
3412
|
}
|
|
3413
|
-
.link-bubble .set-mode .switch-button-box[data-v-
|
|
3413
|
+
.link-bubble .set-mode .switch-button-box[data-v-d757fd2c] {
|
|
3414
3414
|
display: flex;
|
|
3415
3415
|
align-items: center;
|
|
3416
3416
|
gap: var(--spacing-8);
|
|
3417
3417
|
}
|
|
3418
|
-
.link-bubble .edit-mode[data-v-
|
|
3418
|
+
.link-bubble .edit-mode[data-v-d757fd2c] {
|
|
3419
3419
|
display: flex;
|
|
3420
3420
|
align-items: center;
|
|
3421
3421
|
gap: var(--spacing-8);
|
|
3422
3422
|
}
|
|
3423
|
-
.link-bubble .edit-mode .divider[data-v-
|
|
3423
|
+
.link-bubble .edit-mode .divider[data-v-d757fd2c] {
|
|
3424
3424
|
width: 1px;
|
|
3425
3425
|
height: 16px;
|
|
3426
3426
|
margin: 0 3px;
|
|
3427
3427
|
background: var(--color-stroke-soft-200);
|
|
3428
3428
|
}
|
|
3429
|
-
.link-bubble .edit-mode[data-v-
|
|
3429
|
+
.link-bubble .edit-mode[data-v-d757fd2c] .celeste-link-button {
|
|
3430
3430
|
display: flex;
|
|
3431
3431
|
border-radius: var(--radius-8);
|
|
3432
3432
|
color: var(--color-neutral-700);
|
|
3433
3433
|
gap: var(--spacing-8);
|
|
3434
|
-
}.celeste-rich-editor[data-v-
|
|
3434
|
+
}.celeste-rich-editor[data-v-0342e5f9] {
|
|
3435
3435
|
position: relative;
|
|
3436
3436
|
border: 1px solid var(--color-stroke-soft-200);
|
|
3437
3437
|
border-radius: var(--spacing-12);
|
|
3438
3438
|
background: var(--color-bg-white-0);
|
|
3439
3439
|
box-shadow: var(--shadow-regular-xs);
|
|
3440
3440
|
}
|
|
3441
|
-
.celeste-rich-editor .toolbar[data-v-
|
|
3441
|
+
.celeste-rich-editor .toolbar[data-v-0342e5f9] {
|
|
3442
3442
|
display: flex;
|
|
3443
3443
|
flex-wrap: wrap;
|
|
3444
3444
|
align-items: center;
|
|
@@ -3448,121 +3448,127 @@ to {
|
|
|
3448
3448
|
background: var(--color-bg-white-0);
|
|
3449
3449
|
gap: var(--spacing-4);
|
|
3450
3450
|
}
|
|
3451
|
-
.celeste-rich-editor .toolbar[data-v-
|
|
3451
|
+
.celeste-rich-editor .toolbar[data-v-0342e5f9] .celeste-cbutton:active {
|
|
3452
3452
|
background-color: var(--color-bg-weak-50);
|
|
3453
3453
|
box-shadow: none;
|
|
3454
3454
|
color: var(--color-icon-strong-950);
|
|
3455
3455
|
}
|
|
3456
|
-
.celeste-rich-editor .toolbar .celeste-cbutton.active[data-v-
|
|
3456
|
+
.celeste-rich-editor .toolbar .celeste-cbutton.active[data-v-0342e5f9] {
|
|
3457
3457
|
background-color: var(--color-neutral-100);
|
|
3458
3458
|
color: var(--color-icon-strong-950);
|
|
3459
3459
|
}
|
|
3460
|
-
.celeste-rich-editor .toolbar .divider[data-v-
|
|
3460
|
+
.celeste-rich-editor .toolbar .divider[data-v-0342e5f9] {
|
|
3461
3461
|
width: 1px;
|
|
3462
3462
|
height: 16px;
|
|
3463
3463
|
margin: 0 3px;
|
|
3464
3464
|
background: var(--color-stroke-soft-200);
|
|
3465
3465
|
}
|
|
3466
|
-
.celeste-rich-editor .toolbar .extra-settings-wrapper[data-v-
|
|
3466
|
+
.celeste-rich-editor .toolbar .extra-settings-wrapper[data-v-0342e5f9] {
|
|
3467
3467
|
display: flex;
|
|
3468
3468
|
align-items: center;
|
|
3469
3469
|
}
|
|
3470
|
-
.celeste-rich-editor .text-field[data-v-
|
|
3470
|
+
.celeste-rich-editor .text-field[data-v-0342e5f9] {
|
|
3471
3471
|
min-height: 88px;
|
|
3472
3472
|
margin: var(--spacing-12);
|
|
3473
3473
|
padding-inline-end: var(--spacing-12);
|
|
3474
3474
|
overflow-y: auto;
|
|
3475
3475
|
resize: vertical;
|
|
3476
3476
|
}
|
|
3477
|
-
.celeste-rich-editor .text-field[data-v-
|
|
3477
|
+
.celeste-rich-editor .text-field[data-v-0342e5f9] .tiptap {
|
|
3478
3478
|
min-height: 88px;
|
|
3479
3479
|
outline: none;
|
|
3480
3480
|
}
|
|
3481
|
-
.celeste-rich-editor .text-field[data-v-
|
|
3481
|
+
.celeste-rich-editor .text-field[data-v-0342e5f9] .tiptap :first-child {
|
|
3482
3482
|
margin-top: 0;
|
|
3483
3483
|
}
|
|
3484
|
-
.celeste-rich-editor .text-field[data-v-
|
|
3484
|
+
.celeste-rich-editor .text-field[data-v-0342e5f9] .tiptap p.is-editor-empty:first-child::before {
|
|
3485
3485
|
content: attr(data-placeholder);
|
|
3486
3486
|
height: 0;
|
|
3487
3487
|
color: var(--color-neutral-300);
|
|
3488
3488
|
pointer-events: none;
|
|
3489
3489
|
}
|
|
3490
|
-
.celeste-rich-editor .text-field[data-v-
|
|
3491
|
-
.celeste-rich-editor .text-field[data-v-
|
|
3492
|
-
.celeste-rich-editor .text-field[data-v-
|
|
3493
|
-
.celeste-rich-editor .text-field[data-v-
|
|
3494
|
-
.celeste-rich-editor .text-field[data-v-
|
|
3495
|
-
.celeste-rich-editor .text-field[data-v-
|
|
3496
|
-
.celeste-rich-editor .text-field[data-v-
|
|
3490
|
+
.celeste-rich-editor .text-field[data-v-0342e5f9] .tiptap h1,
|
|
3491
|
+
.celeste-rich-editor .text-field[data-v-0342e5f9] .tiptap h2,
|
|
3492
|
+
.celeste-rich-editor .text-field[data-v-0342e5f9] .tiptap h3,
|
|
3493
|
+
.celeste-rich-editor .text-field[data-v-0342e5f9] .tiptap h4,
|
|
3494
|
+
.celeste-rich-editor .text-field[data-v-0342e5f9] .tiptap h5,
|
|
3495
|
+
.celeste-rich-editor .text-field[data-v-0342e5f9] .tiptap h6,
|
|
3496
|
+
.celeste-rich-editor .text-field[data-v-0342e5f9] .tiptap p {
|
|
3497
3497
|
margin-bottom: 0;
|
|
3498
3498
|
}
|
|
3499
|
-
.celeste-rich-editor .text-field[data-v-
|
|
3499
|
+
.celeste-rich-editor .text-field[data-v-0342e5f9] .tiptap h1 {
|
|
3500
3500
|
margin-top: 40px;
|
|
3501
3501
|
font-size: 56px;
|
|
3502
3502
|
font-weight: 500;
|
|
3503
3503
|
letter-spacing: -0.01em;
|
|
3504
3504
|
line-height: 64px;
|
|
3505
3505
|
}
|
|
3506
|
-
.celeste-rich-editor .text-field[data-v-
|
|
3506
|
+
.celeste-rich-editor .text-field[data-v-0342e5f9] .tiptap h2 {
|
|
3507
3507
|
margin-top: 36px;
|
|
3508
3508
|
font-size: 48px;
|
|
3509
3509
|
font-weight: 500;
|
|
3510
3510
|
letter-spacing: -0.01em;
|
|
3511
3511
|
line-height: 56px;
|
|
3512
3512
|
}
|
|
3513
|
-
.celeste-rich-editor .text-field[data-v-
|
|
3513
|
+
.celeste-rich-editor .text-field[data-v-0342e5f9] .tiptap h3 {
|
|
3514
3514
|
margin-top: 32px;
|
|
3515
3515
|
font-size: 40px;
|
|
3516
3516
|
font-weight: 500;
|
|
3517
3517
|
letter-spacing: -0.01em;
|
|
3518
3518
|
line-height: 48px;
|
|
3519
3519
|
}
|
|
3520
|
-
.celeste-rich-editor .text-field[data-v-
|
|
3520
|
+
.celeste-rich-editor .text-field[data-v-0342e5f9] .tiptap h4 {
|
|
3521
3521
|
margin-top: 20px;
|
|
3522
3522
|
font-size: 32px;
|
|
3523
3523
|
font-weight: 500;
|
|
3524
3524
|
letter-spacing: -0.005em;
|
|
3525
3525
|
line-height: 40px;
|
|
3526
3526
|
}
|
|
3527
|
-
.celeste-rich-editor .text-field[data-v-
|
|
3527
|
+
.celeste-rich-editor .text-field[data-v-0342e5f9] .tiptap h5 {
|
|
3528
3528
|
margin-top: 20px;
|
|
3529
3529
|
font-size: 24px;
|
|
3530
3530
|
font-weight: 500;
|
|
3531
3531
|
letter-spacing: 0;
|
|
3532
3532
|
line-height: 32px;
|
|
3533
3533
|
}
|
|
3534
|
-
.celeste-rich-editor .text-field[data-v-
|
|
3534
|
+
.celeste-rich-editor .text-field[data-v-0342e5f9] .tiptap h6 {
|
|
3535
3535
|
margin-top: 16px;
|
|
3536
3536
|
font-size: 20px;
|
|
3537
3537
|
font-weight: 500;
|
|
3538
3538
|
letter-spacing: 0;
|
|
3539
3539
|
line-height: 28px;
|
|
3540
3540
|
}
|
|
3541
|
-
.celeste-rich-editor .text-field[data-v-
|
|
3541
|
+
.celeste-rich-editor .text-field[data-v-0342e5f9] .tiptap p {
|
|
3542
3542
|
margin-top: 12px;
|
|
3543
3543
|
font-size: 16px;
|
|
3544
3544
|
font-weight: 400;
|
|
3545
3545
|
letter-spacing: -0.011em;
|
|
3546
3546
|
line-height: 24px;
|
|
3547
3547
|
}
|
|
3548
|
-
.celeste-rich-editor .text-field[data-v-
|
|
3549
|
-
.celeste-rich-editor .text-field[data-v-
|
|
3548
|
+
.celeste-rich-editor .text-field[data-v-0342e5f9] .tiptap ul,
|
|
3549
|
+
.celeste-rich-editor .text-field[data-v-0342e5f9] .tiptap ol {
|
|
3550
3550
|
margin: 1.25rem 1rem 1.25rem 0.4rem;
|
|
3551
3551
|
padding: 0 1rem;
|
|
3552
3552
|
}
|
|
3553
|
-
.celeste-rich-editor .text-field[data-v-
|
|
3554
|
-
.celeste-rich-editor .text-field[data-v-
|
|
3553
|
+
.celeste-rich-editor .text-field[data-v-0342e5f9] .tiptap ul li p,
|
|
3554
|
+
.celeste-rich-editor .text-field[data-v-0342e5f9] .tiptap ol li p {
|
|
3555
3555
|
margin-top: 0.25em;
|
|
3556
3556
|
margin-bottom: 0.25em;
|
|
3557
3557
|
}
|
|
3558
|
-
.celeste-rich-editor .text-field[data-v-
|
|
3558
|
+
.celeste-rich-editor .text-field[data-v-0342e5f9] .tiptap ul {
|
|
3559
|
+
list-style-type: disc;
|
|
3560
|
+
}
|
|
3561
|
+
.celeste-rich-editor .text-field[data-v-0342e5f9] .tiptap ol {
|
|
3562
|
+
list-style-type: decimal;
|
|
3563
|
+
}
|
|
3564
|
+
.celeste-rich-editor .text-field[data-v-0342e5f9] .tiptap a {
|
|
3559
3565
|
color: var(--color-blue-700);
|
|
3560
3566
|
cursor: pointer;
|
|
3561
3567
|
}
|
|
3562
|
-
.celeste-rich-editor .text-field[data-v-
|
|
3568
|
+
.celeste-rich-editor .text-field[data-v-0342e5f9] .tiptap a:hover {
|
|
3563
3569
|
color: var(--color-blue-500);
|
|
3564
3570
|
}
|
|
3565
|
-
.celeste-rich-editor .characters-count[data-v-
|
|
3571
|
+
.celeste-rich-editor .characters-count[data-v-0342e5f9] {
|
|
3566
3572
|
position: absolute;
|
|
3567
3573
|
bottom: 7px;
|
|
3568
3574
|
inset-inline-end: 22px;
|
|
@@ -3574,23 +3580,23 @@ to {
|
|
|
3574
3580
|
color: var(--color-text-soft-400);
|
|
3575
3581
|
font: var(--subheading-xxs);
|
|
3576
3582
|
}
|
|
3577
|
-
.celeste-rich-editor .characters-count.warning[data-v-
|
|
3583
|
+
.celeste-rich-editor .characters-count.warning[data-v-0342e5f9] {
|
|
3578
3584
|
color: var(--color-state-warning-base);
|
|
3579
3585
|
}
|
|
3580
|
-
.celeste-rich-editor .characters-count.danger[data-v-
|
|
3586
|
+
.celeste-rich-editor .characters-count.danger[data-v-0342e5f9] {
|
|
3581
3587
|
color: var(--color-state-error-base);
|
|
3582
3588
|
}
|
|
3583
|
-
.celeste-rich-editor .select-menu-wrapper[data-v-
|
|
3589
|
+
.celeste-rich-editor .select-menu-wrapper[data-v-0342e5f9] {
|
|
3584
3590
|
padding: 0 var(--spacing-4);
|
|
3585
3591
|
}
|
|
3586
|
-
.celeste-rich-editor[data-v-
|
|
3587
|
-
.celeste-rich-editor[data-v-
|
|
3592
|
+
.celeste-rich-editor[data-v-0342e5f9]:dir(rtl) .i-celeste-arrow-go-back-line,
|
|
3593
|
+
.celeste-rich-editor[data-v-0342e5f9]:dir(rtl) .i-celeste-arrow-go-forward-line {
|
|
3588
3594
|
transform: scaleX(-1);
|
|
3589
3595
|
}
|
|
3590
|
-
.celeste-rich-editor[data-v-
|
|
3596
|
+
.celeste-rich-editor[data-v-0342e5f9] .tippy-box[data-theme='custom'] {
|
|
3591
3597
|
max-width: 400px !important;
|
|
3592
3598
|
}
|
|
3593
|
-
.celeste-select-item[data-state=checked][data-v-
|
|
3599
|
+
.celeste-select-item[data-state=checked][data-v-0342e5f9] .i-celeste-check-line {
|
|
3594
3600
|
display: none;
|
|
3595
3601
|
}
|
|
3596
3602
|
.sonner-alert[data-v-37e85563] {
|
|
@@ -93,6 +93,7 @@ var extra_settings_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */
|
|
|
93
93
|
variant: "dark"
|
|
94
94
|
}, {
|
|
95
95
|
default: (0, vue.withCtx)(() => [(0, vue.createVNode)(require_compact_button.compact_button_default, {
|
|
96
|
+
type: "button",
|
|
96
97
|
icon: "i-celeste-more-2-line",
|
|
97
98
|
variant: "ghost"
|
|
98
99
|
})]),
|
|
@@ -124,7 +125,7 @@ var extra_settings_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */
|
|
|
124
125
|
});
|
|
125
126
|
//#endregion
|
|
126
127
|
//#region src/components/rich-editor/extra-settings.vue
|
|
127
|
-
var extra_settings_default = /* @__PURE__ */ require__plugin_vue_export_helper._plugin_vue_export_helper_default(extra_settings_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
128
|
+
var extra_settings_default = /* @__PURE__ */ require__plugin_vue_export_helper._plugin_vue_export_helper_default(extra_settings_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-3c432b0c"]]);
|
|
128
129
|
//#endregion
|
|
129
130
|
Object.defineProperty(exports, "extra_settings_default", {
|
|
130
131
|
enumerable: true,
|
|
@@ -144,6 +144,7 @@ var link_bubble_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0
|
|
|
144
144
|
})]),
|
|
145
145
|
_: 1
|
|
146
146
|
}, 8, ["modelValue"]), (0, vue.createVNode)(require_button.button_default, {
|
|
147
|
+
type: "button",
|
|
147
148
|
intent: "neutral",
|
|
148
149
|
size: "xs",
|
|
149
150
|
variant: "stroke",
|
|
@@ -169,12 +170,14 @@ var link_bubble_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0
|
|
|
169
170
|
}, 8, ["href", "target"]),
|
|
170
171
|
_cache[5] || (_cache[5] = (0, vue.createElementVNode)("div", { class: "divider" }, null, -1)),
|
|
171
172
|
(0, vue.createVNode)(require_compact_button.compact_button_default, {
|
|
173
|
+
type: "button",
|
|
172
174
|
icon: "i-celeste-edit-line",
|
|
173
175
|
size: "lg",
|
|
174
176
|
variant: "ghost",
|
|
175
177
|
onClick: startEdit
|
|
176
178
|
}),
|
|
177
179
|
(0, vue.createVNode)(require_compact_button.compact_button_default, {
|
|
180
|
+
type: "button",
|
|
178
181
|
icon: "i-celeste-delete-bin-line",
|
|
179
182
|
size: "lg",
|
|
180
183
|
variant: "ghost",
|
|
@@ -188,7 +191,7 @@ var link_bubble_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0
|
|
|
188
191
|
});
|
|
189
192
|
//#endregion
|
|
190
193
|
//#region src/components/rich-editor/link-bubble.vue
|
|
191
|
-
var link_bubble_default = /* @__PURE__ */ require__plugin_vue_export_helper._plugin_vue_export_helper_default(link_bubble_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
194
|
+
var link_bubble_default = /* @__PURE__ */ require__plugin_vue_export_helper._plugin_vue_export_helper_default(link_bubble_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-d757fd2c"]]);
|
|
192
195
|
//#endregion
|
|
193
196
|
Object.defineProperty(exports, "link_bubble_default", {
|
|
194
197
|
enumerable: true,
|
|
@@ -5107,6 +5107,7 @@ var rich_editor_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0
|
|
|
5107
5107
|
variant: "dark"
|
|
5108
5108
|
}, {
|
|
5109
5109
|
default: (0, vue.withCtx)(() => [(0, vue.createVNode)(require_compact_button.compact_button_default, {
|
|
5110
|
+
type: "button",
|
|
5110
5111
|
icon: `${item.icon}`,
|
|
5111
5112
|
variant: "ghost",
|
|
5112
5113
|
class: (0, vue.normalizeClass)({ active: typeof item.active === "string" && editor.value.isActive(item.active) }),
|
|
@@ -5177,7 +5178,7 @@ var rich_editor_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0
|
|
|
5177
5178
|
});
|
|
5178
5179
|
//#endregion
|
|
5179
5180
|
//#region src/components/rich-editor/rich-editor.vue
|
|
5180
|
-
var rich_editor_default = /* @__PURE__ */ require__plugin_vue_export_helper._plugin_vue_export_helper_default(rich_editor_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
5181
|
+
var rich_editor_default = /* @__PURE__ */ require__plugin_vue_export_helper._plugin_vue_export_helper_default(rich_editor_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-0342e5f9"]]);
|
|
5181
5182
|
//#endregion
|
|
5182
5183
|
Object.defineProperty(exports, "rich_editor_default", {
|
|
5183
5184
|
enumerable: true,
|
|
@@ -94,6 +94,7 @@ var extra_settings_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/
|
|
|
94
94
|
variant: "dark"
|
|
95
95
|
}, {
|
|
96
96
|
default: withCtx(() => [createVNode(compact_button_default, {
|
|
97
|
+
type: "button",
|
|
97
98
|
icon: "i-celeste-more-2-line",
|
|
98
99
|
variant: "ghost"
|
|
99
100
|
})]),
|
|
@@ -122,6 +123,6 @@ var extra_settings_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/
|
|
|
122
123
|
}, 8, ["modelValue"])]);
|
|
123
124
|
};
|
|
124
125
|
}
|
|
125
|
-
}), [["__scopeId", "data-v-
|
|
126
|
+
}), [["__scopeId", "data-v-3c432b0c"]]);
|
|
126
127
|
//#endregion
|
|
127
128
|
export { extra_settings_default as t };
|
|
@@ -145,6 +145,7 @@ var link_bubble_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @
|
|
|
145
145
|
})]),
|
|
146
146
|
_: 1
|
|
147
147
|
}, 8, ["modelValue"]), createVNode(button_default, {
|
|
148
|
+
type: "button",
|
|
148
149
|
intent: "neutral",
|
|
149
150
|
size: "xs",
|
|
150
151
|
variant: "stroke",
|
|
@@ -170,12 +171,14 @@ var link_bubble_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @
|
|
|
170
171
|
}, 8, ["href", "target"]),
|
|
171
172
|
_cache[5] || (_cache[5] = createElementVNode("div", { class: "divider" }, null, -1)),
|
|
172
173
|
createVNode(compact_button_default, {
|
|
174
|
+
type: "button",
|
|
173
175
|
icon: "i-celeste-edit-line",
|
|
174
176
|
size: "lg",
|
|
175
177
|
variant: "ghost",
|
|
176
178
|
onClick: startEdit
|
|
177
179
|
}),
|
|
178
180
|
createVNode(compact_button_default, {
|
|
181
|
+
type: "button",
|
|
179
182
|
icon: "i-celeste-delete-bin-line",
|
|
180
183
|
size: "lg",
|
|
181
184
|
variant: "ghost",
|
|
@@ -186,6 +189,6 @@ var link_bubble_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @
|
|
|
186
189
|
}, 8, ["editor"]);
|
|
187
190
|
};
|
|
188
191
|
}
|
|
189
|
-
}), [["__scopeId", "data-v-
|
|
192
|
+
}), [["__scopeId", "data-v-d757fd2c"]]);
|
|
190
193
|
//#endregion
|
|
191
194
|
export { link_bubble_default as t };
|
|
@@ -5108,6 +5108,7 @@ var rich_editor_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @
|
|
|
5108
5108
|
variant: "dark"
|
|
5109
5109
|
}, {
|
|
5110
5110
|
default: withCtx(() => [createVNode(compact_button_default, {
|
|
5111
|
+
type: "button",
|
|
5111
5112
|
icon: `${item.icon}`,
|
|
5112
5113
|
variant: "ghost",
|
|
5113
5114
|
class: normalizeClass({ active: typeof item.active === "string" && editor.value.isActive(item.active) }),
|
|
@@ -5175,6 +5176,6 @@ var rich_editor_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @
|
|
|
5175
5176
|
])) : createCommentVNode("", true);
|
|
5176
5177
|
};
|
|
5177
5178
|
}
|
|
5178
|
-
}), [["__scopeId", "data-v-
|
|
5179
|
+
}), [["__scopeId", "data-v-0342e5f9"]]);
|
|
5179
5180
|
//#endregion
|
|
5180
5181
|
export { rich_editor_default as t };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@youcan/celeste",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.100",
|
|
5
5
|
"author": "YouCan <tech@youcan.shop>",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"radix-vue": "^1.9.17",
|
|
49
49
|
"tinycolor2": "^1.6.0",
|
|
50
50
|
"vue-sonner": "^2.0.9",
|
|
51
|
-
"@youcan/celeste-icons": "0.6.
|
|
52
|
-
"@youcan/celeste-tokens": "0.6.
|
|
51
|
+
"@youcan/celeste-icons": "0.6.100",
|
|
52
|
+
"@youcan/celeste-tokens": "0.6.100"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@chromatic-com/storybook": "^4.1.3",
|
|
@@ -202,6 +202,7 @@ onUnmounted(() => {
|
|
|
202
202
|
</template>
|
|
203
203
|
</TextInput>
|
|
204
204
|
<Button
|
|
205
|
+
type="button"
|
|
205
206
|
intent="neutral"
|
|
206
207
|
size="xs"
|
|
207
208
|
variant="stroke"
|
|
@@ -230,12 +231,14 @@ onUnmounted(() => {
|
|
|
230
231
|
</LinkButton>
|
|
231
232
|
<div class="divider" />
|
|
232
233
|
<CompactButton
|
|
234
|
+
type="button"
|
|
233
235
|
icon="i-celeste-edit-line"
|
|
234
236
|
size="lg"
|
|
235
237
|
variant="ghost"
|
|
236
238
|
@click="startEdit"
|
|
237
239
|
/>
|
|
238
240
|
<CompactButton
|
|
241
|
+
type="button"
|
|
239
242
|
icon="i-celeste-delete-bin-line"
|
|
240
243
|
size="lg"
|
|
241
244
|
variant="ghost"
|
|
@@ -154,6 +154,7 @@ onBeforeUnmount(() => {
|
|
|
154
154
|
variant="dark"
|
|
155
155
|
>
|
|
156
156
|
<CompactButton
|
|
157
|
+
type="button"
|
|
157
158
|
:icon="`${item.icon}`"
|
|
158
159
|
variant="ghost"
|
|
159
160
|
:class="{ active: typeof item.active === 'string' && editor.isActive(item.active) }"
|
|
@@ -373,6 +374,14 @@ onBeforeUnmount(() => {
|
|
|
373
374
|
}
|
|
374
375
|
}
|
|
375
376
|
|
|
377
|
+
ul {
|
|
378
|
+
list-style-type: disc;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
ol {
|
|
382
|
+
list-style-type: decimal;
|
|
383
|
+
}
|
|
384
|
+
|
|
376
385
|
a {
|
|
377
386
|
color: var(--color-blue-700);
|
|
378
387
|
cursor: pointer;
|