@szum-tech/design-system 1.8.0 → 1.10.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.
@@ -1,3 +1,4 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
1
2
  import * as React from 'react';
2
3
  import { VariantProps } from 'class-variance-authority';
3
4
  import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
@@ -31,6 +32,6 @@ type AvatarProps = React.ComponentPropsWithoutRef<"div"> & {
31
32
  */
32
33
  src?: string;
33
34
  };
34
- declare function Avatar({ alt, bg, children, size, src, ...props }: AvatarProps): JSX.Element;
35
+ declare function Avatar({ alt, bg, children, size, src, ...props }: AvatarProps): react_jsx_runtime.JSX.Element;
35
36
 
36
37
  export { Avatar as A, AvatarProps as a, AvatarSizeType as b };
@@ -11,18 +11,11 @@ type AsProp<C extends React.ElementType> = {
11
11
  type PropsToOmit<C extends React.ElementType, P> = keyof (AsProp<C> & P);
12
12
  type PolymorphicComponentProp<C extends React.ElementType, Props = {}> = Props & AsProp<C> & Omit<React.ComponentPropsWithoutRef<C>, PropsToOmit<C, Props>>;
13
13
 
14
- declare const buttonCva: (props?: ({
15
- color?: "neutral" | "primary" | "success" | "warning" | "error" | null | undefined;
16
- size?: "sm" | "md" | "lg" | null | undefined;
17
- variant?: "text" | "outlined" | "contained" | null | undefined;
18
- } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
19
-
20
- type ButtonCvaProps = VariantProps<typeof buttonCva>;
21
- type ButtonSizeType = NonNullable<ButtonCvaProps["size"]>;
22
- type ButtonVariantType = NonNullable<ButtonCvaProps["variant"]>;
23
- type ButtonColorType = NonNullable<ButtonCvaProps["color"]>;
24
-
25
14
  type Props = {
15
+ /**
16
+ * Defines button full width
17
+ */
18
+ block?: boolean;
26
19
  /**
27
20
  * Defines button color
28
21
  */
@@ -38,13 +31,41 @@ type Props = {
38
31
  /**
39
32
  * Defines button content
40
33
  */
41
- children: React.ReactNode;
34
+ children?: React.ReactNode;
42
35
  /**
43
36
  * Disabled button
44
37
  */
45
38
  disabled?: boolean;
39
+ /**
40
+ * Defines left icon
41
+ */
42
+ startIcon?: React.ReactElement;
43
+ /**
44
+ * Defines right icon
45
+ */
46
+ endIcon?: React.ReactElement;
47
+ /**
48
+ * Defines is button is in loading state
49
+ */
50
+ loading?: boolean;
51
+ /**
52
+ * Defines is position of loading icon
53
+ */
54
+ loadingPosition?: "start" | "end";
46
55
  };
47
- type ButtonProps<T extends React.ElementType> = PolymorphicComponentProp<T, Props>;
56
+ type ButtonProps<T extends React.ElementType = "button"> = PolymorphicComponentProp<T, Props>;
48
57
  declare const Button: <T extends React.ElementType<any> = "button">(props: Props & AsProp<T> & Omit<React.PropsWithoutRef<React.ComponentProps<T>>, "as" | keyof Props> & React.RefAttributes<unknown>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
49
58
 
59
+ declare const buttonCva: (props?: ({
60
+ block?: boolean | null | undefined;
61
+ color?: "neutral" | "primary" | "success" | "warning" | "error" | null | undefined;
62
+ size?: "sm" | "md" | "lg" | null | undefined;
63
+ variant?: "text" | "outlined" | "contained" | null | undefined;
64
+ } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
65
+
66
+ type ButtonCvaProps = VariantProps<typeof buttonCva>;
67
+ type ButtonSizeType = NonNullable<ButtonCvaProps["size"]>;
68
+ type ButtonVariantType = NonNullable<ButtonCvaProps["variant"]>;
69
+ type ButtonColorType = NonNullable<ButtonCvaProps["color"]>;
70
+
50
71
  export { Button as B, ButtonProps as a, ButtonSizeType as b, ButtonVariantType as c, ButtonColorType as d };
@@ -1,5 +1,6 @@
1
1
  import React__default from 'react';
2
2
  import { a as ThemeContextType, T as ThemeType } from './theme.types-a32f0702.js';
3
+ import * as react_jsx_runtime from 'react/jsx-runtime';
3
4
 
4
5
  declare const ThemeContext: React__default.Context<ThemeContextType>;
5
6
 
@@ -17,6 +18,6 @@ interface ThemeProviderProps {
17
18
  */
18
19
  theme?: ThemeType;
19
20
  }
20
- declare function ThemeProvider({ children, defaultTheme, theme }: ThemeProviderProps): JSX.Element;
21
+ declare function ThemeProvider({ children, defaultTheme, theme }: ThemeProviderProps): react_jsx_runtime.JSX.Element;
21
22
 
22
23
  export { ThemeContext as T, ThemeProviderProps as a, ThemeProvider as b };
@@ -1,3 +1,4 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
1
2
  import * as React from 'react';
2
3
  import * as ReactTooltip from '@radix-ui/react-tooltip';
3
4
 
@@ -9,11 +10,11 @@ type TooltipProps = ReactTooltip.TooltipContentProps & {
9
10
  content?: React.ReactNode;
10
11
  collisionPadding?: number;
11
12
  };
12
- declare function Tooltip({ defaultOpen, content, open, onOpenChange, children, side, align, collisionPadding, sideOffset, ...props }: TooltipProps): JSX.Element;
13
+ declare function Tooltip({ defaultOpen, content, open, onOpenChange, children, side, align, collisionPadding, sideOffset, ...props }: TooltipProps): react_jsx_runtime.JSX.Element;
13
14
 
14
15
  type TooltipProviderProps = {
15
16
  children: React.ReactNode;
16
17
  };
17
- declare function TooltipProvider({ children }: TooltipProviderProps): JSX.Element;
18
+ declare function TooltipProvider({ children }: TooltipProviderProps): react_jsx_runtime.JSX.Element;
18
19
 
19
20
  export { Tooltip as T, TooltipProps as a, TooltipProviderProps as b, TooltipProvider as c };
@@ -0,0 +1,8 @@
1
+ import { b } from './chunk-HLQHRZMK.mjs';
2
+ import * as r from 'react';
3
+ import { cva } from 'class-variance-authority';
4
+ import { jsx, jsxs } from 'react/jsx-runtime';
5
+
6
+ var p=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]",md:"px-4 py-1.5 text-sm",lg:"px-5 py-2 text-[.9375rem]"},variant:{text:"border-transparent bg-transparent hover:text-white",outlined:"bg-transparent",contained:""}},compoundVariants:[{variant:"text",color:"neutral",class:["text-gray-500","hover:border-gray-500 hover:bg-gray-500","active:text-white active:border-gray-400 active:bg-gray-400"]},{variant:"text",color:"primary",class:["text-primary-500","hover:border-primary-500 hover:bg-primary-500","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","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","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","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-gray-600","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-gray-600","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"}}),l=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"}}),d=cva("",{variants:{loading:{true:"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 V=r.forwardRef(function({as:u,block:h=!1,color:y="primary",children:x,size:e="md",variant:w="text",disabled:f=!1,startIcon:C,endIcon:R,type:k,loading:t=!1,loadingPosition:b$1="start",...T},z){let v=u||"button",I=p({block:h,size:e,variant:w,color:y}),o=t&&b$1==="start",g=o?jsx(b,{"aria-label":"Loading"}):C||null,P=d({size:e,loading:o}),B=l({size:e,site:"left"}),n=t&&b$1==="end",m=n?jsx(b,{"aria-label":"Loading"}):R||null,S=d({size:e,loading:n}),E=l({size:e,site:"right"}),i=f||t;return jsxs(v,{"aria-disabled":i||void 0,className:I,"data-state":t?"loading":void 0,disabled:i,ref:z,role:"button",tabIndex:i?-1:0,type:v==="button"?"button":void 0,...T,children:[g?jsx("span",{className:B,role:o?"progressbar":void 0,children:r.cloneElement(g,{className:P})}):null,x,m?jsx("span",{className:E,role:n?"progressbar":void 0,children:r.cloneElement(m,{className:S})}):null]})}),N=V;
7
+
8
+ export { N as a };
@@ -0,0 +1,30 @@
1
+ 'use strict';
2
+
3
+ var chunkGBCDMJLD_js = require('./chunk-GBCDMJLD.js');
4
+ var r = require('react');
5
+ var classVarianceAuthority = require('class-variance-authority');
6
+ var jsxRuntime = require('react/jsx-runtime');
7
+
8
+ function _interopNamespace(e) {
9
+ if (e && e.__esModule) return e;
10
+ var n = Object.create(null);
11
+ if (e) {
12
+ Object.keys(e).forEach(function (k) {
13
+ if (k !== 'default') {
14
+ var d = Object.getOwnPropertyDescriptor(e, k);
15
+ Object.defineProperty(n, k, d.get ? d : {
16
+ enumerable: true,
17
+ get: function () { return e[k]; }
18
+ });
19
+ }
20
+ });
21
+ }
22
+ n.default = e;
23
+ return Object.freeze(n);
24
+ }
25
+
26
+ var r__namespace = /*#__PURE__*/_interopNamespace(r);
27
+
28
+ var p=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]",md:"px-4 py-1.5 text-sm",lg:"px-5 py-2 text-[.9375rem]"},variant:{text:"border-transparent bg-transparent hover:text-white",outlined:"bg-transparent",contained:""}},compoundVariants:[{variant:"text",color:"neutral",class:["text-gray-500","hover:border-gray-500 hover:bg-gray-500","active:text-white active:border-gray-400 active:bg-gray-400"]},{variant:"text",color:"primary",class:["text-primary-500","hover:border-primary-500 hover:bg-primary-500","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","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","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","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-gray-600","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-gray-600","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"}}),l=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"}}),d=classVarianceAuthority.cva("",{variants:{loading:{true:"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 V=r__namespace.forwardRef(function({as:u,block:h=!1,color:y="primary",children:x,size:e="md",variant:w="text",disabled:f=!1,startIcon:C,endIcon:R,type:k,loading:t=!1,loadingPosition:b="start",...T},z){let v=u||"button",I=p({block:h,size:e,variant:w,color:y}),o=t&&b==="start",g=o?jsxRuntime.jsx(chunkGBCDMJLD_js.b,{"aria-label":"Loading"}):C||null,P=d({size:e,loading:o}),B=l({size:e,site:"left"}),n=t&&b==="end",m=n?jsxRuntime.jsx(chunkGBCDMJLD_js.b,{"aria-label":"Loading"}):R||null,S=d({size:e,loading:n}),E=l({size:e,site:"right"}),i=f||t;return jsxRuntime.jsxs(v,{"aria-disabled":i||void 0,className:I,"data-state":t?"loading":void 0,disabled:i,ref:z,role:"button",tabIndex:i?-1:0,type:v==="button"?"button":void 0,...T,children:[g?jsxRuntime.jsx("span",{className:B,role:o?"progressbar":void 0,children:r__namespace.cloneElement(g,{className:P})}):null,x,m?jsxRuntime.jsx("span",{className:E,role:n?"progressbar":void 0,children:r__namespace.cloneElement(m,{className:S})}):null]})}),N=V;
29
+
30
+ exports.a = N;
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ var outline = require('@heroicons/react/24/outline');
4
+ var jsxRuntime = require('react/jsx-runtime');
5
+
6
+ function i(l){return jsxRuntime.jsxs("svg",{viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...l,children:[jsxRuntime.jsx("path",{d:"M17.64 9.2c0-.637-.057-1.251-.164-1.84H9v3.481h4.844c-.209 1.125-.843 2.078-1.796 2.717v2.258h2.908c1.702-1.567 2.684-3.874 2.684-6.615z",fillRule:"evenodd",fillOpacity:"1",fill:"#4285f4",stroke:"none"}),jsxRuntime.jsx("path",{d:"M9.003 18c2.43 0 4.467-.806 5.956-2.18L12.05 13.56c-.806.54-1.836.86-3.047.86-2.344 0-4.328-1.584-5.036-3.711H.96v2.332C2.44 15.983 5.485 18 9.003 18z",fillRule:"evenodd",fillOpacity:"1",fill:"#34a853",stroke:"none"}),jsxRuntime.jsx("path",{d:"M3.964 10.712c-.18-.54-.282-1.117-.282-1.71 0-.593.102-1.17.282-1.71V4.96H.957C.347 6.175 0 7.55 0 9.002c0 1.452.348 2.827.957 4.042l3.007-2.332z",fillRule:"evenodd",fillOpacity:"1",fill:"#fbbc05",stroke:"none"}),jsxRuntime.jsx("path",{d:"M9.003 3.58c1.321 0 2.508.454 3.44 1.345l2.582-2.58C13.464.891 11.428 0 9.002 0 5.485 0 2.44 2.017.96 4.958L3.967 7.29c.708-2.127 2.692-3.71 5.036-3.71z",fillRule:"evenodd",fillOpacity:"1",fill:"#ea4335",stroke:"none"})]})}function p(l){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",...l,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"})]})})})}
7
+
8
+ exports.a = i;
9
+ exports.b = p;
10
+ Object.keys(outline).forEach(function (k) {
11
+ if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
12
+ enumerable: true,
13
+ get: function () { return outline[k]; }
14
+ });
15
+ });
@@ -0,0 +1,6 @@
1
+ export * from '@heroicons/react/24/outline';
2
+ import { jsxs, jsx } from 'react/jsx-runtime';
3
+
4
+ function i(l){return jsxs("svg",{viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...l,children:[jsx("path",{d:"M17.64 9.2c0-.637-.057-1.251-.164-1.84H9v3.481h4.844c-.209 1.125-.843 2.078-1.796 2.717v2.258h2.908c1.702-1.567 2.684-3.874 2.684-6.615z",fillRule:"evenodd",fillOpacity:"1",fill:"#4285f4",stroke:"none"}),jsx("path",{d:"M9.003 18c2.43 0 4.467-.806 5.956-2.18L12.05 13.56c-.806.54-1.836.86-3.047.86-2.344 0-4.328-1.584-5.036-3.711H.96v2.332C2.44 15.983 5.485 18 9.003 18z",fillRule:"evenodd",fillOpacity:"1",fill:"#34a853",stroke:"none"}),jsx("path",{d:"M3.964 10.712c-.18-.54-.282-1.117-.282-1.71 0-.593.102-1.17.282-1.71V4.96H.957C.347 6.175 0 7.55 0 9.002c0 1.452.348 2.827.957 4.042l3.007-2.332z",fillRule:"evenodd",fillOpacity:"1",fill:"#fbbc05",stroke:"none"}),jsx("path",{d:"M9.003 3.58c1.321 0 2.508.454 3.44 1.345l2.582-2.58C13.464.891 11.428 0 9.002 0 5.485 0 2.44 2.017.96 4.958L3.967 7.29c.708-2.127 2.692-3.71 5.036-3.71z",fillRule:"evenodd",fillOpacity:"1",fill:"#ea4335",stroke:"none"})]})}function p(l){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",...l,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"})]})})})}
5
+
6
+ export { i as a, p as b };
@@ -1,4 +1,5 @@
1
- export { a as AvatarProps, b as AvatarSizeType, A as default } from '../../Avatar-cea60385.js';
1
+ export { a as AvatarProps, b as AvatarSizeType, A as default } from '../../Avatar-d6a17567.js';
2
+ import 'react/jsx-runtime';
2
3
  import 'react';
