@quilltap/theme-storybook 1.0.93 → 1.0.95

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
@@ -1608,6 +1608,35 @@ body {
1608
1608
  .qt-chat-announcement-chip.qt-pascal-result--info {
1609
1609
  border-left-color: var(--qt-alert-info-border);
1610
1610
  }
1611
+ .qt-chat-composer-established-fact .qt-chat-composer-input {
1612
+ border-color: var(--color-ring);
1613
+ box-shadow: inset 0 0 0 1px var(--color-ring);
1614
+ background-image: linear-gradient(var(--qt-alert-info-bg), var(--qt-alert-info-bg));
1615
+ }
1616
+ .qt-chat-message-established-fact {
1617
+ font-size: 0.75rem;
1618
+ font-weight: 600;
1619
+ letter-spacing: 0.02em;
1620
+ color: var(--qt-alert-info-fg);
1621
+ margin-bottom: 0.25rem;
1622
+ }
1623
+ .qt-chat-system-bar.qt-chat-established-fact,
1624
+ .qt-chat-announcement-chip.qt-chat-established-fact {
1625
+ border-left-width: 3px;
1626
+ border-left-color: var(--color-ring);
1627
+ padding-left: 0.75rem;
1628
+ }
1629
+ .qt-chat-established-fact-row {
1630
+ width: 100%;
1631
+ max-width: none;
1632
+ }
1633
+ .qt-chat-established-fact-band {
1634
+ width: 100%;
1635
+ background: var(--qt-alert-info-bg);
1636
+ border: 1px solid var(--qt-alert-info-border);
1637
+ border-left: 3px solid var(--color-ring);
1638
+ box-shadow: none;
1639
+ }
1611
1640
  .qt-chat-message-silent {
1612
1641
  background: var(--qt-chat-silent-bg);
1613
1642
  color: var(--qt-chat-silent-fg);
@@ -3184,10 +3213,14 @@ body {
3184
3213
  .qt-page-toolbar-left {
3185
3214
  display: flex;
3186
3215
  align-items: center;
3216
+ flex: 1 1 0%;
3187
3217
  min-width: 2.5rem;
3188
3218
  }
3219
+ .qt-page-toolbar-left:empty {
3220
+ flex: 0 1 auto;
3221
+ }
3189
3222
  .qt-page-toolbar-center {
3190
- flex: 1 1 0%;
3223
+ flex: 0 1 32rem;
3191
3224
  display: flex;
3192
3225
  justify-content: center;
3193
3226
  padding-left: 1rem;
@@ -3198,6 +3231,7 @@ body {
3198
3231
  display: flex;
3199
3232
  align-items: center;
3200
3233
  gap: 0.5rem;
3234
+ flex-shrink: 0;
3201
3235
  min-width: 2.5rem;
3202
3236
  justify-content: flex-end;
3203
3237
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quilltap/theme-storybook",
3
- "version": "1.0.93",
3
+ "version": "1.0.95",
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",
@@ -1936,6 +1936,56 @@
1936
1936
  border-left-color: var(--qt-alert-info-border);
1937
1937
  }
1938
1938
 
1939
+ /**
1940
+ * Deus Ex Machina — established facts in the Salon.
1941
+ *
1942
+ * Mirrors app/styles/qt-components/_chat.css. Built on existing tokens only (the --qt-alert-info-* family and --color-ring,
1943
+ * the focus-ring colour), so every bundled theme renders it without per-theme
1944
+ * work and the armed frame holds the focus ring's own contrast.
1945
+ *
1946
+ * - .qt-chat-composer-established-fact: the composer's editor wrapper while
1947
+ * `/deus` is armed — a frame and a faint tint, so the operator can see the
1948
+ * next line will be posted as fact.
1949
+ * - .qt-chat-message-established-fact: the small ribbon on an operator line
1950
+ * posted as fact.
1951
+ * - .qt-chat-established-fact: the accent on a machine fact's bar/chip.
1952
+ * - .qt-chat-established-fact-row / -band: a machine fact renders as a
1953
+ * full-width band (no avatar) rather than a speech bubble.
1954
+ */
1955
+ .qt-chat-composer-established-fact .qt-chat-composer-input {
1956
+ border-color: var(--color-ring);
1957
+ box-shadow: inset 0 0 0 1px var(--color-ring);
1958
+ background-image: linear-gradient(var(--qt-alert-info-bg), var(--qt-alert-info-bg));
1959
+ }
1960
+
1961
+ .qt-chat-message-established-fact {
1962
+ font-size: 0.75rem;
1963
+ font-weight: 600;
1964
+ letter-spacing: 0.02em;
1965
+ color: var(--qt-alert-info-fg);
1966
+ margin-bottom: 0.25rem;
1967
+ }
1968
+
1969
+ .qt-chat-system-bar.qt-chat-established-fact,
1970
+ .qt-chat-announcement-chip.qt-chat-established-fact {
1971
+ border-left-width: 3px;
1972
+ border-left-color: var(--color-ring);
1973
+ padding-left: 0.75rem;
1974
+ }
1975
+
1976
+ .qt-chat-established-fact-row {
1977
+ width: 100%;
1978
+ max-width: none;
1979
+ }
1980
+
1981
+ .qt-chat-established-fact-band {
1982
+ width: 100%;
1983
+ background: var(--qt-alert-info-bg);
1984
+ border: 1px solid var(--qt-alert-info-border);
1985
+ border-left: 3px solid var(--color-ring);
1986
+ box-shadow: none;
1987
+ }
1988
+
1939
1989
  /**
1940
1990
  * Silent message — inner thoughts and actions from character in silent mode.
1941
1991
  * Distinguished from whispers by a dotted border (vs dashed) and sage/teal tones.
@@ -3996,15 +4046,24 @@
3996
4046
  -webkit-backdrop-filter: var(--qt-app-header-blur);
3997
4047
  }
3998
4048
 
4049
+ /* With page content, the left section takes whatever the search bar and the
4050
+ right section leave over — never the other way round — so a crowded
4051
+ breadcrumb compacts itself instead of squeezing the search bar. */
3999
4052
  .qt-page-toolbar-left {
4000
4053
  display: flex;
4001
4054
  align-items: center;
4055
+ flex: 1 1 0%;
4002
4056
  /* Reserve space for hamburger on mobile, empty on desktop */
4003
4057
  min-width: 2.5rem;
4004
4058
  }
4005
4059
 
4060
+ /* Empty, it claims no spare room, so the search bar sits where it always has. */
4061
+ .qt-page-toolbar-left:empty {
4062
+ flex: 0 1 auto;
4063
+ }
4064
+
4006
4065
  .qt-page-toolbar-center {
4007
- flex: 1 1 0%;
4066
+ flex: 0 1 32rem;
4008
4067
  display: flex;
4009
4068
  justify-content: center;
4010
4069
  padding-left: 1rem;
@@ -4016,6 +4075,7 @@
4016
4075
  display: flex;
4017
4076
  align-items: center;
4018
4077
  gap: 0.5rem;
4078
+ flex-shrink: 0;
4019
4079
  /* Balance with left section */
4020
4080
  min-width: 2.5rem;
4021
4081
  justify-content: flex-end;