@raghu5707/react-ui-kit 1.0.3 → 1.0.5

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/index.cjs ADDED
@@ -0,0 +1,14 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const H=require("react");var U={exports:{}},F={};var Oe;function dr(){if(Oe)return F;Oe=1;var c=H,d=Symbol.for("react.element"),v=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,E=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,$={key:!0,ref:!0,__self:!0,__source:!0};function k(T,p,S){var h,R={},O=null,W=null;S!==void 0&&(O=""+S),p.key!==void 0&&(O=""+p.key),p.ref!==void 0&&(W=p.ref);for(h in p)s.call(p,h)&&!$.hasOwnProperty(h)&&(R[h]=p[h]);if(T&&T.defaultProps)for(h in p=T.defaultProps,p)R[h]===void 0&&(R[h]=p[h]);return{$$typeof:d,type:T,key:O,ref:W,props:R,_owner:E.current}}return F.Fragment=v,F.jsx=k,F.jsxs=k,F}var I={};var xe;function vr(){return xe||(xe=1,process.env.NODE_ENV!=="production"&&(function(){var c=H,d=Symbol.for("react.element"),v=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),$=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),T=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),W=Symbol.for("react.offscreen"),Z=Symbol.iterator,Pe="@@iterator";function je(e){if(e===null||typeof e!="object")return null;var r=Z&&e[Z]||e[Pe];return typeof r=="function"?r:null}var C=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function g(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];ke("error",e,t)}}function ke(e,r,t){{var n=C.ReactDebugCurrentFrame,o=n.getStackAddendum();o!==""&&(r+="%s",t=t.concat([o]));var u=t.map(function(i){return String(i)});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var De=!1,Ae=!1,Fe=!1,Ie=!1,$e=!1,Q;Q=Symbol.for("react.module.reference");function We(e){return!!(typeof e=="string"||typeof e=="function"||e===s||e===$||$e||e===E||e===S||e===h||Ie||e===W||De||Ae||Fe||typeof e=="object"&&e!==null&&(e.$$typeof===O||e.$$typeof===R||e.$$typeof===k||e.$$typeof===T||e.$$typeof===p||e.$$typeof===Q||e.getModuleId!==void 0))}function Ye(e,r,t){var n=e.displayName;if(n)return n;var o=r.displayName||r.name||"";return o!==""?t+"("+o+")":t}function ee(e){return e.displayName||"Context"}function _(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 s:return"Fragment";case v:return"Portal";case $:return"Profiler";case E:return"StrictMode";case S:return"Suspense";case h:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case T:var r=e;return ee(r)+".Consumer";case k:var t=e;return ee(t._context)+".Provider";case p:return Ye(e,e.render,"ForwardRef");case R:var n=e.displayName||null;return n!==null?n:_(e.type)||"Memo";case O:{var o=e,u=o._payload,i=o._init;try{return _(i(u))}catch{return null}}}return null}var x=Object.assign,D=0,re,te,ne,ae,ie,oe,ue;function se(){}se.__reactDisabledLog=!0;function Le(){{if(D===0){re=console.log,te=console.info,ne=console.warn,ae=console.error,ie=console.group,oe=console.groupCollapsed,ue=console.groupEnd;var e={configurable:!0,enumerable:!0,value:se,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}D++}}function Me(){{if(D--,D===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:x({},e,{value:re}),info:x({},e,{value:te}),warn:x({},e,{value:ne}),error:x({},e,{value:ae}),group:x({},e,{value:ie}),groupCollapsed:x({},e,{value:oe}),groupEnd:x({},e,{value:ue})})}D<0&&g("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var N=C.ReactCurrentDispatcher,B;function Y(e,r,t){{if(B===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);B=n&&n[1]||""}return`
2
+ `+B+e}}var q=!1,L;{var Ve=typeof WeakMap=="function"?WeakMap:Map;L=new Ve}function le(e,r){if(!e||q)return"";{var t=L.get(e);if(t!==void 0)return t}var n;q=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=N.current,N.current=null,Le();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(b){n=b}Reflect.construct(e,[],i)}else{try{i.call()}catch(b){n=b}e.call(i.prototype)}}else{try{throw Error()}catch(b){n=b}e()}}catch(b){if(b&&n&&typeof b.stack=="string"){for(var a=b.stack.split(`
3
+ `),y=n.stack.split(`
4
+ `),l=a.length-1,f=y.length-1;l>=1&&f>=0&&a[l]!==y[f];)f--;for(;l>=1&&f>=0;l--,f--)if(a[l]!==y[f]){if(l!==1||f!==1)do if(l--,f--,f<0||a[l]!==y[f]){var m=`
5
+ `+a[l].replace(" at new "," at ");return e.displayName&&m.includes("<anonymous>")&&(m=m.replace("<anonymous>",e.displayName)),typeof e=="function"&&L.set(e,m),m}while(l>=1&&f>=0);break}}}finally{q=!1,N.current=u,Me(),Error.prepareStackTrace=o}var j=e?e.displayName||e.name:"",w=j?Y(j):"";return typeof e=="function"&&L.set(e,w),w}function Ue(e,r,t){return le(e,!1)}function Ne(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function M(e,r,t){if(e==null)return"";if(typeof e=="function")return le(e,Ne(e));if(typeof e=="string")return Y(e);switch(e){case S:return Y("Suspense");case h:return Y("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case p:return Ue(e.render);case R:return M(e.type,r,t);case O:{var n=e,o=n._payload,u=n._init;try{return M(u(o),r,t)}catch{}}}return""}var A=Object.prototype.hasOwnProperty,fe={},ce=C.ReactDebugCurrentFrame;function V(e){if(e){var r=e._owner,t=M(e.type,e._source,r?r.type:null);ce.setExtraStackFrame(t)}else ce.setExtraStackFrame(null)}function Be(e,r,t,n,o){{var u=Function.call.bind(A);for(var i in e)if(u(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var y=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw y.name="Invariant Violation",y}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(l){a=l}a&&!(a instanceof Error)&&(V(o),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).",n||"React class",t,i,typeof a),V(null)),a instanceof Error&&!(a.message in fe)&&(fe[a.message]=!0,V(o),g("Failed %s type: %s",t,a.message),V(null))}}}var qe=Array.isArray;function J(e){return qe(e)}function Je(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Ke(e){try{return de(e),!1}catch{return!0}}function de(e){return""+e}function ve(e){if(Ke(e))return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Je(e)),de(e)}var pe=C.ReactCurrentOwner,ze={key:!0,ref:!0,__self:!0,__source:!0},ge,ye;function Ge(e){if(A.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Xe(e){if(A.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function He(e,r){typeof e.ref=="string"&&pe.current}function Ze(e,r){{var t=function(){ge||(ge=!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))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function Qe(e,r){{var t=function(){ye||(ye=!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))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var er=function(e,r,t,n,o,u,i){var a={$$typeof:d,type:e,key:r,ref:t,props:i,_owner:u};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function rr(e,r,t,n,o){{var u,i={},a=null,y=null;t!==void 0&&(ve(t),a=""+t),Xe(r)&&(ve(r.key),a=""+r.key),Ge(r)&&(y=r.ref,He(r,o));for(u in r)A.call(r,u)&&!ze.hasOwnProperty(u)&&(i[u]=r[u]);if(e&&e.defaultProps){var l=e.defaultProps;for(u in l)i[u]===void 0&&(i[u]=l[u])}if(a||y){var f=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&Ze(i,f),y&&Qe(i,f)}return er(e,a,y,o,n,pe.current,i)}}var K=C.ReactCurrentOwner,be=C.ReactDebugCurrentFrame;function P(e){if(e){var r=e._owner,t=M(e.type,e._source,r?r.type:null);be.setExtraStackFrame(t)}else be.setExtraStackFrame(null)}var z;z=!1;function G(e){return typeof e=="object"&&e!==null&&e.$$typeof===d}function he(){{if(K.current){var e=_(K.current.type);if(e)return`
6
+
7
+ Check the render method of \``+e+"`."}return""}}function tr(e){return""}var me={};function nr(e){{var r=he();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
8
+
9
+ Check the top-level render call using <`+t+">.")}return r}}function Ee(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=nr(r);if(me[t])return;me[t]=!0;var n="";e&&e._owner&&e._owner!==K.current&&(n=" It was passed a child from "+_(e._owner.type)+"."),P(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.',t,n),P(null)}}function Re(e,r){{if(typeof e!="object")return;if(J(e))for(var t=0;t<e.length;t++){var n=e[t];G(n)&&Ee(n,r)}else if(G(e))e._store&&(e._store.validated=!0);else if(e){var o=je(e);if(typeof o=="function"&&o!==e.entries)for(var u=o.call(e),i;!(i=u.next()).done;)G(i.value)&&Ee(i.value,r)}}}function ar(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===p||r.$$typeof===R))t=r.propTypes;else return;if(t){var n=_(r);Be(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!z){z=!0;var o=_(r);g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o||"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 ir(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){P(e),g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),P(null);break}}e.ref!==null&&(P(e),g("Invalid attribute `ref` supplied to `React.Fragment`."),P(null))}}var _e={};function Te(e,r,t,n,o,u){{var i=We(e);if(!i){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" 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 y=tr();y?a+=y:a+=he();var l;e===null?l="null":J(e)?l="array":e!==void 0&&e.$$typeof===d?(l="<"+(_(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):l=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",l,a)}var f=rr(e,r,t,o,u);if(f==null)return f;if(i){var m=r.children;if(m!==void 0)if(n)if(J(m)){for(var j=0;j<m.length;j++)Re(m[j],e);Object.freeze&&Object.freeze(m)}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 Re(m,e)}if(A.call(r,"key")){var w=_(e),b=Object.keys(r).filter(function(cr){return cr!=="key"}),X=b.length>0?"{key: someKey, "+b.join(": ..., ")+": ...}":"{key: someKey}";if(!_e[w+X]){var fr=b.length>0?"{"+b.join(": ..., ")+": ...}":"{}";g(`A props object containing a "key" prop is being spread into JSX:
10
+ let props = %s;
11
+ <%s {...props} />
12
+ React keys must be passed directly to JSX without using spread:
13
+ let props = %s;
14
+ <%s key={someKey} {...props} />`,X,w,fr,w),_e[w+X]=!0}}return e===s?ir(f):ar(f),f}}function or(e,r,t){return Te(e,r,t,!0)}function ur(e,r,t){return Te(e,r,t,!1)}var sr=ur,lr=or;I.Fragment=s,I.jsx=sr,I.jsxs=lr})()),I}var we;function pr(){return we||(we=1,process.env.NODE_ENV==="production"?U.exports=dr():U.exports=vr()),U.exports}var gr=pr();function Se(c){var d,v,s="";if(typeof c=="string"||typeof c=="number")s+=c;else if(typeof c=="object")if(Array.isArray(c)){var E=c.length;for(d=0;d<E;d++)c[d]&&(v=Se(c[d]))&&(s&&(s+=" "),s+=v)}else for(v in c)c[v]&&(s&&(s+=" "),s+=v);return s}function yr(){for(var c,d,v=0,s="",E=arguments.length;v<E;v++)(c=arguments[v])&&(d=Se(c))&&(s&&(s+=" "),s+=d);return s}const br={primary:"bg-primary text-white hover:bg-primary-hover focus:ring-primary-light",secondary:"bg-secondary text-white hover:bg-secondary-hover",danger:"bg-danger text-white hover:bg-danger-hover",outline:"border border-primary text-primary hover:bg-primary-light"},hr={sm:"px-3 py-1.5 text-sm",md:"px-4 py-2 text-sm",lg:"px-6 py-3 text-base"},Ce=H.forwardRef(({variant:c="primary",size:d="md",className:v,...s},E)=>gr.jsx("button",{ref:E,className:yr("inline-flex items-center justify-center rounded-md font-medium transition-all focus:outline-none focus:ring-2 focus:ring-offset-2",br[c],hr[d],s.disabled&&"opacity-50 cursor-not-allowed",v),...s}));Ce.displayName="Button";exports.Button=Ce;
@@ -0,0 +1,654 @@
1
+ import we, { forwardRef as cr } from "react";
2
+ var U = { exports: {} }, F = {};
3
+ var Te;
4
+ function dr() {
5
+ if (Te) return F;
6
+ Te = 1;
7
+ var c = we, d = /* @__PURE__ */ Symbol.for("react.element"), v = /* @__PURE__ */ Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, E = c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, $ = { key: !0, ref: !0, __self: !0, __source: !0 };
8
+ function k(T, p, C) {
9
+ var h, R = {}, x = null, W = null;
10
+ C !== void 0 && (x = "" + C), p.key !== void 0 && (x = "" + p.key), p.ref !== void 0 && (W = p.ref);
11
+ for (h in p) s.call(p, h) && !$.hasOwnProperty(h) && (R[h] = p[h]);
12
+ if (T && T.defaultProps) for (h in p = T.defaultProps, p) R[h] === void 0 && (R[h] = p[h]);
13
+ return { $$typeof: d, type: T, key: x, ref: W, props: R, _owner: E.current };
14
+ }
15
+ return F.Fragment = v, F.jsx = k, F.jsxs = k, F;
16
+ }
17
+ var I = {};
18
+ var xe;
19
+ function vr() {
20
+ return xe || (xe = 1, process.env.NODE_ENV !== "production" && (function() {
21
+ var c = we, d = /* @__PURE__ */ Symbol.for("react.element"), v = /* @__PURE__ */ Symbol.for("react.portal"), s = /* @__PURE__ */ Symbol.for("react.fragment"), E = /* @__PURE__ */ Symbol.for("react.strict_mode"), $ = /* @__PURE__ */ Symbol.for("react.profiler"), k = /* @__PURE__ */ Symbol.for("react.provider"), T = /* @__PURE__ */ Symbol.for("react.context"), p = /* @__PURE__ */ Symbol.for("react.forward_ref"), C = /* @__PURE__ */ Symbol.for("react.suspense"), h = /* @__PURE__ */ Symbol.for("react.suspense_list"), R = /* @__PURE__ */ Symbol.for("react.memo"), x = /* @__PURE__ */ Symbol.for("react.lazy"), W = /* @__PURE__ */ Symbol.for("react.offscreen"), H = Symbol.iterator, Se = "@@iterator";
22
+ function Pe(e) {
23
+ if (e === null || typeof e != "object")
24
+ return null;
25
+ var r = H && e[H] || e[Se];
26
+ return typeof r == "function" ? r : null;
27
+ }
28
+ var S = c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
29
+ function g(e) {
30
+ {
31
+ for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
32
+ t[n - 1] = arguments[n];
33
+ je("error", e, t);
34
+ }
35
+ }
36
+ function je(e, r, t) {
37
+ {
38
+ var n = S.ReactDebugCurrentFrame, o = n.getStackAddendum();
39
+ o !== "" && (r += "%s", t = t.concat([o]));
40
+ var u = t.map(function(i) {
41
+ return String(i);
42
+ });
43
+ u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
44
+ }
45
+ }
46
+ var ke = !1, De = !1, Ae = !1, Fe = !1, Ie = !1, Z;
47
+ Z = /* @__PURE__ */ Symbol.for("react.module.reference");
48
+ function $e(e) {
49
+ return !!(typeof e == "string" || typeof e == "function" || e === s || e === $ || Ie || e === E || e === C || e === h || Fe || e === W || ke || De || Ae || typeof e == "object" && e !== null && (e.$$typeof === x || e.$$typeof === R || e.$$typeof === k || e.$$typeof === T || e.$$typeof === p || // This needs to include all possible module reference object
50
+ // types supported by any Flight configuration anywhere since
51
+ // we don't know which Flight build this will end up being used
52
+ // with.
53
+ e.$$typeof === Z || e.getModuleId !== void 0));
54
+ }
55
+ function We(e, r, t) {
56
+ var n = e.displayName;
57
+ if (n)
58
+ return n;
59
+ var o = r.displayName || r.name || "";
60
+ return o !== "" ? t + "(" + o + ")" : t;
61
+ }
62
+ function Q(e) {
63
+ return e.displayName || "Context";
64
+ }
65
+ function _(e) {
66
+ if (e == null)
67
+ return null;
68
+ 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")
69
+ return e.displayName || e.name || null;
70
+ if (typeof e == "string")
71
+ return e;
72
+ switch (e) {
73
+ case s:
74
+ return "Fragment";
75
+ case v:
76
+ return "Portal";
77
+ case $:
78
+ return "Profiler";
79
+ case E:
80
+ return "StrictMode";
81
+ case C:
82
+ return "Suspense";
83
+ case h:
84
+ return "SuspenseList";
85
+ }
86
+ if (typeof e == "object")
87
+ switch (e.$$typeof) {
88
+ case T:
89
+ var r = e;
90
+ return Q(r) + ".Consumer";
91
+ case k:
92
+ var t = e;
93
+ return Q(t._context) + ".Provider";
94
+ case p:
95
+ return We(e, e.render, "ForwardRef");
96
+ case R:
97
+ var n = e.displayName || null;
98
+ return n !== null ? n : _(e.type) || "Memo";
99
+ case x: {
100
+ var o = e, u = o._payload, i = o._init;
101
+ try {
102
+ return _(i(u));
103
+ } catch {
104
+ return null;
105
+ }
106
+ }
107
+ }
108
+ return null;
109
+ }
110
+ var O = Object.assign, D = 0, ee, re, te, ne, ae, ie, oe;
111
+ function ue() {
112
+ }
113
+ ue.__reactDisabledLog = !0;
114
+ function Ye() {
115
+ {
116
+ if (D === 0) {
117
+ ee = console.log, re = console.info, te = console.warn, ne = console.error, ae = console.group, ie = console.groupCollapsed, oe = console.groupEnd;
118
+ var e = {
119
+ configurable: !0,
120
+ enumerable: !0,
121
+ value: ue,
122
+ writable: !0
123
+ };
124
+ Object.defineProperties(console, {
125
+ info: e,
126
+ log: e,
127
+ warn: e,
128
+ error: e,
129
+ group: e,
130
+ groupCollapsed: e,
131
+ groupEnd: e
132
+ });
133
+ }
134
+ D++;
135
+ }
136
+ }
137
+ function Le() {
138
+ {
139
+ if (D--, D === 0) {
140
+ var e = {
141
+ configurable: !0,
142
+ enumerable: !0,
143
+ writable: !0
144
+ };
145
+ Object.defineProperties(console, {
146
+ log: O({}, e, {
147
+ value: ee
148
+ }),
149
+ info: O({}, e, {
150
+ value: re
151
+ }),
152
+ warn: O({}, e, {
153
+ value: te
154
+ }),
155
+ error: O({}, e, {
156
+ value: ne
157
+ }),
158
+ group: O({}, e, {
159
+ value: ae
160
+ }),
161
+ groupCollapsed: O({}, e, {
162
+ value: ie
163
+ }),
164
+ groupEnd: O({}, e, {
165
+ value: oe
166
+ })
167
+ });
168
+ }
169
+ D < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
170
+ }
171
+ }
172
+ var N = S.ReactCurrentDispatcher, B;
173
+ function Y(e, r, t) {
174
+ {
175
+ if (B === void 0)
176
+ try {
177
+ throw Error();
178
+ } catch (o) {
179
+ var n = o.stack.trim().match(/\n( *(at )?)/);
180
+ B = n && n[1] || "";
181
+ }
182
+ return `
183
+ ` + B + e;
184
+ }
185
+ }
186
+ var J = !1, L;
187
+ {
188
+ var Ve = typeof WeakMap == "function" ? WeakMap : Map;
189
+ L = new Ve();
190
+ }
191
+ function se(e, r) {
192
+ if (!e || J)
193
+ return "";
194
+ {
195
+ var t = L.get(e);
196
+ if (t !== void 0)
197
+ return t;
198
+ }
199
+ var n;
200
+ J = !0;
201
+ var o = Error.prepareStackTrace;
202
+ Error.prepareStackTrace = void 0;
203
+ var u;
204
+ u = N.current, N.current = null, Ye();
205
+ try {
206
+ if (r) {
207
+ var i = function() {
208
+ throw Error();
209
+ };
210
+ if (Object.defineProperty(i.prototype, "props", {
211
+ set: function() {
212
+ throw Error();
213
+ }
214
+ }), typeof Reflect == "object" && Reflect.construct) {
215
+ try {
216
+ Reflect.construct(i, []);
217
+ } catch (b) {
218
+ n = b;
219
+ }
220
+ Reflect.construct(e, [], i);
221
+ } else {
222
+ try {
223
+ i.call();
224
+ } catch (b) {
225
+ n = b;
226
+ }
227
+ e.call(i.prototype);
228
+ }
229
+ } else {
230
+ try {
231
+ throw Error();
232
+ } catch (b) {
233
+ n = b;
234
+ }
235
+ e();
236
+ }
237
+ } catch (b) {
238
+ if (b && n && typeof b.stack == "string") {
239
+ for (var a = b.stack.split(`
240
+ `), y = n.stack.split(`
241
+ `), f = a.length - 1, l = y.length - 1; f >= 1 && l >= 0 && a[f] !== y[l]; )
242
+ l--;
243
+ for (; f >= 1 && l >= 0; f--, l--)
244
+ if (a[f] !== y[l]) {
245
+ if (f !== 1 || l !== 1)
246
+ do
247
+ if (f--, l--, l < 0 || a[f] !== y[l]) {
248
+ var m = `
249
+ ` + a[f].replace(" at new ", " at ");
250
+ return e.displayName && m.includes("<anonymous>") && (m = m.replace("<anonymous>", e.displayName)), typeof e == "function" && L.set(e, m), m;
251
+ }
252
+ while (f >= 1 && l >= 0);
253
+ break;
254
+ }
255
+ }
256
+ } finally {
257
+ J = !1, N.current = u, Le(), Error.prepareStackTrace = o;
258
+ }
259
+ var j = e ? e.displayName || e.name : "", w = j ? Y(j) : "";
260
+ return typeof e == "function" && L.set(e, w), w;
261
+ }
262
+ function Me(e, r, t) {
263
+ return se(e, !1);
264
+ }
265
+ function Ue(e) {
266
+ var r = e.prototype;
267
+ return !!(r && r.isReactComponent);
268
+ }
269
+ function V(e, r, t) {
270
+ if (e == null)
271
+ return "";
272
+ if (typeof e == "function")
273
+ return se(e, Ue(e));
274
+ if (typeof e == "string")
275
+ return Y(e);
276
+ switch (e) {
277
+ case C:
278
+ return Y("Suspense");
279
+ case h:
280
+ return Y("SuspenseList");
281
+ }
282
+ if (typeof e == "object")
283
+ switch (e.$$typeof) {
284
+ case p:
285
+ return Me(e.render);
286
+ case R:
287
+ return V(e.type, r, t);
288
+ case x: {
289
+ var n = e, o = n._payload, u = n._init;
290
+ try {
291
+ return V(u(o), r, t);
292
+ } catch {
293
+ }
294
+ }
295
+ }
296
+ return "";
297
+ }
298
+ var A = Object.prototype.hasOwnProperty, fe = {}, le = S.ReactDebugCurrentFrame;
299
+ function M(e) {
300
+ if (e) {
301
+ var r = e._owner, t = V(e.type, e._source, r ? r.type : null);
302
+ le.setExtraStackFrame(t);
303
+ } else
304
+ le.setExtraStackFrame(null);
305
+ }
306
+ function Ne(e, r, t, n, o) {
307
+ {
308
+ var u = Function.call.bind(A);
309
+ for (var i in e)
310
+ if (u(e, i)) {
311
+ var a = void 0;
312
+ try {
313
+ if (typeof e[i] != "function") {
314
+ var y = Error((n || "React class") + ": " + t + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
315
+ throw y.name = "Invariant Violation", y;
316
+ }
317
+ a = e[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
318
+ } catch (f) {
319
+ a = f;
320
+ }
321
+ a && !(a instanceof Error) && (M(o), 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).", n || "React class", t, i, typeof a), M(null)), a instanceof Error && !(a.message in fe) && (fe[a.message] = !0, M(o), g("Failed %s type: %s", t, a.message), M(null));
322
+ }
323
+ }
324
+ }
325
+ var Be = Array.isArray;
326
+ function q(e) {
327
+ return Be(e);
328
+ }
329
+ function Je(e) {
330
+ {
331
+ var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
332
+ return t;
333
+ }
334
+ }
335
+ function qe(e) {
336
+ try {
337
+ return ce(e), !1;
338
+ } catch {
339
+ return !0;
340
+ }
341
+ }
342
+ function ce(e) {
343
+ return "" + e;
344
+ }
345
+ function de(e) {
346
+ if (qe(e))
347
+ return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Je(e)), ce(e);
348
+ }
349
+ var ve = S.ReactCurrentOwner, Ke = {
350
+ key: !0,
351
+ ref: !0,
352
+ __self: !0,
353
+ __source: !0
354
+ }, pe, ge;
355
+ function ze(e) {
356
+ if (A.call(e, "ref")) {
357
+ var r = Object.getOwnPropertyDescriptor(e, "ref").get;
358
+ if (r && r.isReactWarning)
359
+ return !1;
360
+ }
361
+ return e.ref !== void 0;
362
+ }
363
+ function Ge(e) {
364
+ if (A.call(e, "key")) {
365
+ var r = Object.getOwnPropertyDescriptor(e, "key").get;
366
+ if (r && r.isReactWarning)
367
+ return !1;
368
+ }
369
+ return e.key !== void 0;
370
+ }
371
+ function Xe(e, r) {
372
+ typeof e.ref == "string" && ve.current;
373
+ }
374
+ function He(e, r) {
375
+ {
376
+ var t = function() {
377
+ pe || (pe = !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));
378
+ };
379
+ t.isReactWarning = !0, Object.defineProperty(e, "key", {
380
+ get: t,
381
+ configurable: !0
382
+ });
383
+ }
384
+ }
385
+ function Ze(e, r) {
386
+ {
387
+ var t = function() {
388
+ ge || (ge = !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));
389
+ };
390
+ t.isReactWarning = !0, Object.defineProperty(e, "ref", {
391
+ get: t,
392
+ configurable: !0
393
+ });
394
+ }
395
+ }
396
+ var Qe = function(e, r, t, n, o, u, i) {
397
+ var a = {
398
+ // This tag allows us to uniquely identify this as a React Element
399
+ $$typeof: d,
400
+ // Built-in properties that belong on the element
401
+ type: e,
402
+ key: r,
403
+ ref: t,
404
+ props: i,
405
+ // Record the component responsible for creating this element.
406
+ _owner: u
407
+ };
408
+ return a._store = {}, Object.defineProperty(a._store, "validated", {
409
+ configurable: !1,
410
+ enumerable: !1,
411
+ writable: !0,
412
+ value: !1
413
+ }), Object.defineProperty(a, "_self", {
414
+ configurable: !1,
415
+ enumerable: !1,
416
+ writable: !1,
417
+ value: n
418
+ }), Object.defineProperty(a, "_source", {
419
+ configurable: !1,
420
+ enumerable: !1,
421
+ writable: !1,
422
+ value: o
423
+ }), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
424
+ };
425
+ function er(e, r, t, n, o) {
426
+ {
427
+ var u, i = {}, a = null, y = null;
428
+ t !== void 0 && (de(t), a = "" + t), Ge(r) && (de(r.key), a = "" + r.key), ze(r) && (y = r.ref, Xe(r, o));
429
+ for (u in r)
430
+ A.call(r, u) && !Ke.hasOwnProperty(u) && (i[u] = r[u]);
431
+ if (e && e.defaultProps) {
432
+ var f = e.defaultProps;
433
+ for (u in f)
434
+ i[u] === void 0 && (i[u] = f[u]);
435
+ }
436
+ if (a || y) {
437
+ var l = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
438
+ a && He(i, l), y && Ze(i, l);
439
+ }
440
+ return Qe(e, a, y, o, n, ve.current, i);
441
+ }
442
+ }
443
+ var K = S.ReactCurrentOwner, ye = S.ReactDebugCurrentFrame;
444
+ function P(e) {
445
+ if (e) {
446
+ var r = e._owner, t = V(e.type, e._source, r ? r.type : null);
447
+ ye.setExtraStackFrame(t);
448
+ } else
449
+ ye.setExtraStackFrame(null);
450
+ }
451
+ var z;
452
+ z = !1;
453
+ function G(e) {
454
+ return typeof e == "object" && e !== null && e.$$typeof === d;
455
+ }
456
+ function be() {
457
+ {
458
+ if (K.current) {
459
+ var e = _(K.current.type);
460
+ if (e)
461
+ return `
462
+
463
+ Check the render method of \`` + e + "`.";
464
+ }
465
+ return "";
466
+ }
467
+ }
468
+ function rr(e) {
469
+ return "";
470
+ }
471
+ var he = {};
472
+ function tr(e) {
473
+ {
474
+ var r = be();
475
+ if (!r) {
476
+ var t = typeof e == "string" ? e : e.displayName || e.name;
477
+ t && (r = `
478
+
479
+ Check the top-level render call using <` + t + ">.");
480
+ }
481
+ return r;
482
+ }
483
+ }
484
+ function me(e, r) {
485
+ {
486
+ if (!e._store || e._store.validated || e.key != null)
487
+ return;
488
+ e._store.validated = !0;
489
+ var t = tr(r);
490
+ if (he[t])
491
+ return;
492
+ he[t] = !0;
493
+ var n = "";
494
+ e && e._owner && e._owner !== K.current && (n = " It was passed a child from " + _(e._owner.type) + "."), P(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.', t, n), P(null);
495
+ }
496
+ }
497
+ function Ee(e, r) {
498
+ {
499
+ if (typeof e != "object")
500
+ return;
501
+ if (q(e))
502
+ for (var t = 0; t < e.length; t++) {
503
+ var n = e[t];
504
+ G(n) && me(n, r);
505
+ }
506
+ else if (G(e))
507
+ e._store && (e._store.validated = !0);
508
+ else if (e) {
509
+ var o = Pe(e);
510
+ if (typeof o == "function" && o !== e.entries)
511
+ for (var u = o.call(e), i; !(i = u.next()).done; )
512
+ G(i.value) && me(i.value, r);
513
+ }
514
+ }
515
+ }
516
+ function nr(e) {
517
+ {
518
+ var r = e.type;
519
+ if (r == null || typeof r == "string")
520
+ return;
521
+ var t;
522
+ if (typeof r == "function")
523
+ t = r.propTypes;
524
+ else if (typeof r == "object" && (r.$$typeof === p || // Note: Memo only checks outer props here.
525
+ // Inner props are checked in the reconciler.
526
+ r.$$typeof === R))
527
+ t = r.propTypes;
528
+ else
529
+ return;
530
+ if (t) {
531
+ var n = _(r);
532
+ Ne(t, e.props, "prop", n, e);
533
+ } else if (r.PropTypes !== void 0 && !z) {
534
+ z = !0;
535
+ var o = _(r);
536
+ g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o || "Unknown");
537
+ }
538
+ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
539
+ }
540
+ }
541
+ function ar(e) {
542
+ {
543
+ for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
544
+ var n = r[t];
545
+ if (n !== "children" && n !== "key") {
546
+ P(e), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), P(null);
547
+ break;
548
+ }
549
+ }
550
+ e.ref !== null && (P(e), g("Invalid attribute `ref` supplied to `React.Fragment`."), P(null));
551
+ }
552
+ }
553
+ var Re = {};
554
+ function _e(e, r, t, n, o, u) {
555
+ {
556
+ var i = $e(e);
557
+ if (!i) {
558
+ var a = "";
559
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
560
+ var y = rr();
561
+ y ? a += y : a += be();
562
+ var f;
563
+ e === null ? f = "null" : q(e) ? f = "array" : e !== void 0 && e.$$typeof === d ? (f = "<" + (_(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : f = 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", f, a);
564
+ }
565
+ var l = er(e, r, t, o, u);
566
+ if (l == null)
567
+ return l;
568
+ if (i) {
569
+ var m = r.children;
570
+ if (m !== void 0)
571
+ if (n)
572
+ if (q(m)) {
573
+ for (var j = 0; j < m.length; j++)
574
+ Ee(m[j], e);
575
+ Object.freeze && Object.freeze(m);
576
+ } else
577
+ 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.");
578
+ else
579
+ Ee(m, e);
580
+ }
581
+ if (A.call(r, "key")) {
582
+ var w = _(e), b = Object.keys(r).filter(function(lr) {
583
+ return lr !== "key";
584
+ }), X = b.length > 0 ? "{key: someKey, " + b.join(": ..., ") + ": ...}" : "{key: someKey}";
585
+ if (!Re[w + X]) {
586
+ var fr = b.length > 0 ? "{" + b.join(": ..., ") + ": ...}" : "{}";
587
+ g(`A props object containing a "key" prop is being spread into JSX:
588
+ let props = %s;
589
+ <%s {...props} />
590
+ React keys must be passed directly to JSX without using spread:
591
+ let props = %s;
592
+ <%s key={someKey} {...props} />`, X, w, fr, w), Re[w + X] = !0;
593
+ }
594
+ }
595
+ return e === s ? ar(l) : nr(l), l;
596
+ }
597
+ }
598
+ function ir(e, r, t) {
599
+ return _e(e, r, t, !0);
600
+ }
601
+ function or(e, r, t) {
602
+ return _e(e, r, t, !1);
603
+ }
604
+ var ur = or, sr = ir;
605
+ I.Fragment = s, I.jsx = ur, I.jsxs = sr;
606
+ })()), I;
607
+ }
608
+ var Oe;
609
+ function pr() {
610
+ return Oe || (Oe = 1, process.env.NODE_ENV === "production" ? U.exports = dr() : U.exports = vr()), U.exports;
611
+ }
612
+ var gr = pr();
613
+ function Ce(c) {
614
+ var d, v, s = "";
615
+ if (typeof c == "string" || typeof c == "number") s += c;
616
+ else if (typeof c == "object") if (Array.isArray(c)) {
617
+ var E = c.length;
618
+ for (d = 0; d < E; d++) c[d] && (v = Ce(c[d])) && (s && (s += " "), s += v);
619
+ } else for (v in c) c[v] && (s && (s += " "), s += v);
620
+ return s;
621
+ }
622
+ function yr() {
623
+ for (var c, d, v = 0, s = "", E = arguments.length; v < E; v++) (c = arguments[v]) && (d = Ce(c)) && (s && (s += " "), s += d);
624
+ return s;
625
+ }
626
+ const br = {
627
+ primary: "bg-primary text-white hover:bg-primary-hover focus:ring-primary-light",
628
+ secondary: "bg-secondary text-white hover:bg-secondary-hover",
629
+ danger: "bg-danger text-white hover:bg-danger-hover",
630
+ outline: "border border-primary text-primary hover:bg-primary-light"
631
+ }, hr = {
632
+ sm: "px-3 py-1.5 text-sm",
633
+ md: "px-4 py-2 text-sm",
634
+ lg: "px-6 py-3 text-base"
635
+ }, mr = cr(
636
+ ({ variant: c = "primary", size: d = "md", className: v, ...s }, E) => /* @__PURE__ */ gr.jsx(
637
+ "button",
638
+ {
639
+ ref: E,
640
+ className: yr(
641
+ "inline-flex items-center justify-center rounded-md font-medium transition-all focus:outline-none focus:ring-2 focus:ring-offset-2",
642
+ br[c],
643
+ hr[d],
644
+ s.disabled && "opacity-50 cursor-not-allowed",
645
+ v
646
+ ),
647
+ ...s
648
+ }
649
+ )
650
+ );
651
+ mr.displayName = "Button";
652
+ export {
653
+ mr as Button
654
+ };
package/package.json CHANGED
@@ -1,10 +1,17 @@
1
1
  {
2
2
  "name": "@raghu5707/react-ui-kit",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "type": "module",
5
- "main": "dist/react-ui-kit.umd.cjs",
6
- "module": "dist/react-ui-kit.es.js",
7
- "types": "dist/index.d.ts",
5
+ "main": "./dist/index.cjs",
6
+ "module": "./dist/index.es.js",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.es.js",
12
+ "require": "./dist/index.cjs"
13
+ }
14
+ },
8
15
  "files": [
9
16
  "dist"
10
17
  ],
