@swan-admin/swan-web-component 1.0.78 → 1.0.79
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/Header-CDkpLwYo.js +2 -0
- package/dist/Header-CDkpLwYo.js.map +1 -0
- package/dist/Header-F5rF4_EK.js +2 -0
- package/dist/Header-F5rF4_EK.js.map +1 -0
- package/dist/Header-KIq-IIp4.js +2 -0
- package/dist/Header-KIq-IIp4.js.map +1 -0
- package/dist/Header-SK4TdjTG.js +2 -0
- package/dist/Header-SK4TdjTG.js.map +1 -0
- package/dist/LoadingScreen-CJW5H884.js +2 -0
- package/dist/LoadingScreen-CJW5H884.js.map +1 -0
- package/dist/LoadingScreen-Cye_sGZu.js +2 -0
- package/dist/LoadingScreen-Cye_sGZu.js.map +1 -0
- package/dist/LoadingScreen-Czxa8Is0.js +2 -0
- package/dist/LoadingScreen-Czxa8Is0.js.map +1 -0
- package/dist/LoadingScreen-aAtRsi7Q.js +2 -0
- package/dist/LoadingScreen-aAtRsi7Q.js.map +1 -0
- package/dist/arrow-right-DWlQRbzE.js +27 -0
- package/dist/arrow-right-DWlQRbzE.js.map +1 -0
- package/dist/arrow-right-fsdw-5QY.js +27 -0
- package/dist/arrow-right-fsdw-5QY.js.map +1 -0
- package/dist/bodyScan.js +2 -2
- package/dist/bodyScan.js.map +1 -1
- package/dist/bodyScan.mjs +2 -2
- package/dist/bodyScan.mjs.map +1 -1
- package/dist/enums-BLzZlPIt.js +32 -0
- package/dist/enums-BLzZlPIt.js.map +1 -0
- package/dist/enums-BV1_VQpZ.js +32 -0
- package/dist/enums-BV1_VQpZ.js.map +1 -0
- package/dist/faceScan.js +1 -1
- package/dist/faceScan.mjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import{jsxs as e,Fragment as l,jsx as o}from"react/jsx-runtime";import*as n from"react";import a,{isValidElement as t,cloneElement as i,Children as d,useState as m,useCallback as _,useMemo as r,useEffect as c,createContext as s,useRef as h,useLayoutEffect as f,useId as g,useContext as u,useInsertionEffect as p,Fragment as y,createElement as v,forwardRef as P,Component as A}from"react";import{S as x,u as S,a as b,H as G,b as C,f as T,l as E,c as O,m as M,d as N,e as R,s as L,g as w,h as X,i as F,j as V,k as I,O as D,n as k,o as H}from"./Header-
|
|
1
|
+
import{jsxs as e,Fragment as l,jsx as o}from"react/jsx-runtime";import*as n from"react";import a,{isValidElement as t,cloneElement as i,Children as d,useState as m,useCallback as _,useMemo as r,useEffect as c,createContext as s,useRef as h,useLayoutEffect as f,useId as g,useContext as u,useInsertionEffect as p,Fragment as y,createElement as v,forwardRef as P,Component as A}from"react";import{S as x,u as S,a as b,H as G,b as C,f as T,l as E,c as O,m as M,d as N,e as R,s as L,g as w,h as X,i as F,j as V,k as I,O as D,n as k,o as H}from"./Header-CDkpLwYo.js";import{h as U,i as B,s as K,w as j,T as W,u as Y,a as $,b as z,E as Z,c as Q,P as J,d as q,e as ee,f as le,g as oe,_ as ne,j as ae,k as te,l as ie,m as de,n as me,o as _e,p as re,q as ce,r as se,t as he,v as fe,x as ge,y as ue,z as pe,A as ye,B as ve,C as Pe,D as Ae,F as xe,G as Se,H as be,I as Ge,J as Ce,K as Te,L as Ee,M as Oe,N as Me,O as Ne,Q as Re,R as Le,S as we,U as Xe,V as Fe,W as Ve,X as Ie,Y as De,Z as ke,$ as He,a0 as Ue,a1 as Be,a2 as Ke,a3 as je,a4 as We,a5 as Ye,a6 as $e,a7 as ze,a8 as Ze,a9 as Qe,aa as Je,ab as qe}from"./enums-BV1_VQpZ.js";export{ac as PreferredLanguage}from"./enums-BV1_VQpZ.js";import{c as el,A as ll}from"./arrow-right-DWlQRbzE.js";import"react-dom";const ol=(...e)=>e.filter(Boolean).join(" "),nl=n.forwardRef(({className:n,resolvedConfig:a,type:t,...i},d)=>e(l,{children:[o("input",{type:t,className:`${n||""} customInput `+ol("flex w-full px-[.75rem] h-[40px] text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed backdrop-blur-sm bg-btn font-medium pl-[1rem] pr-[2.5rem] focus:ring-1 focus:outline-none transition-all duration-200"),autoCapitalize:"off",autoCorrect:"off",ref:d,...i,style:{background:a?.style?.input?.inputBackgroundColor||"#F9FAFC",color:a?.style?.input?.inputTextColor||"#000",fontSize:a?.style?.input?.inputFontSize||"16px",fontWeight:a?.style?.input?.inputFontWeight||"400",border:`1px solid ${a?.style?.input?.inputBorderColor||"transparent"}`,fontFamily:a?.style?.base?.baseFontFamily||"Inter, sans-serif",borderRadius:a?.style?.input?.inputBorderRadius||"4px"}}),o("style",{children:`\n .customInput::placeholder {\n color: ${a?.style?.input?.inputPlaceholderColor||"#000"};\n font-weight: ${a?.style?.input?.inputFontWeight||"500"};\n opacity: 1;\n font-size: ${a?.style?.input?.inputFontSize||"14px"};\n }\n .customInput:focus-visible {\n box-shadow:0 0 0 2px white, 0 0 0 4px rgb(from currentColor r g b / 0.5);\n }\n \n `})]}));nl.displayName="CustomInput";
|
|
2
2
|
/**
|
|
3
3
|
* @license lucide-react v0.553.0 - ISC
|
|
4
4
|
*
|
|
5
5
|
* This source code is licensed under the ISC license.
|
|
6
6
|
* See the LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
|
-
const al=el("volume-2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]]),tl=({onComplete:l,initialValue:n,resolvedConfig:t,onStepComplete:i})=>{const[d,m]=a.useState(n||""),[_,r]=a.useState(void 0),[c,s]=a.useState(!1);return o("div",{className:"w-full max-w-md",children:e("form",{onSubmit:async e=>{e.preventDefault(),s(!0);try{if(!d.trim())return void r("Name is required.");await(i?.(d)),l?.(d)}catch(e){r(U(e))}finally{s(!1)}},className:"mt-[3.5rem] mb-[.75rem]",children:[e("div",{children:[o(nl,{required:!0,type:"text",id:"name",placeholder:"Enter your name",resolvedConfig:t,onChange:e=>{m(e.target.value)}}),_&&o("p",{className:"mt-[0.2rem] text-[16px]",style:{color:t?.style?.input?.inputErrorColor||"#000",fontSize:t?.style?.input?.inputErrorFontSize||"16px"},children:_})]}),o("div",{className:"flex justify-end mt-[.5rem]",children:o(x,{disabled:!d.trim()||c,resolvedConfig:t,buttonText:"Next",type:"submit",postfixIcon:o(ll,{size:14})})})]})})},il=({onComplete:l,initialValue:n,resolvedConfig:t,onStepComplete:i})=>{const[d,m]=a.useState(n||""),[_,r]=a.useState(void 0),[c,s]=a.useState(!1);return o("div",{className:"w-full max-w-md",children:e("form",{className:"mt-[3.5rem]",onSubmit:async e=>{e.preventDefault(),s(!0);try{if(!d.trim())return void r("Email is required.");B(d.trim())?(await(i?.(d)),l?.(d)):r("Please enter a valid email address.")}catch(e){r(U(e))}finally{s(!1)}},children:[e("div",{children:[o(nl,{required:!0,type:"text",id:"name",placeholder:"Enter your email",resolvedConfig:t,value:d,onChange:e=>{r(void 0),m(e.target.value)}}),_&&o("p",{
|
|
8
|
+
const al=el("volume-2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]]),tl=({onComplete:l,initialValue:n,resolvedConfig:t,onStepComplete:i})=>{const[d,m]=a.useState(n||""),[_,r]=a.useState(void 0),[c,s]=a.useState(!1);return o("div",{className:"w-full max-w-md",children:e("form",{onSubmit:async e=>{e.preventDefault(),s(!0);try{if(!d.trim())return void r("Name is required.");await(i?.(d)),l?.(d)}catch(e){r(U(e))}finally{s(!1)}},className:"mt-[3.5rem] mb-[.75rem]",children:[e("div",{children:[o(nl,{required:!0,type:"text",id:"name",placeholder:"Enter your name",resolvedConfig:t,onChange:e=>{m(e.target.value)}}),_&&o("p",{className:"mt-[0.2rem] text-[16px]",style:{color:t?.style?.input?.inputErrorColor||"#000",fontSize:t?.style?.input?.inputErrorFontSize||"16px"},children:_})]}),o("div",{className:"flex justify-end mt-[.5rem]",children:o(x,{disabled:!d.trim()||c,resolvedConfig:t,buttonText:"Next",type:"submit",postfixIcon:o(ll,{size:14})})})]})})},il=({onComplete:l,initialValue:n,resolvedConfig:t,onStepComplete:i})=>{const[d,m]=a.useState(n||""),[_,r]=a.useState(void 0),[c,s]=a.useState(!1);return o("div",{className:"w-full max-w-md",children:e("form",{className:"mt-[3.5rem]",onSubmit:async e=>{e.preventDefault(),s(!0);try{if(!d.trim())return void r("Email is required.");B(d.trim())?(await(i?.(d)),l?.(d)):r("Please enter a valid email address.")}catch(e){r(U(e))}finally{s(!1)}},children:[e("div",{children:[o(nl,{required:!0,type:"text",id:"name",placeholder:"Enter your email",resolvedConfig:t,value:d,onChange:e=>{r(void 0),m(e.target.value)}}),_&&o("p",{style:{color:t?.style?.input?.inputErrorColor||"#000",fontSize:t?.style?.input?.inputErrorFontSize||"16px"},children:_})]}),o("div",{className:"flex justify-end mt-[.5rem]",children:o(x,{type:"submit",disabled:!d.trim()||c,resolvedConfig:t,buttonText:"Next",postfixIcon:o(ll,{size:14})})})]})})};var dl,ml={exports:{}},_l={};var rl,cl,sl,hl,fl={};
|
|
9
9
|
/** @license React v16.13.1
|
|
10
10
|
* react-is.development.js
|
|
11
11
|
*
|