3
4
  import 'class-variance-authority';
4
5
  import 'class-variance-authority/dist/types';
@@ -1,4 +1,4 @@
1
- export { d as ButtonColorType, a as ButtonProps, b as ButtonSizeType, c as ButtonVariantType, B as default } from '../../Button-b6aa5957.js';
1
+ export { d as ButtonColorType, a as ButtonProps, b as ButtonSizeType, c as ButtonVariantType, B as default } from '../../Button.types-c2ca38e7.js';
2
2
  import 'react';
3
3
  import 'class-variance-authority';
4
4
  import 'class-variance-authority/dist/types';
@@ -1,7 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var chunk35PGUWPE_js = require('../../chunk-35PGUWPE.js');
3
+ var chunkDWKYRY4G_js = require('../../chunk-DWKYRY4G.js');
4
+ require('../../chunk-GBCDMJLD.js');
4
5
 
5
6
 
6
7
 
7
- module.exports = chunk35PGUWPE_js.a;
8
+ module.exports = chunkDWKYRY4G_js.a;
@@ -1 +1,2 @@
1
- export { a as default } from '../../chunk-CUMOJXWX.mjs';
1
+ export { a as default } from '../../chunk-2JV3WC5F.mjs';
2
+ import '../../chunk-HLQHRZMK.mjs';
@@ -1,3 +1,4 @@
1
- export { a as TooltipProps, c as TooltipProvider, b as TooltipProviderProps, T as default } from '../../Tooltip.provider-0bfb8e8b.js';
1
+ export { a as TooltipProps, c as TooltipProvider, b as TooltipProviderProps, T as default } from '../../Tooltip.provider-90345769.js';
2
+ import 'react/jsx-runtime';
2
3
  import 'react';
