@quilltap/theme-storybook 1.0.95 → 1.0.96

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.css CHANGED
@@ -1616,8 +1616,9 @@ body {
1616
1616
  .qt-chat-message-established-fact {
1617
1617
  font-size: 0.75rem;
1618
1618
  font-weight: 600;
1619
- letter-spacing: 0.02em;
1620
- color: var(--qt-alert-info-fg);
1619
+ font-variant-caps: all-small-caps;
1620
+ letter-spacing: 0.04em;
1621
+ color: inherit;
1621
1622
  margin-bottom: 0.25rem;
1622
1623
  }
1623
1624
  .qt-chat-system-bar.qt-chat-established-fact,
@@ -1637,6 +1638,42 @@ body {
1637
1638
  border-left: 3px solid var(--color-ring);
1638
1639
  box-shadow: none;
1639
1640
  }
1641
+ .qt-chat-established-fact-toggle {
1642
+ display: inline-flex;
1643
+ align-items: center;
1644
+ justify-content: center;
1645
+ width: 1.625rem;
1646
+ height: 1.625rem;
1647
+ padding: 0;
1648
+ border: 1px solid var(--color-border);
1649
+ border-radius: var(--radius-sm);
1650
+ background-color: color-mix(in srgb, var(--color-background) 82%, transparent);
1651
+ color: var(--color-foreground);
1652
+ cursor: pointer;
1653
+ opacity: 0.85;
1654
+ transition:
1655
+ opacity 150ms ease,
1656
+ border-color 150ms ease,
1657
+ box-shadow 150ms ease;
1658
+ }
1659
+ .qt-chat-established-fact-toggle:hover,
1660
+ .qt-chat-established-fact-toggle:focus-visible {
1661
+ opacity: 1;
1662
+ }
1663
+ .qt-chat-established-fact-toggle:focus-visible {
1664
+ outline: 2px solid var(--color-ring);
1665
+ outline-offset: 1px;
1666
+ }
1667
+ .qt-chat-established-fact-toggle[aria-pressed=true] {
1668
+ opacity: 1;
1669
+ border-color: var(--color-ring);
1670
+ box-shadow: inset 0 0 0 1px var(--color-ring);
1671
+ background-image: linear-gradient(var(--qt-alert-info-bg), var(--qt-alert-info-bg));
1672
+ }
1673
+ .qt-chat-established-fact-toggle:disabled {
1674
+ cursor: not-allowed;
1675
+ opacity: 0.5;
1676
+ }
1640
1677
  .qt-chat-message-silent {
1641
1678
  background: var(--qt-chat-silent-bg);
1642
1679
  color: var(--qt-chat-silent-fg);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quilltap/theme-storybook",
3
- "version": "1.0.95",
3
+ "version": "1.0.96",
4
4
  "description": "Storybook preset and stories for developing Quilltap theme plugins",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1958,11 +1958,15 @@
1958
1958
  background-image: linear-gradient(var(--qt-alert-info-bg), var(--qt-alert-info-bg));
1959
1959
  }
1960
1960
 
1961
+ /* The ribbon sits on whatever the theme paints the speaker's bubble, so it
1962
+ takes the bubble's own text colour (every theme pairs those) and stands
1963
+ apart by weight and small caps rather than by a hue of its own. */
1961
1964
  .qt-chat-message-established-fact {
1962
1965
  font-size: 0.75rem;
1963
1966
  font-weight: 600;
1964
- letter-spacing: 0.02em;
1965
- color: var(--qt-alert-info-fg);
1967
+ font-variant-caps: all-small-caps;
1968
+ letter-spacing: 0.04em;
1969
+ color: inherit;
1966
1970
  margin-bottom: 0.25rem;
1967
1971
  }
1968
1972
 
@@ -1986,6 +1990,47 @@
1986
1990
  box-shadow: none;
1987
1991
  }
1988
1992
 
1993
+ /* The toggle that arms Deus Ex Machina, seated in the corner of the composer's
1994
+ "speaking as" portrait. A small frosted tile at rest; armed, it wears the
1995
+ composer frame's own ring and tint so the two read as one state. */
1996
+ .qt-chat-established-fact-toggle {
1997
+ display: inline-flex;
1998
+ align-items: center;
1999
+ justify-content: center;
2000
+ width: 1.625rem;
2001
+ height: 1.625rem;
2002
+ padding: 0;
2003
+ border: 1px solid var(--color-border);
2004
+ border-radius: var(--radius-sm);
2005
+ background-color: color-mix(in srgb, var(--color-background) 82%, transparent);
2006
+ color: var(--color-foreground);
2007
+ cursor: pointer;
2008
+ opacity: 0.85;
2009
+ transition: opacity 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
2010
+ }
2011
+
2012
+ .qt-chat-established-fact-toggle:hover,
2013
+ .qt-chat-established-fact-toggle:focus-visible {
2014
+ opacity: 1;
2015
+ }
2016
+
2017
+ .qt-chat-established-fact-toggle:focus-visible {
2018
+ outline: 2px solid var(--color-ring);
2019
+ outline-offset: 1px;
2020
+ }
2021
+
2022
+ .qt-chat-established-fact-toggle[aria-pressed="true"] {
2023
+ opacity: 1;
2024
+ border-color: var(--color-ring);
2025
+ box-shadow: inset 0 0 0 1px var(--color-ring);
2026
+ background-image: linear-gradient(var(--qt-alert-info-bg), var(--qt-alert-info-bg));
2027
+ }
2028
+
2029
+ .qt-chat-established-fact-toggle:disabled {
2030
+ cursor: not-allowed;
2031
+ opacity: 0.5;
2032
+ }
2033
+
1989
2034
  /**
1990
2035
  * Silent message — inner thoughts and actions from character in silent mode.
1991
2036
  * Distinguished from whispers by a dotted border (vs dashed) and sage/teal tones.