@fusion.dev/helix 0.20.0 → 0.20.2
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/custom-elements.json +9 -0
- package/dist/chat/composer/chat-composer.css.js +1 -1
- package/dist/chat/message/chat-message.css.js +11 -0
- package/dist/chat/message/chat-message.d.ts +1 -0
- package/dist/chat/root/chat-root.css.js +5 -1
- package/dist/notifications/root/notifications-root.css.js +3 -2
- package/package.json +6 -6
- package/types/jsx.d.ts +4 -0
- package/types/vue.d.ts +2 -0
package/custom-elements.json
CHANGED
|
@@ -10903,6 +10903,10 @@
|
|
|
10903
10903
|
"description": "**`author=\"me\"` is the one piece of paint that says whose turn it is**, and it\nsays it by which edge the turn sits against. Everything else about a turn is\nthe same on both sides, because two bubble styles is two components.\n\nA failure is the only state that takes a tone, because it is the one a reader\nhas to find rather than notice. `streaming` is left alone: the text arriving\nis the signal, and decorating it competes with the thing it is decorating.",
|
|
10904
10904
|
"name": "HelixChatMessage",
|
|
10905
10905
|
"cssProperties": [
|
|
10906
|
+
{
|
|
10907
|
+
"description": "Ground behind a slotted waiting indicator, which is a chip so the mark and its word read as one thing.",
|
|
10908
|
+
"name": "--chat-indicator-background-color"
|
|
10909
|
+
},
|
|
10906
10910
|
{
|
|
10907
10911
|
"description": "Fill behind a turn.",
|
|
10908
10912
|
"name": "--chat-message-background-color"
|
|
@@ -12410,6 +12414,11 @@
|
|
|
12410
12414
|
"min": 380,
|
|
12411
12415
|
"slug": "launcher"
|
|
12412
12416
|
},
|
|
12417
|
+
{
|
|
12418
|
+
"description": "An answer that is a document: a heading, a table, a list and a block of code in one turn.",
|
|
12419
|
+
"min": 480,
|
|
12420
|
+
"slug": "markdown"
|
|
12421
|
+
},
|
|
12413
12422
|
{
|
|
12414
12423
|
"description": "The sidebar: a drawer from the trailing edge, with the conversation filling the panel.",
|
|
12415
12424
|
"min": 420,
|
|
@@ -29,7 +29,7 @@ font-size: var(--helix-text-sm);
|
|
|
29
29
|
line-height: var(--helix-leading-normal);
|
|
30
30
|
max-block-size: var(--chat-composer-max-block-size, 12rem);
|
|
31
31
|
padding-block: var(--helix-space-2xs);
|
|
32
|
-
padding-inline: var(--helix-space-
|
|
32
|
+
padding-inline: var(--helix-space-none);
|
|
33
33
|
resize: none;
|
|
34
34
|
}
|
|
35
35
|
|
|
@@ -150,6 +150,17 @@ display: none;
|
|
|
150
150
|
display: block;
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
+
slot[name="indicator"]::slotted(*) {
|
|
154
|
+
background-color: var(--chat-indicator-background-color, var(--helix-color-surface-sunken));
|
|
155
|
+
border-radius: var(--helix-radii-full);
|
|
156
|
+
|
|
157
|
+
font-size: var(--helix-text-xs);
|
|
158
|
+
padding-block: var(--helix-space-2xs);
|
|
159
|
+
padding-inline: var(--helix-space-xs);
|
|
160
|
+
|
|
161
|
+
--orb-size: var(--helix-size-icon-sm);
|
|
162
|
+
}
|
|
163
|
+
|
|
153
164
|
[part="indicator"] {
|
|
154
165
|
animation: helix-chat-typing 1.2s infinite ease-in-out;
|
|
155
166
|
background-image:
|
|
@@ -26,6 +26,7 @@ import type { CSSResultGroup } from 'lit';
|
|
|
26
26
|
* @csspart indicator - The three dots, when nothing is slotted over them.
|
|
27
27
|
* @csspart meta - The time and the state together.
|
|
28
28
|
*
|
|
29
|
+
* @cssproperty --chat-indicator-background-color - Ground behind a slotted waiting indicator, which is a chip so the mark and its word read as one thing.
|
|
29
30
|
* @cssproperty --chat-message-background-color - Fill behind a turn.
|
|
30
31
|
* @cssproperty --chat-message-background-color-me - Fill behind the reader's own turns.
|
|
31
32
|
* @cssproperty --chat-message-color - Ink in a turn.
|
|
@@ -104,7 +104,11 @@ padding-inline: var(--chat-padding-inline, var(--helix-space-md));
|
|
|
104
104
|
|
|
105
105
|
[part="composer"] {
|
|
106
106
|
padding-block: var(--helix-space-sm);
|
|
107
|
-
padding-inline:
|
|
107
|
+
padding-inline: calc(
|
|
108
|
+
var(--chat-padding-inline, var(--helix-space-md)) -
|
|
109
|
+
var(--helix-space-xs) -
|
|
110
|
+
var(--helix-border-thin)
|
|
111
|
+
);
|
|
108
112
|
}
|
|
109
113
|
|
|
110
114
|
[part="empty"],
|
|
@@ -50,16 +50,17 @@ padding-inline: var(--notifications-padding-inline, var(--helix-space-md));
|
|
|
50
50
|
background: none;
|
|
51
51
|
border: 0;
|
|
52
52
|
border-radius: var(--helix-radii-sm);
|
|
53
|
-
color: var(--helix-color-
|
|
53
|
+
color: var(--helix-color-foreground-muted);
|
|
54
54
|
cursor: pointer;
|
|
55
55
|
font-family: var(--helix-font-sans);
|
|
56
56
|
font-size: var(--helix-text-sm);
|
|
57
57
|
padding-block: var(--helix-space-2xs);
|
|
58
58
|
padding-inline: var(--helix-space-2xs);
|
|
59
|
+
transition: color var(--helix-duration-fast) var(--helix-easing-standard);
|
|
59
60
|
}
|
|
60
61
|
|
|
61
62
|
[part="mark-all"]:hover {
|
|
62
|
-
|
|
63
|
+
color: var(--helix-color-foreground);
|
|
63
64
|
}
|
|
64
65
|
|
|
65
66
|
[part="mark-all"]:focus-visible {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fusion.dev/helix",
|
|
3
3
|
"description": "Styled component tier. Extends the headless tier with token-driven presentation.",
|
|
4
|
-
"version": "0.20.
|
|
4
|
+
"version": "0.20.2",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Ross Sheppard <ross.sheppard@fusion.dev>",
|
|
7
7
|
"repository": {
|
|
@@ -46,14 +46,14 @@
|
|
|
46
46
|
},
|
|
47
47
|
"bugs": "https://github.com/project-fusion/fusion/issues",
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@fusion.dev/helix-core": "0.20.
|
|
50
|
-
"@fusion.dev/helix-headless": "0.20.
|
|
51
|
-
"@fusion.dev/helix-styles": "0.20.
|
|
49
|
+
"@fusion.dev/helix-core": "0.20.2",
|
|
50
|
+
"@fusion.dev/helix-headless": "0.20.2",
|
|
51
|
+
"@fusion.dev/helix-styles": "0.20.2"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@custom-elements-manifest/analyzer": "^0.11.0",
|
|
55
|
-
"@fusion.dev/helix-cem": "0.20.
|
|
56
|
-
"@fusion.dev/helix-testing": "0.20.
|
|
55
|
+
"@fusion.dev/helix-cem": "0.20.2",
|
|
56
|
+
"@fusion.dev/helix-testing": "0.20.2",
|
|
57
57
|
"@fusion.dev/scripts": "0.0.0-dev",
|
|
58
58
|
"@happy-dom/global-registrator": "^20.0.0",
|
|
59
59
|
"@lit-labs/ssr": "^3.3.0",
|
package/types/jsx.d.ts
CHANGED
|
@@ -20422,6 +20422,7 @@ export type CustomElements = {
|
|
|
20422
20422
|
*
|
|
20423
20423
|
* CSS variables available for styling the component.
|
|
20424
20424
|
*
|
|
20425
|
+
* - `--chat-indicator-background-color`: Ground behind a slotted waiting indicator, which is a chip so the mark and its word read as one thing. (default: `undefined`)
|
|
20425
20426
|
* - `--chat-message-background-color`: Fill behind a turn. (default: `undefined`)
|
|
20426
20427
|
* - `--chat-message-background-color-me`: Fill behind the reader's own turns. (default: `undefined`)
|
|
20427
20428
|
* - `--chat-message-color`: Ink in a turn. (default: `undefined`)
|
|
@@ -36419,6 +36420,7 @@ export type CustomElementsSolidJs = {
|
|
|
36419
36420
|
*
|
|
36420
36421
|
* CSS variables available for styling the component.
|
|
36421
36422
|
*
|
|
36423
|
+
* - `--chat-indicator-background-color`: Ground behind a slotted waiting indicator, which is a chip so the mark and its word read as one thing. (default: `undefined`)
|
|
36422
36424
|
* - `--chat-message-background-color`: Fill behind a turn. (default: `undefined`)
|
|
36423
36425
|
* - `--chat-message-background-color-me`: Fill behind the reader's own turns. (default: `undefined`)
|
|
36424
36426
|
* - `--chat-message-color`: Ink in a turn. (default: `undefined`)
|
|
@@ -50693,6 +50695,8 @@ export type CustomCssProperties = {
|
|
|
50693
50695
|
"--chat-composer-border-width"?: (string) | undefined;
|
|
50694
50696
|
/** How tall the field may grow. */
|
|
50695
50697
|
"--chat-composer-max-block-size"?: (string) | undefined;
|
|
50698
|
+
/** Ground behind a slotted waiting indicator, which is a chip so the mark and its word read as one thing. */
|
|
50699
|
+
"--chat-indicator-background-color"?: (string) | undefined;
|
|
50696
50700
|
/** Fill behind a turn. */
|
|
50697
50701
|
"--chat-message-background-color"?: (string) | undefined;
|
|
50698
50702
|
/** Fill behind the reader's own turns. */
|
package/types/vue.d.ts
CHANGED
|
@@ -9489,6 +9489,8 @@ export type CustomCssProperties = {
|
|
|
9489
9489
|
"--chat-composer-border-width"?: (string) | undefined;
|
|
9490
9490
|
/** How tall the field may grow. */
|
|
9491
9491
|
"--chat-composer-max-block-size"?: (string) | undefined;
|
|
9492
|
+
/** Ground behind a slotted waiting indicator, which is a chip so the mark and its word read as one thing. */
|
|
9493
|
+
"--chat-indicator-background-color"?: (string) | undefined;
|
|
9492
9494
|
/** Fill behind a turn. */
|
|
9493
9495
|
"--chat-message-background-color"?: (string) | undefined;
|
|
9494
9496
|
/** Fill behind the reader's own turns. */
|