@szum-tech/design-system 1.13.1 → 1.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +84 -32
- package/dist/index.js +45 -18
- package/dist/index.mjs +12 -7
- package/icons/index.d.ts +7 -3
- package/icons/index.js +11 -75
- package/icons/index.mjs +3 -3
- package/package.json +9 -3
- package/theme/global.css +4 -4
- package/theme/main-preset.js +13 -22
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
1
|
import * as React from 'react';
|
|
3
2
|
import React__default from 'react';
|
|
3
|
+
import * as ReactAvatar from '@radix-ui/react-avatar';
|
|
4
4
|
import { VariantProps } from 'class-variance-authority';
|
|
5
5
|
import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
|
|
6
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
7
|
import * as ReactTooltip from '@radix-ui/react-tooltip';
|
|
7
8
|
import * as ReactSelect from '@radix-ui/react-select';
|
|
9
|
+
import * as ReactSheet from '@radix-ui/react-dialog';
|
|
10
|
+
import * as ReactSeparator from '@radix-ui/react-separator';
|
|
8
11
|
|
|
9
12
|
declare const avatarCva: (props?: ({
|
|
10
13
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
@@ -13,42 +16,27 @@ declare const avatarCva: (props?: ({
|
|
|
13
16
|
type AvatarCvaProps = VariantProps<typeof avatarCva>;
|
|
14
17
|
type AvatarSizeType = NonNullable<AvatarCvaProps["size"]>;
|
|
15
18
|
|
|
16
|
-
type AvatarProps =
|
|
17
|
-
/**
|
|
18
|
-
* Defines avatar image alt
|
|
19
|
-
*/
|
|
20
|
-
alt?: string;
|
|
21
|
-
/**
|
|
22
|
-
* Defines background color
|
|
23
|
-
*/
|
|
24
|
-
bg?: `bg-${string}` | `bg-${string}-${number}`;
|
|
25
|
-
/**
|
|
26
|
-
* Defines avatar children
|
|
27
|
-
*/
|
|
28
|
-
children?: React.ReactNode;
|
|
19
|
+
type AvatarProps = ReactAvatar.AvatarProps & {
|
|
29
20
|
/**
|
|
30
21
|
* Defines avatar size
|
|
31
22
|
*/
|
|
32
23
|
size?: AvatarSizeType;
|
|
33
|
-
/**
|
|
34
|
-
* Defines avatar image src
|
|
35
|
-
*/
|
|
36
|
-
src?: string;
|
|
37
24
|
};
|
|
38
|
-
declare
|
|
39
|
-
|
|
40
|
-
type AsProp<C extends React.ElementType> = {
|
|
25
|
+
declare const Avatar: (props: ReactAvatar.AvatarProps & {
|
|
41
26
|
/**
|
|
42
|
-
* Defines
|
|
27
|
+
* Defines avatar size
|
|
43
28
|
*/
|
|
44
|
-
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
type
|
|
48
|
-
|
|
29
|
+
size?: AvatarSizeType | undefined;
|
|
30
|
+
} & React.RefAttributes<HTMLSpanElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
31
|
+
|
|
32
|
+
type AvatarImageProps = React.ComponentPropsWithoutRef<typeof ReactAvatar.Image>;
|
|
33
|
+
declare const AvatarImage: (props: Omit<ReactAvatar.AvatarImageProps & React.RefAttributes<HTMLImageElement>, "ref"> & React.RefAttributes<HTMLImageElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
34
|
+
|
|
35
|
+
type AvatarFallbackProps = React.ComponentPropsWithoutRef<typeof ReactAvatar.Fallback>;
|
|
36
|
+
declare const AvatarFallback: (props: Omit<ReactAvatar.AvatarFallbackProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
49
37
|
|
|
50
38
|
declare const buttonCva: (props?: ({
|
|
51
|
-
|
|
39
|
+
fullWidth?: boolean | null | undefined;
|
|
52
40
|
color?: "neutral" | "primary" | "success" | "warning" | "error" | null | undefined;
|
|
53
41
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
54
42
|
variant?: "text" | "outlined" | "contained" | null | undefined;
|
|
@@ -63,7 +51,7 @@ type Props$2 = {
|
|
|
63
51
|
/**
|
|
64
52
|
* Defines button full width
|
|
65
53
|
*/
|
|
66
|
-
|
|
54
|
+
fullWidth?: boolean;
|
|
67
55
|
/**
|
|
68
56
|
* Defines button color
|
|
69
57
|
*/
|
|
@@ -100,9 +88,12 @@ type Props$2 = {
|
|
|
100
88
|
* Defines is position of loading icon
|
|
101
89
|
*/
|
|
102
90
|
loadingPosition?: "start" | "end";
|
|
91
|
+
asChild?: boolean;
|
|
103
92
|
};
|
|
104
|
-
type ButtonProps
|
|
105
|
-
declare const Button:
|
|
93
|
+
type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & Props$2;
|
|
94
|
+
declare const Button: (props: React.ButtonHTMLAttributes<HTMLButtonElement> & Props$2 & React.RefAttributes<HTMLButtonElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
95
|
+
|
|
96
|
+
type OmitStylesProps<T> = Omit<T, "className" | "style">;
|
|
106
97
|
|
|
107
98
|
type Props$1 = {
|
|
108
99
|
invalid?: boolean;
|
|
@@ -143,6 +134,67 @@ declare const Select: (props: OmitStylesProps<ReactSelect.SelectProps> & {
|
|
|
143
134
|
type SelectItemProps = OmitStylesProps<ReactSelect.SelectItemProps>;
|
|
144
135
|
declare const SelectItem: (props: SelectItemProps & React.RefAttributes<HTMLDivElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
145
136
|
|
|
137
|
+
type CardProps = React.HTMLAttributes<HTMLDivElement>;
|
|
138
|
+
declare const Card: (props: CardProps & React.RefAttributes<HTMLDivElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
139
|
+
|
|
140
|
+
type CardHeaderProps = React.HTMLAttributes<HTMLDivElement>;
|
|
141
|
+
declare const CardHeader: (props: CardHeaderProps & React.RefAttributes<HTMLDivElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
142
|
+
|
|
143
|
+
type CardTitleProps = React__default.HTMLAttributes<HTMLHeadingElement>;
|
|
144
|
+
declare const CardTitle: (props: CardTitleProps & React__default.RefAttributes<HTMLParagraphElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
|
|
145
|
+
|
|
146
|
+
type CardDescriptionProps = React.HTMLAttributes<HTMLParagraphElement>;
|
|
147
|
+
declare const CardDescription: (props: CardDescriptionProps & React.RefAttributes<HTMLParagraphElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
148
|
+
|
|
149
|
+
type CardContentProps = React.HTMLAttributes<HTMLDivElement>;
|
|
150
|
+
declare const CardContent: (props: CardContentProps & React.RefAttributes<HTMLDivElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
151
|
+
|
|
152
|
+
type CardFooterProps = React.HTMLAttributes<HTMLDivElement>;
|
|
153
|
+
declare const CardFooter: (props: CardFooterProps & React.RefAttributes<HTMLDivElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
154
|
+
|
|
155
|
+
type SheetProps = ReactSheet.DialogProps;
|
|
156
|
+
declare const Sheet: React.FC<ReactSheet.DialogProps>;
|
|
157
|
+
|
|
158
|
+
type SheetTriggerProps = ReactSheet.DialogTriggerProps;
|
|
159
|
+
declare const SheetTrigger: React.ForwardRefExoticComponent<ReactSheet.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
160
|
+
|
|
161
|
+
type SheetCloseProps = ReactSheet.DialogCloseProps;
|
|
162
|
+
declare const SheetClose: React.ForwardRefExoticComponent<ReactSheet.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
163
|
+
|
|
164
|
+
declare const sheetContentStyles: (props?: ({
|
|
165
|
+
side?: "left" | "right" | "top" | "bottom" | null | undefined;
|
|
166
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
167
|
+
|
|
168
|
+
type SheetContentCvaProps = VariantProps<typeof sheetContentStyles>;
|
|
169
|
+
type SheetContentSide = NonNullable<SheetContentCvaProps["side"]>;
|
|
170
|
+
|
|
171
|
+
type SheetContentProps = React.ComponentPropsWithoutRef<typeof ReactSheet.Content> & {
|
|
172
|
+
side?: SheetContentSide;
|
|
173
|
+
};
|
|
174
|
+
declare const SheetContent: (props: Omit<ReactSheet.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
175
|
+
side?: SheetContentSide | undefined;
|
|
176
|
+
} & React.RefAttributes<HTMLDivElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
177
|
+
|
|
178
|
+
type SheetHeaderProps = React.HTMLAttributes<HTMLDivElement>;
|
|
179
|
+
declare function SheetHeader({ className, ...props }: SheetHeaderProps): react_jsx_runtime.JSX.Element;
|
|
180
|
+
|
|
181
|
+
type SheetFooterProps = React.HTMLAttributes<HTMLDivElement>;
|
|
182
|
+
declare function SheetFooter({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
183
|
+
|
|
184
|
+
type SheetTitleProps = React.ComponentPropsWithoutRef<typeof ReactSheet.Title>;
|
|
185
|
+
declare const SheetTitle: (props: Omit<ReactSheet.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
186
|
+
|
|
187
|
+
type SheetDescriptionProps = React.ComponentPropsWithoutRef<typeof ReactSheet.Description>;
|
|
188
|
+
declare const SheetDescription: (props: Omit<ReactSheet.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
189
|
+
|
|
190
|
+
type SeparatorProps = React.ComponentPropsWithoutRef<typeof ReactSeparator.Root>;
|
|
191
|
+
declare const Separator: (props: Omit<ReactSeparator.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
192
|
+
|
|
193
|
+
type HeaderProps = {
|
|
194
|
+
children?: React__default.ReactNode;
|
|
195
|
+
};
|
|
196
|
+
declare function Header({ children }: HeaderProps): react_jsx_runtime.JSX.Element;
|
|
197
|
+
|
|
146
198
|
type ThemeType = "light" | "dark";
|
|
147
199
|
interface ThemeContextType {
|
|
148
200
|
theme: ThemeType;
|
|
@@ -169,4 +221,4 @@ declare function ThemeProvider({ children, defaultTheme, theme }: ThemeProviderP
|
|
|
169
221
|
|
|
170
222
|
declare const useTheme: () => ThemeContextType;
|
|
171
223
|
|
|
172
|
-
export { Avatar, AvatarProps, AvatarSizeType, Button, ButtonColorType, ButtonProps, ButtonSizeType, ButtonVariantType, Input, InputProps, Select, SelectItem, SelectItemProps, SelectProps, Textarea, TextareaProps, ThemeContext, ThemeContextType, ThemeProvider, ThemeProviderProps, ThemeType, Tooltip, TooltipProps, TooltipProvider, TooltipProviderProps, useTheme };
|
|
224
|
+
export { Avatar, AvatarFallback, AvatarFallbackProps, AvatarImage, AvatarImageProps, AvatarProps, AvatarSizeType, Button, ButtonColorType, ButtonProps, ButtonSizeType, ButtonVariantType, Card, CardContent, CardContentProps, CardDescription, CardDescriptionProps, CardFooter, CardFooterProps, CardHeader, CardHeaderProps, CardProps, CardTitle, CardTitleProps, Header, HeaderProps, Input, InputProps, Select, SelectItem, SelectItemProps, SelectProps, Separator, SeparatorProps, Sheet, SheetClose, SheetCloseProps, SheetContent, SheetContentProps, SheetContentSide, SheetDescription, SheetDescriptionProps, SheetFooter, SheetFooterProps, SheetHeader, SheetHeaderProps, SheetProps, SheetTitle, SheetTitleProps, SheetTrigger, SheetTriggerProps, Textarea, TextareaProps, ThemeContext, ThemeContextType, ThemeProvider, ThemeProviderProps, ThemeType, Tooltip, TooltipProps, TooltipProvider, TooltipProviderProps, useTheme };
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var f = require('react');
|
|
4
|
+
var X = require('@radix-ui/react-avatar');
|
|
5
|
+
var tailwindMerge = require('tailwind-merge');
|
|
3
6
|
var classVarianceAuthority = require('class-variance-authority');
|
|
4
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
8
|
+
var reactSlot = require('@radix-ui/react-slot');
|
|
9
|
+
var sr = require('@radix-ui/react-icons');
|
|
10
|
+
var m = require('@radix-ui/react-tooltip');
|
|
11
|
+
var i = require('@radix-ui/react-select');
|
|
12
|
+
var T = require('@radix-ui/react-dialog');
|
|
13
|
+
var Ne = require('@radix-ui/react-separator');
|
|
9
14
|
|
|
10
15
|
function _interopNamespace(e) {
|
|
11
16
|
if (e && e.__esModule) return e;
|
|
@@ -26,19 +31,41 @@ function _interopNamespace(e) {
|
|
|
26
31
|
}
|
|
27
32
|
|
|
28
33
|
var f__namespace = /*#__PURE__*/_interopNamespace(f);
|
|
29
|
-
var
|
|
30
|
-
var
|
|
34
|
+
var X__namespace = /*#__PURE__*/_interopNamespace(X);
|
|
35
|
+
var sr__namespace = /*#__PURE__*/_interopNamespace(sr);
|
|
36
|
+
var m__namespace = /*#__PURE__*/_interopNamespace(m);
|
|
37
|
+
var i__namespace = /*#__PURE__*/_interopNamespace(i);
|
|
38
|
+
var T__namespace = /*#__PURE__*/_interopNamespace(T);
|
|
39
|
+
var Ne__namespace = /*#__PURE__*/_interopNamespace(Ne);
|
|
31
40
|
|
|
32
|
-
var L=classVarianceAuthority.cva("select-none rounded font-semibold leading-none justify-center flex items-center bg-gray-500 text-white dark:text-black",{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"}});function xe({alt:e,bg:t,children:r,size:o="md",src:a,...l}){let i=L({size:o,className:t});return jsxRuntime.jsx("div",{className:i,...l,children:a?jsxRuntime.jsx("img",{className:"h-full w-full rounded object-cover object-center",alt:e,src:a}):r})}var A=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:{block:{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:{block:!1,color:"primary",size:"md",variant:"text"}}),R=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"}}),T=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"}});function S(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"})]})})})}var Qe=f__namespace.forwardRef(function({as:e,block:t=!1,color:r="primary",children:o,size:a="md",variant:l="text",disabled:i=!1,startIcon:m,endIcon:g,type:k,loading:h=!1,loadingPosition:E="start",...Z},_){let B=e||"button",j=A({block:t,size:a,variant:l,color:r}),b=h&&E==="start",V=b?jsxRuntime.jsx(S,{"aria-label":"Loading"}):m||null,ee=T({size:a,loading:b}),te=R({size:a,site:"left"}),u=h&&E==="end",z=u?jsxRuntime.jsx(S,{"aria-label":"Loading"}):g||null,re=T({size:a,loading:u}),oe=R({size:a,site:"right"}),x=i||h;return jsxRuntime.jsxs(B,{"aria-disabled":x||void 0,className:j,"data-state":h?"loading":void 0,disabled:x,ref:_,role:"button",tabIndex:x?-1:0,type:B==="button"?"button":void 0,...Z,children:[V?jsxRuntime.jsx("span",{className:te,role:b?"progressbar":void 0,children:f__namespace.cloneElement(V,{className:ee})}):null,o,z?jsxRuntime.jsx("span",{className:oe,role:u?"progressbar":void 0,children:f__namespace.cloneElement(z,{className:re})}):null]})});var G=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}}),I=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 tt=f__namespace.forwardRef(function({invalid:e=!1,startIcon:t,endIcon:r,disabled:o=!1,...a},l){let i=G({withEndIcon:!!r,withStartIcon:!!t,invalid:e}),m=I({site:"left",disabled:o}),g=I({site:"right",disabled:o});return jsxRuntime.jsxs("div",{className:"relative text-gray-100 typography-body-2",children:[t?jsxRuntime.jsx("span",{className:m,children:t}):null,jsxRuntime.jsx("input",{"aria-invalid":e||void 0,disabled:o,className:i,ref:l,...a}),r?jsxRuntime.jsx("span",{"aria-hidden":!0,className:g,children:r}):null]})});function at({defaultOpen:e,content:t,open:r,onOpenChange:o,children:a,side:l,align:i,collisionPadding:m=8,sideOffset:g=8,...k}){return jsxRuntime.jsxs(s__namespace.Root,{delayDuration:0,open:r,defaultOpen:e,onOpenChange:o,children:[jsxRuntime.jsx(s__namespace.Trigger,{asChild:!0,children:a}),t?jsxRuntime.jsx(s__namespace.Portal,{children:jsxRuntime.jsxs(s__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:g,side:l,align:i,collisionPadding:m,...k,style:{maxWidth:"var(--radix-tooltip-content-available-width)"},children:[t,jsxRuntime.jsx(s__namespace.Arrow,{width:8,height:4,className:"fill-white"})]})}):null]})}function ct({children:e}){return jsxRuntime.jsx(s__namespace.Provider,{skipDelayDuration:500,children:e})}var U=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 gt=f__namespace.forwardRef(function({invalid:e=!1,...t},r){let o=U({invalid:e});return jsxRuntime.jsx("textarea",{"aria-invalid":e||void 0,className:o,ref:r,...t})});var q=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 xt=f__namespace.forwardRef(({children:e,placeholder:t,...r},o)=>{let a=q();return jsxRuntime.jsxs(n__namespace.Root,{...r,children:[jsxRuntime.jsxs(n__namespace.Trigger,{className:a,ref:o,children:[jsxRuntime.jsx(n__namespace.Value,{placeholder:"Select a fruit\u2026"}),jsxRuntime.jsx(n__namespace.Icon,{className:"-mr-1.5",children:jsxRuntime.jsx(iconsReact.IconSelector,{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 St=f__namespace.forwardRef(({children:e,...t},r)=>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:r,...t,children:[jsxRuntime.jsx(n__namespace.ItemText,{className:"flex-1",children:e}),jsxRuntime.jsx(n__namespace.ItemIndicator,{children:jsxRuntime.jsx(iconsReact.IconCheck,{className:"h-4 w-4"})})]}));var v=f__namespace.default.createContext({});function fe(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 Bt({children:e,defaultTheme:t,theme:r}){let[o,a]=f__namespace.default.useState(r||fe(t));function l(i){typeof window<"u"&&window.localStorage&&(i==="dark"?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),localStorage.setItem("theme",i));}return f__namespace.default.useEffect(()=>{l(o);},[o]),jsxRuntime.jsx(v.Provider,{value:{theme:o,setTheme:a},children:e})}var At=()=>f__namespace.default.useContext(v);
|
|
41
|
+
var F=Object.defineProperty;var ke=Object.getOwnPropertyDescriptor;var De=Object.getOwnPropertyNames;var Ve=Object.prototype.hasOwnProperty;var ze=(e,t)=>{for(var r in t)F(e,r,{get:t[r],enumerable:!0});},B=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of De(t))!Ve.call(e,a)&&a!==r&&F(e,a,{get:()=>t[a],enumerable:!(o=ke(t,a))||o.enumerable});return e},R=(e,t,r)=>(B(e,t,"default"),r&&B(r,t,"default"));var W=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 Ft=f__namespace.forwardRef(function({className:e,size:t,...r},o){let a=W({size:t});return jsxRuntime.jsx(X__namespace.Root,{ref:o,className:tailwindMerge.twMerge(a,e),...r})});var qt=f__namespace.forwardRef(function({className:e,...t},r){return jsxRuntime.jsx(X__namespace.Image,{ref:r,className:tailwindMerge.twMerge("aspect-square h-full w-full",e),...t})});var Kt=f__namespace.forwardRef(function({className:e,...t},r){return jsxRuntime.jsx(X__namespace.Fallback,{ref:r,className:tailwindMerge.twMerge("flex h-full w-full items-center justify-center bg-gray-350",e),...t})});var K=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"}}),N=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"}}),H=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 n={};ze(n,{Auth0LogoIcon:()=>Ke,GoogleLogoIcon:()=>Ue,LoadingIcon:()=>S,XLogoIcon:()=>Ye});R(n,sr__namespace);function Ue(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 S(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 Ke(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 Ye(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 gr=f__namespace.forwardRef(function({asChild:e=!1,fullWidth:t=!1,color:r="primary",children:o,size:a="md",variant:c="text",disabled:s=!1,type:l="button",loading:p=!1,loadingPosition:v="start",endIcon:C,startIcon:b,...x},I){let L={asChild:e,fullWidth:t,color:r,children:o,size:a,variant:c,disabled:s,type:l,loading:p,loadingPosition:v,endIcon:C,startIcon:b,...x},g=e?reactSlot.Slot:"button",w=K({fullWidth:t,size:a,variant:c,color:r}),E=s||p;return jsxRuntime.jsx(g,{...x,"aria-disabled":E||void 0,className:w,"data-state":p?"loading":void 0,disabled:E,ref:I,role:g!=="button"?"button":void 0,tabIndex:E?-1:0,type:g==="button"?l:void 0,children:e?jsxRuntime.jsx($,{children:o}):jsxRuntime.jsx($,{...L})})});function $({children:e,loading:t,size:r,loadingPosition:o,startIcon:a,endIcon:c,...s}){let l=t&&o==="start",p=l?jsxRuntime.jsx(S,{"aria-label":"Loading"}):a||null,v=H({size:r,loading:l}),C=N({size:r,site:"left"}),b=t&&o==="end",x=b?jsxRuntime.jsx(S,{"aria-label":"Loading"}):c||null,I=H({size:r,loading:b}),L=N({size:r,site:"right"}),g=p?jsxRuntime.jsx("span",{className:C,role:l?"progressbar":void 0,children:f__namespace.cloneElement(p,{className:v})}):null,w=x?jsxRuntime.jsx("span",{className:L,role:b?"progressbar":void 0,children:f__namespace.cloneElement(x,{className:I})}):null;return f__namespace.isValidElement(e)?f__namespace.cloneElement(e,{...s,children:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[g,f__namespace.isValidElement(e)?e.props.children:null,w]})}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[g,e,w]})}var re=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}}),A=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 xr=f__namespace.forwardRef(function({invalid:e=!1,startIcon:t,endIcon:r,disabled:o=!1,...a},c){let s=re({withEndIcon:!!r,withStartIcon:!!t,invalid:e}),l=A({site:"left",disabled:o}),p=A({site:"right",disabled:o});return jsxRuntime.jsxs("div",{className:"relative text-gray-100 typography-body-2",children:[t?jsxRuntime.jsx("span",{className:l,children:t}):null,jsxRuntime.jsx("input",{"aria-invalid":e||void 0,disabled:o,className:s,ref:c,...a}),r?jsxRuntime.jsx("span",{"aria-hidden":!0,className:p,children:r}):null]})});function Tr({defaultOpen:e,content:t,open:r,onOpenChange:o,children:a,side:c,align:s,collisionPadding:l=8,sideOffset:p=8,...v}){return jsxRuntime.jsxs(m__namespace.Root,{delayDuration:0,open:r,defaultOpen:e,onOpenChange:o,children:[jsxRuntime.jsx(m__namespace.Trigger,{asChild:!0,children:a}),t?jsxRuntime.jsx(m__namespace.Portal,{children:jsxRuntime.jsxs(m__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:p,side:c,align:s,collisionPadding:l,...v,style:{maxWidth:"var(--radix-tooltip-content-available-width)"},children:[t,jsxRuntime.jsx(m__namespace.Arrow,{width:8,height:4,className:"fill-white"})]})}):null]})}function Ir({children:e}){return jsxRuntime.jsx(m__namespace.Provider,{skipDelayDuration:500,children:e})}var ie=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 Ar=f__namespace.forwardRef(function({invalid:e=!1,...t},r){let o=ie({invalid:e});return jsxRuntime.jsx("textarea",{"aria-invalid":e||void 0,className:o,ref:r,...t})});var ce=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 Fr=f__namespace.forwardRef(({children:e,placeholder:t,...r},o)=>{let a=ce();return jsxRuntime.jsxs(i__namespace.Root,{...r,children:[jsxRuntime.jsxs(i__namespace.Trigger,{className:a,ref:o,children:[jsxRuntime.jsx(i__namespace.Value,{placeholder:"Select a fruit\u2026"}),jsxRuntime.jsx(i__namespace.Icon,{className:"-mr-1.5",children:jsxRuntime.jsx(n.CaretSortIcon,{className:"h-5 w-5 text-gray-200"})})]}),jsxRuntime.jsx(i__namespace.Portal,{children:jsxRuntime.jsx(i__namespace.Content,{sideOffset:4,className:"w-full overflow-hidden border border-gray-350 bg-app-primary py-1",children:jsxRuntime.jsx(i__namespace.Viewport,{children:e})})})]})});var qr=f__namespace.forwardRef(({children:e,...t},r)=>jsxRuntime.jsxs(i__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:r,...t,children:[jsxRuntime.jsx(i__namespace.ItemText,{className:"flex-1",children:e}),jsxRuntime.jsx(i__namespace.ItemIndicator,{children:jsxRuntime.jsx(n.CheckIcon,{className:"h-4 w-4"})})]}));var Kr=f__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:tailwindMerge.twMerge("h-full rounded border border-gray-400 bg-foreground",e),...t}));var $r=f__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:tailwindMerge.twMerge("flex flex-col p-6",e),...t}));var oo=f__namespace.default.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("h3",{ref:r,className:tailwindMerge.twMerge("typography-heading-5",e),...t}));var so=f__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("p",{ref:r,className:tailwindMerge.twMerge("text-gray-200 typography-body-2",e),...t}));var mo=f__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:tailwindMerge.twMerge("p-6 pt-0",e),...t}));var Ro=f__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx("div",{ref:r,className:tailwindMerge.twMerge("flex items-center p-6 pt-0",e),...t}));var vo=T__namespace.Root;var xo=T__namespace.Trigger;var So=T__namespace.Close;var xe=f__namespace.default.forwardRef(function(e,t){return jsxRuntime.jsx(T__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 Se=T__namespace.Portal;var Te=classVarianceAuthority.cva("fixed z-50 gap-4 border-gray-400 bg-foreground p-6 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 Vo=f__namespace.forwardRef(function({side:e="right",className:t,children:r,...o},a){return jsxRuntime.jsxs(Se,{children:[jsxRuntime.jsx(xe,{}),jsxRuntime.jsxs(T__namespace.Content,{ref:a,className:tailwindMerge.twMerge(Te({side:e}),t),...o,children:[r,jsxRuntime.jsxs(T__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(n.Cross1Icon,{className:"h-4 w-4"}),jsxRuntime.jsx("span",{className:"sr-only",children:"Close"})]})]})]})});function Fo({className:e,...t}){return jsxRuntime.jsx("div",{className:tailwindMerge.twMerge("flex flex-col space-y-2 text-center sm:text-left",e),...t})}function qo({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 Ko=f__namespace.forwardRef(function({className:e,...t},r){return jsxRuntime.jsx(T__namespace.Title,{ref:r,className:tailwindMerge.twMerge("typography-heading-6",e),...t})});var $o=f__namespace.forwardRef(function({className:e,...t},r){return jsxRuntime.jsx(T__namespace.Description,{ref:r,className:tailwindMerge.twMerge("text-gray-200 typography-body-2",e),...t})});var ra=f__namespace.forwardRef(function({className:e,orientation:t="horizontal",decorative:r=!0,...o},a){return jsxRuntime.jsx(Ne__namespace.Root,{ref:a,decorative:r,orientation:t,className:tailwindMerge.twMerge("shrink-0 bg-gray-400",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...o})});function na({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-14 items-center",children:e})})}var P=f__namespace.default.createContext({});function Ht(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 ma({children:e,defaultTheme:t,theme:r}){let[o,a]=f__namespace.default.useState(r||Ht(t));function c(s){typeof window<"u"&&window.localStorage&&(s==="dark"?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),localStorage.setItem("theme",s));}return f__namespace.default.useEffect(()=>{c(o);},[o]),jsxRuntime.jsx(P.Provider,{value:{theme:o,setTheme:a},children:e})}var ua=()=>f__namespace.default.useContext(P);
|
|
33
42
|
|
|
34
|
-
exports.Avatar =
|
|
35
|
-
exports.
|
|
36
|
-
exports.
|
|
37
|
-
exports.
|
|
38
|
-
exports.
|
|
39
|
-
exports.
|
|
40
|
-
exports.
|
|
41
|
-
exports.
|
|
42
|
-
exports.
|
|
43
|
-
exports.
|
|
44
|
-
exports.
|
|
43
|
+
exports.Avatar = Ft;
|
|
44
|
+
exports.AvatarFallback = Kt;
|
|
45
|
+
exports.AvatarImage = qt;
|
|
46
|
+
exports.Button = gr;
|
|
47
|
+
exports.Card = Kr;
|
|
48
|
+
exports.CardContent = mo;
|
|
49
|
+
exports.CardDescription = so;
|
|
50
|
+
exports.CardFooter = Ro;
|
|
51
|
+
exports.CardHeader = $r;
|
|
52
|
+
exports.CardTitle = oo;
|
|
53
|
+
exports.Header = na;
|
|
54
|
+
exports.Input = xr;
|
|
55
|
+
exports.Select = Fr;
|
|
56
|
+
exports.SelectItem = qr;
|
|
57
|
+
exports.Separator = ra;
|
|
58
|
+
exports.Sheet = vo;
|
|
59
|
+
exports.SheetClose = So;
|
|
60
|
+
exports.SheetContent = Vo;
|
|
61
|
+
exports.SheetDescription = $o;
|
|
62
|
+
exports.SheetFooter = qo;
|
|
63
|
+
exports.SheetHeader = Fo;
|
|
64
|
+
exports.SheetTitle = Ko;
|
|
65
|
+
exports.SheetTrigger = xo;
|
|
66
|
+
exports.Textarea = Ar;
|
|
67
|
+
exports.ThemeContext = P;
|
|
68
|
+
exports.ThemeProvider = ma;
|
|
69
|
+
exports.Tooltip = Tr;
|
|
70
|
+
exports.TooltipProvider = Ir;
|
|
71
|
+
exports.useTheme = ua;
|
package/dist/index.mjs
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
import { cva } from 'class-variance-authority';
|
|
2
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
1
|
import * as f from 'react';
|
|
4
2
|
import f__default from 'react';
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
3
|
+
import * as X from '@radix-ui/react-avatar';
|
|
4
|
+
import { twMerge } from 'tailwind-merge';
|
|
5
|
+
import { cva } from 'class-variance-authority';
|
|
6
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
7
|
+
import { Slot } from '@radix-ui/react-slot';
|
|
8
|
+
import * as sr from '@radix-ui/react-icons';
|
|
9
|
+
import * as m from '@radix-ui/react-tooltip';
|
|
10
|
+
import * as i from '@radix-ui/react-select';
|
|
11
|
+
import * as T from '@radix-ui/react-dialog';
|
|
12
|
+
import * as Ne from '@radix-ui/react-separator';
|
|
8
13
|
|
|
9
|
-
var L=cva("select-none rounded font-semibold leading-none justify-center flex items-center bg-gray-500 text-white dark:text-black",{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"}});function xe({alt:e,bg:t,children:r,size:o="md",src:a,...l}){let i=L({size:o,className:t});return jsx("div",{className:i,...l,children:a?jsx("img",{className:"h-full w-full rounded object-cover object-center",alt:e,src:a}):r})}var A=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:{block:{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:{block:!1,color:"primary",size:"md",variant:"text"}}),R=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"}}),T=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"}});function S(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"})]})})})}var Qe=f.forwardRef(function({as:e,block:t=!1,color:r="primary",children:o,size:a="md",variant:l="text",disabled:i=!1,startIcon:m,endIcon:g,type:k,loading:h=!1,loadingPosition:E="start",...Z},_){let B=e||"button",j=A({block:t,size:a,variant:l,color:r}),b=h&&E==="start",V=b?jsx(S,{"aria-label":"Loading"}):m||null,ee=T({size:a,loading:b}),te=R({size:a,site:"left"}),u=h&&E==="end",z=u?jsx(S,{"aria-label":"Loading"}):g||null,re=T({size:a,loading:u}),oe=R({size:a,site:"right"}),x=i||h;return jsxs(B,{"aria-disabled":x||void 0,className:j,"data-state":h?"loading":void 0,disabled:x,ref:_,role:"button",tabIndex:x?-1:0,type:B==="button"?"button":void 0,...Z,children:[V?jsx("span",{className:te,role:b?"progressbar":void 0,children:f.cloneElement(V,{className:ee})}):null,o,z?jsx("span",{className:oe,role:u?"progressbar":void 0,children:f.cloneElement(z,{className:re})}):null]})});var G=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}}),I=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 tt=f.forwardRef(function({invalid:e=!1,startIcon:t,endIcon:r,disabled:o=!1,...a},l){let i=G({withEndIcon:!!r,withStartIcon:!!t,invalid:e}),m=I({site:"left",disabled:o}),g=I({site:"right",disabled:o});return jsxs("div",{className:"relative text-gray-100 typography-body-2",children:[t?jsx("span",{className:m,children:t}):null,jsx("input",{"aria-invalid":e||void 0,disabled:o,className:i,ref:l,...a}),r?jsx("span",{"aria-hidden":!0,className:g,children:r}):null]})});function at({defaultOpen:e,content:t,open:r,onOpenChange:o,children:a,side:l,align:i,collisionPadding:m=8,sideOffset:g=8,...k}){return jsxs(s.Root,{delayDuration:0,open:r,defaultOpen:e,onOpenChange:o,children:[jsx(s.Trigger,{asChild:!0,children:a}),t?jsx(s.Portal,{children:jsxs(s.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:g,side:l,align:i,collisionPadding:m,...k,style:{maxWidth:"var(--radix-tooltip-content-available-width)"},children:[t,jsx(s.Arrow,{width:8,height:4,className:"fill-white"})]})}):null]})}function ct({children:e}){return jsx(s.Provider,{skipDelayDuration:500,children:e})}var U=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 gt=f.forwardRef(function({invalid:e=!1,...t},r){let o=U({invalid:e});return jsx("textarea",{"aria-invalid":e||void 0,className:o,ref:r,...t})});var q=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 xt=f.forwardRef(({children:e,placeholder:t,...r},o)=>{let a=q();return jsxs(n.Root,{...r,children:[jsxs(n.Trigger,{className:a,ref:o,children:[jsx(n.Value,{placeholder:"Select a fruit\u2026"}),jsx(n.Icon,{className:"-mr-1.5",children:jsx(IconSelector,{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 St=f.forwardRef(({children:e,...t},r)=>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:r,...t,children:[jsx(n.ItemText,{className:"flex-1",children:e}),jsx(n.ItemIndicator,{children:jsx(IconCheck,{className:"h-4 w-4"})})]}));var v=f__default.createContext({});function fe(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 Bt({children:e,defaultTheme:t,theme:r}){let[o,a]=f__default.useState(r||fe(t));function l(i){typeof window<"u"&&window.localStorage&&(i==="dark"?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),localStorage.setItem("theme",i));}return f__default.useEffect(()=>{l(o);},[o]),jsx(v.Provider,{value:{theme:o,setTheme:a},children:e})}var At=()=>f__default.useContext(v);
|
|
14
|
+
var F=Object.defineProperty;var ke=Object.getOwnPropertyDescriptor;var De=Object.getOwnPropertyNames;var Ve=Object.prototype.hasOwnProperty;var ze=(e,t)=>{for(var r in t)F(e,r,{get:t[r],enumerable:!0});},B=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of De(t))!Ve.call(e,a)&&a!==r&&F(e,a,{get:()=>t[a],enumerable:!(o=ke(t,a))||o.enumerable});return e},R=(e,t,r)=>(B(e,t,"default"),r&&B(r,t,"default"));var W=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 Ft=f.forwardRef(function({className:e,size:t,...r},o){let a=W({size:t});return jsx(X.Root,{ref:o,className:twMerge(a,e),...r})});var qt=f.forwardRef(function({className:e,...t},r){return jsx(X.Image,{ref:r,className:twMerge("aspect-square h-full w-full",e),...t})});var Kt=f.forwardRef(function({className:e,...t},r){return jsx(X.Fallback,{ref:r,className:twMerge("flex h-full w-full items-center justify-center bg-gray-350",e),...t})});var K=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"}}),N=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"}}),H=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 n={};ze(n,{Auth0LogoIcon:()=>Ke,GoogleLogoIcon:()=>Ue,LoadingIcon:()=>S,XLogoIcon:()=>Ye});R(n,sr);function Ue(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 S(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 Ke(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 Ye(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 gr=f.forwardRef(function({asChild:e=!1,fullWidth:t=!1,color:r="primary",children:o,size:a="md",variant:c="text",disabled:s=!1,type:l="button",loading:p=!1,loadingPosition:v="start",endIcon:C,startIcon:b,...x},I){let L={asChild:e,fullWidth:t,color:r,children:o,size:a,variant:c,disabled:s,type:l,loading:p,loadingPosition:v,endIcon:C,startIcon:b,...x},g=e?Slot:"button",w=K({fullWidth:t,size:a,variant:c,color:r}),E=s||p;return jsx(g,{...x,"aria-disabled":E||void 0,className:w,"data-state":p?"loading":void 0,disabled:E,ref:I,role:g!=="button"?"button":void 0,tabIndex:E?-1:0,type:g==="button"?l:void 0,children:e?jsx($,{children:o}):jsx($,{...L})})});function $({children:e,loading:t,size:r,loadingPosition:o,startIcon:a,endIcon:c,...s}){let l=t&&o==="start",p=l?jsx(S,{"aria-label":"Loading"}):a||null,v=H({size:r,loading:l}),C=N({size:r,site:"left"}),b=t&&o==="end",x=b?jsx(S,{"aria-label":"Loading"}):c||null,I=H({size:r,loading:b}),L=N({size:r,site:"right"}),g=p?jsx("span",{className:C,role:l?"progressbar":void 0,children:f.cloneElement(p,{className:v})}):null,w=x?jsx("span",{className:L,role:b?"progressbar":void 0,children:f.cloneElement(x,{className:I})}):null;return f.isValidElement(e)?f.cloneElement(e,{...s,children:jsxs(Fragment,{children:[g,f.isValidElement(e)?e.props.children:null,w]})}):jsxs(Fragment,{children:[g,e,w]})}var re=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}}),A=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 xr=f.forwardRef(function({invalid:e=!1,startIcon:t,endIcon:r,disabled:o=!1,...a},c){let s=re({withEndIcon:!!r,withStartIcon:!!t,invalid:e}),l=A({site:"left",disabled:o}),p=A({site:"right",disabled:o});return jsxs("div",{className:"relative text-gray-100 typography-body-2",children:[t?jsx("span",{className:l,children:t}):null,jsx("input",{"aria-invalid":e||void 0,disabled:o,className:s,ref:c,...a}),r?jsx("span",{"aria-hidden":!0,className:p,children:r}):null]})});function Tr({defaultOpen:e,content:t,open:r,onOpenChange:o,children:a,side:c,align:s,collisionPadding:l=8,sideOffset:p=8,...v}){return jsxs(m.Root,{delayDuration:0,open:r,defaultOpen:e,onOpenChange:o,children:[jsx(m.Trigger,{asChild:!0,children:a}),t?jsx(m.Portal,{children:jsxs(m.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:p,side:c,align:s,collisionPadding:l,...v,style:{maxWidth:"var(--radix-tooltip-content-available-width)"},children:[t,jsx(m.Arrow,{width:8,height:4,className:"fill-white"})]})}):null]})}function Ir({children:e}){return jsx(m.Provider,{skipDelayDuration:500,children:e})}var ie=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 Ar=f.forwardRef(function({invalid:e=!1,...t},r){let o=ie({invalid:e});return jsx("textarea",{"aria-invalid":e||void 0,className:o,ref:r,...t})});var ce=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 Fr=f.forwardRef(({children:e,placeholder:t,...r},o)=>{let a=ce();return jsxs(i.Root,{...r,children:[jsxs(i.Trigger,{className:a,ref:o,children:[jsx(i.Value,{placeholder:"Select a fruit\u2026"}),jsx(i.Icon,{className:"-mr-1.5",children:jsx(n.CaretSortIcon,{className:"h-5 w-5 text-gray-200"})})]}),jsx(i.Portal,{children:jsx(i.Content,{sideOffset:4,className:"w-full overflow-hidden border border-gray-350 bg-app-primary py-1",children:jsx(i.Viewport,{children:e})})})]})});var qr=f.forwardRef(({children:e,...t},r)=>jsxs(i.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:r,...t,children:[jsx(i.ItemText,{className:"flex-1",children:e}),jsx(i.ItemIndicator,{children:jsx(n.CheckIcon,{className:"h-4 w-4"})})]}));var Kr=f.forwardRef(({className:e,...t},r)=>jsx("div",{ref:r,className:twMerge("h-full rounded border border-gray-400 bg-foreground",e),...t}));var $r=f.forwardRef(({className:e,...t},r)=>jsx("div",{ref:r,className:twMerge("flex flex-col p-6",e),...t}));var oo=f__default.forwardRef(({className:e,...t},r)=>jsx("h3",{ref:r,className:twMerge("typography-heading-5",e),...t}));var so=f.forwardRef(({className:e,...t},r)=>jsx("p",{ref:r,className:twMerge("text-gray-200 typography-body-2",e),...t}));var mo=f.forwardRef(({className:e,...t},r)=>jsx("div",{ref:r,className:twMerge("p-6 pt-0",e),...t}));var Ro=f.forwardRef(({className:e,...t},r)=>jsx("div",{ref:r,className:twMerge("flex items-center p-6 pt-0",e),...t}));var vo=T.Root;var xo=T.Trigger;var So=T.Close;var xe=f__default.forwardRef(function(e,t){return jsx(T.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 Se=T.Portal;var Te=cva("fixed z-50 gap-4 border-gray-400 bg-foreground p-6 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 Vo=f.forwardRef(function({side:e="right",className:t,children:r,...o},a){return jsxs(Se,{children:[jsx(xe,{}),jsxs(T.Content,{ref:a,className:twMerge(Te({side:e}),t),...o,children:[r,jsxs(T.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(n.Cross1Icon,{className:"h-4 w-4"}),jsx("span",{className:"sr-only",children:"Close"})]})]})]})});function Fo({className:e,...t}){return jsx("div",{className:twMerge("flex flex-col space-y-2 text-center sm:text-left",e),...t})}function qo({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 Ko=f.forwardRef(function({className:e,...t},r){return jsx(T.Title,{ref:r,className:twMerge("typography-heading-6",e),...t})});var $o=f.forwardRef(function({className:e,...t},r){return jsx(T.Description,{ref:r,className:twMerge("text-gray-200 typography-body-2",e),...t})});var ra=f.forwardRef(function({className:e,orientation:t="horizontal",decorative:r=!0,...o},a){return jsx(Ne.Root,{ref:a,decorative:r,orientation:t,className:twMerge("shrink-0 bg-gray-400",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...o})});function na({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-14 items-center",children:e})})}var P=f__default.createContext({});function Ht(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 ma({children:e,defaultTheme:t,theme:r}){let[o,a]=f__default.useState(r||Ht(t));function c(s){typeof window<"u"&&window.localStorage&&(s==="dark"?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),localStorage.setItem("theme",s));}return f__default.useEffect(()=>{c(o);},[o]),jsx(P.Provider,{value:{theme:o,setTheme:a},children:e})}var ua=()=>f__default.useContext(P);
|
|
10
15
|
|
|
11
|
-
export {
|
|
16
|
+
export { Ft as Avatar, Kt as AvatarFallback, qt as AvatarImage, gr as Button, Kr as Card, mo as CardContent, so as CardDescription, Ro as CardFooter, $r as CardHeader, oo as CardTitle, na as Header, xr as Input, Fr as Select, qr as SelectItem, ra as Separator, vo as Sheet, So as SheetClose, Vo as SheetContent, $o as SheetDescription, qo as SheetFooter, Fo as SheetHeader, Ko as SheetTitle, xo as SheetTrigger, Ar as Textarea, P as ThemeContext, ma as ThemeProvider, Tr as Tooltip, Ir as TooltipProvider, ua as useTheme };
|
package/icons/index.d.ts
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from '@radix-ui/react-icons';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
|
|
5
|
-
declare function
|
|
5
|
+
declare function GoogleLogoIcon(props: React.SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
6
6
|
|
|
7
7
|
declare function LoadingIcon(props: React.SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
declare function Auth0LogoIcon(props: React.SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
10
|
+
|
|
11
|
+
declare function XLogoIcon(props: React.SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
|
|
12
|
+
|
|
13
|
+
export { Auth0LogoIcon, GoogleLogoIcon, LoadingIcon, XLogoIcon };
|
package/icons/index.js
CHANGED
|
@@ -1,81 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var reactIcons = require('@radix-ui/react-icons');
|
|
4
4
|
var jsxRuntime = require('react/jsx-runtime');
|
|
5
5
|
|
|
6
|
-
function r
|
|
6
|
+
function p(r){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",...r,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 a(r){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",...r,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 x(r){return jsxRuntime.jsxs("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...r,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 m(r){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",...r,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"})})}
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
get: function () { return iconsReact.IconBadgeFilled; }
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, 'IconBolt', {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function () { return iconsReact.IconBolt; }
|
|
15
|
-
});
|
|
16
|
-
Object.defineProperty(exports, 'IconBook', {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
get: function () { return iconsReact.IconBook; }
|
|
19
|
-
});
|
|
20
|
-
Object.defineProperty(exports, 'IconBrandGithub', {
|
|
21
|
-
enumerable: true,
|
|
22
|
-
get: function () { return iconsReact.IconBrandGithub; }
|
|
23
|
-
});
|
|
24
|
-
Object.defineProperty(exports, 'IconBrandGoogle', {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: function () { return iconsReact.IconBrandGoogle; }
|
|
27
|
-
});
|
|
28
|
-
Object.defineProperty(exports, 'IconBrandLinkedin', {
|
|
29
|
-
enumerable: true,
|
|
30
|
-
get: function () { return iconsReact.IconBrandLinkedin; }
|
|
31
|
-
});
|
|
32
|
-
Object.defineProperty(exports, 'IconBrandNpm', {
|
|
33
|
-
enumerable: true,
|
|
34
|
-
get: function () { return iconsReact.IconBrandNpm; }
|
|
35
|
-
});
|
|
36
|
-
Object.defineProperty(exports, 'IconBrandTwitter', {
|
|
37
|
-
enumerable: true,
|
|
38
|
-
get: function () { return iconsReact.IconBrandTwitter; }
|
|
39
|
-
});
|
|
40
|
-
Object.defineProperty(exports, 'IconCheck', {
|
|
41
|
-
enumerable: true,
|
|
42
|
-
get: function () { return iconsReact.IconCheck; }
|
|
43
|
-
});
|
|
44
|
-
Object.defineProperty(exports, 'IconCurrencyDollar', {
|
|
45
|
-
enumerable: true,
|
|
46
|
-
get: function () { return iconsReact.IconCurrencyDollar; }
|
|
47
|
-
});
|
|
48
|
-
Object.defineProperty(exports, 'IconDownload', {
|
|
49
|
-
enumerable: true,
|
|
50
|
-
get: function () { return iconsReact.IconDownload; }
|
|
51
|
-
});
|
|
52
|
-
Object.defineProperty(exports, 'IconMail', {
|
|
53
|
-
enumerable: true,
|
|
54
|
-
get: function () { return iconsReact.IconMail; }
|
|
55
|
-
});
|
|
56
|
-
Object.defineProperty(exports, 'IconMapPin', {
|
|
57
|
-
enumerable: true,
|
|
58
|
-
get: function () { return iconsReact.IconMapPin; }
|
|
59
|
-
});
|
|
60
|
-
Object.defineProperty(exports, 'IconPhone', {
|
|
61
|
-
enumerable: true,
|
|
62
|
-
get: function () { return iconsReact.IconPhone; }
|
|
63
|
-
});
|
|
64
|
-
Object.defineProperty(exports, 'IconRocket', {
|
|
65
|
-
enumerable: true,
|
|
66
|
-
get: function () { return iconsReact.IconRocket; }
|
|
67
|
-
});
|
|
68
|
-
Object.defineProperty(exports, 'IconSelector', {
|
|
69
|
-
enumerable: true,
|
|
70
|
-
get: function () { return iconsReact.IconSelector; }
|
|
71
|
-
});
|
|
72
|
-
Object.defineProperty(exports, 'IconSend', {
|
|
73
|
-
enumerable: true,
|
|
74
|
-
get: function () { return iconsReact.IconSend; }
|
|
75
|
-
});
|
|
76
|
-
Object.defineProperty(exports, 'IconTrash', {
|
|
77
|
-
enumerable: true,
|
|
78
|
-
get: function () { return iconsReact.IconTrash; }
|
|
79
|
-
});
|
|
80
|
-
exports.GoogleIcon = r;
|
|
8
|
+
exports.Auth0LogoIcon = x;
|
|
9
|
+
exports.GoogleLogoIcon = p;
|
|
81
10
|
exports.LoadingIcon = a;
|
|
11
|
+
exports.XLogoIcon = m;
|
|
12
|
+
Object.keys(reactIcons).forEach(function (k) {
|
|
13
|
+
if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return reactIcons[k]; }
|
|
16
|
+
});
|
|
17
|
+
});
|
package/icons/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from '@radix-ui/react-icons';
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
|
|
4
|
-
function r
|
|
4
|
+
function p(r){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",...r,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 a(r){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",...r,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 x(r){return jsxs("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...r,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 m(r){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",...r,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"})})}
|
|
5
5
|
|
|
6
|
-
export {
|
|
6
|
+
export { x as Auth0LogoIcon, p as GoogleLogoIcon, a as LoadingIcon, m as XLogoIcon };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@szum-tech/design-system",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.15.0",
|
|
4
4
|
"description": "Szum-Tech design system with tailwindcss support",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"szum-tech",
|
|
@@ -54,12 +54,18 @@
|
|
|
54
54
|
"type-check": "tsc --noEmit"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
+
"@radix-ui/react-avatar": "^1.0.4",
|
|
58
|
+
"@radix-ui/react-dialog": "^1.0.5",
|
|
59
|
+
"@radix-ui/react-icons": "^1.3.0",
|
|
57
60
|
"@radix-ui/react-select": "^1.2.2",
|
|
61
|
+
"@radix-ui/react-separator": "^1.0.3",
|
|
62
|
+
"@radix-ui/react-slot": "^1.0.2",
|
|
58
63
|
"@radix-ui/react-tooltip": "^1.0.6",
|
|
59
|
-
"@tabler/icons-react": "^2.20.0",
|
|
60
64
|
"@tailwindcss/container-queries": "^0.1.0",
|
|
61
65
|
"class-variance-authority": "^0.6.0",
|
|
62
|
-
"tailwind-
|
|
66
|
+
"tailwind-merge": "^1.14.0",
|
|
67
|
+
"tailwind-scrollbar": "^3.0.4",
|
|
68
|
+
"tailwindcss-animate": "^1.0.7"
|
|
63
69
|
},
|
|
64
70
|
"devDependencies": {
|
|
65
71
|
"@babel/core": "^7.22.1",
|
package/theme/global.css
CHANGED
|
@@ -64,8 +64,8 @@
|
|
|
64
64
|
--gray-350: 193 193 193; /* #C1C1C1 */
|
|
65
65
|
--gray-400: 235 235 235; /* #EBEBEB */
|
|
66
66
|
|
|
67
|
-
--
|
|
68
|
-
--background
|
|
67
|
+
--foreground: 255 255 255; /* #ffffff */
|
|
68
|
+
--background: 247 247 247; /* #f7f7f7 */
|
|
69
69
|
--background-color-primary: var(--primary-500) / 0.1;
|
|
70
70
|
--background-color-success: var(--success-500) / 0.1;
|
|
71
71
|
--background-color-warning: var(--warning-500) / 0.1;
|
|
@@ -127,8 +127,8 @@
|
|
|
127
127
|
--gray-350: 85 85 85; /* #555555 */
|
|
128
128
|
--gray-400: 46 46 46; /* #2e2e2e */
|
|
129
129
|
|
|
130
|
-
--
|
|
131
|
-
--background
|
|
130
|
+
--foreground: 17 17 17; /* #111111 */
|
|
131
|
+
--background: 28 28 28; /* #1C1C1C */
|
|
132
132
|
--background-color-primary: var(--primary-500) / 0.25;
|
|
133
133
|
--background-color-success: var(--success-500) / 0.25;
|
|
134
134
|
--background-color-warning: var(--warning-500) / 0.25;
|
package/theme/main-preset.js
CHANGED
|
@@ -12,8 +12,8 @@ var require_colors = __commonJS({
|
|
|
12
12
|
theme: {
|
|
13
13
|
colors: {
|
|
14
14
|
app: {
|
|
15
|
-
primary: "rgb(var(--
|
|
16
|
-
secondary: "rgb(var(--background
|
|
15
|
+
primary: "rgb(var(--foreground))",
|
|
16
|
+
secondary: "rgb(var(--background))"
|
|
17
17
|
},
|
|
18
18
|
black: "rgb(var(--black) / <alpha-value>)",
|
|
19
19
|
error: {
|
|
@@ -70,13 +70,9 @@ var require_colors = __commonJS({
|
|
|
70
70
|
900: "rgb(var(--warning-900) / <alpha-value>)",
|
|
71
71
|
950: "rgb(var(--warning-950) / <alpha-value>)"
|
|
72
72
|
},
|
|
73
|
-
white: "rgb(var(--white) / <alpha-value>)"
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
backgroundColor: {
|
|
77
|
-
"app-primary": "rgb(var(--background-primary))",
|
|
78
|
-
"app-secondary": "rgb(var(--background-secondary))"
|
|
79
|
-
}
|
|
73
|
+
white: "rgb(var(--white) / <alpha-value>)",
|
|
74
|
+
foreground: "rgb(var(--foreground) / <alpha-value>)",
|
|
75
|
+
background: "rgb(var(--background) / <alpha-value>)"
|
|
80
76
|
}
|
|
81
77
|
}
|
|
82
78
|
};
|
|
@@ -153,21 +149,16 @@ var require_typography = __commonJS({
|
|
|
153
149
|
});
|
|
154
150
|
|
|
155
151
|
// src/theme/main-preset.js
|
|
156
|
-
var screens = {
|
|
157
|
-
sm: "640px",
|
|
158
|
-
// => @media (min-width: 640px) { ... }
|
|
159
|
-
md: "768px",
|
|
160
|
-
// => @media (min-width: 768px) { ... }
|
|
161
|
-
lg: "1024px",
|
|
162
|
-
// => @media (min-width: 1024px) { ... }
|
|
163
|
-
xl: "1280px",
|
|
164
|
-
// => @media (min-width: 1280px) { ... }
|
|
165
|
-
"2xl": "1536px"
|
|
166
|
-
// => @media (min-width: 1536px) { ... }
|
|
167
|
-
};
|
|
168
152
|
module.exports = {
|
|
169
153
|
darkMode: "class",
|
|
170
154
|
theme: {
|
|
155
|
+
container: {
|
|
156
|
+
center: true,
|
|
157
|
+
padding: "2rem",
|
|
158
|
+
screens: {
|
|
159
|
+
"2xl": "1400px"
|
|
160
|
+
}
|
|
161
|
+
},
|
|
171
162
|
fontFamily: {
|
|
172
163
|
poppins: ["'Poppins', sans-serif"],
|
|
173
164
|
code: ["'JetBrains Mono', monospace"]
|
|
@@ -183,7 +174,6 @@ module.exports = {
|
|
|
183
174
|
"5xl": "3.75rem",
|
|
184
175
|
"6xl": "6rem"
|
|
185
176
|
},
|
|
186
|
-
screens,
|
|
187
177
|
extend: {
|
|
188
178
|
borderRadius: {
|
|
189
179
|
"1/2": "50%"
|
|
@@ -234,6 +224,7 @@ module.exports = {
|
|
|
234
224
|
plugins: [
|
|
235
225
|
require("@tailwindcss/container-queries"),
|
|
236
226
|
require("tailwind-scrollbar"),
|
|
227
|
+
require("tailwindcss-animate"),
|
|
237
228
|
require_scroll(),
|
|
238
229
|
require_typography()
|
|
239
230
|
]
|