@fluid-topics/ft-button 1.1.41 → 1.1.43
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/README.md +1 -1
- package/build/ft-button.js +1 -1
- package/build/ft-button.light.js +51 -51
- package/build/ft-button.min.js +299 -261
- package/build/{ft-button.css.js → ft-button.styles.js} +4 -4
- package/build/ftds-button.js +1 -1
- package/build/{ftds-button.css.js → ftds-button.styles.js} +23 -23
- package/build/index.d.ts +2 -2
- package/build/index.js +2 -2
- package/package.json +8 -8
- /package/build/{ft-button.css.d.ts → ft-button.styles.d.ts} +0 -0
- /package/build/{ftds-button.css.d.ts → ftds-button.styles.d.ts} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { css, } from "lit";
|
|
2
2
|
import { designSystemVariables, FtCssVariableFactory, noTextSelect, setVariable } from "@fluid-topics/ft-wc-utils";
|
|
3
|
-
import { FtRippleCssVariables } from "@fluid-topics/ft-ripple/build/ft-ripple.
|
|
4
|
-
import { FtTypographyButtonCssVariables } from "@fluid-topics/ft-typography/build/ft-typography.
|
|
5
|
-
import { FtLoaderCssVariables } from "@fluid-topics/ft-loader/build/ft-loader.
|
|
6
|
-
import { FtIconCssVariables } from "@fluid-topics/ft-icon/build/ft-icon.
|
|
3
|
+
import { FtRippleCssVariables } from "@fluid-topics/ft-ripple/build/ft-ripple.styles";
|
|
4
|
+
import { FtTypographyButtonCssVariables } from "@fluid-topics/ft-typography/build/ft-typography.styles";
|
|
5
|
+
import { FtLoaderCssVariables } from "@fluid-topics/ft-loader/build/ft-loader.styles";
|
|
6
|
+
import { FtIconCssVariables } from "@fluid-topics/ft-icon/build/ft-icon.styles";
|
|
7
7
|
const buttonColor = FtCssVariableFactory.extend("--ft-button-color", "", designSystemVariables.colorPrimary);
|
|
8
8
|
export const FtButtonCssVariables = {
|
|
9
9
|
backgroundColor: FtCssVariableFactory.extend("--ft-button-background-color", "", designSystemVariables.colorSurface),
|
package/build/ftds-button.js
CHANGED
|
@@ -8,7 +8,7 @@ import { FtBaseButton } from "./ft-base-button";
|
|
|
8
8
|
import { property } from "lit/decorators.js";
|
|
9
9
|
import { FtTypographyVariants } from "@fluid-topics/ft-typography/build/ft-typography.properties";
|
|
10
10
|
import { safariEllipsisFix } from "@fluid-topics/ft-wc-utils";
|
|
11
|
-
import { designSystemStyles } from "./ftds-button.
|
|
11
|
+
import { designSystemStyles } from "./ftds-button.styles";
|
|
12
12
|
class FtdsButton extends FtBaseButton {
|
|
13
13
|
constructor() {
|
|
14
14
|
super(...arguments);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { css, } from "lit";
|
|
2
2
|
import { noTextSelect, setVariable } from "@fluid-topics/ft-wc-utils";
|
|
3
|
-
import { FtRippleCssVariables } from "@fluid-topics/ft-ripple/build/ft-ripple.
|
|
4
|
-
import { FtLoaderCssVariables } from "@fluid-topics/ft-loader/build/ft-loader.
|
|
5
|
-
import { FtIconCssVariables } from "@fluid-topics/ft-icon/build/ft-icon.
|
|
3
|
+
import { FtRippleCssVariables } from "@fluid-topics/ft-ripple/build/ft-ripple.styles";
|
|
4
|
+
import { FtLoaderCssVariables } from "@fluid-topics/ft-loader/build/ft-loader.styles";
|
|
5
|
+
import { FtIconCssVariables } from "@fluid-topics/ft-icon/build/ft-icon.styles";
|
|
6
6
|
import { button } from "@fluid-topics/design-system-variables";
|
|
7
7
|
export { button as FtdsButtonCssVariables } from "@fluid-topics/design-system-variables";
|
|
8
8
|
//language=css
|
|
@@ -89,10 +89,10 @@ export const designSystemStyles = [
|
|
|
89
89
|
${setVariable(FtLoaderCssVariables.color, button.primaryIconColor)};
|
|
90
90
|
|
|
91
91
|
${setVariable(FtRippleCssVariables.color, button.primaryStateLayerColor)};
|
|
92
|
-
${setVariable(FtRippleCssVariables.opacityContentOnSurfaceHover, button.
|
|
93
|
-
${setVariable(FtRippleCssVariables.opacityContentOnSurfaceFocused, button.
|
|
94
|
-
${setVariable(FtRippleCssVariables.opacityContentOnSurfaceSelected, button.
|
|
95
|
-
${setVariable(FtRippleCssVariables.opacityContentOnSurfacePressed, button.
|
|
92
|
+
${setVariable(FtRippleCssVariables.opacityContentOnSurfaceHover, button.primaryHoverStateLayerOpacity)};
|
|
93
|
+
${setVariable(FtRippleCssVariables.opacityContentOnSurfaceFocused, button.primaryFocusStateLayerOpacity)};
|
|
94
|
+
${setVariable(FtRippleCssVariables.opacityContentOnSurfaceSelected, button.primaryActiveStateLayerOpacity)};
|
|
95
|
+
${setVariable(FtRippleCssVariables.opacityContentOnSurfacePressed, button.primaryActiveStateLayerOpacity)};
|
|
96
96
|
|
|
97
97
|
background-color: ${button.primaryBackgroundColor};
|
|
98
98
|
color: ${button.primaryColor};
|
|
@@ -100,7 +100,7 @@ export const designSystemStyles = [
|
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
.ft-button--primary[disabled] {
|
|
103
|
-
opacity: ${button.
|
|
103
|
+
opacity: ${button.primaryDisabledComponentOpacity};
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
.ft-button--primary ft-icon {
|
|
@@ -113,10 +113,10 @@ export const designSystemStyles = [
|
|
|
113
113
|
${setVariable(FtLoaderCssVariables.color, button.secondaryIconColor)};
|
|
114
114
|
|
|
115
115
|
${setVariable(FtRippleCssVariables.color, button.secondaryStateLayerColor)};
|
|
116
|
-
${setVariable(FtRippleCssVariables.opacityContentOnSurfaceHover, button.
|
|
117
|
-
${setVariable(FtRippleCssVariables.opacityContentOnSurfaceFocused, button.
|
|
118
|
-
${setVariable(FtRippleCssVariables.opacityContentOnSurfaceSelected, button.
|
|
119
|
-
${setVariable(FtRippleCssVariables.opacityContentOnSurfacePressed, button.
|
|
116
|
+
${setVariable(FtRippleCssVariables.opacityContentOnSurfaceHover, button.secondaryHoverStateLayerOpacity)};
|
|
117
|
+
${setVariable(FtRippleCssVariables.opacityContentOnSurfaceFocused, button.secondaryFocusStateLayerOpacity)};
|
|
118
|
+
${setVariable(FtRippleCssVariables.opacityContentOnSurfaceSelected, button.secondaryActiveStateLayerOpacity)};
|
|
119
|
+
${setVariable(FtRippleCssVariables.opacityContentOnSurfacePressed, button.secondaryActiveStateLayerOpacity)};
|
|
120
120
|
|
|
121
121
|
background-color: ${button.secondaryBackgroundColor};
|
|
122
122
|
color: ${button.secondaryColor};
|
|
@@ -125,7 +125,7 @@ export const designSystemStyles = [
|
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
.ft-button--secondary[disabled] {
|
|
128
|
-
opacity: ${button.
|
|
128
|
+
opacity: ${button.secondaryDisabledComponentOpacity};
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
.ft-button--secondary ft-icon {
|
|
@@ -138,10 +138,10 @@ export const designSystemStyles = [
|
|
|
138
138
|
${setVariable(FtLoaderCssVariables.color, button.tertiaryIconColor)};
|
|
139
139
|
|
|
140
140
|
${setVariable(FtRippleCssVariables.color, button.tertiaryStateLayerColor)};
|
|
141
|
-
${setVariable(FtRippleCssVariables.opacityContentOnSurfaceHover, button.
|
|
142
|
-
${setVariable(FtRippleCssVariables.opacityContentOnSurfaceFocused, button.
|
|
143
|
-
${setVariable(FtRippleCssVariables.opacityContentOnSurfaceSelected, button.
|
|
144
|
-
${setVariable(FtRippleCssVariables.opacityContentOnSurfacePressed, button.
|
|
141
|
+
${setVariable(FtRippleCssVariables.opacityContentOnSurfaceHover, button.tertiaryHoverStateLayerOpacity)};
|
|
142
|
+
${setVariable(FtRippleCssVariables.opacityContentOnSurfaceFocused, button.tertiaryFocusStateLayerOpacity)};
|
|
143
|
+
${setVariable(FtRippleCssVariables.opacityContentOnSurfaceSelected, button.tertiaryActiveStateLayerOpacity)};
|
|
144
|
+
${setVariable(FtRippleCssVariables.opacityContentOnSurfacePressed, button.tertiaryActiveStateLayerOpacity)};
|
|
145
145
|
|
|
146
146
|
background-color: ${button.tertiaryBackgroundColor};
|
|
147
147
|
color: ${button.tertiaryColor};
|
|
@@ -149,7 +149,7 @@ export const designSystemStyles = [
|
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
.ft-button--tertiary[disabled] {
|
|
152
|
-
opacity: ${button.
|
|
152
|
+
opacity: ${button.tertiaryDisabledComponentOpacity};
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
.ft-button--tertiary ft-icon {
|
|
@@ -162,10 +162,10 @@ export const designSystemStyles = [
|
|
|
162
162
|
${setVariable(FtLoaderCssVariables.color, button.neutralIconColor)};
|
|
163
163
|
|
|
164
164
|
${setVariable(FtRippleCssVariables.backgroundColor, button.neutralStateLayerColor)};
|
|
165
|
-
${setVariable(FtRippleCssVariables.opacityContentOnSurfaceHover, button.
|
|
166
|
-
${setVariable(FtRippleCssVariables.opacityContentOnSurfaceFocused, button.
|
|
167
|
-
${setVariable(FtRippleCssVariables.opacityContentOnSurfaceSelected, button.
|
|
168
|
-
${setVariable(FtRippleCssVariables.opacityContentOnSurfacePressed, button.
|
|
165
|
+
${setVariable(FtRippleCssVariables.opacityContentOnSurfaceHover, button.neutralHoverStateLayerOpacity)};
|
|
166
|
+
${setVariable(FtRippleCssVariables.opacityContentOnSurfaceFocused, button.neutralFocusStateLayerOpacity)};
|
|
167
|
+
${setVariable(FtRippleCssVariables.opacityContentOnSurfaceSelected, button.neutralActiveStateLayerOpacity)};
|
|
168
|
+
${setVariable(FtRippleCssVariables.opacityContentOnSurfacePressed, button.neutralActiveStateLayerOpacity)};
|
|
169
169
|
|
|
170
170
|
background-color: ${button.neutralBackgroundColor};
|
|
171
171
|
color: ${button.neutralColor};
|
|
@@ -173,7 +173,7 @@ export const designSystemStyles = [
|
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
.ft-button--neutral[disabled] {
|
|
176
|
-
opacity: ${button.
|
|
176
|
+
opacity: ${button.neutralDisabledComponentOpacity};
|
|
177
177
|
}
|
|
178
178
|
|
|
179
179
|
.ft-button--neutral ft-icon {
|
package/build/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * from "./ft-button";
|
|
2
|
-
export * from "./ft-button.
|
|
2
|
+
export * from "./ft-button.styles";
|
|
3
3
|
export * from "./ft-button.properties";
|
|
4
4
|
export * from "./ftds-button";
|
|
5
|
-
export * from "./ftds-button.
|
|
5
|
+
export * from "./ftds-button.styles";
|
|
6
6
|
export * from "./ftds-button.properties";
|
package/build/index.js
CHANGED
|
@@ -2,10 +2,10 @@ import { customElement } from "@fluid-topics/ft-wc-utils";
|
|
|
2
2
|
import { FtButton } from "./ft-button";
|
|
3
3
|
import { FtdsButton } from "./ftds-button";
|
|
4
4
|
export * from "./ft-button";
|
|
5
|
-
export * from "./ft-button.
|
|
5
|
+
export * from "./ft-button.styles";
|
|
6
6
|
export * from "./ft-button.properties";
|
|
7
7
|
export * from "./ftds-button";
|
|
8
|
-
export * from "./ftds-button.
|
|
8
|
+
export * from "./ftds-button.styles";
|
|
9
9
|
export * from "./ftds-button.properties";
|
|
10
10
|
customElement("ft-button")(FtButton);
|
|
11
11
|
customElement("ftds-button")(FtdsButton);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-button",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.43",
|
|
4
4
|
"description": "A generic Fluid Topics tag",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-icon": "1.1.
|
|
23
|
-
"@fluid-topics/ft-loader": "1.1.
|
|
24
|
-
"@fluid-topics/ft-ripple": "1.1.
|
|
25
|
-
"@fluid-topics/ft-tooltip": "1.1.
|
|
26
|
-
"@fluid-topics/ft-typography": "1.1.
|
|
27
|
-
"@fluid-topics/ft-wc-utils": "1.1.
|
|
22
|
+
"@fluid-topics/ft-icon": "1.1.43",
|
|
23
|
+
"@fluid-topics/ft-loader": "1.1.43",
|
|
24
|
+
"@fluid-topics/ft-ripple": "1.1.43",
|
|
25
|
+
"@fluid-topics/ft-tooltip": "1.1.43",
|
|
26
|
+
"@fluid-topics/ft-typography": "1.1.43",
|
|
27
|
+
"@fluid-topics/ft-wc-utils": "1.1.43",
|
|
28
28
|
"lit": "3.1.0"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "c6f6bcb506f87c05a46c67d364abc285eec41894"
|
|
31
31
|
}
|
|
File without changes
|
|
File without changes
|