3
4
  import '@radix-ui/react-tooltip';
@@ -1,7 +1,7 @@
1
- export { A as Avatar, a as AvatarProps, b as AvatarSizeType } from '../Avatar-cea60385.js';
2
- export { B as Button, d as ButtonColorType, a as ButtonProps, b as ButtonSizeType, c as ButtonVariantType } from '../Button-b6aa5957.js';
3
- export { G as GoogleIcon, I as IconProps } from '../google-141b534f.js';
4
- export { T as Tooltip, a as TooltipProps, c as TooltipProvider, b as TooltipProviderProps } from '../Tooltip.provider-0bfb8e8b.js';
1
+ export { A as Avatar, a as AvatarProps, b as AvatarSizeType } from '../Avatar-d6a17567.js';
2
+ export { B as Button, d as ButtonColorType, a as ButtonProps, b as ButtonSizeType, c as ButtonVariantType } from '../Button.types-c2ca38e7.js';
3
+ export { T as Tooltip, a as TooltipProps, c as TooltipProvider, b as TooltipProviderProps } from '../Tooltip.provider-90345769.js';
4
+ import 'react/jsx-runtime';
5
5
  import 'react';
6
6
  import 'class-variance-authority';
7
7
  import 'class-variance-authority/dist/types';
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- require('../chunk-AZOTATFN.js');
3
+ require('../chunk-KM2W6K6Q.js');
4
4
  var chunkM6LWZWJB_js = require('../chunk-M6LWZWJB.js');
