@poolse/react-ui 1.0.4 → 1.0.6

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
@@ -660,8 +660,48 @@
660
660
 
661
661
  .poolse-composer__row {
662
662
  display: flex;
663
+ /* end-align so the buttons stay anchored to the bottom edge when
664
+ the textarea grows multi-line (lists, soft wraps). */
665
+ align-items: end;
666
+ gap: 8px;
667
+ }
668
+
669
+ /* In-composer paperclip — sits inside the composer row (left of the
670
+ textarea). Mirrors .poolse-attach-btn shape so the visual rhythm
671
+ matches the send button on the right. */
672
+ .poolse-composer__attach {
673
+ width: 40px;
674
+ height: 40px;
675
+ border-radius: 50%;
676
+ border: none;
677
+ background: transparent;
678
+ color: var(--poolse-ink-2);
679
+ cursor: pointer;
680
+ flex-shrink: 0;
681
+ display: inline-flex;
663
682
  align-items: center;
664
- gap: 10px;
683
+ justify-content: center;
684
+ transition:
685
+ background-color 0.12s,
686
+ color 0.12s;
687
+ }
688
+
689
+ .poolse-composer__attach:hover:not(:disabled) {
690
+ background: var(--poolse-surface-2);
691
+ color: var(--poolse-ink);
692
+ }
693
+
694
+ .poolse-composer__attach:disabled {
695
+ opacity: 0.5;
696
+ cursor: not-allowed;
697
+ }
698
+
699
+ /* Mobile: bump touch target to 44x44 alongside the other composer controls. */
700
+ @media (max-width: 760px) {
701
+ .poolse-composer__attach {
702
+ width: 44px;
703
+ height: 44px;
704
+ }
665
705
  }
666
706
 
667
707
  /* Quote-reply chip — sits above the textarea while the caller has
@@ -1646,8 +1686,9 @@
1646
1686
 
1647
1687
  .poolse-message--self .poolse-message__edit {
1648
1688
  /* Switch self-edit to a surface-color textarea — coral background
1649
- would make the cursor invisible. */
1650
- background: var(--poolse-on-brand);
1689
+ would make the cursor invisible. Use --poolse-surface (theme-aware)
1690
+ rather than --poolse-on-brand (always light, breaks dark theme). */
1691
+ background: var(--poolse-surface);
1651
1692
  color: var(--poolse-ink);
1652
1693
  }
1653
1694
 
@@ -2092,6 +2133,23 @@
2092
2133
  text-overflow: ellipsis;
2093
2134
  }
2094
2135
 
2136
+ /* Ready state — no progress bar (upload's done), just a caption that
2137
+ reinforces the "staged, waiting on send" affordance. */
2138
+ .poolse-upload-chip__ready-label {
2139
+ color: var(--poolse-success);
2140
+ font-size: 12px;
2141
+ font-weight: 600;
2142
+ }
2143
+
2144
+ .poolse-upload-chip--ready {
2145
+ border-color: color-mix(in oklab, var(--poolse-success) 40%, var(--poolse-border));
2146
+ background: color-mix(in oklab, var(--poolse-success) 6%, var(--poolse-surface));
2147
+ }
2148
+
2149
+ .poolse-upload-chip--ready .poolse-upload-chip__icon {
2150
+ color: var(--poolse-success);
2151
+ }
2152
+
2095
2153
  .poolse-upload-chip__action {
2096
2154
  flex-shrink: 0;
2097
2155
  width: 22px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poolse/react-ui",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "Plug-and-play React components for poolse — realtime chat infrastructure. Brand-aligned defaults, CSS-variable theming, render-prop escape hatches.",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -46,8 +46,8 @@
46
46
  "dependencies": {
47
47
  "react-markdown": "^9.0.1",
48
48
  "remark-gfm": "^4.0.0",
49
- "@poolse/react": "1.0.4",
50
- "@poolse/sdk": "1.0.4"
49
+ "@poolse/react": "1.0.6",
50
+ "@poolse/sdk": "1.0.6"
51
51
  },
52
52
  "peerDependencies": {
53
53
  "react": ">=18"