@sensiblestats/widget-react 0.140.0 → 0.142.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/dist/styles.css CHANGED
@@ -1330,6 +1330,13 @@
1330
1330
  .ss-w-tabs[data-tight="5"] .ss-w-tab { font-size: 11px; }
1331
1331
  .ss-w-tabs[data-tight="6"] .ss-w-tab { font-size: 11px; padding-left: 2px; padding-right: 2px; gap: 3px; letter-spacing: -.01em; }
1332
1332
  .ss-w-tabs[data-tight="6"] .ss-w-tab-count { padding-left: 3px; padding-right: 3px; }
1333
+ .ss-w-tabs[data-tight="7"], .ss-w-tabs[data-scroll] { gap: 0; }
1334
+ .ss-w-tabs[data-tight="7"] .ss-w-tab { font-size: 11px; padding-left: 2px; padding-right: 2px; gap: 3px; letter-spacing: -.01em; }
1335
+ .ss-w-tabs[data-tight="7"] .ss-w-tab-count { background: none; padding: 0; min-width: 0; }
1336
+ .ss-w-tabs[data-scroll] { overflow-x: auto; scrollbar-width: none; scroll-padding-inline: 16px 24px; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 20px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 20px), transparent); }
1337
+ .ss-w-tabs[data-scroll]::-webkit-scrollbar { display: none; }
1338
+ /* A flex item, not padding: WebKit leaves a flex scroller's end padding out of the scroll range, so the fade would cover the last tab. */
1339
+ .ss-w-tabs[data-scroll]::after { content: ''; flex: 0 0 24px; }
1333
1340
  .ss-w-tab-count { font-size: 10.5px; font-weight: 700; color: var(--ss-w-faint); background: var(--ss-w-bubble); border-radius: 999px; padding: 1px 6px; }
1334
1341
  .ss-w-tab[data-on] .ss-w-tab-count { color: var(--ss-w-accent); }
1335
1342
  /* The dot sits on the tab's corner and takes no width: a poll landing late must not push the last tab out of a strip that already fits to the pixel */
@@ -1706,9 +1713,18 @@
1706
1713
  .ss-w-v8-builder-btn:disabled:not([aria-pressed="true"]) { opacity: .55; }
1707
1714
  .ss-w-v8-builder-btn[data-suggested]:not([aria-pressed="true"]) { border-style: dashed; border-color: var(--ss-v8-mint); }
1708
1715
  .ss-w-v8-builder button:focus-visible { outline: 2px solid var(--ss-v8-mint); outline-offset: 1px; }
1709
- .ss-w-v8-builder-ln--total > .ss-w-v8-builder-btns { display: grid; grid-template-columns: auto repeat(5, minmax(0, 1fr)); }
1710
- .ss-w-v8-builder-ln--total .ss-w-v8-builder-btn { min-width: 0; padding: 4px 2px; font-size: 13.5px; }
1711
- .ss-w-v8-builder-ln--total .ss-w-v8-builder-btn:first-child { padding: 4px 9px; }
1716
+ .ss-w-v8-builder-ln--total > .ss-w-v8-builder-btns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
1717
+ .ss-w-v8-builder-ln--total .ss-w-v8-builder-btn { min-width: 0; padding: 4px 2px; font-size: 13.5px; overflow-wrap: normal; }
1718
+ .ss-w-v8-builder-ln--total .ss-w-v8-builder-btn:first-child { padding: 4px 9px; grid-column: span 2; }
1719
+ .ss-w-v8-builder-btn[data-custom] { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
1720
+ .ss-w-v8-builder-btn[data-custom] svg { width: 16px; height: 16px; vertical-align: middle; }
1721
+ .ss-w-v8-builder-custom { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 100%; box-sizing: border-box; padding-left: 84px; }
1722
+ .ss-w-v8-builder-input { flex: 1 1 0; min-width: 0; box-sizing: border-box; height: 40px; margin: 0; padding: 8px 10px; border: 1px solid var(--ss-v8-chip-line); border-radius: 10px; background: var(--ss-v8-chip); color: #fff; font: inherit; font-size: 16px; font-weight: 600; line-height: 1.2; }
1723
+ .ss-w-v8-builder-input::placeholder { color: color-mix(in srgb, #fff 78%, var(--ss-w-nav)); opacity: 1; }
1724
+ .ss-w-v8-builder-custom > .ss-w-v8-builder-btn { flex: 0 0 auto; min-height: 40px; padding: 6px 14px; }
1725
+ .ss-w-v8-builder-input:focus-visible { outline: 2px solid var(--ss-v8-mint); outline-offset: 1px; }
1726
+ .ss-w-v8-builder-input[aria-invalid="true"] { border-color: #f2b8b5; }
1727
+ .ss-w-v8-builder-custom > .ss-w-v8-builder-note { flex: 1 1 100%; }
1712
1728
  .ss-w-v8-builder > .ss-w-v8-builder-btn { align-self: flex-start; min-height: 40px; padding: 6px 14px; }
1713
1729
  .ss-w-v8-builder .ss-w-slip-btn { min-height: 36px; }
1714
1730
  .ss-w-v8-builder .ss-w-combo-addall .ss-w-slip-btn { min-height: 44px; }
@@ -1723,10 +1739,7 @@
1723
1739
  }
1724
1740
  @container (max-width: 400px) {
1725
1741
  .ss-w-v8-builder-ln--total .ss-w-v8-builder-w { flex-basis: 100%; }
1726
- }
1727
- /* Stacked, six targets still split "10.00" below this: three to a row, two rows. */
1728
- @container (max-width: 360px) {
1729
- .ss-w-v8-builder-ln--total > .ss-w-v8-builder-btns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
1742
+ .ss-w-v8-builder-custom { padding-left: 0; }
1730
1743
  }
1731
1744
 
1732
1745
  @media (prefers-reduced-motion: reduce) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sensiblestats/widget-react",
3
- "version": "0.140.0",
3
+ "version": "0.142.0",
4
4
  "description": "Embeddable SensibleStats chat widget for React.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -39,7 +39,7 @@
39
39
  "prepublishOnly": "yarn build"
40
40
  },
41
41
  "dependencies": {
42
- "@sensiblestats/widget-sdk": "^0.102.0",
42
+ "@sensiblestats/widget-sdk": "^0.104.0",
43
43
  "react-markdown": "^9.0.1",
44
44
  "remark-gfm": "^4.0.0"
45
45
  },