@flytedan/flytebot-design-system 0.80.0 → 0.82.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.80.0",
3
+ "version": "0.82.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",
@@ -8601,3 +8601,93 @@ button.fd-erow-metric:focus-visible {
8601
8601
  .fd-uschoro-swatch[data-step="3"] { background: var(--seq-3); }
8602
8602
  .fd-uschoro-swatch[data-step="4"] { background: var(--seq-4); }
8603
8603
  .fd-uschoro-swatch[data-step="5"] { background: var(--seq-5); }
8604
+
8605
+ /* ============ DS-39: EditableTitle + ScreenHead toolbar ============ */
8606
+ .fd-edtitle {
8607
+ font: inherit;
8608
+ letter-spacing: inherit;
8609
+ color: inherit;
8610
+ line-height: inherit;
8611
+ margin: 0;
8612
+ padding: 0 var(--s-8);
8613
+ /* The padding and the border sit outside the text, so the text lines up with the kicker. */
8614
+ margin-left: calc(-1 * (var(--s-8) + 1px));
8615
+ border: 1px solid transparent;
8616
+ border-radius: var(--r-md);
8617
+ background: transparent;
8618
+ box-sizing: border-box;
8619
+ max-width: 100%;
8620
+ }
8621
+ .fd-edtitle-btn {
8622
+ display: inline-flex;
8623
+ align-items: baseline;
8624
+ gap: var(--s-8);
8625
+ cursor: text;
8626
+ text-align: left;
8627
+ }
8628
+ .fd-edtitle-pencil {
8629
+ font-size: 0.6em;
8630
+ opacity: 0;
8631
+ color: var(--text-muted);
8632
+ }
8633
+ /* No hover on a touchscreen: the pencil is always shown there so the title reads as editable. */
8634
+ @media (hover: none) {
8635
+ .fd-edtitle-pencil {
8636
+ opacity: 0.7;
8637
+ }
8638
+ }
8639
+ .fd-edtitle-btn:hover .fd-edtitle-pencil,
8640
+ .fd-edtitle-btn:focus-visible .fd-edtitle-pencil {
8641
+ opacity: 1;
8642
+ }
8643
+ .fd-edtitle-btn:hover {
8644
+ border-color: var(--border);
8645
+ }
8646
+ .fd-edtitle-input {
8647
+ width: 100%;
8648
+ border-color: var(--brand);
8649
+ outline: none;
8650
+ }
8651
+ [data-contrast="high"] .fd-edtitle-btn {
8652
+ border-color: currentColor;
8653
+ }
8654
+ .fd-screenhead-toolbar {
8655
+ display: flex;
8656
+ justify-content: space-between;
8657
+ align-items: center;
8658
+ flex-wrap: wrap;
8659
+ gap: var(--s-12);
8660
+ margin-bottom: var(--s-4);
8661
+ }
8662
+ .fd-screenhead-toolbar-start,
8663
+ .fd-screenhead-toolbar-end {
8664
+ display: flex;
8665
+ align-items: center;
8666
+ flex-wrap: wrap;
8667
+ gap: var(--s-12);
8668
+ }
8669
+ .fd-screenhead-toolbar-end {
8670
+ margin-left: auto;
8671
+ }
8672
+ @media (max-width: 600px) {
8673
+ .fd-screenhead-toolbar {
8674
+ flex-direction: column;
8675
+ align-items: stretch;
8676
+ }
8677
+ .fd-screenhead-toolbar-end {
8678
+ margin-left: 0;
8679
+ }
8680
+ }
8681
+
8682
+ /* DS-40: the DonutChart segment popover's content. Colours are tokens, so light and dark
8683
+ follow the theme; high contrast lifts the value line from muted to the full text colour. */
8684
+ .fd-donut-pop {
8685
+ display: flex;
8686
+ flex-direction: column;
8687
+ gap: 2px;
8688
+ font-size: 12px;
8689
+ color: var(--text);
8690
+ }
8691
+ .fd-donut-pop strong { font-weight: 600; }
8692
+ .fd-donut-pop .fd-tabular { color: var(--text-muted); }
8693
+ [data-contrast="high"] .fd-donut-pop .fd-tabular { color: var(--text); }