@adatechnology/conversations-ui 0.1.0-rc.37 → 0.1.0-rc.39
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.js +4 -1
- package/dist/styles.css +2 -8
- package/package.json +1 -1
- package/src/WhatsAppMessageEditor.tsx +6 -3
- package/src/styles.css +6 -10
package/dist/index.js
CHANGED
|
@@ -772,7 +772,10 @@ function WhatsAppMessageEditor({
|
|
|
772
772
|
),
|
|
773
773
|
/* @__PURE__ */ jsxs3("div", { className: "mt-2", children: [
|
|
774
774
|
/* @__PURE__ */ jsx3("p", { className: "text-xs text-gray-500 dark:text-gray-400 mb-1", children: previewLabel }),
|
|
775
|
-
/* @__PURE__ */ jsx3("div", { className: "rounded-
|
|
775
|
+
/* @__PURE__ */ jsx3("div", { className: "rounded-2xl bg-[#e5ddd5] dark:bg-[#1a1a2e] p-3", children: /* @__PURE__ */ jsx3("div", { className: "flex justify-end ml-auto", style: { maxWidth: "85%" }, children: /* @__PURE__ */ jsxs3("div", { className: "bg-[#dcf8c6] dark:bg-[#1b5e20] rounded-lg rounded-tr-none shadow-sm px-3 py-2 text-sm text-gray-800 dark:text-gray-100 whitespace-pre-wrap break-words", children: [
|
|
776
|
+
value.trim() ? renderWhatsApp(value) : /* @__PURE__ */ jsx3("span", { className: "text-gray-400 dark:text-gray-500", children: emptyPreviewText }),
|
|
777
|
+
/* @__PURE__ */ jsx3("p", { className: "text-gray-400 dark:text-gray-400 mt-1 text-right text-[9px]", children: "12:00 \u2713\u2713" })
|
|
778
|
+
] }) }) })
|
|
776
779
|
] })
|
|
777
780
|
] });
|
|
778
781
|
}
|
package/dist/styles.css
CHANGED
|
@@ -987,14 +987,8 @@
|
|
|
987
987
|
.dark {
|
|
988
988
|
--cv-border-color: rgb(51 65 85);
|
|
989
989
|
}
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
::before,
|
|
993
|
-
::after,
|
|
994
|
-
::backdrop,
|
|
995
|
-
::file-selector-button {
|
|
996
|
-
border-color: var(--cv-border-color);
|
|
997
|
-
}
|
|
990
|
+
:where(*, ::before, ::after, ::backdrop, ::file-selector-button) {
|
|
991
|
+
border-color: var(--cv-border-color);
|
|
998
992
|
}
|
|
999
993
|
.cv-table-card {
|
|
1000
994
|
overflow-x: auto;
|
package/package.json
CHANGED
|
@@ -155,9 +155,12 @@ export function WhatsAppMessageEditor({
|
|
|
155
155
|
|
|
156
156
|
<div className="mt-2">
|
|
157
157
|
<p className="text-xs text-gray-500 dark:text-gray-400 mb-1">{previewLabel}</p>
|
|
158
|
-
<div className="rounded-
|
|
159
|
-
<div className="
|
|
160
|
-
|
|
158
|
+
<div className="rounded-2xl bg-[#e5ddd5] dark:bg-[#1a1a2e] p-3">
|
|
159
|
+
<div className="flex justify-end ml-auto" style={{ maxWidth: '85%' }}>
|
|
160
|
+
<div className="bg-[#dcf8c6] dark:bg-[#1b5e20] rounded-lg rounded-tr-none shadow-sm px-3 py-2 text-sm text-gray-800 dark:text-gray-100 whitespace-pre-wrap break-words">
|
|
161
|
+
{value.trim() ? renderWhatsApp(value) : <span className="text-gray-400 dark:text-gray-500">{emptyPreviewText}</span>}
|
|
162
|
+
<p className="text-gray-400 dark:text-gray-400 mt-1 text-right text-[9px]">12:00 ✓✓</p>
|
|
163
|
+
</div>
|
|
161
164
|
</div>
|
|
162
165
|
</div>
|
|
163
166
|
</div>
|
package/src/styles.css
CHANGED
|
@@ -894,20 +894,16 @@
|
|
|
894
894
|
* O Tailwind v4 trocou o padrão de `gray-200` por `currentColor`, e os componentes daqui foram
|
|
895
895
|
* escritos no v3. Em produto que traz a base do shadcn nada aparece — ela já redefine isto; em
|
|
896
896
|
* produto sem shadcn, cada `border` sai na cor do texto, e a tabela de documentos vinha com régua
|
|
897
|
-
* azul-quase-preta em vez de cinza.
|
|
898
|
-
*
|
|
897
|
+
* azul-quase-preta em vez de cinza. `:where()` zera a especificidade do seletor, então qualquer
|
|
898
|
+
* `border-*` do host ou daqui continua ganhando por especificidade — sem depender da camada
|
|
899
|
+
* `base` do Tailwind, que quebra o build de host que importa este arquivo fora do pipeline do
|
|
900
|
+
* Tailwind (erro do postcss: "`@layer base` is used but no matching `@tailwind base` directive").
|
|
899
901
|
*/
|
|
900
902
|
:root { --cv-border-color: rgb(229 231 235); }
|
|
901
903
|
.dark { --cv-border-color: rgb(51 65 85); }
|
|
902
904
|
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
::before,
|
|
906
|
-
::after,
|
|
907
|
-
::backdrop,
|
|
908
|
-
::file-selector-button {
|
|
909
|
-
border-color: var(--cv-border-color);
|
|
910
|
-
}
|
|
905
|
+
:where(*, ::before, ::after, ::backdrop, ::file-selector-button) {
|
|
906
|
+
border-color: var(--cv-border-color);
|
|
911
907
|
}
|
|
912
908
|
|
|
913
909
|
/* Tabela de listagem: a moldura, o cabeçalho e a zebra que `web.md` §7 exige, no stylesheet pelo
|