@szum-tech/design-system 1.16.1 → 1.16.2
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.d.mts +11 -8
- package/dist/index.d.ts +11 -8
- package/dist/index.js +39 -39
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -47,7 +47,7 @@ type ButtonSizeType = NonNullable<ButtonCvaProps["size"]>;
|
|
|
47
47
|
type ButtonVariantType = NonNullable<ButtonCvaProps["variant"]>;
|
|
48
48
|
type ButtonColorType = NonNullable<ButtonCvaProps["color"]>;
|
|
49
49
|
|
|
50
|
-
type Props$
|
|
50
|
+
type Props$1 = {
|
|
51
51
|
/**
|
|
52
52
|
* Defines button full width
|
|
53
53
|
*/
|
|
@@ -90,18 +90,19 @@ type Props$2 = {
|
|
|
90
90
|
loadingPosition?: "start" | "end";
|
|
91
91
|
asChild?: boolean;
|
|
92
92
|
};
|
|
93
|
-
type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & Props$
|
|
94
|
-
declare const Button: (props: React.ButtonHTMLAttributes<HTMLButtonElement> & Props$
|
|
95
|
-
|
|
96
|
-
type OmitStylesProps<T> = Omit<T, "className" | "style">;
|
|
93
|
+
type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & Props$1;
|
|
94
|
+
declare const Button: (props: React.ButtonHTMLAttributes<HTMLButtonElement> & Props$1 & React.RefAttributes<HTMLButtonElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
97
95
|
|
|
98
|
-
type
|
|
96
|
+
type InputProps = React.InputHTMLAttributes<HTMLInputElement> & {
|
|
99
97
|
invalid?: boolean;
|
|
100
98
|
startIcon?: React.ReactElement | string;
|
|
101
99
|
endIcon?: React.ReactElement | string;
|
|
102
100
|
};
|
|
103
|
-
|
|
104
|
-
|
|
101
|
+
declare const Input: (props: React.InputHTMLAttributes<HTMLInputElement> & {
|
|
102
|
+
invalid?: boolean | undefined;
|
|
103
|
+
startIcon?: string | React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
|
104
|
+
endIcon?: string | React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
|
105
|
+
} & React.RefAttributes<HTMLInputElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
105
106
|
|
|
106
107
|
type TooltipProps = ReactTooltip.TooltipContentProps & {
|
|
107
108
|
children?: React.ReactNode;
|
|
@@ -118,6 +119,8 @@ type TooltipProviderProps = {
|
|
|
118
119
|
};
|
|
119
120
|
declare function TooltipProvider({ children }: TooltipProviderProps): react_jsx_runtime.JSX.Element;
|
|
120
121
|
|
|
122
|
+
type OmitStylesProps<T> = Omit<T, "className" | "style">;
|
|
123
|
+
|
|
121
124
|
type Props = {
|
|
122
125
|
invalid?: boolean;
|
|
123
126
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -47,7 +47,7 @@ type ButtonSizeType = NonNullable<ButtonCvaProps["size"]>;
|
|
|
47
47
|
type ButtonVariantType = NonNullable<ButtonCvaProps["variant"]>;
|
|
48
48
|
type ButtonColorType = NonNullable<ButtonCvaProps["color"]>;
|
|
49
49
|
|
|
50
|
-
type Props$
|
|
50
|
+
type Props$1 = {
|
|
51
51
|
/**
|
|
52
52
|
* Defines button full width
|
|
53
53
|
*/
|
|
@@ -90,18 +90,19 @@ type Props$2 = {
|
|
|
90
90
|
loadingPosition?: "start" | "end";
|
|
91
91
|
asChild?: boolean;
|
|
92
92
|
};
|
|
93
|
-
type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & Props$
|
|
94
|
-
declare const Button: (props: React.ButtonHTMLAttributes<HTMLButtonElement> & Props$
|
|
95
|
-
|
|
96
|
-
type OmitStylesProps<T> = Omit<T, "className" | "style">;
|
|
93
|
+
type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & Props$1;
|
|
94
|
+
declare const Button: (props: React.ButtonHTMLAttributes<HTMLButtonElement> & Props$1 & React.RefAttributes<HTMLButtonElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
97
95
|
|
|
98
|
-
type
|
|
96
|
+
type InputProps = React.InputHTMLAttributes<HTMLInputElement> & {
|
|
99
97
|
invalid?: boolean;
|
|
100
98
|
startIcon?: React.ReactElement | string;
|
|
101
99
|
endIcon?: React.ReactElement | string;
|
|
102
100
|
};
|
|
103
|
-
|
|
104
|
-
|
|
101
|
+
declare const Input: (props: React.InputHTMLAttributes<HTMLInputElement> & {
|
|
102
|
+
invalid?: boolean | undefined;
|
|
103
|
+
startIcon?: string | React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
|
104
|
+
endIcon?: string | React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
|
105
|
+
} & React.RefAttributes<HTMLInputElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
105
106
|
|
|
106
107
|
type TooltipProps = ReactTooltip.TooltipContentProps & {
|
|
107
108
|
children?: React.ReactNode;
|
|
@@ -118,6 +119,8 @@ type TooltipProviderProps = {
|
|
|
118
119
|
};
|
|
119
120
|
declare function TooltipProvider({ children }: TooltipProviderProps): react_jsx_runtime.JSX.Element;
|
|
120
121
|
|
|
122
|
+
type OmitStylesProps<T> = Omit<T, "className" | "style">;
|
|
123
|
+
|
|
121
124
|
type Props = {
|
|
122
125
|
invalid?: boolean;
|
|
123
126
|
};
|
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ var tailwindMerge = require('tailwind-merge');
|
|
|
6
6
|
var classVarianceAuthority = require('class-variance-authority');
|
|
7
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
8
8
|
var reactSlot = require('@radix-ui/react-slot');
|
|
9
|
-
var
|
|
9
|
+
var Vo = require('@radix-ui/react-icons');
|
|
10
10
|
var p = require('@radix-ui/react-tooltip');
|
|
11
11
|
var n = require('@radix-ui/react-select');
|
|
12
12
|
var S = require('@radix-ui/react-dialog');
|
|
@@ -32,48 +32,48 @@ function _interopNamespace(e) {
|
|
|
32
32
|
|
|
33
33
|
var m__namespace = /*#__PURE__*/_interopNamespace(m);
|
|
34
34
|
var ___namespace = /*#__PURE__*/_interopNamespace(_);
|
|
35
|
-
var
|
|
35
|
+
var Vo__namespace = /*#__PURE__*/_interopNamespace(Vo);
|
|
36
36
|
var p__namespace = /*#__PURE__*/_interopNamespace(p);
|
|
37
37
|
var n__namespace = /*#__PURE__*/_interopNamespace(n);
|
|
38
38
|
var S__namespace = /*#__PURE__*/_interopNamespace(S);
|
|
39
39
|
var Ae__namespace = /*#__PURE__*/_interopNamespace(Ae);
|
|
40
40
|
|
|
41
|
-
var X=Object.defineProperty;var Ze=Object.getOwnPropertyDescriptor;var $e=Object.getOwnPropertyNames;var je=Object.prototype.hasOwnProperty;var et=(e,t)=>{for(var o in t)X(e,o,{get:t[o],enumerable:!0});},G=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of $e(t))!je.call(e,a)&&a!==o&&X(e,a,{get:()=>t[a],enumerable:!(r=Ze(t,a))||r.enumerable});return e},u=(e,t,o)=>(G(e,t,"default"),o&&G(o,t,"default"));var q=classVarianceAuthority.cva("relative flex shrink-0 overflow-hidden rounded",{variants:{size:{sm:"h-6 w-6 text-lg",md:"h-10 w-10 text-xl",lg:"h-14 w-14 text-2xl"}},defaultVariants:{size:"md"}});var ho=m__namespace.forwardRef(function({className:e,size:t,...o},r){let a=q({size:t});return jsxRuntime.jsx(___namespace.Root,{ref:r,className:tailwindMerge.twMerge(a,e),...o})});var xo=m__namespace.forwardRef(function({className:e,...t},o){return jsxRuntime.jsx(___namespace.Image,{ref:o,className:tailwindMerge.twMerge("aspect-square h-full w-full",e),...t})});var So=m__namespace.forwardRef(function({className:e,...t},o){return jsxRuntime.jsx(___namespace.Fallback,{ref:o,className:tailwindMerge.twMerge("flex h-full w-full items-center justify-center bg-gray-350",e),...t})});var Z=classVarianceAuthority.cva(["inline-flex items-center justify-center align-middle no-underline transition-colors ease-in-out duration-300","font-sans appearance-none select-none rounded-sm border font-medium tracking-[.02857em]","aria-disabled:pointer-events-none aria-disabled:opacity-50 aria-disabled:cursor-not-allowed"],{variants:{fullWidth:{true:"w-full"},color:{neutral:"",primary:"",success:"",warning:"",error:""},size:{sm:"px-2.5 py-1 text-[.8125rem] leading-4",md:"px-4 py-1.5 text-sm leading-5",lg:"px-5 py-2 text-[.9375rem] leading-6"},variant:{text:"border-transparent bg-transparent",outlined:"bg-transparent",contained:""}},compoundVariants:[{variant:"text",color:"neutral",class:["text-gray-100","hover:border-gray-100 hover:bg-gray-100 hover:text-black","active:border-gray-200 active:bg-gray-200"]},{variant:"text",color:"primary",class:["text-primary-500","hover:border-primary-500 hover:bg-primary-500 hover:text-white","active:border-primary-600 active:bg-primary-600 active:text-white"]},{variant:"text",color:"success",class:["text-success-500","hover:border-success-500 hover:bg-success-500 hover:text-white","active:border-success-600 active:bg-success-600 active:text-white"]},{variant:"text",color:"warning",class:["text-warning-500","hover:border-warning-500 hover:bg-warning-500 hover:text-white","active:border-warning-600 active:bg-warning-600 active:text-white"]},{variant:"text",color:"error",class:["text-error-500","hover:border-error-500 hover:bg-error-500 hover:text-white","active:border-error-600 active:bg-error-600 active:text-white"]},{variant:"outlined",color:"neutral",class:["text-gray-100 border-gray-100","hover:bg-gray-100 hover:text-black","active:text-gray-600 active:bg-gray-200"]},{variant:"outlined",color:"primary",class:["text-primary-500 border-primary-500","hover:bg-primary-500 hover:text-white","active:text-white active:bg-primary-600"]},{variant:"outlined",color:"success",class:["text-success-500 border-success-500","hover:bg-success-500 hover:text-white","active:text-white active:bg-success-600"]},{variant:"outlined",color:"warning",class:["text-warning-500 border-warning-500","hover:bg-warning-500 hover:text-white","active:text-white active:bg-warning-600"]},{variant:"outlined",color:"error",class:["text-error-500 border-error-500","hover:bg-error-500 hover:text-white","active:text-white active:bg-error-600"]},{variant:"contained",color:"neutral",class:["border-gray-100 bg-gray-100 text-black","hover:border-white hover:bg-white","active:border-gray-200 active:bg-gray-200"]},{variant:"contained",color:"primary",class:["border-primary-500 bg-primary-500 text-white","hover:border-primary-400 hover:bg-primary-400","active:border-primary-600 active:bg-primary-600"]},{variant:"contained",color:"success",class:["border-success-500 bg-success-500 text-white","hover:border-success-400 hover:bg-success-400","active:border-success-600 active:bg-success-600"]},{variant:"contained",color:"warning",class:["border-warning-500 bg-warning-500 text-white","hover:border-warning-400 hover:bg-warning-400","active:border-warning-600 active:bg-warning-600"]},{variant:"contained",color:"error",class:["border-error-500 bg-error-500 text-white","hover:border-error-400 hover:bg-error-400","active:border-error-600 active:bg-error-600"]}],defaultVariants:{fullWidth:!1,color:"primary",size:"md",variant:"text"}}),E=classVarianceAuthority.cva("",{variants:{site:{left:"",right:""},size:{sm:"",md:"",lg:""}},compoundVariants:[{site:"left",size:"sm",class:"-ml-0.5 mr-1.5"},{site:"left",size:"md",class:"-ml-1 mr-2"},{site:"left",size:"lg",class:"-ml-1.5 mr-2.5"},{site:"right",size:"sm",class:"-mr-0.5 ml-1.5"},{site:"right",size:"md",class:"-mr-1 ml-2"},{site:"right",size:"lg",class:"-mr-1.5 ml-2.5"}],defaultVariants:{site:"left",size:"md"}}),N=classVarianceAuthority.cva("",{variants:{loading:{true:"motion-reduce:hidden animate-spin"},size:{sm:"h-4.5 w-4.5",md:"h-5 w-5",lg:"h-5.5 w-5.5"}},defaultVariants:{loading:!1,size:"md"}});var i={};et(i,{Auth0LogoIcon:()=>dt,GoogleLogoIcon:()=>lt,LoadingIcon:()=>w,XLogoIcon:()=>ft});u(i,zo__namespace);function lt(e){return jsxRuntime.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[jsxRuntime.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),jsxRuntime.jsx("path",{d:"M12 2a9.96 9.96 0 0 1 6.29 2.226a1 1 0 0 1 .04 1.52l-1.51 1.362a1 1 0 0 1 -1.265 .06a6 6 0 1 0 2.103 6.836l.001 -.004h-3.66a1 1 0 0 1 -.992 -.883l-.007 -.117v-2a1 1 0 0 1 1 -1h6.945a1 1 0 0 1 .994 .89c.04 .367 .061 .737 .061 1.11c0 5.523 -4.477 10 -10 10s-10 -4.477 -10 -10s4.477 -10 10 -10z",strokeWidth:"0",fill:"currentColor"})]})}function w(e){return jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",fill:"currentColor",version:"1.1",viewBox:"0 0 26.349 26.35",xmlSpace:"preserve",...e,children:jsxRuntime.jsx("g",{children:jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("circle",{cx:"13.792",cy:"3.082",r:"3.082"}),jsxRuntime.jsx("circle",{cx:"13.792",cy:"24.501",r:"1.849"}),jsxRuntime.jsx("circle",{cx:"6.219",cy:"6.218",r:"2.774"}),jsxRuntime.jsx("circle",{cx:"21.365",cy:"21.363",r:"1.541"}),jsxRuntime.jsx("circle",{cx:"3.082",cy:"13.792",r:"2.465"}),jsxRuntime.jsx("circle",{cx:"24.501",cy:"13.791",r:"1.232"}),jsxRuntime.jsx("path",{d:"M4.694,19.84c-0.843,0.843-0.843,2.207,0,3.05c0.842,0.843,2.208,0.843,3.05,0c0.843-0.843,0.843-2.207,0-3.05 C6.902,18.996,5.537,18.988,4.694,19.84z"}),jsxRuntime.jsx("circle",{cx:"21.364",cy:"6.218",r:"0.924"})]})})})}function dt(e){return jsxRuntime.jsxs("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:[jsxRuntime.jsx("title",{}),jsxRuntime.jsx("path",{d:"M21.98 7.448L19.62 0H4.347L2.02 7.448c-1.352 4.312.03 9.206 3.815 12.015L12.007 24l6.157-4.552c3.755-2.81 5.182-7.688 3.815-12.015l-6.16 4.58 2.343 7.45-6.157-4.597-6.158 4.58 2.358-7.433-6.188-4.55 7.63-.045L12.008 0l2.356 7.404 7.615.044z",fill:"currentColor"})]})}function ft(e){return jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",id:"Layer_1",width:"24px",height:"24px",viewBox:"0 0 24 24",...e,children:jsxRuntime.jsx("path",{d:"M14.095479,10.316482L22.286354,1h-1.940718l-7.115352,8.087682L7.551414,1H1l8.589488,12.231093L1,23h1.940717 l7.509372-8.542861L16.448587,23H23L14.095479,10.316482z M11.436522,13.338465l-0.871624-1.218704l-6.924311-9.68815h2.981339 l5.58978,7.82155l0.867949,1.218704l7.26506,10.166271h-2.981339L11.436522,13.338465z",fill:"currentColor"})})}var qo=m__namespace.forwardRef(function({asChild:e=!1,variant:t="text",color:o="primary",disabled:r=!1,fullWidth:a=!1,...s},l){let{children:d,type:f="button",loading:h=!1,size:C="md",loadingPosition:v="start",endIcon:D,startIcon:F,...I}=s,R=e?reactSlot.Slot:"button",b=Z({fullWidth:a,size:C,variant:t,color:o}),M=r||h;return jsxRuntime.jsx(R,{...e?s:I,"aria-disabled":M||void 0,className:b,"data-state":h?"loading":void 0,disabled:M,ref:l,role:R!=="button"?"button":void 0,tabIndex:M?-1:0,type:R==="button"?f:void 0,children:e?jsxRuntime.jsx(te,{children:d}):jsxRuntime.jsx(te,{...s})})});function te({children:e,loading:t=!1,size:o="md",loadingPosition:r="start",startIcon:a,endIcon:s,...l}){let d=t&&r==="start",f=d?jsxRuntime.jsx(w,{"aria-label":"Loading"}):a||null,h=N({size:o,loading:d}),C=E({size:o,site:"left"}),v=t&&r==="end",D=v?jsxRuntime.jsx(w,{"aria-label":"Loading"}):s||null,F=N({size:o,loading:v}),I=E({size:o,site:"right"}),R=f?jsxRuntime.jsx("span",{className:C,role:d?"progressbar":void 0,children:m__namespace.cloneElement(f,{className:h})}):null,b=D?jsxRuntime.jsx("span",{className:I,role:v?"progressbar":void 0,children:m__namespace.cloneElement(D,{className:F})}):null;return m__namespace.isValidElement(e)?m__namespace.cloneElement(e,{...l,children:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[R,m__namespace.isValidElement(e)?e.props.children:null,b]})}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[R,e,b]})}var ie=classVarianceAuthority.cva(["h-10 w-full appearance-none border bg-app-primary py-2 font-poppins outline-0 transition-colors duration-300 ease-in-out","placeholder:select-none placeholder:text-gray-200","invalid:border-error-500 focus:border-primary-400 active:border-primary-400","disabled:border-gray-400 disabled:text-gray-200 disabled:placeholder:text-gray-300"],{variants:{invalid:{true:["text-error-500 border-error-500 hover:border-error-400 focus:text-gray-100"],false:["text-gray-100 border-gray-350 hover:border-primary-500"]},withStartIcon:{true:"pl-11",false:"pl-3"},withEndIcon:{true:"pr-11",false:"pr-3"}},defaultVariants:{invalid:!1,withStartIcon:!1,withEndIcon:!1}}),H=classVarianceAuthority.cva(["pointer-events-none absolute bottom-2 top-2 inline-flex w-10 content-center items-center justify-center text-center"],{variants:{disabled:{true:"text-gray-200"},site:{right:"right-0 border-l border-l-gray-400 pr-1",left:"left-0 border-r border-r-gray-400 pl-1"}},defaultVariants:{disabled:!1}});var Yo=m__namespace.forwardRef(function({invalid:e=!1,startIcon:t,endIcon:o,disabled:r=!1,...a},s){let l=ie({withEndIcon:!!o,withStartIcon:!!t,invalid:e}),d=H({site:"left",disabled:r}),f=H({site:"right",disabled:r});return jsxRuntime.jsxs("div",{className:"relative text-gray-100 typography-body-2",children:[t?jsxRuntime.jsx("span",{className:d,children:t}):null,jsxRuntime.jsx("input",{"aria-invalid":e||void 0,disabled:r,className:l,ref:s,...a}),o?jsxRuntime.jsx("span",{"aria-hidden":!0,className:f,children:o}):null]})});function jo({defaultOpen:e,content:t,open:o,onOpenChange:r,children:a,side:s,align:l,collisionPadding:d=8,sideOffset:f=8,...h}){return jsxRuntime.jsxs(p__namespace.Root,{delayDuration:0,open:o,defaultOpen:e,onOpenChange:r,children:[jsxRuntime.jsx(p__namespace.Trigger,{asChild:!0,children:a}),t?jsxRuntime.jsx(p__namespace.Portal,{children:jsxRuntime.jsxs(p__namespace.Content,{className:"text-typography-primary select-none rounded bg-white p-2 will-change-[transform,opacity] typography-body-1 data-[state=delayed-open]:data-[side=bottom]:animate-slideUpAndFade data-[state=delayed-open]:data-[side=left]:animate-slideRightAndFade data-[state=delayed-open]:data-[side=right]:animate-slideLeftAndFade data-[state=delayed-open]:data-[side=top]:animate-slideDownAndFade",sideOffset:f,side:s,align:l,collisionPadding:d,...h,style:{maxWidth:"var(--radix-tooltip-content-available-width)"},children:[t,jsxRuntime.jsx(p__namespace.Arrow,{width:8,height:4,className:"fill-white"})]})}):null]})}function or({children:e}){return jsxRuntime.jsx(p__namespace.Provider,{skipDelayDuration:500,children:e})}var ce=classVarianceAuthority.cva(["h-28 min-h-10 w-full appearance-none border bg-app-primary px-3 py-2 font-poppins outline-0 transition-colors duration-300 ease-in-out scroll typography-body-2 placeholder:select-none placeholder:text-gray-200","focus:border-primary-400","active:border-primary-400","disabled:border-gray-400 disabled:text-gray-200 disabled:placeholder:text-gray-300"],{variants:{invalid:{true:["text-error-500 border-error-500","hover:border-error-400","focus:text-gray-100"],false:["text-gray-100 border-gray-350","hover:border-primary-500"]}},defaultVariants:{invalid:!1}});var lr=m__namespace.forwardRef(function({invalid:e=!1,...t},o){let r=ce({invalid:e});return jsxRuntime.jsx("textarea",{"aria-invalid":e||void 0,className:r,ref:o,...t})});var de=classVarianceAuthority.cva(["h-10 w-full appearance-none border bg-app-primary py-2 font-poppins outline-0 inline-flex items-center justify-between text-gray-100 typography-body-2 gap-2 transition-colors duration-300 ease-in-out","placeholder:select-none placeholder:text-gray-200","invalid:border-error-500 focus:border-primary-400 active:border-primary-400","disabled:border-gray-400 disabled:text-gray-200 disabled:placeholder:text-gray-300"],{variants:{invalid:{true:["text-error-500 border-error-500 hover:border-error-400 focus:text-gray-100"],false:["text-gray-100 border-gray-350 hover:border-primary-500"]},withStartIcon:{true:"pl-11",false:"pl-3"},withEndIcon:{true:"pr-11",false:"pr-3"}},defaultVariants:{invalid:!1,withStartIcon:!1,withEndIcon:!1}});var hr=m__namespace.forwardRef(({children:e,placeholder:t,...o},r)=>{let a=de();return jsxRuntime.jsxs(n__namespace.Root,{...o,children:[jsxRuntime.jsxs(n__namespace.Trigger,{className:a,ref:r,children:[jsxRuntime.jsx(n__namespace.Value,{placeholder:"Select a fruit\u2026"}),jsxRuntime.jsx(n__namespace.Icon,{className:"-mr-1.5",children:jsxRuntime.jsx(i.CaretSortIcon,{className:"h-5 w-5 text-gray-200"})})]}),jsxRuntime.jsx(n__namespace.Portal,{children:jsxRuntime.jsx(n__namespace.Content,{sideOffset:4,className:"w-full overflow-hidden border border-gray-350 bg-app-primary py-1",children:jsxRuntime.jsx(n__namespace.Viewport,{children:e})})})]})});var xr=m__namespace.forwardRef(({children:e,...t},o)=>jsxRuntime.jsxs(n__namespace.Item,{className:"flex w-full select-none flex-row items-center justify-between px-3 py-2 font-poppins text-gray-100 data-[disabled]:pointer-events-none data-[highlighted]:bg-gray-400 data-[state=checked]:bg-primary-300 data-[highlighted]:outline-none",ref:o,...t,children:[jsxRuntime.jsx(n__namespace.ItemText,{className:"flex-1",children:e}),jsxRuntime.jsx(n__namespace.ItemIndicator,{children:jsxRuntime.jsx(i.CheckIcon,{className:"h-4 w-4"})})]}));var Sr=m__namespace.forwardRef(({className:e,...t},o)=>jsxRuntime.jsx("div",{ref:o,className:tailwindMerge.twMerge("h-full rounded border border-gray-400 bg-foreground",e),...t}));var Dr=m__namespace.forwardRef(({className:e,...t},o)=>jsxRuntime.jsx("div",{ref:o,className:tailwindMerge.twMerge("flex flex-col p-6",e),...t}));var Nr=m__namespace.default.forwardRef(({className:e,...t},o)=>jsxRuntime.jsx("h3",{ref:o,className:tailwindMerge.twMerge("typography-heading-5",e),...t}));var zr=m__namespace.forwardRef(({className:e,...t},o)=>jsxRuntime.jsx("p",{ref:o,className:tailwindMerge.twMerge("text-gray-200 typography-body-2",e),...t}));var Br=m__namespace.forwardRef(({className:e,...t},o)=>jsxRuntime.jsx("div",{ref:o,className:tailwindMerge.twMerge("p-6 pt-0",e),...t}));var qr=m__namespace.forwardRef(({className:e,...t},o)=>jsxRuntime.jsx("div",{ref:o,className:tailwindMerge.twMerge("flex items-center p-6 pt-0",e),...t}));var Jr=S__namespace.Root;var Qr=S__namespace.Trigger;var Zr=S__namespace.Close;var Pe=m__namespace.default.forwardRef(function(e,t){return jsxRuntime.jsx(S__namespace.Overlay,{...e,className:"fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",ref:t})});var Ce=S__namespace.Portal;var De=classVarianceAuthority.cva("fixed z-50 border-gray-400 bg-foreground p-4 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}});var pa=m__namespace.forwardRef(function({side:e="right",className:t,children:o,...r},a){return jsxRuntime.jsxs(Ce,{children:[jsxRuntime.jsx(Pe,{}),jsxRuntime.jsxs(S__namespace.Content,{ref:a,className:tailwindMerge.twMerge(De({side:e}),t),...r,children:[o,jsxRuntime.jsxs(S__namespace.Close,{className:"focus:ring-ring absolute right-4 top-4 rounded-sm opacity-70 ring-primary-500 ring-offset-foreground transition-opacity data-[state=open]:bg-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none",children:[jsxRuntime.jsx(i.Cross1Icon,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})]})]})});function ga({className:e,...t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex flex-col space-y-2 text-center sm:text-left",e),...t})}function ya({className:e,...t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t})}var wa=m__namespace.forwardRef(function({className:e,...t},o){return jsxRuntime.jsx(S__namespace.Title,{ref:o,className:tailwindMerge.twMerge("typography-heading-6",e),...t})});var Ca=m__namespace.forwardRef(function({className:e,...t},o){return jsxRuntime.jsx(S__namespace.Description,{ref:o,className:tailwindMerge.twMerge("text-gray-200 typography-body-2",e),...t})});var La=m__namespace.forwardRef(function({className:e,orientation:t="horizontal",decorative:o=!0,...r},a){return jsxRuntime.jsx(Ae__namespace.Root,{ref:a,decorative:o,orientation:t,className:tailwindMerge.twMerge("shrink-0 bg-gray-400",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r})});function Ha({children:e}){return jsxRuntime.jsx("header",{className:"sticky top-0 z-50 w-full border-b border-gray-400 bg-foreground/95 backdrop-blur supports-[backdrop-filter]:bg-foreground/60",children:jsxRuntime.jsx("div",{className:"container flex h-16 items-center",children:e})})}var za=S__namespace.Root;var Oa=S__namespace.Close;var Oe=classVarianceAuthority.cva(["fixed left-1/2 top-1/2 border-gray-400 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 border bg-foreground p-4 shadow-lg w-full grid gap-4 rounded","duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]"],{variants:{width:{xs:"max-w-xs",sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl","2xl":"max-w-2xl","3xl":"max-w-3xl","4xl":"max-w-4xl","5xl":"max-w-5xl","6xl":"max-w-6xl",full:"max-w-full"}},defaultVariants:{width:"md"}});var Fe=m__namespace.forwardRef(function(e,t){return jsxRuntime.jsx(S__namespace.Overlay,{...e,className:"fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",ref:t})});var Xe=S__namespace.Portal;var Ya=m__namespace.forwardRef(function({className:e,children:t,width:o="md",...r},a){return jsxRuntime.jsxs(Xe,{children:[jsxRuntime.jsx(Fe,{}),jsxRuntime.jsxs(S__namespace.Content,{ref:a,className:tailwindMerge.twMerge(Oe({width:o}),e),...r,children:[t,jsxRuntime.jsxs(S__namespace.Close,{className:"focus:ring-ring absolute right-4 top-4 rounded-sm opacity-70 ring-primary-500 ring-offset-foreground transition-opacity data-[state=open]:bg-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none",children:[jsxRuntime.jsx(i.Cross1Icon,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})]})]})});var ja=S__namespace.Trigger;function oi({className:e,...t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex flex-col space-y-1.5 text-center sm:text-left",e),...t})}function ni({className:e,...t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t})}var pi=m__namespace.forwardRef(function({className:e,...t},o){return jsxRuntime.jsx(S__namespace.Title,{ref:o,className:tailwindMerge.twMerge("typography-heading-6",e),...t})});var gi=m__namespace.forwardRef(function({className:e,...t},o){return jsxRuntime.jsx(S__namespace.Description,{ref:o,className:tailwindMerge.twMerge("text-gray-200 typography-body-2",e),...t})});var T=m__namespace.default.createContext({});function no(e){if(typeof window<"u"&&window.localStorage){let t=window.localStorage.getItem("theme");if(t==="dark"||!t&&window.matchMedia("(prefers-color-scheme: dark)").matches)return "dark"}return e??"light"}function bi({children:e,defaultTheme:t,theme:o}){let[r,a]=m__namespace.default.useState(o||no(t));function s(l){typeof window<"u"&&window.localStorage&&(l==="dark"?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),localStorage.setItem("theme",l));}return m__namespace.default.useEffect(()=>{s(r);},[r]),jsxRuntime.jsx(T.Provider,{value:{theme:r,setTheme:a},children:e})}var Ci=()=>m__namespace.default.useContext(T);
|
|
41
|
+
var X=Object.defineProperty;var Ze=Object.getOwnPropertyDescriptor;var $e=Object.getOwnPropertyNames;var je=Object.prototype.hasOwnProperty;var et=(e,t)=>{for(var o in t)X(e,o,{get:t[o],enumerable:!0});},G=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of $e(t))!je.call(e,a)&&a!==o&&X(e,a,{get:()=>t[a],enumerable:!(r=Ze(t,a))||r.enumerable});return e},u=(e,t,o)=>(G(e,t,"default"),o&&G(o,t,"default"));var q=classVarianceAuthority.cva("relative flex shrink-0 overflow-hidden rounded",{variants:{size:{sm:"h-6 w-6 text-lg",md:"h-10 w-10 text-xl",lg:"h-14 w-14 text-2xl"}},defaultVariants:{size:"md"}});var Ro=m__namespace.forwardRef(function({className:e,size:t,...o},r){let a=q({size:t});return jsxRuntime.jsx(___namespace.Root,{ref:r,className:tailwindMerge.twMerge(a,e),...o})});var vo=m__namespace.forwardRef(function({className:e,...t},o){return jsxRuntime.jsx(___namespace.Image,{ref:o,className:tailwindMerge.twMerge("aspect-square h-full w-full",e),...t})});var Po=m__namespace.forwardRef(function({className:e,...t},o){return jsxRuntime.jsx(___namespace.Fallback,{ref:o,className:tailwindMerge.twMerge("flex h-full w-full items-center justify-center bg-gray-350",e),...t})});var Z=classVarianceAuthority.cva(["inline-flex items-center justify-center align-middle no-underline transition-colors ease-in-out duration-300","font-sans appearance-none select-none rounded-sm border font-medium tracking-[.02857em]","aria-disabled:pointer-events-none aria-disabled:opacity-50 aria-disabled:cursor-not-allowed"],{variants:{fullWidth:{true:"w-full"},color:{neutral:"",primary:"",success:"",warning:"",error:""},size:{sm:"px-2.5 py-1 text-[.8125rem] leading-4",md:"px-4 py-1.5 text-sm leading-5",lg:"px-5 py-2 text-[.9375rem] leading-6"},variant:{text:"border-transparent bg-transparent",outlined:"bg-transparent",contained:""}},compoundVariants:[{variant:"text",color:"neutral",class:["text-gray-100","hover:border-gray-100 hover:bg-gray-100 hover:text-black","active:border-gray-200 active:bg-gray-200"]},{variant:"text",color:"primary",class:["text-primary-500","hover:border-primary-500 hover:bg-primary-500 hover:text-white","active:border-primary-600 active:bg-primary-600 active:text-white"]},{variant:"text",color:"success",class:["text-success-500","hover:border-success-500 hover:bg-success-500 hover:text-white","active:border-success-600 active:bg-success-600 active:text-white"]},{variant:"text",color:"warning",class:["text-warning-500","hover:border-warning-500 hover:bg-warning-500 hover:text-white","active:border-warning-600 active:bg-warning-600 active:text-white"]},{variant:"text",color:"error",class:["text-error-500","hover:border-error-500 hover:bg-error-500 hover:text-white","active:border-error-600 active:bg-error-600 active:text-white"]},{variant:"outlined",color:"neutral",class:["text-gray-100 border-gray-100","hover:bg-gray-100 hover:text-black","active:text-gray-600 active:bg-gray-200"]},{variant:"outlined",color:"primary",class:["text-primary-500 border-primary-500","hover:bg-primary-500 hover:text-white","active:text-white active:bg-primary-600"]},{variant:"outlined",color:"success",class:["text-success-500 border-success-500","hover:bg-success-500 hover:text-white","active:text-white active:bg-success-600"]},{variant:"outlined",color:"warning",class:["text-warning-500 border-warning-500","hover:bg-warning-500 hover:text-white","active:text-white active:bg-warning-600"]},{variant:"outlined",color:"error",class:["text-error-500 border-error-500","hover:bg-error-500 hover:text-white","active:text-white active:bg-error-600"]},{variant:"contained",color:"neutral",class:["border-gray-100 bg-gray-100 text-black","hover:border-white hover:bg-white","active:border-gray-200 active:bg-gray-200"]},{variant:"contained",color:"primary",class:["border-primary-500 bg-primary-500 text-white","hover:border-primary-400 hover:bg-primary-400","active:border-primary-600 active:bg-primary-600"]},{variant:"contained",color:"success",class:["border-success-500 bg-success-500 text-white","hover:border-success-400 hover:bg-success-400","active:border-success-600 active:bg-success-600"]},{variant:"contained",color:"warning",class:["border-warning-500 bg-warning-500 text-white","hover:border-warning-400 hover:bg-warning-400","active:border-warning-600 active:bg-warning-600"]},{variant:"contained",color:"error",class:["border-error-500 bg-error-500 text-white","hover:border-error-400 hover:bg-error-400","active:border-error-600 active:bg-error-600"]}],defaultVariants:{fullWidth:!1,color:"primary",size:"md",variant:"text"}}),E=classVarianceAuthority.cva("",{variants:{site:{left:"",right:""},size:{sm:"",md:"",lg:""}},compoundVariants:[{site:"left",size:"sm",class:"-ml-0.5 mr-1.5"},{site:"left",size:"md",class:"-ml-1 mr-2"},{site:"left",size:"lg",class:"-ml-1.5 mr-2.5"},{site:"right",size:"sm",class:"-mr-0.5 ml-1.5"},{site:"right",size:"md",class:"-mr-1 ml-2"},{site:"right",size:"lg",class:"-mr-1.5 ml-2.5"}],defaultVariants:{site:"left",size:"md"}}),N=classVarianceAuthority.cva("",{variants:{loading:{true:"motion-reduce:hidden animate-spin"},size:{sm:"h-4.5 w-4.5",md:"h-5 w-5",lg:"h-5.5 w-5.5"}},defaultVariants:{loading:!1,size:"md"}});var i={};et(i,{Auth0LogoIcon:()=>dt,GoogleLogoIcon:()=>lt,LoadingIcon:()=>w,XLogoIcon:()=>ft});u(i,Vo__namespace);function lt(e){return jsxRuntime.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[jsxRuntime.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),jsxRuntime.jsx("path",{d:"M12 2a9.96 9.96 0 0 1 6.29 2.226a1 1 0 0 1 .04 1.52l-1.51 1.362a1 1 0 0 1 -1.265 .06a6 6 0 1 0 2.103 6.836l.001 -.004h-3.66a1 1 0 0 1 -.992 -.883l-.007 -.117v-2a1 1 0 0 1 1 -1h6.945a1 1 0 0 1 .994 .89c.04 .367 .061 .737 .061 1.11c0 5.523 -4.477 10 -10 10s-10 -4.477 -10 -10s4.477 -10 10 -10z",strokeWidth:"0",fill:"currentColor"})]})}function w(e){return jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",fill:"currentColor",version:"1.1",viewBox:"0 0 26.349 26.35",xmlSpace:"preserve",...e,children:jsxRuntime.jsx("g",{children:jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("circle",{cx:"13.792",cy:"3.082",r:"3.082"}),jsxRuntime.jsx("circle",{cx:"13.792",cy:"24.501",r:"1.849"}),jsxRuntime.jsx("circle",{cx:"6.219",cy:"6.218",r:"2.774"}),jsxRuntime.jsx("circle",{cx:"21.365",cy:"21.363",r:"1.541"}),jsxRuntime.jsx("circle",{cx:"3.082",cy:"13.792",r:"2.465"}),jsxRuntime.jsx("circle",{cx:"24.501",cy:"13.791",r:"1.232"}),jsxRuntime.jsx("path",{d:"M4.694,19.84c-0.843,0.843-0.843,2.207,0,3.05c0.842,0.843,2.208,0.843,3.05,0c0.843-0.843,0.843-2.207,0-3.05 C6.902,18.996,5.537,18.988,4.694,19.84z"}),jsxRuntime.jsx("circle",{cx:"21.364",cy:"6.218",r:"0.924"})]})})})}function dt(e){return jsxRuntime.jsxs("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:[jsxRuntime.jsx("title",{}),jsxRuntime.jsx("path",{d:"M21.98 7.448L19.62 0H4.347L2.02 7.448c-1.352 4.312.03 9.206 3.815 12.015L12.007 24l6.157-4.552c3.755-2.81 5.182-7.688 3.815-12.015l-6.16 4.58 2.343 7.45-6.157-4.597-6.158 4.58 2.358-7.433-6.188-4.55 7.63-.045L12.008 0l2.356 7.404 7.615.044z",fill:"currentColor"})]})}function ft(e){return jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",id:"Layer_1",width:"24px",height:"24px",viewBox:"0 0 24 24",...e,children:jsxRuntime.jsx("path",{d:"M14.095479,10.316482L22.286354,1h-1.940718l-7.115352,8.087682L7.551414,1H1l8.589488,12.231093L1,23h1.940717 l7.509372-8.542861L16.448587,23H23L14.095479,10.316482z M11.436522,13.338465l-0.871624-1.218704l-6.924311-9.68815h2.981339 l5.58978,7.82155l0.867949,1.218704l7.26506,10.166271h-2.981339L11.436522,13.338465z",fill:"currentColor"})})}var Uo=m__namespace.forwardRef(function({asChild:e=!1,variant:t="text",color:o="primary",disabled:r=!1,fullWidth:a=!1,...s},l){let{children:d,type:f="button",loading:g=!1,size:C="md",loadingPosition:v="start",endIcon:D,startIcon:F,...M}=s,R=e?reactSlot.Slot:"button",b=Z({fullWidth:a,size:C,variant:t,color:o}),I=r||g;return jsxRuntime.jsx(R,{...e?s:M,"aria-disabled":I||void 0,className:b,"data-state":g?"loading":void 0,disabled:I,ref:l,role:R!=="button"?"button":void 0,tabIndex:I?-1:0,type:R==="button"?f:void 0,children:e?jsxRuntime.jsx(te,{children:d}):jsxRuntime.jsx(te,{...s})})});function te({children:e,loading:t=!1,size:o="md",loadingPosition:r="start",startIcon:a,endIcon:s,...l}){let d=t&&r==="start",f=d?jsxRuntime.jsx(w,{"aria-label":"Loading"}):a||null,g=N({size:o,loading:d}),C=E({size:o,site:"left"}),v=t&&r==="end",D=v?jsxRuntime.jsx(w,{"aria-label":"Loading"}):s||null,F=N({size:o,loading:v}),M=E({size:o,site:"right"}),R=f?jsxRuntime.jsx("span",{className:C,role:d?"progressbar":void 0,children:m__namespace.cloneElement(f,{className:g})}):null,b=D?jsxRuntime.jsx("span",{className:M,role:v?"progressbar":void 0,children:m__namespace.cloneElement(D,{className:F})}):null;return m__namespace.isValidElement(e)?m__namespace.cloneElement(e,{...l,children:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[R,m__namespace.isValidElement(e)?e.props.children:null,b]})}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[R,e,b]})}var ie=classVarianceAuthority.cva(["h-10 w-full appearance-none border bg-app-primary py-2 font-poppins outline-0 transition-colors duration-300 ease-in-out","placeholder:select-none placeholder:text-gray-200","invalid:border-error-500 focus:border-primary-400 active:border-primary-400","disabled:border-gray-400 disabled:text-gray-200 disabled:placeholder:text-gray-300"],{variants:{invalid:{true:["text-error-500 border-error-500 hover:border-error-400 focus:text-gray-100"],false:["text-gray-100 border-gray-350 hover:border-primary-500"]},withStartIcon:{true:"pl-11",false:"pl-3"},withEndIcon:{true:"pr-11",false:"pr-3"}},defaultVariants:{invalid:!1,withStartIcon:!1,withEndIcon:!1}}),H=classVarianceAuthority.cva(["pointer-events-none absolute bottom-2 top-2 inline-flex w-10 content-center items-center justify-center text-center"],{variants:{disabled:{true:"text-gray-200"},site:{right:"right-0 border-l border-l-gray-400 pr-1",left:"left-0 border-r border-r-gray-400 pl-1"}},defaultVariants:{disabled:!1}});var $o=m__namespace.forwardRef(function({invalid:e=!1,startIcon:t,endIcon:o,disabled:r=!1,className:a,...s},l){let d=ie({withEndIcon:!!o,withStartIcon:!!t,invalid:e}),f=H({site:"left",disabled:r}),g=H({site:"right",disabled:r});return jsxRuntime.jsxs("div",{className:"relative text-gray-100 typography-body-2",children:[t?jsxRuntime.jsx("span",{className:f,children:t}):null,jsxRuntime.jsx("input",{...s,"aria-invalid":e||void 0,disabled:r,className:tailwindMerge.twMerge(d,a),ref:l}),o?jsxRuntime.jsx("span",{"aria-hidden":!0,className:g,children:o}):null]})});function tr({defaultOpen:e,content:t,open:o,onOpenChange:r,children:a,side:s,align:l,collisionPadding:d=8,sideOffset:f=8,...g}){return jsxRuntime.jsxs(p__namespace.Root,{delayDuration:0,open:o,defaultOpen:e,onOpenChange:r,children:[jsxRuntime.jsx(p__namespace.Trigger,{asChild:!0,children:a}),t?jsxRuntime.jsx(p__namespace.Portal,{children:jsxRuntime.jsxs(p__namespace.Content,{className:"text-typography-primary select-none rounded bg-white p-2 will-change-[transform,opacity] typography-body-1 data-[state=delayed-open]:data-[side=bottom]:animate-slideUpAndFade data-[state=delayed-open]:data-[side=left]:animate-slideRightAndFade data-[state=delayed-open]:data-[side=right]:animate-slideLeftAndFade data-[state=delayed-open]:data-[side=top]:animate-slideDownAndFade",sideOffset:f,side:s,align:l,collisionPadding:d,...g,style:{maxWidth:"var(--radix-tooltip-content-available-width)"},children:[t,jsxRuntime.jsx(p__namespace.Arrow,{width:8,height:4,className:"fill-white"})]})}):null]})}function ar({children:e}){return jsxRuntime.jsx(p__namespace.Provider,{skipDelayDuration:500,children:e})}var ce=classVarianceAuthority.cva(["h-28 min-h-10 w-full appearance-none border bg-app-primary px-3 py-2 font-poppins outline-0 transition-colors duration-300 ease-in-out scroll typography-body-2 placeholder:select-none placeholder:text-gray-200","focus:border-primary-400","active:border-primary-400","disabled:border-gray-400 disabled:text-gray-200 disabled:placeholder:text-gray-300"],{variants:{invalid:{true:["text-error-500 border-error-500","hover:border-error-400","focus:text-gray-100"],false:["text-gray-100 border-gray-350","hover:border-primary-500"]}},defaultVariants:{invalid:!1}});var pr=m__namespace.forwardRef(function({invalid:e=!1,...t},o){let r=ce({invalid:e});return jsxRuntime.jsx("textarea",{"aria-invalid":e||void 0,className:r,ref:o,...t})});var de=classVarianceAuthority.cva(["h-10 w-full appearance-none border bg-app-primary py-2 font-poppins outline-0 inline-flex items-center justify-between text-gray-100 typography-body-2 gap-2 transition-colors duration-300 ease-in-out","placeholder:select-none placeholder:text-gray-200","invalid:border-error-500 focus:border-primary-400 active:border-primary-400","disabled:border-gray-400 disabled:text-gray-200 disabled:placeholder:text-gray-300"],{variants:{invalid:{true:["text-error-500 border-error-500 hover:border-error-400 focus:text-gray-100"],false:["text-gray-100 border-gray-350 hover:border-primary-500"]},withStartIcon:{true:"pl-11",false:"pl-3"},withEndIcon:{true:"pr-11",false:"pr-3"}},defaultVariants:{invalid:!1,withStartIcon:!1,withEndIcon:!1}});var ur=m__namespace.forwardRef(({children:e,placeholder:t,...o},r)=>{let a=de();return jsxRuntime.jsxs(n__namespace.Root,{...o,children:[jsxRuntime.jsxs(n__namespace.Trigger,{className:a,ref:r,children:[jsxRuntime.jsx(n__namespace.Value,{placeholder:"Select a fruit\u2026"}),jsxRuntime.jsx(n__namespace.Icon,{className:"-mr-1.5",children:jsxRuntime.jsx(i.CaretSortIcon,{className:"h-5 w-5 text-gray-200"})})]}),jsxRuntime.jsx(n__namespace.Portal,{children:jsxRuntime.jsx(n__namespace.Content,{sideOffset:4,className:"w-full overflow-hidden border border-gray-350 bg-app-primary py-1",children:jsxRuntime.jsx(n__namespace.Viewport,{children:e})})})]})});var br=m__namespace.forwardRef(({children:e,...t},o)=>jsxRuntime.jsxs(n__namespace.Item,{className:"flex w-full select-none flex-row items-center justify-between px-3 py-2 font-poppins text-gray-100 data-[disabled]:pointer-events-none data-[highlighted]:bg-gray-400 data-[state=checked]:bg-primary-300 data-[highlighted]:outline-none",ref:o,...t,children:[jsxRuntime.jsx(n__namespace.ItemText,{className:"flex-1",children:e}),jsxRuntime.jsx(n__namespace.ItemIndicator,{children:jsxRuntime.jsx(i.CheckIcon,{className:"h-4 w-4"})})]}));var Tr=m__namespace.forwardRef(({className:e,...t},o)=>jsxRuntime.jsx("div",{ref:o,className:tailwindMerge.twMerge("h-full rounded border border-gray-400 bg-foreground",e),...t}));var Ir=m__namespace.forwardRef(({className:e,...t},o)=>jsxRuntime.jsx("div",{ref:o,className:tailwindMerge.twMerge("flex flex-col p-6",e),...t}));var Ar=m__namespace.default.forwardRef(({className:e,...t},o)=>jsxRuntime.jsx("h3",{ref:o,className:tailwindMerge.twMerge("typography-heading-5",e),...t}));var Or=m__namespace.forwardRef(({className:e,...t},o)=>jsxRuntime.jsx("p",{ref:o,className:tailwindMerge.twMerge("text-gray-200 typography-body-2",e),...t}));var Gr=m__namespace.forwardRef(({className:e,...t},o)=>jsxRuntime.jsx("div",{ref:o,className:tailwindMerge.twMerge("p-6 pt-0",e),...t}));var _r=m__namespace.forwardRef(({className:e,...t},o)=>jsxRuntime.jsx("div",{ref:o,className:tailwindMerge.twMerge("flex items-center p-6 pt-0",e),...t}));var Qr=S__namespace.Root;var Zr=S__namespace.Trigger;var jr=S__namespace.Close;var Pe=m__namespace.default.forwardRef(function(e,t){return jsxRuntime.jsx(S__namespace.Overlay,{...e,className:"fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",ref:t})});var Ce=S__namespace.Portal;var De=classVarianceAuthority.cva("fixed z-50 border-gray-400 bg-foreground p-4 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}});var ma=m__namespace.forwardRef(function({side:e="right",className:t,children:o,...r},a){return jsxRuntime.jsxs(Ce,{children:[jsxRuntime.jsx(Pe,{}),jsxRuntime.jsxs(S__namespace.Content,{ref:a,className:tailwindMerge.twMerge(De({side:e}),t),...r,children:[o,jsxRuntime.jsxs(S__namespace.Close,{className:"focus:ring-ring absolute right-4 top-4 rounded-sm opacity-70 ring-primary-500 ring-offset-foreground transition-opacity data-[state=open]:bg-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none",children:[jsxRuntime.jsx(i.Cross1Icon,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})]})]})});function Ra({className:e,...t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex flex-col space-y-2 text-center sm:text-left",e),...t})}function va({className:e,...t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t})}var Pa=m__namespace.forwardRef(function({className:e,...t},o){return jsxRuntime.jsx(S__namespace.Title,{ref:o,className:tailwindMerge.twMerge("typography-heading-6",e),...t})});var Ma=m__namespace.forwardRef(function({className:e,...t},o){return jsxRuntime.jsx(S__namespace.Description,{ref:o,className:tailwindMerge.twMerge("text-gray-200 typography-body-2",e),...t})});var Na=m__namespace.forwardRef(function({className:e,orientation:t="horizontal",decorative:o=!0,...r},a){return jsxRuntime.jsx(Ae__namespace.Root,{ref:a,decorative:o,orientation:t,className:tailwindMerge.twMerge("shrink-0 bg-gray-400",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r})});function ka({children:e}){return jsxRuntime.jsx("header",{className:"sticky top-0 z-50 w-full border-b border-gray-400 bg-foreground/95 backdrop-blur supports-[backdrop-filter]:bg-foreground/60",children:jsxRuntime.jsx("div",{className:"container flex h-16 items-center",children:e})})}var Oa=S__namespace.Root;var Wa=S__namespace.Close;var Oe=classVarianceAuthority.cva(["fixed left-1/2 top-1/2 border-gray-400 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 border bg-foreground p-4 shadow-lg w-full grid gap-4 rounded","duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]"],{variants:{width:{xs:"max-w-xs",sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl","2xl":"max-w-2xl","3xl":"max-w-3xl","4xl":"max-w-4xl","5xl":"max-w-5xl","6xl":"max-w-6xl",full:"max-w-full"}},defaultVariants:{width:"md"}});var Fe=m__namespace.forwardRef(function(e,t){return jsxRuntime.jsx(S__namespace.Overlay,{...e,className:"fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",ref:t})});var Xe=S__namespace.Portal;var $a=m__namespace.forwardRef(function({className:e,children:t,width:o="md",...r},a){return jsxRuntime.jsxs(Xe,{children:[jsxRuntime.jsx(Fe,{}),jsxRuntime.jsxs(S__namespace.Content,{ref:a,className:tailwindMerge.twMerge(Oe({width:o}),e),...r,children:[t,jsxRuntime.jsxs(S__namespace.Close,{className:"focus:ring-ring absolute right-4 top-4 rounded-sm opacity-70 ring-primary-500 ring-offset-foreground transition-opacity data-[state=open]:bg-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none",children:[jsxRuntime.jsx(i.Cross1Icon,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})]})]})});var ti=S__namespace.Trigger;function ai({className:e,...t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex flex-col space-y-1.5 text-center sm:text-left",e),...t})}function li({className:e,...t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t})}var mi=m__namespace.forwardRef(function({className:e,...t},o){return jsxRuntime.jsx(S__namespace.Title,{ref:o,className:tailwindMerge.twMerge("typography-heading-6",e),...t})});var Ri=m__namespace.forwardRef(function({className:e,...t},o){return jsxRuntime.jsx(S__namespace.Description,{ref:o,className:tailwindMerge.twMerge("text-gray-200 typography-body-2",e),...t})});var T=m__namespace.default.createContext({});function so(e){if(typeof window<"u"&&window.localStorage){let t=window.localStorage.getItem("theme");if(t==="dark"||!t&&window.matchMedia("(prefers-color-scheme: dark)").matches)return "dark"}return e??"light"}function Si({children:e,defaultTheme:t,theme:o}){let[r,a]=m__namespace.default.useState(o||so(t));function s(l){typeof window<"u"&&window.localStorage&&(l==="dark"?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),localStorage.setItem("theme",l));}return m__namespace.default.useEffect(()=>{s(r);},[r]),jsxRuntime.jsx(T.Provider,{value:{theme:r,setTheme:a},children:e})}var Mi=()=>m__namespace.default.useContext(T);
|
|
42
42
|
|
|
43
|
-
exports.Avatar =
|
|
44
|
-
exports.AvatarFallback =
|
|
45
|
-
exports.AvatarImage =
|
|
46
|
-
exports.Button =
|
|
47
|
-
exports.Card =
|
|
48
|
-
exports.CardContent =
|
|
49
|
-
exports.CardDescription =
|
|
50
|
-
exports.CardFooter =
|
|
51
|
-
exports.CardHeader =
|
|
52
|
-
exports.CardTitle =
|
|
53
|
-
exports.Dialog =
|
|
54
|
-
exports.DialogClose =
|
|
55
|
-
exports.DialogContent =
|
|
56
|
-
exports.DialogDescription =
|
|
57
|
-
exports.DialogFooter =
|
|
58
|
-
exports.DialogHeader =
|
|
59
|
-
exports.DialogTitle =
|
|
60
|
-
exports.DialogTrigger =
|
|
61
|
-
exports.Header =
|
|
62
|
-
exports.Input =
|
|
63
|
-
exports.Select =
|
|
64
|
-
exports.SelectItem =
|
|
65
|
-
exports.Separator =
|
|
66
|
-
exports.Sheet =
|
|
67
|
-
exports.SheetClose =
|
|
68
|
-
exports.SheetContent =
|
|
69
|
-
exports.SheetDescription =
|
|
70
|
-
exports.SheetFooter =
|
|
71
|
-
exports.SheetHeader =
|
|
72
|
-
exports.SheetTitle =
|
|
73
|
-
exports.SheetTrigger =
|
|
74
|
-
exports.Textarea =
|
|
43
|
+
exports.Avatar = Ro;
|
|
44
|
+
exports.AvatarFallback = Po;
|
|
45
|
+
exports.AvatarImage = vo;
|
|
46
|
+
exports.Button = Uo;
|
|
47
|
+
exports.Card = Tr;
|
|
48
|
+
exports.CardContent = Gr;
|
|
49
|
+
exports.CardDescription = Or;
|
|
50
|
+
exports.CardFooter = _r;
|
|
51
|
+
exports.CardHeader = Ir;
|
|
52
|
+
exports.CardTitle = Ar;
|
|
53
|
+
exports.Dialog = Oa;
|
|
54
|
+
exports.DialogClose = Wa;
|
|
55
|
+
exports.DialogContent = $a;
|
|
56
|
+
exports.DialogDescription = Ri;
|
|
57
|
+
exports.DialogFooter = li;
|
|
58
|
+
exports.DialogHeader = ai;
|
|
59
|
+
exports.DialogTitle = mi;
|
|
60
|
+
exports.DialogTrigger = ti;
|
|
61
|
+
exports.Header = ka;
|
|
62
|
+
exports.Input = $o;
|
|
63
|
+
exports.Select = ur;
|
|
64
|
+
exports.SelectItem = br;
|
|
65
|
+
exports.Separator = Na;
|
|
66
|
+
exports.Sheet = Qr;
|
|
67
|
+
exports.SheetClose = jr;
|
|
68
|
+
exports.SheetContent = ma;
|
|
69
|
+
exports.SheetDescription = Ma;
|
|
70
|
+
exports.SheetFooter = va;
|
|
71
|
+
exports.SheetHeader = Ra;
|
|
72
|
+
exports.SheetTitle = Pa;
|
|
73
|
+
exports.SheetTrigger = Zr;
|
|
74
|
+
exports.Textarea = pr;
|
|
75
75
|
exports.ThemeContext = T;
|
|
76
|
-
exports.ThemeProvider =
|
|
77
|
-
exports.Tooltip =
|
|
78
|
-
exports.TooltipProvider =
|
|
79
|
-
exports.useTheme =
|
|
76
|
+
exports.ThemeProvider = Si;
|
|
77
|
+
exports.Tooltip = tr;
|
|
78
|
+
exports.TooltipProvider = ar;
|
|
79
|
+
exports.useTheme = Mi;
|
package/dist/index.mjs
CHANGED
|
@@ -5,12 +5,12 @@ import { twMerge } from 'tailwind-merge';
|
|
|
5
5
|
import { cva } from 'class-variance-authority';
|
|
6
6
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
7
7
|
import { Slot } from '@radix-ui/react-slot';
|
|
8
|
-
import * as
|
|
8
|
+
import * as Vo from '@radix-ui/react-icons';
|
|
9
9
|
import * as p from '@radix-ui/react-tooltip';
|
|
10
10
|
import * as n from '@radix-ui/react-select';
|
|
11
11
|
import * as S from '@radix-ui/react-dialog';
|
|
12
12
|
import * as Ae from '@radix-ui/react-separator';
|
|
13
13
|
|
|
14
|
-
var X=Object.defineProperty;var Ze=Object.getOwnPropertyDescriptor;var $e=Object.getOwnPropertyNames;var je=Object.prototype.hasOwnProperty;var et=(e,t)=>{for(var o in t)X(e,o,{get:t[o],enumerable:!0});},G=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of $e(t))!je.call(e,a)&&a!==o&&X(e,a,{get:()=>t[a],enumerable:!(r=Ze(t,a))||r.enumerable});return e},u=(e,t,o)=>(G(e,t,"default"),o&&G(o,t,"default"));var q=cva("relative flex shrink-0 overflow-hidden rounded",{variants:{size:{sm:"h-6 w-6 text-lg",md:"h-10 w-10 text-xl",lg:"h-14 w-14 text-2xl"}},defaultVariants:{size:"md"}});var ho=m.forwardRef(function({className:e,size:t,...o},r){let a=q({size:t});return jsx(_.Root,{ref:r,className:twMerge(a,e),...o})});var xo=m.forwardRef(function({className:e,...t},o){return jsx(_.Image,{ref:o,className:twMerge("aspect-square h-full w-full",e),...t})});var So=m.forwardRef(function({className:e,...t},o){return jsx(_.Fallback,{ref:o,className:twMerge("flex h-full w-full items-center justify-center bg-gray-350",e),...t})});var Z=cva(["inline-flex items-center justify-center align-middle no-underline transition-colors ease-in-out duration-300","font-sans appearance-none select-none rounded-sm border font-medium tracking-[.02857em]","aria-disabled:pointer-events-none aria-disabled:opacity-50 aria-disabled:cursor-not-allowed"],{variants:{fullWidth:{true:"w-full"},color:{neutral:"",primary:"",success:"",warning:"",error:""},size:{sm:"px-2.5 py-1 text-[.8125rem] leading-4",md:"px-4 py-1.5 text-sm leading-5",lg:"px-5 py-2 text-[.9375rem] leading-6"},variant:{text:"border-transparent bg-transparent",outlined:"bg-transparent",contained:""}},compoundVariants:[{variant:"text",color:"neutral",class:["text-gray-100","hover:border-gray-100 hover:bg-gray-100 hover:text-black","active:border-gray-200 active:bg-gray-200"]},{variant:"text",color:"primary",class:["text-primary-500","hover:border-primary-500 hover:bg-primary-500 hover:text-white","active:border-primary-600 active:bg-primary-600 active:text-white"]},{variant:"text",color:"success",class:["text-success-500","hover:border-success-500 hover:bg-success-500 hover:text-white","active:border-success-600 active:bg-success-600 active:text-white"]},{variant:"text",color:"warning",class:["text-warning-500","hover:border-warning-500 hover:bg-warning-500 hover:text-white","active:border-warning-600 active:bg-warning-600 active:text-white"]},{variant:"text",color:"error",class:["text-error-500","hover:border-error-500 hover:bg-error-500 hover:text-white","active:border-error-600 active:bg-error-600 active:text-white"]},{variant:"outlined",color:"neutral",class:["text-gray-100 border-gray-100","hover:bg-gray-100 hover:text-black","active:text-gray-600 active:bg-gray-200"]},{variant:"outlined",color:"primary",class:["text-primary-500 border-primary-500","hover:bg-primary-500 hover:text-white","active:text-white active:bg-primary-600"]},{variant:"outlined",color:"success",class:["text-success-500 border-success-500","hover:bg-success-500 hover:text-white","active:text-white active:bg-success-600"]},{variant:"outlined",color:"warning",class:["text-warning-500 border-warning-500","hover:bg-warning-500 hover:text-white","active:text-white active:bg-warning-600"]},{variant:"outlined",color:"error",class:["text-error-500 border-error-500","hover:bg-error-500 hover:text-white","active:text-white active:bg-error-600"]},{variant:"contained",color:"neutral",class:["border-gray-100 bg-gray-100 text-black","hover:border-white hover:bg-white","active:border-gray-200 active:bg-gray-200"]},{variant:"contained",color:"primary",class:["border-primary-500 bg-primary-500 text-white","hover:border-primary-400 hover:bg-primary-400","active:border-primary-600 active:bg-primary-600"]},{variant:"contained",color:"success",class:["border-success-500 bg-success-500 text-white","hover:border-success-400 hover:bg-success-400","active:border-success-600 active:bg-success-600"]},{variant:"contained",color:"warning",class:["border-warning-500 bg-warning-500 text-white","hover:border-warning-400 hover:bg-warning-400","active:border-warning-600 active:bg-warning-600"]},{variant:"contained",color:"error",class:["border-error-500 bg-error-500 text-white","hover:border-error-400 hover:bg-error-400","active:border-error-600 active:bg-error-600"]}],defaultVariants:{fullWidth:!1,color:"primary",size:"md",variant:"text"}}),E=cva("",{variants:{site:{left:"",right:""},size:{sm:"",md:"",lg:""}},compoundVariants:[{site:"left",size:"sm",class:"-ml-0.5 mr-1.5"},{site:"left",size:"md",class:"-ml-1 mr-2"},{site:"left",size:"lg",class:"-ml-1.5 mr-2.5"},{site:"right",size:"sm",class:"-mr-0.5 ml-1.5"},{site:"right",size:"md",class:"-mr-1 ml-2"},{site:"right",size:"lg",class:"-mr-1.5 ml-2.5"}],defaultVariants:{site:"left",size:"md"}}),N=cva("",{variants:{loading:{true:"motion-reduce:hidden animate-spin"},size:{sm:"h-4.5 w-4.5",md:"h-5 w-5",lg:"h-5.5 w-5.5"}},defaultVariants:{loading:!1,size:"md"}});var i={};et(i,{Auth0LogoIcon:()=>dt,GoogleLogoIcon:()=>lt,LoadingIcon:()=>w,XLogoIcon:()=>ft});u(i,zo);function lt(e){return jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),jsx("path",{d:"M12 2a9.96 9.96 0 0 1 6.29 2.226a1 1 0 0 1 .04 1.52l-1.51 1.362a1 1 0 0 1 -1.265 .06a6 6 0 1 0 2.103 6.836l.001 -.004h-3.66a1 1 0 0 1 -.992 -.883l-.007 -.117v-2a1 1 0 0 1 1 -1h6.945a1 1 0 0 1 .994 .89c.04 .367 .061 .737 .061 1.11c0 5.523 -4.477 10 -10 10s-10 -4.477 -10 -10s4.477 -10 10 -10z",strokeWidth:"0",fill:"currentColor"})]})}function w(e){return jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",fill:"currentColor",version:"1.1",viewBox:"0 0 26.349 26.35",xmlSpace:"preserve",...e,children:jsx("g",{children:jsxs("g",{children:[jsx("circle",{cx:"13.792",cy:"3.082",r:"3.082"}),jsx("circle",{cx:"13.792",cy:"24.501",r:"1.849"}),jsx("circle",{cx:"6.219",cy:"6.218",r:"2.774"}),jsx("circle",{cx:"21.365",cy:"21.363",r:"1.541"}),jsx("circle",{cx:"3.082",cy:"13.792",r:"2.465"}),jsx("circle",{cx:"24.501",cy:"13.791",r:"1.232"}),jsx("path",{d:"M4.694,19.84c-0.843,0.843-0.843,2.207,0,3.05c0.842,0.843,2.208,0.843,3.05,0c0.843-0.843,0.843-2.207,0-3.05 C6.902,18.996,5.537,18.988,4.694,19.84z"}),jsx("circle",{cx:"21.364",cy:"6.218",r:"0.924"})]})})})}function dt(e){return jsxs("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:[jsx("title",{}),jsx("path",{d:"M21.98 7.448L19.62 0H4.347L2.02 7.448c-1.352 4.312.03 9.206 3.815 12.015L12.007 24l6.157-4.552c3.755-2.81 5.182-7.688 3.815-12.015l-6.16 4.58 2.343 7.45-6.157-4.597-6.158 4.58 2.358-7.433-6.188-4.55 7.63-.045L12.008 0l2.356 7.404 7.615.044z",fill:"currentColor"})]})}function ft(e){return jsx("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",id:"Layer_1",width:"24px",height:"24px",viewBox:"0 0 24 24",...e,children:jsx("path",{d:"M14.095479,10.316482L22.286354,1h-1.940718l-7.115352,8.087682L7.551414,1H1l8.589488,12.231093L1,23h1.940717 l7.509372-8.542861L16.448587,23H23L14.095479,10.316482z M11.436522,13.338465l-0.871624-1.218704l-6.924311-9.68815h2.981339 l5.58978,7.82155l0.867949,1.218704l7.26506,10.166271h-2.981339L11.436522,13.338465z",fill:"currentColor"})})}var qo=m.forwardRef(function({asChild:e=!1,variant:t="text",color:o="primary",disabled:r=!1,fullWidth:a=!1,...s},l){let{children:d,type:f="button",loading:h=!1,size:C="md",loadingPosition:v="start",endIcon:D,startIcon:F,...I}=s,R=e?Slot:"button",b=Z({fullWidth:a,size:C,variant:t,color:o}),M=r||h;return jsx(R,{...e?s:I,"aria-disabled":M||void 0,className:b,"data-state":h?"loading":void 0,disabled:M,ref:l,role:R!=="button"?"button":void 0,tabIndex:M?-1:0,type:R==="button"?f:void 0,children:e?jsx(te,{children:d}):jsx(te,{...s})})});function te({children:e,loading:t=!1,size:o="md",loadingPosition:r="start",startIcon:a,endIcon:s,...l}){let d=t&&r==="start",f=d?jsx(w,{"aria-label":"Loading"}):a||null,h=N({size:o,loading:d}),C=E({size:o,site:"left"}),v=t&&r==="end",D=v?jsx(w,{"aria-label":"Loading"}):s||null,F=N({size:o,loading:v}),I=E({size:o,site:"right"}),R=f?jsx("span",{className:C,role:d?"progressbar":void 0,children:m.cloneElement(f,{className:h})}):null,b=D?jsx("span",{className:I,role:v?"progressbar":void 0,children:m.cloneElement(D,{className:F})}):null;return m.isValidElement(e)?m.cloneElement(e,{...l,children:jsxs(Fragment,{children:[R,m.isValidElement(e)?e.props.children:null,b]})}):jsxs(Fragment,{children:[R,e,b]})}var ie=cva(["h-10 w-full appearance-none border bg-app-primary py-2 font-poppins outline-0 transition-colors duration-300 ease-in-out","placeholder:select-none placeholder:text-gray-200","invalid:border-error-500 focus:border-primary-400 active:border-primary-400","disabled:border-gray-400 disabled:text-gray-200 disabled:placeholder:text-gray-300"],{variants:{invalid:{true:["text-error-500 border-error-500 hover:border-error-400 focus:text-gray-100"],false:["text-gray-100 border-gray-350 hover:border-primary-500"]},withStartIcon:{true:"pl-11",false:"pl-3"},withEndIcon:{true:"pr-11",false:"pr-3"}},defaultVariants:{invalid:!1,withStartIcon:!1,withEndIcon:!1}}),H=cva(["pointer-events-none absolute bottom-2 top-2 inline-flex w-10 content-center items-center justify-center text-center"],{variants:{disabled:{true:"text-gray-200"},site:{right:"right-0 border-l border-l-gray-400 pr-1",left:"left-0 border-r border-r-gray-400 pl-1"}},defaultVariants:{disabled:!1}});var Yo=m.forwardRef(function({invalid:e=!1,startIcon:t,endIcon:o,disabled:r=!1,...a},s){let l=ie({withEndIcon:!!o,withStartIcon:!!t,invalid:e}),d=H({site:"left",disabled:r}),f=H({site:"right",disabled:r});return jsxs("div",{className:"relative text-gray-100 typography-body-2",children:[t?jsx("span",{className:d,children:t}):null,jsx("input",{"aria-invalid":e||void 0,disabled:r,className:l,ref:s,...a}),o?jsx("span",{"aria-hidden":!0,className:f,children:o}):null]})});function jo({defaultOpen:e,content:t,open:o,onOpenChange:r,children:a,side:s,align:l,collisionPadding:d=8,sideOffset:f=8,...h}){return jsxs(p.Root,{delayDuration:0,open:o,defaultOpen:e,onOpenChange:r,children:[jsx(p.Trigger,{asChild:!0,children:a}),t?jsx(p.Portal,{children:jsxs(p.Content,{className:"text-typography-primary select-none rounded bg-white p-2 will-change-[transform,opacity] typography-body-1 data-[state=delayed-open]:data-[side=bottom]:animate-slideUpAndFade data-[state=delayed-open]:data-[side=left]:animate-slideRightAndFade data-[state=delayed-open]:data-[side=right]:animate-slideLeftAndFade data-[state=delayed-open]:data-[side=top]:animate-slideDownAndFade",sideOffset:f,side:s,align:l,collisionPadding:d,...h,style:{maxWidth:"var(--radix-tooltip-content-available-width)"},children:[t,jsx(p.Arrow,{width:8,height:4,className:"fill-white"})]})}):null]})}function or({children:e}){return jsx(p.Provider,{skipDelayDuration:500,children:e})}var ce=cva(["h-28 min-h-10 w-full appearance-none border bg-app-primary px-3 py-2 font-poppins outline-0 transition-colors duration-300 ease-in-out scroll typography-body-2 placeholder:select-none placeholder:text-gray-200","focus:border-primary-400","active:border-primary-400","disabled:border-gray-400 disabled:text-gray-200 disabled:placeholder:text-gray-300"],{variants:{invalid:{true:["text-error-500 border-error-500","hover:border-error-400","focus:text-gray-100"],false:["text-gray-100 border-gray-350","hover:border-primary-500"]}},defaultVariants:{invalid:!1}});var lr=m.forwardRef(function({invalid:e=!1,...t},o){let r=ce({invalid:e});return jsx("textarea",{"aria-invalid":e||void 0,className:r,ref:o,...t})});var de=cva(["h-10 w-full appearance-none border bg-app-primary py-2 font-poppins outline-0 inline-flex items-center justify-between text-gray-100 typography-body-2 gap-2 transition-colors duration-300 ease-in-out","placeholder:select-none placeholder:text-gray-200","invalid:border-error-500 focus:border-primary-400 active:border-primary-400","disabled:border-gray-400 disabled:text-gray-200 disabled:placeholder:text-gray-300"],{variants:{invalid:{true:["text-error-500 border-error-500 hover:border-error-400 focus:text-gray-100"],false:["text-gray-100 border-gray-350 hover:border-primary-500"]},withStartIcon:{true:"pl-11",false:"pl-3"},withEndIcon:{true:"pr-11",false:"pr-3"}},defaultVariants:{invalid:!1,withStartIcon:!1,withEndIcon:!1}});var hr=m.forwardRef(({children:e,placeholder:t,...o},r)=>{let a=de();return jsxs(n.Root,{...o,children:[jsxs(n.Trigger,{className:a,ref:r,children:[jsx(n.Value,{placeholder:"Select a fruit\u2026"}),jsx(n.Icon,{className:"-mr-1.5",children:jsx(i.CaretSortIcon,{className:"h-5 w-5 text-gray-200"})})]}),jsx(n.Portal,{children:jsx(n.Content,{sideOffset:4,className:"w-full overflow-hidden border border-gray-350 bg-app-primary py-1",children:jsx(n.Viewport,{children:e})})})]})});var xr=m.forwardRef(({children:e,...t},o)=>jsxs(n.Item,{className:"flex w-full select-none flex-row items-center justify-between px-3 py-2 font-poppins text-gray-100 data-[disabled]:pointer-events-none data-[highlighted]:bg-gray-400 data-[state=checked]:bg-primary-300 data-[highlighted]:outline-none",ref:o,...t,children:[jsx(n.ItemText,{className:"flex-1",children:e}),jsx(n.ItemIndicator,{children:jsx(i.CheckIcon,{className:"h-4 w-4"})})]}));var Sr=m.forwardRef(({className:e,...t},o)=>jsx("div",{ref:o,className:twMerge("h-full rounded border border-gray-400 bg-foreground",e),...t}));var Dr=m.forwardRef(({className:e,...t},o)=>jsx("div",{ref:o,className:twMerge("flex flex-col p-6",e),...t}));var Nr=m__default.forwardRef(({className:e,...t},o)=>jsx("h3",{ref:o,className:twMerge("typography-heading-5",e),...t}));var zr=m.forwardRef(({className:e,...t},o)=>jsx("p",{ref:o,className:twMerge("text-gray-200 typography-body-2",e),...t}));var Br=m.forwardRef(({className:e,...t},o)=>jsx("div",{ref:o,className:twMerge("p-6 pt-0",e),...t}));var qr=m.forwardRef(({className:e,...t},o)=>jsx("div",{ref:o,className:twMerge("flex items-center p-6 pt-0",e),...t}));var Jr=S.Root;var Qr=S.Trigger;var Zr=S.Close;var Pe=m__default.forwardRef(function(e,t){return jsx(S.Overlay,{...e,className:"fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",ref:t})});var Ce=S.Portal;var De=cva("fixed z-50 border-gray-400 bg-foreground p-4 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}});var pa=m.forwardRef(function({side:e="right",className:t,children:o,...r},a){return jsxs(Ce,{children:[jsx(Pe,{}),jsxs(S.Content,{ref:a,className:twMerge(De({side:e}),t),...r,children:[o,jsxs(S.Close,{className:"focus:ring-ring absolute right-4 top-4 rounded-sm opacity-70 ring-primary-500 ring-offset-foreground transition-opacity data-[state=open]:bg-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none",children:[jsx(i.Cross1Icon,{className:"h-4 w-4"}),jsx("span",{className:"sr-only",children:"Close"})]})]})]})});function ga({className:e,...t}){return jsx("div",{className:twMerge("flex flex-col space-y-2 text-center sm:text-left",e),...t})}function ya({className:e,...t}){return jsx("div",{className:twMerge("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t})}var wa=m.forwardRef(function({className:e,...t},o){return jsx(S.Title,{ref:o,className:twMerge("typography-heading-6",e),...t})});var Ca=m.forwardRef(function({className:e,...t},o){return jsx(S.Description,{ref:o,className:twMerge("text-gray-200 typography-body-2",e),...t})});var La=m.forwardRef(function({className:e,orientation:t="horizontal",decorative:o=!0,...r},a){return jsx(Ae.Root,{ref:a,decorative:o,orientation:t,className:twMerge("shrink-0 bg-gray-400",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r})});function Ha({children:e}){return jsx("header",{className:"sticky top-0 z-50 w-full border-b border-gray-400 bg-foreground/95 backdrop-blur supports-[backdrop-filter]:bg-foreground/60",children:jsx("div",{className:"container flex h-16 items-center",children:e})})}var za=S.Root;var Oa=S.Close;var Oe=cva(["fixed left-1/2 top-1/2 border-gray-400 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 border bg-foreground p-4 shadow-lg w-full grid gap-4 rounded","duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]"],{variants:{width:{xs:"max-w-xs",sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl","2xl":"max-w-2xl","3xl":"max-w-3xl","4xl":"max-w-4xl","5xl":"max-w-5xl","6xl":"max-w-6xl",full:"max-w-full"}},defaultVariants:{width:"md"}});var Fe=m.forwardRef(function(e,t){return jsx(S.Overlay,{...e,className:"fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",ref:t})});var Xe=S.Portal;var Ya=m.forwardRef(function({className:e,children:t,width:o="md",...r},a){return jsxs(Xe,{children:[jsx(Fe,{}),jsxs(S.Content,{ref:a,className:twMerge(Oe({width:o}),e),...r,children:[t,jsxs(S.Close,{className:"focus:ring-ring absolute right-4 top-4 rounded-sm opacity-70 ring-primary-500 ring-offset-foreground transition-opacity data-[state=open]:bg-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none",children:[jsx(i.Cross1Icon,{className:"h-4 w-4"}),jsx("span",{className:"sr-only",children:"Close"})]})]})]})});var ja=S.Trigger;function oi({className:e,...t}){return jsx("div",{className:twMerge("flex flex-col space-y-1.5 text-center sm:text-left",e),...t})}function ni({className:e,...t}){return jsx("div",{className:twMerge("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t})}var pi=m.forwardRef(function({className:e,...t},o){return jsx(S.Title,{ref:o,className:twMerge("typography-heading-6",e),...t})});var gi=m.forwardRef(function({className:e,...t},o){return jsx(S.Description,{ref:o,className:twMerge("text-gray-200 typography-body-2",e),...t})});var T=m__default.createContext({});function no(e){if(typeof window<"u"&&window.localStorage){let t=window.localStorage.getItem("theme");if(t==="dark"||!t&&window.matchMedia("(prefers-color-scheme: dark)").matches)return "dark"}return e??"light"}function bi({children:e,defaultTheme:t,theme:o}){let[r,a]=m__default.useState(o||no(t));function s(l){typeof window<"u"&&window.localStorage&&(l==="dark"?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),localStorage.setItem("theme",l));}return m__default.useEffect(()=>{s(r);},[r]),jsx(T.Provider,{value:{theme:r,setTheme:a},children:e})}var Ci=()=>m__default.useContext(T);
|
|
14
|
+
var X=Object.defineProperty;var Ze=Object.getOwnPropertyDescriptor;var $e=Object.getOwnPropertyNames;var je=Object.prototype.hasOwnProperty;var et=(e,t)=>{for(var o in t)X(e,o,{get:t[o],enumerable:!0});},G=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of $e(t))!je.call(e,a)&&a!==o&&X(e,a,{get:()=>t[a],enumerable:!(r=Ze(t,a))||r.enumerable});return e},u=(e,t,o)=>(G(e,t,"default"),o&&G(o,t,"default"));var q=cva("relative flex shrink-0 overflow-hidden rounded",{variants:{size:{sm:"h-6 w-6 text-lg",md:"h-10 w-10 text-xl",lg:"h-14 w-14 text-2xl"}},defaultVariants:{size:"md"}});var Ro=m.forwardRef(function({className:e,size:t,...o},r){let a=q({size:t});return jsx(_.Root,{ref:r,className:twMerge(a,e),...o})});var vo=m.forwardRef(function({className:e,...t},o){return jsx(_.Image,{ref:o,className:twMerge("aspect-square h-full w-full",e),...t})});var Po=m.forwardRef(function({className:e,...t},o){return jsx(_.Fallback,{ref:o,className:twMerge("flex h-full w-full items-center justify-center bg-gray-350",e),...t})});var Z=cva(["inline-flex items-center justify-center align-middle no-underline transition-colors ease-in-out duration-300","font-sans appearance-none select-none rounded-sm border font-medium tracking-[.02857em]","aria-disabled:pointer-events-none aria-disabled:opacity-50 aria-disabled:cursor-not-allowed"],{variants:{fullWidth:{true:"w-full"},color:{neutral:"",primary:"",success:"",warning:"",error:""},size:{sm:"px-2.5 py-1 text-[.8125rem] leading-4",md:"px-4 py-1.5 text-sm leading-5",lg:"px-5 py-2 text-[.9375rem] leading-6"},variant:{text:"border-transparent bg-transparent",outlined:"bg-transparent",contained:""}},compoundVariants:[{variant:"text",color:"neutral",class:["text-gray-100","hover:border-gray-100 hover:bg-gray-100 hover:text-black","active:border-gray-200 active:bg-gray-200"]},{variant:"text",color:"primary",class:["text-primary-500","hover:border-primary-500 hover:bg-primary-500 hover:text-white","active:border-primary-600 active:bg-primary-600 active:text-white"]},{variant:"text",color:"success",class:["text-success-500","hover:border-success-500 hover:bg-success-500 hover:text-white","active:border-success-600 active:bg-success-600 active:text-white"]},{variant:"text",color:"warning",class:["text-warning-500","hover:border-warning-500 hover:bg-warning-500 hover:text-white","active:border-warning-600 active:bg-warning-600 active:text-white"]},{variant:"text",color:"error",class:["text-error-500","hover:border-error-500 hover:bg-error-500 hover:text-white","active:border-error-600 active:bg-error-600 active:text-white"]},{variant:"outlined",color:"neutral",class:["text-gray-100 border-gray-100","hover:bg-gray-100 hover:text-black","active:text-gray-600 active:bg-gray-200"]},{variant:"outlined",color:"primary",class:["text-primary-500 border-primary-500","hover:bg-primary-500 hover:text-white","active:text-white active:bg-primary-600"]},{variant:"outlined",color:"success",class:["text-success-500 border-success-500","hover:bg-success-500 hover:text-white","active:text-white active:bg-success-600"]},{variant:"outlined",color:"warning",class:["text-warning-500 border-warning-500","hover:bg-warning-500 hover:text-white","active:text-white active:bg-warning-600"]},{variant:"outlined",color:"error",class:["text-error-500 border-error-500","hover:bg-error-500 hover:text-white","active:text-white active:bg-error-600"]},{variant:"contained",color:"neutral",class:["border-gray-100 bg-gray-100 text-black","hover:border-white hover:bg-white","active:border-gray-200 active:bg-gray-200"]},{variant:"contained",color:"primary",class:["border-primary-500 bg-primary-500 text-white","hover:border-primary-400 hover:bg-primary-400","active:border-primary-600 active:bg-primary-600"]},{variant:"contained",color:"success",class:["border-success-500 bg-success-500 text-white","hover:border-success-400 hover:bg-success-400","active:border-success-600 active:bg-success-600"]},{variant:"contained",color:"warning",class:["border-warning-500 bg-warning-500 text-white","hover:border-warning-400 hover:bg-warning-400","active:border-warning-600 active:bg-warning-600"]},{variant:"contained",color:"error",class:["border-error-500 bg-error-500 text-white","hover:border-error-400 hover:bg-error-400","active:border-error-600 active:bg-error-600"]}],defaultVariants:{fullWidth:!1,color:"primary",size:"md",variant:"text"}}),E=cva("",{variants:{site:{left:"",right:""},size:{sm:"",md:"",lg:""}},compoundVariants:[{site:"left",size:"sm",class:"-ml-0.5 mr-1.5"},{site:"left",size:"md",class:"-ml-1 mr-2"},{site:"left",size:"lg",class:"-ml-1.5 mr-2.5"},{site:"right",size:"sm",class:"-mr-0.5 ml-1.5"},{site:"right",size:"md",class:"-mr-1 ml-2"},{site:"right",size:"lg",class:"-mr-1.5 ml-2.5"}],defaultVariants:{site:"left",size:"md"}}),N=cva("",{variants:{loading:{true:"motion-reduce:hidden animate-spin"},size:{sm:"h-4.5 w-4.5",md:"h-5 w-5",lg:"h-5.5 w-5.5"}},defaultVariants:{loading:!1,size:"md"}});var i={};et(i,{Auth0LogoIcon:()=>dt,GoogleLogoIcon:()=>lt,LoadingIcon:()=>w,XLogoIcon:()=>ft});u(i,Vo);function lt(e){return jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),jsx("path",{d:"M12 2a9.96 9.96 0 0 1 6.29 2.226a1 1 0 0 1 .04 1.52l-1.51 1.362a1 1 0 0 1 -1.265 .06a6 6 0 1 0 2.103 6.836l.001 -.004h-3.66a1 1 0 0 1 -.992 -.883l-.007 -.117v-2a1 1 0 0 1 1 -1h6.945a1 1 0 0 1 .994 .89c.04 .367 .061 .737 .061 1.11c0 5.523 -4.477 10 -10 10s-10 -4.477 -10 -10s4.477 -10 10 -10z",strokeWidth:"0",fill:"currentColor"})]})}function w(e){return jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",fill:"currentColor",version:"1.1",viewBox:"0 0 26.349 26.35",xmlSpace:"preserve",...e,children:jsx("g",{children:jsxs("g",{children:[jsx("circle",{cx:"13.792",cy:"3.082",r:"3.082"}),jsx("circle",{cx:"13.792",cy:"24.501",r:"1.849"}),jsx("circle",{cx:"6.219",cy:"6.218",r:"2.774"}),jsx("circle",{cx:"21.365",cy:"21.363",r:"1.541"}),jsx("circle",{cx:"3.082",cy:"13.792",r:"2.465"}),jsx("circle",{cx:"24.501",cy:"13.791",r:"1.232"}),jsx("path",{d:"M4.694,19.84c-0.843,0.843-0.843,2.207,0,3.05c0.842,0.843,2.208,0.843,3.05,0c0.843-0.843,0.843-2.207,0-3.05 C6.902,18.996,5.537,18.988,4.694,19.84z"}),jsx("circle",{cx:"21.364",cy:"6.218",r:"0.924"})]})})})}function dt(e){return jsxs("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:[jsx("title",{}),jsx("path",{d:"M21.98 7.448L19.62 0H4.347L2.02 7.448c-1.352 4.312.03 9.206 3.815 12.015L12.007 24l6.157-4.552c3.755-2.81 5.182-7.688 3.815-12.015l-6.16 4.58 2.343 7.45-6.157-4.597-6.158 4.58 2.358-7.433-6.188-4.55 7.63-.045L12.008 0l2.356 7.404 7.615.044z",fill:"currentColor"})]})}function ft(e){return jsx("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",id:"Layer_1",width:"24px",height:"24px",viewBox:"0 0 24 24",...e,children:jsx("path",{d:"M14.095479,10.316482L22.286354,1h-1.940718l-7.115352,8.087682L7.551414,1H1l8.589488,12.231093L1,23h1.940717 l7.509372-8.542861L16.448587,23H23L14.095479,10.316482z M11.436522,13.338465l-0.871624-1.218704l-6.924311-9.68815h2.981339 l5.58978,7.82155l0.867949,1.218704l7.26506,10.166271h-2.981339L11.436522,13.338465z",fill:"currentColor"})})}var Uo=m.forwardRef(function({asChild:e=!1,variant:t="text",color:o="primary",disabled:r=!1,fullWidth:a=!1,...s},l){let{children:d,type:f="button",loading:g=!1,size:C="md",loadingPosition:v="start",endIcon:D,startIcon:F,...M}=s,R=e?Slot:"button",b=Z({fullWidth:a,size:C,variant:t,color:o}),I=r||g;return jsx(R,{...e?s:M,"aria-disabled":I||void 0,className:b,"data-state":g?"loading":void 0,disabled:I,ref:l,role:R!=="button"?"button":void 0,tabIndex:I?-1:0,type:R==="button"?f:void 0,children:e?jsx(te,{children:d}):jsx(te,{...s})})});function te({children:e,loading:t=!1,size:o="md",loadingPosition:r="start",startIcon:a,endIcon:s,...l}){let d=t&&r==="start",f=d?jsx(w,{"aria-label":"Loading"}):a||null,g=N({size:o,loading:d}),C=E({size:o,site:"left"}),v=t&&r==="end",D=v?jsx(w,{"aria-label":"Loading"}):s||null,F=N({size:o,loading:v}),M=E({size:o,site:"right"}),R=f?jsx("span",{className:C,role:d?"progressbar":void 0,children:m.cloneElement(f,{className:g})}):null,b=D?jsx("span",{className:M,role:v?"progressbar":void 0,children:m.cloneElement(D,{className:F})}):null;return m.isValidElement(e)?m.cloneElement(e,{...l,children:jsxs(Fragment,{children:[R,m.isValidElement(e)?e.props.children:null,b]})}):jsxs(Fragment,{children:[R,e,b]})}var ie=cva(["h-10 w-full appearance-none border bg-app-primary py-2 font-poppins outline-0 transition-colors duration-300 ease-in-out","placeholder:select-none placeholder:text-gray-200","invalid:border-error-500 focus:border-primary-400 active:border-primary-400","disabled:border-gray-400 disabled:text-gray-200 disabled:placeholder:text-gray-300"],{variants:{invalid:{true:["text-error-500 border-error-500 hover:border-error-400 focus:text-gray-100"],false:["text-gray-100 border-gray-350 hover:border-primary-500"]},withStartIcon:{true:"pl-11",false:"pl-3"},withEndIcon:{true:"pr-11",false:"pr-3"}},defaultVariants:{invalid:!1,withStartIcon:!1,withEndIcon:!1}}),H=cva(["pointer-events-none absolute bottom-2 top-2 inline-flex w-10 content-center items-center justify-center text-center"],{variants:{disabled:{true:"text-gray-200"},site:{right:"right-0 border-l border-l-gray-400 pr-1",left:"left-0 border-r border-r-gray-400 pl-1"}},defaultVariants:{disabled:!1}});var $o=m.forwardRef(function({invalid:e=!1,startIcon:t,endIcon:o,disabled:r=!1,className:a,...s},l){let d=ie({withEndIcon:!!o,withStartIcon:!!t,invalid:e}),f=H({site:"left",disabled:r}),g=H({site:"right",disabled:r});return jsxs("div",{className:"relative text-gray-100 typography-body-2",children:[t?jsx("span",{className:f,children:t}):null,jsx("input",{...s,"aria-invalid":e||void 0,disabled:r,className:twMerge(d,a),ref:l}),o?jsx("span",{"aria-hidden":!0,className:g,children:o}):null]})});function tr({defaultOpen:e,content:t,open:o,onOpenChange:r,children:a,side:s,align:l,collisionPadding:d=8,sideOffset:f=8,...g}){return jsxs(p.Root,{delayDuration:0,open:o,defaultOpen:e,onOpenChange:r,children:[jsx(p.Trigger,{asChild:!0,children:a}),t?jsx(p.Portal,{children:jsxs(p.Content,{className:"text-typography-primary select-none rounded bg-white p-2 will-change-[transform,opacity] typography-body-1 data-[state=delayed-open]:data-[side=bottom]:animate-slideUpAndFade data-[state=delayed-open]:data-[side=left]:animate-slideRightAndFade data-[state=delayed-open]:data-[side=right]:animate-slideLeftAndFade data-[state=delayed-open]:data-[side=top]:animate-slideDownAndFade",sideOffset:f,side:s,align:l,collisionPadding:d,...g,style:{maxWidth:"var(--radix-tooltip-content-available-width)"},children:[t,jsx(p.Arrow,{width:8,height:4,className:"fill-white"})]})}):null]})}function ar({children:e}){return jsx(p.Provider,{skipDelayDuration:500,children:e})}var ce=cva(["h-28 min-h-10 w-full appearance-none border bg-app-primary px-3 py-2 font-poppins outline-0 transition-colors duration-300 ease-in-out scroll typography-body-2 placeholder:select-none placeholder:text-gray-200","focus:border-primary-400","active:border-primary-400","disabled:border-gray-400 disabled:text-gray-200 disabled:placeholder:text-gray-300"],{variants:{invalid:{true:["text-error-500 border-error-500","hover:border-error-400","focus:text-gray-100"],false:["text-gray-100 border-gray-350","hover:border-primary-500"]}},defaultVariants:{invalid:!1}});var pr=m.forwardRef(function({invalid:e=!1,...t},o){let r=ce({invalid:e});return jsx("textarea",{"aria-invalid":e||void 0,className:r,ref:o,...t})});var de=cva(["h-10 w-full appearance-none border bg-app-primary py-2 font-poppins outline-0 inline-flex items-center justify-between text-gray-100 typography-body-2 gap-2 transition-colors duration-300 ease-in-out","placeholder:select-none placeholder:text-gray-200","invalid:border-error-500 focus:border-primary-400 active:border-primary-400","disabled:border-gray-400 disabled:text-gray-200 disabled:placeholder:text-gray-300"],{variants:{invalid:{true:["text-error-500 border-error-500 hover:border-error-400 focus:text-gray-100"],false:["text-gray-100 border-gray-350 hover:border-primary-500"]},withStartIcon:{true:"pl-11",false:"pl-3"},withEndIcon:{true:"pr-11",false:"pr-3"}},defaultVariants:{invalid:!1,withStartIcon:!1,withEndIcon:!1}});var ur=m.forwardRef(({children:e,placeholder:t,...o},r)=>{let a=de();return jsxs(n.Root,{...o,children:[jsxs(n.Trigger,{className:a,ref:r,children:[jsx(n.Value,{placeholder:"Select a fruit\u2026"}),jsx(n.Icon,{className:"-mr-1.5",children:jsx(i.CaretSortIcon,{className:"h-5 w-5 text-gray-200"})})]}),jsx(n.Portal,{children:jsx(n.Content,{sideOffset:4,className:"w-full overflow-hidden border border-gray-350 bg-app-primary py-1",children:jsx(n.Viewport,{children:e})})})]})});var br=m.forwardRef(({children:e,...t},o)=>jsxs(n.Item,{className:"flex w-full select-none flex-row items-center justify-between px-3 py-2 font-poppins text-gray-100 data-[disabled]:pointer-events-none data-[highlighted]:bg-gray-400 data-[state=checked]:bg-primary-300 data-[highlighted]:outline-none",ref:o,...t,children:[jsx(n.ItemText,{className:"flex-1",children:e}),jsx(n.ItemIndicator,{children:jsx(i.CheckIcon,{className:"h-4 w-4"})})]}));var Tr=m.forwardRef(({className:e,...t},o)=>jsx("div",{ref:o,className:twMerge("h-full rounded border border-gray-400 bg-foreground",e),...t}));var Ir=m.forwardRef(({className:e,...t},o)=>jsx("div",{ref:o,className:twMerge("flex flex-col p-6",e),...t}));var Ar=m__default.forwardRef(({className:e,...t},o)=>jsx("h3",{ref:o,className:twMerge("typography-heading-5",e),...t}));var Or=m.forwardRef(({className:e,...t},o)=>jsx("p",{ref:o,className:twMerge("text-gray-200 typography-body-2",e),...t}));var Gr=m.forwardRef(({className:e,...t},o)=>jsx("div",{ref:o,className:twMerge("p-6 pt-0",e),...t}));var _r=m.forwardRef(({className:e,...t},o)=>jsx("div",{ref:o,className:twMerge("flex items-center p-6 pt-0",e),...t}));var Qr=S.Root;var Zr=S.Trigger;var jr=S.Close;var Pe=m__default.forwardRef(function(e,t){return jsx(S.Overlay,{...e,className:"fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",ref:t})});var Ce=S.Portal;var De=cva("fixed z-50 border-gray-400 bg-foreground p-4 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}});var ma=m.forwardRef(function({side:e="right",className:t,children:o,...r},a){return jsxs(Ce,{children:[jsx(Pe,{}),jsxs(S.Content,{ref:a,className:twMerge(De({side:e}),t),...r,children:[o,jsxs(S.Close,{className:"focus:ring-ring absolute right-4 top-4 rounded-sm opacity-70 ring-primary-500 ring-offset-foreground transition-opacity data-[state=open]:bg-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none",children:[jsx(i.Cross1Icon,{className:"h-4 w-4"}),jsx("span",{className:"sr-only",children:"Close"})]})]})]})});function Ra({className:e,...t}){return jsx("div",{className:twMerge("flex flex-col space-y-2 text-center sm:text-left",e),...t})}function va({className:e,...t}){return jsx("div",{className:twMerge("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t})}var Pa=m.forwardRef(function({className:e,...t},o){return jsx(S.Title,{ref:o,className:twMerge("typography-heading-6",e),...t})});var Ma=m.forwardRef(function({className:e,...t},o){return jsx(S.Description,{ref:o,className:twMerge("text-gray-200 typography-body-2",e),...t})});var Na=m.forwardRef(function({className:e,orientation:t="horizontal",decorative:o=!0,...r},a){return jsx(Ae.Root,{ref:a,decorative:o,orientation:t,className:twMerge("shrink-0 bg-gray-400",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r})});function ka({children:e}){return jsx("header",{className:"sticky top-0 z-50 w-full border-b border-gray-400 bg-foreground/95 backdrop-blur supports-[backdrop-filter]:bg-foreground/60",children:jsx("div",{className:"container flex h-16 items-center",children:e})})}var Oa=S.Root;var Wa=S.Close;var Oe=cva(["fixed left-1/2 top-1/2 border-gray-400 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 border bg-foreground p-4 shadow-lg w-full grid gap-4 rounded","duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]"],{variants:{width:{xs:"max-w-xs",sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl","2xl":"max-w-2xl","3xl":"max-w-3xl","4xl":"max-w-4xl","5xl":"max-w-5xl","6xl":"max-w-6xl",full:"max-w-full"}},defaultVariants:{width:"md"}});var Fe=m.forwardRef(function(e,t){return jsx(S.Overlay,{...e,className:"fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",ref:t})});var Xe=S.Portal;var $a=m.forwardRef(function({className:e,children:t,width:o="md",...r},a){return jsxs(Xe,{children:[jsx(Fe,{}),jsxs(S.Content,{ref:a,className:twMerge(Oe({width:o}),e),...r,children:[t,jsxs(S.Close,{className:"focus:ring-ring absolute right-4 top-4 rounded-sm opacity-70 ring-primary-500 ring-offset-foreground transition-opacity data-[state=open]:bg-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none",children:[jsx(i.Cross1Icon,{className:"h-4 w-4"}),jsx("span",{className:"sr-only",children:"Close"})]})]})]})});var ti=S.Trigger;function ai({className:e,...t}){return jsx("div",{className:twMerge("flex flex-col space-y-1.5 text-center sm:text-left",e),...t})}function li({className:e,...t}){return jsx("div",{className:twMerge("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t})}var mi=m.forwardRef(function({className:e,...t},o){return jsx(S.Title,{ref:o,className:twMerge("typography-heading-6",e),...t})});var Ri=m.forwardRef(function({className:e,...t},o){return jsx(S.Description,{ref:o,className:twMerge("text-gray-200 typography-body-2",e),...t})});var T=m__default.createContext({});function so(e){if(typeof window<"u"&&window.localStorage){let t=window.localStorage.getItem("theme");if(t==="dark"||!t&&window.matchMedia("(prefers-color-scheme: dark)").matches)return "dark"}return e??"light"}function Si({children:e,defaultTheme:t,theme:o}){let[r,a]=m__default.useState(o||so(t));function s(l){typeof window<"u"&&window.localStorage&&(l==="dark"?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),localStorage.setItem("theme",l));}return m__default.useEffect(()=>{s(r);},[r]),jsx(T.Provider,{value:{theme:r,setTheme:a},children:e})}var Mi=()=>m__default.useContext(T);
|
|
15
15
|
|
|
16
|
-
export {
|
|
16
|
+
export { Ro as Avatar, Po as AvatarFallback, vo as AvatarImage, Uo as Button, Tr as Card, Gr as CardContent, Or as CardDescription, _r as CardFooter, Ir as CardHeader, Ar as CardTitle, Oa as Dialog, Wa as DialogClose, $a as DialogContent, Ri as DialogDescription, li as DialogFooter, ai as DialogHeader, mi as DialogTitle, ti as DialogTrigger, ka as Header, $o as Input, ur as Select, br as SelectItem, Na as Separator, Qr as Sheet, jr as SheetClose, ma as SheetContent, Ma as SheetDescription, va as SheetFooter, Ra as SheetHeader, Pa as SheetTitle, Zr as SheetTrigger, pr as Textarea, T as ThemeContext, Si as ThemeProvider, tr as Tooltip, ar as TooltipProvider, Mi as useTheme };
|