@flytedan/flytebot-design-system 0.39.0 → 0.40.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flytedan/flytebot-design-system",
3
- "version": "0.39.0",
3
+ "version": "0.40.0",
4
4
  "description": "flytedesk Design System — shared component library, tokens, and business-logic kits for flytedesk apps.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
@@ -34,13 +34,12 @@
34
34
  .fd-btn:hover {
35
35
  text-decoration: none;
36
36
  }
37
- /* This translateY is the only press feedback any variant gets: while a real mouse holds a
38
- button down, the pointer is over it, so :hover's own background is already showing —
39
- restating a different :active-only background/box-shadow per variant is unreachable
40
- without also losing :hover the moment the button is pressed, and a real browser clears
41
- :active the instant the pointer leaves the element during a held press (there is no
42
- sticky/dragged-off :active to distinguish from :hover here), so no per-variant :active
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);