@lemoncat7/dsh-theme-xiaohei 0.4.5 → 0.5.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 (230) hide show
  1. package/README.md +25 -92
  2. package/THIRD_PARTY_NOTICES.md +13 -1
  3. package/docs/dsh-021-compatibility.md +23 -0
  4. package/docs/releases/0.4.6.md +17 -0
  5. package/docs/releases/0.5.0.md +24 -0
  6. package/docs/releases/README.md +14 -0
  7. package/docs/rift-interaction.md +35 -0
  8. package/docs/rift-preview.md +39 -0
  9. package/lib/client.companion.js +99 -0
  10. package/lib/client.decorations.js +224 -51
  11. package/lib/client.js +532 -2501
  12. package/lib/index.d.ts +1 -2
  13. package/lib/index.js +393 -11
  14. package/lib/rift/boot.d.ts +6 -0
  15. package/package.json +30 -19
  16. package/lib/appearance.d.ts +0 -12
  17. package/lib/appearance.js +0 -42
  18. package/lib/blink.d.ts +0 -4
  19. package/lib/blink.js +0 -110
  20. package/lib/bloub-heixiu/ambient.d.ts +0 -3
  21. package/lib/bloub-heixiu/ambient.js +0 -12
  22. package/lib/bloub-heixiu/character.d.ts +0 -33
  23. package/lib/bloub-heixiu/character.js +0 -124
  24. package/lib/bloub-heixiu/effects.d.ts +0 -4
  25. package/lib/bloub-heixiu/effects.js +0 -91
  26. package/lib/bloub-heixiu/flight.d.ts +0 -15
  27. package/lib/bloub-heixiu/flight.js +0 -66
  28. package/lib/bloub-heixiu/follow.d.ts +0 -13
  29. package/lib/bloub-heixiu/follow.js +0 -23
  30. package/lib/bloub-heixiu/layout.d.ts +0 -18
  31. package/lib/bloub-heixiu/layout.js +0 -12
  32. package/lib/bloub-heixiu/renderer.d.ts +0 -16
  33. package/lib/bloub-heixiu/renderer.js +0 -94
  34. package/lib/bloub-heixiu/runtime.d.ts +0 -6
  35. package/lib/bloub-heixiu/runtime.js +0 -409
  36. package/lib/bloub-heixiu/signals.d.ts +0 -17
  37. package/lib/bloub-heixiu/signals.js +0 -55
  38. package/lib/bloub-heixiu/styles.d.ts +0 -2
  39. package/lib/bloub-heixiu/styles.js +0 -98
  40. package/lib/boot-appearance.d.ts +0 -10
  41. package/lib/boot-appearance.js +0 -47
  42. package/lib/boot-loader.d.ts +0 -5
  43. package/lib/boot-loader.js +0 -158
  44. package/lib/chrome/accessibility.d.ts +0 -3
  45. package/lib/chrome/accessibility.js +0 -69
  46. package/lib/chrome/blink.d.ts +0 -3
  47. package/lib/chrome/blink.js +0 -15
  48. package/lib/chrome/composer-avatar.d.ts +0 -10
  49. package/lib/chrome/composer-avatar.js +0 -599
  50. package/lib/chrome/composer-send-heixiu.d.ts +0 -3
  51. package/lib/chrome/composer-send-heixiu.js +0 -143
  52. package/lib/chrome/composer.d.ts +0 -3
  53. package/lib/chrome/composer.js +0 -135
  54. package/lib/chrome/controls.d.ts +0 -8
  55. package/lib/chrome/controls.js +0 -348
  56. package/lib/chrome/conversation-messages.d.ts +0 -3
  57. package/lib/chrome/conversation-messages.js +0 -329
  58. package/lib/chrome/conversation-submissions.d.ts +0 -3
  59. package/lib/chrome/conversation-submissions.js +0 -68
  60. package/lib/chrome/conversation.d.ts +0 -3
  61. package/lib/chrome/conversation.js +0 -67
  62. package/lib/chrome/frames.d.ts +0 -6
  63. package/lib/chrome/frames.js +0 -134
  64. package/lib/chrome/gaze.d.ts +0 -3
  65. package/lib/chrome/gaze.js +0 -103
  66. package/lib/chrome/identity.d.ts +0 -6
  67. package/lib/chrome/identity.js +0 -47
  68. package/lib/chrome/overlays.d.ts +0 -3
  69. package/lib/chrome/overlays.js +0 -104
  70. package/lib/chrome/portal.d.ts +0 -6
  71. package/lib/chrome/portal.js +0 -169
  72. package/lib/chrome/reactions.d.ts +0 -3
  73. package/lib/chrome/reactions.js +0 -85
  74. package/lib/chrome/sidebar.d.ts +0 -3
  75. package/lib/chrome/sidebar.js +0 -313
  76. package/lib/chrome/tokens.d.ts +0 -3
  77. package/lib/chrome/tokens.js +0 -224
  78. package/lib/chrome/workspace.d.ts +0 -3
  79. package/lib/chrome/workspace.js +0 -94
  80. package/lib/chrome.d.ts +0 -10
  81. package/lib/chrome.js +0 -46
  82. package/lib/client-entry.d.ts +0 -3
  83. package/lib/client-entry.js +0 -3
  84. package/lib/client.d.ts +0 -10
  85. package/lib/client.pose-chin-dark.js +0 -4
  86. package/lib/client.pose-chin-light.js +0 -4
  87. package/lib/client.pose-doze-dark.js +0 -4
  88. package/lib/client.pose-doze-light.js +0 -4
  89. package/lib/client.pose-halfpeek-dark.js +0 -4
  90. package/lib/client.pose-halfpeek-light.js +0 -4
  91. package/lib/client.pose-peek-dark.js +0 -4
  92. package/lib/client.pose-peek-light.js +0 -4
  93. package/lib/client.pose-seated-dark.js +0 -4
  94. package/lib/client.pose-seated-light.js +0 -4
  95. package/lib/client.rig-chin-dark.js +0 -4
  96. package/lib/client.rig-chin-light.js +0 -4
  97. package/lib/client.rig-halfpeek-dark.js +0 -4
  98. package/lib/client.rig-halfpeek-light.js +0 -4
  99. package/lib/client.rig-peek-dark.js +0 -4
  100. package/lib/client.rig-peek-light.js +0 -4
  101. package/lib/client.rig-seated-dark.js +0 -4
  102. package/lib/client.rig-seated-light.js +0 -4
  103. package/lib/composer-avatar.d.ts +0 -18
  104. package/lib/composer-avatar.js +0 -441
  105. package/lib/composer-draft-preview.d.ts +0 -4
  106. package/lib/composer-draft-preview.js +0 -8
  107. package/lib/composer-send-heixiu.d.ts +0 -8
  108. package/lib/composer-send-heixiu.js +0 -133
  109. package/lib/current-session.d.ts +0 -6
  110. package/lib/current-session.js +0 -5
  111. package/lib/decorations-entry.d.ts +0 -3
  112. package/lib/decorations-entry.js +0 -18
  113. package/lib/deferred-decorations.d.ts +0 -3
  114. package/lib/deferred-decorations.js +0 -51
  115. package/lib/gaze.d.ts +0 -4
  116. package/lib/gaze.js +0 -230
  117. package/lib/generated-backgrounds.d.ts +0 -14
  118. package/lib/generated-backgrounds.js +0 -14
  119. package/lib/generated-character-motion.d.ts +0 -4
  120. package/lib/generated-character-motion.js +0 -2
  121. package/lib/generated-identity.d.ts +0 -6
  122. package/lib/generated-identity.js +0 -6
  123. package/lib/generated-keyart.d.ts +0 -34
  124. package/lib/generated-keyart.js +0 -34
  125. package/lib/generated-loading-assets.d.ts +0 -4
  126. package/lib/generated-loading-assets.js +0 -4
  127. package/lib/heixiu-interactions.d.ts +0 -10
  128. package/lib/heixiu-interactions.js +0 -161
  129. package/lib/host-contract.d.ts +0 -9
  130. package/lib/host-contract.js +0 -13
  131. package/lib/host-dom.d.ts +0 -11
  132. package/lib/host-dom.js +0 -68
  133. package/lib/loading-heixiu.d.ts +0 -8
  134. package/lib/loading-heixiu.js +0 -287
  135. package/lib/metallic-brand-mark.d.ts +0 -10
  136. package/lib/metallic-brand-mark.js +0 -296
  137. package/lib/plugin.d.ts +0 -6
  138. package/lib/plugin.js +0 -60
  139. package/lib/portal.d.ts +0 -40
  140. package/lib/portal.js +0 -225
  141. package/lib/reactions.d.ts +0 -20
  142. package/lib/reactions.js +0 -380
  143. package/lib/scene/avatar-model.d.ts +0 -6
  144. package/lib/scene/avatar-model.js +0 -646
  145. package/lib/scene/avatar-motion.d.ts +0 -3
  146. package/lib/scene/avatar-motion.js +0 -799
  147. package/lib/scene/character-assets.d.ts +0 -13
  148. package/lib/scene/character-assets.js +0 -26
  149. package/lib/scene/character-expression.d.ts +0 -4
  150. package/lib/scene/character-expression.js +0 -15
  151. package/lib/scene/character-eye-material.d.ts +0 -13
  152. package/lib/scene/character-eye-material.js +0 -88
  153. package/lib/scene/character-eye-renderer.d.ts +0 -5
  154. package/lib/scene/character-eye-renderer.js +0 -80
  155. package/lib/scene/character-eye-rig.d.ts +0 -20
  156. package/lib/scene/character-eye-rig.js +0 -35
  157. package/lib/scene/character-gaze.d.ts +0 -16
  158. package/lib/scene/character-gaze.js +0 -36
  159. package/lib/scene/character-idle.d.ts +0 -17
  160. package/lib/scene/character-idle.js +0 -65
  161. package/lib/scene/character-layout.d.ts +0 -24
  162. package/lib/scene/character-layout.js +0 -51
  163. package/lib/scene/character-motion-clock.d.ts +0 -18
  164. package/lib/scene/character-motion-clock.js +0 -70
  165. package/lib/scene/character-motion-types.d.ts +0 -12
  166. package/lib/scene/character-motion-types.js +0 -2
  167. package/lib/scene/character-motion.d.ts +0 -6
  168. package/lib/scene/character-motion.js +0 -187
  169. package/lib/scene/character-poses.d.ts +0 -26
  170. package/lib/scene/character-poses.js +0 -11
  171. package/lib/scene/character-rig-renderer.d.ts +0 -5
  172. package/lib/scene/character-rig-renderer.js +0 -95
  173. package/lib/scene/character-rig.d.ts +0 -22
  174. package/lib/scene/character-rig.js +0 -61
  175. package/lib/scene/heixiu-feedback.d.ts +0 -3
  176. package/lib/scene/heixiu-feedback.js +0 -64
  177. package/lib/scene/heixiu-interactions.d.ts +0 -3
  178. package/lib/scene/heixiu-interactions.js +0 -92
  179. package/lib/scene/ids.d.ts +0 -5
  180. package/lib/scene/ids.js +0 -5
  181. package/lib/scene/pointer-bridge.d.ts +0 -21
  182. package/lib/scene/pointer-bridge.js +0 -155
  183. package/lib/scene/runtime.d.ts +0 -12
  184. package/lib/scene/runtime.js +0 -74
  185. package/lib/scene/state-transitions.d.ts +0 -3
  186. package/lib/scene/state-transitions.js +0 -37
  187. package/lib/scene/styles.d.ts +0 -5
  188. package/lib/scene/styles.js +0 -69
  189. package/lib/scene/sylva-performance.d.ts +0 -11
  190. package/lib/scene/sylva-performance.js +0 -58
  191. package/lib/scene/wallpaper-character-styles.d.ts +0 -3
  192. package/lib/scene/wallpaper-character-styles.js +0 -49
  193. package/lib/scene/wallpaper-character.d.ts +0 -5
  194. package/lib/scene/wallpaper-character.js +0 -222
  195. package/lib/scene.d.ts +0 -8
  196. package/lib/scene.js +0 -8
  197. package/lib/sidebar-glass.d.ts +0 -16
  198. package/lib/sidebar-glass.js +0 -168
  199. package/lib/sidebar-heixiu-escape.d.ts +0 -44
  200. package/lib/sidebar-heixiu-escape.js +0 -340
  201. package/lib/sidebar-heixiu-roaming.d.ts +0 -27
  202. package/lib/sidebar-heixiu-roaming.js +0 -310
  203. package/lib/sidebar-reveal.d.ts +0 -8
  204. package/lib/sidebar-reveal.js +0 -59
  205. package/lib/state.d.ts +0 -21
  206. package/lib/state.js +0 -123
  207. package/lib/theme.d.ts +0 -19
  208. package/lib/theme.js +0 -188
  209. package/lib/vendor/bloub/decor.d.ts +0 -114
  210. package/lib/vendor/bloub/decor.js +0 -198
  211. package/lib/vendor/bloub/engine.d.ts +0 -213
  212. package/lib/vendor/bloub/engine.js +0 -452
  213. package/lib/vendor/bloub/expressions.d.ts +0 -35
  214. package/lib/vendor/bloub/expressions.js +0 -143
  215. package/lib/vendor/bloub/eyefit.d.ts +0 -75
  216. package/lib/vendor/bloub/eyefit.js +0 -393
  217. package/lib/vendor/bloub/face.d.ts +0 -63
  218. package/lib/vendor/bloub/face.js +0 -106
  219. package/lib/vendor/bloub/math.d.ts +0 -22
  220. package/lib/vendor/bloub/math.js +0 -36
  221. package/lib/vendor/bloub/profiles.d.ts +0 -8
  222. package/lib/vendor/bloub/profiles.js +0 -20
  223. package/lib/vendor/bloub/repere.d.ts +0 -30
  224. package/lib/vendor/bloub/repere.js +0 -32
  225. package/lib/vendor/bloub/shape.d.ts +0 -80
  226. package/lib/vendor/bloub/shape.js +0 -268
  227. package/lib/vendor/bloub/skins.d.ts +0 -36
  228. package/lib/vendor/bloub/skins.js +0 -74
  229. package/lib/vendor/bloub/states.d.ts +0 -87
  230. 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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -1,3 +0,0 @@
1
- /** Native conversation messages restyled without changing their DOM contract. */
2
- export declare const XIAOHEI_CONVERSATION_MESSAGES_CSS: string;
3
- //# sourceMappingURL=conversation-messages.d.ts.map