@bikdotai/bik-component-library 0.0.721 → 0.0.722
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.
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../node_modules/react/jsx-runtime.js"),t=require("react"),s=require("styled-components"),a=require("../../../assets/icons/Idea.svg.js"),i=require("../../../assets/icons/AiEdit.svg.js"),r=require("../../../assets/icons/HelpIcon.svg.js")
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
padding: 16px 18px 20px;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../node_modules/react/jsx-runtime.js"),t=require("react"),s=require("styled-components"),a=require("../../../assets/icons/Idea.svg.js"),i=require("../../../assets/icons/AiEdit.svg.js"),r=require("../../../assets/icons/HelpIcon.svg.js");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}const o=n(s).default.div`
|
|
2
|
+
background: linear-gradient(92.69deg, rgba(255, 230, 238, 0.5) 0.37%, rgba(255, 240, 231, 0.5) 100%);
|
|
3
|
+
padding: 24px;
|
|
5
4
|
border-radius: 16px;
|
|
6
5
|
border-bottom-left-radius: 6px;
|
|
7
6
|
width: clamp(260px, 70vw, 340px);
|
|
8
|
-
min-height:
|
|
7
|
+
min-height: 108px;
|
|
9
8
|
margin-right: auto;
|
|
10
9
|
font-size: 14px;
|
|
11
10
|
color: #1f2937;
|
|
@@ -62,9 +61,9 @@
|
|
|
62
61
|
}
|
|
63
62
|
|
|
64
63
|
.shimmer-line {
|
|
65
|
-
|
|
66
|
-
border-radius:
|
|
67
|
-
background:
|
|
64
|
+
height: 10px;
|
|
65
|
+
border-radius: 20px;
|
|
66
|
+
background: linear-gradient(92.69deg, #FEBAD2 0.37%, #FDD1B9 100%);
|
|
68
67
|
position: relative;
|
|
69
68
|
overflow: hidden;
|
|
70
69
|
animation: shimmerAppear 0.4s ease forwards;
|
|
@@ -145,4 +144,4 @@
|
|
|
145
144
|
transform: translateY(0);
|
|
146
145
|
}
|
|
147
146
|
}
|
|
148
|
-
`,
|
|
147
|
+
`,l=[{icon:a.default,text:"Analyzing your questions..."},{icon:i.default,text:"Gathering insights..."},{icon:r.default,text:"Crafting the perfect response..."}];exports.default=()=>{const[s,a]=t.useState(0);t.useEffect((()=>{const e=window.setInterval((()=>{a((e=>(e+1)%l.length))}),1800);return()=>window.clearInterval(e)}),[]);const i=l[s];return e.jsxRuntimeExports.jsxs(o,Object.assign({role:"status","aria-live":"polite"},{children:[e.jsxRuntimeExports.jsx(i.icon,{height:24,width:24}),e.jsxRuntimeExports.jsxs("div",Object.assign({className:"bubble-content"},{children:[e.jsxRuntimeExports.jsx("div",Object.assign({className:"status-text"},{children:i.text})),e.jsxRuntimeExports.jsx("div",Object.assign({className:"dots"},{children:[0,1,2,3,4].map((t=>e.jsxRuntimeExports.jsx("span",{className:"dot",style:{animationDelay:.15*t+"s"}},t)))})),e.jsxRuntimeExports.jsx("div",Object.assign({className:"shimmer-group"},{children:[70,85,50].map(((t,s)=>e.jsxRuntimeExports.jsx("div",Object.assign({className:"shimmer-line",style:{width:`${t}%`,animationDelay:.25+.12*s+"s"}},{children:e.jsxRuntimeExports.jsx("span",{className:"shimmer-highlight"})}),t)))}))]}))]}))};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import{j as e}from"../../../node_modules/react/jsx-runtime.js";import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
padding: 16px 18px 20px;
|
|
1
|
+
import{j as e}from"../../../node_modules/react/jsx-runtime.js";import{useState as t,useEffect as s}from"react";import a from"styled-components";import i from"../../../assets/icons/Idea.svg.js";import r from"../../../assets/icons/AiEdit.svg.js";import n from"../../../assets/icons/HelpIcon.svg.js";const o=a.div`
|
|
2
|
+
background: linear-gradient(92.69deg, rgba(255, 230, 238, 0.5) 0.37%, rgba(255, 240, 231, 0.5) 100%);
|
|
3
|
+
padding: 24px;
|
|
5
4
|
border-radius: 16px;
|
|
6
5
|
border-bottom-left-radius: 6px;
|
|
7
6
|
width: clamp(260px, 70vw, 340px);
|
|
8
|
-
min-height:
|
|
7
|
+
min-height: 108px;
|
|
9
8
|
margin-right: auto;
|
|
10
9
|
font-size: 14px;
|
|
11
10
|
color: #1f2937;
|
|
@@ -62,9 +61,9 @@ import{j as e}from"../../../node_modules/react/jsx-runtime.js";import t,{useStat
|
|
|
62
61
|
}
|
|
63
62
|
|
|
64
63
|
.shimmer-line {
|
|
65
|
-
|
|
66
|
-
border-radius:
|
|
67
|
-
background:
|
|
64
|
+
height: 10px;
|
|
65
|
+
border-radius: 20px;
|
|
66
|
+
background: linear-gradient(92.69deg, #FEBAD2 0.37%, #FDD1B9 100%);
|
|
68
67
|
position: relative;
|
|
69
68
|
overflow: hidden;
|
|
70
69
|
animation: shimmerAppear 0.4s ease forwards;
|
|
@@ -145,4 +144,4 @@ import{j as e}from"../../../node_modules/react/jsx-runtime.js";import t,{useStat
|
|
|
145
144
|
transform: translateY(0);
|
|
146
145
|
}
|
|
147
146
|
}
|
|
148
|
-
`,
|
|
147
|
+
`,l=[{icon:i,text:"Analyzing your questions..."},{icon:r,text:"Gathering insights..."},{icon:n,text:"Crafting the perfect response..."}],m=()=>{const[a,i]=t(0);s((()=>{const e=window.setInterval((()=>{i((e=>(e+1)%l.length))}),1800);return()=>window.clearInterval(e)}),[]);const r=l[a];return e.jsxs(o,Object.assign({role:"status","aria-live":"polite"},{children:[e.jsx(r.icon,{height:24,width:24}),e.jsxs("div",Object.assign({className:"bubble-content"},{children:[e.jsx("div",Object.assign({className:"status-text"},{children:r.text})),e.jsx("div",Object.assign({className:"dots"},{children:[0,1,2,3,4].map((t=>e.jsx("span",{className:"dot",style:{animationDelay:.15*t+"s"}},t)))})),e.jsx("div",Object.assign({className:"shimmer-group"},{children:[70,85,50].map(((t,s)=>e.jsx("div",Object.assign({className:"shimmer-line",style:{width:`${t}%`,animationDelay:.25+.12*s+"s"}},{children:e.jsx("span",{className:"shimmer-highlight"})}),t)))}))]}))]}))};export{m as default};
|