@fluid-topics/ft-chip 2.0.35 → 2.0.37
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/build/ft-chip.light.js +362 -355
- package/build/ft-chip.min.js +456 -449
- package/build/ftds-chip.d.ts +1 -0
- package/build/ftds-chip.js +10 -5
- package/build/ftds-chip.property.d.ts +1 -0
- package/build/ftds-chip.styles.js +10 -2
- package/package.json +7 -7
package/build/ftds-chip.d.ts
CHANGED
package/build/ftds-chip.js
CHANGED
|
@@ -4,12 +4,12 @@ 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 { html, nothing } from "lit";
|
|
8
|
-
import { property, query } from "lit/decorators.js";
|
|
7
|
+
import { html, nothing, } from "lit";
|
|
8
|
+
import { property, query, } from "lit/decorators.js";
|
|
9
9
|
import { classMap } from "lit/directives/class-map.js";
|
|
10
|
-
import { DesignSystemFamily, FtdsBase } from "@fluid-topics/ft-wc-utils";
|
|
11
|
-
import { FtdsTypography, FtdsTypographyVariants } from "@fluid-topics/ft-typography";
|
|
12
|
-
import { FtIcon, FtIcons, FtIconVariants } from "@fluid-topics/ft-icon";
|
|
10
|
+
import { DesignSystemFamily, FtdsBase, } from "@fluid-topics/ft-wc-utils";
|
|
11
|
+
import { FtdsTypography, FtdsTypographyVariants, } from "@fluid-topics/ft-typography";
|
|
12
|
+
import { FtIcon, FtIcons, FtIconVariants, } from "@fluid-topics/ft-icon";
|
|
13
13
|
import { designSystemStyle } from "./ftds-chip.styles";
|
|
14
14
|
import { DesignSystemSize } from "@fluid-topics/design-system-variables";
|
|
15
15
|
import { FtdsButton } from "@fluid-topics/ft-button";
|
|
@@ -23,6 +23,7 @@ export class FtdsChip extends FtdsBase {
|
|
|
23
23
|
super(...arguments);
|
|
24
24
|
this.withAction = false;
|
|
25
25
|
this.removable = false;
|
|
26
|
+
this.multiLine = false;
|
|
26
27
|
this.removeButtonLabel = "Remove";
|
|
27
28
|
this.label = "";
|
|
28
29
|
}
|
|
@@ -31,6 +32,7 @@ export class FtdsChip extends FtdsBase {
|
|
|
31
32
|
"ftds-chip": true,
|
|
32
33
|
"ftds-chip--with-action": this.removable || this.withAction,
|
|
33
34
|
"ftds-chip--with-icon": !!this.icon,
|
|
35
|
+
"ftds-chip--multi-line": this.multiLine,
|
|
34
36
|
...this.getDesignSystemBaseClasses(),
|
|
35
37
|
};
|
|
36
38
|
return html `
|
|
@@ -113,6 +115,9 @@ __decorate([
|
|
|
113
115
|
__decorate([
|
|
114
116
|
property({ type: Boolean })
|
|
115
117
|
], FtdsChip.prototype, "removable", void 0);
|
|
118
|
+
__decorate([
|
|
119
|
+
property({ type: Boolean })
|
|
120
|
+
], FtdsChip.prototype, "multiLine", void 0);
|
|
116
121
|
__decorate([
|
|
117
122
|
property()
|
|
118
123
|
], FtdsChip.prototype, "removeButtonLabel", void 0);
|
|
@@ -25,7 +25,16 @@ export const designSystemStyle = [
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.ftds-chip ftds-typography {
|
|
28
|
-
|
|
28
|
+
overflow: hidden;
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
min-width: 0;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.ftds-chip:not(.ftds-chip--multi-line) ftds-typography::part(text) {
|
|
35
|
+
overflow: hidden;
|
|
36
|
+
text-overflow: ellipsis;
|
|
37
|
+
white-space: nowrap;
|
|
29
38
|
}
|
|
30
39
|
|
|
31
40
|
|
|
@@ -52,7 +61,6 @@ export const designSystemStyle = [
|
|
|
52
61
|
}
|
|
53
62
|
|
|
54
63
|
.ftds--size-small ftds-typography {
|
|
55
|
-
overflow: visible;
|
|
56
64
|
padding: 0 2px;
|
|
57
65
|
}
|
|
58
66
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-chip",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.37",
|
|
4
4
|
"description": "A generic Fluid Topics chip",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/design-system-variables": "3.
|
|
23
|
-
"@fluid-topics/ft-icon": "2.0.
|
|
24
|
-
"@fluid-topics/ft-ripple": "2.0.
|
|
25
|
-
"@fluid-topics/ft-typography": "2.0.
|
|
26
|
-
"@fluid-topics/ft-wc-utils": "2.0.
|
|
22
|
+
"@fluid-topics/design-system-variables": "3.4.1",
|
|
23
|
+
"@fluid-topics/ft-icon": "2.0.37",
|
|
24
|
+
"@fluid-topics/ft-ripple": "2.0.37",
|
|
25
|
+
"@fluid-topics/ft-typography": "2.0.37",
|
|
26
|
+
"@fluid-topics/ft-wc-utils": "2.0.37",
|
|
27
27
|
"lit": "3.1.0"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "ef1f68e09e0331293931458a6479b551dcc4cecc"
|
|
30
30
|
}
|