@flytedan/flytebot-design-system 0.2.1 → 0.3.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.2.1",
3
+ "version": "0.3.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",
@@ -56,6 +56,7 @@
56
56
  "@vitejs/plugin-react": "^4.3.4",
57
57
  "eslint": "^9.14.0",
58
58
  "eslint-plugin-react-hooks": "^5.0.0",
59
+ "jsdom": "^30.0.1",
59
60
  "react": "^18.3.1",
60
61
  "react-dom": "^18.3.1",
61
62
  "tsup": "^8.3.5",
@@ -2034,9 +2034,6 @@
2034
2034
  display: inline-flex;
2035
2035
  align-items: center;
2036
2036
  line-height: 0;
2037
- background: #fff;
2038
- border-radius: var(--r-sm);
2039
- padding: 4px 8px;
2040
2037
  flex: none;
2041
2038
  }
2042
2039
  .fd-brand-mark img {
@@ -2044,6 +2041,16 @@
2044
2041
  height: 26px;
2045
2042
  width: auto;
2046
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
+ }
2047
2054
  .fd-brand-sm .fd-brand-mark img,
2048
2055
  .fd-brand-mark-sm img {
2049
2056
  height: 19px;