@yext/chat-ui-react 0.3.1 → 0.3.2
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/lib/bundle-no-resets.css +1 -1
- package/lib/bundle.css +1 -1
- package/lib/commonjs/components/ChatInput.d.ts +2 -1
- package/lib/commonjs/components/ChatInput.d.ts.map +1 -1
- package/lib/commonjs/components/ChatInput.js +2 -2
- package/lib/commonjs/components/ChatInput.js.map +1 -1
- package/lib/commonjs/components/ChatPanel.d.ts.map +1 -1
- package/lib/commonjs/components/ChatPanel.js +4 -1
- package/lib/commonjs/components/ChatPanel.js.map +1 -1
- package/lib/commonjs/components/ChatPopUp.js +1 -1
- package/lib/commonjs/components/ChatPopUp.js.map +1 -1
- package/lib/commonjs/components/FeedbackButtons.d.ts +32 -0
- package/lib/commonjs/components/FeedbackButtons.d.ts.map +1 -0
- package/lib/commonjs/components/FeedbackButtons.js +41 -0
- package/lib/commonjs/components/FeedbackButtons.js.map +1 -0
- package/lib/commonjs/icons/ThumbsDown.d.ts +5 -0
- package/lib/commonjs/icons/ThumbsDown.d.ts.map +1 -0
- package/lib/commonjs/icons/ThumbsDown.js +9 -0
- package/lib/commonjs/icons/ThumbsDown.js.map +1 -0
- package/lib/commonjs/icons/ThumbsDownFill.d.ts +5 -0
- package/lib/commonjs/icons/ThumbsDownFill.d.ts.map +1 -0
- package/lib/commonjs/icons/ThumbsDownFill.js +9 -0
- package/lib/commonjs/icons/ThumbsDownFill.js.map +1 -0
- package/lib/commonjs/icons/ThumbsUp.d.ts +5 -0
- package/lib/commonjs/icons/ThumbsUp.d.ts.map +1 -0
- package/lib/commonjs/icons/ThumbsUp.js +9 -0
- package/lib/commonjs/icons/ThumbsUp.js.map +1 -0
- package/lib/commonjs/icons/ThumbsUpFill.d.ts +5 -0
- package/lib/commonjs/icons/ThumbsUpFill.d.ts.map +1 -0
- package/lib/commonjs/icons/ThumbsUpFill.js +9 -0
- package/lib/commonjs/icons/ThumbsUpFill.js.map +1 -0
- package/lib/esm/components/ChatInput.d.ts +2 -1
- package/lib/esm/components/ChatInput.d.ts.map +1 -1
- package/lib/esm/components/ChatInput.js +2 -2
- package/lib/esm/components/ChatInput.js.map +1 -1
- package/lib/esm/components/ChatPanel.d.ts.map +1 -1
- package/lib/esm/components/ChatPanel.js +4 -1
- package/lib/esm/components/ChatPanel.js.map +1 -1
- package/lib/esm/components/ChatPopUp.js +1 -1
- package/lib/esm/components/ChatPopUp.js.map +1 -1
- package/lib/esm/components/FeedbackButtons.d.ts +32 -0
- package/lib/esm/components/FeedbackButtons.d.ts.map +1 -0
- package/lib/esm/components/FeedbackButtons.js +37 -0
- package/lib/esm/components/FeedbackButtons.js.map +1 -0
- package/lib/esm/icons/ThumbsDown.d.ts +5 -0
- package/lib/esm/icons/ThumbsDown.d.ts.map +1 -0
- package/lib/esm/icons/ThumbsDown.js +5 -0
- package/lib/esm/icons/ThumbsDown.js.map +1 -0
- package/lib/esm/icons/ThumbsDownFill.d.ts +5 -0
- package/lib/esm/icons/ThumbsDownFill.d.ts.map +1 -0
- package/lib/esm/icons/ThumbsDownFill.js +5 -0
- package/lib/esm/icons/ThumbsDownFill.js.map +1 -0
- package/lib/esm/icons/ThumbsUp.d.ts +5 -0
- package/lib/esm/icons/ThumbsUp.d.ts.map +1 -0
- package/lib/esm/icons/ThumbsUp.js +5 -0
- package/lib/esm/icons/ThumbsUp.js.map +1 -0
- package/lib/esm/icons/ThumbsUpFill.d.ts +5 -0
- package/lib/esm/icons/ThumbsUpFill.d.ts.map +1 -0
- package/lib/esm/icons/ThumbsUpFill.js +5 -0
- package/lib/esm/icons/ThumbsUpFill.js.map +1 -0
- package/lib/esm/index.d.ts +2 -1
- package/package.json +1 -1
- package/src/components/ChatInput.tsx +4 -3
- package/src/components/ChatPanel.tsx +4 -1
- package/src/components/ChatPopUp.tsx +1 -1
- package/src/components/FeedbackButtons.tsx +88 -0
- package/src/icons/ThumbsDown.tsx +21 -0
- package/src/icons/ThumbsDownFill.tsx +25 -0
- package/src/icons/ThumbsUp.tsx +21 -0
- package/src/icons/ThumbsUpFill.tsx +25 -0
package/lib/bundle-no-resets.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
*,::backdrop,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose :where(a):not(:where([class~=not-prose] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.prose :where(strong):not(:where([class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~=not-prose] *)){color:inherit}.prose :where(thead th strong):not(:where([class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-left:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-left:1.625em}.prose :where(ol>li):not(:where([class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul>li):not(:where([class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(hr):not(:where([class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-left-width:.25rem;border-left-color:var(--tw-prose-quote-borders);quotes:"\201C""\201D""\2018""\2019";margin-top:1.6em;margin-bottom:1.6em;padding-left:1em}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~=not-prose] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~=not-prose] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(figure>*):not(:where([class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose :where(code):not(:where([class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~=not-prose] *)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding:.8571429em 1.1428571em}.prose :where(pre code):not(:where([class~=not-prose] *)){background-color:initial;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose] *)){width:100%;table-layout:auto;text-align:left;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-right:.5714286em;padding-bottom:.5714286em;padding-left:.5714286em}.prose :where(tbody tr):not(:where([class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose] *)){vertical-align:initial}.prose :where(tfoot):not(:where([class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose] *)){vertical-align:top}.prose{--tw-prose-body:#374151;--tw-prose-headings:#111827;--tw-prose-lead:#4b5563;--tw-prose-links:#111827;--tw-prose-bold:#111827;--tw-prose-counters:#6b7280;--tw-prose-bullets:#d1d5db;--tw-prose-hr:#e5e7eb;--tw-prose-quotes:#111827;--tw-prose-quote-borders:#e5e7eb;--tw-prose-captions:#6b7280;--tw-prose-code:#111827;--tw-prose-pre-code:#e5e7eb;--tw-prose-pre-bg:#1f2937;--tw-prose-th-borders:#d1d5db;--tw-prose-td-borders:#e5e7eb;--tw-prose-invert-body:#d1d5db;--tw-prose-invert-headings:#fff;--tw-prose-invert-lead:#9ca3af;--tw-prose-invert-links:#fff;--tw-prose-invert-bold:#fff;--tw-prose-invert-counters:#9ca3af;--tw-prose-invert-bullets:#4b5563;--tw-prose-invert-hr:#374151;--tw-prose-invert-quotes:#f3f4f6;--tw-prose-invert-quote-borders:#374151;--tw-prose-invert-captions:#9ca3af;--tw-prose-invert-code:#fff;--tw-prose-invert-pre-code:#d1d5db;--tw-prose-invert-pre-bg:#00000080;--tw-prose-invert-th-borders:#4b5563;--tw-prose-invert-td-borders:#374151;font-size:1rem;line-height:1.75}.prose :where(video):not(:where([class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(figure):not(:where([class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(li):not(:where([class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose] *)){padding-left:.375em}.prose :where(ul>li):not(:where([class~=not-prose] *)){padding-left:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>:first-child):not(:where([class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>:last-child):not(:where([class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>:first-child):not(:where([class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>:last-child):not(:where([class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(hr+*):not(:where([class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose] *)){padding-left:0}.prose :where(thead th:last-child):not(:where([class~=not-prose] *)){padding-right:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose] *)){padding:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose] *)){padding-left:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose] *)){padding-right:0}.prose :where(.prose>:first-child):not(:where([class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose] *)){margin-bottom:0}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.bottom-0{bottom:0}.bottom-2{bottom:.5rem}.bottom-2\.5{bottom:.625rem}.bottom-6{bottom:1.5rem}.right-4{right:1rem}.z-50{z-index:50}.my-0{margin-top:0;margin-bottom:0}.my-0\.5{margin-top:.125rem;margin-bottom:.125rem}.mb-3{margin-bottom:.75rem}.ml-4{margin-left:1rem}.ml-auto{margin-left:auto}.mt-auto{margin-top:auto}.flex{display:flex}.h-12{height:3rem}.h-2{height:.5rem}.h-8{height:2rem}.h-\[26px\]{height:26px}.h-\[28px\]{height:28px}.h-\[75vh\]{height:75vh}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.w-12{width:3rem}.w-2{width:.5rem}.w-8{width:2rem}.w-80{width:20rem}.w-\[26px\]{width:26px}.w-\[28px\]{width:28px}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.max-w-\[80\%\]{max-width:80%}.shrink-0{flex-shrink:0}.translate-y-0{--tw-translate-y:0px}.translate-y-0,.translate-y-\[20\%\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[20\%\]{--tw-translate-y:20%}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.animate-\[bounce_1s_infinite\]{animation:bounce 1s infinite}.animate-\[bounce_1s_infinite_0\.3s\]{animation:bounce 1s .3s infinite}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-\[bounce_1s_infinite_0\.6s\]{animation:bounce 1s .6s infinite}@keyframes spin{to{transform:rotate(1turn)}}.animate-\[spin_0\.3s_linear\]{animation:spin .3s linear}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.animate-fade-in{animation:fade-in .4s}.resize-none{resize:none}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-y-1{row-gap:.25rem}.overflow-auto{overflow:auto}.overflow-x-auto{overflow-x:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-full{border-radius:9999px}.rounded-b-3xl{border-bottom-right-radius:1.5rem;border-bottom-left-radius:1.5rem}.rounded-t-3xl{border-top-left-radius:1.5rem;border-top-right-radius:1.5rem}.border{border-width:1px}.border-slate-300{--tw-border-opacity:1;border-color:rgb(203 213 225/var(--tw-border-opacity))}.bg-blue-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity))}.bg-slate-500{--tw-bg-opacity:1;background-color:rgb(100 116 139/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-tr{background-image:linear-gradient(to top right,var(--tw-gradient-stops))}.from-blue-600{--tw-gradient-from:#2563eb var(--tw-gradient-from-position);--tw-gradient-to:#2563eb00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-slate-50{--tw-gradient-from:#f8fafc var(--tw-gradient-from-position);--tw-gradient-to:#f8fafc00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.to-blue-700{--tw-gradient-to:#1d4ed8 var(--tw-gradient-to-position)}.to-blue-800{--tw-gradient-to:#1e40af var(--tw-gradient-to-position)}.to-slate-100{--tw-gradient-to:#f1f5f9 var(--tw-gradient-to-position)}.stroke-2{stroke-width:2}.stroke-\[0\.2\]{stroke-width:.2}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-4{padding:1rem}.px-4{padding-left:1rem;padding-right:1rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-\[85px\]{padding-bottom:85px}.pl-4{padding-left:1rem}.pr-1{padding-right:.25rem}.pr-12{padding-right:3rem}.pr-3{padding-right:.75rem}.text-\[10px\]{font-size:10px}.text-\[13px\]{font-size:13px}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-medium{font-weight:500}.text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity))}.text-red-200{--tw-text-opacity:1;color:rgb(254 202 202/var(--tw-text-opacity))}.text-slate-400{--tw-text-opacity:1;color:rgb(148 163 184/var(--tw-text-opacity))}.text-slate-700{--tw-text-opacity:1;color:rgb(51 65 85/var(--tw-text-opacity))}.text-slate-900{--tw-text-opacity:1;color:rgb(15 23 42/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.opacity-0{opacity:0}.shadow-2xl{--tw-shadow:0 25px 50px -12px #00000040;--tw-shadow-colored:0 25px 50px -12px var(--tw-shadow-color)}.shadow-2xl,.shadow-xl{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a;--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color)}.backdrop-blur-lg{--tw-backdrop-blur:blur(16px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-150,.transition-all{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.\@container{container-type:inline-size}.hover\:-translate-y-2:hover{--tw-translate-y:-0.5rem}.hover\:-translate-y-2:hover,.hover\:scale-110:hover{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:scale-110:hover{--tw-scale-x:1.1;--tw-scale-y:1.1}.hover\:bg-blue-800:hover{--tw-bg-opacity:1;background-color:rgb(30 64 175/var(--tw-bg-opacity))}.active\:scale-90:active{--tw-scale-x:.9;--tw-scale-y:.9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\:bg-slate-200:disabled{--tw-bg-opacity:1;background-color:rgb(226 232 240/var(--tw-bg-opacity))}.peer:hover~.peer-hover\:opacity-100{opacity:1}@container (min-width: 32rem){.\@lg\:m-1{margin:.25rem}.\@lg\:ml-0{margin-left:0}.\@lg\:flex-row{flex-direction:row}.\@lg\:flex-row-reverse{flex-direction:row-reverse}.\@lg\:items-center{align-items:center}.\@lg\:gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}}@container (min-width: 480px){.\@\[480px\]\:bottom-3\.5{bottom:.875rem}.\@\[480px\]\:text-\[13px\]{font-size:13px}.\@\[480px\]\:text-base{font-size:1rem;line-height:1.5rem}}@media (max-width:480px){.max-\[480px\]\:bottom-0{bottom:0}.max-\[480px\]\:right-0{right:0}.max-\[480px\]\:h-full{height:100%}.max-\[480px\]\:w-full{width:100%}.max-\[480px\]\:rounded-none{border-radius:0}}@media (min-width:1024px){.lg\:bottom-14{bottom:3.5rem}.lg\:right-10{right:2.5rem}.lg\:h-16{height:4rem}.lg\:h-\[40px\]{height:40px}.lg\:w-16{width:4rem}.lg\:w-96{width:24rem}.lg\:w-\[40px\]{width:40px}}
|
|
1
|
+
*,::backdrop,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose :where(a):not(:where([class~=not-prose] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.prose :where(strong):not(:where([class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~=not-prose] *)){color:inherit}.prose :where(thead th strong):not(:where([class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-left:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-left:1.625em}.prose :where(ol>li):not(:where([class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul>li):not(:where([class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(hr):not(:where([class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-left-width:.25rem;border-left-color:var(--tw-prose-quote-borders);quotes:"\201C""\201D""\2018""\2019";margin-top:1.6em;margin-bottom:1.6em;padding-left:1em}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~=not-prose] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~=not-prose] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(figure>*):not(:where([class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose :where(code):not(:where([class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~=not-prose] *)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding:.8571429em 1.1428571em}.prose :where(pre code):not(:where([class~=not-prose] *)){background-color:initial;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose] *)){width:100%;table-layout:auto;text-align:left;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-right:.5714286em;padding-bottom:.5714286em;padding-left:.5714286em}.prose :where(tbody tr):not(:where([class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose] *)){vertical-align:initial}.prose :where(tfoot):not(:where([class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose] *)){vertical-align:top}.prose{--tw-prose-body:#374151;--tw-prose-headings:#111827;--tw-prose-lead:#4b5563;--tw-prose-links:#111827;--tw-prose-bold:#111827;--tw-prose-counters:#6b7280;--tw-prose-bullets:#d1d5db;--tw-prose-hr:#e5e7eb;--tw-prose-quotes:#111827;--tw-prose-quote-borders:#e5e7eb;--tw-prose-captions:#6b7280;--tw-prose-code:#111827;--tw-prose-pre-code:#e5e7eb;--tw-prose-pre-bg:#1f2937;--tw-prose-th-borders:#d1d5db;--tw-prose-td-borders:#e5e7eb;--tw-prose-invert-body:#d1d5db;--tw-prose-invert-headings:#fff;--tw-prose-invert-lead:#9ca3af;--tw-prose-invert-links:#fff;--tw-prose-invert-bold:#fff;--tw-prose-invert-counters:#9ca3af;--tw-prose-invert-bullets:#4b5563;--tw-prose-invert-hr:#374151;--tw-prose-invert-quotes:#f3f4f6;--tw-prose-invert-quote-borders:#374151;--tw-prose-invert-captions:#9ca3af;--tw-prose-invert-code:#fff;--tw-prose-invert-pre-code:#d1d5db;--tw-prose-invert-pre-bg:#00000080;--tw-prose-invert-th-borders:#4b5563;--tw-prose-invert-td-borders:#374151;font-size:1rem;line-height:1.75}.prose :where(video):not(:where([class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(figure):not(:where([class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(li):not(:where([class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose] *)){padding-left:.375em}.prose :where(ul>li):not(:where([class~=not-prose] *)){padding-left:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>:first-child):not(:where([class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>:last-child):not(:where([class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>:first-child):not(:where([class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>:last-child):not(:where([class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(hr+*):not(:where([class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose] *)){padding-left:0}.prose :where(thead th:last-child):not(:where([class~=not-prose] *)){padding-right:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose] *)){padding:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose] *)){padding-left:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose] *)){padding-right:0}.prose :where(.prose>:first-child):not(:where([class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose] *)){margin-bottom:0}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.-right-1{right:-.25rem}.-top-3{top:-.75rem}.bottom-0{bottom:0}.bottom-2{bottom:.5rem}.bottom-2\.5{bottom:.625rem}.bottom-6{bottom:1.5rem}.right-4{right:1rem}.z-50{z-index:50}.my-0{margin-top:0;margin-bottom:0}.my-0\.5{margin-top:.125rem;margin-bottom:.125rem}.mb-3{margin-bottom:.75rem}.ml-4{margin-left:1rem}.ml-auto{margin-left:auto}.mt-auto{margin-top:auto}.flex{display:flex}.h-12{height:3rem}.h-2{height:.5rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-\[22px\]{height:22px}.h-\[26px\]{height:26px}.h-\[28px\]{height:28px}.h-\[75vh\]{height:75vh}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.w-12{width:3rem}.w-2{width:.5rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-80{width:20rem}.w-\[22px\]{width:22px}.w-\[26px\]{width:26px}.w-\[28px\]{width:28px}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.max-w-\[80\%\]{max-width:80%}.shrink-0{flex-shrink:0}.translate-y-0{--tw-translate-y:0px}.translate-y-0,.translate-y-\[20\%\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[20\%\]{--tw-translate-y:20%}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.animate-\[bounce_1s_infinite\]{animation:bounce 1s infinite}.animate-\[bounce_1s_infinite_0\.3s\]{animation:bounce 1s .3s infinite}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-\[bounce_1s_infinite_0\.6s\]{animation:bounce 1s .6s infinite}@keyframes spin{to{transform:rotate(1turn)}}.animate-\[spin_0\.3s_linear\]{animation:spin .3s linear}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.animate-fade-in{animation:fade-in .4s}.resize-none{resize:none}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.gap-y-1{row-gap:.25rem}.overflow-auto{overflow:auto}.overflow-x-auto{overflow-x:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-full{border-radius:9999px}.rounded-md{border-radius:.375rem}.rounded-b-3xl{border-bottom-right-radius:1.5rem;border-bottom-left-radius:1.5rem}.rounded-t-3xl{border-top-left-radius:1.5rem;border-top-right-radius:1.5rem}.border{border-width:1px}.border-slate-300{--tw-border-opacity:1;border-color:rgb(203 213 225/var(--tw-border-opacity))}.bg-blue-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.bg-slate-500{--tw-bg-opacity:1;background-color:rgb(100 116 139/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-tr{background-image:linear-gradient(to top right,var(--tw-gradient-stops))}.from-blue-600{--tw-gradient-from:#2563eb var(--tw-gradient-from-position);--tw-gradient-to:#2563eb00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-slate-50{--tw-gradient-from:#f8fafc var(--tw-gradient-from-position);--tw-gradient-to:#f8fafc00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.to-blue-700{--tw-gradient-to:#1d4ed8 var(--tw-gradient-to-position)}.to-blue-800{--tw-gradient-to:#1e40af var(--tw-gradient-to-position)}.to-slate-100{--tw-gradient-to:#f1f5f9 var(--tw-gradient-to-position)}.stroke-2{stroke-width:2}.stroke-\[0\.2\]{stroke-width:.2}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-4{padding:1rem}.px-4{padding-left:1rem;padding-right:1rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-\[85px\]{padding-bottom:85px}.pl-4{padding-left:1rem}.pr-1{padding-right:.25rem}.pr-12{padding-right:3rem}.pr-3{padding-right:.75rem}.text-\[10px\]{font-size:10px}.text-\[13px\]{font-size:13px}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-medium{font-weight:500}.text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.text-red-200{--tw-text-opacity:1;color:rgb(254 202 202/var(--tw-text-opacity))}.text-slate-400{--tw-text-opacity:1;color:rgb(148 163 184/var(--tw-text-opacity))}.text-slate-700{--tw-text-opacity:1;color:rgb(51 65 85/var(--tw-text-opacity))}.text-slate-900{--tw-text-opacity:1;color:rgb(15 23 42/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.opacity-0{opacity:0}.shadow-2xl{--tw-shadow:0 25px 50px -12px #00000040;--tw-shadow-colored:0 25px 50px -12px var(--tw-shadow-color)}.shadow-2xl,.shadow-xl{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a;--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color)}.backdrop-blur-lg{--tw-backdrop-blur:blur(16px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-150,.transition-all{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.\@container{container-type:inline-size}.first\:mt-4:first-child{margin-top:1rem}.hover\:-translate-y-2:hover{--tw-translate-y:-0.5rem}.hover\:-translate-y-2:hover,.hover\:scale-110:hover{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:scale-110:hover{--tw-scale-x:1.1;--tw-scale-y:1.1}.hover\:bg-blue-800:hover{--tw-bg-opacity:1;background-color:rgb(30 64 175/var(--tw-bg-opacity))}.active\:scale-90:active{--tw-scale-x:.9;--tw-scale-y:.9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\:bg-slate-200:disabled{--tw-bg-opacity:1;background-color:rgb(226 232 240/var(--tw-bg-opacity))}.group:hover .group-hover\:opacity-100,.peer:hover~.peer-hover\:opacity-100{opacity:1}@container (min-width: 32rem){.\@lg\:m-1{margin:.25rem}.\@lg\:ml-0{margin-left:0}.\@lg\:flex-row{flex-direction:row}.\@lg\:flex-row-reverse{flex-direction:row-reverse}.\@lg\:items-center{align-items:center}.\@lg\:gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}}@container (min-width: 480px){.\@\[480px\]\:bottom-3\.5{bottom:.875rem}.\@\[480px\]\:text-\[13px\]{font-size:13px}.\@\[480px\]\:text-base{font-size:1rem;line-height:1.5rem}}@media (max-width:480px){.max-\[480px\]\:bottom-0{bottom:0}.max-\[480px\]\:right-0{right:0}.max-\[480px\]\:h-full{height:100%}.max-\[480px\]\:w-full{width:100%}.max-\[480px\]\:rounded-none{border-radius:0}}@media (min-width:1024px){.lg\:bottom-14{bottom:3.5rem}.lg\:right-10{right:2.5rem}.lg\:h-16{height:4rem}.lg\:h-\[40px\]{height:40px}.lg\:w-16{width:4rem}.lg\:w-96{width:24rem}.lg\:w-\[40px\]{width:40px}}
|
package/lib/bundle.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! tailwindcss v3.3.2 | MIT License | https://tailwindcss.com*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:initial;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:initial}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,::backdrop,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose :where(a):not(:where([class~=not-prose] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.prose :where(strong):not(:where([class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~=not-prose] *)){color:inherit}.prose :where(thead th strong):not(:where([class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-left:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-left:1.625em}.prose :where(ol>li):not(:where([class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul>li):not(:where([class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(hr):not(:where([class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-left-width:.25rem;border-left-color:var(--tw-prose-quote-borders);quotes:"\201C""\201D""\2018""\2019";margin-top:1.6em;margin-bottom:1.6em;padding-left:1em}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~=not-prose] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~=not-prose] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(figure>*):not(:where([class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose :where(code):not(:where([class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~=not-prose] *)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding:.8571429em 1.1428571em}.prose :where(pre code):not(:where([class~=not-prose] *)){background-color:initial;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose] *)){width:100%;table-layout:auto;text-align:left;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-right:.5714286em;padding-bottom:.5714286em;padding-left:.5714286em}.prose :where(tbody tr):not(:where([class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose] *)){vertical-align:initial}.prose :where(tfoot):not(:where([class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose] *)){vertical-align:top}.prose{--tw-prose-body:#374151;--tw-prose-headings:#111827;--tw-prose-lead:#4b5563;--tw-prose-links:#111827;--tw-prose-bold:#111827;--tw-prose-counters:#6b7280;--tw-prose-bullets:#d1d5db;--tw-prose-hr:#e5e7eb;--tw-prose-quotes:#111827;--tw-prose-quote-borders:#e5e7eb;--tw-prose-captions:#6b7280;--tw-prose-code:#111827;--tw-prose-pre-code:#e5e7eb;--tw-prose-pre-bg:#1f2937;--tw-prose-th-borders:#d1d5db;--tw-prose-td-borders:#e5e7eb;--tw-prose-invert-body:#d1d5db;--tw-prose-invert-headings:#fff;--tw-prose-invert-lead:#9ca3af;--tw-prose-invert-links:#fff;--tw-prose-invert-bold:#fff;--tw-prose-invert-counters:#9ca3af;--tw-prose-invert-bullets:#4b5563;--tw-prose-invert-hr:#374151;--tw-prose-invert-quotes:#f3f4f6;--tw-prose-invert-quote-borders:#374151;--tw-prose-invert-captions:#9ca3af;--tw-prose-invert-code:#fff;--tw-prose-invert-pre-code:#d1d5db;--tw-prose-invert-pre-bg:#00000080;--tw-prose-invert-th-borders:#4b5563;--tw-prose-invert-td-borders:#374151;font-size:1rem;line-height:1.75}.prose :where(video):not(:where([class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(figure):not(:where([class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(li):not(:where([class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose] *)){padding-left:.375em}.prose :where(ul>li):not(:where([class~=not-prose] *)){padding-left:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>:first-child):not(:where([class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>:last-child):not(:where([class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>:first-child):not(:where([class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>:last-child):not(:where([class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(hr+*):not(:where([class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose] *)){padding-left:0}.prose :where(thead th:last-child):not(:where([class~=not-prose] *)){padding-right:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose] *)){padding:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose] *)){padding-left:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose] *)){padding-right:0}.prose :where(.prose>:first-child):not(:where([class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose] *)){margin-bottom:0}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.bottom-0{bottom:0}.bottom-2{bottom:.5rem}.bottom-2\.5{bottom:.625rem}.bottom-6{bottom:1.5rem}.right-4{right:1rem}.z-50{z-index:50}.my-0{margin-top:0;margin-bottom:0}.my-0\.5{margin-top:.125rem;margin-bottom:.125rem}.mb-3{margin-bottom:.75rem}.ml-4{margin-left:1rem}.ml-auto{margin-left:auto}.mt-auto{margin-top:auto}.flex{display:flex}.h-12{height:3rem}.h-2{height:.5rem}.h-8{height:2rem}.h-\[26px\]{height:26px}.h-\[28px\]{height:28px}.h-\[75vh\]{height:75vh}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.w-12{width:3rem}.w-2{width:.5rem}.w-8{width:2rem}.w-80{width:20rem}.w-\[26px\]{width:26px}.w-\[28px\]{width:28px}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.max-w-\[80\%\]{max-width:80%}.shrink-0{flex-shrink:0}.translate-y-0{--tw-translate-y:0px}.translate-y-0,.translate-y-\[20\%\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[20\%\]{--tw-translate-y:20%}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.animate-\[bounce_1s_infinite\]{animation:bounce 1s infinite}.animate-\[bounce_1s_infinite_0\.3s\]{animation:bounce 1s .3s infinite}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-\[bounce_1s_infinite_0\.6s\]{animation:bounce 1s .6s infinite}@keyframes spin{to{transform:rotate(1turn)}}.animate-\[spin_0\.3s_linear\]{animation:spin .3s linear}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.animate-fade-in{animation:fade-in .4s}.resize-none{resize:none}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-y-1{row-gap:.25rem}.overflow-auto{overflow:auto}.overflow-x-auto{overflow-x:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-full{border-radius:9999px}.rounded-b-3xl{border-bottom-right-radius:1.5rem;border-bottom-left-radius:1.5rem}.rounded-t-3xl{border-top-left-radius:1.5rem;border-top-right-radius:1.5rem}.border{border-width:1px}.border-slate-300{--tw-border-opacity:1;border-color:rgb(203 213 225/var(--tw-border-opacity))}.bg-blue-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity))}.bg-slate-500{--tw-bg-opacity:1;background-color:rgb(100 116 139/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-tr{background-image:linear-gradient(to top right,var(--tw-gradient-stops))}.from-blue-600{--tw-gradient-from:#2563eb var(--tw-gradient-from-position);--tw-gradient-to:#2563eb00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-slate-50{--tw-gradient-from:#f8fafc var(--tw-gradient-from-position);--tw-gradient-to:#f8fafc00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.to-blue-700{--tw-gradient-to:#1d4ed8 var(--tw-gradient-to-position)}.to-blue-800{--tw-gradient-to:#1e40af var(--tw-gradient-to-position)}.to-slate-100{--tw-gradient-to:#f1f5f9 var(--tw-gradient-to-position)}.stroke-2{stroke-width:2}.stroke-\[0\.2\]{stroke-width:.2}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-4{padding:1rem}.px-4{padding-left:1rem;padding-right:1rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-\[85px\]{padding-bottom:85px}.pl-4{padding-left:1rem}.pr-1{padding-right:.25rem}.pr-12{padding-right:3rem}.pr-3{padding-right:.75rem}.text-\[10px\]{font-size:10px}.text-\[13px\]{font-size:13px}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-medium{font-weight:500}.text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity))}.text-red-200{--tw-text-opacity:1;color:rgb(254 202 202/var(--tw-text-opacity))}.text-slate-400{--tw-text-opacity:1;color:rgb(148 163 184/var(--tw-text-opacity))}.text-slate-700{--tw-text-opacity:1;color:rgb(51 65 85/var(--tw-text-opacity))}.text-slate-900{--tw-text-opacity:1;color:rgb(15 23 42/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.opacity-0{opacity:0}.shadow-2xl{--tw-shadow:0 25px 50px -12px #00000040;--tw-shadow-colored:0 25px 50px -12px var(--tw-shadow-color)}.shadow-2xl,.shadow-xl{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a;--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color)}.backdrop-blur-lg{--tw-backdrop-blur:blur(16px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-150,.transition-all{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.\@container{container-type:inline-size}.hover\:-translate-y-2:hover{--tw-translate-y:-0.5rem}.hover\:-translate-y-2:hover,.hover\:scale-110:hover{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:scale-110:hover{--tw-scale-x:1.1;--tw-scale-y:1.1}.hover\:bg-blue-800:hover{--tw-bg-opacity:1;background-color:rgb(30 64 175/var(--tw-bg-opacity))}.active\:scale-90:active{--tw-scale-x:.9;--tw-scale-y:.9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\:bg-slate-200:disabled{--tw-bg-opacity:1;background-color:rgb(226 232 240/var(--tw-bg-opacity))}.peer:hover~.peer-hover\:opacity-100{opacity:1}@container (min-width: 32rem){.\@lg\:m-1{margin:.25rem}.\@lg\:ml-0{margin-left:0}.\@lg\:flex-row{flex-direction:row}.\@lg\:flex-row-reverse{flex-direction:row-reverse}.\@lg\:items-center{align-items:center}.\@lg\:gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}}@container (min-width: 480px){.\@\[480px\]\:bottom-3\.5{bottom:.875rem}.\@\[480px\]\:text-\[13px\]{font-size:13px}.\@\[480px\]\:text-base{font-size:1rem;line-height:1.5rem}}@media (max-width:480px){.max-\[480px\]\:bottom-0{bottom:0}.max-\[480px\]\:right-0{right:0}.max-\[480px\]\:h-full{height:100%}.max-\[480px\]\:w-full{width:100%}.max-\[480px\]\:rounded-none{border-radius:0}}@media (min-width:1024px){.lg\:bottom-14{bottom:3.5rem}.lg\:right-10{right:2.5rem}.lg\:h-16{height:4rem}.lg\:h-\[40px\]{height:40px}.lg\:w-16{width:4rem}.lg\:w-96{width:24rem}.lg\:w-\[40px\]{width:40px}}
|
|
1
|
+
/*! tailwindcss v3.3.2 | MIT License | https://tailwindcss.com*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:initial;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:initial}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,::backdrop,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose :where(a):not(:where([class~=not-prose] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.prose :where(strong):not(:where([class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~=not-prose] *)){color:inherit}.prose :where(thead th strong):not(:where([class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-left:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-left:1.625em}.prose :where(ol>li):not(:where([class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul>li):not(:where([class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(hr):not(:where([class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-left-width:.25rem;border-left-color:var(--tw-prose-quote-borders);quotes:"\201C""\201D""\2018""\2019";margin-top:1.6em;margin-bottom:1.6em;padding-left:1em}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~=not-prose] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~=not-prose] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(figure>*):not(:where([class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose :where(code):not(:where([class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~=not-prose] *)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding:.8571429em 1.1428571em}.prose :where(pre code):not(:where([class~=not-prose] *)){background-color:initial;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose] *)){width:100%;table-layout:auto;text-align:left;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-right:.5714286em;padding-bottom:.5714286em;padding-left:.5714286em}.prose :where(tbody tr):not(:where([class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose] *)){vertical-align:initial}.prose :where(tfoot):not(:where([class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose] *)){vertical-align:top}.prose{--tw-prose-body:#374151;--tw-prose-headings:#111827;--tw-prose-lead:#4b5563;--tw-prose-links:#111827;--tw-prose-bold:#111827;--tw-prose-counters:#6b7280;--tw-prose-bullets:#d1d5db;--tw-prose-hr:#e5e7eb;--tw-prose-quotes:#111827;--tw-prose-quote-borders:#e5e7eb;--tw-prose-captions:#6b7280;--tw-prose-code:#111827;--tw-prose-pre-code:#e5e7eb;--tw-prose-pre-bg:#1f2937;--tw-prose-th-borders:#d1d5db;--tw-prose-td-borders:#e5e7eb;--tw-prose-invert-body:#d1d5db;--tw-prose-invert-headings:#fff;--tw-prose-invert-lead:#9ca3af;--tw-prose-invert-links:#fff;--tw-prose-invert-bold:#fff;--tw-prose-invert-counters:#9ca3af;--tw-prose-invert-bullets:#4b5563;--tw-prose-invert-hr:#374151;--tw-prose-invert-quotes:#f3f4f6;--tw-prose-invert-quote-borders:#374151;--tw-prose-invert-captions:#9ca3af;--tw-prose-invert-code:#fff;--tw-prose-invert-pre-code:#d1d5db;--tw-prose-invert-pre-bg:#00000080;--tw-prose-invert-th-borders:#4b5563;--tw-prose-invert-td-borders:#374151;font-size:1rem;line-height:1.75}.prose :where(video):not(:where([class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(figure):not(:where([class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(li):not(:where([class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose] *)){padding-left:.375em}.prose :where(ul>li):not(:where([class~=not-prose] *)){padding-left:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>:first-child):not(:where([class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>:last-child):not(:where([class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>:first-child):not(:where([class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>:last-child):not(:where([class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(hr+*):not(:where([class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose] *)){padding-left:0}.prose :where(thead th:last-child):not(:where([class~=not-prose] *)){padding-right:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose] *)){padding:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose] *)){padding-left:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose] *)){padding-right:0}.prose :where(.prose>:first-child):not(:where([class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose] *)){margin-bottom:0}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.-right-1{right:-.25rem}.-top-3{top:-.75rem}.bottom-0{bottom:0}.bottom-2{bottom:.5rem}.bottom-2\.5{bottom:.625rem}.bottom-6{bottom:1.5rem}.right-4{right:1rem}.z-50{z-index:50}.my-0{margin-top:0;margin-bottom:0}.my-0\.5{margin-top:.125rem;margin-bottom:.125rem}.mb-3{margin-bottom:.75rem}.ml-4{margin-left:1rem}.ml-auto{margin-left:auto}.mt-auto{margin-top:auto}.flex{display:flex}.h-12{height:3rem}.h-2{height:.5rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-\[22px\]{height:22px}.h-\[26px\]{height:26px}.h-\[28px\]{height:28px}.h-\[75vh\]{height:75vh}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.w-12{width:3rem}.w-2{width:.5rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-80{width:20rem}.w-\[22px\]{width:22px}.w-\[26px\]{width:26px}.w-\[28px\]{width:28px}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.max-w-\[80\%\]{max-width:80%}.shrink-0{flex-shrink:0}.translate-y-0{--tw-translate-y:0px}.translate-y-0,.translate-y-\[20\%\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[20\%\]{--tw-translate-y:20%}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.animate-\[bounce_1s_infinite\]{animation:bounce 1s infinite}.animate-\[bounce_1s_infinite_0\.3s\]{animation:bounce 1s .3s infinite}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-\[bounce_1s_infinite_0\.6s\]{animation:bounce 1s .6s infinite}@keyframes spin{to{transform:rotate(1turn)}}.animate-\[spin_0\.3s_linear\]{animation:spin .3s linear}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.animate-fade-in{animation:fade-in .4s}.resize-none{resize:none}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.gap-y-1{row-gap:.25rem}.overflow-auto{overflow:auto}.overflow-x-auto{overflow-x:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-full{border-radius:9999px}.rounded-md{border-radius:.375rem}.rounded-b-3xl{border-bottom-right-radius:1.5rem;border-bottom-left-radius:1.5rem}.rounded-t-3xl{border-top-left-radius:1.5rem;border-top-right-radius:1.5rem}.border{border-width:1px}.border-slate-300{--tw-border-opacity:1;border-color:rgb(203 213 225/var(--tw-border-opacity))}.bg-blue-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.bg-slate-500{--tw-bg-opacity:1;background-color:rgb(100 116 139/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-tr{background-image:linear-gradient(to top right,var(--tw-gradient-stops))}.from-blue-600{--tw-gradient-from:#2563eb var(--tw-gradient-from-position);--tw-gradient-to:#2563eb00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-slate-50{--tw-gradient-from:#f8fafc var(--tw-gradient-from-position);--tw-gradient-to:#f8fafc00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.to-blue-700{--tw-gradient-to:#1d4ed8 var(--tw-gradient-to-position)}.to-blue-800{--tw-gradient-to:#1e40af var(--tw-gradient-to-position)}.to-slate-100{--tw-gradient-to:#f1f5f9 var(--tw-gradient-to-position)}.stroke-2{stroke-width:2}.stroke-\[0\.2\]{stroke-width:.2}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-4{padding:1rem}.px-4{padding-left:1rem;padding-right:1rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-\[85px\]{padding-bottom:85px}.pl-4{padding-left:1rem}.pr-1{padding-right:.25rem}.pr-12{padding-right:3rem}.pr-3{padding-right:.75rem}.text-\[10px\]{font-size:10px}.text-\[13px\]{font-size:13px}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-medium{font-weight:500}.text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.text-red-200{--tw-text-opacity:1;color:rgb(254 202 202/var(--tw-text-opacity))}.text-slate-400{--tw-text-opacity:1;color:rgb(148 163 184/var(--tw-text-opacity))}.text-slate-700{--tw-text-opacity:1;color:rgb(51 65 85/var(--tw-text-opacity))}.text-slate-900{--tw-text-opacity:1;color:rgb(15 23 42/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.opacity-0{opacity:0}.shadow-2xl{--tw-shadow:0 25px 50px -12px #00000040;--tw-shadow-colored:0 25px 50px -12px var(--tw-shadow-color)}.shadow-2xl,.shadow-xl{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a;--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color)}.backdrop-blur-lg{--tw-backdrop-blur:blur(16px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-150,.transition-all{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.\@container{container-type:inline-size}.first\:mt-4:first-child{margin-top:1rem}.hover\:-translate-y-2:hover{--tw-translate-y:-0.5rem}.hover\:-translate-y-2:hover,.hover\:scale-110:hover{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:scale-110:hover{--tw-scale-x:1.1;--tw-scale-y:1.1}.hover\:bg-blue-800:hover{--tw-bg-opacity:1;background-color:rgb(30 64 175/var(--tw-bg-opacity))}.active\:scale-90:active{--tw-scale-x:.9;--tw-scale-y:.9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\:bg-slate-200:disabled{--tw-bg-opacity:1;background-color:rgb(226 232 240/var(--tw-bg-opacity))}.group:hover .group-hover\:opacity-100,.peer:hover~.peer-hover\:opacity-100{opacity:1}@container (min-width: 32rem){.\@lg\:m-1{margin:.25rem}.\@lg\:ml-0{margin-left:0}.\@lg\:flex-row{flex-direction:row}.\@lg\:flex-row-reverse{flex-direction:row-reverse}.\@lg\:items-center{align-items:center}.\@lg\:gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}}@container (min-width: 480px){.\@\[480px\]\:bottom-3\.5{bottom:.875rem}.\@\[480px\]\:text-\[13px\]{font-size:13px}.\@\[480px\]\:text-base{font-size:1rem;line-height:1.5rem}}@media (max-width:480px){.max-\[480px\]\:bottom-0{bottom:0}.max-\[480px\]\:right-0{right:0}.max-\[480px\]\:h-full{height:100%}.max-\[480px\]\:w-full{width:100%}.max-\[480px\]\:rounded-none{border-radius:0}}@media (min-width:1024px){.lg\:bottom-14{bottom:3.5rem}.lg\:right-10{right:2.5rem}.lg\:h-16{height:4rem}.lg\:h-\[40px\]{height:40px}.lg\:w-16{width:4rem}.lg\:w-96{width:24rem}.lg\:w-\[40px\]{width:40px}}
|
|
@@ -22,7 +22,8 @@ export interface ChatInputProps {
|
|
|
22
22
|
placeholder?: string;
|
|
23
23
|
/**
|
|
24
24
|
* Enable streaming behavior by making a request to Chat Streaming API.
|
|
25
|
-
*
|
|
25
|
+
* This feature is experimental, and is subject to change.
|
|
26
|
+
* Defaults to false.
|
|
26
27
|
*/
|
|
27
28
|
stream?: boolean;
|
|
28
29
|
/** Enable auto focus for the input box. Defaults to false. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatInput.d.ts","sourceRoot":"","sources":["../../../src/components/ChatInput.tsx"],"names":[],"mappings":";AAQA;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAaD;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB
|
|
1
|
+
{"version":3,"file":"ChatInput.d.ts","sourceRoot":"","sources":["../../../src/components/ChatInput.tsx"],"names":[],"mappings":";AAQA;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAaD;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,8DAA8D;IAC9D,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;OAGG;IACH,WAAW,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACnC,uCAAuC;IACvC,cAAc,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAC7B,yDAAyD;IACzD,gBAAgB,CAAC,EAAE,mBAAmB,CAAC;CACxC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,SAAS,CAAC,EACxB,WAAiC,EACjC,MAAc,EACd,cAAsB,EACtB,WAAW,EACX,cAA8B,EAC9B,gBAAgB,GACjB,EAAE,cAAc,2CAyDhB"}
|
|
@@ -28,7 +28,7 @@ const builtInCssClasses = (0, withStylelessCssClasses_1.withStylelessCssClasses)
|
|
|
28
28
|
*
|
|
29
29
|
* @param props - {@link ChatInputProps}
|
|
30
30
|
*/
|
|
31
|
-
function ChatInput({ placeholder = "Type a message...", stream =
|
|
31
|
+
function ChatInput({ placeholder = "Type a message...", stream = false, inputAutoFocus = false, handleError, sendButtonIcon = (0, jsx_runtime_1.jsx)(Arrow_1.ArrowIcon, {}), customCssClasses, }) {
|
|
32
32
|
const chat = (0, chat_headless_react_1.useChatActions)();
|
|
33
33
|
const [input, setInput] = (0, react_1.useState)("");
|
|
34
34
|
const canSendMessage = (0, chat_headless_react_1.useChatState)((state) => state.conversation.canSendMessage);
|
|
@@ -52,7 +52,7 @@ function ChatInput({ placeholder = "Type a message...", stream = true, inputAuto
|
|
|
52
52
|
const onInputChange = (0, react_1.useCallback)((e) => {
|
|
53
53
|
setInput(e.target.value);
|
|
54
54
|
}, []);
|
|
55
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: cssClasses.container, children: [(0, jsx_runtime_1.jsx)(react_expanding_textarea_1.default, { autoFocus: inputAutoFocus, onKeyDown: handleKeyDown, value: input, onChange: onInputChange, className: cssClasses.textArea, placeholder: placeholder }), (0, jsx_runtime_1.jsx)("button", { "aria-label": "Send Message", disabled: !canSendMessage, onClick: sendMessage, className: cssClasses.sendButton, children: sendButtonIcon })] }));
|
|
55
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: cssClasses.container, children: [(0, jsx_runtime_1.jsx)(react_expanding_textarea_1.default, { autoFocus: inputAutoFocus, onKeyDown: handleKeyDown, value: input, onChange: onInputChange, className: cssClasses.textArea, placeholder: placeholder }), (0, jsx_runtime_1.jsx)("button", { "aria-label": "Send Message", disabled: !canSendMessage || input.length === 0, onClick: sendMessage, className: cssClasses.sendButton, children: sendButtonIcon })] }));
|
|
56
56
|
}
|
|
57
57
|
exports.ChatInput = ChatInput;
|
|
58
58
|
//# sourceMappingURL=ChatInput.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatInput.js","sourceRoot":"","sources":["../../../src/components/ChatInput.tsx"],"names":[],"mappings":";;;;;;;AAAA,iCAA8C;AAC9C,mEAAyE;AACzE,0CAA2C;AAC3C,oCAAiD;AACjD,wFAAgD;AAChD,gFAA6E;AAC7E,8EAA2E;AAa3E,MAAM,iBAAiB,GAAwB,IAAA,iDAAuB,EACpE,OAAO,EACP;IACE,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}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatPanel.d.ts","sourceRoot":"","sources":["../../../src/components/ChatPanel.tsx"],"names":[],"mappings":";AAEA,OAAO,EAEL,uBAAuB,EACvB,kBAAkB,EACnB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAa,mBAAmB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAM7E;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,mBAAmB,CAAC;IACtC,uBAAuB,CAAC,EAAE,uBAAuB,CAAC;CACnD;
|
|
1
|
+
{"version":3,"file":"ChatPanel.d.ts","sourceRoot":"","sources":["../../../src/components/ChatPanel.tsx"],"names":[],"mappings":";AAEA,OAAO,EAEL,uBAAuB,EACvB,kBAAkB,EACnB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAa,mBAAmB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAM7E;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,mBAAmB,CAAC;IACtC,uBAAuB,CAAC,EAAE,uBAAuB,CAAC;CACnD;AAeD;;;;GAIG;AACH,MAAM,WAAW,cACf,SAAQ,IAAI,CAAC,kBAAkB,EAAE,kBAAkB,GAAG,SAAS,CAAC,EAC9D,IAAI,CAAC,cAAc,EAAE,kBAAkB,CAAC;IAC1C,kDAAkD;IAClD,MAAM,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IACrB;;OAEG;IACH,gBAAgB,CAAC,EAAE,mBAAmB,CAAC;CACxC;AAED;;;;;;;;GAQG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,2CAkD9C"}
|
|
@@ -15,6 +15,9 @@ const builtInCssClasses = (0, withStylelessCssClasses_1.withStylelessCssClasses)
|
|
|
15
15
|
container: "h-full w-full flex flex-col relative shadow-2xl bg-white",
|
|
16
16
|
messagesContainer: "flex flex-col gap-y-1 mt-auto px-4 pb-[85px] overflow-auto",
|
|
17
17
|
inputContainer: "w-full absolute bottom-0 p-4 backdrop-blur-lg",
|
|
18
|
+
messageBubbleCssClasses: {
|
|
19
|
+
topContainer: "first:mt-4",
|
|
20
|
+
},
|
|
18
21
|
});
|
|
19
22
|
/**
|
|
20
23
|
* A component that renders a full panel for chat bot interactions. This includes
|
|
@@ -38,7 +41,7 @@ function ChatPanel(props) {
|
|
|
38
41
|
if (messages.length !== 0 || !canSendMessage) {
|
|
39
42
|
return;
|
|
40
43
|
}
|
|
41
|
-
const { stream =
|
|
44
|
+
const { stream = false, handleError } = props;
|
|
42
45
|
const res = stream ? chat.streamNextMessage() : chat.getNextMessage();
|
|
43
46
|
res.catch((e) => (handleError ? handleError(e) : defaultHandleApiError(e)));
|
|
44
47
|
}, [chat, props, messages, defaultHandleApiError, canSendMessage]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatPanel.js","sourceRoot":"","sources":["../../../src/components/ChatPanel.tsx"],"names":[],"mappings":";;;;;AAAA,iCAA0C;AAC1C,mEAAyE;AACzE,mDAIyB;AACzB,2CAA6E;AAC7E,+CAA4C;AAC5C,oCAAiD;AACjD,gFAA6E;AAC7E,8EAA2E;AAe3E,MAAM,iBAAiB,GAAwB,IAAA,iDAAuB,EACpE,OAAO,EACP;IACE,SAAS,EAAE,0DAA0D;IACrE,iBAAiB,EACf,4DAA4D;IAC9D,cAAc,EAAE,+CAA+C;
|
|
1
|
+
{"version":3,"file":"ChatPanel.js","sourceRoot":"","sources":["../../../src/components/ChatPanel.tsx"],"names":[],"mappings":";;;;;AAAA,iCAA0C;AAC1C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(0, withStylelessCssClasses_1.withStylelessCssClasses)
|
|
|
25
25
|
container: "max-[480px]:rounded-none rounded-t-3xl",
|
|
26
26
|
},
|
|
27
27
|
panelCssClasses: {
|
|
28
|
-
container: "max-[480px]:rounded-none rounded-
|
|
28
|
+
container: "max-[480px]:rounded-none rounded-3xl",
|
|
29
29
|
inputContainer: "max-[480px]:rounded-none rounded-b-3xl",
|
|
30
30
|
},
|
|
31
31
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatPopUp.js","sourceRoot":"","sources":["../../../src/components/ChatPopUp.tsx"],"names":[],"mappings":";;;;AAAA,iCAA8C;AAC9C,wCAAyC;AACzC,2CAA6E;AAC7E,6CAIsB;AACtB,mDAAyC;AACzC,oCAAiD;AACjD,8EAA2E;AAoB3E,MAAM,aAAa,GAAG,uDAAuD,CAAC;AAC9E,MAAM,iBAAiB,GAAwB,IAAA,iDAAuB,EACpE,OAAO,EACP;IACE,SAAS,EAAE,gBAAgB;IAC3B,KAAK,EACH,aAAa;QACb,sGAAsG;IACxG,cAAc,EAAE,4BAA4B;IAC5C,aAAa,EAAE,oDAAoD;IACnE,MAAM,EACJ,aAAa;QACb,gLAAgL;IAClL,eAAe,EAAE,sCAAsC;IACvD,cAAc,EACZ,8DAA8D;IAChE,UAAU,EAAE,yDAAyD;IACrE,gBAAgB,EAAE;QAChB,SAAS,EAAE,wCAAwC;KACpD;IACD,eAAe,EAAE;QACf,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"ChatPopUp.js","sourceRoot":"","sources":["../../../src/components/ChatPopUp.tsx"],"names":[],"mappings":";;;;AAAA,iCAA8C;AAC9C,wCAAyC;AACzC,2CAA6E;AAC7E,6CAIsB;AACtB,mDAAyC;AACzC,oCAAiD;AACjD,8EAA2E;AAoB3E,MAAM,aAAa,GAAG,uDAAuD,CAAC;AAC9E,MAAM,iBAAiB,GAAwB,IAAA,iDAAuB,EACpE,OAAO,EACP;IACE,SAAS,EAAE,gBAAg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,CAAC,MAAM,EACjB,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC,CAAC,UAAU,CAAC,eAAe,CAClE,CAAC;IAEF,OAAO,CACL,iCAAK,SAAS,EAAE,UAAU,CAAC,SAAS,aAClC,gCAAK,SAAS,EAAE,eAAe,gBAAa,kBAAkB,YAC5D,uBAAC,qBAAS,OACJ,KAAK,EACT,gBAAgB,EAAE,UAAU,CAAC,eAAe,EAC5C,MAAM,EACJ,uBAAC,uBAAU,IACT,KAAK,EAAE,KAAK,EACZ,iBAAiB,EAAE,iBAAiB,EACpC,eAAe,EAAE,IAAI,EACrB,OAAO,EAAE,OAAO,EAChB,gBAAgB,EAAE,UAAU,CAAC,gBAAgB,GAC7C,GAEJ,GACE,EACN,iDACa,mBAAmB,EAC9B,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,gBAAgB,YAE1B,mBAAmB,IAAI,uBAAC,eAAQ,IAAC,SAAS,EAAE,UAAU,CAAC,UAAU,GAAI,GAC/D,IACL,CACP,CAAC;AACJ,CAAC;AAtDD,8BAsDC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The CSS class interface for the {@link FeedbackButtons} component.
|
|
3
|
+
*
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export interface FeedbackButtonsCssClasses {
|
|
7
|
+
container?: string;
|
|
8
|
+
thumbsUpButton?: string;
|
|
9
|
+
thumbsUpIcon?: string;
|
|
10
|
+
thumbsUpFillIcon?: string;
|
|
11
|
+
thumbsDownButton?: string;
|
|
12
|
+
thumbsDownIcon?: string;
|
|
13
|
+
thumbsDownFillIcon?: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* The props for the {@link FeedbackButtons} component.
|
|
17
|
+
*
|
|
18
|
+
* @internal
|
|
19
|
+
*/
|
|
20
|
+
interface FeedbackButtonsProps {
|
|
21
|
+
/** CSS classes for customizing the component styling. */
|
|
22
|
+
customCssClasses?: FeedbackButtonsCssClasses;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Displays feedback buttons (e.g. thumbs up and thumbs down) that will
|
|
26
|
+
* report analytic events on click.
|
|
27
|
+
*
|
|
28
|
+
* @internal
|
|
29
|
+
*/
|
|
30
|
+
export declare function FeedbackButtons({ customCssClasses }: FeedbackButtonsProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export {};
|
|
32
|
+
//# sourceMappingURL=FeedbackButtons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FeedbackButtons.d.ts","sourceRoot":"","sources":["../../../src/components/FeedbackButtons.tsx"],"names":[],"mappings":"AAQA;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAcD;;;;GAIG;AACH,UAAU,oBAAoB;IAC5B,yDAAyD;IACzD,gBAAgB,CAAC,EAAE,yBAAyB,CAAC;CAC9C;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,EAAE,gBAAgB,EAAE,EAAE,oBAAoB,2CAoCzE"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FeedbackButtons = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const ThumbsDown_1 = require("../icons/ThumbsDown");
|
|
6
|
+
const ThumbsUp_1 = require("../icons/ThumbsUp");
|
|
7
|
+
const react_1 = require("react");
|
|
8
|
+
const ThumbsUpFill_1 = require("../icons/ThumbsUpFill");
|
|
9
|
+
const ThumbsDownFill_1 = require("../icons/ThumbsDownFill");
|
|
10
|
+
const withStylelessCssClasses_1 = require("../utils/withStylelessCssClasses");
|
|
11
|
+
const hooks_1 = require("../hooks");
|
|
12
|
+
const builtInCssClasses = (0, withStylelessCssClasses_1.withStylelessCssClasses)("FeedbackButtons", {
|
|
13
|
+
container: "flex gap-x-1 absolute -right-1 -top-3 opacity-0 group-hover:opacity-100 duration-200",
|
|
14
|
+
thumbsUpButton: "w-6 h-6 bg-gray-700 rounded-md flex justify-center items-center",
|
|
15
|
+
thumbsUpIcon: "text-white w-[22px] h-[22px] stroke-[0.2]",
|
|
16
|
+
thumbsUpFillIcon: "text-gray-700 w-[22px] h-[22px] stroke-[0.2]",
|
|
17
|
+
thumbsDownButton: "w-6 h-6 bg-gray-700 rounded-md flex justify-center items-center",
|
|
18
|
+
thumbsDownIcon: "text-white w-[22px] h-[22px] stroke-[0.2]",
|
|
19
|
+
thumbsDownFillIcon: "text-gray-700 w-[22px] h-[22px] stroke-[0.2]",
|
|
20
|
+
});
|
|
21
|
+
/**
|
|
22
|
+
* Displays feedback buttons (e.g. thumbs up and thumbs down) that will
|
|
23
|
+
* report analytic events on click.
|
|
24
|
+
*
|
|
25
|
+
* @internal
|
|
26
|
+
*/
|
|
27
|
+
function FeedbackButtons({ customCssClasses }) {
|
|
28
|
+
const cssClasses = (0, hooks_1.useComposedCssClasses)(builtInCssClasses, customCssClasses);
|
|
29
|
+
const [selectedThumb, setSelectedThumb] = (0, react_1.useState)();
|
|
30
|
+
const onClickThumbsUp = (0, react_1.useCallback)(() => {
|
|
31
|
+
setSelectedThumb("UP");
|
|
32
|
+
console.log("thumbs up");
|
|
33
|
+
}, []);
|
|
34
|
+
const onClickThumbsDown = (0, react_1.useCallback)(() => {
|
|
35
|
+
setSelectedThumb("DOWN");
|
|
36
|
+
console.log("thumbs down");
|
|
37
|
+
}, []);
|
|
38
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: cssClasses.container, children: [(0, jsx_runtime_1.jsx)("button", { className: cssClasses.thumbsUpButton, onClick: onClickThumbsUp, children: selectedThumb === "UP" ? ((0, jsx_runtime_1.jsx)(ThumbsUpFill_1.ThumbsUpFillIcon, { className: cssClasses.thumbsUpFillIcon })) : ((0, jsx_runtime_1.jsx)(ThumbsUp_1.ThumbsUpIcon, { className: cssClasses.thumbsUpIcon })) }), (0, jsx_runtime_1.jsx)("button", { className: cssClasses.thumbsDownButton, onClick: onClickThumbsDown, children: selectedThumb === "DOWN" ? ((0, jsx_runtime_1.jsx)(ThumbsDownFill_1.ThumbsDownFillIcon, { className: cssClasses.thumbsDownFillIcon })) : ((0, jsx_runtime_1.jsx)(ThumbsDown_1.ThumbsDownIcon, { className: cssClasses.thumbsDownIcon })) })] }));
|
|
39
|
+
}
|
|
40
|
+
exports.FeedbackButtons = FeedbackButtons;
|
|
41
|
+
//# sourceMappingURL=FeedbackButtons.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FeedbackButtons.js","sourceRoot":"","sources":["../../../src/components/FeedbackButtons.tsx"],"names":[],"mappings":";;;;AAAA,oDAAqD;AACrD,gDAAiD;AACjD,iCAA8C;AAC9C,wDAAyD;AACzD,4DAA6D;AAC7D,8EAA2E;AAC3E,oCAAiD;AAiBjD,MAAM,iBAAiB,GACrB,IAAA,iDAAuB,EAA4B,iBAAiB,EAAE;IACpE,SAAS,EACP,sFAAsF;IACxF,cAAc,EAAE,iEAAiE;IACjF,YAAY,EAAE,2CAA2C;IACzD,gBAAgB,EAAE,8CAA8C;IAChE,gBAAgB,EAAE,iEAAiE;IACnF,cAAc,EAAE,2CAA2C;IAC3D,kBAAkB,EAAE,8CAA8C;CACnE,CAAC,CAAC;AAYL;;;;;GAKG;AACH,SAAgB,eAAe,CAAC,EAAE,gBAAgB,EAAwB;IACxE,MAAM,UAAU,GAAG,IAAA,6BAAqB,EAAC,iBAAiB,EAAE,gBAAgB,CAAC,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c,CAAC,EAC7B,SAAS,GACV,EAAE;IACD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,GAAG,CAAC,OAAO,CAgBd"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ThumbsDownIcon = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
function ThumbsDownIcon({ className, }) {
|
|
6
|
+
return ((0, jsx_runtime_1.jsx)("svg", { width: "100%", height: "100%", viewBox: "0 0 20 20", stroke: "currentColor", className: className, xmlns: "http://www.w3.org/2000/svg", children: (0, jsx_runtime_1.jsx)("path", { d: "M7.1848 12.7875C7.5718 13.175 7.834 13.6625 7.9338 14.1875L8.2959 16H8.97C9.4195 16 9.8439 15.8 10.1311 15.45C10.4182 15.1 10.5306 14.65 10.4432 14.2L10.1061 12.5H11.2547H12.0037H13.7516C14.4382 12.5 15 11.9375 15 11.25C15 10.8375 14.8002 10.475 14.5006 10.25C14.8002 10.025 15 9.6625 15 9.25C15 8.7875 14.7378 8.375 14.3508 8.1625C14.588 7.9375 14.7503 7.6125 14.7503 7.25C14.7503 6.7875 14.4881 6.375 14.1011 6.1625C14.3383 5.9375 14.5006 5.6125 14.5006 5.25C14.5006 4.5625 13.9388 4 13.2522 4H12.0037H10.7553L7.2597 4C6.5605 4 5.9613 4.4125 5.6866 5H5.0125V5.5H6.0112H6.0362C6.1486 4.925 6.6604 4.5 7.2597 4.5L9.7566 4.5C9.5943 4.7125 9.5069 4.975 9.5069 5.25C9.5069 5.7125 9.769 6.125 10.156 6.3375C9.9189 6.5625 9.7566 6.8875 9.7566 7.25C9.7566 7.7125 10.0187 8.125 10.4057 8.3375C10.1685 8.5625 10.0062 8.8875 10.0062 9.25C10.0062 9.6625 10.206 10.025 10.5056 10.25C10.206 10.475 10.0062 10.8375 10.0062 11.25C10.0062 11.525 10.1061 11.7875 10.2559 12H9.4944L9.9563 14.3C10.0187 14.6 9.9438 14.9 9.7441 15.125C9.5568 15.3625 9.2697 15.4875 8.97 15.4875H8.6954L8.4082 14.075C8.2834 13.45 7.9713 12.875 7.5218 12.4125L6.0986 10.9875H5V11.4875H5.8989L7.1848 12.7875ZM10.7553 6C10.3433 6 10.0062 5.6625 10.0062 5.25C10.0062 4.8375 10.3433 4.5 10.7553 4.5H12.0037H13.2522C13.6642 4.5 14.0012 4.8375 14.0012 5.25C14.0012 5.6625 13.6642 6 13.2522 6H11.005H10.7553ZM11.005 8C10.593 8 10.2559 7.6625 10.2559 7.25C10.2559 6.8375 10.593 6.5 11.005 6.5H13.2522H13.5019C13.9139 6.5 14.2509 6.8375 14.2509 7.25C14.2509 7.6625 13.9139 8 13.5019 8H11.2547H11.005ZM10.5056 9.25C10.5056 8.8375 10.8427 8.5 11.2547 8.5H13.5019H13.7516C14.1636 8.5 14.5006 8.8375 14.5006 9.25C14.5006 9.6625 14.1636 10 13.7516 10H11.2547C10.8427 10 10.5056 9.6625 10.5056 9.25ZM10.5056 11.25C10.5056 10.8375 10.8427 10.5 11.2547 10.5H13.7516C14.1636 10.5 14.5006 10.8375 14.5006 11.25C14.5006 11.6625 14.1636 12 13.7516 12H12.0037H11.2547C10.8427 12 10.5056 11.6625 10.5056 11.25Z", fill: "currentColor" }) }));
|
|
7
|
+
}
|
|
8
|
+
exports.ThumbsDownIcon = ThumbsDownIcon;
|
|
9
|
+
//# sourceMappingURL=ThumbsDown.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThumbsDown.js","sourceRoot":"","sources":["../../../src/icons/ThumbsDown.tsx"],"names":[],"mappings":";;;;AAAA,SAAgB,cAAc,CAAC,EAC7B,SAAS,GAGV;IACC,OAAO,CACL,gCACE,KAAK,EAAC,MAAM,EACZ,MAAM,EAAC,MAAM,EACb,OAAO,EAAC,WAAW,EACnB,MAAM,EAAC,cAAc,EACrB,SAAS,EAAE,SAAS,EACpB,KAAK,EAAC,4BAA4B,YAElC,iCACE,CAAC,EAAC,+5DAA+5D,EACj6D,IAAI,EAAC,cAAc,GACnB,GACE,CACP,CAAC;AACJ,CAAC;AApBD,wCAoBC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThumbsDownFill.d.ts","sourceRoot":"","sources":["../../../src/icons/ThumbsDownFill.tsx"],"names":[],"mappings":";AAAA,wBAAgB,kBAAkB,CAAC,EACjC,SAAS,GACV,EAAE;IACD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,GAAG,CAAC,OAAO,CAoBd"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ThumbsDownFillIcon = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
function ThumbsDownFillIcon({ className, }) {
|
|
6
|
+
return ((0, jsx_runtime_1.jsxs)("svg", { width: "100%", height: "100%", viewBox: "0 0 20 20", fill: "none", className: className, xmlns: "http://www.w3.org/2000/svg", children: [(0, jsx_runtime_1.jsx)("path", { d: "M7.93383 14.1875C7.83396 13.6625 7.57178 13.175 7.18477 12.7875L5.89888 11.4875H5L5.01248 5H5.68664C5.9613 4.4125 6.56055 4 7.25968 4L10.7553 4H12.0037H13.2522C13.9388 4 14.5006 4.5625 14.5006 5.25C14.5006 5.6125 14.3383 5.9375 14.1011 6.1625C14.4881 6.375 14.7503 6.7875 14.7503 7.25C14.7503 7.6125 14.588 7.9375 14.3508 8.1625C14.7378 8.375 15 8.7875 15 9.25C15 9.6625 14.8002 10.025 14.5006 10.25C14.8002 10.475 15 10.8375 15 11.25C15 11.9375 14.4382 12.5 13.7516 12.5H12.0037H11.2547H10.1061L10.4432 14.2C10.5306 14.65 10.4182 15.1 10.1311 15.45C9.84395 15.8 9.41948 16 8.97004 16H8.29588L7.93383 14.1875Z", fill: "white" }), (0, jsx_runtime_1.jsx)("path", { d: "M10.7547 6.004C10.3427 6.004 10.0056 5.6665 10.0056 5.254C10.0056 4.8415 10.3427 4.504 10.7547 4.504L12.0031 4.504H13.2516C13.6635 4.504 14.0006 4.8415 14.0006 5.254C14.0006 5.6665 13.6635 6.004 13.2516 6.004H11.0044L10.7547 6.004ZM11.0044 8.004C10.5924 8.004 10.2553 7.6665 10.2553 7.254C10.2553 6.8415 10.5924 6.504 11.0044 6.504H13.2516H13.5012C13.9132 6.504 14.2503 6.8415 14.2503 7.254C14.2503 7.6665 13.9132 8.004 13.5012 8.004H11.2541H11.0044ZM10.505 9.254C10.505 8.8415 10.8421 8.504 11.2541 8.504H13.5012H13.7509C14.1629 8.504 14.5 8.8415 14.5 9.254C14.5 9.6665 14.1629 10.004 13.7509 10.004H11.2541C10.8421 10.004 10.505 9.6665 10.505 9.254ZM10.505 11.254C10.505 10.8415 10.8421 10.504 11.2541 10.504H13.7509C14.1629 10.504 14.5 10.8415 14.5 11.254C14.5 11.6665 14.1629 12.004 13.7509 12.004H12.0031H11.2541C10.8421 12.004 10.505 11.6665 10.505 11.254Z", fill: "currentColor" })] }));
|
|
7
|
+
}
|
|
8
|
+
exports.ThumbsDownFillIcon = ThumbsDownFillIcon;
|
|
9
|
+
//# sourceMappingURL=ThumbsDownFill.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThumbsDownFill.js","sourceRoot":"","sources":["../../../src/icons/ThumbsDownFill.tsx"],"names":[],"mappings":";;;;AAAA,SAAgB,kBAAkB,CAAC,EACjC,SAAS,GAGV;IACC,OAAO,CACL,iCACE,KAAK,EAAC,MAAM,EACZ,MAAM,EAAC,MAAM,EACb,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,SAAS,EAAE,SAAS,EACpB,KAAK,EAAC,4BAA4B,aAElC,iCACE,CAAC,EAAC,mmBAAmmB,EACrmB,IAAI,EAAC,OAAO,GACZ,EACF,iCACE,CAAC,EAAC,g2BAAg2B,EACl2B,IAAI,EAAC,cAAc,GACnB,IACE,CACP,CAAC;AACJ,CAAC;AAxBD,gDAwBC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThumbsUp.d.ts","sourceRoot":"","sources":["../../../src/icons/ThumbsUp.tsx"],"names":[],"mappings":";AAAA,wBAAgB,YAAY,CAAC,EAC3B,SAAS,GACV,EAAE;IACD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,GAAG,CAAC,OAAO,CAgBd"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ThumbsUpIcon = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
function ThumbsUpIcon({ className, }) {
|
|
6
|
+
return ((0, jsx_runtime_1.jsx)("svg", { width: "100%", height: "100%", viewBox: "0 0 20 20", stroke: "currentColor", className: className, xmlns: "http://www.w3.org/2000/svg", children: (0, jsx_runtime_1.jsx)("path", { d: "M12.8152 7.2125C12.4282 6.825 12.166 6.3375 12.0662 5.8125L11.7041 4H11.03C10.5805 4 10.1561 4.2 9.86891 4.55C9.58177 4.9 9.46941 5.35 9.5568 5.8L9.89388 7.5H8.74532H7.99625H6.24844C5.5618 7.5 5 8.0625 5 8.75C5 9.1625 5.19975 9.525 5.49938 9.75C5.19975 9.975 5 10.3375 5 10.75C5 11.2125 5.26217 11.625 5.64919 11.8375C5.41199 12.0625 5.24969 12.3875 5.24969 12.75C5.24969 13.2125 5.51186 13.625 5.89888 13.8375C5.66167 14.0625 5.49938 14.3875 5.49938 14.75C5.49938 15.4375 6.06117 16 6.74782 16H7.99625H9.24469H12.7403C13.4395 16 14.0387 15.5875 14.3134 15H14.9875V14.5H13.9888H13.9638C13.8514 15.075 13.3396 15.5 12.7403 15.5H10.2434C10.4057 15.2875 10.4931 15.025 10.4931 14.75C10.4931 14.2875 10.231 13.875 9.84395 13.6625C10.0811 13.4375 10.2434 13.1125 10.2434 12.75C10.2434 12.2875 9.98127 11.875 9.59426 11.6625C9.83146 11.4375 9.99376 11.1125 9.99376 10.75C9.99376 10.3375 9.79401 9.975 9.49438 9.75C9.79401 9.525 9.99376 9.1625 9.99376 8.75C9.99376 8.475 9.89388 8.2125 9.74407 8H10.5056L10.0437 5.7C9.98127 5.4 10.0562 5.1 10.2559 4.875C10.4432 4.6375 10.7303 4.5125 11.03 4.5125H11.3046L11.5918 5.925C11.7166 6.55 12.0287 7.125 12.4782 7.5875L13.9014 9.0125H15V8.5125H14.1011L12.8152 7.2125ZM9.24469 14C9.65668 14 9.99376 14.3375 9.99376 14.75C9.99376 15.1625 9.65668 15.5 9.24469 15.5H7.99625H6.74782C6.33583 15.5 5.99875 15.1625 5.99875 14.75C5.99875 14.3375 6.33583 14 6.74782 14H8.99501H9.24469ZM8.99501 12C9.40699 12 9.74407 12.3375 9.74407 12.75C9.74407 13.1625 9.40699 13.5 8.99501 13.5H6.74782H6.49813C6.08614 13.5 5.74906 13.1625 5.74906 12.75C5.74906 12.3375 6.08614 12 6.49813 12H8.74532H8.99501ZM9.49438 10.75C9.49438 11.1625 9.1573 11.5 8.74532 11.5H6.49813H6.24844C5.83645 11.5 5.49938 11.1625 5.49938 10.75C5.49938 10.3375 5.83645 10 6.24844 10H8.74532C9.1573 10 9.49438 10.3375 9.49438 10.75ZM9.49438 8.75C9.49438 9.1625 9.1573 9.5 8.74532 9.5H6.24844C5.83645 9.5 5.49938 9.1625 5.49938 8.75C5.49938 8.3375 5.83645 8 6.24844 8H7.99625H8.74532C9.1573 8 9.49438 8.3375 9.49438 8.75Z", fill: "currentColor" }) }));
|
|
7
|
+
}
|
|
8
|
+
exports.ThumbsUpIcon = ThumbsUpIcon;
|
|
9
|
+
//# sourceMappingURL=ThumbsUp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThumbsUp.js","sourceRoot":"","sources":["../../../src/icons/ThumbsUp.tsx"],"names":[],"mappings":";;;;AAAA,SAAgB,YAAY,CAAC,EAC3B,SAAS,GAGV;IACC,OAAO,CACL,gCACE,KAAK,EAAC,MAAM,EACZ,MAAM,EAAC,MAAM,EACb,OAAO,EAAC,WAAW,EACnB,MAAM,EAAC,cAAc,EACrB,SAAS,EAAE,SAAS,EACpB,KAAK,EAAC,4BAA4B,YAElC,iCACE,CAAC,EAAC,y9DAAy9D,EAC39D,IAAI,EAAC,cAAc,GACnB,GACE,CACP,CAAC;AACJ,CAAC;AApBD,oCAoBC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThumbsUpFill.d.ts","sourceRoot":"","sources":["../../../src/icons/ThumbsUpFill.tsx"],"names":[],"mappings":";AAAA,wBAAgB,gBAAgB,CAAC,EAC/B,SAAS,GACV,EAAE;IACD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,GAAG,CAAC,OAAO,CAoBd"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ThumbsUpFillIcon = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
function ThumbsUpFillIcon({ className, }) {
|
|
6
|
+
return ((0, jsx_runtime_1.jsxs)("svg", { width: "100%", height: "100%", viewBox: "0 0 20 20", fill: "none", className: className, xmlns: "http://www.w3.org/2000/svg", children: [(0, jsx_runtime_1.jsx)("path", { d: "M12.0662 5.8125C12.166 6.3375 12.4282 6.825 12.8152 7.2125L14.1011 8.5125H15L14.9875 15H14.3134C14.0387 15.5875 13.4395 16 12.7403 16H9.24469H7.99625H6.74782C6.06117 16 5.49938 15.4375 5.49938 14.75C5.49938 14.3875 5.66167 14.0625 5.89888 13.8375C5.51186 13.625 5.24969 13.2125 5.24969 12.75C5.24969 12.3875 5.41199 12.0625 5.64919 11.8375C5.26217 11.625 5 11.2125 5 10.75C5 10.3375 5.19975 9.975 5.49938 9.75C5.19975 9.525 5 9.1625 5 8.75C5 8.0625 5.5618 7.5 6.24844 7.5H7.99625H8.74532H9.89388L9.5568 5.8C9.46941 5.35 9.58177 4.9 9.86891 4.55C10.1561 4.2 10.5805 4 11.03 4H11.7041L12.0662 5.8125Z", fill: "white" }), (0, jsx_runtime_1.jsx)("path", { d: "M9.24532 13.996C9.6573 13.996 9.99438 14.3335 9.99438 14.746C9.99438 15.1585 9.6573 15.496 9.24532 15.496H7.99688H6.74844C6.33645 15.496 5.99938 15.1585 5.99938 14.746C5.99938 14.3335 6.33645 13.996 6.74844 13.996H8.99563H9.24532ZM8.99563 11.996C9.40762 11.996 9.74469 12.3335 9.74469 12.746C9.74469 13.1585 9.40762 13.496 8.99563 13.496H6.74844H6.49875C6.08677 13.496 5.74969 13.1585 5.74969 12.746C5.74969 12.3335 6.08677 11.996 6.49875 11.996H8.74594H8.99563ZM9.49501 10.746C9.49501 11.1585 9.15793 11.496 8.74594 11.496H6.49875H6.24906C5.83708 11.496 5.5 11.1585 5.5 10.746C5.5 10.3335 5.83708 9.996 6.24906 9.996H8.74594C9.15793 9.996 9.49501 10.3335 9.49501 10.746ZM9.49501 8.746C9.49501 9.1585 9.15793 9.496 8.74594 9.496H6.24906C5.83708 9.496 5.5 9.1585 5.5 8.746C5.5 8.3335 5.83708 7.996 6.24906 7.996H7.99688H8.74594C9.15793 7.996 9.49501 8.3335 9.49501 8.746Z", fill: "currentColor" })] }));
|
|
7
|
+
}
|
|
8
|
+
exports.ThumbsUpFillIcon = ThumbsUpFillIcon;
|
|
9
|
+
//# sourceMappingURL=ThumbsUpFill.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThumbsUpFill.js","sourceRoot":"","sources":["../../../src/icons/ThumbsUpFill.tsx"],"names":[],"mappings":";;;;AAAA,SAAgB,gBAAgB,CAAC,EAC/B,SAAS,GAGV;IACC,OAAO,CACL,iCACE,KAAK,EAAC,MAAM,EACZ,MAAM,EAAC,MAAM,EACb,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,SAAS,EAAE,SAAS,EACpB,KAAK,EAAC,4BAA4B,aAElC,iCACE,CAAC,EAAC,wlBAAwlB,EAC1lB,IAAI,EAAC,OAAO,GACZ,EACF,iCACE,CAAC,EAAC,w2BAAw2B,EAC12B,IAAI,EAAC,cAAc,GACnB,IACE,CACP,CAAC;AACJ,CAAC;AAxBD,4CAwBC"}
|
|
@@ -22,7 +22,8 @@ export interface ChatInputProps {
|
|
|
22
22
|
placeholder?: string;
|
|
23
23
|
/**
|
|
24
24
|
* Enable streaming behavior by making a request to Chat Streaming API.
|
|
25
|
-
*
|
|
25
|
+
* This feature is experimental, and is subject to change.
|
|
26
|
+
* Defaults to false.
|
|
26
27
|
*/
|
|
27
28
|
stream?: boolean;
|
|
28
29
|
/** Enable auto focus for the input box. Defaults to false. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatInput.d.ts","sourceRoot":"","sources":["../../../src/components/ChatInput.tsx"],"names":[],"mappings":";AAQA;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAaD;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB
|
|
1
|
+
{"version":3,"file":"ChatInput.d.ts","sourceRoot":"","sources":["../../../src/components/ChatInput.tsx"],"names":[],"mappings":";AAQA;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAaD;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,8DAA8D;IAC9D,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;OAGG;IACH,WAAW,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACnC,uCAAuC;IACvC,cAAc,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAC7B,yDAAyD;IACzD,gBAAgB,CAAC,EAAE,mBAAmB,CAAC;CACxC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,SAAS,CAAC,EACxB,WAAiC,EACjC,MAAc,EACd,cAAsB,EACtB,WAAW,EACX,cAA8B,EAC9B,gBAAgB,GACjB,EAAE,cAAc,2CAyDhB"}
|
|
@@ -22,7 +22,7 @@ const builtInCssClasses = withStylelessCssClasses("Input", {
|
|
|
22
22
|
*
|
|
23
23
|
* @param props - {@link ChatInputProps}
|
|
24
24
|
*/
|
|
25
|
-
export function ChatInput({ placeholder = "Type a message...", stream =
|
|
25
|
+
export function ChatInput({ placeholder = "Type a message...", stream = false, inputAutoFocus = false, handleError, sendButtonIcon = _jsx(ArrowIcon, {}), customCssClasses, }) {
|
|
26
26
|
const chat = useChatActions();
|
|
27
27
|
const [input, setInput] = useState("");
|
|
28
28
|
const canSendMessage = useChatState((state) => state.conversation.canSendMessage);
|
|
@@ -46,6 +46,6 @@ export function ChatInput({ placeholder = "Type a message...", stream = true, in
|
|
|
46
46
|
const onInputChange = useCallback((e) => {
|
|
47
47
|
setInput(e.target.value);
|
|
48
48
|
}, []);
|
|
49
|
-
return (_jsxs("div", { className: cssClasses.container, children: [_jsx(Textarea, { autoFocus: inputAutoFocus, onKeyDown: handleKeyDown, value: input, onChange: onInputChange, className: cssClasses.textArea, placeholder: placeholder }), _jsx("button", { "aria-label": "Send Message", disabled: !canSendMessage, onClick: sendMessage, className: cssClasses.sendButton, children: sendButtonIcon })] }));
|
|
49
|
+
return (_jsxs("div", { className: cssClasses.container, children: [_jsx(Textarea, { autoFocus: inputAutoFocus, onKeyDown: handleKeyDown, value: input, onChange: onInputChange, className: cssClasses.textArea, placeholder: placeholder }), _jsx("button", { "aria-label": "Send Message", disabled: !canSendMessage || input.length === 0, onClick: sendMessage, className: cssClasses.sendButton, children: sendButtonIcon })] }));
|
|
50
50
|
}
|
|
51
51
|
//# sourceMappingURL=ChatInput.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatInput.js","sourceRoot":"","sources":["../../../src/components/ChatInput.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,QAAQ,MAAM,0BAA0B,CAAC;AAChD,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAa3E,MAAM,iBAAiB,GAAwB,uBAAuB,CACpE,OAAO,EACP;IACE,SAAS,EAAE,gDAAgD;IAC3D,QAAQ,EACN,iGAAiG;IACnG,UAAU,EACR,mLAAmL;CACtL,CACF,CAAC;
|
|
1
|
+
{"version":3,"file":"ChatInput.js","sourceRoot":"","sources":["../../../src/components/ChatInput.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,QAAQ,MAAM,0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AAM7E;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,mBAAmB,CAAC;IACtC,uBAAuB,CAAC,EAAE,uBAAuB,CAAC;CACnD;
|
|
1
|
+
{"version":3,"file":"ChatPanel.d.ts","sourceRoot":"","sources":["../../../src/components/ChatPanel.tsx"],"names":[],"mappings":";AAEA,OAAO,EAEL,uBAAuB,EACvB,kBAAkB,EACnB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAa,mBAAmB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAM7E;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,mBAAmB,CAAC;IACtC,uBAAuB,CAAC,EAAE,uBAAuB,CAAC;CACnD;AAeD;;;;GAIG;AACH,MAAM,WAAW,cACf,SAAQ,IAAI,CAAC,kBAAkB,EAAE,kBAAkB,GAAG,SAAS,CAAC,EAC9D,IAAI,CAAC,cAAc,EAAE,kBAAkB,CAAC;IAC1C,kDAAkD;IAClD,MAAM,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IACrB;;OAEG;IACH,gBAAgB,CAAC,EAAE,mBAAmB,CAAC;CACxC;AAED;;;;;;;;GAQG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,2CAkD9C"}
|
|
@@ -12,6 +12,9 @@ const builtInCssClasses = withStylelessCssClasses("Panel", {
|
|
|
12
12
|
container: "h-full w-full flex flex-col relative shadow-2xl bg-white",
|
|
13
13
|
messagesContainer: "flex flex-col gap-y-1 mt-auto px-4 pb-[85px] overflow-auto",
|
|
14
14
|
inputContainer: "w-full absolute bottom-0 p-4 backdrop-blur-lg",
|
|
15
|
+
messageBubbleCssClasses: {
|
|
16
|
+
topContainer: "first:mt-4",
|
|
17
|
+
},
|
|
15
18
|
});
|
|
16
19
|
/**
|
|
17
20
|
* A component that renders a full panel for chat bot interactions. This includes
|
|
@@ -35,7 +38,7 @@ export function ChatPanel(props) {
|
|
|
35
38
|
if (messages.length !== 0 || !canSendMessage) {
|
|
36
39
|
return;
|
|
37
40
|
}
|
|
38
|
-
const { stream =
|
|
41
|
+
const { stream = false, handleError } = props;
|
|
39
42
|
const res = stream ? chat.streamNextMessage() : chat.getNextMessage();
|
|
40
43
|
res.catch((e) => (handleError ? handleError(e) : defaultHandleApiError(e)));
|
|
41
44
|
}, [chat, props, messages, defaultHandleApiError, canSendMessage]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatPanel.js","sourceRoot":"","sources":["../../../src/components/ChatPanel.tsx"],"names":[],"mappings":";;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,EACL,aAAa,GAGd,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,SAAS,EAAuC,MAAM,aAAa,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAe3E,MAAM,iBAAiB,GAAwB,uBAAuB,CACpE,OAAO,EACP;IACE,SAAS,EAAE,0DAA0D;IACrE,iBAAiB,EACf,4DAA4D;IAC9D,cAAc,EAAE,+CAA+C;
|
|
1
|
+
{"version":3,"file":"ChatPanel.js","sourceRoot":"","sources":["../../../src/components/ChatPanel.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AAO,EAAE,OAAO,GAChB,CACH,CAAC,EACD,OAAO,IAAI,KAAC,WAAW,KAAG,IACvB,EACN,cAAK,SAAS,EAAE,UAAU,CAAC,cAAc,YACvC,KAAC,SAAS,OAAK,KAAK,EAAE,gBAAgB,EAAE,UAAU,CAAC,eAAe,GAAI,GAClE,IACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -22,7 +22,7 @@ const builtInCssClasses = withStylelessCssClasses("PopUp", {
|
|
|
22
22
|
container: "max-[480px]:rounded-none rounded-t-3xl",
|
|
23
23
|
},
|
|
24
24
|
panelCssClasses: {
|
|
25
|
-
container: "max-[480px]:rounded-none rounded-
|
|
25
|
+
container: "max-[480px]:rounded-none rounded-3xl",
|
|
26
26
|
inputContainer: "max-[480px]:rounded-none rounded-b-3xl",
|
|
27
27
|
},
|
|
28
28
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatPopUp.js","sourceRoot":"","sources":["../../../src/components/ChatPopUp.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,SAAS,EAAuC,MAAM,aAAa,CAAC;AAC7E,OAAO,EACL,UAAU,GAGX,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAoB3E,MAAM,aAAa,GAAG,uDAAuD,CAAC;AAC9E,MAAM,iBAAiB,GAAwB,uBAAuB,CACpE,OAAO,EACP;IACE,SAAS,EAAE,gBAAgB;IAC3B,KAAK,EACH,aAAa;QACb,sGAAsG;IACxG,cAAc,EAAE,4BAA4B;IAC5C,aAAa,EAAE,oDAAoD;IACnE,MAAM,EACJ,aAAa;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,SAAS,EAAE,gBAAgB,YAE1B,mBAAmB,IAAI,KAAC,QAAQ,IAAC,SAAS,EAAE,UAAU,CAAC,UAAU,GAAI,GAC/D,IACL,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The CSS class interface for the {@link FeedbackButtons} component.
|
|
3
|
+
*
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export interface FeedbackButtonsCssClasses {
|
|
7
|
+
container?: string;
|
|
8
|
+
thumbsUpButton?: string;
|
|
9
|
+
thumbsUpIcon?: string;
|
|
10
|
+
thumbsUpFillIcon?: string;
|
|
11
|
+
thumbsDownButton?: string;
|
|
12
|
+
thumbsDownIcon?: string;
|
|
13
|
+
thumbsDownFillIcon?: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* The props for the {@link FeedbackButtons} component.
|
|
17
|
+
*
|
|
18
|
+
* @internal
|
|
19
|
+
*/
|
|
20
|
+
interface FeedbackButtonsProps {
|
|
21
|
+
/** CSS classes for customizing the component styling. */
|
|
22
|
+
customCssClasses?: FeedbackButtonsCssClasses;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Displays feedback buttons (e.g. thumbs up and thumbs down) that will
|
|
26
|
+
* report analytic events on click.
|
|
27
|
+
*
|
|
28
|
+
* @internal
|
|
29
|
+
*/
|
|
30
|
+
export declare function FeedbackButtons({ customCssClasses }: FeedbackButtonsProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export {};
|
|
32
|
+
//# sourceMappingURL=FeedbackButtons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FeedbackButtons.d.ts","sourceRoot":"","sources":["../../../src/components/FeedbackButtons.tsx"],"names":[],"mappings":"AAQA;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAcD;;;;GAIG;AACH,UAAU,oBAAoB;IAC5B,yDAAyD;IACzD,gBAAgB,CAAC,EAAE,yBAAyB,CAAC;CAC9C;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,EAAE,gBAAgB,EAAE,EAAE,oBAAoB,2CAoCzE"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { ThumbsDownIcon } from "../icons/ThumbsDown";
|
|
3
|
+
import { ThumbsUpIcon } from "../icons/ThumbsUp";
|
|
4
|
+
import { useCallback, useState } from "react";
|
|
5
|
+
import { ThumbsUpFillIcon } from "../icons/ThumbsUpFill";
|
|
6
|
+
import { ThumbsDownFillIcon } from "../icons/ThumbsDownFill";
|
|
7
|
+
import { withStylelessCssClasses } from "../utils/withStylelessCssClasses";
|
|
8
|
+
import { useComposedCssClasses } from "../hooks";
|
|
9
|
+
const builtInCssClasses = withStylelessCssClasses("FeedbackButtons", {
|
|
10
|
+
container: "flex gap-x-1 absolute -right-1 -top-3 opacity-0 group-hover:opacity-100 duration-200",
|
|
11
|
+
thumbsUpButton: "w-6 h-6 bg-gray-700 rounded-md flex justify-center items-center",
|
|
12
|
+
thumbsUpIcon: "text-white w-[22px] h-[22px] stroke-[0.2]",
|
|
13
|
+
thumbsUpFillIcon: "text-gray-700 w-[22px] h-[22px] stroke-[0.2]",
|
|
14
|
+
thumbsDownButton: "w-6 h-6 bg-gray-700 rounded-md flex justify-center items-center",
|
|
15
|
+
thumbsDownIcon: "text-white w-[22px] h-[22px] stroke-[0.2]",
|
|
16
|
+
thumbsDownFillIcon: "text-gray-700 w-[22px] h-[22px] stroke-[0.2]",
|
|
17
|
+
});
|
|
18
|
+
/**
|
|
19
|
+
* Displays feedback buttons (e.g. thumbs up and thumbs down) that will
|
|
20
|
+
* report analytic events on click.
|
|
21
|
+
*
|
|
22
|
+
* @internal
|
|
23
|
+
*/
|
|
24
|
+
export function FeedbackButtons({ customCssClasses }) {
|
|
25
|
+
const cssClasses = useComposedCssClasses(builtInCssClasses, customCssClasses);
|
|
26
|
+
const [selectedThumb, setSelectedThumb] = useState();
|
|
27
|
+
const onClickThumbsUp = useCallback(() => {
|
|
28
|
+
setSelectedThumb("UP");
|
|
29
|
+
console.log("thumbs up");
|
|
30
|
+
}, []);
|
|
31
|
+
const onClickThumbsDown = useCallback(() => {
|
|
32
|
+
setSelectedThumb("DOWN");
|
|
33
|
+
console.log("thumbs down");
|
|
34
|
+
}, []);
|
|
35
|
+
return (_jsxs("div", { className: cssClasses.container, children: [_jsx("button", { className: cssClasses.thumbsUpButton, onClick: onClickThumbsUp, children: selectedThumb === "UP" ? (_jsx(ThumbsUpFillIcon, { className: cssClasses.thumbsUpFillIcon })) : (_jsx(ThumbsUpIcon, { className: cssClasses.thumbsUpIcon })) }), _jsx("button", { className: cssClasses.thumbsDownButton, onClick: onClickThumbsDown, children: selectedThumb === "DOWN" ? (_jsx(ThumbsDownFillIcon, { className: cssClasses.thumbsDownFillIcon })) : (_jsx(ThumbsDownIcon, { className: cssClasses.thumbsDownIcon })) })] }));
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=FeedbackButtons.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FeedbackButtons.js","sourceRoot":"","sources":["../../../src/components/FeedbackButtons.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAA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C,SAAS,EAAE,UAAU,CAAC,gBAAgB,GAAI,CAC7D,CAAC,CAAC,CAAC,CACF,KAAC,YAAY,IAAC,SAAS,EAAE,UAAU,CAAC,YAAY,GAAI,CACrD,GACM,EACT,iBACE,SAAS,EAAE,UAAU,CAAC,gBAAgB,EACtC,OAAO,EAAE,iBAAiB,YAEzB,aAAa,KAAK,MAAM,CAAC,CAAC,CAAC,CAC1B,KAAC,kBAAkB,IAAC,SAAS,EAAE,UAAU,CAAC,kBAAkB,GAAI,CACjE,CAAC,CAAC,CAAC,CACF,KAAC,cAAc,IAAC,SAAS,EAAE,UAAU,CAAC,cAAc,GAAI,CACzD,GACM,IACL,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThumbsDown.d.ts","sourceRoot":"","sources":["../../../src/icons/ThumbsDown.tsx"],"names":[],"mappings":";AAAA,wBAAgB,cAAc,CAAC,EAC7B,SAAS,GACV,EAAE;IACD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,GAAG,CAAC,OAAO,CAgBd"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
export function ThumbsDownIcon({ className, }) {
|
|
3
|
+
return (_jsx("svg", { width: "100%", height: "100%", viewBox: "0 0 20 20", stroke: "currentColor", className: className, xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M7.1848 12.7875C7.5718 13.175 7.834 13.6625 7.9338 14.1875L8.2959 16H8.97C9.4195 16 9.8439 15.8 10.1311 15.45C10.4182 15.1 10.5306 14.65 10.4432 14.2L10.1061 12.5H11.2547H12.0037H13.7516C14.4382 12.5 15 11.9375 15 11.25C15 10.8375 14.8002 10.475 14.5006 10.25C14.8002 10.025 15 9.6625 15 9.25C15 8.7875 14.7378 8.375 14.3508 8.1625C14.588 7.9375 14.7503 7.6125 14.7503 7.25C14.7503 6.7875 14.4881 6.375 14.1011 6.1625C14.3383 5.9375 14.5006 5.6125 14.5006 5.25C14.5006 4.5625 13.9388 4 13.2522 4H12.0037H10.7553L7.2597 4C6.5605 4 5.9613 4.4125 5.6866 5H5.0125V5.5H6.0112H6.0362C6.1486 4.925 6.6604 4.5 7.2597 4.5L9.7566 4.5C9.5943 4.7125 9.5069 4.975 9.5069 5.25C9.5069 5.7125 9.769 6.125 10.156 6.3375C9.9189 6.5625 9.7566 6.8875 9.7566 7.25C9.7566 7.7125 10.0187 8.125 10.4057 8.3375C10.1685 8.5625 10.0062 8.8875 10.0062 9.25C10.0062 9.6625 10.206 10.025 10.5056 10.25C10.206 10.475 10.0062 10.8375 10.0062 11.25C10.0062 11.525 10.1061 11.7875 10.2559 12H9.4944L9.9563 14.3C10.0187 14.6 9.9438 14.9 9.7441 15.125C9.5568 15.3625 9.2697 15.4875 8.97 15.4875H8.6954L8.4082 14.075C8.2834 13.45 7.9713 12.875 7.5218 12.4125L6.0986 10.9875H5V11.4875H5.8989L7.1848 12.7875ZM10.7553 6C10.3433 6 10.0062 5.6625 10.0062 5.25C10.0062 4.8375 10.3433 4.5 10.7553 4.5H12.0037H13.2522C13.6642 4.5 14.0012 4.8375 14.0012 5.25C14.0012 5.6625 13.6642 6 13.2522 6H11.005H10.7553ZM11.005 8C10.593 8 10.2559 7.6625 10.2559 7.25C10.2559 6.8375 10.593 6.5 11.005 6.5H13.2522H13.5019C13.9139 6.5 14.2509 6.8375 14.2509 7.25C14.2509 7.6625 13.9139 8 13.5019 8H11.2547H11.005ZM10.5056 9.25C10.5056 8.8375 10.8427 8.5 11.2547 8.5H13.5019H13.7516C14.1636 8.5 14.5006 8.8375 14.5006 9.25C14.5006 9.6625 14.1636 10 13.7516 10H11.2547C10.8427 10 10.5056 9.6625 10.5056 9.25ZM10.5056 11.25C10.5056 10.8375 10.8427 10.5 11.2547 10.5H13.7516C14.1636 10.5 14.5006 10.8375 14.5006 11.25C14.5006 11.6625 14.1636 12 13.7516 12H12.0037H11.2547C10.8427 12 10.5056 11.6625 10.5056 11.25Z", fill: "currentColor" }) }));
|
|
4
|
+
}
|
|
5
|
+
//# sourceMappingURL=ThumbsDown.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThumbsDown.js","sourceRoot":"","sources":["../../../src/icons/ThumbsDown.tsx"],"names":[],"mappings":";AAAA,MAAM,UAAU,cAAc,CAAC,EAC7B,SAAS,GAGV;IACC,OAAO,CACL,cACE,KAAK,EAAC,MAAM,EACZ,MAAM,EAAC,MAAM,EACb,OAAO,EAAC,WAAW,EACnB,MAAM,EAAC,cAAc,EACrB,SAAS,EAAE,SAAS,EACpB,KAAK,EAAC,4BAA4B,YAElC,eACE,CAAC,EAAC,+5DAA+5D,EACj6D,IAAI,EAAC,cAAc,GACnB,GACE,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThumbsDownFill.d.ts","sourceRoot":"","sources":["../../../src/icons/ThumbsDownFill.tsx"],"names":[],"mappings":";AAAA,wBAAgB,kBAAkB,CAAC,EACjC,SAAS,GACV,EAAE;IACD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,GAAG,CAAC,OAAO,CAoBd"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
export function ThumbsDownFillIcon({ className, }) {
|
|
3
|
+
return (_jsxs("svg", { width: "100%", height: "100%", viewBox: "0 0 20 20", fill: "none", className: className, xmlns: "http://www.w3.org/2000/svg", children: [_jsx("path", { d: "M7.93383 14.1875C7.83396 13.6625 7.57178 13.175 7.18477 12.7875L5.89888 11.4875H5L5.01248 5H5.68664C5.9613 4.4125 6.56055 4 7.25968 4L10.7553 4H12.0037H13.2522C13.9388 4 14.5006 4.5625 14.5006 5.25C14.5006 5.6125 14.3383 5.9375 14.1011 6.1625C14.4881 6.375 14.7503 6.7875 14.7503 7.25C14.7503 7.6125 14.588 7.9375 14.3508 8.1625C14.7378 8.375 15 8.7875 15 9.25C15 9.6625 14.8002 10.025 14.5006 10.25C14.8002 10.475 15 10.8375 15 11.25C15 11.9375 14.4382 12.5 13.7516 12.5H12.0037H11.2547H10.1061L10.4432 14.2C10.5306 14.65 10.4182 15.1 10.1311 15.45C9.84395 15.8 9.41948 16 8.97004 16H8.29588L7.93383 14.1875Z", fill: "white" }), _jsx("path", { d: "M10.7547 6.004C10.3427 6.004 10.0056 5.6665 10.0056 5.254C10.0056 4.8415 10.3427 4.504 10.7547 4.504L12.0031 4.504H13.2516C13.6635 4.504 14.0006 4.8415 14.0006 5.254C14.0006 5.6665 13.6635 6.004 13.2516 6.004H11.0044L10.7547 6.004ZM11.0044 8.004C10.5924 8.004 10.2553 7.6665 10.2553 7.254C10.2553 6.8415 10.5924 6.504 11.0044 6.504H13.2516H13.5012C13.9132 6.504 14.2503 6.8415 14.2503 7.254C14.2503 7.6665 13.9132 8.004 13.5012 8.004H11.2541H11.0044ZM10.505 9.254C10.505 8.8415 10.8421 8.504 11.2541 8.504H13.5012H13.7509C14.1629 8.504 14.5 8.8415 14.5 9.254C14.5 9.6665 14.1629 10.004 13.7509 10.004H11.2541C10.8421 10.004 10.505 9.6665 10.505 9.254ZM10.505 11.254C10.505 10.8415 10.8421 10.504 11.2541 10.504H13.7509C14.1629 10.504 14.5 10.8415 14.5 11.254C14.5 11.6665 14.1629 12.004 13.7509 12.004H12.0031H11.2541C10.8421 12.004 10.505 11.6665 10.505 11.254Z", fill: "currentColor" })] }));
|
|
4
|
+
}
|
|
5
|
+
//# sourceMappingURL=ThumbsDownFill.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThumbsDownFill.js","sourceRoot":"","sources":["../../../src/icons/ThumbsDownFill.tsx"],"names":[],"mappings":";AAAA,MAAM,UAAU,kBAAkB,CAAC,EACjC,SAAS,GAGV;IACC,OAAO,CACL,eACE,KAAK,EAAC,MAAM,EACZ,MAAM,EAAC,MAAM,EACb,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,SAAS,EAAE,SAAS,EACpB,KAAK,EAAC,4BAA4B,aAElC,eACE,CAAC,EAAC,mmBAAmmB,EACrmB,IAAI,EAAC,OAAO,GACZ,EACF,eACE,CAAC,EAAC,g2BAAg2B,EACl2B,IAAI,EAAC,cAAc,GACnB,IACE,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThumbsUp.d.ts","sourceRoot":"","sources":["../../../src/icons/ThumbsUp.tsx"],"names":[],"mappings":";AAAA,wBAAgB,YAAY,CAAC,EAC3B,SAAS,GACV,EAAE;IACD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,GAAG,CAAC,OAAO,CAgBd"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
export function ThumbsUpIcon({ className, }) {
|
|
3
|
+
return (_jsx("svg", { width: "100%", height: "100%", viewBox: "0 0 20 20", stroke: "currentColor", className: className, xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M12.8152 7.2125C12.4282 6.825 12.166 6.3375 12.0662 5.8125L11.7041 4H11.03C10.5805 4 10.1561 4.2 9.86891 4.55C9.58177 4.9 9.46941 5.35 9.5568 5.8L9.89388 7.5H8.74532H7.99625H6.24844C5.5618 7.5 5 8.0625 5 8.75C5 9.1625 5.19975 9.525 5.49938 9.75C5.19975 9.975 5 10.3375 5 10.75C5 11.2125 5.26217 11.625 5.64919 11.8375C5.41199 12.0625 5.24969 12.3875 5.24969 12.75C5.24969 13.2125 5.51186 13.625 5.89888 13.8375C5.66167 14.0625 5.49938 14.3875 5.49938 14.75C5.49938 15.4375 6.06117 16 6.74782 16H7.99625H9.24469H12.7403C13.4395 16 14.0387 15.5875 14.3134 15H14.9875V14.5H13.9888H13.9638C13.8514 15.075 13.3396 15.5 12.7403 15.5H10.2434C10.4057 15.2875 10.4931 15.025 10.4931 14.75C10.4931 14.2875 10.231 13.875 9.84395 13.6625C10.0811 13.4375 10.2434 13.1125 10.2434 12.75C10.2434 12.2875 9.98127 11.875 9.59426 11.6625C9.83146 11.4375 9.99376 11.1125 9.99376 10.75C9.99376 10.3375 9.79401 9.975 9.49438 9.75C9.79401 9.525 9.99376 9.1625 9.99376 8.75C9.99376 8.475 9.89388 8.2125 9.74407 8H10.5056L10.0437 5.7C9.98127 5.4 10.0562 5.1 10.2559 4.875C10.4432 4.6375 10.7303 4.5125 11.03 4.5125H11.3046L11.5918 5.925C11.7166 6.55 12.0287 7.125 12.4782 7.5875L13.9014 9.0125H15V8.5125H14.1011L12.8152 7.2125ZM9.24469 14C9.65668 14 9.99376 14.3375 9.99376 14.75C9.99376 15.1625 9.65668 15.5 9.24469 15.5H7.99625H6.74782C6.33583 15.5 5.99875 15.1625 5.99875 14.75C5.99875 14.3375 6.33583 14 6.74782 14H8.99501H9.24469ZM8.99501 12C9.40699 12 9.74407 12.3375 9.74407 12.75C9.74407 13.1625 9.40699 13.5 8.99501 13.5H6.74782H6.49813C6.08614 13.5 5.74906 13.1625 5.74906 12.75C5.74906 12.3375 6.08614 12 6.49813 12H8.74532H8.99501ZM9.49438 10.75C9.49438 11.1625 9.1573 11.5 8.74532 11.5H6.49813H6.24844C5.83645 11.5 5.49938 11.1625 5.49938 10.75C5.49938 10.3375 5.83645 10 6.24844 10H8.74532C9.1573 10 9.49438 10.3375 9.49438 10.75ZM9.49438 8.75C9.49438 9.1625 9.1573 9.5 8.74532 9.5H6.24844C5.83645 9.5 5.49938 9.1625 5.49938 8.75C5.49938 8.3375 5.83645 8 6.24844 8H7.99625H8.74532C9.1573 8 9.49438 8.3375 9.49438 8.75Z", fill: "currentColor" }) }));
|
|
4
|
+
}
|
|
5
|
+
//# sourceMappingURL=ThumbsUp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThumbsUp.js","sourceRoot":"","sources":["../../../src/icons/ThumbsUp.tsx"],"names":[],"mappings":";AAAA,MAAM,UAAU,YAAY,CAAC,EAC3B,SAAS,GAGV;IACC,OAAO,CACL,cACE,KAAK,EAAC,MAAM,EACZ,MAAM,EAAC,MAAM,EACb,OAAO,EAAC,WAAW,EACnB,MAAM,EAAC,cAAc,EACrB,SAAS,EAAE,SAAS,EACpB,KAAK,EAAC,4BAA4B,YAElC,eACE,CAAC,EAAC,y9DAAy9D,EAC39D,IAAI,EAAC,cAAc,GACnB,GACE,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThumbsUpFill.d.ts","sourceRoot":"","sources":["../../../src/icons/ThumbsUpFill.tsx"],"names":[],"mappings":";AAAA,wBAAgB,gBAAgB,CAAC,EAC/B,SAAS,GACV,EAAE;IACD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,GAAG,CAAC,OAAO,CAoBd"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
export function ThumbsUpFillIcon({ className, }) {
|
|
3
|
+
return (_jsxs("svg", { width: "100%", height: "100%", viewBox: "0 0 20 20", fill: "none", className: className, xmlns: "http://www.w3.org/2000/svg", children: [_jsx("path", { d: "M12.0662 5.8125C12.166 6.3375 12.4282 6.825 12.8152 7.2125L14.1011 8.5125H15L14.9875 15H14.3134C14.0387 15.5875 13.4395 16 12.7403 16H9.24469H7.99625H6.74782C6.06117 16 5.49938 15.4375 5.49938 14.75C5.49938 14.3875 5.66167 14.0625 5.89888 13.8375C5.51186 13.625 5.24969 13.2125 5.24969 12.75C5.24969 12.3875 5.41199 12.0625 5.64919 11.8375C5.26217 11.625 5 11.2125 5 10.75C5 10.3375 5.19975 9.975 5.49938 9.75C5.19975 9.525 5 9.1625 5 8.75C5 8.0625 5.5618 7.5 6.24844 7.5H7.99625H8.74532H9.89388L9.5568 5.8C9.46941 5.35 9.58177 4.9 9.86891 4.55C10.1561 4.2 10.5805 4 11.03 4H11.7041L12.0662 5.8125Z", fill: "white" }), _jsx("path", { d: "M9.24532 13.996C9.6573 13.996 9.99438 14.3335 9.99438 14.746C9.99438 15.1585 9.6573 15.496 9.24532 15.496H7.99688H6.74844C6.33645 15.496 5.99938 15.1585 5.99938 14.746C5.99938 14.3335 6.33645 13.996 6.74844 13.996H8.99563H9.24532ZM8.99563 11.996C9.40762 11.996 9.74469 12.3335 9.74469 12.746C9.74469 13.1585 9.40762 13.496 8.99563 13.496H6.74844H6.49875C6.08677 13.496 5.74969 13.1585 5.74969 12.746C5.74969 12.3335 6.08677 11.996 6.49875 11.996H8.74594H8.99563ZM9.49501 10.746C9.49501 11.1585 9.15793 11.496 8.74594 11.496H6.49875H6.24906C5.83708 11.496 5.5 11.1585 5.5 10.746C5.5 10.3335 5.83708 9.996 6.24906 9.996H8.74594C9.15793 9.996 9.49501 10.3335 9.49501 10.746ZM9.49501 8.746C9.49501 9.1585 9.15793 9.496 8.74594 9.496H6.24906C5.83708 9.496 5.5 9.1585 5.5 8.746C5.5 8.3335 5.83708 7.996 6.24906 7.996H7.99688H8.74594C9.15793 7.996 9.49501 8.3335 9.49501 8.746Z", fill: "currentColor" })] }));
|
|
4
|
+
}
|
|
5
|
+
//# sourceMappingURL=ThumbsUpFill.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThumbsUpFill.js","sourceRoot":"","sources":["../../../src/icons/ThumbsUpFill.tsx"],"names":[],"mappings":";AAAA,MAAM,UAAU,gBAAgB,CAAC,EAC/B,SAAS,GAGV;IACC,OAAO,CACL,eACE,KAAK,EAAC,MAAM,EACZ,MAAM,EAAC,MAAM,EACb,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,SAAS,EAAE,SAAS,EACpB,KAAK,EAAC,4BAA4B,aAElC,eACE,CAAC,EAAC,wlBAAwlB,EAC1lB,IAAI,EAAC,OAAO,GACZ,EACF,eACE,CAAC,EAAC,w2BAAw2B,EAC12B,IAAI,EAAC,cAAc,GACnB,IACE,CACP,CAAC;AACJ,CAAC"}
|
package/lib/esm/index.d.ts
CHANGED
|
@@ -94,7 +94,8 @@ export declare interface ChatInputProps {
|
|
|
94
94
|
placeholder?: string;
|
|
95
95
|
/**
|
|
96
96
|
* Enable streaming behavior by making a request to Chat Streaming API.
|
|
97
|
-
*
|
|
97
|
+
* This feature is experimental, and is subject to change.
|
|
98
|
+
* Defaults to false.
|
|
98
99
|
*/
|
|
99
100
|
stream?: boolean;
|
|
100
101
|
/** Enable auto focus for the input box. Defaults to false. */
|
package/package.json
CHANGED
|
@@ -41,7 +41,8 @@ export interface ChatInputProps {
|
|
|
41
41
|
placeholder?: string;
|
|
42
42
|
/**
|
|
43
43
|
* Enable streaming behavior by making a request to Chat Streaming API.
|
|
44
|
-
*
|
|
44
|
+
* This feature is experimental, and is subject to change.
|
|
45
|
+
* Defaults to false.
|
|
45
46
|
*/
|
|
46
47
|
stream?: boolean;
|
|
47
48
|
/** Enable auto focus for the input box. Defaults to false. */
|
|
@@ -70,7 +71,7 @@ export interface ChatInputProps {
|
|
|
70
71
|
*/
|
|
71
72
|
export function ChatInput({
|
|
72
73
|
placeholder = "Type a message...",
|
|
73
|
-
stream =
|
|
74
|
+
stream = false,
|
|
74
75
|
inputAutoFocus = false,
|
|
75
76
|
handleError,
|
|
76
77
|
sendButtonIcon = <ArrowIcon />,
|
|
@@ -124,7 +125,7 @@ export function ChatInput({
|
|
|
124
125
|
/>
|
|
125
126
|
<button
|
|
126
127
|
aria-label="Send Message"
|
|
127
|
-
disabled={!canSendMessage}
|
|
128
|
+
disabled={!canSendMessage || input.length === 0}
|
|
128
129
|
onClick={sendMessage}
|
|
129
130
|
className={cssClasses.sendButton}
|
|
130
131
|
>
|
|
@@ -31,6 +31,9 @@ const builtInCssClasses: ChatPanelCssClasses = withStylelessCssClasses(
|
|
|
31
31
|
messagesContainer:
|
|
32
32
|
"flex flex-col gap-y-1 mt-auto px-4 pb-[85px] overflow-auto",
|
|
33
33
|
inputContainer: "w-full absolute bottom-0 p-4 backdrop-blur-lg",
|
|
34
|
+
messageBubbleCssClasses: {
|
|
35
|
+
topContainer: "first:mt-4",
|
|
36
|
+
},
|
|
34
37
|
}
|
|
35
38
|
);
|
|
36
39
|
|
|
@@ -75,7 +78,7 @@ export function ChatPanel(props: ChatPanelProps) {
|
|
|
75
78
|
if (messages.length !== 0 || !canSendMessage) {
|
|
76
79
|
return;
|
|
77
80
|
}
|
|
78
|
-
const { stream =
|
|
81
|
+
const { stream = false, handleError } = props;
|
|
79
82
|
const res = stream ? chat.streamNextMessage() : chat.getNextMessage();
|
|
80
83
|
res.catch((e) => (handleError ? handleError(e) : defaultHandleApiError(e)));
|
|
81
84
|
}, [chat, props, messages, defaultHandleApiError, canSendMessage]);
|
|
@@ -49,7 +49,7 @@ const builtInCssClasses: ChatPopUpCssClasses = withStylelessCssClasses(
|
|
|
49
49
|
container: "max-[480px]:rounded-none rounded-t-3xl",
|
|
50
50
|
},
|
|
51
51
|
panelCssClasses: {
|
|
52
|
-
container: "max-[480px]:rounded-none rounded-
|
|
52
|
+
container: "max-[480px]:rounded-none rounded-3xl",
|
|
53
53
|
inputContainer: "max-[480px]:rounded-none rounded-b-3xl",
|
|
54
54
|
},
|
|
55
55
|
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { ThumbsDownIcon } from "../icons/ThumbsDown";
|
|
2
|
+
import { ThumbsUpIcon } from "../icons/ThumbsUp";
|
|
3
|
+
import { useCallback, useState } from "react";
|
|
4
|
+
import { ThumbsUpFillIcon } from "../icons/ThumbsUpFill";
|
|
5
|
+
import { ThumbsDownFillIcon } from "../icons/ThumbsDownFill";
|
|
6
|
+
import { withStylelessCssClasses } from "../utils/withStylelessCssClasses";
|
|
7
|
+
import { useComposedCssClasses } from "../hooks";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* The CSS class interface for the {@link FeedbackButtons} component.
|
|
11
|
+
*
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
14
|
+
export interface FeedbackButtonsCssClasses {
|
|
15
|
+
container?: string;
|
|
16
|
+
thumbsUpButton?: string;
|
|
17
|
+
thumbsUpIcon?: string;
|
|
18
|
+
thumbsUpFillIcon?: string;
|
|
19
|
+
thumbsDownButton?: string;
|
|
20
|
+
thumbsDownIcon?: string;
|
|
21
|
+
thumbsDownFillIcon?: string;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
const builtInCssClasses: FeedbackButtonsCssClasses =
|
|
25
|
+
withStylelessCssClasses<FeedbackButtonsCssClasses>("FeedbackButtons", {
|
|
26
|
+
container:
|
|
27
|
+
"flex gap-x-1 absolute -right-1 -top-3 opacity-0 group-hover:opacity-100 duration-200",
|
|
28
|
+
thumbsUpButton: "w-6 h-6 bg-gray-700 rounded-md flex justify-center items-center",
|
|
29
|
+
thumbsUpIcon: "text-white w-[22px] h-[22px] stroke-[0.2]",
|
|
30
|
+
thumbsUpFillIcon: "text-gray-700 w-[22px] h-[22px] stroke-[0.2]",
|
|
31
|
+
thumbsDownButton: "w-6 h-6 bg-gray-700 rounded-md flex justify-center items-center",
|
|
32
|
+
thumbsDownIcon: "text-white w-[22px] h-[22px] stroke-[0.2]",
|
|
33
|
+
thumbsDownFillIcon: "text-gray-700 w-[22px] h-[22px] stroke-[0.2]",
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* The props for the {@link FeedbackButtons} component.
|
|
38
|
+
*
|
|
39
|
+
* @internal
|
|
40
|
+
*/
|
|
41
|
+
interface FeedbackButtonsProps {
|
|
42
|
+
/** CSS classes for customizing the component styling. */
|
|
43
|
+
customCssClasses?: FeedbackButtonsCssClasses;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Displays feedback buttons (e.g. thumbs up and thumbs down) that will
|
|
48
|
+
* report analytic events on click.
|
|
49
|
+
*
|
|
50
|
+
* @internal
|
|
51
|
+
*/
|
|
52
|
+
export function FeedbackButtons({ customCssClasses }: FeedbackButtonsProps) {
|
|
53
|
+
const cssClasses = useComposedCssClasses(builtInCssClasses, customCssClasses);
|
|
54
|
+
const [selectedThumb, setSelectedThumb] = useState<
|
|
55
|
+
"UP" | "DOWN" | undefined
|
|
56
|
+
>();
|
|
57
|
+
const onClickThumbsUp = useCallback(() => {
|
|
58
|
+
setSelectedThumb("UP");
|
|
59
|
+
console.log("thumbs up");
|
|
60
|
+
}, []);
|
|
61
|
+
|
|
62
|
+
const onClickThumbsDown = useCallback(() => {
|
|
63
|
+
setSelectedThumb("DOWN");
|
|
64
|
+
console.log("thumbs down");
|
|
65
|
+
}, []);
|
|
66
|
+
|
|
67
|
+
return (
|
|
68
|
+
<div className={cssClasses.container}>
|
|
69
|
+
<button className={cssClasses.thumbsUpButton} onClick={onClickThumbsUp}>
|
|
70
|
+
{selectedThumb === "UP" ? (
|
|
71
|
+
<ThumbsUpFillIcon className={cssClasses.thumbsUpFillIcon} />
|
|
72
|
+
) : (
|
|
73
|
+
<ThumbsUpIcon className={cssClasses.thumbsUpIcon} />
|
|
74
|
+
)}
|
|
75
|
+
</button>
|
|
76
|
+
<button
|
|
77
|
+
className={cssClasses.thumbsDownButton}
|
|
78
|
+
onClick={onClickThumbsDown}
|
|
79
|
+
>
|
|
80
|
+
{selectedThumb === "DOWN" ? (
|
|
81
|
+
<ThumbsDownFillIcon className={cssClasses.thumbsDownFillIcon} />
|
|
82
|
+
) : (
|
|
83
|
+
<ThumbsDownIcon className={cssClasses.thumbsDownIcon} />
|
|
84
|
+
)}
|
|
85
|
+
</button>
|
|
86
|
+
</div>
|
|
87
|
+
);
|
|
88
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export function ThumbsDownIcon({
|
|
2
|
+
className,
|
|
3
|
+
}: {
|
|
4
|
+
className?: string;
|
|
5
|
+
}): JSX.Element {
|
|
6
|
+
return (
|
|
7
|
+
<svg
|
|
8
|
+
width="100%"
|
|
9
|
+
height="100%"
|
|
10
|
+
viewBox="0 0 20 20"
|
|
11
|
+
stroke="currentColor"
|
|
12
|
+
className={className}
|
|
13
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
14
|
+
>
|
|
15
|
+
<path
|
|
16
|
+
d="M7.1848 12.7875C7.5718 13.175 7.834 13.6625 7.9338 14.1875L8.2959 16H8.97C9.4195 16 9.8439 15.8 10.1311 15.45C10.4182 15.1 10.5306 14.65 10.4432 14.2L10.1061 12.5H11.2547H12.0037H13.7516C14.4382 12.5 15 11.9375 15 11.25C15 10.8375 14.8002 10.475 14.5006 10.25C14.8002 10.025 15 9.6625 15 9.25C15 8.7875 14.7378 8.375 14.3508 8.1625C14.588 7.9375 14.7503 7.6125 14.7503 7.25C14.7503 6.7875 14.4881 6.375 14.1011 6.1625C14.3383 5.9375 14.5006 5.6125 14.5006 5.25C14.5006 4.5625 13.9388 4 13.2522 4H12.0037H10.7553L7.2597 4C6.5605 4 5.9613 4.4125 5.6866 5H5.0125V5.5H6.0112H6.0362C6.1486 4.925 6.6604 4.5 7.2597 4.5L9.7566 4.5C9.5943 4.7125 9.5069 4.975 9.5069 5.25C9.5069 5.7125 9.769 6.125 10.156 6.3375C9.9189 6.5625 9.7566 6.8875 9.7566 7.25C9.7566 7.7125 10.0187 8.125 10.4057 8.3375C10.1685 8.5625 10.0062 8.8875 10.0062 9.25C10.0062 9.6625 10.206 10.025 10.5056 10.25C10.206 10.475 10.0062 10.8375 10.0062 11.25C10.0062 11.525 10.1061 11.7875 10.2559 12H9.4944L9.9563 14.3C10.0187 14.6 9.9438 14.9 9.7441 15.125C9.5568 15.3625 9.2697 15.4875 8.97 15.4875H8.6954L8.4082 14.075C8.2834 13.45 7.9713 12.875 7.5218 12.4125L6.0986 10.9875H5V11.4875H5.8989L7.1848 12.7875ZM10.7553 6C10.3433 6 10.0062 5.6625 10.0062 5.25C10.0062 4.8375 10.3433 4.5 10.7553 4.5H12.0037H13.2522C13.6642 4.5 14.0012 4.8375 14.0012 5.25C14.0012 5.6625 13.6642 6 13.2522 6H11.005H10.7553ZM11.005 8C10.593 8 10.2559 7.6625 10.2559 7.25C10.2559 6.8375 10.593 6.5 11.005 6.5H13.2522H13.5019C13.9139 6.5 14.2509 6.8375 14.2509 7.25C14.2509 7.6625 13.9139 8 13.5019 8H11.2547H11.005ZM10.5056 9.25C10.5056 8.8375 10.8427 8.5 11.2547 8.5H13.5019H13.7516C14.1636 8.5 14.5006 8.8375 14.5006 9.25C14.5006 9.6625 14.1636 10 13.7516 10H11.2547C10.8427 10 10.5056 9.6625 10.5056 9.25ZM10.5056 11.25C10.5056 10.8375 10.8427 10.5 11.2547 10.5H13.7516C14.1636 10.5 14.5006 10.8375 14.5006 11.25C14.5006 11.6625 14.1636 12 13.7516 12H12.0037H11.2547C10.8427 12 10.5056 11.6625 10.5056 11.25Z"
|
|
17
|
+
fill="currentColor"
|
|
18
|
+
/>
|
|
19
|
+
</svg>
|
|
20
|
+
);
|
|
21
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export function ThumbsDownFillIcon({
|
|
2
|
+
className,
|
|
3
|
+
}: {
|
|
4
|
+
className?: string;
|
|
5
|
+
}): JSX.Element {
|
|
6
|
+
return (
|
|
7
|
+
<svg
|
|
8
|
+
width="100%"
|
|
9
|
+
height="100%"
|
|
10
|
+
viewBox="0 0 20 20"
|
|
11
|
+
fill="none"
|
|
12
|
+
className={className}
|
|
13
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
14
|
+
>
|
|
15
|
+
<path
|
|
16
|
+
d="M7.93383 14.1875C7.83396 13.6625 7.57178 13.175 7.18477 12.7875L5.89888 11.4875H5L5.01248 5H5.68664C5.9613 4.4125 6.56055 4 7.25968 4L10.7553 4H12.0037H13.2522C13.9388 4 14.5006 4.5625 14.5006 5.25C14.5006 5.6125 14.3383 5.9375 14.1011 6.1625C14.4881 6.375 14.7503 6.7875 14.7503 7.25C14.7503 7.6125 14.588 7.9375 14.3508 8.1625C14.7378 8.375 15 8.7875 15 9.25C15 9.6625 14.8002 10.025 14.5006 10.25C14.8002 10.475 15 10.8375 15 11.25C15 11.9375 14.4382 12.5 13.7516 12.5H12.0037H11.2547H10.1061L10.4432 14.2C10.5306 14.65 10.4182 15.1 10.1311 15.45C9.84395 15.8 9.41948 16 8.97004 16H8.29588L7.93383 14.1875Z"
|
|
17
|
+
fill="white"
|
|
18
|
+
/>
|
|
19
|
+
<path
|
|
20
|
+
d="M10.7547 6.004C10.3427 6.004 10.0056 5.6665 10.0056 5.254C10.0056 4.8415 10.3427 4.504 10.7547 4.504L12.0031 4.504H13.2516C13.6635 4.504 14.0006 4.8415 14.0006 5.254C14.0006 5.6665 13.6635 6.004 13.2516 6.004H11.0044L10.7547 6.004ZM11.0044 8.004C10.5924 8.004 10.2553 7.6665 10.2553 7.254C10.2553 6.8415 10.5924 6.504 11.0044 6.504H13.2516H13.5012C13.9132 6.504 14.2503 6.8415 14.2503 7.254C14.2503 7.6665 13.9132 8.004 13.5012 8.004H11.2541H11.0044ZM10.505 9.254C10.505 8.8415 10.8421 8.504 11.2541 8.504H13.5012H13.7509C14.1629 8.504 14.5 8.8415 14.5 9.254C14.5 9.6665 14.1629 10.004 13.7509 10.004H11.2541C10.8421 10.004 10.505 9.6665 10.505 9.254ZM10.505 11.254C10.505 10.8415 10.8421 10.504 11.2541 10.504H13.7509C14.1629 10.504 14.5 10.8415 14.5 11.254C14.5 11.6665 14.1629 12.004 13.7509 12.004H12.0031H11.2541C10.8421 12.004 10.505 11.6665 10.505 11.254Z"
|
|
21
|
+
fill="currentColor"
|
|
22
|
+
/>
|
|
23
|
+
</svg>
|
|
24
|
+
);
|
|
25
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export function ThumbsUpIcon({
|
|
2
|
+
className,
|
|
3
|
+
}: {
|
|
4
|
+
className?: string;
|
|
5
|
+
}): JSX.Element {
|
|
6
|
+
return (
|
|
7
|
+
<svg
|
|
8
|
+
width="100%"
|
|
9
|
+
height="100%"
|
|
10
|
+
viewBox="0 0 20 20"
|
|
11
|
+
stroke="currentColor"
|
|
12
|
+
className={className}
|
|
13
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
14
|
+
>
|
|
15
|
+
<path
|
|
16
|
+
d="M12.8152 7.2125C12.4282 6.825 12.166 6.3375 12.0662 5.8125L11.7041 4H11.03C10.5805 4 10.1561 4.2 9.86891 4.55C9.58177 4.9 9.46941 5.35 9.5568 5.8L9.89388 7.5H8.74532H7.99625H6.24844C5.5618 7.5 5 8.0625 5 8.75C5 9.1625 5.19975 9.525 5.49938 9.75C5.19975 9.975 5 10.3375 5 10.75C5 11.2125 5.26217 11.625 5.64919 11.8375C5.41199 12.0625 5.24969 12.3875 5.24969 12.75C5.24969 13.2125 5.51186 13.625 5.89888 13.8375C5.66167 14.0625 5.49938 14.3875 5.49938 14.75C5.49938 15.4375 6.06117 16 6.74782 16H7.99625H9.24469H12.7403C13.4395 16 14.0387 15.5875 14.3134 15H14.9875V14.5H13.9888H13.9638C13.8514 15.075 13.3396 15.5 12.7403 15.5H10.2434C10.4057 15.2875 10.4931 15.025 10.4931 14.75C10.4931 14.2875 10.231 13.875 9.84395 13.6625C10.0811 13.4375 10.2434 13.1125 10.2434 12.75C10.2434 12.2875 9.98127 11.875 9.59426 11.6625C9.83146 11.4375 9.99376 11.1125 9.99376 10.75C9.99376 10.3375 9.79401 9.975 9.49438 9.75C9.79401 9.525 9.99376 9.1625 9.99376 8.75C9.99376 8.475 9.89388 8.2125 9.74407 8H10.5056L10.0437 5.7C9.98127 5.4 10.0562 5.1 10.2559 4.875C10.4432 4.6375 10.7303 4.5125 11.03 4.5125H11.3046L11.5918 5.925C11.7166 6.55 12.0287 7.125 12.4782 7.5875L13.9014 9.0125H15V8.5125H14.1011L12.8152 7.2125ZM9.24469 14C9.65668 14 9.99376 14.3375 9.99376 14.75C9.99376 15.1625 9.65668 15.5 9.24469 15.5H7.99625H6.74782C6.33583 15.5 5.99875 15.1625 5.99875 14.75C5.99875 14.3375 6.33583 14 6.74782 14H8.99501H9.24469ZM8.99501 12C9.40699 12 9.74407 12.3375 9.74407 12.75C9.74407 13.1625 9.40699 13.5 8.99501 13.5H6.74782H6.49813C6.08614 13.5 5.74906 13.1625 5.74906 12.75C5.74906 12.3375 6.08614 12 6.49813 12H8.74532H8.99501ZM9.49438 10.75C9.49438 11.1625 9.1573 11.5 8.74532 11.5H6.49813H6.24844C5.83645 11.5 5.49938 11.1625 5.49938 10.75C5.49938 10.3375 5.83645 10 6.24844 10H8.74532C9.1573 10 9.49438 10.3375 9.49438 10.75ZM9.49438 8.75C9.49438 9.1625 9.1573 9.5 8.74532 9.5H6.24844C5.83645 9.5 5.49938 9.1625 5.49938 8.75C5.49938 8.3375 5.83645 8 6.24844 8H7.99625H8.74532C9.1573 8 9.49438 8.3375 9.49438 8.75Z"
|
|
17
|
+
fill="currentColor"
|
|
18
|
+
/>
|
|
19
|
+
</svg>
|
|
20
|
+
);
|
|
21
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export function ThumbsUpFillIcon({
|
|
2
|
+
className,
|
|
3
|
+
}: {
|
|
4
|
+
className?: string;
|
|
5
|
+
}): JSX.Element {
|
|
6
|
+
return (
|
|
7
|
+
<svg
|
|
8
|
+
width="100%"
|
|
9
|
+
height="100%"
|
|
10
|
+
viewBox="0 0 20 20"
|
|
11
|
+
fill="none"
|
|
12
|
+
className={className}
|
|
13
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
14
|
+
>
|
|
15
|
+
<path
|
|
16
|
+
d="M12.0662 5.8125C12.166 6.3375 12.4282 6.825 12.8152 7.2125L14.1011 8.5125H15L14.9875 15H14.3134C14.0387 15.5875 13.4395 16 12.7403 16H9.24469H7.99625H6.74782C6.06117 16 5.49938 15.4375 5.49938 14.75C5.49938 14.3875 5.66167 14.0625 5.89888 13.8375C5.51186 13.625 5.24969 13.2125 5.24969 12.75C5.24969 12.3875 5.41199 12.0625 5.64919 11.8375C5.26217 11.625 5 11.2125 5 10.75C5 10.3375 5.19975 9.975 5.49938 9.75C5.19975 9.525 5 9.1625 5 8.75C5 8.0625 5.5618 7.5 6.24844 7.5H7.99625H8.74532H9.89388L9.5568 5.8C9.46941 5.35 9.58177 4.9 9.86891 4.55C10.1561 4.2 10.5805 4 11.03 4H11.7041L12.0662 5.8125Z"
|
|
17
|
+
fill="white"
|
|
18
|
+
/>
|
|
19
|
+
<path
|
|
20
|
+
d="M9.24532 13.996C9.6573 13.996 9.99438 14.3335 9.99438 14.746C9.99438 15.1585 9.6573 15.496 9.24532 15.496H7.99688H6.74844C6.33645 15.496 5.99938 15.1585 5.99938 14.746C5.99938 14.3335 6.33645 13.996 6.74844 13.996H8.99563H9.24532ZM8.99563 11.996C9.40762 11.996 9.74469 12.3335 9.74469 12.746C9.74469 13.1585 9.40762 13.496 8.99563 13.496H6.74844H6.49875C6.08677 13.496 5.74969 13.1585 5.74969 12.746C5.74969 12.3335 6.08677 11.996 6.49875 11.996H8.74594H8.99563ZM9.49501 10.746C9.49501 11.1585 9.15793 11.496 8.74594 11.496H6.49875H6.24906C5.83708 11.496 5.5 11.1585 5.5 10.746C5.5 10.3335 5.83708 9.996 6.24906 9.996H8.74594C9.15793 9.996 9.49501 10.3335 9.49501 10.746ZM9.49501 8.746C9.49501 9.1585 9.15793 9.496 8.74594 9.496H6.24906C5.83708 9.496 5.5 9.1585 5.5 8.746C5.5 8.3335 5.83708 7.996 6.24906 7.996H7.99688H8.74594C9.15793 7.996 9.49501 8.3335 9.49501 8.746Z"
|
|
21
|
+
fill="currentColor"
|
|
22
|
+
/>
|
|
23
|
+
</svg>
|
|
24
|
+
);
|
|
25
|
+
}
|