5
- var chunk35PGUWPE_js = require('../chunk-35PGUWPE.js');
6
- var chunkPSTRT4QP_js = require('../chunk-PSTRT4QP.js');
5
+ var chunkDWKYRY4G_js = require('../chunk-DWKYRY4G.js');
6
+ require('../chunk-GBCDMJLD.js');
7
7
  var chunkH45G4SKR_js = require('../chunk-H45G4SKR.js');
8
8
 
9
9
 
@@ -14,11 +14,7 @@ Object.defineProperty(exports, 'Avatar', {
14
14
  });
15
15
  Object.defineProperty(exports, 'Button', {
16
16
  enumerable: true,
17
- get: function () { return chunk35PGUWPE_js.a; }
18
- });
19
- Object.defineProperty(exports, 'GoogleIcon', {
20
- enumerable: true,
21
- get: function () { return chunkPSTRT4QP_js.a; }
17
+ get: function () { return chunkDWKYRY4G_js.a; }
22
18
  });
23
19
  Object.defineProperty(exports, 'Tooltip', {
24
20
  enumerable: true,
@@ -1,5 +1,5 @@
1
- import '../chunk-CWYY7UTM.mjs';
1
+ import '../chunk-M6ZHBILH.mjs';
2
2
  export { a as Avatar } from '../chunk-MM2WP564.mjs';
3
- export { a as Button } from '../chunk-CUMOJXWX.mjs';
4
- export { a as GoogleIcon } from '../chunk-KFGKQTHE.mjs';
3
+ export { a as Button } from '../chunk-2JV3WC5F.mjs';
4
+ import '../chunk-HLQHRZMK.mjs';
5
5
  export { a as Tooltip, b as TooltipProvider } from '../chunk-KJ2XNFGW.mjs';
@@ -1,3 +1,4 @@
1
- export { T as ThemeContext, b as ThemeProvider, a as ThemeProviderProps } from '../ThemeProvider-8e6d7838.js';
1
+ export { T as ThemeContext, b as ThemeProvider, a as ThemeProviderProps } from '../ThemeProvider-cd78c94b.js';
2
2
  export { a as ThemeContextType, T as ThemeType } from '../theme.types-a32f0702.js';
3
3
  import 'react';
4
+ import 'react/jsx-runtime';
@@ -1,3 +1,4 @@
1
- export { T as ThemeContext, b as ThemeProvider, a as ThemeProviderProps } from '../../ThemeProvider-8e6d7838.js';
1
+ export { T as ThemeContext, b as ThemeProvider, a as ThemeProviderProps } from '../../ThemeProvider-cd78c94b.js';
2
2
  export { a as ThemeContextType, T as ThemeType } from '../../theme.types-a32f0702.js';
3
3
  import 'react';
4
+ import 'react/jsx-runtime';
@@ -0,0 +1,11 @@
1
+ export * from '@heroicons/react/24/outline';
2
+ import * as react_jsx_runtime from 'react/jsx-runtime';
3
+ import * as React from 'react';
4
+
5
+ type IconProps = React.SVGProps<SVGSVGElement>;
6
+
7
+ declare function GoogleIcon(props: IconProps): react_jsx_runtime.JSX.Element;
8
+
9
+ declare function LoadingIcon(props: IconProps): react_jsx_runtime.JSX.Element;
10
+
11
+ export { GoogleIcon, IconProps, LoadingIcon };
package/icons/index.js ADDED
@@ -0,0 +1,14 @@
1
+ 'use strict';
2
+
3
+ var chunkGBCDMJLD_js = require('../chunk-GBCDMJLD.js');
4
+
5
+
6
+
7
+ Object.defineProperty(exports, 'GoogleIcon', {
8
+ enumerable: true,
9
+ get: function () { return chunkGBCDMJLD_js.a; }
10
+ });
11
+ Object.defineProperty(exports, 'LoadingIcon', {
12
+ enumerable: true,
13
+ get: function () { return chunkGBCDMJLD_js.b; }
14
+ });
@@ -0,0 +1 @@
1
+ export { a as GoogleIcon, b as LoadingIcon } from '../chunk-HLQHRZMK.mjs';
package/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- export { A as Avatar, a as AvatarProps, b as AvatarSizeType } from './Avatar-cea60385.js';
2
- export { B as Button, d as ButtonColorType, a as ButtonProps, b as ButtonSizeType, c as ButtonVariantType } from './Button-b6aa5957.js';
3
- export { G as GoogleIcon, I as IconProps } from './google-141b534f.js';
4
- export { T as Tooltip, a as TooltipProps, c as TooltipProvider, b as TooltipProviderProps } from './Tooltip.provider-0bfb8e8b.js';
1
+ export { A as Avatar, a as AvatarProps, b as AvatarSizeType } from './Avatar-d6a17567.js';
2
+ export { B as Button, d as ButtonColorType, a as ButtonProps, b as ButtonSizeType, c as ButtonVariantType } from './Button.types-c2ca38e7.js';
3
+ export { T as Tooltip, a as TooltipProps, c as TooltipProvider, b as TooltipProviderProps } from './Tooltip.provider-90345769.js';
5
4
  export { u as useTheme } from './useTheme-01c9253b.js';
6
- export { T as ThemeContext, b as ThemeProvider, a as ThemeProviderProps } from './ThemeProvider-8e6d7838.js';
5
+ export { T as ThemeContext, b as ThemeProvider, a as ThemeProviderProps } from './ThemeProvider-cd78c94b.js';
7
6
  export { a as ThemeContextType, T as ThemeType } from './theme.types-a32f0702.js';
7
+ import 'react/jsx-runtime';
8
8
  import 'react';
9
9
  import 'class-variance-authority';
10
10
  import 'class-variance-authority/dist/types';
package/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- require('./chunk-7M2UD3MX.js');
4
- require('./chunk-AZOTATFN.js');
3
+ require('./chunk-KM2W6K6Q.js');
5
4
  var chunkM6LWZWJB_js = require('./chunk-M6LWZWJB.js');
6
- var chunk35PGUWPE_js = require('./chunk-35PGUWPE.js');
7
- var chunkPSTRT4QP_js = require('./chunk-PSTRT4QP.js');
5
+ var chunkDWKYRY4G_js = require('./chunk-DWKYRY4G.js');
6
+ require('./chunk-GBCDMJLD.js');
8
7
  var chunkH45G4SKR_js = require('./chunk-H45G4SKR.js');
8
+ require('./chunk-7M2UD3MX.js');
9
9
  var chunkUJM6RAIA_js = require('./chunk-UJM6RAIA.js');
10
10
  require('./chunk-JQ4UTWMH.js');
11
11
  var chunkX2QIG2W5_js = require('./chunk-X2QIG2W5.js');
@@ -18,11 +18,7 @@ Object.defineProperty(exports, 'Avatar', {
18
18
  });
19
19
  Object.defineProperty(exports, 'Button', {
20
20
  enumerable: true,
21
- get: function () { return chunk35PGUWPE_js.a; }
22
- });
23
- Object.defineProperty(exports, 'GoogleIcon', {
24
- enumerable: true,
25
- get: function () { return chunkPSTRT4QP_js.a; }
21
+ get: function () { return chunkDWKYRY4G_js.a; }
26
22
  });
27
23
  Object.defineProperty(exports, 'Tooltip', {
28
24
  enumerable: true,
package/index.mjs CHANGED
@@ -1,9 +1,9 @@
1
- import './chunk-TAA4AMBN.mjs';
2
- import './chunk-CWYY7UTM.mjs';
1
+ import './chunk-M6ZHBILH.mjs';
3
2
  export { a as Avatar } from './chunk-MM2WP564.mjs';
4
- export { a as Button } from './chunk-CUMOJXWX.mjs';
5
- export { a as GoogleIcon } from './chunk-KFGKQTHE.mjs';
3
+ export { a as Button } from './chunk-2JV3WC5F.mjs';
4
+ import './chunk-HLQHRZMK.mjs';
6
5
  export { a as Tooltip, b as TooltipProvider } from './chunk-KJ2XNFGW.mjs';
6
+ import './chunk-TAA4AMBN.mjs';
7
7
  export { a as useTheme } from './chunk-CRJI67D5.mjs';
8
8
  import './chunk-WPEQQQCR.mjs';
9
9
  export { a as ThemeContext, b as ThemeProvider } from './chunk-5SE7P5YG.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@szum-tech/design-system",
3
- "version": "1.8.0",
3
+ "version": "1.10.0",
4
4
  "description": "Szum-Tech design system with tailwindcss support",
5
5
  "keywords": [
6
6
  "szum-tech",
@@ -37,12 +37,13 @@
37
37
  "components/**",
38
38
  "hooks/**",
39
39
  "contexts/**",
40
+ "icons/**",
40
41
  "theme/**"
41
42
  ],
42
43
  "scripts": {
43
44
  "build": "env NODE_ENV=production tsup && cpy './src/theme/global.css' './theme' --flat",
44
45
  "clean": "rm -rf node_modules && yarn clear:build && yarn clean:build:dev",
45
- "clean:build": "rm -rf components && rm -rf contexts && rm -rf hooks && rm -rf theme && rm -rf index.* && rm -rf chunk-*.js && rm -rf chunk-*.mjs && rm -rf *.d.ts",
46
+ "clean:build": "rm -rf components && rm -rf contexts && rm -rf hooks && rm -rf icons && rm -rf theme && rm -rf index.* && rm -rf chunk-*.js && rm -rf chunk-*.mjs && rm -rf *.d.ts",
46
47
  "clean:build:dev": "rm -rf dist",
47
48
  "dev": "concurrently \"yarn dev:css\" \"yarn dev:build\"",
48
49
  "dev:build": "tsup",
@@ -54,17 +55,20 @@
54
55
  "storybook:build": "storybook build --docs",
55
56
  "storybook:prebuild": "tailwindcss -i src/theme/global.css -o src/styles/default.css",
56
57
  "storybook:serve": "serve storybook-static",
58
+ "test": "vitest",
59
+ "test:coverage": "vitest run --coverage",
60
+ "test:watch": "vitest --watch",
57
61
  "type-check": "tsc --noEmit"
58
62
  },
59
63
  "dependencies": {
64
+ "@heroicons/react": "^2.0.18",
60
65
  "@radix-ui/react-tooltip": "^1.0.5",
61
66
  "@tailwindcss/container-queries": "^0.1.0",
62
- "class-variance-authority": "^0.5.2",
63
- "tailwind-scrollbar": "^3.0.0"
67
+ "class-variance-authority": "^0.6.0",
68
+ "tailwind-scrollbar": "^3.0.1"
64
69
  },
65
70
  "devDependencies": {
66
- "@babel/core": "^7.21.4",
67
- "@heroicons/react": "^2.0.17",
71
+ "@babel/core": "^7.21.8",
68
72
  "@storybook/addon-a11y": "^7.0.6",
69
73
  "@storybook/addon-actions": "^7.0.6",
70
74
  "@storybook/addon-docs": "^7.0.6",
@@ -81,41 +85,44 @@
81
85
  "@storybook/react": "^7.0.6",
82
86
  "@storybook/react-vite": "^7.0.6",
83
87
  "@storybook/theming": "^7.0.6",
84
- "@szum-tech/prettier-config": "^1.2.0",
85
- "@szum-tech/semantic-release-preset": "^1.5.0",
86
- "@testing-library/dom": "^9.2.0",
88
+ "@szum-tech/prettier-config": "^1.2.1",
89
+ "@szum-tech/semantic-release-preset": "^1.5.1",
90
+ "@testing-library/dom": "^9.3.0",
87
91
  "@testing-library/jest-dom": "^5.16.5",
88
92
  "@testing-library/react": "^14.0.0",
89
93
  "@testing-library/user-event": "^14.4.3",
90
- "@types/react": "^18.0.38",
91
- "@types/react-dom": "^18.0.11",
94
+ "@types/react": "^18.2.6",
95
+ "@types/react-dom": "^18.2.4",
92
96
  "@types/semantic-release": "^20.0.1",
93
97
  "@vitejs/plugin-react": "^4.0.0",
94
98
  "autoprefixer": "^10.4.14",
95
99
  "babel-loader": "^9.1.2",
96
100
  "concurrently": "^8.0.1",
97
101
  "cpy-cli": "^4.2.0",
102
+ "happy-dom": "^9.18.3",
98
103
  "postcss": "^8.4.23",
99
104
  "prettier": "^2.8.8",
100
- "prettier-plugin-tailwindcss": "^0.2.7",
105
+ "prettier-plugin-tailwindcss": "^0.2.8",
101
106
  "react": "^18.2.0",
102
107
  "react-docgen": "^5.4.3",
103
108
  "react-docgen-typescript": "^2.2.2",
104
109
  "react-dom": "^18.2.0",
105
- "semantic-release": "^21.0.1",
110
+ "semantic-release": "^21.0.2",
106
111
  "serve": "^14.2.0",
107
112
  "storybook": "^7.0.6",
108
113
  "storybook-addon-pseudo-states": "^2.0.1",
109
114
  "storybook-addon-themes": "^6.1.0",
110
- "tailwindcss": "^3.3.1",
115
+ "tailwindcss": "^3.3.2",
111
116
  "tsup": "^6.7.0",
112
117
  "typescript": "^5.0.4",
113
- "vite": "^4.3.1"
118
+ "vite": "^4.3.1",
119
+ "vite-tsconfig-paths": "^4.2.0",
120
+ "vitest": "^0.31.0"
114
121
  },
115
122
  "peerDependencies": {
116
123
  "react": "^18.2.0",
117
124
  "react-dom": "^18.2.0",
118
- "tailwindcss": "^3.3.1"
125
+ "tailwindcss": "^3.3.2"
119
126
  },
120
127
  "publishConfig": {
121
128
  "access": "public"
@@ -180,6 +180,10 @@ module.exports = {
180
180
  2: "0.5rem",
181
181
  8: "2.0rem"
182
182
  },
183
+ spacing: {
184
+ 4.5: "1.125rem",
185
+ 5.5: "1.375rem"
186
+ },
183
187
  width: {
184
188
  128: "32.0rem",
185
189
  300: "75.0rem"
package/chunk-35PGUWPE.js DELETED
@@ -1,29 +0,0 @@
1
- 'use strict';
2
-
3
- var r = require('react');
4
- var classVarianceAuthority = require('class-variance-authority');
5
- var jsxRuntime = require('react/jsx-runtime');
6
-
7
- function _interopNamespace(e) {
8
- if (e && e.__esModule) return e;
9
- var n = Object.create(null);
10
- if (e) {
11
- Object.keys(e).forEach(function (k) {
12
- if (k !== 'default') {
13
- var d = Object.getOwnPropertyDescriptor(e, k);
14
- Object.defineProperty(n, k, d.get ? d : {
15
- enumerable: true,
16
- get: function () { return e[k]; }
17
- });
18
- }
19
- });
20
- }
21
- n.default = e;
22
- return Object.freeze(n);
23
- }
24
-
25
- var r__namespace = /*#__PURE__*/_interopNamespace(r);
26
-
27
- var e=classVarianceAuthority.cva("border rounded font-sans font-medium leading-[1.75] tracking-[.02857em]",{variants:{color:{neutral:"",primary:"",success:"",warning:"",error:""},size:{sm:"py-1 px-2.5 text-[.8125rem]",md:"px-4 py-1.5 text-sm",lg:"px-5 py-2 text-[.9375rem]"},variant:{text:"border-transparent bg-transparent hover:text-white",outlined:"",contained:""}},compoundVariants:[{variant:"text",color:"neutral",class:["text-gray-400","hover:border-gray-400 hover:bg-gray-400","active:text-white active:border-gray-300 active:bg-gray-300","disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:border-transparent disabled:hover:bg-transparent disabled:hover:text-gray-400"]},{variant:"text",color:"primary",class:["text-primary-500","hover:border-primary-400 hover:bg-primary-400","active:text-white active:border-primary-600 active:bg-primary-600","disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:border-transparent disabled:hover:bg-transparent disabled:hover:text-primary-500"]},{variant:"text",color:"success",class:["text-success-500","hover:border-success-400 hover:bg-success-400","active:text-white active:border-success-600 active:bg-success-600","disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:border-transparent disabled:hover:bg-transparent disabled:hover:text-success-500"]},{variant:"text",color:"warning",class:["text-warning-500","hover:border-warning-400 hover:bg-warning-400","active:text-white active:border-warning-600 active:bg-warning-600","disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:border-transparent disabled:hover:bg-transparent disabled:hover:text-warning-500"]},{variant:"text",color:"error",class:["text-error-500","hover:border-error-400 hover:bg-error-400","active:text-white active:border-error-600 active:bg-error-600","disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:border-transparent disabled:hover:bg-transparent disabled:hover:text-error-500"]},{variant:"outlined",color:"neutral",class:["text-gray-400 border-gray-400 bg-transparent","hover:bg-gray-500 hover:text-white","active:text-white active:bg-gray-300","disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:bg-transparent disabled:hover:text-gray-400"]},{variant:"outlined",color:"primary",class:["text-primary-500 border-primary-500 bg-transparent","hover:bg-primary-400 hover:text-white","active:text-white active:bg-primary-600","disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:bg-transparent disabled:hover:text-primary-500"]},{variant:"outlined",color:"success",class:["text-success-500 border-success-500 bg-transparent","hover:bg-success-400 hover:text-white","active:text-white active:bg-success-600","disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:bg-transparent disabled:hover:text-success-500"]},{variant:"outlined",color:"warning",class:["text-warning-500 border-warning-500 bg-transparent","hover:bg-warning-400 hover:text-white","active:text-white active:bg-warning-600","disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:bg-transparent disabled:hover:text-warning-500"]},{variant:"outlined",color:"error",class:["text-error-500 border-error-500 bg-transparent","hover:bg-error-400 hover:text-white","active:text-white active:bg-error-600","disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:bg-transparent disabled:hover:text-error-500"]}]});var p=r__namespace.forwardRef(function({as:t,color:a="primary",children:o,size:i="md",variant:s="text",disabled:g=!1,...n},d){let c=t||"button",l=e({size:i,variant:s,color:a});return jsxRuntime.jsx(c,{className:l,ref:d,...n,children:o})}),v=p;
28
-
29
- exports.a = v;
@@ -1,7 +0,0 @@
1
- import * as r from 'react';
2
- import { cva } from 'class-variance-authority';
3
- import { jsx } from 'react/jsx-runtime';
4
-
5
- var e=cva("border rounded font-sans font-medium leading-[1.75] tracking-[.02857em]",{variants:{color:{neutral:"",primary:"",success:"",warning:"",error:""},size:{sm:"py-1 px-2.5 text-[.8125rem]",md:"px-4 py-1.5 text-sm",lg:"px-5 py-2 text-[.9375rem]"},variant:{text:"border-transparent bg-transparent hover:text-white",outlined:"",contained:""}},compoundVariants:[{variant:"text",color:"neutral",class:["text-gray-400","hover:border-gray-400 hover:bg-gray-400","active:text-white active:border-gray-300 active:bg-gray-300","disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:border-transparent disabled:hover:bg-transparent disabled:hover:text-gray-400"]},{variant:"text",color:"primary",class:["text-primary-500","hover:border-primary-400 hover:bg-primary-400","active:text-white active:border-primary-600 active:bg-primary-600","disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:border-transparent disabled:hover:bg-transparent disabled:hover:text-primary-500"]},{variant:"text",color:"success",class:["text-success-500","hover:border-success-400 hover:bg-success-400","active:text-white active:border-success-600 active:bg-success-600","disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:border-transparent disabled:hover:bg-transparent disabled:hover:text-success-500"]},{variant:"text",color:"warning",class:["text-warning-500","hover:border-warning-400 hover:bg-warning-400","active:text-white active:border-warning-600 active:bg-warning-600","disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:border-transparent disabled:hover:bg-transparent disabled:hover:text-warning-500"]},{variant:"text",color:"error",class:["text-error-500","hover:border-error-400 hover:bg-error-400","active:text-white active:border-error-600 active:bg-error-600","disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:border-transparent disabled:hover:bg-transparent disabled:hover:text-error-500"]},{variant:"outlined",color:"neutral",class:["text-gray-400 border-gray-400 bg-transparent","hover:bg-gray-500 hover:text-white","active:text-white active:bg-gray-300","disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:bg-transparent disabled:hover:text-gray-400"]},{variant:"outlined",color:"primary",class:["text-primary-500 border-primary-500 bg-transparent","hover:bg-primary-400 hover:text-white","active:text-white active:bg-primary-600","disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:bg-transparent disabled:hover:text-primary-500"]},{variant:"outlined",color:"success",class:["text-success-500 border-success-500 bg-transparent","hover:bg-success-400 hover:text-white","active:text-white active:bg-success-600","disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:bg-transparent disabled:hover:text-success-500"]},{variant:"outlined",color:"warning",class:["text-warning-500 border-warning-500 bg-transparent","hover:bg-warning-400 hover:text-white","active:text-white active:bg-warning-600","disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:bg-transparent disabled:hover:text-warning-500"]},{variant:"outlined",color:"error",class:["text-error-500 border-error-500 bg-transparent","hover:bg-error-400 hover:text-white","active:text-white active:bg-error-600","disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:bg-transparent disabled:hover:text-error-500"]}]});var p=r.forwardRef(function({as:t,color:a="primary",children:o,size:i="md",variant:s="text",disabled:g=!1,...n},d){let c=t||"button",l=e({size:i,variant:s,color:a});return jsx(c,{className:l,ref:d,...n,children:o})}),v=p;
6
-
7
- export { v as a };
@@ -1,5 +0,0 @@
1
- import { jsxs, jsx } from 'react/jsx-runtime';
2
-
3
- function t(o){return jsxs("svg",{viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...o,children:[jsx("path",{d:"M17.64 9.2c0-.637-.057-1.251-.164-1.84H9v3.481h4.844c-.209 1.125-.843 2.078-1.796 2.717v2.258h2.908c1.702-1.567 2.684-3.874 2.684-6.615z",fillRule:"evenodd",fillOpacity:"1",fill:"#4285f4",stroke:"none"}),jsx("path",{d:"M9.003 18c2.43 0 4.467-.806 5.956-2.18L12.05 13.56c-.806.54-1.836.86-3.047.86-2.344 0-4.328-1.584-5.036-3.711H.96v2.332C2.44 15.983 5.485 18 9.003 18z",fillRule:"evenodd",fillOpacity:"1",fill:"#34a853",stroke:"none"}),jsx("path",{d:"M3.964 10.712c-.18-.54-.282-1.117-.282-1.71 0-.593.102-1.17.282-1.71V4.96H.957C.347 6.175 0 7.55 0 9.002c0 1.452.348 2.827.957 4.042l3.007-2.332z",fillRule:"evenodd",fillOpacity:"1",fill:"#fbbc05",stroke:"none"}),jsx("path",{d:"M9.003 3.58c1.321 0 2.508.454 3.44 1.345l2.582-2.58C13.464.891 11.428 0 9.002 0 5.485 0 2.44 2.017.96 4.958L3.967 7.29c.708-2.127 2.692-3.71 5.036-3.71z",fillRule:"evenodd",fillOpacity:"1",fill:"#ea4335",stroke:"none"})]})}
4
-
5
- export { t as a };
package/chunk-PSTRT4QP.js DELETED
@@ -1,7 +0,0 @@
1
- 'use strict';
2
-
3
- var jsxRuntime = require('react/jsx-runtime');
4
-
5
- function t(o){return jsxRuntime.jsxs("svg",{viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...o,children:[jsxRuntime.jsx("path",{d:"M17.64 9.2c0-.637-.057-1.251-.164-1.84H9v3.481h4.844c-.209 1.125-.843 2.078-1.796 2.717v2.258h2.908c1.702-1.567 2.684-3.874 2.684-6.615z",fillRule:"evenodd",fillOpacity:"1",fill:"#4285f4",stroke:"none"}),jsxRuntime.jsx("path",{d:"M9.003 18c2.43 0 4.467-.806 5.956-2.18L12.05 13.56c-.806.54-1.836.86-3.047.86-2.344 0-4.328-1.584-5.036-3.711H.96v2.332C2.44 15.983 5.485 18 9.003 18z",fillRule:"evenodd",fillOpacity:"1",fill:"#34a853",stroke:"none"}),jsxRuntime.jsx("path",{d:"M3.964 10.712c-.18-.54-.282-1.117-.282-1.71 0-.593.102-1.17.282-1.71V4.96H.957C.347 6.175 0 7.55 0 9.002c0 1.452.348 2.827.957 4.042l3.007-2.332z",fillRule:"evenodd",fillOpacity:"1",fill:"#fbbc05",stroke:"none"}),jsxRuntime.jsx("path",{d:"M9.003 3.58c1.321 0 2.508.454 3.44 1.345l2.582-2.58C13.464.891 11.428 0 9.002 0 5.485 0 2.44 2.017.96 4.958L3.967 7.29c.708-2.127 2.692-3.71 5.036-3.71z",fillRule:"evenodd",fillOpacity:"1",fill:"#ea4335",stroke:"none"})]})}
6
-
7
- exports.a = t;
@@ -1,2 +0,0 @@
1
- export { G as GoogleIcon, I as IconProps } from '../../google-141b534f.js';
2
- import 'react';
@@ -1,10 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkPSTRT4QP_js = require('../../chunk-PSTRT4QP.js');
4
-
5
-
6
-
7
- Object.defineProperty(exports, 'GoogleIcon', {
8
- enumerable: true,
9
- get: function () { return chunkPSTRT4QP_js.a; }
10
- });
@@ -1 +0,0 @@
1
- export { a as GoogleIcon } from '../../chunk-KFGKQTHE.mjs';
@@ -1,7 +0,0 @@
1
- import * as React from 'react';
2
-
3
- type IconProps = React.SVGProps<SVGSVGElement>;
4
-
5
- declare function GoogleIcon(props: IconProps): JSX.Element;
6
-
7
- export { GoogleIcon as G, IconProps as I };
File without changes
File without changes