package/dist/index.d.ts DELETED
@@ -1 +0,0 @@
1
- export {}
@@ -1,303 +0,0 @@
1
- import ee, { forwardRef as re } from "react";
2
- var v = { exports: {} }, b = {};
3
- var $;
4
- function te() {
5
- if ($) return b;
6
- $ = 1;
7
- var t = /* @__PURE__ */ Symbol.for("react.transitional.element"), i = /* @__PURE__ */ Symbol.for("react.fragment");
8
- function u(n, l, c) {
9
- var m = null;
10
- if (c !== void 0 && (m = "" + c), l.key !== void 0 && (m = "" + l.key), "key" in l) {
11
- c = {};
12
- for (var d in l)
13
- d !== "key" && (c[d] = l[d]);
14
- } else c = l;
15
- return l = c.ref, {
16
- $$typeof: t,
17
- type: n,
18
- key: m,
19
- ref: l !== void 0 ? l : null,
20
- props: c
21
- };
22
- }
23
- return b.Fragment = i, b.jsx = u, b.jsxs = u, b;
24
- }
25
- var p = {};
26
- var I;
27
- function ne() {
28
- return I || (I = 1, process.env.NODE_ENV !== "production" && (function() {
29
- function t(e) {
30
- if (e == null) return null;
31
- if (typeof e == "function")
32
- return e.$$typeof === Z ? null : e.displayName || e.name || null;
33
- if (typeof e == "string") return e;
34
- switch (e) {
35
- case R:
36
- return "Fragment";
37
- case q:
38
- return "Profiler";
39
- case U:
40
- return "StrictMode";
41
- case G:
42
- return "Suspense";
43
- case X:
44
- return "SuspenseList";
45
- case H:
46
- return "Activity";
47
- }
48
- if (typeof e == "object")
49
- switch (typeof e.tag == "number" && console.error(
50
- "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
51
- ), e.$$typeof) {
52
- case W:
53
- return "Portal";
54
- case J:
55
- return e.displayName || "Context";
56
- case z:
57
- return (e._context.displayName || "Context") + ".Consumer";
58
- case V:
59
- var r = e.render;
60
- return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
61
- case B:
62
- return r = e.displayName || null, r !== null ? r : t(e.type) || "Memo";
63
- case y:
64
- r = e._payload, e = e._init;
65
- try {
66
- return t(e(r));
67
- } catch {
68
- }
69
- }
70
- return null;
71
- }
72
- function i(e) {
73
- return "" + e;
74
- }
75
- function u(e) {
76
- try {
77
- i(e);
78
- var r = !1;
79
- } catch {
80
- r = !0;
81
- }
82
- if (r) {
83
- r = console;
84
- var a = r.error, o = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
85
- return a.call(
86
- r,
87
- "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
88
- o
89
- ), i(e);
90
- }
91
- }
92
- function n(e) {
93
- if (e === R) return "<>";
94
- if (typeof e == "object" && e !== null && e.$$typeof === y)
95
- return "<...>";
96
- try {
97
- var r = t(e);
98
- return r ? "<" + r + ">" : "<...>";
99
- } catch {
100
- return "<...>";
101
- }
102
- }
103
- function l() {
104
- var e = T.A;
105
- return e === null ? null : e.getOwner();
106
- }
107
- function c() {
108
- return Error("react-stack-top-frame");
109
- }
110
- function m(e) {
111
- if (S.call(e, "key")) {
112
- var r = Object.getOwnPropertyDescriptor(e, "key").get;
113
- if (r && r.isReactWarning) return !1;
114
- }
115
- return e.key !== void 0;
116
- }
117
- function d(e, r) {
118
- function a() {
119
- P || (P = !0, console.error(
120
- "%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://react.dev/link/special-props)",
121
- r
122
- ));
123
- }
124
- a.isReactWarning = !0, Object.defineProperty(e, "key", {
125
- get: a,
126
- configurable: !0
127
- });
128
- }
129
- function L() {
130
- var e = t(this.type);
131
- return j[e] || (j[e] = !0, console.error(
132
- "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
133
- )), e = this.props.ref, e !== void 0 ? e : null;
134
- }
135
- function M(e, r, a, o, E, x) {
136
- var s = a.ref;
137
- return e = {
138
- $$typeof: w,
139
- type: e,
140
- key: r,
141
- props: a,
142
- _owner: o
143
- }, (s !== void 0 ? s : null) !== null ? Object.defineProperty(e, "ref", {
144
- enumerable: !1,
145
- get: L
146
- }) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
147
- configurable: !1,
148
- enumerable: !1,
149
- writable: !0,
150
- value: 0
151
- }), Object.defineProperty(e, "_debugInfo", {
152
- configurable: !1,
153
- enumerable: !1,
154
- writable: !0,
155
- value: null
156
- }), Object.defineProperty(e, "_debugStack", {
157
- configurable: !1,
158
- enumerable: !1,
159
- writable: !0,
160
- value: E
161
- }), Object.defineProperty(e, "_debugTask", {
162
- configurable: !1,
163
- enumerable: !1,
164
- writable: !0,
165
- value: x
166
- }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
167
- }
168
- function k(e, r, a, o, E, x) {
169
- var s = r.children;
170
- if (s !== void 0)
171
- if (o)
172
- if (Q(s)) {
173
- for (o = 0; o < s.length; o++)
174
- A(s[o]);
175
- Object.freeze && Object.freeze(s);
176
- } else
177
- console.error(
178
- "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
179
- );
180
- else A(s);
181
- if (S.call(r, "key")) {
182
- s = t(e);
183
- var f = Object.keys(r).filter(function(K) {
184
- return K !== "key";
185
- });
186
- o = 0 < f.length ? "{key: someKey, " + f.join(": ..., ") + ": ...}" : "{key: someKey}", Y[s + o] || (f = 0 < f.length ? "{" + f.join(": ..., ") + ": ...}" : "{}", console.error(
187
- `A props object containing a "key" prop is being spread into JSX:
188
- let props = %s;
189
- <%s {...props} />
190
- React keys must be passed directly to JSX without using spread:
191
- let props = %s;
192
- <%s key={someKey} {...props} />`,
193
- o,
194
- s,
195
- f,
196
- s
197
- ), Y[s + o] = !0);
198
- }
199
- if (s = null, a !== void 0 && (u(a), s = "" + a), m(r) && (u(r.key), s = "" + r.key), "key" in r) {
200
- a = {};
201
- for (var h in r)
202
- h !== "key" && (a[h] = r[h]);
203
- } else a = r;
204
- return s && d(
205
- a,
206
- typeof e == "function" ? e.displayName || e.name || "Unknown" : e
207
- ), M(
208
- e,
209
- s,
210
- a,
211
- l(),
212
- E,
213
- x
214
- );
215
- }
216
- function A(e) {
217
- O(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === y && (e._payload.status === "fulfilled" ? O(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
218
- }
219
- function O(e) {
220
- return typeof e == "object" && e !== null && e.$$typeof === w;
221
- }
222
- var _ = ee, w = /* @__PURE__ */ Symbol.for("react.transitional.element"), W = /* @__PURE__ */ Symbol.for("react.portal"), R = /* @__PURE__ */ Symbol.for("react.fragment"), U = /* @__PURE__ */ Symbol.for("react.strict_mode"), q = /* @__PURE__ */ Symbol.for("react.profiler"), z = /* @__PURE__ */ Symbol.for("react.consumer"), J = /* @__PURE__ */ Symbol.for("react.context"), V = /* @__PURE__ */ Symbol.for("react.forward_ref"), G = /* @__PURE__ */ Symbol.for("react.suspense"), X = /* @__PURE__ */ Symbol.for("react.suspense_list"), B = /* @__PURE__ */ Symbol.for("react.memo"), y = /* @__PURE__ */ Symbol.for("react.lazy"), H = /* @__PURE__ */ Symbol.for("react.activity"), Z = /* @__PURE__ */ Symbol.for("react.client.reference"), T = _.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, S = Object.prototype.hasOwnProperty, Q = Array.isArray, g = console.createTask ? console.createTask : function() {
223
- return null;
224
- };
225
- _ = {
226
- react_stack_bottom_frame: function(e) {
227
- return e();
228
- }
229
- };
230
- var P, j = {}, N = _.react_stack_bottom_frame.bind(
231
- _,
232
- c
233
- )(), C = g(n(c)), Y = {};
234
- p.Fragment = R, p.jsx = function(e, r, a) {
235
- var o = 1e4 > T.recentlyCreatedOwnerStacks++;
236
- return k(
237
- e,
238
- r,
239
- a,
240
- !1,
241
- o ? Error("react-stack-top-frame") : N,
242
- o ? g(n(e)) : C
243
- );
244
- }, p.jsxs = function(e, r, a) {
245
- var o = 1e4 > T.recentlyCreatedOwnerStacks++;
246
- return k(
247
- e,
248
- r,
249
- a,
250
- !0,
251
- o ? Error("react-stack-top-frame") : N,
252
- o ? g(n(e)) : C
253
- );
254
- };
255
- })()), p;
256
- }
257
- var F;
258
- function ae() {
259
- return F || (F = 1, process.env.NODE_ENV === "production" ? v.exports = te() : v.exports = ne()), v.exports;
260
- }
261
- var oe = ae();
262
- function D(t) {
263
- var i, u, n = "";
264
- if (typeof t == "string" || typeof t == "number") n += t;
265
- else if (typeof t == "object") if (Array.isArray(t)) {
266
- var l = t.length;
267
- for (i = 0; i < l; i++) t[i] && (u = D(t[i])) && (n && (n += " "), n += u);
268
- } else for (u in t) t[u] && (n && (n += " "), n += u);
269
- return n;
270
- }
271
- function se() {
272
- for (var t, i, u = 0, n = "", l = arguments.length; u < l; u++) (t = arguments[u]) && (i = D(t)) && (n && (n += " "), n += i);
273
- return n;
274
- }
275
- const ue = {
276
- primary: "bg-primary text-white hover:bg-primary-hover focus:ring-primary-light",
277
- secondary: "bg-secondary text-white hover:bg-secondary-hover",
278
- danger: "bg-danger text-white hover:bg-danger-hover",
279
- outline: "border border-primary text-primary hover:bg-primary-light"
280
- }, le = {
281
- sm: "px-3 py-1.5 text-sm",
282
- md: "px-4 py-2 text-sm",
283
- lg: "px-6 py-3 text-base"
284
- }, ie = re(
285
- ({ variant: t = "primary", size: i = "md", className: u, ...n }, l) => /* @__PURE__ */ oe.jsx(
286
- "button",
287
- {
288
- ref: l,
289
- className: se(
290
- "inline-flex items-center justify-center rounded-md font-medium transition-all focus:outline-none focus:ring-2 focus:ring-offset-2",
291
- ue[t],
292
- le[i],
293
- n.disabled && "opacity-50 cursor-not-allowed",
294
- u
295
- ),
296
- ...n
297
- }
298
- )
299
- );
300
- ie.displayName = "Button";
301
- export {
302
- ie as Button
303
- };
@@ -1,6 +0,0 @@
1
- (function(f,d){typeof exports=="object"&&typeof module<"u"?d(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],d):(f=typeof globalThis<"u"?globalThis:f||self,d(f.ReactUIKit={},f.require$$0))})(this,(function(f,d){"use strict";var E={exports:{}},p={};var A;function W(){if(A)return p;A=1;var t=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function u(n,i,c){var _=null;if(c!==void 0&&(_=""+c),i.key!==void 0&&(_=""+i.key),"key"in i){c={};for(var v in i)v!=="key"&&(c[v]=i[v])}else c=i;return i=c.ref,{$$typeof:t,type:n,key:_,ref:i!==void 0?i:null,props:c}}return p.Fragment=l,p.jsx=u,p.jsxs=u,p}var b={};var w;function q(){return w||(w=1,process.env.NODE_ENV!=="production"&&(function(){function t(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ue?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case T:return"Fragment";case K:return"Profiler";case Q:return"StrictMode";case ne:return"Suspense";case oe:return"SuspenseList";case se:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case Z:return"Portal";case re:return e.displayName||"Context";case ee:return(e._context.displayName||"Context")+".Consumer";case te:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ae:return r=e.displayName||null,r!==null?r:t(e.type)||"Memo";case g:r=e._payload,e=e._init;try{return t(e(r))}catch{}}return null}function l(e){return""+e}function u(e){try{l(e);var r=!1}catch{r=!0}if(r){r=console;var o=r.error,a=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",a),l(e)}}function n(e){if(e===T)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===g)return"<...>";try{var r=t(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function i(){var e=h.A;return e===null?null:e.getOwner()}function c(){return Error("react-stack-top-frame")}function _(e){if($.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function v(e,r){function o(){F||(F=!0,console.error("%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://react.dev/link/special-props)",r))}o.isReactWarning=!0,Object.defineProperty(e,"key",{get:o,configurable:!0})}function X(){var e=t(this.type);return D[e]||(D[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function H(e,r,o,a,y,k){var s=o.ref;return e={$$typeof:I,type:e,key:r,props:o,_owner:a},(s!==void 0?s:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:X}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:y}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:k}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function N(e,r,o,a,y,k){var s=r.children;if(s!==void 0)if(a)if(ie(s)){for(a=0;a<s.length;a++)C(s[a]);Object.freeze&&Object.freeze(s)}else console.error("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 C(s);if($.call(r,"key")){s=t(e);var m=Object.keys(r).filter(function(le){return le!=="key"});a=0<m.length?"{key: someKey, "+m.join(": ..., ")+": ...}":"{key: someKey}",U[s+a]||(m=0<m.length?"{"+m.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
2
- let props = %s;
3
- <%s {...props} />
4
- React keys must be passed directly to JSX without using spread:
5
- let props = %s;
6
- <%s key={someKey} {...props} />`,a,s,m,s),U[s+a]=!0)}if(s=null,o!==void 0&&(u(o),s=""+o),_(r)&&(u(r.key),s=""+r.key),"key"in r){o={};for(var O in r)O!=="key"&&(o[O]=r[O])}else o=r;return s&&v(o,typeof e=="function"?e.displayName||e.name||"Unknown":e),H(e,s,o,i(),y,k)}function C(e){Y(e)?e._store&&(e._store.validated=1):typeof e=="object"&&e!==null&&e.$$typeof===g&&(e._payload.status==="fulfilled"?Y(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function Y(e){return typeof e=="object"&&e!==null&&e.$$typeof===I}var R=d,I=Symbol.for("react.transitional.element"),Z=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),Q=Symbol.for("react.strict_mode"),K=Symbol.for("react.profiler"),ee=Symbol.for("react.consumer"),re=Symbol.for("react.context"),te=Symbol.for("react.forward_ref"),ne=Symbol.for("react.suspense"),oe=Symbol.for("react.suspense_list"),ae=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),se=Symbol.for("react.activity"),ue=Symbol.for("react.client.reference"),h=R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=Object.prototype.hasOwnProperty,ie=Array.isArray,x=console.createTask?console.createTask:function(){return null};R={react_stack_bottom_frame:function(e){return e()}};var F,D={},M=R.react_stack_bottom_frame.bind(R,c)(),L=x(n(c)),U={};b.Fragment=T,b.jsx=function(e,r,o){var a=1e4>h.recentlyCreatedOwnerStacks++;return N(e,r,o,!1,a?Error("react-stack-top-frame"):M,a?x(n(e)):L)},b.jsxs=function(e,r,o){var a=1e4>h.recentlyCreatedOwnerStacks++;return N(e,r,o,!0,a?Error("react-stack-top-frame"):M,a?x(n(e)):L)}})()),b}var S;function z(){return S||(S=1,process.env.NODE_ENV==="production"?E.exports=W():E.exports=q()),E.exports}var J=z();function j(t){var l,u,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(l=0;l<i;l++)t[l]&&(u=j(t[l]))&&(n&&(n+=" "),n+=u)}else for(u in t)t[u]&&(n&&(n+=" "),n+=u);return n}function V(){for(var t,l,u=0,n="",i=arguments.length;u<i;u++)(t=arguments[u])&&(l=j(t))&&(n&&(n+=" "),n+=l);return n}const G={primary:"bg-primary text-white hover:bg-primary-hover focus:ring-primary-light",secondary:"bg-secondary text-white hover:bg-secondary-hover",danger:"bg-danger text-white hover:bg-danger-hover",outline:"border border-primary text-primary hover:bg-primary-light"},B={sm:"px-3 py-1.5 text-sm",md:"px-4 py-2 text-sm",lg:"px-6 py-3 text-base"},P=d.forwardRef(({variant:t="primary",size:l="md",className:u,...n},i)=>J.jsx("button",{ref:i,className:V("inline-flex items-center justify-center rounded-md font-medium transition-all focus:outline-none focus:ring-2 focus:ring-offset-2",G[t],B[l],n.disabled&&"opacity-50 cursor-not-allowed",u),...n}));P.displayName="Button",f.Button=P,Object.defineProperty(f,Symbol.toStringTag,{value:"Module"})}));