@hari_digitus/sms-ui-library 4.0.15 → 4.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/notifications.cjs.js +1 -1
- package/dist/notifications.es.js +45 -42
- package/package.json +1 -1
|
@@ -82,4 +82,4 @@ React keys must be passed directly to JSX without using spread:
|
|
|
82
82
|
transform: scaleY(1);
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
-
`})]})}const Mt=({value:r,showLabel:n=!1,label:a,showPercentage:o=!0,height:c="h-2",containerClassName:m,progressClassName:d,wrapperClassName:h,labelClassName:u,percentageClassName:E,backgroundColor:w="bg-gray-200",progressColor:C="bg-[#02245A]",animated:F=!0,striped:L=!1,orientation:S="horizontal",dataTestId:z})=>{const $=Math.min(Math.max(r,0),100),j=S==="vertical";return y.jsxs("div",{className:xe("flex items-center gap-2",j&&"flex-col items-start",h),"data-testid":z,children:[n&&a&&y.jsx("span",{className:xe("text-sm font-medium text-[#414651] whitespace-nowrap",u),children:a}),y.jsx("div",{className:xe("w-full rounded-full overflow-hidden relative",j?"w-2 h-32":c,w,m),children:y.jsx("div",{className:xe("h-full rounded-full",C,F&&"transition-all duration-300",L&&"bg-[linear-gradient(45deg,rgba(255,255,255,.15)_25%,transparent_25%,transparent_50%,rgba(255,255,255,.15)_50%,rgba(255,255,255,.15)_75%,transparent_75%,transparent)] bg-[length:1rem_1rem]",d),style:{width:j?"100%":`${$}%`,height:j?`${$}%`:"100%"},role:"progressbar","aria-valuenow":$,"aria-valuemin":0,"aria-valuemax":100})}),o&&y.jsxs("span",{className:xe("text-xs text-gray-600 whitespace-nowrap",E),children:[$,"%"]})]})},ve=7,oe=6,It=({text:r,maxLength:n=40,maxWidth:a=280,position:o="top",bgColor:c="#1a1a1a",textColor:m="#fff",borderColor:d="#1a1a1a",className:h,style:u})=>{const[E,w]=ne.useState(!1),[C,F]=ne.useState({box:{x:0,y:0},arrow:{x:0,y:0},rotate:0}),L=ne.useRef(null),S=ne.useRef(null),z=r.length>n,$=z?r.slice(0,n)+"…":r,j=ne.useCallback(()=>{if(!L.current||!S.current)return;const b=L.current.getBoundingClientRect(),U=S.current.offsetWidth||a,B=S.current.offsetHeight||44;let G=0,D=0,Y=0,f=0,M=0;o==="top"?(G=b.left+b.width/2-U/2,D=b.top-B-ve-oe,Y=b.left+b.width/2-6,f=b.top-ve-oe,M=0):o==="bottom"?(G=b.left+b.width/2-U/2,D=b.bottom+ve+oe,Y=b.left+b.width/2-6,f=b.bottom+oe,M=180):o==="left"?(G=b.left-U-ve-oe,D=b.top+b.height/2-B/2,Y=b.left-ve-oe,f=b.top+b.height/2-6,M=90):o==="right"&&(G=b.right+ve+oe,D=b.top+b.height/2-B/2,Y=b.right+oe,f=b.top+b.height/2-6,M=-90);const de=window.innerWidth,ue=window.innerHeight;G=Math.max(8,Math.min(G,de-U-8)),D=Math.max(8,Math.min(D,ue-B-8)),F({box:{x:G,y:D},arrow:{x:Y,y:f},rotate:M})},[o,a]);return ne.useEffect(()=>{E&&setTimeout(j,0)},[E,j]),z?y.jsxs(y.Fragment,{children:[y.jsx("span",{ref:L,className:h,style:{display:"block",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",cursor:"default",maxWidth:"100%",...u},onMouseEnter:()=>w(!0),onMouseLeave:()=>w(!1),children:$}),E&&y.jsxs(y.Fragment,{children:[y.jsx("div",{ref:S,style:{position:"fixed",left:C.box.x,top:C.box.y,background:c,border:`1px solid ${d}`,borderRadius:8,padding:"8px 12px",fontSize:13,color:m,maxWidth:a,lineHeight:1.5,zIndex:99999,pointerEvents:"none",boxShadow:"0 2px 8px rgba(0,0,0,0.12)",wordBreak:"break-word",whiteSpace:"normal"},children:r}),y.jsx("div",{style:{position:"fixed",left:C.arrow.x,top:C.arrow.y,width:12,height:7,zIndex:1e5,pointerEvents:"none",transform:`rotate(${C.rotate}deg)`,transformOrigin:"center"},children:y.jsx("svg",{width:"12",height:"7",viewBox:"0 0 12 7",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("polygon",{points:"6,7 0,0 12,0",fill:c})})})]})]}):y.jsx("span",{className:h,style:u,children:r})};function Ft({message:r,type:n,isVisible:a,onClose:o}){return console.log("message =",r),a?y.jsx("div",{style:{position:"fixed",top:"20px",right:"20px",zIndex:99999,backgroundColor:n==="success"?"#D4EDDA":n==="error"?"#FADBD8":n==="warning"?"#FDEBD0":"#D6EAF8",color:n==="success"?"#1E7E34":n==="error"?"#C0392B":n==="warning"?"#B9770E":"#1F618D",padding:"12px 20px",borderRadius:"6px",display:"flex",alignItems:"center",gap:"10px",boxShadow:"0 4px 12px rgba(0,0,0,0.1)",borderLeft:"4px solid "+(n==="success"?"#28A745":n==="error"?"#E74C3C":n==="warning"?"#F39C12":"#3498DB")},children:y.jsx("span",{children:r})}):null}const Dt=({isOpen:r,onClose:n,title:a,children:o,footer:c,width:m="450px",showCloseIcon:d})=>r?Jr.createPortal(y.jsx("div",{onClick:n,style:{position:"fixed",inset:0,background:"rgba(0,0,0,0.5)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:9999},children:y.jsxs("div",{onClick:h=>h.stopPropagation(),style:{background:"#fff",borderRadius:"8px",boxShadow:"0 4px 20px rgba(0,0,0,0.2)",width:m,maxWidth:"90%",overflow:"hidden"},children:[(a||d)&&y.jsxs("div",{style:{display:"flex",justifyContent:"flex-end",alignItems:"center",padding:"16px"},children:[a&&y.jsx("h3",{style:{margin:0,fontSize:"16px",fontWeight:600,marginRight:"auto"},children:a}),d&&y.jsx("button",{onClick:n,style:{border:"none",background:"transparent",cursor:"pointer",fontSize:"18px"},children:"✕"})]}),y.jsx("div",{style:{paddingTop:"20px",paddingBottom:"6px",paddingLeft:"16px",paddingRight:"16px"},children:o}),c&&y.jsx("div",{style:{display:"flex",justifyContent:"flex-end",gap:"10px",
|
|
85
|
+
`})]})}const Mt=({value:r,showLabel:n=!1,label:a,showPercentage:o=!0,height:c="h-2",containerClassName:m,progressClassName:d,wrapperClassName:h,labelClassName:u,percentageClassName:E,backgroundColor:w="bg-gray-200",progressColor:C="bg-[#02245A]",animated:F=!0,striped:L=!1,orientation:S="horizontal",dataTestId:z})=>{const $=Math.min(Math.max(r,0),100),j=S==="vertical";return y.jsxs("div",{className:xe("flex items-center gap-2",j&&"flex-col items-start",h),"data-testid":z,children:[n&&a&&y.jsx("span",{className:xe("text-sm font-medium text-[#414651] whitespace-nowrap",u),children:a}),y.jsx("div",{className:xe("w-full rounded-full overflow-hidden relative",j?"w-2 h-32":c,w,m),children:y.jsx("div",{className:xe("h-full rounded-full",C,F&&"transition-all duration-300",L&&"bg-[linear-gradient(45deg,rgba(255,255,255,.15)_25%,transparent_25%,transparent_50%,rgba(255,255,255,.15)_50%,rgba(255,255,255,.15)_75%,transparent_75%,transparent)] bg-[length:1rem_1rem]",d),style:{width:j?"100%":`${$}%`,height:j?`${$}%`:"100%"},role:"progressbar","aria-valuenow":$,"aria-valuemin":0,"aria-valuemax":100})}),o&&y.jsxs("span",{className:xe("text-xs text-gray-600 whitespace-nowrap",E),children:[$,"%"]})]})},ve=7,oe=6,It=({text:r,maxLength:n=40,maxWidth:a=280,position:o="top",bgColor:c="#1a1a1a",textColor:m="#fff",borderColor:d="#1a1a1a",className:h,style:u})=>{const[E,w]=ne.useState(!1),[C,F]=ne.useState({box:{x:0,y:0},arrow:{x:0,y:0},rotate:0}),L=ne.useRef(null),S=ne.useRef(null),z=r.length>n,$=z?r.slice(0,n)+"…":r,j=ne.useCallback(()=>{if(!L.current||!S.current)return;const b=L.current.getBoundingClientRect(),U=S.current.offsetWidth||a,B=S.current.offsetHeight||44;let G=0,D=0,Y=0,f=0,M=0;o==="top"?(G=b.left+b.width/2-U/2,D=b.top-B-ve-oe,Y=b.left+b.width/2-6,f=b.top-ve-oe,M=0):o==="bottom"?(G=b.left+b.width/2-U/2,D=b.bottom+ve+oe,Y=b.left+b.width/2-6,f=b.bottom+oe,M=180):o==="left"?(G=b.left-U-ve-oe,D=b.top+b.height/2-B/2,Y=b.left-ve-oe,f=b.top+b.height/2-6,M=90):o==="right"&&(G=b.right+ve+oe,D=b.top+b.height/2-B/2,Y=b.right+oe,f=b.top+b.height/2-6,M=-90);const de=window.innerWidth,ue=window.innerHeight;G=Math.max(8,Math.min(G,de-U-8)),D=Math.max(8,Math.min(D,ue-B-8)),F({box:{x:G,y:D},arrow:{x:Y,y:f},rotate:M})},[o,a]);return ne.useEffect(()=>{E&&setTimeout(j,0)},[E,j]),z?y.jsxs(y.Fragment,{children:[y.jsx("span",{ref:L,className:h,style:{display:"block",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",cursor:"default",maxWidth:"100%",...u},onMouseEnter:()=>w(!0),onMouseLeave:()=>w(!1),children:$}),E&&y.jsxs(y.Fragment,{children:[y.jsx("div",{ref:S,style:{position:"fixed",left:C.box.x,top:C.box.y,background:c,border:`1px solid ${d}`,borderRadius:8,padding:"8px 12px",fontSize:13,color:m,maxWidth:a,lineHeight:1.5,zIndex:99999,pointerEvents:"none",boxShadow:"0 2px 8px rgba(0,0,0,0.12)",wordBreak:"break-word",whiteSpace:"normal"},children:r}),y.jsx("div",{style:{position:"fixed",left:C.arrow.x,top:C.arrow.y,width:12,height:7,zIndex:1e5,pointerEvents:"none",transform:`rotate(${C.rotate}deg)`,transformOrigin:"center"},children:y.jsx("svg",{width:"12",height:"7",viewBox:"0 0 12 7",xmlns:"http://www.w3.org/2000/svg",children:y.jsx("polygon",{points:"6,7 0,0 12,0",fill:c})})})]})]}):y.jsx("span",{className:h,style:u,children:r})};function Ft({message:r,type:n,isVisible:a,onClose:o}){return console.log("message =",r),a?y.jsx("div",{style:{position:"fixed",top:"20px",right:"20px",zIndex:99999,backgroundColor:n==="success"?"#D4EDDA":n==="error"?"#FADBD8":n==="warning"?"#FDEBD0":"#D6EAF8",color:n==="success"?"#1E7E34":n==="error"?"#C0392B":n==="warning"?"#B9770E":"#1F618D",padding:"12px 20px",borderRadius:"6px",display:"flex",alignItems:"center",gap:"10px",boxShadow:"0 4px 12px rgba(0,0,0,0.1)",borderLeft:"4px solid "+(n==="success"?"#28A745":n==="error"?"#E74C3C":n==="warning"?"#F39C12":"#3498DB")},children:y.jsx("span",{children:r})}):null}const Dt=({isOpen:r,onClose:n,title:a,children:o,footer:c,width:m="450px",showCloseIcon:d})=>r?Jr.createPortal(y.jsx("div",{onClick:n,style:{position:"fixed",inset:0,background:"rgba(0,0,0,0.5)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:9999},children:y.jsxs("div",{onClick:h=>h.stopPropagation(),style:{background:"#fff",borderRadius:"8px",boxShadow:"0 4px 20px rgba(0,0,0,0.2)",width:m,maxWidth:"90%",overflow:"hidden"},children:[(a||d)&&y.jsxs("div",{style:{display:"flex",justifyContent:"flex-end",alignItems:"center",padding:"16px"},children:[a&&y.jsx("h3",{style:{margin:0,fontSize:"16px",fontWeight:600,marginRight:"auto"},children:a}),d&&y.jsx("button",{onClick:n,style:{border:"none",background:"transparent",cursor:"pointer",fontSize:"18px"},children:"✕"})]}),y.jsx("div",{style:{paddingTop:"20px",paddingBottom:"6px",paddingLeft:"16px",paddingRight:"16px"},children:o}),c&&y.jsx("div",{style:{display:"flex",justifyContent:"flex-end",gap:"10px",paddingLeft:"16px",paddingRight:"16px",paddingBottom:"16px",paddingTop:"10px"},children:c})]})}),document.body):null;exports.Loader=zt;exports.Modal=Dt;exports.ProgressBar=Mt;exports.TextPopover=It;exports.Toast=Ft;exports.cn=xe;
|
package/dist/notifications.es.js
CHANGED
|
@@ -134,12 +134,12 @@ const Be = "-", et = (r) => {
|
|
|
134
134
|
}
|
|
135
135
|
z === "[" ? d++ : z === "]" ? d-- : z === "(" ? h++ : z === ")" && h--;
|
|
136
136
|
}
|
|
137
|
-
const w = m.length === 0 ? c : c.substring(u), C = it(w), F = C !== w,
|
|
137
|
+
const w = m.length === 0 ? c : c.substring(u), C = it(w), F = C !== w, L = E && E > u ? E - u : void 0;
|
|
138
138
|
return {
|
|
139
139
|
modifiers: m,
|
|
140
140
|
hasImportantModifier: F,
|
|
141
141
|
baseClassName: C,
|
|
142
|
-
maybePostfixModifierPosition:
|
|
142
|
+
maybePostfixModifierPosition: L
|
|
143
143
|
};
|
|
144
144
|
};
|
|
145
145
|
if (n) {
|
|
@@ -188,7 +188,7 @@ const Be = "-", et = (r) => {
|
|
|
188
188
|
const w = h[E], {
|
|
189
189
|
isExternal: C,
|
|
190
190
|
modifiers: F,
|
|
191
|
-
hasImportantModifier:
|
|
191
|
+
hasImportantModifier: L,
|
|
192
192
|
baseClassName: S,
|
|
193
193
|
maybePostfixModifierPosition: z
|
|
194
194
|
} = a(w);
|
|
@@ -208,13 +208,13 @@ const Be = "-", et = (r) => {
|
|
|
208
208
|
}
|
|
209
209
|
$ = !1;
|
|
210
210
|
}
|
|
211
|
-
const b = m(F).join(":"), U =
|
|
211
|
+
const b = m(F).join(":"), U = L ? b + Ne : b, B = U + j;
|
|
212
212
|
if (d.includes(B))
|
|
213
213
|
continue;
|
|
214
214
|
d.push(B);
|
|
215
|
-
const
|
|
216
|
-
for (let D = 0; D <
|
|
217
|
-
const Y =
|
|
215
|
+
const G = c(j, $);
|
|
216
|
+
for (let D = 0; D < G.length; ++D) {
|
|
217
|
+
const Y = G[D];
|
|
218
218
|
d.push(U + Y);
|
|
219
219
|
}
|
|
220
220
|
u = w + (u.length > 0 ? " " + u : u);
|
|
@@ -255,7 +255,7 @@ function pt(r, ...n) {
|
|
|
255
255
|
const O = (r) => {
|
|
256
256
|
const n = (a) => a[r] || [];
|
|
257
257
|
return n.isThemeGetter = !0, n;
|
|
258
|
-
}, vr = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, xr = /^\((?:(\w[\w-]*):)?(.+)\)$/i, mt = /^\d+\/\d+$/, gt = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, bt = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, ht = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, vt = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, xt = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, be = (r) => mt.test(r), v = (r) => !!r && !Number.isNaN(Number(r)), te = (r) => !!r && Number.isInteger(Number(r)),
|
|
258
|
+
}, vr = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, xr = /^\((?:(\w[\w-]*):)?(.+)\)$/i, mt = /^\d+\/\d+$/, gt = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, bt = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, ht = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, vt = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, xt = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, be = (r) => mt.test(r), v = (r) => !!r && !Number.isNaN(Number(r)), te = (r) => !!r && Number.isInteger(Number(r)), Ge = (r) => r.endsWith("%") && v(r.slice(0, -1)), ee = (r) => gt.test(r), yt = () => !0, wt = (r) => (
|
|
259
259
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
260
260
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
261
261
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
@@ -267,7 +267,7 @@ const O = (r) => {
|
|
|
267
267
|
const o = xr.exec(r);
|
|
268
268
|
return o ? o[1] ? n(o[1]) : a : !1;
|
|
269
269
|
}, wr = (r) => r === "position" || r === "percentage", kr = (r) => r === "image" || r === "url", Rr = (r) => r === "length" || r === "size" || r === "bg-size", Er = (r) => r === "length", Pt = (r) => r === "number", At = (r) => r === "family-name", _r = (r) => r === "shadow", Ot = () => {
|
|
270
|
-
const r = O("color"), n = O("font"), a = O("text"), o = O("font-weight"), c = O("tracking"), m = O("leading"), d = O("breakpoint"), h = O("container"), u = O("spacing"), E = O("radius"), w = O("shadow"), C = O("inset-shadow"), F = O("text-shadow"),
|
|
270
|
+
const r = O("color"), n = O("font"), a = O("text"), o = O("font-weight"), c = O("tracking"), m = O("leading"), d = O("breakpoint"), h = O("container"), u = O("spacing"), E = O("radius"), w = O("shadow"), C = O("inset-shadow"), F = O("text-shadow"), L = O("drop-shadow"), S = O("blur"), z = O("perspective"), $ = O("aspect"), j = O("ease"), b = O("animate"), U = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], B = () => [
|
|
271
271
|
"center",
|
|
272
272
|
"top",
|
|
273
273
|
"bottom",
|
|
@@ -285,7 +285,7 @@ const O = (r) => {
|
|
|
285
285
|
"bottom-left",
|
|
286
286
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
287
287
|
"left-bottom"
|
|
288
|
-
],
|
|
288
|
+
], G = () => [...B(), l, i], D = () => ["auto", "hidden", "clip", "visible", "scroll"], Y = () => ["auto", "contain", "none"], f = () => [l, i, u], M = () => [be, "full", "auto", ...f()], ce = () => [te, "none", "subgrid", l, i], de = () => ["auto", {
|
|
289
289
|
span: ["full", te, l, i]
|
|
290
290
|
}, te, l, i], ne = () => [te, "auto", l, i], K = () => ["auto", "min", "max", "fr", l, i], X = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], q = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], J = () => ["auto", ...f()], Z = () => [be, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...f()], p = () => [r, l, i], ye = () => [...B(), dr, cr, {
|
|
291
291
|
position: [l, i]
|
|
@@ -293,7 +293,7 @@ const O = (r) => {
|
|
|
293
293
|
repeat: ["", "x", "y", "space", "round"]
|
|
294
294
|
}], ke = () => ["auto", "cover", "contain", jt, _t, {
|
|
295
295
|
size: [l, i]
|
|
296
|
-
}], ue = () => [
|
|
296
|
+
}], ue = () => [Ge, _e, le], I = () => [
|
|
297
297
|
// Deprecated since Tailwind CSS v4.0.0
|
|
298
298
|
"",
|
|
299
299
|
"none",
|
|
@@ -301,7 +301,7 @@ const O = (r) => {
|
|
|
301
301
|
E,
|
|
302
302
|
l,
|
|
303
303
|
i
|
|
304
|
-
], W = () => ["", v, _e, le], fe = () => ["solid", "dashed", "dotted", "double"], pe = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], T = () => [v,
|
|
304
|
+
], W = () => ["", v, _e, le], fe = () => ["solid", "dashed", "dotted", "double"], pe = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], T = () => [v, Ge, dr, cr], ae = () => [
|
|
305
305
|
// Deprecated since Tailwind CSS v4.0.0
|
|
306
306
|
"",
|
|
307
307
|
"none",
|
|
@@ -432,7 +432,7 @@ const O = (r) => {
|
|
|
432
432
|
* @see https://tailwindcss.com/docs/object-position
|
|
433
433
|
*/
|
|
434
434
|
"object-position": [{
|
|
435
|
-
object:
|
|
435
|
+
object: G()
|
|
436
436
|
}],
|
|
437
437
|
/**
|
|
438
438
|
* Overflow
|
|
@@ -1025,7 +1025,7 @@ const O = (r) => {
|
|
|
1025
1025
|
* @see https://tailwindcss.com/docs/font-stretch
|
|
1026
1026
|
*/
|
|
1027
1027
|
"font-stretch": [{
|
|
1028
|
-
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded",
|
|
1028
|
+
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", Ge, i]
|
|
1029
1029
|
}],
|
|
1030
1030
|
/**
|
|
1031
1031
|
* Font Family
|
|
@@ -2013,7 +2013,7 @@ const O = (r) => {
|
|
|
2013
2013
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2014
2014
|
"",
|
|
2015
2015
|
"none",
|
|
2016
|
-
|
|
2016
|
+
L,
|
|
2017
2017
|
Oe,
|
|
2018
2018
|
Ae
|
|
2019
2019
|
]
|
|
@@ -2248,7 +2248,7 @@ const O = (r) => {
|
|
|
2248
2248
|
* @see https://tailwindcss.com/docs/perspective-origin
|
|
2249
2249
|
*/
|
|
2250
2250
|
"perspective-origin": [{
|
|
2251
|
-
"perspective-origin":
|
|
2251
|
+
"perspective-origin": G()
|
|
2252
2252
|
}],
|
|
2253
2253
|
/**
|
|
2254
2254
|
* Rotate
|
|
@@ -2344,7 +2344,7 @@ const O = (r) => {
|
|
|
2344
2344
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
2345
2345
|
*/
|
|
2346
2346
|
"transform-origin": [{
|
|
2347
|
-
origin:
|
|
2347
|
+
origin: G()
|
|
2348
2348
|
}],
|
|
2349
2349
|
/**
|
|
2350
2350
|
* Transform Style
|
|
@@ -2756,11 +2756,11 @@ function Mt() {
|
|
|
2756
2756
|
ur = 1;
|
|
2757
2757
|
var r = mr, n = Symbol.for("react.element"), a = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, c = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, m = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
2758
2758
|
function d(h, u, E) {
|
|
2759
|
-
var w, C = {}, F = null,
|
|
2760
|
-
E !== void 0 && (F = "" + E), u.key !== void 0 && (F = "" + u.key), u.ref !== void 0 && (
|
|
2759
|
+
var w, C = {}, F = null, L = null;
|
|
2760
|
+
E !== void 0 && (F = "" + E), u.key !== void 0 && (F = "" + u.key), u.ref !== void 0 && (L = u.ref);
|
|
2761
2761
|
for (w in u) o.call(u, w) && !m.hasOwnProperty(w) && (C[w] = u[w]);
|
|
2762
2762
|
if (h && h.defaultProps) for (w in u = h.defaultProps, u) C[w] === void 0 && (C[w] = u[w]);
|
|
2763
|
-
return { $$typeof: n, type: h, key: F, ref:
|
|
2763
|
+
return { $$typeof: n, type: h, key: F, ref: L, props: C, _owner: c.current };
|
|
2764
2764
|
}
|
|
2765
2765
|
return Se.Fragment = a, Se.jsx = d, Se.jsxs = d, Se;
|
|
2766
2766
|
}
|
|
@@ -2777,7 +2777,7 @@ var je = {};
|
|
|
2777
2777
|
var fr;
|
|
2778
2778
|
function It() {
|
|
2779
2779
|
return fr || (fr = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
2780
|
-
var r = mr, n = Symbol.for("react.element"), a = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), m = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), h = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), w = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), F = Symbol.for("react.lazy"),
|
|
2780
|
+
var r = mr, n = Symbol.for("react.element"), a = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), m = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), h = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), w = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), F = Symbol.for("react.lazy"), L = Symbol.for("react.offscreen"), S = Symbol.iterator, z = "@@iterator";
|
|
2781
2781
|
function $(e) {
|
|
2782
2782
|
if (e === null || typeof e != "object")
|
|
2783
2783
|
return null;
|
|
@@ -2802,10 +2802,10 @@ function It() {
|
|
|
2802
2802
|
_.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, _);
|
|
2803
2803
|
}
|
|
2804
2804
|
}
|
|
2805
|
-
var B = !1,
|
|
2805
|
+
var B = !1, G = !1, D = !1, Y = !1, f = !1, M;
|
|
2806
2806
|
M = Symbol.for("react.module.reference");
|
|
2807
2807
|
function ce(e) {
|
|
2808
|
-
return !!(typeof e == "string" || typeof e == "function" || e === o || e === m || f || e === c || e === E || e === w || Y || e ===
|
|
2808
|
+
return !!(typeof e == "string" || typeof e == "function" || e === o || e === m || f || e === c || e === E || e === w || Y || e === L || B || G || D || typeof e == "object" && e !== null && (e.$$typeof === F || e.$$typeof === C || e.$$typeof === d || e.$$typeof === h || e.$$typeof === u || // This needs to include all possible module reference object
|
|
2809
2809
|
// types supported by any Flight configuration anywhere since
|
|
2810
2810
|
// we don't know which Flight build this will end up being used
|
|
2811
2811
|
// with.
|
|
@@ -3152,7 +3152,7 @@ function It() {
|
|
|
3152
3152
|
});
|
|
3153
3153
|
}
|
|
3154
3154
|
}
|
|
3155
|
-
var
|
|
3155
|
+
var Lr = function(e, t, s, g, R, _, k) {
|
|
3156
3156
|
var x = {
|
|
3157
3157
|
// This tag allows us to uniquely identify this as a React Element
|
|
3158
3158
|
$$typeof: n,
|
|
@@ -3181,7 +3181,7 @@ function It() {
|
|
|
3181
3181
|
value: R
|
|
3182
3182
|
}), Object.freeze && (Object.freeze(x.props), Object.freeze(x)), x;
|
|
3183
3183
|
};
|
|
3184
|
-
function
|
|
3184
|
+
function Gr(e, t, s, g, R) {
|
|
3185
3185
|
{
|
|
3186
3186
|
var _, k = {}, x = null, N = null;
|
|
3187
3187
|
s !== void 0 && (Je(s), x = "" + s), Mr(t) && (Je(t.key), x = "" + t.key), zr(t) && (N = t.ref, Ir(t, R));
|
|
@@ -3196,7 +3196,7 @@ function It() {
|
|
|
3196
3196
|
var A = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
3197
3197
|
x && Fr(k, A), N && Dr(k, A);
|
|
3198
3198
|
}
|
|
3199
|
-
return
|
|
3199
|
+
return Lr(e, x, N, R, g, He.current, k);
|
|
3200
3200
|
}
|
|
3201
3201
|
}
|
|
3202
3202
|
var Ie = j.ReactCurrentOwner, Ze = j.ReactDebugCurrentFrame;
|
|
@@ -3321,7 +3321,7 @@ Check the top-level render call using <` + s + ">.");
|
|
|
3321
3321
|
var P;
|
|
3322
3322
|
e === null ? P = "null" : Me(e) ? P = "array" : e !== void 0 && e.$$typeof === n ? (P = "<" + (K(e.type) || "Unknown") + " />", x = " Did you accidentally export a JSX literal instead of a component?") : P = typeof e, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", P, x);
|
|
3323
3323
|
}
|
|
3324
|
-
var A =
|
|
3324
|
+
var A = Gr(e, t, s, R, _);
|
|
3325
3325
|
if (A == null)
|
|
3326
3326
|
return A;
|
|
3327
3327
|
if (k) {
|
|
@@ -3340,15 +3340,15 @@ Check the top-level render call using <` + s + ">.");
|
|
|
3340
3340
|
if (Ee.call(t, "key")) {
|
|
3341
3341
|
var ie = K(e), V = Object.keys(t).filter(function(Hr) {
|
|
3342
3342
|
return Hr !== "key";
|
|
3343
|
-
}),
|
|
3344
|
-
if (!or[ie +
|
|
3343
|
+
}), Le = V.length > 0 ? "{key: someKey, " + V.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
3344
|
+
if (!or[ie + Le]) {
|
|
3345
3345
|
var Jr = V.length > 0 ? "{" + V.join(": ..., ") + ": ...}" : "{}";
|
|
3346
3346
|
b(`A props object containing a "key" prop is being spread into JSX:
|
|
3347
3347
|
let props = %s;
|
|
3348
3348
|
<%s {...props} />
|
|
3349
3349
|
React keys must be passed directly to JSX without using spread:
|
|
3350
3350
|
let props = %s;
|
|
3351
|
-
<%s key={someKey} {...props} />`,
|
|
3351
|
+
<%s key={someKey} {...props} />`, Le, ie, Jr, ie), or[ie + Le] = !0;
|
|
3352
3352
|
}
|
|
3353
3353
|
}
|
|
3354
3354
|
return e === o ? Vr(A) : Nr(A), A;
|
|
@@ -3369,7 +3369,7 @@ function Ft() {
|
|
|
3369
3369
|
return pr || (pr = 1, process.env.NODE_ENV === "production" ? ze.exports = Mt() : ze.exports = It()), ze.exports;
|
|
3370
3370
|
}
|
|
3371
3371
|
var y = Ft();
|
|
3372
|
-
function
|
|
3372
|
+
function Gt() {
|
|
3373
3373
|
return /* @__PURE__ */ y.jsxs(y.Fragment, { children: [
|
|
3374
3374
|
/* @__PURE__ */ y.jsx("div", { className: "fixed inset-0 z-[9999] bg-black/40 flex items-center justify-center", children: /* @__PURE__ */ y.jsxs("div", { className: "loader", children: [
|
|
3375
3375
|
/* @__PURE__ */ y.jsx("span", {}),
|
|
@@ -3451,7 +3451,7 @@ const $t = ({
|
|
|
3451
3451
|
backgroundColor: w = "bg-gray-200",
|
|
3452
3452
|
progressColor: C = "bg-[#02245A]",
|
|
3453
3453
|
animated: F = !0,
|
|
3454
|
-
striped:
|
|
3454
|
+
striped: L = !1,
|
|
3455
3455
|
orientation: S = "horizontal",
|
|
3456
3456
|
dataTestId: z
|
|
3457
3457
|
}) => {
|
|
@@ -3492,7 +3492,7 @@ const $t = ({
|
|
|
3492
3492
|
"h-full rounded-full",
|
|
3493
3493
|
C,
|
|
3494
3494
|
F && "transition-all duration-300",
|
|
3495
|
-
|
|
3495
|
+
L && "bg-[linear-gradient(45deg,rgba(255,255,255,.15)_25%,transparent_25%,transparent_50%,rgba(255,255,255,.15)_50%,rgba(255,255,255,.15)_75%,transparent_75%,transparent)] bg-[length:1rem_1rem]",
|
|
3496
3496
|
d
|
|
3497
3497
|
),
|
|
3498
3498
|
style: {
|
|
@@ -3538,13 +3538,13 @@ const $t = ({
|
|
|
3538
3538
|
box: { x: 0, y: 0 },
|
|
3539
3539
|
arrow: { x: 0, y: 0 },
|
|
3540
3540
|
rotate: 0
|
|
3541
|
-
}),
|
|
3542
|
-
if (!
|
|
3543
|
-
const b =
|
|
3544
|
-
let
|
|
3545
|
-
o === "top" ? (
|
|
3541
|
+
}), L = sr(null), S = sr(null), z = r.length > n, $ = z ? r.slice(0, n) + "…" : r, j = Kr(() => {
|
|
3542
|
+
if (!L.current || !S.current) return;
|
|
3543
|
+
const b = L.current.getBoundingClientRect(), U = S.current.offsetWidth || a, B = S.current.offsetHeight || 44;
|
|
3544
|
+
let G = 0, D = 0, Y = 0, f = 0, M = 0;
|
|
3545
|
+
o === "top" ? (G = b.left + b.width / 2 - U / 2, D = b.top - B - he - oe, Y = b.left + b.width / 2 - 6, f = b.top - he - oe, M = 0) : o === "bottom" ? (G = b.left + b.width / 2 - U / 2, D = b.bottom + he + oe, Y = b.left + b.width / 2 - 6, f = b.bottom + oe, M = 180) : o === "left" ? (G = b.left - U - he - oe, D = b.top + b.height / 2 - B / 2, Y = b.left - he - oe, f = b.top + b.height / 2 - 6, M = 90) : o === "right" && (G = b.right + he + oe, D = b.top + b.height / 2 - B / 2, Y = b.right + oe, f = b.top + b.height / 2 - 6, M = -90);
|
|
3546
3546
|
const ce = window.innerWidth, de = window.innerHeight;
|
|
3547
|
-
|
|
3547
|
+
G = Math.max(8, Math.min(G, ce - U - 8)), D = Math.max(8, Math.min(D, de - B - 8)), F({ box: { x: G, y: D }, arrow: { x: Y, y: f }, rotate: M });
|
|
3548
3548
|
}, [o, a]);
|
|
3549
3549
|
return Xr(() => {
|
|
3550
3550
|
E && setTimeout(j, 0);
|
|
@@ -3552,7 +3552,7 @@ const $t = ({
|
|
|
3552
3552
|
/* @__PURE__ */ y.jsx(
|
|
3553
3553
|
"span",
|
|
3554
3554
|
{
|
|
3555
|
-
ref:
|
|
3555
|
+
ref: L,
|
|
3556
3556
|
className: h,
|
|
3557
3557
|
style: {
|
|
3558
3558
|
display: "block",
|
|
@@ -3699,7 +3699,10 @@ const Vt = ({ isOpen: r, onClose: n, title: a, children: o, footer: c, width: m
|
|
|
3699
3699
|
display: "flex",
|
|
3700
3700
|
justifyContent: "flex-end",
|
|
3701
3701
|
gap: "10px",
|
|
3702
|
-
|
|
3702
|
+
paddingLeft: "16px",
|
|
3703
|
+
paddingRight: "16px",
|
|
3704
|
+
paddingBottom: "16px",
|
|
3705
|
+
paddingTop: "10px"
|
|
3703
3706
|
}, children: c })
|
|
3704
3707
|
]
|
|
3705
3708
|
}
|
|
@@ -3709,7 +3712,7 @@ const Vt = ({ isOpen: r, onClose: n, title: a, children: o, footer: c, width: m
|
|
|
3709
3712
|
document.body
|
|
3710
3713
|
) : null;
|
|
3711
3714
|
export {
|
|
3712
|
-
|
|
3715
|
+
Gt as Loader,
|
|
3713
3716
|
Vt as Modal,
|
|
3714
3717
|
$t as ProgressBar,
|
|
3715
3718
|
Wt as TextPopover,
|