@fluid-topics/ft-button 1.3.44 → 1.3.46
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-base-button.d.ts +1 -1
- package/build/ft-base-button.js +9 -11
- package/build/ft-button.d.ts +2 -0
- package/build/ft-button.js +6 -1
- package/build/ft-button.light.js +111 -93
- package/build/ft-button.min.js +213 -195
- package/build/ftds-button.d.ts +2 -0
- package/build/ftds-button.js +10 -6
- package/package.json +8 -8
package/build/ftds-button.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { FtBaseButton } from "./ft-base-button";
|
|
2
2
|
import { FtdsButtonProperties } from "./ftds-button.properties";
|
|
3
3
|
import { ClassInfo } from "lit/directives/class-map.js";
|
|
4
|
+
import { ElementDefinitionsMap } from "@fluid-topics/ft-wc-utils";
|
|
4
5
|
import { DesignSystemFamily } from "@fluid-topics/design-system-variables";
|
|
5
6
|
import { FtIconVariants } from "@fluid-topics/ft-icon";
|
|
6
7
|
declare const FtdsButton_base: import("@fluid-topics/ft-wc-utils").FtdsBaseType<typeof FtBaseButton>;
|
|
7
8
|
export declare class FtdsButton extends FtdsButton_base implements FtdsButtonProperties {
|
|
9
|
+
static elementDefinitions: ElementDefinitionsMap;
|
|
8
10
|
primary: boolean;
|
|
9
11
|
secondary: boolean;
|
|
10
12
|
tertiary: boolean;
|
package/build/ftds-button.js
CHANGED
|
@@ -6,11 +6,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { FtBaseButton } from "./ft-base-button";
|
|
8
8
|
import { property } from "lit/decorators.js";
|
|
9
|
-
import { FtTypographyVariants } from "@fluid-topics/ft-typography/build/ft-typography.properties";
|
|
10
9
|
import { safariEllipsisFix, toFtdsBase } from "@fluid-topics/ft-wc-utils";
|
|
11
10
|
import { designSystemStyles } from "./ftds-button.styles";
|
|
12
11
|
import { DesignSystemFamily, DesignSystemSize } from "@fluid-topics/design-system-variables";
|
|
13
12
|
import { FtIconVariants } from "@fluid-topics/ft-icon";
|
|
13
|
+
import { FtdsTypography, FtdsTypographyVariants } from "@fluid-topics/ft-typography";
|
|
14
14
|
class FtdsButton extends toFtdsBase(FtBaseButton) {
|
|
15
15
|
constructor() {
|
|
16
16
|
super(...arguments);
|
|
@@ -33,23 +33,27 @@ class FtdsButton extends toFtdsBase(FtBaseButton) {
|
|
|
33
33
|
"ft-no-text-select": true,
|
|
34
34
|
"ft-button--no-icon": !this.icon,
|
|
35
35
|
"ft-button--round": this.round,
|
|
36
|
-
...this.getDesignSystemBaseClasses()
|
|
36
|
+
...this.getDesignSystemBaseClasses(),
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
get typographyVariant() {
|
|
40
40
|
switch (this.size) {
|
|
41
41
|
case DesignSystemSize.large:
|
|
42
|
-
return
|
|
42
|
+
return FtdsTypographyVariants.body2medium;
|
|
43
43
|
case DesignSystemSize.medium:
|
|
44
|
-
return
|
|
44
|
+
return FtdsTypographyVariants.caption1medium;
|
|
45
45
|
case DesignSystemSize.small:
|
|
46
|
-
return
|
|
46
|
+
return FtdsTypographyVariants.caption2medium;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
+
FtdsButton.elementDefinitions = {
|
|
51
|
+
...FtBaseButton.elementDefinitions,
|
|
52
|
+
"ft-or-ftds-typography": FtdsTypography,
|
|
53
|
+
};
|
|
50
54
|
FtdsButton.styles = [
|
|
51
55
|
safariEllipsisFix,
|
|
52
|
-
designSystemStyles
|
|
56
|
+
designSystemStyles,
|
|
53
57
|
];
|
|
54
58
|
__decorate([
|
|
55
59
|
property({ type: Boolean })
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-button",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.46",
|
|
4
4
|
"description": "A generic Fluid Topics tag",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@fluid-topics/design-system-variables": "2.53.1",
|
|
23
|
-
"@fluid-topics/ft-icon": "1.3.
|
|
24
|
-
"@fluid-topics/ft-loader": "1.3.
|
|
25
|
-
"@fluid-topics/ft-ripple": "1.3.
|
|
26
|
-
"@fluid-topics/ft-tooltip": "1.3.
|
|
27
|
-
"@fluid-topics/ft-typography": "1.3.
|
|
28
|
-
"@fluid-topics/ft-wc-utils": "1.3.
|
|
23
|
+
"@fluid-topics/ft-icon": "1.3.46",
|
|
24
|
+
"@fluid-topics/ft-loader": "1.3.46",
|
|
25
|
+
"@fluid-topics/ft-ripple": "1.3.46",
|
|
26
|
+
"@fluid-topics/ft-tooltip": "1.3.46",
|
|
27
|
+
"@fluid-topics/ft-typography": "1.3.46",
|
|
28
|
+
"@fluid-topics/ft-wc-utils": "1.3.46",
|
|
29
29
|
"lit": "3.1.0"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "d6cf25d6ed0dead8c7aff4f94a493c35d12f1392"
|
|
32
32
|
}
|