@lemoncat7/dsh-theme-xiaohei 0.4.6 → 0.5.1
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 +15 -9
- package/THIRD_PARTY_NOTICES.md +13 -1
- package/docs/dsh-021-compatibility.md +23 -0
- package/docs/releases/0.5.0.md +24 -0
- package/docs/rift-interaction.md +35 -0
- package/docs/rift-preview.md +39 -0
- package/lib/client.companion.js +3 -4
- package/lib/client.decorations.js +224 -51
- package/lib/client.js +534 -2405
- package/lib/index.d.ts +1 -2
- package/lib/index.js +395 -11
- package/lib/rift/boot.d.ts +6 -0
- package/package.json +29 -19
- package/lib/appearance.d.ts +0 -12
- package/lib/appearance.js +0 -42
- package/lib/blink.d.ts +0 -4
- package/lib/blink.js +0 -110
- package/lib/bloub-heixiu/ambient.d.ts +0 -3
- package/lib/bloub-heixiu/ambient.js +0 -12
- package/lib/bloub-heixiu/character.d.ts +0 -33
- package/lib/bloub-heixiu/character.js +0 -124
- package/lib/bloub-heixiu/effects.d.ts +0 -4
- package/lib/bloub-heixiu/effects.js +0 -91
- package/lib/bloub-heixiu/flight.d.ts +0 -15
- package/lib/bloub-heixiu/flight.js +0 -66
- package/lib/bloub-heixiu/follow.d.ts +0 -13
- package/lib/bloub-heixiu/follow.js +0 -23
- package/lib/bloub-heixiu/layout.d.ts +0 -34
- package/lib/bloub-heixiu/layout.js +0 -26
- package/lib/bloub-heixiu/renderer.d.ts +0 -16
- package/lib/bloub-heixiu/renderer.js +0 -94
- package/lib/bloub-heixiu/runtime.d.ts +0 -6
- package/lib/bloub-heixiu/runtime.js +0 -440
- package/lib/bloub-heixiu/signals.d.ts +0 -17
- package/lib/bloub-heixiu/signals.js +0 -55
- package/lib/bloub-heixiu/styles.d.ts +0 -2
- package/lib/bloub-heixiu/styles.js +0 -98
- package/lib/boot-appearance.d.ts +0 -10
- package/lib/boot-appearance.js +0 -47
- package/lib/boot-loader.d.ts +0 -5
- package/lib/boot-loader.js +0 -158
- package/lib/chrome/accessibility.d.ts +0 -3
- package/lib/chrome/accessibility.js +0 -69
- package/lib/chrome/blink.d.ts +0 -3
- package/lib/chrome/blink.js +0 -15
- package/lib/chrome/composer-avatar.d.ts +0 -10
- package/lib/chrome/composer-avatar.js +0 -599
- package/lib/chrome/composer-send-heixiu.d.ts +0 -3
- package/lib/chrome/composer-send-heixiu.js +0 -143
- package/lib/chrome/composer.d.ts +0 -3
- package/lib/chrome/composer.js +0 -135
- package/lib/chrome/controls.d.ts +0 -8
- package/lib/chrome/controls.js +0 -348
- package/lib/chrome/conversation-messages.d.ts +0 -3
- package/lib/chrome/conversation-messages.js +0 -329
- package/lib/chrome/conversation-submissions.d.ts +0 -3
- package/lib/chrome/conversation-submissions.js +0 -68
- package/lib/chrome/conversation.d.ts +0 -3
- package/lib/chrome/conversation.js +0 -67
- package/lib/chrome/frames.d.ts +0 -6
- package/lib/chrome/frames.js +0 -134
- package/lib/chrome/gaze.d.ts +0 -3
- package/lib/chrome/gaze.js +0 -103
- package/lib/chrome/identity.d.ts +0 -6
- package/lib/chrome/identity.js +0 -47
- package/lib/chrome/overlays.d.ts +0 -3
- package/lib/chrome/overlays.js +0 -104
- package/lib/chrome/portal.d.ts +0 -6
- package/lib/chrome/portal.js +0 -169
- package/lib/chrome/reactions.d.ts +0 -3
- package/lib/chrome/reactions.js +0 -85
- package/lib/chrome/sidebar.d.ts +0 -3
- package/lib/chrome/sidebar.js +0 -313
- package/lib/chrome/tokens.d.ts +0 -3
- package/lib/chrome/tokens.js +0 -224
- package/lib/chrome/workspace.d.ts +0 -3
- package/lib/chrome/workspace.js +0 -94
- package/lib/chrome.d.ts +0 -10
- package/lib/chrome.js +0 -46
- package/lib/client-entry.d.ts +0 -3
- package/lib/client-entry.js +0 -3
- package/lib/client.d.ts +0 -10
- package/lib/client.pose-chin-dark.js +0 -4
- package/lib/client.pose-chin-light.js +0 -4
- package/lib/client.pose-doze-dark.js +0 -4
- package/lib/client.pose-doze-light.js +0 -4
- package/lib/client.pose-halfpeek-dark.js +0 -4
- package/lib/client.pose-halfpeek-light.js +0 -4
- package/lib/client.pose-peek-dark.js +0 -4
- package/lib/client.pose-peek-light.js +0 -4
- package/lib/client.pose-seated-dark.js +0 -4
- package/lib/client.pose-seated-light.js +0 -4
- package/lib/client.rig-chin-dark.js +0 -4
- package/lib/client.rig-chin-light.js +0 -4
- package/lib/client.rig-halfpeek-dark.js +0 -4
- package/lib/client.rig-halfpeek-light.js +0 -4
- package/lib/client.rig-peek-dark.js +0 -4
- package/lib/client.rig-peek-light.js +0 -4
- package/lib/client.rig-seated-dark.js +0 -4
- package/lib/client.rig-seated-light.js +0 -4
- package/lib/companion-entry.d.ts +0 -3
- package/lib/companion-entry.js +0 -3
- package/lib/composer-avatar.d.ts +0 -18
- package/lib/composer-avatar.js +0 -441
- package/lib/composer-draft-preview.d.ts +0 -4
- package/lib/composer-draft-preview.js +0 -8
- package/lib/composer-send-heixiu.d.ts +0 -8
- package/lib/composer-send-heixiu.js +0 -133
- package/lib/current-session.d.ts +0 -6
- package/lib/current-session.js +0 -5
- package/lib/decorations-entry.d.ts +0 -3
- package/lib/decorations-entry.js +0 -18
- package/lib/deferred-companion.d.ts +0 -5
- package/lib/deferred-companion.js +0 -9
- package/lib/deferred-decorations.d.ts +0 -3
- package/lib/deferred-decorations.js +0 -51
- package/lib/gaze.d.ts +0 -4
- package/lib/gaze.js +0 -230
- package/lib/generated-backgrounds.d.ts +0 -14
- package/lib/generated-backgrounds.js +0 -14
- package/lib/generated-character-motion.d.ts +0 -4
- package/lib/generated-character-motion.js +0 -2
- package/lib/generated-identity.d.ts +0 -6
- package/lib/generated-identity.js +0 -6
- package/lib/generated-keyart.d.ts +0 -34
- package/lib/generated-keyart.js +0 -34
- package/lib/generated-loading-assets.d.ts +0 -4
- package/lib/generated-loading-assets.js +0 -4
- package/lib/heixiu-interactions.d.ts +0 -10
- package/lib/heixiu-interactions.js +0 -161
- package/lib/host-contract.d.ts +0 -9
- package/lib/host-contract.js +0 -13
- package/lib/host-dom.d.ts +0 -11
- package/lib/host-dom.js +0 -72
- package/lib/loading-heixiu.d.ts +0 -8
- package/lib/loading-heixiu.js +0 -287
- package/lib/metallic-brand-mark.d.ts +0 -10
- package/lib/metallic-brand-mark.js +0 -296
- package/lib/plugin.d.ts +0 -6
- package/lib/plugin.js +0 -60
- package/lib/portal.d.ts +0 -40
- package/lib/portal.js +0 -225
- package/lib/reactions.d.ts +0 -20
- package/lib/reactions.js +0 -380
- package/lib/scene/avatar-model.d.ts +0 -6
- package/lib/scene/avatar-model.js +0 -646
- package/lib/scene/avatar-motion.d.ts +0 -3
- package/lib/scene/avatar-motion.js +0 -799
- package/lib/scene/character-assets.d.ts +0 -13
- package/lib/scene/character-assets.js +0 -26
- package/lib/scene/character-expression.d.ts +0 -4
- package/lib/scene/character-expression.js +0 -15
- package/lib/scene/character-eye-material.d.ts +0 -13
- package/lib/scene/character-eye-material.js +0 -88
- package/lib/scene/character-eye-renderer.d.ts +0 -5
- package/lib/scene/character-eye-renderer.js +0 -80
- package/lib/scene/character-eye-rig.d.ts +0 -20
- package/lib/scene/character-eye-rig.js +0 -35
- package/lib/scene/character-gaze.d.ts +0 -16
- package/lib/scene/character-gaze.js +0 -36
- package/lib/scene/character-idle.d.ts +0 -17
- package/lib/scene/character-idle.js +0 -65
- package/lib/scene/character-layout.d.ts +0 -24
- package/lib/scene/character-layout.js +0 -51
- package/lib/scene/character-motion-clock.d.ts +0 -18
- package/lib/scene/character-motion-clock.js +0 -70
- package/lib/scene/character-motion-types.d.ts +0 -12
- package/lib/scene/character-motion-types.js +0 -2
- package/lib/scene/character-motion.d.ts +0 -6
- package/lib/scene/character-motion.js +0 -187
- package/lib/scene/character-poses.d.ts +0 -26
- package/lib/scene/character-poses.js +0 -11
- package/lib/scene/character-rig-renderer.d.ts +0 -5
- package/lib/scene/character-rig-renderer.js +0 -95
- package/lib/scene/character-rig.d.ts +0 -22
- package/lib/scene/character-rig.js +0 -61
- package/lib/scene/heixiu-feedback.d.ts +0 -3
- package/lib/scene/heixiu-feedback.js +0 -64
- package/lib/scene/heixiu-interactions.d.ts +0 -3
- package/lib/scene/heixiu-interactions.js +0 -92
- package/lib/scene/ids.d.ts +0 -5
- package/lib/scene/ids.js +0 -5
- package/lib/scene/pointer-bridge.d.ts +0 -21
- package/lib/scene/pointer-bridge.js +0 -155
- package/lib/scene/runtime.d.ts +0 -12
- package/lib/scene/runtime.js +0 -74
- package/lib/scene/state-transitions.d.ts +0 -3
- package/lib/scene/state-transitions.js +0 -37
- package/lib/scene/styles.d.ts +0 -5
- package/lib/scene/styles.js +0 -69
- package/lib/scene/sylva-performance.d.ts +0 -11
- package/lib/scene/sylva-performance.js +0 -58
- package/lib/scene/wallpaper-character-styles.d.ts +0 -3
- package/lib/scene/wallpaper-character-styles.js +0 -49
- package/lib/scene/wallpaper-character.d.ts +0 -5
- package/lib/scene/wallpaper-character.js +0 -222
- package/lib/scene.d.ts +0 -8
- package/lib/scene.js +0 -8
- package/lib/sidebar-glass.d.ts +0 -16
- package/lib/sidebar-glass.js +0 -168
- package/lib/sidebar-heixiu-escape.d.ts +0 -44
- package/lib/sidebar-heixiu-escape.js +0 -340
- package/lib/sidebar-heixiu-roaming.d.ts +0 -27
- package/lib/sidebar-heixiu-roaming.js +0 -310
- package/lib/sidebar-reveal.d.ts +0 -8
- package/lib/sidebar-reveal.js +0 -59
- package/lib/state.d.ts +0 -21
- package/lib/state.js +0 -123
- package/lib/theme.d.ts +0 -19
- package/lib/theme.js +0 -188
- package/lib/vendor/bloub/decor.d.ts +0 -114
- package/lib/vendor/bloub/decor.js +0 -198
- package/lib/vendor/bloub/engine.d.ts +0 -213
- package/lib/vendor/bloub/engine.js +0 -452
- package/lib/vendor/bloub/expressions.d.ts +0 -35
- package/lib/vendor/bloub/expressions.js +0 -143
- package/lib/vendor/bloub/eyefit.d.ts +0 -75
- package/lib/vendor/bloub/eyefit.js +0 -393
- package/lib/vendor/bloub/face.d.ts +0 -63
- package/lib/vendor/bloub/face.js +0 -106
- package/lib/vendor/bloub/math.d.ts +0 -22
- package/lib/vendor/bloub/math.js +0 -36
- package/lib/vendor/bloub/profiles.d.ts +0 -8
- package/lib/vendor/bloub/profiles.js +0 -20
- package/lib/vendor/bloub/repere.d.ts +0 -30
- package/lib/vendor/bloub/repere.js +0 -32
- package/lib/vendor/bloub/shape.d.ts +0 -80
- package/lib/vendor/bloub/shape.js +0 -268
- package/lib/vendor/bloub/skins.d.ts +0 -36
- package/lib/vendor/bloub/skins.js +0 -74
- package/lib/vendor/bloub/states.d.ts +0 -87
- package/lib/vendor/bloub/states.js +0 -468
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
/** Heixiu is the Host send button, not a neighbouring ornament. */
|
|
2
|
-
export const XIAOHEI_COMPOSER_SEND_HEIXIU_CSS = `
|
|
3
|
-
/* Official InputBar contract: row -> trailing controls -> last primary action. */
|
|
4
|
-
#root [data-composer-card='true'] > :last-child > :last-child > button:last-child {
|
|
5
|
-
position: relative;
|
|
6
|
-
isolation: isolate;
|
|
7
|
-
width: 38px;
|
|
8
|
-
height: 38px;
|
|
9
|
-
min-width: 38px;
|
|
10
|
-
min-height: 38px;
|
|
11
|
-
border: 1px solid var(--xiaohei-composer-control-edge) !important;
|
|
12
|
-
border-radius: 50% !important;
|
|
13
|
-
color: var(--xiaohei-composer-primary-icon) !important;
|
|
14
|
-
background: var(--xiaohei-composer-disabled) !important;
|
|
15
|
-
box-shadow: inset 0 1px 0 var(--xiaohei-composer-highlight) !important;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
#root [data-composer-card='true'] > :last-child > :last-child > button:last-child[data-xiaohei-send-heixiu='true'] {
|
|
19
|
-
overflow: visible;
|
|
20
|
-
padding: 0;
|
|
21
|
-
border-color: transparent !important;
|
|
22
|
-
background: transparent !important;
|
|
23
|
-
box-shadow: none !important;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
/* Preserve the native glyph in the DOM; only the visual presentation changes. */
|
|
27
|
-
#root [data-composer-card='true'] > :last-child > :last-child
|
|
28
|
-
> button[data-xiaohei-send-heixiu='true'] > svg {
|
|
29
|
-
opacity: 0;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.xiaohei-composer-send-heixiu {
|
|
33
|
-
position: absolute;
|
|
34
|
-
z-index: 1;
|
|
35
|
-
inset: 0;
|
|
36
|
-
overflow: visible;
|
|
37
|
-
pointer-events: none;
|
|
38
|
-
opacity: 1;
|
|
39
|
-
transform: translateY(-1px) scale(1) translateZ(0);
|
|
40
|
-
transform-origin: 50% 58%;
|
|
41
|
-
transition:
|
|
42
|
-
opacity 160ms ease,
|
|
43
|
-
transform 180ms var(--xiaohei-motion-curve);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.xiaohei-composer-send-heixiu img {
|
|
47
|
-
position: absolute;
|
|
48
|
-
top: 50%;
|
|
49
|
-
left: 50%;
|
|
50
|
-
display: block;
|
|
51
|
-
width: 60px;
|
|
52
|
-
height: 60px;
|
|
53
|
-
max-width: none;
|
|
54
|
-
user-select: none;
|
|
55
|
-
pointer-events: none;
|
|
56
|
-
object-fit: contain;
|
|
57
|
-
filter:
|
|
58
|
-
drop-shadow(0 0 1px var(--xiaohei-composer-heixiu-edge))
|
|
59
|
-
drop-shadow(0 3px 4px var(--xiaohei-composer-heixiu-shadow));
|
|
60
|
-
transform: translate(-50%, -45%) translateZ(0);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.xiaohei-composer-send-heixiu__open {
|
|
64
|
-
opacity: 1;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.xiaohei-composer-send-heixiu__blink {
|
|
68
|
-
opacity: 0;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.xiaohei-composer-send-heixiu[data-xiaohei-blink='closed']
|
|
72
|
-
.xiaohei-composer-send-heixiu__open {
|
|
73
|
-
opacity: 0;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.xiaohei-composer-send-heixiu[data-xiaohei-blink='closed']
|
|
77
|
-
.xiaohei-composer-send-heixiu__blink {
|
|
78
|
-
opacity: 1;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
#root [data-composer-card='true'] > :last-child > :last-child
|
|
82
|
-
> button[data-xiaohei-send-heixiu='true']:not(:disabled):hover {
|
|
83
|
-
border-color: transparent !important;
|
|
84
|
-
background: transparent !important;
|
|
85
|
-
box-shadow: none !important;
|
|
86
|
-
transform: none;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
#root [data-composer-card='true'] > :last-child > :last-child
|
|
90
|
-
> button[data-xiaohei-send-heixiu='true']:not(:disabled):hover
|
|
91
|
-
.xiaohei-composer-send-heixiu {
|
|
92
|
-
transform: translateY(-2px) scale(1.055) translateZ(0);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
#root [data-composer-card='true'] > :last-child > :last-child
|
|
96
|
-
> button[data-xiaohei-send-heixiu='true']:not(:disabled):active {
|
|
97
|
-
transform: none;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
#root [data-composer-card='true'] > :last-child > :last-child
|
|
101
|
-
> button[data-xiaohei-send-heixiu='true']:not(:disabled):active
|
|
102
|
-
.xiaohei-composer-send-heixiu {
|
|
103
|
-
transform: translateY(0) scale(.93) translateZ(0);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
#root [data-composer-card='true'] > :last-child > :last-child
|
|
107
|
-
> button[data-xiaohei-send-heixiu='true']:disabled {
|
|
108
|
-
border-color: transparent !important;
|
|
109
|
-
background: transparent !important;
|
|
110
|
-
box-shadow: none !important;
|
|
111
|
-
transform: none;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
#root [data-composer-card='true'] > :last-child > :last-child
|
|
115
|
-
> button[data-xiaohei-send-heixiu='true']:disabled
|
|
116
|
-
.xiaohei-composer-send-heixiu {
|
|
117
|
-
opacity: .42;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
@media (prefers-reduced-motion: reduce) {
|
|
121
|
-
.xiaohei-composer-send-heixiu {
|
|
122
|
-
transition-duration: 0.01ms !important;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
@media (forced-colors: active) {
|
|
127
|
-
#root [data-composer-card='true'] > :last-child > :last-child
|
|
128
|
-
> button[data-xiaohei-send-heixiu='true'] {
|
|
129
|
-
border: 1px solid ButtonText !important;
|
|
130
|
-
background: ButtonFace !important;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
#root [data-composer-card='true'] > :last-child > :last-child
|
|
134
|
-
> button[data-xiaohei-send-heixiu='true'] > svg {
|
|
135
|
-
opacity: 1;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
.xiaohei-composer-send-heixiu {
|
|
139
|
-
display: none;
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
`;
|
|
143
|
-
//# sourceMappingURL=composer-send-heixiu.js.map
|
package/lib/chrome/composer.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/** Conversation composer expressed as Xiaohei's quiet spatial workbench. */
|
|
2
|
-
export declare const XIAOHEI_COMPOSER_CSS = "\n#root [data-composer-card='true'] {\n position: relative;\n isolation: isolate;\n overflow: visible;\n gap: 10px;\n padding-top: 12px;\n border: 1px solid var(--xiaohei-composer-edge) !important;\n border-radius: 14px !important;\n background: var(--xiaohei-composer-fill) !important;\n -webkit-backdrop-filter:\n blur(var(--xiaohei-composer-blur))\n saturate(var(--xiaohei-composer-saturation));\n backdrop-filter:\n blur(var(--xiaohei-composer-blur))\n saturate(var(--xiaohei-composer-saturation));\n box-shadow:\n 0 10px 28px var(--xiaohei-composer-shadow),\n 0 2px 8px var(--xiaohei-shadow) !important;\n transition:\n border-color var(--xiaohei-motion-base) ease,\n box-shadow 260ms ease,\n background-color var(--xiaohei-motion-base) ease;\n}\n\n/* The lower contour behaves like Xiaohei's tail. Workspace-pick mode is\n excluded so the Host keeps ownership of its native dashed affordance. */\n#root [data-composer-card='true']:not(:has(textarea[aria-haspopup='menu']))::after {\n content: '';\n position: absolute;\n z-index: 2;\n right: 58px;\n bottom: -1px;\n left: 18px;\n height: 11px;\n border-bottom: 2px solid var(--xiaohei-composer-tail);\n border-radius: 0 0 76% 34%;\n pointer-events: none;\n opacity: 0.32;\n transform: scaleX(.48) translateZ(0);\n transform-origin: right center;\n -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);\n mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);\n transition:\n opacity 240ms ease,\n transform 360ms var(--xiaohei-motion-curve);\n}\n\n#root [data-composer-card='true']:not(:has(textarea[aria-haspopup='menu'])):focus-within::after {\n opacity: 0.74;\n transform: scaleX(1) translateZ(0);\n}\n\n#root [data-composer-card='true']:not(:has(textarea[aria-haspopup='menu'])):has(textarea:not(:placeholder-shown))::after {\n opacity: 0.88;\n transform: scaleX(.92) translateZ(0);\n}\n\n#root [data-composer-card='true'] textarea {\n -webkit-appearance: none;\n appearance: none;\n border: 0 !important;\n border-radius: 0 !important;\n color: var(--dsw-alias-label-primary) !important;\n background: transparent !important;\n caret-color: var(--xiaohei-spirit-strong);\n box-shadow: none !important;\n}\n\n#root [data-composer-card='true'] textarea:focus-visible {\n outline: none !important;\n box-shadow: none !important;\n}\n\n#root [data-composer-card='true'] textarea::placeholder {\n color: var(--dsw-alias-label-tertiary) !important;\n opacity: 0.84;\n}\n\n#root [data-composer-card='true'] [data-input-backdrop='true'] {\n border-color: transparent !important;\n background: transparent !important;\n}\n\n#root [data-composer-card='true'] button {\n min-width: 30px;\n min-height: 30px;\n border: 1px solid transparent;\n border-radius: 9px;\n transition:\n color var(--xiaohei-motion-fast) ease,\n background-color var(--xiaohei-motion-fast) ease,\n border-color var(--xiaohei-motion-fast) ease,\n box-shadow var(--xiaohei-motion-fast) ease,\n transform var(--xiaohei-motion-fast) var(--xiaohei-motion-curve);\n}\n\n#root [data-composer-card='true'] button:not(:disabled):hover {\n color: var(--dsw-alias-label-primary);\n border-color: var(--xiaohei-composer-control-edge);\n background: var(--xiaohei-composer-control-hover);\n box-shadow: inset 0 1px 0 var(--xiaohei-composer-highlight);\n}\n\n#root [data-composer-card='true'] button:not(:disabled):active {\n transform: translateY(1px) scale(.97);\n}\n\n@media (max-width: 700px) {\n #root [data-composer-card='true'] {\n border-radius: 12px !important;\n }\n\n #root [data-composer-card='true']:not(:has(textarea[aria-haspopup='menu']))::after {\n right: 54px;\n left: 14px;\n }\n}\n\n@media (prefers-reduced-transparency: reduce) {\n #root [data-composer-card='true'] {\n background: var(--xiaohei-composer-solid) !important;\n -webkit-backdrop-filter: none;\n backdrop-filter: none;\n }\n}\n\n@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {\n #root [data-composer-card='true'] {\n background: var(--xiaohei-composer-solid) !important;\n }\n}\n";
|
|
3
|
-
//# sourceMappingURL=composer.d.ts.map
|
package/lib/chrome/composer.js
DELETED
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
/** Conversation composer expressed as Xiaohei's quiet spatial workbench. */
|
|
2
|
-
export const XIAOHEI_COMPOSER_CSS = `
|
|
3
|
-
#root [data-composer-card='true'] {
|
|
4
|
-
position: relative;
|
|
5
|
-
isolation: isolate;
|
|
6
|
-
overflow: visible;
|
|
7
|
-
gap: 10px;
|
|
8
|
-
padding-top: 12px;
|
|
9
|
-
border: 1px solid var(--xiaohei-composer-edge) !important;
|
|
10
|
-
border-radius: 14px !important;
|
|
11
|
-
background: var(--xiaohei-composer-fill) !important;
|
|
12
|
-
-webkit-backdrop-filter:
|
|
13
|
-
blur(var(--xiaohei-composer-blur))
|
|
14
|
-
saturate(var(--xiaohei-composer-saturation));
|
|
15
|
-
backdrop-filter:
|
|
16
|
-
blur(var(--xiaohei-composer-blur))
|
|
17
|
-
saturate(var(--xiaohei-composer-saturation));
|
|
18
|
-
box-shadow:
|
|
19
|
-
0 10px 28px var(--xiaohei-composer-shadow),
|
|
20
|
-
0 2px 8px var(--xiaohei-shadow) !important;
|
|
21
|
-
transition:
|
|
22
|
-
border-color var(--xiaohei-motion-base) ease,
|
|
23
|
-
box-shadow 260ms ease,
|
|
24
|
-
background-color var(--xiaohei-motion-base) ease;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/* The lower contour behaves like Xiaohei's tail. Workspace-pick mode is
|
|
28
|
-
excluded so the Host keeps ownership of its native dashed affordance. */
|
|
29
|
-
#root [data-composer-card='true']:not(:has(textarea[aria-haspopup='menu']))::after {
|
|
30
|
-
content: '';
|
|
31
|
-
position: absolute;
|
|
32
|
-
z-index: 2;
|
|
33
|
-
right: 58px;
|
|
34
|
-
bottom: -1px;
|
|
35
|
-
left: 18px;
|
|
36
|
-
height: 11px;
|
|
37
|
-
border-bottom: 2px solid var(--xiaohei-composer-tail);
|
|
38
|
-
border-radius: 0 0 76% 34%;
|
|
39
|
-
pointer-events: none;
|
|
40
|
-
opacity: 0.32;
|
|
41
|
-
transform: scaleX(.48) translateZ(0);
|
|
42
|
-
transform-origin: right center;
|
|
43
|
-
-webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
|
|
44
|
-
mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
|
|
45
|
-
transition:
|
|
46
|
-
opacity 240ms ease,
|
|
47
|
-
transform 360ms var(--xiaohei-motion-curve);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
#root [data-composer-card='true']:not(:has(textarea[aria-haspopup='menu'])):focus-within::after {
|
|
51
|
-
opacity: 0.74;
|
|
52
|
-
transform: scaleX(1) translateZ(0);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
#root [data-composer-card='true']:not(:has(textarea[aria-haspopup='menu'])):has(textarea:not(:placeholder-shown))::after {
|
|
56
|
-
opacity: 0.88;
|
|
57
|
-
transform: scaleX(.92) translateZ(0);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
#root [data-composer-card='true'] textarea {
|
|
61
|
-
-webkit-appearance: none;
|
|
62
|
-
appearance: none;
|
|
63
|
-
border: 0 !important;
|
|
64
|
-
border-radius: 0 !important;
|
|
65
|
-
color: var(--dsw-alias-label-primary) !important;
|
|
66
|
-
background: transparent !important;
|
|
67
|
-
caret-color: var(--xiaohei-spirit-strong);
|
|
68
|
-
box-shadow: none !important;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
#root [data-composer-card='true'] textarea:focus-visible {
|
|
72
|
-
outline: none !important;
|
|
73
|
-
box-shadow: none !important;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
#root [data-composer-card='true'] textarea::placeholder {
|
|
77
|
-
color: var(--dsw-alias-label-tertiary) !important;
|
|
78
|
-
opacity: 0.84;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
#root [data-composer-card='true'] [data-input-backdrop='true'] {
|
|
82
|
-
border-color: transparent !important;
|
|
83
|
-
background: transparent !important;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
#root [data-composer-card='true'] button {
|
|
87
|
-
min-width: 30px;
|
|
88
|
-
min-height: 30px;
|
|
89
|
-
border: 1px solid transparent;
|
|
90
|
-
border-radius: 9px;
|
|
91
|
-
transition:
|
|
92
|
-
color var(--xiaohei-motion-fast) ease,
|
|
93
|
-
background-color var(--xiaohei-motion-fast) ease,
|
|
94
|
-
border-color var(--xiaohei-motion-fast) ease,
|
|
95
|
-
box-shadow var(--xiaohei-motion-fast) ease,
|
|
96
|
-
transform var(--xiaohei-motion-fast) var(--xiaohei-motion-curve);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
#root [data-composer-card='true'] button:not(:disabled):hover {
|
|
100
|
-
color: var(--dsw-alias-label-primary);
|
|
101
|
-
border-color: var(--xiaohei-composer-control-edge);
|
|
102
|
-
background: var(--xiaohei-composer-control-hover);
|
|
103
|
-
box-shadow: inset 0 1px 0 var(--xiaohei-composer-highlight);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
#root [data-composer-card='true'] button:not(:disabled):active {
|
|
107
|
-
transform: translateY(1px) scale(.97);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
@media (max-width: 700px) {
|
|
111
|
-
#root [data-composer-card='true'] {
|
|
112
|
-
border-radius: 12px !important;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
#root [data-composer-card='true']:not(:has(textarea[aria-haspopup='menu']))::after {
|
|
116
|
-
right: 54px;
|
|
117
|
-
left: 14px;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
@media (prefers-reduced-transparency: reduce) {
|
|
122
|
-
#root [data-composer-card='true'] {
|
|
123
|
-
background: var(--xiaohei-composer-solid) !important;
|
|
124
|
-
-webkit-backdrop-filter: none;
|
|
125
|
-
backdrop-filter: none;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
|
|
130
|
-
#root [data-composer-card='true'] {
|
|
131
|
-
background: var(--xiaohei-composer-solid) !important;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
`;
|
|
135
|
-
//# sourceMappingURL=composer.js.map
|
package/lib/chrome/controls.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Browser-independent control primitives.
|
|
3
|
-
*
|
|
4
|
-
* This layer owns only the shared native-control contract. Feature chrome is
|
|
5
|
-
* composed after it and remains free to define geometry or stronger states.
|
|
6
|
-
*/
|
|
7
|
-
export declare const XIAOHEI_CONTROL_PRIMITIVES_CSS = "\nhtml {\n color-scheme: dark;\n accent-color: var(--xiaohei-spirit);\n font-family: -apple-system, BlinkMacSystemFont, \"SF Pro Text\", \"PingFang SC\",\n \"Microsoft YaHei\", \"Segoe UI\", sans-serif;\n font-synthesis: none;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\nhtml[data-xiaohei-appearance='light'] {\n color-scheme: light;\n}\n\n#root,\n:where(#root) :where(button, input, textarea, select) {\n font: inherit;\n letter-spacing: inherit;\n}\n\n:where(#root) :where(button, input, textarea, select) {\n box-sizing: border-box;\n color: inherit;\n -webkit-tap-highlight-color: transparent;\n}\n\n:where(#root) :where(button, select, input[type='button'], input[type='submit'], input[type='reset']) {\n -webkit-appearance: none;\n appearance: none;\n}\n\n:where(#root) :where(button, input[type='button'], input[type='submit'], input[type='reset']) {\n margin: 0;\n border: 1px solid transparent;\n border-radius: var(--xiaohei-radius-small);\n color: var(--dsw-alias-label-primary);\n background: transparent;\n cursor: pointer;\n transition:\n color var(--xiaohei-motion-fast) ease,\n border-color var(--xiaohei-motion-fast) ease,\n background-color var(--xiaohei-motion-fast) ease,\n transform var(--xiaohei-motion-fast) var(--xiaohei-motion-curve);\n}\n\n:where(#root) :where(button, input[type='button'], input[type='submit'], input[type='reset']):not(:disabled):hover {\n border-color: var(--xiaohei-edge);\n background-color: var(--xiaohei-spirit-soft);\n}\n\n:where(#root) :where(button, input[type='button'], input[type='submit'], input[type='reset']):not(:disabled):active {\n transform: translateY(1px) scale(.98);\n}\n\n:where(#root) :where(button, input[type='button'], input[type='submit'], input[type='reset']):disabled {\n cursor: not-allowed;\n opacity: .48;\n}\n\n:where(#root) :where(input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='file']), textarea, select) {\n border: 1px solid var(--xiaohei-edge);\n border-radius: var(--xiaohei-radius-control);\n color: var(--dsw-alias-label-primary);\n background-color: var(--xiaohei-plugin-control-fill);\n box-shadow: inset 0 1px var(--xiaohei-layer-content-highlight);\n transition:\n border-color var(--xiaohei-motion-fast) ease,\n background-color var(--xiaohei-motion-fast) ease,\n box-shadow var(--xiaohei-motion-fast) ease;\n}\n\n:where(#root) :where(input, textarea)::placeholder {\n color: var(--dsw-alias-label-tertiary);\n opacity: 1;\n}\n\n:where(#root) :where(input[type='search'])::-webkit-search-cancel-button,\n:where(#root) :where(input[type='search'])::-webkit-search-decoration {\n -webkit-appearance: none;\n appearance: none;\n}\n\n:where(#root) :where(input[type='number']) {\n -moz-appearance: textfield;\n}\n\n:where(#root) :where(input[type='number'])::-webkit-inner-spin-button,\n:where(#root) :where(input[type='number'])::-webkit-outer-spin-button {\n margin: 0;\n -webkit-appearance: none;\n appearance: none;\n}\n\n:where(#root) :where(textarea) {\n resize: vertical;\n}\n\n:where(#root) :where(select) {\n padding-inline-end: 30px;\n background-image:\n linear-gradient(45deg, transparent 50%, currentColor 50%),\n linear-gradient(135deg, currentColor 50%, transparent 50%);\n background-position:\n calc(100% - 15px) 50%,\n calc(100% - 10px) 50%;\n background-repeat: no-repeat;\n background-size: 5px 5px, 5px 5px;\n}\n\n:where(#root) :where(select)::-ms-expand {\n display: none;\n}\n\n:where(#root) :where(option, optgroup) {\n color: var(--dsw-alias-label-primary);\n background: var(--xiaohei-surface-raised);\n}\n\n:where(#root) :where(input[type='checkbox'], input[type='radio']) {\n -webkit-appearance: none;\n appearance: none;\n display: inline-grid;\n place-content: center;\n width: 16px;\n height: 16px;\n margin: 0;\n border: 1px solid var(--xiaohei-edge-strong);\n color: var(--xiaohei-frame-ink);\n background: var(--xiaohei-plugin-control-fill);\n box-shadow: inset 0 1px var(--xiaohei-layer-content-highlight);\n cursor: pointer;\n transition:\n border-color var(--xiaohei-motion-fast) ease,\n background-color var(--xiaohei-motion-fast) ease,\n box-shadow var(--xiaohei-motion-fast) ease;\n}\n\n:where(#root) :where(input[type='checkbox']) {\n border-radius: 5px;\n}\n\n:where(#root) :where(input[type='radio']) {\n border-radius: 50%;\n}\n\n:where(#root) :where(input[type='checkbox'], input[type='radio'])::before {\n content: '';\n width: 8px;\n height: 8px;\n background: currentColor;\n opacity: 0;\n transform: scale(.5);\n transition:\n opacity var(--xiaohei-motion-fast) ease,\n transform var(--xiaohei-motion-fast) var(--xiaohei-motion-curve);\n}\n\n:where(#root) :where(input[type='checkbox'])::before {\n clip-path: polygon(14% 44%, 0 62%, 40% 100%, 100% 20%, 82% 5%, 38% 70%);\n}\n\n:where(#root) :where(input[type='radio'])::before {\n border-radius: 50%;\n}\n\n:where(#root) :where(input[type='checkbox'], input[type='radio']):checked {\n border-color: var(--xiaohei-spirit-strong);\n background: var(--xiaohei-spirit);\n box-shadow: 0 0 0 3px var(--xiaohei-spirit-faint);\n}\n\n:where(#root) :where(input[type='checkbox'], input[type='radio']):checked::before {\n opacity: 1;\n transform: scale(1);\n}\n\n:where(#root) :where(input[type='checkbox'], input[type='radio']):disabled {\n cursor: not-allowed;\n opacity: .48;\n}\n\n:where(#root) :where(input[type='range']) {\n -webkit-appearance: none;\n appearance: none;\n height: 16px;\n margin: 0;\n background: transparent;\n cursor: pointer;\n}\n\n:where(#root) :where(input[type='range'])::-webkit-slider-runnable-track {\n height: 4px;\n border-radius: 999px;\n background: var(--xiaohei-surface-muted);\n box-shadow: inset 0 0 0 1px var(--xiaohei-edge);\n}\n\n:where(#root) :where(input[type='range'])::-webkit-slider-thumb {\n width: 14px;\n height: 14px;\n margin-top: -5px;\n border: 2px solid var(--xiaohei-surface-raised);\n border-radius: 50%;\n background: var(--xiaohei-spirit);\n box-shadow: 0 2px 6px var(--xiaohei-shadow);\n -webkit-appearance: none;\n appearance: none;\n}\n\n:where(#root) :where(input[type='range'])::-moz-range-track {\n height: 4px;\n border: 0;\n border-radius: 999px;\n background: var(--xiaohei-surface-muted);\n box-shadow: inset 0 0 0 1px var(--xiaohei-edge);\n}\n\n:where(#root) :where(input[type='range'])::-moz-range-progress {\n height: 4px;\n border-radius: 999px;\n background: var(--xiaohei-spirit);\n}\n\n:where(#root) :where(input[type='range'])::-moz-range-thumb {\n width: 10px;\n height: 10px;\n border: 2px solid var(--xiaohei-surface-raised);\n border-radius: 50%;\n background: var(--xiaohei-spirit);\n box-shadow: 0 2px 6px var(--xiaohei-shadow);\n}\n\n:where(#root) :where(input[type='range']):disabled {\n cursor: not-allowed;\n opacity: .48;\n}\n\n:where(#root) :where(input[type='file'])::file-selector-button {\n margin-inline-end: 10px;\n padding: 6px 10px;\n border: 1px solid var(--xiaohei-edge);\n border-radius: var(--xiaohei-radius-small);\n color: var(--dsw-alias-label-primary);\n background: var(--xiaohei-plugin-control-fill);\n font: inherit;\n cursor: pointer;\n}\n\n:where(#root) :where(progress) {\n overflow: hidden;\n border: 0;\n border-radius: 999px;\n color: var(--xiaohei-spirit);\n background: var(--xiaohei-surface-muted);\n accent-color: var(--xiaohei-spirit);\n}\n\n:where(#root) :where(progress)::-webkit-progress-bar {\n background: var(--xiaohei-surface-muted);\n}\n\n:where(#root) :where(progress)::-webkit-progress-value {\n background: var(--xiaohei-spirit);\n}\n\n:where(#root) :where(progress)::-moz-progress-bar {\n background: var(--xiaohei-spirit);\n}\n\n:where(#root) :where(fieldset) {\n min-width: 0;\n margin: 0;\n padding: 0;\n border: 0;\n}\n\n:where(#root) :where(legend) {\n padding: 0;\n color: var(--dsw-alias-label-secondary);\n}\n\n:where(#root) :where(summary) {\n cursor: pointer;\n}\n\n:where(#root) :where(a) {\n color: var(--xiaohei-spirit-strong);\n text-decoration-color: var(--xiaohei-edge-strong);\n text-underline-offset: .18em;\n}\n\n:where(#root) :where(a):hover {\n text-decoration-color: currentColor;\n}\n\n#root {\n scrollbar-width: thin;\n scrollbar-color: transparent transparent;\n}\n\n#root:hover,\n#root:focus-within {\n scrollbar-color: var(--dsw-alias-scrollbar-bg-l1) transparent;\n}\n\n#root ::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n}\n\n#root ::-webkit-scrollbar-track,\n#root ::-webkit-scrollbar-corner {\n background: transparent;\n}\n\n#root ::-webkit-scrollbar-thumb {\n min-width: 28px;\n min-height: 28px;\n border: 2px solid transparent;\n border-radius: 999px;\n background: transparent;\n background-clip: padding-box;\n}\n\n#root:hover ::-webkit-scrollbar-thumb,\n#root:focus-within ::-webkit-scrollbar-thumb {\n background-color: var(--dsw-alias-scrollbar-bg-l1);\n}\n\n#root ::-webkit-scrollbar-thumb:hover {\n background-color: var(--dsw-alias-scrollbar-hover-l1);\n}\n\n@media (forced-colors: active) {\n :where(#root) :where(input, textarea, select, button, progress) {\n forced-color-adjust: auto;\n }\n}\n";
|
|
8
|
-
//# sourceMappingURL=controls.d.ts.map
|
package/lib/chrome/controls.js
DELETED
|
@@ -1,348 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Browser-independent control primitives.
|
|
3
|
-
*
|
|
4
|
-
* This layer owns only the shared native-control contract. Feature chrome is
|
|
5
|
-
* composed after it and remains free to define geometry or stronger states.
|
|
6
|
-
*/
|
|
7
|
-
export const XIAOHEI_CONTROL_PRIMITIVES_CSS = `
|
|
8
|
-
html {
|
|
9
|
-
color-scheme: dark;
|
|
10
|
-
accent-color: var(--xiaohei-spirit);
|
|
11
|
-
font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
|
|
12
|
-
"Microsoft YaHei", "Segoe UI", sans-serif;
|
|
13
|
-
font-synthesis: none;
|
|
14
|
-
text-rendering: optimizeLegibility;
|
|
15
|
-
-webkit-font-smoothing: antialiased;
|
|
16
|
-
-moz-osx-font-smoothing: grayscale;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
html[data-xiaohei-appearance='light'] {
|
|
20
|
-
color-scheme: light;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
#root,
|
|
24
|
-
:where(#root) :where(button, input, textarea, select) {
|
|
25
|
-
font: inherit;
|
|
26
|
-
letter-spacing: inherit;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
:where(#root) :where(button, input, textarea, select) {
|
|
30
|
-
box-sizing: border-box;
|
|
31
|
-
color: inherit;
|
|
32
|
-
-webkit-tap-highlight-color: transparent;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
:where(#root) :where(button, select, input[type='button'], input[type='submit'], input[type='reset']) {
|
|
36
|
-
-webkit-appearance: none;
|
|
37
|
-
appearance: none;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
:where(#root) :where(button, input[type='button'], input[type='submit'], input[type='reset']) {
|
|
41
|
-
margin: 0;
|
|
42
|
-
border: 1px solid transparent;
|
|
43
|
-
border-radius: var(--xiaohei-radius-small);
|
|
44
|
-
color: var(--dsw-alias-label-primary);
|
|
45
|
-
background: transparent;
|
|
46
|
-
cursor: pointer;
|
|
47
|
-
transition:
|
|
48
|
-
color var(--xiaohei-motion-fast) ease,
|
|
49
|
-
border-color var(--xiaohei-motion-fast) ease,
|
|
50
|
-
background-color var(--xiaohei-motion-fast) ease,
|
|
51
|
-
transform var(--xiaohei-motion-fast) var(--xiaohei-motion-curve);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
:where(#root) :where(button, input[type='button'], input[type='submit'], input[type='reset']):not(:disabled):hover {
|
|
55
|
-
border-color: var(--xiaohei-edge);
|
|
56
|
-
background-color: var(--xiaohei-spirit-soft);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
:where(#root) :where(button, input[type='button'], input[type='submit'], input[type='reset']):not(:disabled):active {
|
|
60
|
-
transform: translateY(1px) scale(.98);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
:where(#root) :where(button, input[type='button'], input[type='submit'], input[type='reset']):disabled {
|
|
64
|
-
cursor: not-allowed;
|
|
65
|
-
opacity: .48;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
:where(#root) :where(input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='file']), textarea, select) {
|
|
69
|
-
border: 1px solid var(--xiaohei-edge);
|
|
70
|
-
border-radius: var(--xiaohei-radius-control);
|
|
71
|
-
color: var(--dsw-alias-label-primary);
|
|
72
|
-
background-color: var(--xiaohei-plugin-control-fill);
|
|
73
|
-
box-shadow: inset 0 1px var(--xiaohei-layer-content-highlight);
|
|
74
|
-
transition:
|
|
75
|
-
border-color var(--xiaohei-motion-fast) ease,
|
|
76
|
-
background-color var(--xiaohei-motion-fast) ease,
|
|
77
|
-
box-shadow var(--xiaohei-motion-fast) ease;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
:where(#root) :where(input, textarea)::placeholder {
|
|
81
|
-
color: var(--dsw-alias-label-tertiary);
|
|
82
|
-
opacity: 1;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
:where(#root) :where(input[type='search'])::-webkit-search-cancel-button,
|
|
86
|
-
:where(#root) :where(input[type='search'])::-webkit-search-decoration {
|
|
87
|
-
-webkit-appearance: none;
|
|
88
|
-
appearance: none;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
:where(#root) :where(input[type='number']) {
|
|
92
|
-
-moz-appearance: textfield;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
:where(#root) :where(input[type='number'])::-webkit-inner-spin-button,
|
|
96
|
-
:where(#root) :where(input[type='number'])::-webkit-outer-spin-button {
|
|
97
|
-
margin: 0;
|
|
98
|
-
-webkit-appearance: none;
|
|
99
|
-
appearance: none;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
:where(#root) :where(textarea) {
|
|
103
|
-
resize: vertical;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
:where(#root) :where(select) {
|
|
107
|
-
padding-inline-end: 30px;
|
|
108
|
-
background-image:
|
|
109
|
-
linear-gradient(45deg, transparent 50%, currentColor 50%),
|
|
110
|
-
linear-gradient(135deg, currentColor 50%, transparent 50%);
|
|
111
|
-
background-position:
|
|
112
|
-
calc(100% - 15px) 50%,
|
|
113
|
-
calc(100% - 10px) 50%;
|
|
114
|
-
background-repeat: no-repeat;
|
|
115
|
-
background-size: 5px 5px, 5px 5px;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
:where(#root) :where(select)::-ms-expand {
|
|
119
|
-
display: none;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
:where(#root) :where(option, optgroup) {
|
|
123
|
-
color: var(--dsw-alias-label-primary);
|
|
124
|
-
background: var(--xiaohei-surface-raised);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
:where(#root) :where(input[type='checkbox'], input[type='radio']) {
|
|
128
|
-
-webkit-appearance: none;
|
|
129
|
-
appearance: none;
|
|
130
|
-
display: inline-grid;
|
|
131
|
-
place-content: center;
|
|
132
|
-
width: 16px;
|
|
133
|
-
height: 16px;
|
|
134
|
-
margin: 0;
|
|
135
|
-
border: 1px solid var(--xiaohei-edge-strong);
|
|
136
|
-
color: var(--xiaohei-frame-ink);
|
|
137
|
-
background: var(--xiaohei-plugin-control-fill);
|
|
138
|
-
box-shadow: inset 0 1px var(--xiaohei-layer-content-highlight);
|
|
139
|
-
cursor: pointer;
|
|
140
|
-
transition:
|
|
141
|
-
border-color var(--xiaohei-motion-fast) ease,
|
|
142
|
-
background-color var(--xiaohei-motion-fast) ease,
|
|
143
|
-
box-shadow var(--xiaohei-motion-fast) ease;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
:where(#root) :where(input[type='checkbox']) {
|
|
147
|
-
border-radius: 5px;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
:where(#root) :where(input[type='radio']) {
|
|
151
|
-
border-radius: 50%;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
:where(#root) :where(input[type='checkbox'], input[type='radio'])::before {
|
|
155
|
-
content: '';
|
|
156
|
-
width: 8px;
|
|
157
|
-
height: 8px;
|
|
158
|
-
background: currentColor;
|
|
159
|
-
opacity: 0;
|
|
160
|
-
transform: scale(.5);
|
|
161
|
-
transition:
|
|
162
|
-
opacity var(--xiaohei-motion-fast) ease,
|
|
163
|
-
transform var(--xiaohei-motion-fast) var(--xiaohei-motion-curve);
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
:where(#root) :where(input[type='checkbox'])::before {
|
|
167
|
-
clip-path: polygon(14% 44%, 0 62%, 40% 100%, 100% 20%, 82% 5%, 38% 70%);
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
:where(#root) :where(input[type='radio'])::before {
|
|
171
|
-
border-radius: 50%;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
:where(#root) :where(input[type='checkbox'], input[type='radio']):checked {
|
|
175
|
-
border-color: var(--xiaohei-spirit-strong);
|
|
176
|
-
background: var(--xiaohei-spirit);
|
|
177
|
-
box-shadow: 0 0 0 3px var(--xiaohei-spirit-faint);
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
:where(#root) :where(input[type='checkbox'], input[type='radio']):checked::before {
|
|
181
|
-
opacity: 1;
|
|
182
|
-
transform: scale(1);
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
:where(#root) :where(input[type='checkbox'], input[type='radio']):disabled {
|
|
186
|
-
cursor: not-allowed;
|
|
187
|
-
opacity: .48;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
:where(#root) :where(input[type='range']) {
|
|
191
|
-
-webkit-appearance: none;
|
|
192
|
-
appearance: none;
|
|
193
|
-
height: 16px;
|
|
194
|
-
margin: 0;
|
|
195
|
-
background: transparent;
|
|
196
|
-
cursor: pointer;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
:where(#root) :where(input[type='range'])::-webkit-slider-runnable-track {
|
|
200
|
-
height: 4px;
|
|
201
|
-
border-radius: 999px;
|
|
202
|
-
background: var(--xiaohei-surface-muted);
|
|
203
|
-
box-shadow: inset 0 0 0 1px var(--xiaohei-edge);
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
:where(#root) :where(input[type='range'])::-webkit-slider-thumb {
|
|
207
|
-
width: 14px;
|
|
208
|
-
height: 14px;
|
|
209
|
-
margin-top: -5px;
|
|
210
|
-
border: 2px solid var(--xiaohei-surface-raised);
|
|
211
|
-
border-radius: 50%;
|
|
212
|
-
background: var(--xiaohei-spirit);
|
|
213
|
-
box-shadow: 0 2px 6px var(--xiaohei-shadow);
|
|
214
|
-
-webkit-appearance: none;
|
|
215
|
-
appearance: none;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
:where(#root) :where(input[type='range'])::-moz-range-track {
|
|
219
|
-
height: 4px;
|
|
220
|
-
border: 0;
|
|
221
|
-
border-radius: 999px;
|
|
222
|
-
background: var(--xiaohei-surface-muted);
|
|
223
|
-
box-shadow: inset 0 0 0 1px var(--xiaohei-edge);
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
:where(#root) :where(input[type='range'])::-moz-range-progress {
|
|
227
|
-
height: 4px;
|
|
228
|
-
border-radius: 999px;
|
|
229
|
-
background: var(--xiaohei-spirit);
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
:where(#root) :where(input[type='range'])::-moz-range-thumb {
|
|
233
|
-
width: 10px;
|
|
234
|
-
height: 10px;
|
|
235
|
-
border: 2px solid var(--xiaohei-surface-raised);
|
|
236
|
-
border-radius: 50%;
|
|
237
|
-
background: var(--xiaohei-spirit);
|
|
238
|
-
box-shadow: 0 2px 6px var(--xiaohei-shadow);
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
:where(#root) :where(input[type='range']):disabled {
|
|
242
|
-
cursor: not-allowed;
|
|
243
|
-
opacity: .48;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
:where(#root) :where(input[type='file'])::file-selector-button {
|
|
247
|
-
margin-inline-end: 10px;
|
|
248
|
-
padding: 6px 10px;
|
|
249
|
-
border: 1px solid var(--xiaohei-edge);
|
|
250
|
-
border-radius: var(--xiaohei-radius-small);
|
|
251
|
-
color: var(--dsw-alias-label-primary);
|
|
252
|
-
background: var(--xiaohei-plugin-control-fill);
|
|
253
|
-
font: inherit;
|
|
254
|
-
cursor: pointer;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
:where(#root) :where(progress) {
|
|
258
|
-
overflow: hidden;
|
|
259
|
-
border: 0;
|
|
260
|
-
border-radius: 999px;
|
|
261
|
-
color: var(--xiaohei-spirit);
|
|
262
|
-
background: var(--xiaohei-surface-muted);
|
|
263
|
-
accent-color: var(--xiaohei-spirit);
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
:where(#root) :where(progress)::-webkit-progress-bar {
|
|
267
|
-
background: var(--xiaohei-surface-muted);
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
:where(#root) :where(progress)::-webkit-progress-value {
|
|
271
|
-
background: var(--xiaohei-spirit);
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
:where(#root) :where(progress)::-moz-progress-bar {
|
|
275
|
-
background: var(--xiaohei-spirit);
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
:where(#root) :where(fieldset) {
|
|
279
|
-
min-width: 0;
|
|
280
|
-
margin: 0;
|
|
281
|
-
padding: 0;
|
|
282
|
-
border: 0;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
:where(#root) :where(legend) {
|
|
286
|
-
padding: 0;
|
|
287
|
-
color: var(--dsw-alias-label-secondary);
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
:where(#root) :where(summary) {
|
|
291
|
-
cursor: pointer;
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
:where(#root) :where(a) {
|
|
295
|
-
color: var(--xiaohei-spirit-strong);
|
|
296
|
-
text-decoration-color: var(--xiaohei-edge-strong);
|
|
297
|
-
text-underline-offset: .18em;
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
:where(#root) :where(a):hover {
|
|
301
|
-
text-decoration-color: currentColor;
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
#root {
|
|
305
|
-
scrollbar-width: thin;
|
|
306
|
-
scrollbar-color: transparent transparent;
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
#root:hover,
|
|
310
|
-
#root:focus-within {
|
|
311
|
-
scrollbar-color: var(--dsw-alias-scrollbar-bg-l1) transparent;
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
#root ::-webkit-scrollbar {
|
|
315
|
-
width: 6px;
|
|
316
|
-
height: 6px;
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
#root ::-webkit-scrollbar-track,
|
|
320
|
-
#root ::-webkit-scrollbar-corner {
|
|
321
|
-
background: transparent;
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
#root ::-webkit-scrollbar-thumb {
|
|
325
|
-
min-width: 28px;
|
|
326
|
-
min-height: 28px;
|
|
327
|
-
border: 2px solid transparent;
|
|
328
|
-
border-radius: 999px;
|
|
329
|
-
background: transparent;
|
|
330
|
-
background-clip: padding-box;
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
#root:hover ::-webkit-scrollbar-thumb,
|
|
334
|
-
#root:focus-within ::-webkit-scrollbar-thumb {
|
|
335
|
-
background-color: var(--dsw-alias-scrollbar-bg-l1);
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
#root ::-webkit-scrollbar-thumb:hover {
|
|
339
|
-
background-color: var(--dsw-alias-scrollbar-hover-l1);
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
@media (forced-colors: active) {
|
|
343
|
-
:where(#root) :where(input, textarea, select, button, progress) {
|
|
344
|
-
forced-color-adjust: auto;
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
`;
|
|
348
|
-
//# sourceMappingURL=controls.js.map
|