@fusion.dev/helix-core 0.15.7 → 0.16.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.
package/custom-elements.json
CHANGED
|
@@ -7067,7 +7067,7 @@
|
|
|
7067
7067
|
"type": {
|
|
7068
7068
|
"text": "string"
|
|
7069
7069
|
},
|
|
7070
|
-
"description": "What the control
|
|
7070
|
+
"description": "What the control is called once everything is showing.\n\n**The name and not the words on it**, which are a caret: expanded there is\nno longer a number to show, and a phrase in its place would translate badly\nand change the control's width as it was pressed. The mark is the same size\neither way and this is what says what pressing it does."
|
|
7071
7071
|
},
|
|
7072
7072
|
{
|
|
7073
7073
|
"kind": "field",
|
|
@@ -7174,7 +7174,7 @@
|
|
|
7174
7174
|
"text": "string"
|
|
7175
7175
|
},
|
|
7176
7176
|
"default": "'Show fewer'",
|
|
7177
|
-
"description": "What the control
|
|
7177
|
+
"description": "What the control is called once everything is showing.",
|
|
7178
7178
|
"attribute": "collapse-label"
|
|
7179
7179
|
},
|
|
7180
7180
|
{
|
|
@@ -7336,7 +7336,7 @@
|
|
|
7336
7336
|
"text": "string"
|
|
7337
7337
|
},
|
|
7338
7338
|
"default": "'Show fewer'",
|
|
7339
|
-
"description": "What the control
|
|
7339
|
+
"description": "What the control is called once everything is showing.",
|
|
7340
7340
|
"fieldName": "collapseLabel"
|
|
7341
7341
|
},
|
|
7342
7342
|
{
|
|
@@ -43,11 +43,12 @@ export declare class MixinTokensInterface {
|
|
|
43
43
|
*/
|
|
44
44
|
expandLabel: string;
|
|
45
45
|
/**
|
|
46
|
-
* What the control
|
|
46
|
+
* What the control is called once everything is showing.
|
|
47
47
|
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
48
|
+
* **The name and not the words on it**, which are a caret: expanded there is
|
|
49
|
+
* no longer a number to show, and a phrase in its place would translate badly
|
|
50
|
+
* and change the control's width as it was pressed. The mark is the same size
|
|
51
|
+
* either way and this is what says what pressing it does.
|
|
51
52
|
*/
|
|
52
53
|
collapseLabel: string;
|
|
53
54
|
/**
|
|
@@ -4,8 +4,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
+
import { caretUp } from '@fusion.dev/helix-icons';
|
|
7
8
|
import { html, nothing } from 'lit';
|
|
8
9
|
import { property, state } from 'lit/decorators.js';
|
|
10
|
+
import { drawIcon } from '../../utils/draw-icon/draw-icon.js';
|
|
9
11
|
export const MixinTokens = (Base) => {
|
|
10
12
|
class TokensElement extends Base {
|
|
11
13
|
constructor() {
|
|
@@ -36,9 +38,9 @@ export const MixinTokens = (Base) => {
|
|
|
36
38
|
part="rest"
|
|
37
39
|
type="button"
|
|
38
40
|
aria-expanded=${this.expanded ? 'true' : 'false'}
|
|
39
|
-
aria-label=${this.expanded ?
|
|
41
|
+
aria-label=${this.expanded ? this.collapseLabel : this.expandLabel}
|
|
40
42
|
@click=${this.toggleExpanded}
|
|
41
|
-
>${this.expanded ?
|
|
43
|
+
>${this.expanded ? drawIcon(caretUp) : `+${over}`}</button
|
|
42
44
|
>`;
|
|
43
45
|
}
|
|
44
46
|
hideOverflow(slot) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fusion.dev/helix-core",
|
|
3
3
|
"description": "Helix element primitives: base classes, mixins, decorators, utilities.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.16.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Ross Sheppard <ross.sheppard@fusion.dev>",
|
|
7
7
|
"repository": {
|
|
@@ -34,12 +34,12 @@
|
|
|
34
34
|
"bugs": "https://github.com/project-fusion/fusion/issues",
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@floating-ui/dom": "^1.8.0",
|
|
37
|
-
"@fusion.dev/helix-icons": "0.
|
|
37
|
+
"@fusion.dev/helix-icons": "0.16.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@custom-elements-manifest/analyzer": "^0.11.0",
|
|
41
|
-
"@fusion.dev/helix-cem": "0.
|
|
42
|
-
"@fusion.dev/helix-testing": "0.
|
|
41
|
+
"@fusion.dev/helix-cem": "0.16.0",
|
|
42
|
+
"@fusion.dev/helix-testing": "0.16.0",
|
|
43
43
|
"lit": "^3.2.1"
|
|
44
44
|
},
|
|
45
45
|
"homepage": "https://fusion.dev",
|