@szum-tech/design-system 1.7.1 → 1.9.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 };
@@ -12,6 +12,7 @@ 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
14
  declare const buttonCva: (props?: ({
15
+ block?: boolean | null | undefined;
15
16
  color?: "neutral" | "primary" | "success" | "warning" | "error" | null | undefined;
16
17
  size?: "sm" | "md" | "lg" | null | undefined;
17
18
  variant?: "text" | "outlined" | "contained" | null | undefined;
@@ -23,6 +24,10 @@ type ButtonVariantType = NonNullable<ButtonCvaProps["variant"]>;
23
24
  type ButtonColorType = NonNullable<ButtonCvaProps["color"]>;
24
25
 
25
26
  type Props = {
27
+ /**
28
+ * Defines button full width
29
+ */
30
+ block?: boolean;
26
31
  /**
27
32
  * Defines button color
28
33
  */
@@ -38,13 +43,29 @@ type Props = {
38
43
  /**
39
44
  * Defines button content
40
45
  */
41
- children: React.ReactNode;
46
+ children?: React.ReactNode;
42
47
  /**
43
48
  * Disabled button
44
49
  */
45
50
  disabled?: boolean;
51
+ /**
52
+ * Defines left icon
53
+ */
54
+ startIcon?: React.ReactElement;
55
+ /**
56
+ * Defines right icon
57
+ */
58
+ endIcon?: React.ReactElement;
59
+ /**
60
+ * Defines is button is in loading state
61
+ */
62
+ loading?: boolean;
63
+ /**
64
+ * Defines is position of loading icon
65
+ */
66
+ loadingPosition?: "start" | "end";
46
67
  };
47
- type ButtonProps<T extends React.ElementType> = PolymorphicComponentProp<T, Props>;
68
+ type ButtonProps<T extends React.ElementType = "button"> = PolymorphicComponentProp<T, Props>;
48
69
  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
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 };
@@ -0,0 +1,20 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as React from 'react';
3
+ import * as ReactTooltip from '@radix-ui/react-tooltip';
4
+
5
+ type TooltipProps = ReactTooltip.TooltipContentProps & {
6
+ children?: React.ReactNode;
7
+ defaultOpen?: boolean;
8
+ open?: boolean;
9
+ onOpenChange?: (open: boolean) => void;
10
+ content?: React.ReactNode;
11
+ collisionPadding?: number;
12
+ };
13
+ declare function Tooltip({ defaultOpen, content, open, onOpenChange, children, side, align, collisionPadding, sideOffset, ...props }: TooltipProps): react_jsx_runtime.JSX.Element;
14
+
15
+ type TooltipProviderProps = {
16
+ children: React.ReactNode;
17
+ };
18
+ declare function TooltipProvider({ children }: TooltipProviderProps): react_jsx_runtime.JSX.Element;
19
+
20
+ export { Tooltip as T, TooltipProps as a, TooltipProviderProps as b, TooltipProvider as c };
@@ -0,0 +1,29 @@
1
+ 'use strict';
2
+
3
+ var o = require('@radix-ui/react-tooltip');
4
+ var jsxRuntime = require('react/jsx-runtime');
5
+
6
+ function _interopNamespace(e) {
7
+ if (e && e.__esModule) return e;
8
+ var n = Object.create(null);
9
+ if (e) {
10
+ Object.keys(e).forEach(function (k) {
11
+ if (k !== 'default') {
12
+ var d = Object.getOwnPropertyDescriptor(e, k);
13
+ Object.defineProperty(n, k, d.get ? d : {
14
+ enumerable: true,
15
+ get: function () { return e[k]; }
16
+ });
17
+ }
18
+ });
19
+ }
20
+ n.default = e;
21
+ return Object.freeze(n);
22
+ }
23
+
24
+ var o__namespace = /*#__PURE__*/_interopNamespace(o);
25
+
26
+ function d({defaultOpen:t,content:a,open:p,onOpenChange:r,children:n,side:s,align:c,collisionPadding:R=8,sideOffset:T=8,...m}){return jsxRuntime.jsxs(o__namespace.Root,{delayDuration:0,open:p,defaultOpen:t,onOpenChange:r,children:[jsxRuntime.jsx(o__namespace.Trigger,{asChild:!0,children:n}),a?jsxRuntime.jsx(o__namespace.Portal,{children:jsxRuntime.jsxs(o__namespace.Content,{className:"select-none rounded bg-white p-2 text-typography-primary 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:T,side:s,align:c,collisionPadding:R,...m,style:{maxWidth:"var(--radix-tooltip-content-available-width)"},children:[a,jsxRuntime.jsx(o__namespace.Arrow,{width:8,height:4,className:"fill-white"})]})}):null]})}function y({children:t}){return jsxRuntime.jsx(o__namespace.Provider,{skipDelayDuration:500,children:t})}
27
+
28
+ exports.a = d;
29
+ exports.b = y;
@@ -0,0 +1,30 @@
1
+ 'use strict';
2
+
3
+ var chunkZXKZOOUS_js = require('./chunk-ZXKZOOUS.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(chunkZXKZOOUS_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(chunkZXKZOOUS_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,6 @@
1
+ import * as o from '@radix-ui/react-tooltip';
2
+ import { jsxs, jsx } from 'react/jsx-runtime';
3
+
4
+ function d({defaultOpen:t,content:a,open:p,onOpenChange:r,children:n,side:s,align:c,collisionPadding:R=8,sideOffset:T=8,...m}){return jsxs(o.Root,{delayDuration:0,open:p,defaultOpen:t,onOpenChange:r,children:[jsx(o.Trigger,{asChild:!0,children:n}),a?jsx(o.Portal,{children:jsxs(o.Content,{className:"select-none rounded bg-white p-2 text-typography-primary 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:T,side:s,align:c,collisionPadding:R,...m,style:{maxWidth:"var(--radix-tooltip-content-available-width)"},children:[a,jsx(o.Arrow,{width:8,height:4,className:"fill-white"})]})}):null]})}function y({children:t}){return jsx(o.Provider,{skipDelayDuration:500,children:t})}
5
+
6
+ export { d as a, y as b };
@@ -0,0 +1,5 @@
1
+ import { jsxs, jsx } from 'react/jsx-runtime';
2
+
3
+ function i(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"})]})}function p(o){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",...o,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"})]})})})}
4
+
5
+ export { i as a, p as b };
@@ -0,0 +1,8 @@
1
+ import { b } from './chunk-L7XC4VZM.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,8 @@
1
+ 'use strict';
2
+
3
+ var jsxRuntime = require('react/jsx-runtime');
4
+
5
+ function i(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"})]})}function p(o){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",...o,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"})]})})})}
6
+
7
+ exports.a = i;
8
+ exports.b = p;
@@ -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-0370c8dc.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 chunkIU6YFFFX_js = require('../../chunk-IU6YFFFX.js');
4
+ require('../../chunk-ZXKZOOUS.js');
4
5
 
5
6
 
6
7
 
7
- module.exports = chunk35PGUWPE_js.a;
8
+ module.exports = chunkIU6YFFFX_js.a;
@@ -1 +1,2 @@
1
- export { a as default } from '../../chunk-CUMOJXWX.mjs';
1
+ export { a as default } from '../../chunk-V5HU3D4L.mjs';
2
+ import '../../chunk-L7XC4VZM.mjs';
@@ -1,7 +1,3 @@
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, IconProps };
1
+ export { G as GoogleIcon, I as IconProps, L as LoadingIcon } from '../../loading-b90ed1cb.js';
2
+ import 'react/jsx-runtime';
3
+ import 'react';
@@ -1,7 +1,14 @@
1
1
  'use strict';
2
2
 
3
- var jsxRuntime = require('react/jsx-runtime');
3
+ var chunkZXKZOOUS_js = require('../../chunk-ZXKZOOUS.js');
4
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
5
 
7
- exports.GoogleIcon = t;
6
+
7
+ Object.defineProperty(exports, 'GoogleIcon', {
8
+ enumerable: true,
9
+ get: function () { return chunkZXKZOOUS_js.a; }
10
+ });
11
+ Object.defineProperty(exports, 'LoadingIcon', {
12
+ enumerable: true,
13
+ get: function () { return chunkZXKZOOUS_js.b; }
14
+ });
@@ -1,5 +1 @@
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 GoogleIcon };
1
+ export { a as GoogleIcon, b as LoadingIcon } from '../../chunk-L7XC4VZM.mjs';
@@ -0,0 +1,4 @@
1
+ export { a as TooltipProps, c as TooltipProvider, b as TooltipProviderProps, T as default } from '../../Tooltip.provider-90345769.js';
2
+ import 'react/jsx-runtime';
3
+ import 'react';
4
+ import '@radix-ui/react-tooltip';
@@ -0,0 +1,16 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var chunkH45G4SKR_js = require('../../chunk-H45G4SKR.js');
6
+
7
+
8
+
9
+ Object.defineProperty(exports, 'TooltipProvider', {
10
+ enumerable: true,
11
+ get: function () { return chunkH45G4SKR_js.b; }
12
+ });
13
+ Object.defineProperty(exports, 'default', {
14
+ enumerable: true,
15
+ get: function () { return chunkH45G4SKR_js.a; }
16
+ });
@@ -0,0 +1 @@
1
+ export { b as TooltipProvider, a as default } from '../../chunk-KJ2XNFGW.mjs';
@@ -1,5 +1,9 @@
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';
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-0370c8dc.js';
3
+ export { G as GoogleIcon, I as IconProps, L as LoadingIcon } from '../loading-b90ed1cb.js';
4
+ export { T as Tooltip, a as TooltipProps, c as TooltipProvider, b as TooltipProviderProps } from '../Tooltip.provider-90345769.js';
5
+ import 'react/jsx-runtime';
3
6
  import 'react';
4
7
  import 'class-variance-authority';
5
8
  import 'class-variance-authority/dist/types';
9
+ import '@radix-ui/react-tooltip';
@@ -1,8 +1,10 @@
1
1
  'use strict';
2
2
 
3
- require('../chunk-5AJUIVQP.js');
3
+ require('../chunk-AZOTATFN.js');
4
4
  var chunkM6LWZWJB_js = require('../chunk-M6LWZWJB.js');
5
- var chunk35PGUWPE_js = require('../chunk-35PGUWPE.js');
5
+ var chunkIU6YFFFX_js = require('../chunk-IU6YFFFX.js');
6
+ var chunkZXKZOOUS_js = require('../chunk-ZXKZOOUS.js');
7
+ var chunkH45G4SKR_js = require('../chunk-H45G4SKR.js');
6
8
 
7
9
 
8
10
 
@@ -12,5 +14,21 @@ Object.defineProperty(exports, 'Avatar', {
12
14
  });
13
15
  Object.defineProperty(exports, 'Button', {
14
16
  enumerable: true,
15
- get: function () { return chunk35PGUWPE_js.a; }
17
+ get: function () { return chunkIU6YFFFX_js.a; }
18
+ });
19
+ Object.defineProperty(exports, 'GoogleIcon', {
20
+ enumerable: true,
21
+ get: function () { return chunkZXKZOOUS_js.a; }
22
+ });
23
+ Object.defineProperty(exports, 'LoadingIcon', {
24
+ enumerable: true,
25
+ get: function () { return chunkZXKZOOUS_js.b; }
26
+ });
27
+ Object.defineProperty(exports, 'Tooltip', {
28
+ enumerable: true,
29
+ get: function () { return chunkH45G4SKR_js.a; }
30
+ });
31
+ Object.defineProperty(exports, 'TooltipProvider', {
32
+ enumerable: true,
33
+ get: function () { return chunkH45G4SKR_js.b; }
16
34
  });
@@ -1,3 +1,5 @@
1
- import '../chunk-LMETIM25.mjs';
1
+ import '../chunk-CWYY7UTM.mjs';
2
2
  export { a as Avatar } from '../chunk-MM2WP564.mjs';
3
- export { a as Button } from '../chunk-CUMOJXWX.mjs';
3
+ export { a as Button } from '../chunk-V5HU3D4L.mjs';
4
+ export { a as GoogleIcon, b as LoadingIcon } from '../chunk-L7XC4VZM.mjs';
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';
package/index.d.ts CHANGED
@@ -1,8 +1,12 @@
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';
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-0370c8dc.js';
3
+ export { G as GoogleIcon, I as IconProps, L as LoadingIcon } from './loading-b90ed1cb.js';
4
+ export { T as Tooltip, a as TooltipProps, c as TooltipProvider, b as TooltipProviderProps } from './Tooltip.provider-90345769.js';
3
5
  export { u as useTheme } from './useTheme-01c9253b.js';
4
- export { T as ThemeContext, b as ThemeProvider, a as ThemeProviderProps } from './ThemeProvider-8e6d7838.js';
6
+ export { T as ThemeContext, b as ThemeProvider, a as ThemeProviderProps } from './ThemeProvider-cd78c94b.js';
5
7
  export { a as ThemeContextType, T as ThemeType } from './theme.types-a32f0702.js';
8
+ import 'react/jsx-runtime';
6
9
  import 'react';
7
10
  import 'class-variance-authority';
8
11
  import 'class-variance-authority/dist/types';
12
+ import '@radix-ui/react-tooltip';
package/index.js CHANGED
@@ -1,9 +1,11 @@
1
1
  'use strict';
2
2
 
3
- require('./chunk-5AJUIVQP.js');
4
- var chunkM6LWZWJB_js = require('./chunk-M6LWZWJB.js');
5
- var chunk35PGUWPE_js = require('./chunk-35PGUWPE.js');
6
3
  require('./chunk-7M2UD3MX.js');
4
+ require('./chunk-AZOTATFN.js');
5
+ var chunkM6LWZWJB_js = require('./chunk-M6LWZWJB.js');
6
+ var chunkIU6YFFFX_js = require('./chunk-IU6YFFFX.js');
7
+ var chunkZXKZOOUS_js = require('./chunk-ZXKZOOUS.js');
8
+ var chunkH45G4SKR_js = require('./chunk-H45G4SKR.js');
7
9
  var chunkUJM6RAIA_js = require('./chunk-UJM6RAIA.js');
8
10
  require('./chunk-JQ4UTWMH.js');
9
11
  var chunkX2QIG2W5_js = require('./chunk-X2QIG2W5.js');
@@ -16,7 +18,23 @@ Object.defineProperty(exports, 'Avatar', {
16
18
  });
17
19
  Object.defineProperty(exports, 'Button', {
18
20
  enumerable: true,
19
- get: function () { return chunk35PGUWPE_js.a; }
21
+ get: function () { return chunkIU6YFFFX_js.a; }
22
+ });
23
+ Object.defineProperty(exports, 'GoogleIcon', {
24
+ enumerable: true,
25
+ get: function () { return chunkZXKZOOUS_js.a; }
26
+ });
27
+ Object.defineProperty(exports, 'LoadingIcon', {
28
+ enumerable: true,
29
+ get: function () { return chunkZXKZOOUS_js.b; }
30
+ });
31
+ Object.defineProperty(exports, 'Tooltip', {
32
+ enumerable: true,
33
+ get: function () { return chunkH45G4SKR_js.a; }
34
+ });
35
+ Object.defineProperty(exports, 'TooltipProvider', {
36
+ enumerable: true,
37
+ get: function () { return chunkH45G4SKR_js.b; }
20
38
  });
21
39
  Object.defineProperty(exports, 'useTheme', {
22
40
  enumerable: true,
package/index.mjs CHANGED
@@ -1,7 +1,9 @@
1
- import './chunk-LMETIM25.mjs';
2
- export { a as Avatar } from './chunk-MM2WP564.mjs';
3
- export { a as Button } from './chunk-CUMOJXWX.mjs';
4
1
  import './chunk-TAA4AMBN.mjs';
2
+ import './chunk-CWYY7UTM.mjs';
3
+ export { a as Avatar } from './chunk-MM2WP564.mjs';
4
+ export { a as Button } from './chunk-V5HU3D4L.mjs';
5
+ export { a as GoogleIcon, b as LoadingIcon } from './chunk-L7XC4VZM.mjs';
6
+ export { a as Tooltip, b as TooltipProvider } from './chunk-KJ2XNFGW.mjs';
5
7
  export { a as useTheme } from './chunk-CRJI67D5.mjs';
6
8
  import './chunk-WPEQQQCR.mjs';
7
9
  export { a as ThemeContext, b as ThemeProvider } from './chunk-5SE7P5YG.mjs';
@@ -0,0 +1,10 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as React from 'react';
3
+
4
+ type IconProps = React.SVGProps<SVGSVGElement>;
5
+
6
+ declare function GoogleIcon(props: IconProps): react_jsx_runtime.JSX.Element;
7
+
8
+ declare function LoadingIcon(props: IconProps): react_jsx_runtime.JSX.Element;
9
+
10
+ export { GoogleIcon as G, IconProps as I, LoadingIcon as L };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@szum-tech/design-system",
3
- "version": "1.7.1",
3
+ "version": "1.9.0",
4
4
  "description": "Szum-Tech design system with tailwindcss support",
5
5
  "keywords": [
6
6
  "szum-tech",
@@ -54,16 +54,20 @@
54
54
  "storybook:build": "storybook build --docs",
55
55
  "storybook:prebuild": "tailwindcss -i src/theme/global.css -o src/styles/default.css",
56
56
  "storybook:serve": "serve storybook-static",
57
+ "test": "vitest",
58
+ "test:coverage": "vitest run --coverage",
59
+ "test:watch": "vitest --watch",
57
60
  "type-check": "tsc --noEmit"
58
61
  },
59
62
  "dependencies": {
63
+ "@radix-ui/react-tooltip": "^1.0.5",
60
64
  "@tailwindcss/container-queries": "^0.1.0",
61
- "class-variance-authority": "^0.5.2",
62
- "tailwind-scrollbar": "^3.0.0"
65
+ "class-variance-authority": "^0.6.0",
66
+ "tailwind-scrollbar": "^3.0.1"
63
67
  },
64
68
  "devDependencies": {
65
- "@babel/core": "^7.21.4",
66
- "@heroicons/react": "^2.0.17",
69
+ "@babel/core": "^7.21.8",
70
+ "@heroicons/react": "^2.0.18",
67
71
  "@storybook/addon-a11y": "^7.0.6",
68
72
  "@storybook/addon-actions": "^7.0.6",
69
73
  "@storybook/addon-docs": "^7.0.6",
@@ -80,41 +84,44 @@
80
84
  "@storybook/react": "^7.0.6",
81
85
  "@storybook/react-vite": "^7.0.6",
82
86
  "@storybook/theming": "^7.0.6",
83
- "@szum-tech/prettier-config": "^1.2.0",
84
- "@szum-tech/semantic-release-preset": "^1.5.0",
85
- "@testing-library/dom": "^9.2.0",
87
+ "@szum-tech/prettier-config": "^1.2.1",
88
+ "@szum-tech/semantic-release-preset": "^1.5.1",
89
+ "@testing-library/dom": "^9.3.0",
86
90
  "@testing-library/jest-dom": "^5.16.5",
87
91
  "@testing-library/react": "^14.0.0",
88
92
  "@testing-library/user-event": "^14.4.3",
89
- "@types/react": "^18.0.38",
90
- "@types/react-dom": "^18.0.11",
93
+ "@types/react": "^18.2.6",
94
+ "@types/react-dom": "^18.2.4",
91
95
  "@types/semantic-release": "^20.0.1",
92
96
  "@vitejs/plugin-react": "^4.0.0",
93
97
  "autoprefixer": "^10.4.14",
94
98
  "babel-loader": "^9.1.2",
95
99
  "concurrently": "^8.0.1",
96
100
  "cpy-cli": "^4.2.0",
101
+ "happy-dom": "^9.18.3",
97
102
  "postcss": "^8.4.23",
98
103
  "prettier": "^2.8.8",
99
- "prettier-plugin-tailwindcss": "^0.2.7",
104
+ "prettier-plugin-tailwindcss": "^0.2.8",
100
105
  "react": "^18.2.0",
101
106
  "react-docgen": "^5.4.3",
102
107
  "react-docgen-typescript": "^2.2.2",
103
108
  "react-dom": "^18.2.0",
104
- "semantic-release": "^21.0.1",
109
+ "semantic-release": "^21.0.2",
105
110
  "serve": "^14.2.0",
106
111
  "storybook": "^7.0.6",
107
112
  "storybook-addon-pseudo-states": "^2.0.1",
108
113
  "storybook-addon-themes": "^6.1.0",
109
- "tailwindcss": "^3.3.1",
114
+ "tailwindcss": "^3.3.2",
110
115
  "tsup": "^6.7.0",
111
116
  "typescript": "^5.0.4",
112
- "vite": "^4.3.1"
117
+ "vite": "^4.3.1",
118
+ "vite-tsconfig-paths": "^4.2.0",
119
+ "vitest": "^0.31.0"
113
120
  },
114
121
  "peerDependencies": {
115
122
  "react": "^18.2.0",
116
123
  "react-dom": "^18.2.0",
117
- "tailwindcss": "^3.3.1"
124
+ "tailwindcss": "^3.3.2"
118
125
  },
119
126
  "publishConfig": {
120
127
  "access": "public"
@@ -180,9 +180,37 @@ 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"
190
+ },
191
+ keyframes: {
192
+ slideDownAndFade: {
193
+ from: { opacity: 0, transform: "translateY(-2px)" },
194
+ to: { opacity: 1, transform: "translateY(0)" }
195
+ },
196
+ slideLeftAndFade: {
197
+ from: { opacity: 0, transform: "translateX(2px)" },
198
+ to: { opacity: 1, transform: "translateX(0)" }
199
+ },
200
+ slideUpAndFade: {
201
+ from: { opacity: 0, transform: "translateY(2px)" },
202
+ to: { opacity: 1, transform: "translateY(0)" }
203
+ },
204
+ slideRightAndFade: {
205
+ from: { opacity: 0, transform: "translateX(-2px)" },
206
+ to: { opacity: 1, transform: "translateX(0)" }
207
+ }
208
+ },
209
+ animation: {
210
+ slideDownAndFade: "slideDownAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)",
211
+ slideLeftAndFade: "slideLeftAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)",
212
+ slideUpAndFade: "slideUpAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)",
213
+ slideRightAndFade: "slideRightAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)"
186
214
  }
187
215
  }
188
216
  },
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 };
File without changes
File without changes