@flytedan/flytebot-design-system 0.39.0 → 0.41.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/dist/index.cjs +34 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +33 -5
- package/dist/index.d.ts +33 -5
- package/dist/index.js +33 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/styles/components.css +21 -7
package/package.json
CHANGED
package/styles/components.css
CHANGED
|
@@ -34,13 +34,12 @@
|
|
|
34
34
|
.fd-btn:hover {
|
|
35
35
|
text-decoration: none;
|
|
36
36
|
}
|
|
37
|
-
/*
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
rule was ever independently observable. */
|
|
37
|
+
/* While a real mouse holds a button down, the pointer is over it, so :hover's own rule is
|
|
38
|
+
also matching — but :hover and :active are equal specificity, and each variant's own
|
|
39
|
+
:active rule below is declared after that variant's :hover rule, so the cascade resolves
|
|
40
|
+
to :active's background/box-shadow, not :hover's. That is what gives an enabled button a
|
|
41
|
+
pressed colour genuinely distinct from its hovered one, on top of the translateY here
|
|
42
|
+
shared by every variant. */
|
|
44
43
|
.fd-btn:active {
|
|
45
44
|
transform: translateY(1px);
|
|
46
45
|
}
|
|
@@ -125,6 +124,10 @@
|
|
|
125
124
|
.fd-btn-primary:hover {
|
|
126
125
|
background: var(--grad-primary-hover);
|
|
127
126
|
}
|
|
127
|
+
.fd-btn-primary:active {
|
|
128
|
+
background: var(--blue-800);
|
|
129
|
+
box-shadow: none;
|
|
130
|
+
}
|
|
128
131
|
.fd-btn-brandsoft {
|
|
129
132
|
background: var(--grad-brand-soft);
|
|
130
133
|
color: #fff;
|
|
@@ -145,6 +148,10 @@
|
|
|
145
148
|
background: var(--surface-2);
|
|
146
149
|
border-color: var(--border-strong);
|
|
147
150
|
}
|
|
151
|
+
.fd-btn-secondary:active {
|
|
152
|
+
background: var(--surface-3);
|
|
153
|
+
box-shadow: none;
|
|
154
|
+
}
|
|
148
155
|
.fd-btn-ghost {
|
|
149
156
|
background: transparent;
|
|
150
157
|
color: var(--text-2);
|
|
@@ -153,6 +160,9 @@
|
|
|
153
160
|
background: var(--surface-3);
|
|
154
161
|
color: var(--text);
|
|
155
162
|
}
|
|
163
|
+
.fd-btn-ghost:active {
|
|
164
|
+
background: var(--border);
|
|
165
|
+
}
|
|
156
166
|
.fd-btn-danger {
|
|
157
167
|
background: var(--danger-solid);
|
|
158
168
|
color: #fff;
|
|
@@ -161,6 +171,10 @@
|
|
|
161
171
|
.fd-btn-danger:hover {
|
|
162
172
|
background: #b93a31;
|
|
163
173
|
}
|
|
174
|
+
.fd-btn-danger:active {
|
|
175
|
+
background: var(--btn-solid-danger-bg-active);
|
|
176
|
+
box-shadow: none;
|
|
177
|
+
}
|
|
164
178
|
.fd-btn-link {
|
|
165
179
|
background: none;
|
|
166
180
|
color: var(--link);
|