@flytedan/flytebot-design-system 0.2.0 → 0.2.2

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.2.0",
3
+ "version": "0.2.2",
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",
@@ -197,6 +197,12 @@
197
197
  /* ============ Segmented control ============ */
198
198
  .fd-seg {
199
199
  display: inline-flex;
200
+ /* .fd-seg is already inline-flex to hug its own content, but any flex-column
201
+ parent with the default align-items:stretch (e.g. .fd-pop) overrides that by
202
+ stretching this as a flex ITEM — align-self pins it back to content width
203
+ regardless of the ambient container, so it never silently goes full-width
204
+ just because it's dropped inside a popover/panel. */
205
+ align-self: flex-start;
200
206
  background: var(--surface-2);
201
207
  border: 1px solid var(--border);
202
208
  border-radius: var(--r-md);
@@ -2020,30 +2026,38 @@
2020
2026
  }
2021
2027
  .fd-brand {
2022
2028
  display: flex;
2023
- flex-direction: column;
2024
- align-items: flex-start;
2025
- gap: 5px;
2029
+ flex-direction: row;
2030
+ align-items: center;
2031
+ gap: 10px;
2026
2032
  }
2027
2033
  .fd-brand-mark {
2028
2034
  display: inline-flex;
2029
2035
  align-items: center;
2030
2036
  line-height: 0;
2031
- background: #fff;
2032
- border-radius: var(--r-sm);
2033
- padding: 3px 7px;
2037
+ flex: none;
2034
2038
  }
2035
2039
  .fd-brand-mark img {
2036
2040
  display: block;
2037
- height: 20px;
2041
+ height: 26px;
2038
2042
  width: auto;
2039
2043
  }
2044
+ /* The mark's own artwork is a fixed dark navy with no light colorway (see
2045
+ FlytedeskBrand.tsx's comment) — on a dark surface it would otherwise vanish.
2046
+ brightness(0) turns every opaque ink pixel pure black while leaving transparent
2047
+ pixels transparent; invert(1) flips that black to white — same trick as
2048
+ forcing a single-color mark to work on both themes without a second asset to
2049
+ keep in sync. Light theme (the default, no selector needed) gets no filter and
2050
+ shows the real navy ink, which is what the mark was actually drawn in. */
2051
+ [data-theme="dark"] .fd-brand-mark img {
2052
+ filter: brightness(0) invert(1);
2053
+ }
2040
2054
  .fd-brand-sm .fd-brand-mark img,
2041
2055
  .fd-brand-mark-sm img {
2042
- height: 15px;
2056
+ height: 19px;
2043
2057
  }
2044
2058
  .fd-brand-lg .fd-brand-mark img,
2045
2059
  .fd-brand-mark-lg img {
2046
- height: 26px;
2060
+ height: 32px;
2047
2061
  }
2048
2062
  .fd-topbar {
2049
2063
  height: var(--topbar-h);
@@ -4059,7 +4073,7 @@
4059
4073
 
4060
4074
  /* --- menus (extends .fd-pop / .fd-opt) ----------------------------------- */
4061
4075
  .fd-pop-padded {
4062
- padding: 12px;
4076
+ padding: var(--s-16);
4063
4077
  }
4064
4078
  .fd-menu {
4065
4079
  outline: none;