@juspay/svelte-ui-components 3.1.5 → 3.1.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.
|
@@ -392,6 +392,10 @@
|
|
|
392
392
|
--button-border-radius: var(--chat-bubble-border-radius, 50%);
|
|
393
393
|
--button-color: var(--chat-bubble-background-color, #18181b);
|
|
394
394
|
--button-text-color: var(--chat-bubble-color, #ffffff);
|
|
395
|
+
/* Button spaces its icon from its label with this gap. The launcher renders an
|
|
396
|
+
icon alone inside a circle, so that gap would push the glyph off-centre --
|
|
397
|
+
reset to 0 here rather than in Button, whose default is right for a labelled
|
|
398
|
+
button. docs/ChatBubble.md records this as a pill-launcher caveat. */
|
|
395
399
|
--button-content-gap: 0px;
|
|
396
400
|
--button-box-shadow: var(--chat-bubble-box-shadow, 0 8px 24px rgba(0, 0, 0, 0.25));
|
|
397
401
|
--button-hover-color: var(--chat-bubble-hover-background-color, #27272a);
|
|
@@ -3,8 +3,31 @@
|
|
|
3
3
|
import Button from '../Button/Button.svelte';
|
|
4
4
|
import Img from '../Img/Img.svelte';
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* The documented default, kept as the default so this is not a breaking
|
|
8
|
+
* change. It is a relative URL resolved against whatever page renders the
|
|
9
|
+
* component, and the library ships no such file, so it only ever pointed at
|
|
10
|
+
* something real for an app serving that exact path at its own root -- and
|
|
11
|
+
* resolved to `<route>/icons/order-success-icon.svg` anywhere deeper.
|
|
12
|
+
*/
|
|
13
|
+
const LEGACY_DEFAULT_STATUS_ICON = 'icons/order-success-icon.svg';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Stands in when the legacy default cannot be fetched, so an app that does
|
|
17
|
+
* host that path keeps getting its own file and every other app stops
|
|
18
|
+
* rendering a broken image.
|
|
19
|
+
*
|
|
20
|
+
* Carries no `role` or `aria-label` of its own. Both are in `Img`'s
|
|
21
|
+
* allowlist, so a root declaring them would be copied onto the live host and
|
|
22
|
+
* would outrank the label `Img` derives from `alt` -- pinning every default
|
|
23
|
+
* icon to "Success", including on a failure screen.
|
|
24
|
+
*/
|
|
25
|
+
const BUILTIN_STATUS_ICON =
|
|
26
|
+
"data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2048%2048'%3E%3Ccircle%20cx%3D'24'%20cy%3D'24'%20r%3D'22'%20fill%3D'%23e6f6ec'%20stroke%3D'%232e994c'%20stroke-width%3D'2'%2F%3E%3Cpath%20d%3D'M15%2024.5l6.5%206.5L33%2019.5'%20fill%3D'none'%20stroke%3D'%232e994c'%20stroke-width%3D'3.5'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%2F%3E%3C%2Fsvg%3E";
|
|
27
|
+
|
|
6
28
|
let {
|
|
7
|
-
statusIcon =
|
|
29
|
+
statusIcon = LEGACY_DEFAULT_STATUS_ICON,
|
|
30
|
+
statusIconAlt = 'status',
|
|
8
31
|
statusText = '',
|
|
9
32
|
statusTextTag = 'div',
|
|
10
33
|
statusDescription = '',
|
|
@@ -16,6 +39,12 @@
|
|
|
16
39
|
children,
|
|
17
40
|
testId
|
|
18
41
|
}: StatusProperties = $props();
|
|
42
|
+
|
|
43
|
+
// Scoped to the untouched default on purpose. Applying it to a caller's own
|
|
44
|
+
// icon would answer a failed failure-icon with a success checkmark.
|
|
45
|
+
const statusIconFallback = $derived(
|
|
46
|
+
statusIcon === LEGACY_DEFAULT_STATUS_ICON ? BUILTIN_STATUS_ICON : null
|
|
47
|
+
);
|
|
19
48
|
</script>
|
|
20
49
|
|
|
21
50
|
<div
|
|
@@ -28,7 +57,7 @@
|
|
|
28
57
|
{#if icon}
|
|
29
58
|
{@render icon()}
|
|
30
59
|
{:else}
|
|
31
|
-
<Img inlineSvg src={statusIcon} alt=
|
|
60
|
+
<Img inlineSvg src={statusIcon} fallback={statusIconFallback} alt={statusIconAlt} />
|
|
32
61
|
{/if}
|
|
33
62
|
</div>
|
|
34
63
|
<svelte:element
|
|
@@ -2,6 +2,13 @@ import type { Snippet } from 'svelte';
|
|
|
2
2
|
import type { ButtonProperties } from '../Button/properties';
|
|
3
3
|
export type StatusProperties = StatusEventProperties & {
|
|
4
4
|
statusIcon?: string;
|
|
5
|
+
/**
|
|
6
|
+
* Accessible name for the `statusIcon` image. Defaults to `'status'`, which
|
|
7
|
+
* is deliberately generic because the icon is the same shape on a success and
|
|
8
|
+
* a failure screen. Set it to something the screen actually means, or to `''`
|
|
9
|
+
* to mark the icon decorative when `statusText` already carries the meaning.
|
|
10
|
+
*/
|
|
11
|
+
statusIconAlt?: string;
|
|
5
12
|
statusText: string;
|
|
6
13
|
statusDescription: string;
|
|
7
14
|
/**
|
package/dist-wc/index.js
CHANGED
|
@@ -10725,126 +10725,138 @@ var root$55 = /* @__PURE__ */ from_html("<div><div class=\"order-status svelte-1
|
|
|
10725
10725
|
};
|
|
10726
10726
|
function Status(e, t) {
|
|
10727
10727
|
push(t, !0), append_styles$1(e, $$css$53);
|
|
10728
|
-
let n = prop(t, "statusIcon", 7, "
|
|
10729
|
-
var
|
|
10728
|
+
let n = "icons/order-success-icon.svg", i = "data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2048%2048'%3E%3Ccircle%20cx%3D'24'%20cy%3D'24'%20r%3D'22'%20fill%3D'%23e6f6ec'%20stroke%3D'%232e994c'%20stroke-width%3D'2'%2F%3E%3Cpath%20d%3D'M15%2024.5l6.5%206.5L33%2019.5'%20fill%3D'none'%20stroke%3D'%232e994c'%20stroke-width%3D'3.5'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%2F%3E%3C%2Fsvg%3E", a = prop(t, "statusIcon", 7, n), o = prop(t, "statusIconAlt", 7, "status"), s = prop(t, "statusText", 7, ""), c = prop(t, "statusTextTag", 7, "div"), l = prop(t, "statusDescription", 7, ""), u = prop(t, "buttonProperties", 7), f = prop(t, "classes", 7), p = prop(t, "onbuttonClick", 7), h = prop(t, "icon", 7), S = prop(t, "descriptionSnippet", 7), C = prop(t, "children", 7), k = prop(t, "testId", 7), R = /* @__PURE__ */ user_derived(() => a() === n ? "data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2048%2048'%3E%3Ccircle%20cx%3D'24'%20cy%3D'24'%20r%3D'22'%20fill%3D'%23e6f6ec'%20stroke%3D'%232e994c'%20stroke-width%3D'2'%2F%3E%3Cpath%20d%3D'M15%2024.5l6.5%206.5L33%2019.5'%20fill%3D'none'%20stroke%3D'%232e994c'%20stroke-width%3D'3.5'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%2F%3E%3C%2Fsvg%3E" : null);
|
|
10729
|
+
var G = {
|
|
10730
10730
|
get statusIcon() {
|
|
10731
|
-
return
|
|
10731
|
+
return a();
|
|
10732
10732
|
},
|
|
10733
|
-
set statusIcon(e =
|
|
10734
|
-
|
|
10733
|
+
set statusIcon(e = n) {
|
|
10734
|
+
a(e), flushSync();
|
|
10735
|
+
},
|
|
10736
|
+
get statusIconAlt() {
|
|
10737
|
+
return o();
|
|
10738
|
+
},
|
|
10739
|
+
set statusIconAlt(e = "status") {
|
|
10740
|
+
o(e), flushSync();
|
|
10735
10741
|
},
|
|
10736
10742
|
get statusText() {
|
|
10737
|
-
return
|
|
10743
|
+
return s();
|
|
10738
10744
|
},
|
|
10739
10745
|
set statusText(e = "") {
|
|
10740
|
-
|
|
10746
|
+
s(e), flushSync();
|
|
10741
10747
|
},
|
|
10742
10748
|
get statusTextTag() {
|
|
10743
|
-
return
|
|
10749
|
+
return c();
|
|
10744
10750
|
},
|
|
10745
10751
|
set statusTextTag(e = "div") {
|
|
10746
|
-
|
|
10752
|
+
c(e), flushSync();
|
|
10747
10753
|
},
|
|
10748
10754
|
get statusDescription() {
|
|
10749
|
-
return
|
|
10755
|
+
return l();
|
|
10750
10756
|
},
|
|
10751
10757
|
set statusDescription(e = "") {
|
|
10752
|
-
|
|
10758
|
+
l(e), flushSync();
|
|
10753
10759
|
},
|
|
10754
10760
|
get buttonProperties() {
|
|
10755
|
-
return
|
|
10761
|
+
return u();
|
|
10756
10762
|
},
|
|
10757
10763
|
set buttonProperties(e) {
|
|
10758
|
-
|
|
10764
|
+
u(e), flushSync();
|
|
10759
10765
|
},
|
|
10760
10766
|
get classes() {
|
|
10761
|
-
return
|
|
10767
|
+
return f();
|
|
10762
10768
|
},
|
|
10763
10769
|
set classes(e) {
|
|
10764
|
-
|
|
10770
|
+
f(e), flushSync();
|
|
10765
10771
|
},
|
|
10766
10772
|
get onbuttonClick() {
|
|
10767
|
-
return
|
|
10773
|
+
return p();
|
|
10768
10774
|
},
|
|
10769
10775
|
set onbuttonClick(e) {
|
|
10770
|
-
|
|
10776
|
+
p(e), flushSync();
|
|
10771
10777
|
},
|
|
10772
10778
|
get icon() {
|
|
10773
|
-
return
|
|
10779
|
+
return h();
|
|
10774
10780
|
},
|
|
10775
10781
|
set icon(e) {
|
|
10776
|
-
|
|
10782
|
+
h(e), flushSync();
|
|
10777
10783
|
},
|
|
10778
10784
|
get descriptionSnippet() {
|
|
10779
|
-
return
|
|
10785
|
+
return S();
|
|
10780
10786
|
},
|
|
10781
10787
|
set descriptionSnippet(e) {
|
|
10782
|
-
|
|
10788
|
+
S(e), flushSync();
|
|
10783
10789
|
},
|
|
10784
10790
|
get children() {
|
|
10785
|
-
return
|
|
10791
|
+
return C();
|
|
10786
10792
|
},
|
|
10787
10793
|
set children(e) {
|
|
10788
|
-
|
|
10794
|
+
C(e), flushSync();
|
|
10789
10795
|
},
|
|
10790
10796
|
get testId() {
|
|
10791
|
-
return
|
|
10797
|
+
return k();
|
|
10792
10798
|
},
|
|
10793
10799
|
set testId(e) {
|
|
10794
|
-
|
|
10800
|
+
k(e), flushSync();
|
|
10795
10801
|
}
|
|
10796
|
-
},
|
|
10802
|
+
}, te = root$55(), ne = child(te), re = child(ne), be = child(re), Me = (e) => {
|
|
10797
10803
|
var t = comment();
|
|
10798
|
-
snippet(first_child(t),
|
|
10799
|
-
},
|
|
10804
|
+
snippet(first_child(t), h), append(e, t);
|
|
10805
|
+
}, Re = (e) => {
|
|
10800
10806
|
Img(e, {
|
|
10801
10807
|
inlineSvg: !0,
|
|
10802
10808
|
get src() {
|
|
10803
|
-
return
|
|
10809
|
+
return a();
|
|
10804
10810
|
},
|
|
10805
|
-
|
|
10811
|
+
get fallback() {
|
|
10812
|
+
return get(R);
|
|
10813
|
+
},
|
|
10814
|
+
get alt() {
|
|
10815
|
+
return o();
|
|
10816
|
+
}
|
|
10806
10817
|
});
|
|
10807
10818
|
};
|
|
10808
|
-
if_block(
|
|
10809
|
-
|
|
10810
|
-
}), reset(
|
|
10811
|
-
var
|
|
10812
|
-
element(
|
|
10819
|
+
if_block(be, (e) => {
|
|
10820
|
+
h() ? e(Me) : e(Re, -1);
|
|
10821
|
+
}), reset(re);
|
|
10822
|
+
var Ue = sibling(re, 2);
|
|
10823
|
+
element(Ue, c, !1, (e, t) => {
|
|
10813
10824
|
let n;
|
|
10814
|
-
template_effect(() => n = set_class(e, 0, "status-text svelte-19qpx1s", null, n, { "status-text-default":
|
|
10815
|
-
var
|
|
10816
|
-
template_effect(() => set_text(
|
|
10825
|
+
template_effect(() => n = set_class(e, 0, "status-text svelte-19qpx1s", null, n, { "status-text-default": c() === "div" }));
|
|
10826
|
+
var i = text();
|
|
10827
|
+
template_effect(() => set_text(i, s())), append(t, i);
|
|
10817
10828
|
});
|
|
10818
|
-
var
|
|
10829
|
+
var it = sibling(Ue, 2), at = child(it), ot = (e) => {
|
|
10819
10830
|
var t = comment();
|
|
10820
|
-
snippet(first_child(t),
|
|
10821
|
-
},
|
|
10831
|
+
snippet(first_child(t), S), append(e, t);
|
|
10832
|
+
}, ct = (e) => {
|
|
10822
10833
|
var t = comment();
|
|
10823
|
-
html(first_child(t),
|
|
10834
|
+
html(first_child(t), l), append(e, t);
|
|
10824
10835
|
};
|
|
10825
|
-
if_block(
|
|
10826
|
-
typeof
|
|
10827
|
-
}), reset(
|
|
10828
|
-
var
|
|
10829
|
-
Button(e, spread_props(
|
|
10830
|
-
return
|
|
10836
|
+
if_block(at, (e) => {
|
|
10837
|
+
typeof S() == "function" ? e(ot) : e(ct, -1);
|
|
10838
|
+
}), reset(it);
|
|
10839
|
+
var lt = sibling(it, 2), ut = (e) => {
|
|
10840
|
+
Button(e, spread_props(u, { get onclick() {
|
|
10841
|
+
return p();
|
|
10831
10842
|
} }));
|
|
10832
10843
|
};
|
|
10833
|
-
if_block(
|
|
10834
|
-
typeof
|
|
10844
|
+
if_block(lt, (e) => {
|
|
10845
|
+
typeof u() == "object" && e(ut);
|
|
10835
10846
|
});
|
|
10836
|
-
var
|
|
10847
|
+
var dt = sibling(lt, 2), ft = (e) => {
|
|
10837
10848
|
var t = comment();
|
|
10838
|
-
snippet(first_child(t),
|
|
10849
|
+
snippet(first_child(t), C), append(e, t);
|
|
10839
10850
|
};
|
|
10840
|
-
return if_block(
|
|
10841
|
-
typeof
|
|
10842
|
-
}), reset(
|
|
10843
|
-
set_class(
|
|
10844
|
-
}), append(e,
|
|
10851
|
+
return if_block(dt, (e) => {
|
|
10852
|
+
typeof C() == "function" && e(ft);
|
|
10853
|
+
}), reset(ne), reset(te), template_effect(() => {
|
|
10854
|
+
set_class(te, 1, `background ${f() ?? "" ?? ""}`, "svelte-19qpx1s"), set_attribute(te, "data-pw", typeof k() == "string" ? k() : null), set_attribute(te, "testid", typeof k() == "string" ? k() : null);
|
|
10855
|
+
}), append(e, te), pop(G);
|
|
10845
10856
|
}
|
|
10846
10857
|
create_custom_element(Status, {
|
|
10847
10858
|
statusIcon: {},
|
|
10859
|
+
statusIconAlt: {},
|
|
10848
10860
|
statusText: {},
|
|
10849
10861
|
statusTextTag: {},
|
|
10850
10862
|
statusDescription: {},
|
|
@@ -10874,6 +10886,11 @@ customElements.define("sui-status", create_custom_element(Status_wc, {
|
|
|
10874
10886
|
reflect: !0,
|
|
10875
10887
|
type: "String"
|
|
10876
10888
|
},
|
|
10889
|
+
statusIconAlt: {
|
|
10890
|
+
attribute: "status-icon-alt",
|
|
10891
|
+
reflect: !0,
|
|
10892
|
+
type: "String"
|
|
10893
|
+
},
|
|
10877
10894
|
statusText: {
|
|
10878
10895
|
attribute: "status-text",
|
|
10879
10896
|
reflect: !0,
|
|
@@ -35871,7 +35888,7 @@ customElements.define("sui-chat-tool-status", create_custom_element(ChatToolStat
|
|
|
35871
35888
|
//#region src/lib/assets/chat.svg?raw
|
|
35872
35889
|
var chat_default = "<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z\" />\n</svg>\n", root_1$2 = /* @__PURE__ */ from_html("<div class=\"panel svelte-15b7gm8\" role=\"dialog\" tabindex=\"-1\"><!></div>"), root_2$2 = /* @__PURE__ */ from_html("<div class=\"panel-anchor svelte-15b7gm8\"><!></div>"), root_3$2 = /* @__PURE__ */ from_html("<div><!> <div class=\"launcher svelte-15b7gm8\"><!></div></div>"), $$css$2 = {
|
|
35873
35890
|
hash: "svelte-15b7gm8",
|
|
35874
|
-
code: ".chat-bubble.svelte-15b7gm8 {position:fixed;z-index:var(--chat-bubble-z-index, 1000);transition:var(--chat-bubble-snap-transition, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1));}.chat-bubble.dragging.svelte-15b7gm8 {transition:none;}.chat-bubble[data-position='bottom-right'].svelte-15b7gm8 {right:var(--chat-bubble-offset-x, 24px);bottom:var(--chat-bubble-offset-y, 24px);}.chat-bubble[data-position='bottom-left'].svelte-15b7gm8 {left:var(--chat-bubble-offset-x, 24px);bottom:var(--chat-bubble-offset-y, 24px);}.chat-bubble[data-position='top-right'].svelte-15b7gm8 {right:var(--chat-bubble-offset-x, 24px);top:var(--chat-bubble-offset-y, 24px);}.chat-bubble[data-position='top-left'].svelte-15b7gm8 {left:var(--chat-bubble-offset-x, 24px);top:var(--chat-bubble-offset-y, 24px);}.panel-anchor.svelte-15b7gm8 {position:absolute;--resizable-handle-color: var(--chat-bubble-resize-handle-color, transparent);--resizable-transition: var(\n --chat-bubble-expand-transition,\n width 0.32s cubic-bezier(0.22, 1, 0.36, 1),\n height 0.32s cubic-bezier(0.22, 1, 0.36, 1)\n );}.chat-bubble[data-effective-vertical='bottom'].svelte-15b7gm8 .panel-anchor:where(.svelte-15b7gm8) {bottom:calc(100% + var(--chat-bubble-panel-gap, 16px));}.chat-bubble[data-effective-vertical='top'].svelte-15b7gm8 .panel-anchor:where(.svelte-15b7gm8) {top:calc(100% + var(--chat-bubble-panel-gap, 16px));}.chat-bubble[data-effective-side='right'].svelte-15b7gm8 .panel-anchor:where(.svelte-15b7gm8) {right:0;}.chat-bubble[data-effective-side='left'].svelte-15b7gm8 .panel-anchor:where(.svelte-15b7gm8) {left:0;}.panel.svelte-15b7gm8 {box-sizing:border-box;width:100%;height:100%;max-width:var(--chat-bubble-panel-max-width, calc(100vw - 32px));max-height:var(--chat-bubble-panel-max-height, calc(100dvh - 120px));border-radius:var(--chat-bubble-panel-border-radius, 16px);overflow:hidden;background:var(--chat-bubble-panel-background, #ffffff);box-shadow:var(--chat-bubble-panel-box-shadow, 0 16px 48px rgba(0, 0, 0, 0.22));outline:none;}.launcher.svelte-15b7gm8 {--button-width: var(--chat-bubble-width, var(--chat-bubble-size, 56px));--button-height: var(--chat-bubble-height, var(--chat-bubble-size, 56px));--button-padding: var(--chat-bubble-padding, 16px);--button-border-radius: var(--chat-bubble-border-radius, 50%);--button-color: var(--chat-bubble-background-color, #18181b);--button-text-color: var(--chat-bubble-color, #ffffff)
|
|
35891
|
+
code: ".chat-bubble.svelte-15b7gm8 {position:fixed;z-index:var(--chat-bubble-z-index, 1000);transition:var(--chat-bubble-snap-transition, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1));}.chat-bubble.dragging.svelte-15b7gm8 {transition:none;}.chat-bubble[data-position='bottom-right'].svelte-15b7gm8 {right:var(--chat-bubble-offset-x, 24px);bottom:var(--chat-bubble-offset-y, 24px);}.chat-bubble[data-position='bottom-left'].svelte-15b7gm8 {left:var(--chat-bubble-offset-x, 24px);bottom:var(--chat-bubble-offset-y, 24px);}.chat-bubble[data-position='top-right'].svelte-15b7gm8 {right:var(--chat-bubble-offset-x, 24px);top:var(--chat-bubble-offset-y, 24px);}.chat-bubble[data-position='top-left'].svelte-15b7gm8 {left:var(--chat-bubble-offset-x, 24px);top:var(--chat-bubble-offset-y, 24px);}.panel-anchor.svelte-15b7gm8 {position:absolute;--resizable-handle-color: var(--chat-bubble-resize-handle-color, transparent);--resizable-transition: var(\n --chat-bubble-expand-transition,\n width 0.32s cubic-bezier(0.22, 1, 0.36, 1),\n height 0.32s cubic-bezier(0.22, 1, 0.36, 1)\n );}.chat-bubble[data-effective-vertical='bottom'].svelte-15b7gm8 .panel-anchor:where(.svelte-15b7gm8) {bottom:calc(100% + var(--chat-bubble-panel-gap, 16px));}.chat-bubble[data-effective-vertical='top'].svelte-15b7gm8 .panel-anchor:where(.svelte-15b7gm8) {top:calc(100% + var(--chat-bubble-panel-gap, 16px));}.chat-bubble[data-effective-side='right'].svelte-15b7gm8 .panel-anchor:where(.svelte-15b7gm8) {right:0;}.chat-bubble[data-effective-side='left'].svelte-15b7gm8 .panel-anchor:where(.svelte-15b7gm8) {left:0;}.panel.svelte-15b7gm8 {box-sizing:border-box;width:100%;height:100%;max-width:var(--chat-bubble-panel-max-width, calc(100vw - 32px));max-height:var(--chat-bubble-panel-max-height, calc(100dvh - 120px));border-radius:var(--chat-bubble-panel-border-radius, 16px);overflow:hidden;background:var(--chat-bubble-panel-background, #ffffff);box-shadow:var(--chat-bubble-panel-box-shadow, 0 16px 48px rgba(0, 0, 0, 0.22));outline:none;}.launcher.svelte-15b7gm8 {--button-width: var(--chat-bubble-width, var(--chat-bubble-size, 56px));--button-height: var(--chat-bubble-height, var(--chat-bubble-size, 56px));--button-padding: var(--chat-bubble-padding, 16px);--button-border-radius: var(--chat-bubble-border-radius, 50%);--button-color: var(--chat-bubble-background-color, #18181b);--button-text-color: var(--chat-bubble-color, #ffffff);\n /* Button spaces its icon from its label with this gap. The launcher renders an\n icon alone inside a circle, so that gap would push the glyph off-centre --\n reset to 0 here rather than in Button, whose default is right for a labelled\n button. docs/ChatBubble.md records this as a pill-launcher caveat. */--button-content-gap: 0px;--button-box-shadow: var(--chat-bubble-box-shadow, 0 8px 24px rgba(0, 0, 0, 0.25));--button-hover-color: var(--chat-bubble-hover-background-color, #27272a);}.chat-bubble.is-draggable.svelte-15b7gm8 .launcher:where(.svelte-15b7gm8) {--cursor: grab;touch-action:none;}.chat-bubble.is-draggable.dragging.svelte-15b7gm8 .launcher:where(.svelte-15b7gm8) {--cursor: grabbing;}.launcher.svelte-15b7gm8 svg {height:100%;width:100%;}\n\n @media (prefers-reduced-motion: reduce) {.chat-bubble.svelte-15b7gm8 {transition:none;}\n }"
|
|
35875
35892
|
};
|
|
35876
35893
|
function ChatBubble(e, t) {
|
|
35877
35894
|
push(t, !0), append_styles$1(e, $$css$2);
|