@arkyn/components 1.2.0
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/bundle.js +1348 -0
- package/dist/bundle.umd.cjs +32 -0
- package/dist/components/Badge/index.d.ts +5 -0
- package/dist/components/Badge/index.d.ts.map +1 -0
- package/dist/components/Badge/index.js +8 -0
- package/dist/components/Breadcrumb/index.d.ts +6 -0
- package/dist/components/Breadcrumb/index.d.ts.map +1 -0
- package/dist/components/Breadcrumb/index.js +18 -0
- package/dist/components/Button/index.d.ts +5 -0
- package/dist/components/Button/index.d.ts.map +1 -0
- package/dist/components/Button/index.js +9 -0
- package/dist/components/Divider/index.d.ts +5 -0
- package/dist/components/Divider/index.d.ts.map +1 -0
- package/dist/components/Divider/index.js +8 -0
- package/dist/components/Form/FormController/index.d.ts +6 -0
- package/dist/components/Form/FormController/index.d.ts.map +1 -0
- package/dist/components/Form/FormController/index.js +17 -0
- package/dist/components/Form/FormError/index.d.ts +4 -0
- package/dist/components/Form/FormError/index.d.ts.map +1 -0
- package/dist/components/Form/FormError/index.js +10 -0
- package/dist/components/Form/FormLabel/index.d.ts +5 -0
- package/dist/components/Form/FormLabel/index.d.ts.map +1 -0
- package/dist/components/Form/FormLabel/index.js +9 -0
- package/dist/components/Form/index.d.ts +4 -0
- package/dist/components/Form/index.d.ts.map +1 -0
- package/dist/components/Form/index.js +3 -0
- package/dist/components/IconButton/index.d.ts +5 -0
- package/dist/components/IconButton/index.d.ts.map +1 -0
- package/dist/components/IconButton/index.js +15 -0
- package/dist/components/Input/CpfCpnjInput/getConfig.d.ts +308 -0
- package/dist/components/Input/CpfCpnjInput/getConfig.d.ts.map +1 -0
- package/dist/components/Input/CpfCpnjInput/getConfig.js +35 -0
- package/dist/components/Input/CpfCpnjInput/index.d.ts +4 -0
- package/dist/components/Input/CpfCpnjInput/index.d.ts.map +1 -0
- package/dist/components/Input/CpfCpnjInput/index.js +47 -0
- package/dist/components/Input/CpfCpnjInput/utils.d.ts +10 -0
- package/dist/components/Input/CpfCpnjInput/utils.d.ts.map +1 -0
- package/dist/components/Input/CpfCpnjInput/utils.js +24 -0
- package/dist/components/Input/CurrencyInput/getConfig.d.ts +309 -0
- package/dist/components/Input/CurrencyInput/getConfig.d.ts.map +1 -0
- package/dist/components/Input/CurrencyInput/getConfig.js +37 -0
- package/dist/components/Input/CurrencyInput/index.d.ts +4 -0
- package/dist/components/Input/CurrencyInput/index.d.ts.map +1 -0
- package/dist/components/Input/CurrencyInput/index.js +41 -0
- package/dist/components/Input/CurrencyInput/utils.d.ts +11 -0
- package/dist/components/Input/CurrencyInput/utils.d.ts.map +1 -0
- package/dist/components/Input/CurrencyInput/utils.js +39 -0
- package/dist/components/Input/MaskInput/getConfig.d.ts +312 -0
- package/dist/components/Input/MaskInput/getConfig.d.ts.map +1 -0
- package/dist/components/Input/MaskInput/getConfig.js +36 -0
- package/dist/components/Input/MaskInput/index.d.ts +4 -0
- package/dist/components/Input/MaskInput/index.d.ts.map +1 -0
- package/dist/components/Input/MaskInput/index.js +42 -0
- package/dist/components/Input/SimpleInput/getConfig.d.ts +308 -0
- package/dist/components/Input/SimpleInput/getConfig.d.ts.map +1 -0
- package/dist/components/Input/SimpleInput/getConfig.js +35 -0
- package/dist/components/Input/SimpleInput/index.d.ts +4 -0
- package/dist/components/Input/SimpleInput/index.d.ts.map +1 -0
- package/dist/components/Input/SimpleInput/index.js +34 -0
- package/dist/components/Input/index.d.ts +5 -0
- package/dist/components/Input/index.d.ts.map +1 -0
- package/dist/components/Input/index.js +16 -0
- package/dist/components/Input/utils/morpheme.d.ts +4 -0
- package/dist/components/Input/utils/morpheme.d.ts.map +1 -0
- package/dist/components/Input/utils/morpheme.js +10 -0
- package/dist/components/Modal/Container/index.d.ts +10 -0
- package/dist/components/Modal/Container/index.d.ts.map +1 -0
- package/dist/components/Modal/Container/index.js +12 -0
- package/dist/components/Modal/Footer/index.d.ts +5 -0
- package/dist/components/Modal/Footer/index.d.ts.map +1 -0
- package/dist/components/Modal/Footer/index.js +8 -0
- package/dist/components/Modal/Header/index.d.ts +5 -0
- package/dist/components/Modal/Header/index.d.ts.map +1 -0
- package/dist/components/Modal/Header/index.js +13 -0
- package/dist/components/Modal/index.d.ts +9 -0
- package/dist/components/Modal/index.d.ts.map +1 -0
- package/dist/components/Modal/index.js +4 -0
- package/dist/components/Tooltip/index.d.ts +5 -0
- package/dist/components/Tooltip/index.d.ts.map +1 -0
- package/dist/components/Tooltip/index.js +7 -0
- package/dist/config/buildBadgeConfig.d.ts +274 -0
- package/dist/config/buildBadgeConfig.d.ts.map +1 -0
- package/dist/config/buildBadgeConfig.js +15 -0
- package/dist/config/buildBreadcrumLinkConfig.d.ts +288 -0
- package/dist/config/buildBreadcrumLinkConfig.d.ts.map +1 -0
- package/dist/config/buildBreadcrumLinkConfig.js +14 -0
- package/dist/config/buildBreadcrumbConfig.d.ts +272 -0
- package/dist/config/buildBreadcrumbConfig.d.ts.map +1 -0
- package/dist/config/buildBreadcrumbConfig.js +6 -0
- package/dist/config/buildButtonConfig.d.ts +286 -0
- package/dist/config/buildButtonConfig.d.ts.map +1 -0
- package/dist/config/buildButtonConfig.js +18 -0
- package/dist/config/buildFormLabelConfig.d.ts +274 -0
- package/dist/config/buildFormLabelConfig.d.ts.map +1 -0
- package/dist/config/buildFormLabelConfig.js +10 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +13 -0
- package/dist/style.css +1 -0
- package/dist/utils/generateIcon.d.ts +4 -0
- package/dist/utils/generateIcon.d.ts.map +1 -0
- package/dist/utils/generateIcon.js +7 -0
- package/package.json +30 -0
- package/src/components/Badge/index.tsx +18 -0
- package/src/components/Badge/styles.css +119 -0
- package/src/components/Breadcrumb/index.tsx +35 -0
- package/src/components/Breadcrumb/styles.css +39 -0
- package/src/components/Button/index.tsx +27 -0
- package/src/components/Button/styles.css +363 -0
- package/src/components/Divider/index.tsx +17 -0
- package/src/components/Divider/styles.css +17 -0
- package/src/components/Form/FormController/index.tsx +36 -0
- package/src/components/Form/FormController/styles.css +5 -0
- package/src/components/Form/FormError/index.tsx +11 -0
- package/src/components/Form/FormError/styles.css +6 -0
- package/src/components/Form/FormLabel/index.tsx +13 -0
- package/src/components/Form/FormLabel/styles.css +15 -0
- package/src/components/Form/index.ts +3 -0
- package/src/components/IconButton/index.tsx +44 -0
- package/src/components/IconButton/styles.css +318 -0
- package/src/components/Input/CpfCpnjInput/getConfig.tsx +60 -0
- package/src/components/Input/CpfCpnjInput/index.tsx +112 -0
- package/src/components/Input/CpfCpnjInput/utils.ts +30 -0
- package/src/components/Input/CurrencyInput/getConfig.tsx +64 -0
- package/src/components/Input/CurrencyInput/index.tsx +103 -0
- package/src/components/Input/CurrencyInput/utils.ts +56 -0
- package/src/components/Input/MaskInput/getConfig.tsx +62 -0
- package/src/components/Input/MaskInput/index.tsx +89 -0
- package/src/components/Input/SimpleInput/getConfig.tsx +60 -0
- package/src/components/Input/SimpleInput/index.tsx +87 -0
- package/src/components/Input/index.tsx +17 -0
- package/src/components/Input/styles.css +223 -0
- package/src/components/Input/utils/morpheme.tsx +19 -0
- package/src/components/Modal/Container/index.tsx +53 -0
- package/src/components/Modal/Container/styles.css +35 -0
- package/src/components/Modal/Footer/index.tsx +12 -0
- package/src/components/Modal/Footer/styles.css +27 -0
- package/src/components/Modal/Header/index.tsx +26 -0
- package/src/components/Modal/Header/styles.css +36 -0
- package/src/components/Modal/index.ts +5 -0
- package/src/components/Tooltip/index.tsx +26 -0
- package/src/components/Tooltip/styles.css +112 -0
- package/src/config/buildBadgeConfig.tsx +32 -0
- package/src/config/buildBreadcrumLinkConfig.tsx +27 -0
- package/src/config/buildBreadcrumbConfig.tsx +12 -0
- package/src/config/buildButtonConfig.tsx +38 -0
- package/src/config/buildFormLabelConfig.tsx +17 -0
- package/src/index.ts +16 -0
- package/src/utils/generateIcon.tsx +9 -0
- package/tsconfig.json +23 -0
- package/vite.config.js +25 -0
@@ -0,0 +1,32 @@
|
|
1
|
+
(function(k,N){typeof exports=="object"&&typeof module<"u"?N(exports,require("react"),require("lucide-react"),require("@remix-run/react"),require("@react-input/mask"),require("framer-motion")):typeof define=="function"&&define.amd?define(["exports","react","lucide-react","@remix-run/react","@react-input/mask","framer-motion"],N):(k=typeof globalThis<"u"?globalThis:k||self,N(k["@arkyn/components"]={},k.require$$0,k.lucideReact,k.react,k.mask,k.framerMotion))})(this,function(k,N,Q,ye,qe,xe){"use strict";var be={exports:{}},ue={};/**
|
2
|
+
* @license React
|
3
|
+
* react-jsx-runtime.production.min.js
|
4
|
+
*
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
6
|
+
*
|
7
|
+
* This source code is licensed under the MIT license found in the
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
9
|
+
*/var we;function er(){if(we)return ue;we=1;var n=N,s=Symbol.for("react.element"),t=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,c=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function h(u,f,m){var v,y={},S=null,C=null;m!==void 0&&(S=""+m),f.key!==void 0&&(S=""+f.key),f.ref!==void 0&&(C=f.ref);for(v in f)a.call(f,v)&&!l.hasOwnProperty(v)&&(y[v]=f[v]);if(u&&u.defaultProps)for(v in f=u.defaultProps,f)y[v]===void 0&&(y[v]=f[v]);return{$$typeof:s,type:u,key:S,ref:C,props:y,_owner:c.current}}return ue.Fragment=t,ue.jsx=h,ue.jsxs=h,ue}var le={};/**
|
10
|
+
* @license React
|
11
|
+
* react-jsx-runtime.development.js
|
12
|
+
*
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
14
|
+
*
|
15
|
+
* This source code is licensed under the MIT license found in the
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
17
|
+
*/var Te;function rr(){return Te||(Te=1,process.env.NODE_ENV!=="production"&&function(){var n=N,s=Symbol.for("react.element"),t=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),h=Symbol.for("react.provider"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),C=Symbol.for("react.offscreen"),T=Symbol.iterator,O="@@iterator";function F(e){if(e===null||typeof e!="object")return null;var r=T&&e[T]||e[O];return typeof r=="function"?r:null}var b=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function g(e){{for(var r=arguments.length,i=new Array(r>1?r-1:0),d=1;d<r;d++)i[d-1]=arguments[d];E("error",e,i)}}function E(e,r,i){{var d=b.ReactDebugCurrentFrame,_=d.getStackAddendum();_!==""&&(r+="%s",i=i.concat([_]));var R=i.map(function(x){return String(x)});R.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,R)}}var $=!1,V=!1,z=!1,D=!1,Y=!1,L;L=Symbol.for("react.module.reference");function A(e){return!!(typeof e=="string"||typeof e=="function"||e===a||e===l||Y||e===c||e===m||e===v||D||e===C||$||V||z||typeof e=="object"&&e!==null&&(e.$$typeof===S||e.$$typeof===y||e.$$typeof===h||e.$$typeof===u||e.$$typeof===f||e.$$typeof===L||e.getModuleId!==void 0))}function I(e,r,i){var d=e.displayName;if(d)return d;var _=r.displayName||r.name||"";return _!==""?i+"("+_+")":i}function W(e){return e.displayName||"Context"}function j(e){if(e==null)return null;if(typeof e.tag=="number"&&g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case a:return"Fragment";case t:return"Portal";case l:return"Profiler";case c:return"StrictMode";case m:return"Suspense";case v:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case u:var r=e;return W(r)+".Consumer";case h:var i=e;return W(i._context)+".Provider";case f:return I(e,e.render,"ForwardRef");case y:var d=e.displayName||null;return d!==null?d:j(e.type)||"Memo";case S:{var _=e,R=_._payload,x=_._init;try{return j(x(R))}catch{return null}}}return null}var U=Object.assign,G=0,H,ne,te,se,ie,oe,K;function X(){}X.__reactDisabledLog=!0;function Z(){{if(G===0){H=console.log,ne=console.info,te=console.warn,se=console.error,ie=console.group,oe=console.groupCollapsed,K=console.groupEnd;var e={configurable:!0,enumerable:!0,value:X,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}G++}}function De(){{if(G--,G===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:U({},e,{value:H}),info:U({},e,{value:ne}),warn:U({},e,{value:te}),error:U({},e,{value:se}),group:U({},e,{value:ie}),groupCollapsed:U({},e,{value:oe}),groupEnd:U({},e,{value:K})})}G<0&&g("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Se=b.ReactCurrentDispatcher,Re;function me(e,r,i){{if(Re===void 0)try{throw Error()}catch(_){var d=_.stack.trim().match(/\n( *(at )?)/);Re=d&&d[1]||""}return`
|
18
|
+
`+Re+e}}var Ce=!1,ve;{var zr=typeof WeakMap=="function"?WeakMap:Map;ve=new zr}function We(e,r){if(!e||Ce)return"";{var i=ve.get(e);if(i!==void 0)return i}var d;Ce=!0;var _=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var R;R=Se.current,Se.current=null,Z();try{if(r){var x=function(){throw Error()};if(Object.defineProperty(x.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(x,[])}catch(M){d=M}Reflect.construct(e,[],x)}else{try{x.call()}catch(M){d=M}e.call(x.prototype)}}else{try{throw Error()}catch(M){d=M}e()}}catch(M){if(M&&d&&typeof M.stack=="string"){for(var p=M.stack.split(`
|
19
|
+
`),B=d.stack.split(`
|
20
|
+
`),P=p.length-1,w=B.length-1;P>=1&&w>=0&&p[P]!==B[w];)w--;for(;P>=1&&w>=0;P--,w--)if(p[P]!==B[w]){if(P!==1||w!==1)do if(P--,w--,w<0||p[P]!==B[w]){var J=`
|
21
|
+
`+p[P].replace(" at new "," at ");return e.displayName&&J.includes("<anonymous>")&&(J=J.replace("<anonymous>",e.displayName)),typeof e=="function"&&ve.set(e,J),J}while(P>=1&&w>=0);break}}}finally{Ce=!1,Se.current=R,De(),Error.prepareStackTrace=_}var ce=e?e.displayName||e.name:"",ee=ce?me(ce):"";return typeof e=="function"&&ve.set(e,ee),ee}function Dr(e,r,i){return We(e,!1)}function Wr(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function ge(e,r,i){if(e==null)return"";if(typeof e=="function")return We(e,Wr(e));if(typeof e=="string")return me(e);switch(e){case m:return me("Suspense");case v:return me("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return Dr(e.render);case y:return ge(e.type,r,i);case S:{var d=e,_=d._payload,R=d._init;try{return ge(R(_),r,i)}catch{}}}return""}var fe=Object.prototype.hasOwnProperty,Ae={},Be=b.ReactDebugCurrentFrame;function pe(e){if(e){var r=e._owner,i=ge(e.type,e._source,r?r.type:null);Be.setExtraStackFrame(i)}else Be.setExtraStackFrame(null)}function Ar(e,r,i,d,_){{var R=Function.call.bind(fe);for(var x in e)if(R(e,x)){var p=void 0;try{if(typeof e[x]!="function"){var B=Error((d||"React class")+": "+i+" type `"+x+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[x]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw B.name="Invariant Violation",B}p=e[x](r,x,d,i,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(P){p=P}p&&!(p instanceof Error)&&(pe(_),g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",d||"React class",i,x,typeof p),pe(null)),p instanceof Error&&!(p.message in Ae)&&(Ae[p.message]=!0,pe(_),g("Failed %s type: %s",i,p.message),pe(null))}}}var Br=Array.isArray;function Ee(e){return Br(e)}function Vr(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,i=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return i}}function Yr(e){try{return Ve(e),!1}catch{return!0}}function Ve(e){return""+e}function Ye(e){if(Yr(e))return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Vr(e)),Ve(e)}var de=b.ReactCurrentOwner,Mr={key:!0,ref:!0,__self:!0,__source:!0},Me,Ue,je;je={};function Ur(e){if(fe.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Kr(e){if(fe.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Jr(e,r){if(typeof e.ref=="string"&&de.current&&r&&de.current.stateNode!==r){var i=j(de.current.type);je[i]||(g('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',j(de.current.type),e.ref),je[i]=!0)}}function Gr(e,r){{var i=function(){Me||(Me=!0,g("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};i.isReactWarning=!0,Object.defineProperty(e,"key",{get:i,configurable:!0})}}function Xr(e,r){{var i=function(){Ue||(Ue=!0,g("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};i.isReactWarning=!0,Object.defineProperty(e,"ref",{get:i,configurable:!0})}}var Hr=function(e,r,i,d,_,R,x){var p={$$typeof:s,type:e,key:r,ref:i,props:x,_owner:R};return p._store={},Object.defineProperty(p._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(p,"_self",{configurable:!1,enumerable:!1,writable:!1,value:d}),Object.defineProperty(p,"_source",{configurable:!1,enumerable:!1,writable:!1,value:_}),Object.freeze&&(Object.freeze(p.props),Object.freeze(p)),p};function Zr(e,r,i,d,_){{var R,x={},p=null,B=null;i!==void 0&&(Ye(i),p=""+i),Kr(r)&&(Ye(r.key),p=""+r.key),Ur(r)&&(B=r.ref,Jr(r,_));for(R in r)fe.call(r,R)&&!Mr.hasOwnProperty(R)&&(x[R]=r[R]);if(e&&e.defaultProps){var P=e.defaultProps;for(R in P)x[R]===void 0&&(x[R]=P[R])}if(p||B){var w=typeof e=="function"?e.displayName||e.name||"Unknown":e;p&&Gr(x,w),B&&Xr(x,w)}return Hr(e,p,B,_,d,de.current,x)}}var ke=b.ReactCurrentOwner,Ke=b.ReactDebugCurrentFrame;function ae(e){if(e){var r=e._owner,i=ge(e.type,e._source,r?r.type:null);Ke.setExtraStackFrame(i)}else Ke.setExtraStackFrame(null)}var Ne;Ne=!1;function Ie(e){return typeof e=="object"&&e!==null&&e.$$typeof===s}function Je(){{if(ke.current){var e=j(ke.current.type);if(e)return`
|
22
|
+
|
23
|
+
Check the render method of \``+e+"`."}return""}}function Qr(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),i=e.lineNumber;return`
|
24
|
+
|
25
|
+
Check your code at `+r+":"+i+"."}return""}}var Ge={};function qr(e){{var r=Je();if(!r){var i=typeof e=="string"?e:e.displayName||e.name;i&&(r=`
|
26
|
+
|
27
|
+
Check the top-level render call using <`+i+">.")}return r}}function Xe(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var i=qr(r);if(Ge[i])return;Ge[i]=!0;var d="";e&&e._owner&&e._owner!==ke.current&&(d=" It was passed a child from "+j(e._owner.type)+"."),ae(e),g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',i,d),ae(null)}}function He(e,r){{if(typeof e!="object")return;if(Ee(e))for(var i=0;i<e.length;i++){var d=e[i];Ie(d)&&Xe(d,r)}else if(Ie(e))e._store&&(e._store.validated=!0);else if(e){var _=F(e);if(typeof _=="function"&&_!==e.entries)for(var R=_.call(e),x;!(x=R.next()).done;)Ie(x.value)&&Xe(x.value,r)}}}function en(e){{var r=e.type;if(r==null||typeof r=="string")return;var i;if(typeof r=="function")i=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===f||r.$$typeof===y))i=r.propTypes;else return;if(i){var d=j(r);Ar(i,e.props,"prop",d,e)}else if(r.PropTypes!==void 0&&!Ne){Ne=!0;var _=j(r);g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",_||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function rn(e){{for(var r=Object.keys(e.props),i=0;i<r.length;i++){var d=r[i];if(d!=="children"&&d!=="key"){ae(e),g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",d),ae(null);break}}e.ref!==null&&(ae(e),g("Invalid attribute `ref` supplied to `React.Fragment`."),ae(null))}}var Ze={};function Qe(e,r,i,d,_,R){{var x=A(e);if(!x){var p="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(p+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var B=Qr(_);B?p+=B:p+=Je();var P;e===null?P="null":Ee(e)?P="array":e!==void 0&&e.$$typeof===s?(P="<"+(j(e.type)||"Unknown")+" />",p=" Did you accidentally export a JSX literal instead of a component?"):P=typeof e,g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",P,p)}var w=Zr(e,r,i,_,R);if(w==null)return w;if(x){var J=r.children;if(J!==void 0)if(d)if(Ee(J)){for(var ce=0;ce<J.length;ce++)He(J[ce],e);Object.freeze&&Object.freeze(J)}else g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else He(J,e)}if(fe.call(r,"key")){var ee=j(e),M=Object.keys(r).filter(function(cn){return cn!=="key"}),Pe=M.length>0?"{key: someKey, "+M.join(": ..., ")+": ...}":"{key: someKey}";if(!Ze[ee+Pe]){var an=M.length>0?"{"+M.join(": ..., ")+": ...}":"{}";g(`A props object containing a "key" prop is being spread into JSX:
|
28
|
+
let props = %s;
|
29
|
+
<%s {...props} />
|
30
|
+
React keys must be passed directly to JSX without using spread:
|
31
|
+
let props = %s;
|
32
|
+
<%s key={someKey} {...props} />`,Pe,ee,an,ee),Ze[ee+Pe]=!0}}return e===a?rn(w):en(w),w}}function nn(e,r,i){return Qe(e,r,i,!0)}function tn(e,r,i){return Qe(e,r,i,!1)}var sn=tn,on=nn;le.Fragment=a,le.jsx=sn,le.jsxs=on}()),le}process.env.NODE_ENV==="production"?be.exports=er():be.exports=rr();var o=be.exports;function he(n,s){return s?o.jsx(s,{size:n,strokeWidth:2.5}):o.jsx(o.Fragment,{})}function nr(n){const{variant:s="ghost",scheme:t="primary",size:a="md",leftIcon:c,rightIcon:l,className:h="",children:u,...f}=n,v={md:12,lg:14}[a];return{className:`arkyn_badge ${s} ${t} ${a} ${h}`.trim(),children:u,leftIcon:he(v,c),rightIcon:he(v,l),...f}}function tr(n){const{leftIcon:s,children:t,rightIcon:a,...c}=nr(n);return o.jsxs("div",{...c,children:[s,t,a]})}function sr(n){const{className:s,orientation:t="horizontal",...a}=n,c=`arkyn_divider ${t} ${s}`;return o.jsx("div",{className:c,...a})}function ir(n){const{isLoading:s=!1,scheme:t="primary",variant:a="solid",loadingText:c,size:l="md",leftIcon:h,rightIcon:u,disabled:f,className:m="",children:v,...y}=n,C={xs:12,sm:16,md:20,lg:24}[l];return{className:`arkyn_button loading_text_${!!c} ${a} ${t} ${l} loading_${s} ${m}`.trim(),loadingText:c,children:v,iconSize:C,disabled:f||s,leftIcon:he(C,h),rightIcon:he(C,u),...y}}function or(n){const{leftIcon:s,rightIcon:t,iconSize:a,children:c,loadingText:l,...h}=ir(n);return o.jsxs("button",{...h,children:[o.jsxs("div",{className:"spinner",children:[o.jsx(Q.Loader2,{size:a,strokeWidth:2.5}),l&&l]}),o.jsxs("div",{className:"content",children:[s,c,t]})]})}const Oe=N.createContext({});function ar({children:n,...s}){var u,f;const t=ye.useActionData(),a=N.useRef(null),c=((u=a.current)==null?void 0:u.name)||"",l=((f=t==null?void 0:t.fieldErrors)==null?void 0:f[c])||null,h=N.useId();return o.jsx(Oe.Provider,{value:{error:l,id:h,inputRef:a},children:o.jsx("section",{className:"arkyn_form_controller",...s,children:n})})}function re(){return N.useContext(Oe)}function cr(){const{error:n}=re();return n?o.jsx("strong",{className:"arkyn_form_error",children:n}):o.jsx(o.Fragment,{})}function ur(n){const{showAsterisk:s=!1,className:t="",...a}=n;return{className:`arkyn_form_label ${s?"show-asterisk":""} ${t}`.trim(),...a}}function lr(n){const{id:s}=re();return o.jsx("label",{...ur(n),htmlFor:s})}const Fe={xs:12,sm:16,md:20,lg:24};function fr(n){const{isLoading:s=!1,scheme:t="primary",variant:a="solid",size:c="md",icon:l,disabled:h,className:u="",...f}=n,m=`arkyn_icon_button ${a} ${t} ${c} loading_${s} ${u}`;return o.jsxs("button",{disabled:h||s,className:m.trim(),...f,children:[o.jsx("div",{className:"spinner",children:o.jsx(Q.Loader2,{size:Fe[c],strokeWidth:2.5})}),o.jsx("div",{className:"content "+c,children:o.jsx(l,{size:Fe[c],strokeWidth:2.5})})]})}function q(n,s,t){if(!n)return o.jsx(o.Fragment,{});if(typeof n=="string")return o.jsx("p",{className:t,children:n});const a=n;return o.jsx("p",{className:t,children:o.jsx(a,{color:"var(--secondary-600)",size:s,strokeWidth:2.5})})}function dr(n,s){const{isLoading:t,isError:a,size:c="md",className:l="",variant:h="solid",prefix:u,sufix:f,leftIcon:m,rightIcon:v,disabled:y,readOnly:S,onFocus:C,onBlur:T,title:O,style:F,onChange:b,...g}=n,E=v?"right":"left",L=`arkyn_input ${u?"hasPrefix":""} ${f?"hasSufix":""} ${h} ${c} ${y||S||t?"opacity":""} ${a?"errored":""} ${s?"focused":""} ${l}`,I={md:14,lg:16}[c];return{isLoading:t,className:L,prefix:q(u,I,"prefix"),sufix:q(f,I,"sufix"),LeftIcon:m,RightIcon:v,disabled:y,readOnly:S,onFocus:C,onBlur:T,title:O,style:F,onChange:b,loadingPosition:E,iconSize:I,Spinner:o.jsx(Q.Loader2,{className:"spinner",size:I,strokeWidth:2.5}),...g}}function _e(n){return n&&n.replace(/[^0-9]/g,"")}function hr(n,s){let t="",a=0;return Array.from(n).forEach((c,l)=>{s[l+a].match(/[0-9]/)||(t+=s[l+a],a++),t+=c}),t}function mr(n){return n.length>11?"CNPJ":"CPF"}const Le={CPF:"999.999.999-999",CNPJ:"99.999.999/9999-99"},vr=_e(Le.CNPJ).length;function gr(n){const[s,t]=N.useState(!1),[a,c]=N.useState(_e((n==null?void 0:n.defaultValue)||"")),l=N.useRef(null),{inputRef:h,id:u,error:f}=re(),m=h||l,v=n.isError||!!f,{disabled:y,title:S,style:C,className:T,prefix:O,sufix:F,iconSize:b,loadingPosition:g,isLoading:E,LeftIcon:$,readOnly:V,onFocus:z,onBlur:D,RightIcon:Y,Spinner:L,onChange:A,value:I,defaultValue:W="",...j}=dr({...n,id:u,isError:v},s),U=$&&!E,G=Y&&!E,H=g==="left"&&E,ne=g==="right"&&E;function te(){y||!(m!=null&&m.current)||(t(!0),m.current.focus())}function se(K){let X=_e(K.target.value);const Z=mr(X);X.length>vr||(X=hr(X,Le[Z]),K.target.value=X,c(X),A&&A(K))}function ie(K){t(!0),z&&z(K)}function oe(K){t(!1),D&&D(K)}return o.jsxs("section",{title:S,style:C,onClick:te,className:T,children:[O,H&&L,U&&o.jsx($,{size:b,strokeWidth:2.5}),o.jsx("input",{disabled:y||E,readOnly:V,ref:m,value:I||a,onFocus:ie,onChange:se,onBlur:oe,...j}),G&&o.jsx(Y,{size:b,strokeWidth:2.5}),ne&&L,F]})}function pr(n,s){const{isLoading:t,isError:a,size:c="md",className:l="",variant:h="solid",prefix:u,sufix:f,leftIcon:m,rightIcon:v,disabled:y,readOnly:S,onFocus:C,onBlur:T,title:O,style:F,showCents:b=!1,max:g=1e9,onChange:E,...$}=n,V=v?"right":"left",I=`arkyn_input ${u?"hasPrefix":""} ${f?"hasSufix":""} ${h} ${c} ${y||S||t?"opacity":""} ${a?"errored":""} ${s?"focused":""} ${l}`,j={md:14,lg:16}[c];return{isLoading:t,className:I,prefix:q(u,j,"prefix"),sufix:q(f,j,"sufix"),LeftIcon:m,RightIcon:v,disabled:y,readOnly:S,onFocus:C,onBlur:T,title:O,style:F,max:g,onChange:E,showCents:b,loadingPosition:V,iconSize:j,Spinner:o.jsx(Q.Loader2,{className:"spinner",size:j,strokeWidth:2.5}),...$}}const yr=/^[1-9]{1}$/,xr=/^[0-9]{1}$/,$e=8;function br(n,s){if(n===0)return"";const t=(n/100).toLocaleString("pt-BR",{style:"currency",currency:"BRL"});return s?t:t.replace("R$","").trim()}function _r(n){const{currencyValue:s,event:t,max:a,setCurrencyValue:c}=n,{key:l,keyCode:h}=t;if(s===0&&!yr.test(l)||s!==0&&!xr.test(l)&&h!==$e)return;const u=s.toString();let f;if(h!==$e){const m=s===0?l:`${u}${l}`;f=Number.parseInt(m,10)}else{const m=u.slice(0,-1);f=m===""?0:Number.parseInt(m,10)}f>Number(a)||c(f)}function Sr(n){const[s,t]=N.useState(!1),[a,c]=N.useState(n.defaultValue||0),l=N.useRef(null),{inputRef:h,id:u,error:f}=re(),m=h||l,v=n.isError||!!f,{disabled:y,title:S,style:C,className:T,prefix:O,sufix:F,iconSize:b,loadingPosition:g,isLoading:E,LeftIcon:$,readOnly:V,onFocus:z,onBlur:D,RightIcon:Y,Spinner:L,value:A,max:I,onKeyDown:W,onChange:j,showCents:U,...G}=pr({...n,id:u,isError:v},s),H=$&&!E,ne=Y&&!E,te=g==="left"&&E,se=g==="right"&&E;function ie(){y||!(m!=null&&m.current)||(t(!0),m.current.focus())}function oe(Z){_r({currencyValue:a,event:Z,max:I,setCurrencyValue:c}),j&&j(a),W&&W(Z)}function K(Z){t(!0),z&&z(Z)}function X(Z){t(!1),D&&D(Z)}return o.jsxs("section",{title:S,style:C,onClick:ie,className:T,children:[O,te&&L,H&&o.jsx($,{size:b,strokeWidth:2.5}),o.jsx("input",{value:br(A||a,U),onKeyDown:oe,disabled:y||E,readOnly:V,ref:m,onFocus:K,onChange:()=>{},onBlur:X,...G}),se&&L,ne&&o.jsx(Y,{size:b,strokeWidth:2.5}),F]})}function Rr(n,s){const{isLoading:t,isError:a,size:c="md",className:l="",variant:h="solid",prefix:u,sufix:f,leftIcon:m,rightIcon:v,disabled:y,readOnly:S,onFocus:C,onBlur:T,title:O,style:F,onChange:b,showMask:g=!0,...E}=n,$=v?"right":"left",A=`arkyn_input ${u?"hasPrefix":""} ${f?"hasSufix":""} ${h} ${c} ${y||S||t?"opacity":""} ${a?"errored":""} ${s?"focused":""} ${l}`,W={md:14,lg:16}[c];return{isLoading:t,className:A,prefix:q(u,W,"prefix"),sufix:q(f,W,"sufix"),LeftIcon:m,RightIcon:v,disabled:y,readOnly:S,onFocus:C,onBlur:T,title:O,style:F,onChange:b,loadingPosition:$,iconSize:W,showMask:g,Spinner:o.jsx(Q.Loader2,{className:"spinner",size:W,strokeWidth:2.5}),...E}}function Cr(n){const[s,t]=N.useState(!1),a=N.useRef(null),{inputRef:c,id:l,error:h}=re(),u=c||a,f=n.isError||!!h,{disabled:m,title:v,style:y,className:S,prefix:C,sufix:T,iconSize:O,loadingPosition:F,isLoading:b,LeftIcon:g,readOnly:E,onFocus:$,onBlur:V,RightIcon:z,Spinner:D,...Y}=Rr({...n,id:l,isError:f},s),L=g&&!b,A=z&&!b,I=F==="left"&&b,W=F==="right"&&b;function j(){m||!(u!=null&&u.current)||(t(!0),u.current.focus())}return o.jsxs("section",{title:v,style:y,onClick:j,className:S,children:[C,I&&D,L&&o.jsx(g,{size:O,strokeWidth:2.5}),o.jsx(qe.InputMask,{}),A&&o.jsx(z,{size:O,strokeWidth:2.5}),W&&D,T]})}function Er(n,s){const{isLoading:t,isError:a,size:c="md",className:l="",variant:h="solid",prefix:u,sufix:f,leftIcon:m,rightIcon:v,disabled:y,readOnly:S,onFocus:C,onBlur:T,title:O,style:F,onChange:b,...g}=n,E=v?"right":"left",L=`arkyn_input ${u?"hasPrefix":""} ${f?"hasSufix":""} ${h} ${c} ${y||S||t?"opacity":""} ${a?"errored":""} ${s?"focused":""} ${l}`,I={md:14,lg:16}[c];return{isLoading:t,className:L,prefix:q(u,I,"prefix"),sufix:q(f,I,"sufix"),LeftIcon:m,RightIcon:v,disabled:y,readOnly:S,onFocus:C,onBlur:T,title:O,style:F,onChange:b,loadingPosition:E,iconSize:I,Spinner:o.jsx(Q.Loader2,{className:"spinner",size:I,strokeWidth:2.5}),...g}}function jr(n){const[s,t]=N.useState(!1),a=N.useRef(null),{inputRef:c,id:l,error:h}=re(),u=c||a,f=n.isError||!!h,{disabled:m,title:v,style:y,className:S,prefix:C,sufix:T,iconSize:O,loadingPosition:F,isLoading:b,LeftIcon:g,readOnly:E,onFocus:$,onBlur:V,RightIcon:z,Spinner:D,...Y}=Er({...n,id:l,isError:f},s),L=g&&!b,A=z&&!b,I=F==="left"&&b,W=F==="right"&&b;function j(){m||!(u!=null&&u.current)||(t(!0),u.current.focus())}function U(H){t(!0),$&&$(H)}function G(H){t(!1),V&&V(H)}return o.jsxs("section",{title:v,style:y,onClick:j,className:S,children:[C,I&&D,L&&o.jsx(g,{size:O,strokeWidth:2.5}),o.jsx("input",{disabled:m||b,readOnly:E,ref:u,onFocus:U,onBlur:G,...Y}),A&&o.jsx(z,{size:O,strokeWidth:2.5}),W&&D,T]})}function kr(n){return n.type==="currency"?o.jsx(Sr,{...n}):n.type==="masked"?o.jsx(Cr,{...n}):n.type==="cpf-cpnj"?o.jsx(gr,{...n}):o.jsx(jr,{...n})}function Nr(n){const{className:s="",...t}=n;return{className:`arkyn_breadcrumb ${s}`.trim(),...t}}function Ir(n){const{pathname:s}=ye.useLocation(),{className:t="",disabled:a=!1,to:c,...l}=n,h=s===c?"active":"inactive",u=`arkyn_breadcrumb_link ${h} ${t}`;return{to:c,className:u.trim(),disabled:a||h==="active",...l}}function Pr(n){const{className:s,...t}=Nr(n);return o.jsx("nav",{className:s,...t})}function wr(n){const{children:s,className:t,disabled:a,...c}=Ir(n);return a?o.jsxs("p",{className:t,children:[o.jsx(Q.ChevronRight,{size:14,strokeWidth:2.5}),s]}):o.jsxs(ye.Link,{className:t,...c,children:[o.jsx(Q.ChevronRight,{size:14,strokeWidth:2.5}),s]})}const ze=N.createContext({});function Tr(n){const{isVisibled:s,makeInvisible:t,children:a,className:c="",...l}=n,u=`arkyn_modal_container ${s?"visible":""} ${c}`;return o.jsx(ze.Provider,{value:{makeInvisible:t},children:o.jsx(xe.AnimatePresence,{children:s&&o.jsxs("aside",{className:u.trim(),...l,children:[o.jsx(xe.motion.div,{className:"overlay",transition:{duration:.15,ease:"easeOut"},initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:t}),o.jsx(xe.motion.div,{className:"content",transition:{duration:.15,ease:"easeOut"},initial:{opacity:0,scale:.75},animate:{opacity:1,scale:1},exit:{opacity:0,scale:0},children:a})]})})})}function Or(n){const{alignment:s="right",className:t,...a}=n,c=`arkyn_modal_footer ${s} ${t}`;return o.jsx("footer",{className:c.trim(),...a})}function Fr(n){const{showCloseButton:s,className:t,children:a,...c}=n,{makeInvisible:l}=N.useContext(ze),u=`arkyn_modal_header ${s?"show-close":""} ${t}`;return o.jsxs("header",{className:u.trim(),...c,children:[a,o.jsx("button",{type:"button",onClick:l,children:o.jsx(Q.X,{size:24})})]})}const Lr={Container:Tr,Header:Fr,Footer:Or};function $r(n){const{text:s,size:t="lg",children:a,orientation:c="top",className:l,...h}=n;return o.jsxs("div",{className:`arkyn_tooltip ${t} ${c} ${l}`,...h,children:[a,o.jsx("div",{className:"arkyn_tooltip_text",children:s})]})}k.Badge=tr,k.Breadcrumb=Pr,k.BreadcrumbLink=wr,k.Button=or,k.Divider=sr,k.FormController=ar,k.FormError=cr,k.FormLabel=lr,k.IconButton=fr,k.Input=kr,k.Modal=Lr,k.Tooltip=$r,Object.defineProperty(k,Symbol.toStringTag,{value:"Module"})});
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG/C,OAAO,cAAc,CAAC;AAEtB,iBAAS,KAAK,CAAC,IAAI,EAAE,UAAU,2CAU9B;AAED,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import { buildBadgeConfig } from "../../config/buildBadgeConfig";
|
3
|
+
import "./styles.css";
|
4
|
+
function Badge(args) {
|
5
|
+
const { leftIcon, children, rightIcon, ...rest } = buildBadgeConfig(args);
|
6
|
+
return (_jsxs("div", { ...rest, children: [leftIcon, children, rightIcon] }));
|
7
|
+
}
|
8
|
+
export { Badge };
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import type { BreadcrumbLinkProps, BreadcrumbProps } from "@arkyn/types";
|
2
|
+
import "./styles.css";
|
3
|
+
declare function Breadcrumb(args: BreadcrumbProps): import("react/jsx-runtime").JSX.Element;
|
4
|
+
declare function BreadcrumbLink(args: BreadcrumbLinkProps): import("react/jsx-runtime").JSX.Element;
|
5
|
+
export { Breadcrumb, BreadcrumbLink };
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Breadcrumb/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAMzE,OAAO,cAAc,CAAC;AAEtB,iBAAS,UAAU,CAAC,IAAI,EAAE,eAAe,2CAGxC;AAED,iBAAS,cAAc,CAAC,IAAI,EAAE,mBAAmB,2CAmBhD;AAED,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,CAAC"}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import { Link } from "@remix-run/react";
|
3
|
+
import { ChevronRight } from "lucide-react";
|
4
|
+
import { buildBreadcrumbConfig } from "../../config/buildBreadcrumbConfig";
|
5
|
+
import { buildBreadcrumbLinkConfig } from "../../config/buildBreadcrumLinkConfig";
|
6
|
+
import "./styles.css";
|
7
|
+
function Breadcrumb(args) {
|
8
|
+
const { className, ...rest } = buildBreadcrumbConfig(args);
|
9
|
+
return _jsx("nav", { className: className, ...rest });
|
10
|
+
}
|
11
|
+
function BreadcrumbLink(args) {
|
12
|
+
const { children, className, disabled, ...rest } = buildBreadcrumbLinkConfig(args);
|
13
|
+
if (disabled) {
|
14
|
+
return (_jsxs("p", { className: className, children: [_jsx(ChevronRight, { size: 14, strokeWidth: 2.5 }), children] }));
|
15
|
+
}
|
16
|
+
return (_jsxs(Link, { className: className, ...rest, children: [_jsx(ChevronRight, { size: 14, strokeWidth: 2.5 }), children] }));
|
17
|
+
}
|
18
|
+
export { Breadcrumb, BreadcrumbLink };
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Button/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAIhD,OAAO,cAAc,CAAC;AAEtB,iBAAS,MAAM,CAAC,IAAI,EAAE,WAAW,2CAkBhC;AAED,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import { Loader2 } from "lucide-react";
|
3
|
+
import { buildButtonConfig } from "../../config/buildButtonConfig";
|
4
|
+
import "./styles.css";
|
5
|
+
function Button(args) {
|
6
|
+
const { leftIcon, rightIcon, iconSize, children, loadingText, ...rest } = buildButtonConfig(args);
|
7
|
+
return (_jsxs("button", { ...rest, children: [_jsxs("div", { className: "spinner", children: [_jsx(Loader2, { size: iconSize, strokeWidth: 2.5 }), loadingText && loadingText] }), _jsxs("div", { className: "content", children: [leftIcon, children, rightIcon] })] }));
|
8
|
+
}
|
9
|
+
export { Button };
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Divider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAEjD,OAAO,cAAc,CAAC;AAEtB,iBAAS,OAAO,CAAC,IAAI,EAAE,YAAY,2CAUlC;AAED,OAAO,EAAE,OAAO,EAAE,CAAC"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import "./styles.css";
|
3
|
+
function Divider(args) {
|
4
|
+
const { className: baseClassName, orientation = "horizontal", ...rest } = args;
|
5
|
+
const className = `arkyn_divider ${orientation} ${baseClassName}`;
|
6
|
+
return _jsx("div", { className: className, ...rest });
|
7
|
+
}
|
8
|
+
export { Divider };
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import type { FormControllerContextProps, FormControllerProps } from "@arkyn/types";
|
2
|
+
import "./styles.css";
|
3
|
+
declare function FormController({ children, ...rest }: FormControllerProps): import("react/jsx-runtime").JSX.Element;
|
4
|
+
declare function useFormController(): FormControllerContextProps;
|
5
|
+
export { FormController, useFormController };
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/FormController/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,0BAA0B,EAC1B,mBAAmB,EACpB,MAAM,cAAc,CAAC;AAKtB,OAAO,cAAc,CAAC;AAItB,iBAAS,cAAc,CAAC,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,mBAAmB,2CAiBjE;AAED,iBAAS,iBAAiB,+BAEzB;AAED,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,CAAC"}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import { useActionData } from "@remix-run/react";
|
3
|
+
import { createContext, useContext, useId, useRef } from "react";
|
4
|
+
import "./styles.css";
|
5
|
+
const FormControllerContext = createContext({});
|
6
|
+
function FormController({ children, ...rest }) {
|
7
|
+
const actionData = useActionData();
|
8
|
+
const inputRef = useRef(null);
|
9
|
+
const name = inputRef.current?.name || "";
|
10
|
+
const error = actionData?.fieldErrors?.[name] || null;
|
11
|
+
const id = useId();
|
12
|
+
return (_jsx(FormControllerContext.Provider, { value: { error, id, inputRef }, children: _jsx("section", { className: "arkyn_form_controller", ...rest, children: children }) }));
|
13
|
+
}
|
14
|
+
function useFormController() {
|
15
|
+
return useContext(FormControllerContext);
|
16
|
+
}
|
17
|
+
export { FormController, useFormController };
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/FormError/index.tsx"],"names":[],"mappings":"AAEA,OAAO,cAAc,CAAC;AAEtB,iBAAS,SAAS,4CAIjB;AAED,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import { useFormController } from "../FormController";
|
3
|
+
import "./styles.css";
|
4
|
+
function FormError() {
|
5
|
+
const { error } = useFormController();
|
6
|
+
if (!error)
|
7
|
+
return _jsx(_Fragment, {});
|
8
|
+
return _jsx("strong", { className: "arkyn_form_error", children: error });
|
9
|
+
}
|
10
|
+
export { FormError };
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/FormLabel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAKnD,OAAO,cAAc,CAAC;AAEtB,iBAAS,SAAS,CAAC,KAAK,EAAE,cAAc,2CAGvC;AAED,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import { buildFormLabelConfig } from "../../../config/buildFormLabelConfig";
|
3
|
+
import { useFormController } from "../FormController";
|
4
|
+
import "./styles.css";
|
5
|
+
function FormLabel(props) {
|
6
|
+
const { id } = useFormController();
|
7
|
+
return _jsx("label", { ...buildFormLabelConfig(props), htmlFor: id });
|
8
|
+
}
|
9
|
+
export { FormLabel };
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Form/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/IconButton/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAGpD,OAAO,cAAc,CAAC;AAStB,iBAAS,UAAU,CAAC,IAAI,EAAE,eAAe,2CA6BxC;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import { Loader2 } from "lucide-react";
|
3
|
+
import "./styles.css";
|
4
|
+
const iconSize = {
|
5
|
+
xs: 12,
|
6
|
+
sm: 16,
|
7
|
+
md: 20,
|
8
|
+
lg: 24,
|
9
|
+
};
|
10
|
+
function IconButton(args) {
|
11
|
+
const { isLoading = false, scheme = "primary", variant = "solid", size = "md", icon: Icon, disabled, className: baseClassName = "", ...rest } = args;
|
12
|
+
const className = `arkyn_icon_button ${variant} ${scheme} ${size} loading_${isLoading} ${baseClassName}`;
|
13
|
+
return (_jsxs("button", { disabled: disabled || isLoading, className: className.trim(), ...rest, children: [_jsx("div", { className: "spinner", children: _jsx(Loader2, { size: iconSize[size], strokeWidth: 2.5 }) }), _jsx("div", { className: "content " + size, children: _jsx(Icon, { size: iconSize[size], strokeWidth: 2.5 }) })] }));
|
14
|
+
}
|
15
|
+
export { IconButton };
|
@@ -0,0 +1,308 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { CpfCnpjInputProps } from "@arkyn/types";
|
3
|
+
declare function getConfig(props: CpfCnpjInputProps, isFocused: boolean): {
|
4
|
+
suppressHydrationWarning?: boolean;
|
5
|
+
color?: string;
|
6
|
+
height?: string | number;
|
7
|
+
id?: string;
|
8
|
+
lang?: string;
|
9
|
+
max?: string | number;
|
10
|
+
min?: string | number;
|
11
|
+
name: string;
|
12
|
+
type: "cpf-cpnj";
|
13
|
+
width?: string | number;
|
14
|
+
role?: import("react").AriaRole;
|
15
|
+
tabIndex?: number;
|
16
|
+
"aria-activedescendant"?: string;
|
17
|
+
"aria-atomic"?: boolean | "true" | "false";
|
18
|
+
"aria-autocomplete"?: "list" | "none" | "inline" | "both";
|
19
|
+
"aria-braillelabel"?: string;
|
20
|
+
"aria-brailleroledescription"?: string;
|
21
|
+
"aria-busy"?: boolean | "true" | "false";
|
22
|
+
"aria-checked"?: boolean | "true" | "false" | "mixed";
|
23
|
+
"aria-colcount"?: number;
|
24
|
+
"aria-colindex"?: number;
|
25
|
+
"aria-colindextext"?: string;
|
26
|
+
"aria-colspan"?: number;
|
27
|
+
"aria-controls"?: string;
|
28
|
+
"aria-current"?: boolean | "true" | "false" | "page" | "step" | "location" | "date" | "time";
|
29
|
+
"aria-describedby"?: string;
|
30
|
+
"aria-description"?: string;
|
31
|
+
"aria-details"?: string;
|
32
|
+
"aria-disabled"?: boolean | "true" | "false";
|
33
|
+
"aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup";
|
34
|
+
"aria-errormessage"?: string;
|
35
|
+
"aria-expanded"?: boolean | "true" | "false";
|
36
|
+
"aria-flowto"?: string;
|
37
|
+
"aria-grabbed"?: boolean | "true" | "false";
|
38
|
+
"aria-haspopup"?: boolean | "true" | "false" | "dialog" | "grid" | "listbox" | "menu" | "tree";
|
39
|
+
"aria-hidden"?: boolean | "true" | "false";
|
40
|
+
"aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling";
|
41
|
+
"aria-keyshortcuts"?: string;
|
42
|
+
"aria-label"?: string;
|
43
|
+
"aria-labelledby"?: string;
|
44
|
+
"aria-level"?: number;
|
45
|
+
"aria-live"?: "off" | "assertive" | "polite";
|
46
|
+
"aria-modal"?: boolean | "true" | "false";
|
47
|
+
"aria-multiline"?: boolean | "true" | "false";
|
48
|
+
"aria-multiselectable"?: boolean | "true" | "false";
|
49
|
+
"aria-orientation"?: "horizontal" | "vertical";
|
50
|
+
"aria-owns"?: string;
|
51
|
+
"aria-placeholder"?: string;
|
52
|
+
"aria-posinset"?: number;
|
53
|
+
"aria-pressed"?: boolean | "true" | "false" | "mixed";
|
54
|
+
"aria-readonly"?: boolean | "true" | "false";
|
55
|
+
"aria-relevant"?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals";
|
56
|
+
"aria-required"?: boolean | "true" | "false";
|
57
|
+
"aria-roledescription"?: string;
|
58
|
+
"aria-rowcount"?: number;
|
59
|
+
"aria-rowindex"?: number;
|
60
|
+
"aria-rowindextext"?: string;
|
61
|
+
"aria-rowspan"?: number;
|
62
|
+
"aria-selected"?: boolean | "true" | "false";
|
63
|
+
"aria-setsize"?: number;
|
64
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other";
|
65
|
+
"aria-valuemax"?: number;
|
66
|
+
"aria-valuemin"?: number;
|
67
|
+
"aria-valuenow"?: number;
|
68
|
+
"aria-valuetext"?: string;
|
69
|
+
children?: import("react").ReactNode;
|
70
|
+
dangerouslySetInnerHTML?: {
|
71
|
+
__html: string | TrustedHTML;
|
72
|
+
};
|
73
|
+
onCopy?: import("react").ClipboardEventHandler<HTMLInputElement>;
|
74
|
+
onCopyCapture?: import("react").ClipboardEventHandler<HTMLInputElement>;
|
75
|
+
onCut?: import("react").ClipboardEventHandler<HTMLInputElement>;
|
76
|
+
onCutCapture?: import("react").ClipboardEventHandler<HTMLInputElement>;
|
77
|
+
onPaste?: import("react").ClipboardEventHandler<HTMLInputElement>;
|
78
|
+
onPasteCapture?: import("react").ClipboardEventHandler<HTMLInputElement>;
|
79
|
+
onCompositionEnd?: import("react").CompositionEventHandler<HTMLInputElement>;
|
80
|
+
onCompositionEndCapture?: import("react").CompositionEventHandler<HTMLInputElement>;
|
81
|
+
onCompositionStart?: import("react").CompositionEventHandler<HTMLInputElement>;
|
82
|
+
onCompositionStartCapture?: import("react").CompositionEventHandler<HTMLInputElement>;
|
83
|
+
onCompositionUpdate?: import("react").CompositionEventHandler<HTMLInputElement>;
|
84
|
+
onCompositionUpdateCapture?: import("react").CompositionEventHandler<HTMLInputElement>;
|
85
|
+
onFocusCapture?: import("react").FocusEventHandler<HTMLInputElement>;
|
86
|
+
onBlurCapture?: import("react").FocusEventHandler<HTMLInputElement>;
|
87
|
+
onChangeCapture?: import("react").FormEventHandler<HTMLInputElement>;
|
88
|
+
onBeforeInput?: import("react").FormEventHandler<HTMLInputElement>;
|
89
|
+
onBeforeInputCapture?: import("react").FormEventHandler<HTMLInputElement>;
|
90
|
+
onInput?: import("react").FormEventHandler<HTMLInputElement>;
|
91
|
+
onInputCapture?: import("react").FormEventHandler<HTMLInputElement>;
|
92
|
+
onReset?: import("react").FormEventHandler<HTMLInputElement>;
|
93
|
+
onResetCapture?: import("react").FormEventHandler<HTMLInputElement>;
|
94
|
+
onSubmit?: import("react").FormEventHandler<HTMLInputElement>;
|
95
|
+
onSubmitCapture?: import("react").FormEventHandler<HTMLInputElement>;
|
96
|
+
onInvalid?: import("react").FormEventHandler<HTMLInputElement>;
|
97
|
+
onInvalidCapture?: import("react").FormEventHandler<HTMLInputElement>;
|
98
|
+
onLoad?: import("react").ReactEventHandler<HTMLInputElement>;
|
99
|
+
onLoadCapture?: import("react").ReactEventHandler<HTMLInputElement>;
|
100
|
+
onError?: import("react").ReactEventHandler<HTMLInputElement>;
|
101
|
+
onErrorCapture?: import("react").ReactEventHandler<HTMLInputElement>;
|
102
|
+
onKeyDown?: import("react").KeyboardEventHandler<HTMLInputElement>;
|
103
|
+
onKeyDownCapture?: import("react").KeyboardEventHandler<HTMLInputElement>;
|
104
|
+
onKeyPress?: import("react").KeyboardEventHandler<HTMLInputElement>;
|
105
|
+
onKeyPressCapture?: import("react").KeyboardEventHandler<HTMLInputElement>;
|
106
|
+
onKeyUp?: import("react").KeyboardEventHandler<HTMLInputElement>;
|
107
|
+
onKeyUpCapture?: import("react").KeyboardEventHandler<HTMLInputElement>;
|
108
|
+
onAbort?: import("react").ReactEventHandler<HTMLInputElement>;
|
109
|
+
onAbortCapture?: import("react").ReactEventHandler<HTMLInputElement>;
|
110
|
+
onCanPlay?: import("react").ReactEventHandler<HTMLInputElement>;
|
111
|
+
onCanPlayCapture?: import("react").ReactEventHandler<HTMLInputElement>;
|
112
|
+
onCanPlayThrough?: import("react").ReactEventHandler<HTMLInputElement>;
|
113
|
+
onCanPlayThroughCapture?: import("react").ReactEventHandler<HTMLInputElement>;
|
114
|
+
onDurationChange?: import("react").ReactEventHandler<HTMLInputElement>;
|
115
|
+
onDurationChangeCapture?: import("react").ReactEventHandler<HTMLInputElement>;
|
116
|
+
onEmptied?: import("react").ReactEventHandler<HTMLInputElement>;
|
117
|
+
onEmptiedCapture?: import("react").ReactEventHandler<HTMLInputElement>;
|
118
|
+
onEncrypted?: import("react").ReactEventHandler<HTMLInputElement>;
|
119
|
+
onEncryptedCapture?: import("react").ReactEventHandler<HTMLInputElement>;
|
120
|
+
onEnded?: import("react").ReactEventHandler<HTMLInputElement>;
|
121
|
+
onEndedCapture?: import("react").ReactEventHandler<HTMLInputElement>;
|
122
|
+
onLoadedData?: import("react").ReactEventHandler<HTMLInputElement>;
|
123
|
+
onLoadedDataCapture?: import("react").ReactEventHandler<HTMLInputElement>;
|
124
|
+
onLoadedMetadata?: import("react").ReactEventHandler<HTMLInputElement>;
|
125
|
+
onLoadedMetadataCapture?: import("react").ReactEventHandler<HTMLInputElement>;
|
126
|
+
onLoadStart?: import("react").ReactEventHandler<HTMLInputElement>;
|
127
|
+
onLoadStartCapture?: import("react").ReactEventHandler<HTMLInputElement>;
|
128
|
+
onPause?: import("react").ReactEventHandler<HTMLInputElement>;
|
129
|
+
onPauseCapture?: import("react").ReactEventHandler<HTMLInputElement>;
|
130
|
+
onPlay?: import("react").ReactEventHandler<HTMLInputElement>;
|
131
|
+
onPlayCapture?: import("react").ReactEventHandler<HTMLInputElement>;
|
132
|
+
onPlaying?: import("react").ReactEventHandler<HTMLInputElement>;
|
133
|
+
onPlayingCapture?: import("react").ReactEventHandler<HTMLInputElement>;
|
134
|
+
onProgress?: import("react").ReactEventHandler<HTMLInputElement>;
|
135
|
+
onProgressCapture?: import("react").ReactEventHandler<HTMLInputElement>;
|
136
|
+
onRateChange?: import("react").ReactEventHandler<HTMLInputElement>;
|
137
|
+
onRateChangeCapture?: import("react").ReactEventHandler<HTMLInputElement>;
|
138
|
+
onResize?: import("react").ReactEventHandler<HTMLInputElement>;
|
139
|
+
onResizeCapture?: import("react").ReactEventHandler<HTMLInputElement>;
|
140
|
+
onSeeked?: import("react").ReactEventHandler<HTMLInputElement>;
|
141
|
+
onSeekedCapture?: import("react").ReactEventHandler<HTMLInputElement>;
|
142
|
+
onSeeking?: import("react").ReactEventHandler<HTMLInputElement>;
|
143
|
+
onSeekingCapture?: import("react").ReactEventHandler<HTMLInputElement>;
|
144
|
+
onStalled?: import("react").ReactEventHandler<HTMLInputElement>;
|
145
|
+
onStalledCapture?: import("react").ReactEventHandler<HTMLInputElement>;
|
146
|
+
onSuspend?: import("react").ReactEventHandler<HTMLInputElement>;
|
147
|
+
onSuspendCapture?: import("react").ReactEventHandler<HTMLInputElement>;
|
148
|
+
onTimeUpdate?: import("react").ReactEventHandler<HTMLInputElement>;
|
149
|
+
onTimeUpdateCapture?: import("react").ReactEventHandler<HTMLInputElement>;
|
150
|
+
onVolumeChange?: import("react").ReactEventHandler<HTMLInputElement>;
|
151
|
+
onVolumeChangeCapture?: import("react").ReactEventHandler<HTMLInputElement>;
|
152
|
+
onWaiting?: import("react").ReactEventHandler<HTMLInputElement>;
|
153
|
+
onWaitingCapture?: import("react").ReactEventHandler<HTMLInputElement>;
|
154
|
+
onAuxClick?: import("react").MouseEventHandler<HTMLInputElement>;
|
155
|
+
onAuxClickCapture?: import("react").MouseEventHandler<HTMLInputElement>;
|
156
|
+
onClick?: import("react").MouseEventHandler<HTMLInputElement>;
|
157
|
+
onClickCapture?: import("react").MouseEventHandler<HTMLInputElement>;
|
158
|
+
onContextMenu?: import("react").MouseEventHandler<HTMLInputElement>;
|
159
|
+
onContextMenuCapture?: import("react").MouseEventHandler<HTMLInputElement>;
|
160
|
+
onDoubleClick?: import("react").MouseEventHandler<HTMLInputElement>;
|
161
|
+
onDoubleClickCapture?: import("react").MouseEventHandler<HTMLInputElement>;
|
162
|
+
onDrag?: import("react").DragEventHandler<HTMLInputElement>;
|
163
|
+
onDragCapture?: import("react").DragEventHandler<HTMLInputElement>;
|
164
|
+
onDragEnd?: import("react").DragEventHandler<HTMLInputElement>;
|
165
|
+
onDragEndCapture?: import("react").DragEventHandler<HTMLInputElement>;
|
166
|
+
onDragEnter?: import("react").DragEventHandler<HTMLInputElement>;
|
167
|
+
onDragEnterCapture?: import("react").DragEventHandler<HTMLInputElement>;
|
168
|
+
onDragExit?: import("react").DragEventHandler<HTMLInputElement>;
|
169
|
+
onDragExitCapture?: import("react").DragEventHandler<HTMLInputElement>;
|
170
|
+
onDragLeave?: import("react").DragEventHandler<HTMLInputElement>;
|
171
|
+
onDragLeaveCapture?: import("react").DragEventHandler<HTMLInputElement>;
|
172
|
+
onDragOver?: import("react").DragEventHandler<HTMLInputElement>;
|
173
|
+
onDragOverCapture?: import("react").DragEventHandler<HTMLInputElement>;
|
174
|
+
onDragStart?: import("react").DragEventHandler<HTMLInputElement>;
|
175
|
+
onDragStartCapture?: import("react").DragEventHandler<HTMLInputElement>;
|
176
|
+
onDrop?: import("react").DragEventHandler<HTMLInputElement>;
|
177
|
+
onDropCapture?: import("react").DragEventHandler<HTMLInputElement>;
|
178
|
+
onMouseDown?: import("react").MouseEventHandler<HTMLInputElement>;
|
179
|
+
onMouseDownCapture?: import("react").MouseEventHandler<HTMLInputElement>;
|
180
|
+
onMouseEnter?: import("react").MouseEventHandler<HTMLInputElement>;
|
181
|
+
onMouseLeave?: import("react").MouseEventHandler<HTMLInputElement>;
|
182
|
+
onMouseMove?: import("react").MouseEventHandler<HTMLInputElement>;
|
183
|
+
onMouseMoveCapture?: import("react").MouseEventHandler<HTMLInputElement>;
|
184
|
+
onMouseOut?: import("react").MouseEventHandler<HTMLInputElement>;
|
185
|
+
onMouseOutCapture?: import("react").MouseEventHandler<HTMLInputElement>;
|
186
|
+
onMouseOver?: import("react").MouseEventHandler<HTMLInputElement>;
|
187
|
+
onMouseOverCapture?: import("react").MouseEventHandler<HTMLInputElement>;
|
188
|
+
onMouseUp?: import("react").MouseEventHandler<HTMLInputElement>;
|
189
|
+
onMouseUpCapture?: import("react").MouseEventHandler<HTMLInputElement>;
|
190
|
+
onSelect?: import("react").ReactEventHandler<HTMLInputElement>;
|
191
|
+
onSelectCapture?: import("react").ReactEventHandler<HTMLInputElement>;
|
192
|
+
onTouchCancel?: import("react").TouchEventHandler<HTMLInputElement>;
|
193
|
+
onTouchCancelCapture?: import("react").TouchEventHandler<HTMLInputElement>;
|
194
|
+
onTouchEnd?: import("react").TouchEventHandler<HTMLInputElement>;
|
195
|
+
onTouchEndCapture?: import("react").TouchEventHandler<HTMLInputElement>;
|
196
|
+
onTouchMove?: import("react").TouchEventHandler<HTMLInputElement>;
|
197
|
+
onTouchMoveCapture?: import("react").TouchEventHandler<HTMLInputElement>;
|
198
|
+
onTouchStart?: import("react").TouchEventHandler<HTMLInputElement>;
|
199
|
+
onTouchStartCapture?: import("react").TouchEventHandler<HTMLInputElement>;
|
200
|
+
onPointerDown?: import("react").PointerEventHandler<HTMLInputElement>;
|
201
|
+
onPointerDownCapture?: import("react").PointerEventHandler<HTMLInputElement>;
|
202
|
+
onPointerMove?: import("react").PointerEventHandler<HTMLInputElement>;
|
203
|
+
onPointerMoveCapture?: import("react").PointerEventHandler<HTMLInputElement>;
|
204
|
+
onPointerUp?: import("react").PointerEventHandler<HTMLInputElement>;
|
205
|
+
onPointerUpCapture?: import("react").PointerEventHandler<HTMLInputElement>;
|
206
|
+
onPointerCancel?: import("react").PointerEventHandler<HTMLInputElement>;
|
207
|
+
onPointerCancelCapture?: import("react").PointerEventHandler<HTMLInputElement>;
|
208
|
+
onPointerEnter?: import("react").PointerEventHandler<HTMLInputElement>;
|
209
|
+
onPointerLeave?: import("react").PointerEventHandler<HTMLInputElement>;
|
210
|
+
onPointerOver?: import("react").PointerEventHandler<HTMLInputElement>;
|
211
|
+
onPointerOverCapture?: import("react").PointerEventHandler<HTMLInputElement>;
|
212
|
+
onPointerOut?: import("react").PointerEventHandler<HTMLInputElement>;
|
213
|
+
onPointerOutCapture?: import("react").PointerEventHandler<HTMLInputElement>;
|
214
|
+
onGotPointerCapture?: import("react").PointerEventHandler<HTMLInputElement>;
|
215
|
+
onGotPointerCaptureCapture?: import("react").PointerEventHandler<HTMLInputElement>;
|
216
|
+
onLostPointerCapture?: import("react").PointerEventHandler<HTMLInputElement>;
|
217
|
+
onLostPointerCaptureCapture?: import("react").PointerEventHandler<HTMLInputElement>;
|
218
|
+
onScroll?: import("react").UIEventHandler<HTMLInputElement>;
|
219
|
+
onScrollCapture?: import("react").UIEventHandler<HTMLInputElement>;
|
220
|
+
onWheel?: import("react").WheelEventHandler<HTMLInputElement>;
|
221
|
+
onWheelCapture?: import("react").WheelEventHandler<HTMLInputElement>;
|
222
|
+
onAnimationStart?: import("react").AnimationEventHandler<HTMLInputElement>;
|
223
|
+
onAnimationStartCapture?: import("react").AnimationEventHandler<HTMLInputElement>;
|
224
|
+
onAnimationEnd?: import("react").AnimationEventHandler<HTMLInputElement>;
|
225
|
+
onAnimationEndCapture?: import("react").AnimationEventHandler<HTMLInputElement>;
|
226
|
+
onAnimationIteration?: import("react").AnimationEventHandler<HTMLInputElement>;
|
227
|
+
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLInputElement>;
|
228
|
+
onTransitionEnd?: import("react").TransitionEventHandler<HTMLInputElement>;
|
229
|
+
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLInputElement>;
|
230
|
+
defaultChecked?: boolean;
|
231
|
+
suppressContentEditableWarning?: boolean;
|
232
|
+
accessKey?: string;
|
233
|
+
autoFocus?: boolean;
|
234
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only";
|
235
|
+
contextMenu?: string;
|
236
|
+
dir?: string;
|
237
|
+
draggable?: boolean | "true" | "false";
|
238
|
+
hidden?: boolean;
|
239
|
+
nonce?: string;
|
240
|
+
slot?: string;
|
241
|
+
spellCheck?: boolean | "true" | "false";
|
242
|
+
translate?: "yes" | "no";
|
243
|
+
radioGroup?: string;
|
244
|
+
about?: string;
|
245
|
+
content?: string;
|
246
|
+
datatype?: string;
|
247
|
+
inlist?: any;
|
248
|
+
property?: string;
|
249
|
+
rel?: string;
|
250
|
+
resource?: string;
|
251
|
+
rev?: string;
|
252
|
+
typeof?: string;
|
253
|
+
vocab?: string;
|
254
|
+
autoCapitalize?: string;
|
255
|
+
autoCorrect?: string;
|
256
|
+
autoSave?: string;
|
257
|
+
itemProp?: string;
|
258
|
+
itemScope?: boolean;
|
259
|
+
itemType?: string;
|
260
|
+
itemID?: string;
|
261
|
+
itemRef?: string;
|
262
|
+
results?: number;
|
263
|
+
security?: string;
|
264
|
+
unselectable?: "on" | "off";
|
265
|
+
inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal";
|
266
|
+
is?: string;
|
267
|
+
form?: string;
|
268
|
+
list?: string;
|
269
|
+
step?: string | number;
|
270
|
+
formAction?: string;
|
271
|
+
formEncType?: string;
|
272
|
+
formMethod?: string;
|
273
|
+
formNoValidate?: boolean;
|
274
|
+
formTarget?: string;
|
275
|
+
accept?: string;
|
276
|
+
alt?: string;
|
277
|
+
autoComplete?: import("react").HTMLInputAutoCompleteAttribute;
|
278
|
+
capture?: boolean | "user" | "environment";
|
279
|
+
checked?: boolean;
|
280
|
+
enterKeyHint?: "search" | "enter" | "done" | "go" | "next" | "previous" | "send";
|
281
|
+
maxLength?: number;
|
282
|
+
minLength?: number;
|
283
|
+
multiple?: boolean;
|
284
|
+
pattern?: string;
|
285
|
+
placeholder?: string;
|
286
|
+
required?: boolean;
|
287
|
+
src?: string;
|
288
|
+
defaultValue?: string;
|
289
|
+
value?: string;
|
290
|
+
isLoading: boolean;
|
291
|
+
className: string;
|
292
|
+
prefix: import("react/jsx-runtime").JSX.Element;
|
293
|
+
sufix: import("react/jsx-runtime").JSX.Element;
|
294
|
+
LeftIcon: import("lucide-react").LucideIcon;
|
295
|
+
RightIcon: import("lucide-react").LucideIcon;
|
296
|
+
disabled: boolean;
|
297
|
+
readOnly: boolean;
|
298
|
+
onFocus: import("react").FocusEventHandler<HTMLInputElement>;
|
299
|
+
onBlur: import("react").FocusEventHandler<HTMLInputElement>;
|
300
|
+
title: string;
|
301
|
+
style: import("react").CSSProperties;
|
302
|
+
onChange: import("react").ChangeEventHandler<HTMLInputElement>;
|
303
|
+
loadingPosition: string;
|
304
|
+
iconSize: number;
|
305
|
+
Spinner: import("react/jsx-runtime").JSX.Element;
|
306
|
+
};
|
307
|
+
export { getConfig };
|
308
|
+
//# sourceMappingURL=getConfig.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"getConfig.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/CpfCpnjInput/getConfig.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAKtD,iBAAS,SAAS,CAAC,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoD9D;AAED,OAAO,EAAE,SAAS,EAAE,CAAC"}
|