@vanduo-oss/framework 1.4.3 → 1.4.5
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/README.md +21 -4
- package/css/components/draggable.css +4 -0
- package/css/components/forms.css +1 -0
- package/css/components/theme-switcher.css +129 -0
- package/css/vanduo.css +1 -0
- package/dist/build-info.json +3 -3
- package/dist/vanduo.cjs.js +244 -15
- package/dist/vanduo.cjs.js.map +2 -2
- package/dist/vanduo.cjs.min.js +6 -6
- package/dist/vanduo.cjs.min.js.map +3 -3
- package/dist/vanduo.css +122 -1
- package/dist/vanduo.css.map +1 -1
- package/dist/vanduo.esm.js +244 -15
- package/dist/vanduo.esm.js.map +2 -2
- package/dist/vanduo.esm.min.js +6 -6
- package/dist/vanduo.esm.min.js.map +3 -3
- package/dist/vanduo.js +244 -15
- package/dist/vanduo.js.map +2 -2
- package/dist/vanduo.min.css +2 -2
- package/dist/vanduo.min.css.map +1 -1
- package/dist/vanduo.min.js +6 -6
- package/dist/vanduo.min.js.map +3 -3
- package/js/components/code-snippet.js +14 -8
- package/js/components/theme-switcher.js +290 -29
- package/package.json +5 -5
package/dist/vanduo.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Vanduo v1.4.
|
|
1
|
+
/*! Vanduo v1.4.5 | Built: 2026-06-11T18:11:31.153Z | git:70ed923 | development */
|
|
2
2
|
*, :before, :after {
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
}
|
|
@@ -53576,6 +53576,7 @@ a.vd-btn, a.vd-btn:hover {
|
|
|
53576
53576
|
white-space: nowrap;
|
|
53577
53577
|
background-color: var(--vd-bg-secondary);
|
|
53578
53578
|
border: var(--vd-input-border-width) solid var(--vd-input-border-color);
|
|
53579
|
+
background-clip: padding-box;
|
|
53579
53580
|
align-items: center;
|
|
53580
53581
|
display: flex;
|
|
53581
53582
|
}
|
|
@@ -61284,6 +61285,122 @@ body > .vd-theme-customizer-panel.is-open {
|
|
|
61284
61285
|
outline-offset: 1px;
|
|
61285
61286
|
}
|
|
61286
61287
|
|
|
61288
|
+
:root {
|
|
61289
|
+
--vd-theme-switcher-menu-bg: var(--vd-color-white);
|
|
61290
|
+
--vd-theme-switcher-menu-border-color: var(--vd-border-color);
|
|
61291
|
+
--vd-theme-switcher-option-hover-bg: var(--vd-bg-secondary);
|
|
61292
|
+
--vd-theme-switcher-option-active-bg: var(--vd-color-primary-alpha-10);
|
|
61293
|
+
--vd-theme-switcher-option-active-color: var(--vd-color-primary);
|
|
61294
|
+
--vd-theme-switcher-z-index: 1000;
|
|
61295
|
+
}
|
|
61296
|
+
|
|
61297
|
+
[data-theme="dark"] {
|
|
61298
|
+
--vd-theme-switcher-menu-bg: var(--vd-bg-primary);
|
|
61299
|
+
--vd-theme-switcher-option-hover-bg: var(--vd-bg-secondary);
|
|
61300
|
+
}
|
|
61301
|
+
|
|
61302
|
+
@media (prefers-color-scheme: dark) {
|
|
61303
|
+
:root:not([data-theme]) {
|
|
61304
|
+
--vd-theme-switcher-menu-bg: var(--vd-bg-primary);
|
|
61305
|
+
--vd-theme-switcher-option-hover-bg: var(--vd-bg-secondary);
|
|
61306
|
+
}
|
|
61307
|
+
}
|
|
61308
|
+
|
|
61309
|
+
.vd-theme-switcher {
|
|
61310
|
+
display: inline-block;
|
|
61311
|
+
position: relative;
|
|
61312
|
+
}
|
|
61313
|
+
|
|
61314
|
+
.vd-theme-switcher-toggle {
|
|
61315
|
+
border: 1px solid var(--vd-border-color);
|
|
61316
|
+
border-radius: var(--vd-btn-border-radius, var(--vd-card-border-radius));
|
|
61317
|
+
width: 2.375rem;
|
|
61318
|
+
height: 2.375rem;
|
|
61319
|
+
color: var(--vd-text-secondary);
|
|
61320
|
+
cursor: pointer;
|
|
61321
|
+
background: none;
|
|
61322
|
+
justify-content: center;
|
|
61323
|
+
align-items: center;
|
|
61324
|
+
padding: 0;
|
|
61325
|
+
font-size: 1.15rem;
|
|
61326
|
+
line-height: 1;
|
|
61327
|
+
transition: color .2s, border-color .2s, background .2s;
|
|
61328
|
+
display: inline-flex;
|
|
61329
|
+
}
|
|
61330
|
+
|
|
61331
|
+
.vd-theme-switcher-toggle:hover, .vd-theme-switcher-toggle:focus-visible {
|
|
61332
|
+
color: var(--vd-color-primary);
|
|
61333
|
+
border-color: var(--vd-color-primary);
|
|
61334
|
+
background: var(--vd-color-primary-alpha-10);
|
|
61335
|
+
outline: none;
|
|
61336
|
+
}
|
|
61337
|
+
|
|
61338
|
+
.vd-theme-switcher-menu {
|
|
61339
|
+
z-index: var(--vd-theme-switcher-z-index);
|
|
61340
|
+
background: var(--vd-theme-switcher-menu-bg, #fff);
|
|
61341
|
+
border: 1px solid var(--vd-theme-switcher-menu-border-color);
|
|
61342
|
+
border-radius: var(--vd-btn-border-radius, var(--vd-card-border-radius));
|
|
61343
|
+
min-width: auto;
|
|
61344
|
+
box-shadow: var(--vd-shadow-lg);
|
|
61345
|
+
isolation: isolate;
|
|
61346
|
+
-webkit-backdrop-filter: none;
|
|
61347
|
+
visibility: hidden;
|
|
61348
|
+
pointer-events: none;
|
|
61349
|
+
transition: visibility var(--vd-transition-duration-base, .2s) var(--vd-transition-ease, ease),
|
|
61350
|
+
transform var(--vd-transition-duration-base, .2s) var(--vd-transition-ease, ease);
|
|
61351
|
+
flex-direction: column;
|
|
61352
|
+
gap: .25rem;
|
|
61353
|
+
margin: 0;
|
|
61354
|
+
padding: .375rem;
|
|
61355
|
+
list-style: none;
|
|
61356
|
+
display: none;
|
|
61357
|
+
position: absolute;
|
|
61358
|
+
top: calc(100% + .375rem);
|
|
61359
|
+
left: 0;
|
|
61360
|
+
transform: translateY(-6px);
|
|
61361
|
+
}
|
|
61362
|
+
|
|
61363
|
+
.vd-theme-switcher-menu-end .vd-theme-switcher-menu, .vd-theme-switcher.vd-theme-switcher-menu-end .vd-theme-switcher-menu {
|
|
61364
|
+
left: auto;
|
|
61365
|
+
right: 0;
|
|
61366
|
+
}
|
|
61367
|
+
|
|
61368
|
+
.vd-theme-switcher.is-open .vd-theme-switcher-menu, .vd-theme-switcher-menu.is-open {
|
|
61369
|
+
visibility: visible;
|
|
61370
|
+
pointer-events: auto;
|
|
61371
|
+
display: flex;
|
|
61372
|
+
transform: translateY(0);
|
|
61373
|
+
}
|
|
61374
|
+
|
|
61375
|
+
.vd-theme-switcher-option, .vd-theme-switcher-menu [data-theme-value] {
|
|
61376
|
+
border-radius: var(--vd-btn-border-radius-sm, var(--vd-radius-fib-3));
|
|
61377
|
+
width: 2.375rem;
|
|
61378
|
+
height: 2.375rem;
|
|
61379
|
+
color: var(--vd-text-secondary);
|
|
61380
|
+
cursor: pointer;
|
|
61381
|
+
background: none;
|
|
61382
|
+
border: 1px solid #0000;
|
|
61383
|
+
justify-content: center;
|
|
61384
|
+
align-items: center;
|
|
61385
|
+
padding: 0;
|
|
61386
|
+
font-size: 1.15rem;
|
|
61387
|
+
line-height: 1;
|
|
61388
|
+
transition: color .2s, background .2s, border-color .2s;
|
|
61389
|
+
display: inline-flex;
|
|
61390
|
+
}
|
|
61391
|
+
|
|
61392
|
+
.vd-theme-switcher-option:hover, .vd-theme-switcher-option:focus-visible, .vd-theme-switcher-menu [data-theme-value]:hover, .vd-theme-switcher-menu [data-theme-value]:focus-visible {
|
|
61393
|
+
color: var(--vd-text-primary);
|
|
61394
|
+
background: var(--vd-theme-switcher-option-hover-bg);
|
|
61395
|
+
outline: none;
|
|
61396
|
+
}
|
|
61397
|
+
|
|
61398
|
+
.vd-theme-switcher-option.is-active, .vd-theme-switcher-menu [data-theme-value].is-active {
|
|
61399
|
+
color: var(--vd-theme-switcher-option-active-color);
|
|
61400
|
+
background: var(--vd-theme-switcher-option-active-bg);
|
|
61401
|
+
border-color: var(--vd-color-primary-alpha-20, transparent);
|
|
61402
|
+
}
|
|
61403
|
+
|
|
61287
61404
|
:root {
|
|
61288
61405
|
--vd-image-box-backdrop-bg: #000000e6;
|
|
61289
61406
|
--vd-image-box-backdrop-blur: 8px;
|
|
@@ -61990,6 +62107,7 @@ input.vd-doc-search-input {
|
|
|
61990
62107
|
user-select: none;
|
|
61991
62108
|
transition: var(--vd-draggable-transition);
|
|
61992
62109
|
touch-action: none;
|
|
62110
|
+
background-clip: padding-box;
|
|
61993
62111
|
display: inline-block;
|
|
61994
62112
|
position: relative;
|
|
61995
62113
|
}
|
|
@@ -62049,6 +62167,7 @@ input.vd-doc-search-input {
|
|
|
62049
62167
|
border: 2px dashed var(--vd-drop-zone-border-color);
|
|
62050
62168
|
border-radius: var(--vd-btn-border-radius);
|
|
62051
62169
|
transition: var(--vd-draggable-transition);
|
|
62170
|
+
background-clip: padding-box;
|
|
62052
62171
|
position: relative;
|
|
62053
62172
|
}
|
|
62054
62173
|
|
|
@@ -62090,6 +62209,7 @@ input.vd-doc-search-input {
|
|
|
62090
62209
|
background-color: var(--vd-bg-secondary);
|
|
62091
62210
|
border: 1px solid var(--vd-border-color);
|
|
62092
62211
|
border-radius: var(--vd-btn-border-radius);
|
|
62212
|
+
background-clip: padding-box;
|
|
62093
62213
|
flex-wrap: wrap;
|
|
62094
62214
|
display: flex;
|
|
62095
62215
|
}
|
|
@@ -62109,6 +62229,7 @@ input.vd-doc-search-input {
|
|
|
62109
62229
|
user-select: none;
|
|
62110
62230
|
touch-action: none;
|
|
62111
62231
|
transition: var(--vd-draggable-transition);
|
|
62232
|
+
background-clip: padding-box;
|
|
62112
62233
|
flex: none;
|
|
62113
62234
|
}
|
|
62114
62235
|
|