@poolse/react-ui 1.0.4 → 1.0.5
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.cjs +547 -410
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +37 -8
- package/dist/index.d.ts +37 -8
- package/dist/index.js +550 -413
- package/dist/index.js.map +1 -1
- package/dist/styles.css +44 -3
- package/package.json +3 -3
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
|
-
|
|
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
|
-
|
|
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
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@poolse/react-ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
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/
|
|
50
|
-
"@poolse/
|
|
49
|
+
"@poolse/sdk": "1.0.5",
|
|
50
|
+
"@poolse/react": "1.0.5"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"react": ">=18"
|