@szum-tech/design-system 1.7.0 → 1.8.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.
@@ -18,20 +18,19 @@ type AvatarProps = React.ComponentPropsWithoutRef<"div"> & {
18
18
  * Defines background color
19
19
  */
20
20
  bg?: `bg-${string}` | `bg-${string}-${number}`;
21
+ /**
22
+ * Defines avatar children
23
+ */
24
+ children?: React.ReactNode;
21
25
  /**
22
26
  * Defines avatar size
23
- * @default 'md'
24
27
  */
25
28
  size?: AvatarSizeType;
26
29
  /**
27
30
  * Defines avatar image src
28
31
  */
29
32
  src?: string;
30
- /**
31
- * Defines avatar children
32
- */
33
- children?: React.ReactNode;
34
33
  };
35
34
  declare function Avatar({ alt, bg, children, size, src, ...props }: AvatarProps): JSX.Element;
36
35
 
37
- export { Avatar as A, AvatarSizeType as a, AvatarProps as b };
36
+ export { Avatar as A, AvatarProps as a, AvatarSizeType as b };
@@ -2,6 +2,15 @@ import * as React from 'react';
2
2
  import { VariantProps } from 'class-variance-authority';
3
3
  import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
4
4
 
5
+ type AsProp<C extends React.ElementType> = {
6
+ /**
7
+ * Defines HTML tag to be used for component
8
+ */
9
+ as?: C;
10
+ };
11
+ type PropsToOmit<C extends React.ElementType, P> = keyof (AsProp<C> & P);
12
+ type PolymorphicComponentProp<C extends React.ElementType, Props = {}> = Props & AsProp<C> & Omit<React.ComponentPropsWithoutRef<C>, PropsToOmit<C, Props>>;
13
+
5
14
  declare const buttonCva: (props?: ({
6
15
  color?: "neutral" | "primary" | "success" | "warning" | "error" | null | undefined;
7
16
  size?: "sm" | "md" | "lg" | null | undefined;
@@ -13,36 +22,29 @@ type ButtonSizeType = NonNullable<ButtonCvaProps["size"]>;
13
22
  type ButtonVariantType = NonNullable<ButtonCvaProps["variant"]>;
14
23
  type ButtonColorType = NonNullable<ButtonCvaProps["color"]>;
15
24
 
16
- type AsProp<C extends React.ElementType> = {
17
- /**
18
- * Defines HTML tag to be used for component
19
- */
20
- as?: C;
21
- };
22
- type PropsToOmit<C extends React.ElementType, P> = keyof (AsProp<C> & P);
23
- type PolymorphicComponentProp<C extends React.ElementType, Props = {}> = Props & AsProp<C> & Omit<React.ComponentPropsWithoutRef<C>, PropsToOmit<C, Props>>;
24
-
25
- type ButtonProp = {
25
+ type Props = {
26
26
  /**
27
27
  * Defines button color
28
- * @default 'primary'
29
28
  */
30
29
  color?: ButtonColorType;
31
30
  /**
32
31
  * Defines button variant
33
- * @default 'text'
34
32
  */
35
33
  variant?: ButtonVariantType;
36
34
  /**
37
35
  * Defines button size
38
- * @default 'md'
39
36
  */
40
37
  size?: ButtonSizeType;
41
38
  /**
42
- * Defines avatar children
39
+ * Defines button content
40
+ */
41
+ children: React.ReactNode;
42
+ /**
43
+ * Disabled button
43
44
  */
44
- children?: React.ReactNode;
45
+ disabled?: boolean;
45
46
  };
46
- declare const _default: React.ForwardRefExoticComponent<Omit<PolymorphicComponentProp<React.ElementType<any>, ButtonProp>, "ref"> & React.RefAttributes<unknown>>;
47
+ type ButtonProps<T extends React.ElementType> = PolymorphicComponentProp<T, Props>;
48
+ 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;
47
49
 
48
- export { _default as _ };
50
+ export { Button as B, ButtonProps as a, ButtonSizeType as b, ButtonVariantType as c, ButtonColorType as d };
@@ -0,0 +1,19 @@
1
+ import * as React from 'react';
2
+ import * as ReactTooltip from '@radix-ui/react-tooltip';
3
+
4
+ type TooltipProps = ReactTooltip.TooltipContentProps & {
5
+ children?: React.ReactNode;
6
+ defaultOpen?: boolean;
7
+ open?: boolean;
8
+ onOpenChange?: (open: boolean) => void;
9
+ content?: React.ReactNode;
10
+ collisionPadding?: number;
11
+ };
12
+ declare function Tooltip({ defaultOpen, content, open, onOpenChange, children, side, align, collisionPadding, sideOffset, ...props }: TooltipProps): JSX.Element;
13
+
14
+ type TooltipProviderProps = {
15
+ children: React.ReactNode;
16
+ };
17
+ declare function TooltipProvider({ children }: TooltipProviderProps): JSX.Element;
18
+
19
+ export { Tooltip as T, TooltipProps as a, TooltipProviderProps as b, TooltipProvider as c };
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var e = require('react');
3
+ var r = require('react');
4
4
  var classVarianceAuthority = require('class-variance-authority');
5
5
  var jsxRuntime = require('react/jsx-runtime');
6
6
 
@@ -22,8 +22,8 @@ function _interopNamespace(e) {
22
22
  return Object.freeze(n);
23
23
  }
24
24
 
25
- var e__namespace = /*#__PURE__*/_interopNamespace(e);
25
+ var r__namespace = /*#__PURE__*/_interopNamespace(r);
26
26
 
27
- var r=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 v=e__namespace.forwardRef(function({as:t,color:a="primary",children:o,size:i="md",variant:s="text",...n},d){let c=t||"button",l=r({size:i,variant:s,color:a});return jsxRuntime.jsx(c,{className:l,ref:d,...n,children:o})});
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
28
 
29
29
  exports.a = v;
@@ -1,7 +1,7 @@
1
- import * as e from 'react';
1
+ import * as r from 'react';
2
2
  import { cva } from 'class-variance-authority';
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
 
5
- var r=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 v=e.forwardRef(function({as:t,color:a="primary",children:o,size:i="md",variant:s="text",...n},d){let c=t||"button",l=r({size:i,variant:s,color:a});return jsx(c,{className:l,ref:d,...n,children:o})});
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
6
 
7
7
  export { v as a };
@@ -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,5 @@
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 };
@@ -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,7 @@
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,4 +1,4 @@
1
- export { b as AvatarProps, a as AvatarSizeType, A as default } from '../../Avatar-e871ff4f.js';
1
+ export { a as AvatarProps, b as AvatarSizeType, A as default } from '../../Avatar-cea60385.js';
2
2
  import 'react';
3
3
  import 'class-variance-authority';
4
4
  import 'class-variance-authority/dist/types';
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkPIY4JWBH_js = require('../../chunk-PIY4JWBH.js');
3
+ var chunkM6LWZWJB_js = require('../../chunk-M6LWZWJB.js');
4
4
 
5
5
 
6
6
 
7
- module.exports = chunkPIY4JWBH_js.a;
7
+ module.exports = chunkM6LWZWJB_js.a;
@@ -1 +1 @@
1
- export { a as default } from '../../chunk-AWV2FK6N.mjs';
1
+ export { a as default } from '../../chunk-MM2WP564.mjs';
@@ -1,4 +1,4 @@
1
- export { _ as default } from '../../Button-91229b6b.js';
1
+ export { d as ButtonColorType, a as ButtonProps, b as ButtonSizeType, c as ButtonVariantType, B as default } from '../../Button-b6aa5957.js';
2
2
  import 'react';
3
3
  import 'class-variance-authority';
4
4
  import 'class-variance-authority/dist/types';
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkI6ERYEB3_js = require('../../chunk-I6ERYEB3.js');
3
+ var chunk35PGUWPE_js = require('../../chunk-35PGUWPE.js');
4
4
 
5
5
 
6
6
 
7
- module.exports = chunkI6ERYEB3_js.a;
7
+ module.exports = chunk35PGUWPE_js.a;
@@ -1 +1 @@
1
- export { a as default } from '../../chunk-4AKOYNNP.mjs';
1
+ export { a as default } from '../../chunk-CUMOJXWX.mjs';
@@ -1,7 +1,2 @@
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 } from '../../google-141b534f.js';
2
+ import 'react';
@@ -1,7 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var jsxRuntime = require('react/jsx-runtime');
3
+ var chunkPSTRT4QP_js = require('../../chunk-PSTRT4QP.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 chunkPSTRT4QP_js.a; }
10
+ });
@@ -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 } from '../../chunk-KFGKQTHE.mjs';
@@ -0,0 +1,3 @@
1
+ export { a as TooltipProps, c as TooltipProvider, b as TooltipProviderProps, T as default } from '../../Tooltip.provider-0bfb8e8b.js';
2
+ import 'react';
3
+ 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,8 @@
1
- export { A as Avatar, b as AvatarProps, a as AvatarSizeType } from '../Avatar-e871ff4f.js';
2
- export { _ as Button } from '../Button-91229b6b.js';
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';
3
5
  import 'react';
4
6
  import 'class-variance-authority';
5
7
  import 'class-variance-authority/dist/types';
8
+ import '@radix-ui/react-tooltip';
@@ -1,16 +1,30 @@
1
1
  'use strict';
2
2
 
3
- require('../chunk-JNEX4BMN.js');
4
- var chunkPIY4JWBH_js = require('../chunk-PIY4JWBH.js');
5
- var chunkI6ERYEB3_js = require('../chunk-I6ERYEB3.js');
3
+ require('../chunk-AZOTATFN.js');
4
+ var chunkM6LWZWJB_js = require('../chunk-M6LWZWJB.js');
5
+ var chunk35PGUWPE_js = require('../chunk-35PGUWPE.js');
6
+ var chunkPSTRT4QP_js = require('../chunk-PSTRT4QP.js');
7
+ var chunkH45G4SKR_js = require('../chunk-H45G4SKR.js');
6
8
 
7
9
 
8
10
 
9
11
  Object.defineProperty(exports, 'Avatar', {
10
12
  enumerable: true,
11
- get: function () { return chunkPIY4JWBH_js.a; }
13
+ get: function () { return chunkM6LWZWJB_js.a; }
12
14
  });
13
15
  Object.defineProperty(exports, 'Button', {
14
16
  enumerable: true,
15
- get: function () { return chunkI6ERYEB3_js.a; }
17
+ get: function () { return chunk35PGUWPE_js.a; }
18
+ });
19
+ Object.defineProperty(exports, 'GoogleIcon', {
20
+ enumerable: true,
21
+ get: function () { return chunkPSTRT4QP_js.a; }
22
+ });
23
+ Object.defineProperty(exports, 'Tooltip', {
24
+ enumerable: true,
25
+ get: function () { return chunkH45G4SKR_js.a; }
26
+ });
27
+ Object.defineProperty(exports, 'TooltipProvider', {
28
+ enumerable: true,
29
+ get: function () { return chunkH45G4SKR_js.b; }
16
30
  });
@@ -1,3 +1,5 @@
1
- import '../chunk-LYGO5UGG.mjs';
2
- export { a as Avatar } from '../chunk-AWV2FK6N.mjs';
3
- export { a as Button } from '../chunk-4AKOYNNP.mjs';
1
+ import '../chunk-CWYY7UTM.mjs';
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';
5
+ export { a as Tooltip, b as TooltipProvider } from '../chunk-KJ2XNFGW.mjs';
@@ -0,0 +1,7 @@
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 };
package/index.d.ts CHANGED
@@ -1,8 +1,11 @@
1
- export { A as Avatar, b as AvatarProps, a as AvatarSizeType } from './Avatar-e871ff4f.js';
2
- export { _ as Button } from './Button-91229b6b.js';
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';
3
5
  export { u as useTheme } from './useTheme-01c9253b.js';
4
6
  export { T as ThemeContext, b as ThemeProvider, a as ThemeProviderProps } from './ThemeProvider-8e6d7838.js';
5
7
  export { a as ThemeContextType, T as ThemeType } from './theme.types-a32f0702.js';
6
8
  import 'react';
7
9
  import 'class-variance-authority';
8
10
  import 'class-variance-authority/dist/types';
11
+ import '@radix-ui/react-tooltip';
package/index.js CHANGED
@@ -1,9 +1,11 @@
1
1
  'use strict';
2
2
 
3
- require('./chunk-JNEX4BMN.js');
4
- var chunkPIY4JWBH_js = require('./chunk-PIY4JWBH.js');
5
- var chunkI6ERYEB3_js = require('./chunk-I6ERYEB3.js');
6
3
  require('./chunk-7M2UD3MX.js');
4
+ require('./chunk-AZOTATFN.js');
5
+ var chunkM6LWZWJB_js = require('./chunk-M6LWZWJB.js');
6
+ var chunk35PGUWPE_js = require('./chunk-35PGUWPE.js');
7
+ var chunkPSTRT4QP_js = require('./chunk-PSTRT4QP.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');
@@ -12,11 +14,23 @@ var chunkX2QIG2W5_js = require('./chunk-X2QIG2W5.js');
12
14
 
13
15
  Object.defineProperty(exports, 'Avatar', {
14
16
  enumerable: true,
15
- get: function () { return chunkPIY4JWBH_js.a; }
17
+ get: function () { return chunkM6LWZWJB_js.a; }
16
18
  });
17
19
  Object.defineProperty(exports, 'Button', {
18
20
  enumerable: true,
19
- get: function () { return chunkI6ERYEB3_js.a; }
21
+ get: function () { return chunk35PGUWPE_js.a; }
22
+ });
23
+ Object.defineProperty(exports, 'GoogleIcon', {
24
+ enumerable: true,
25
+ get: function () { return chunkPSTRT4QP_js.a; }
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; }
20
34
  });
21
35
  Object.defineProperty(exports, 'useTheme', {
22
36
  enumerable: true,
package/index.mjs CHANGED
@@ -1,7 +1,9 @@
1
- import './chunk-LYGO5UGG.mjs';
2
- export { a as Avatar } from './chunk-AWV2FK6N.mjs';
3
- export { a as Button } from './chunk-4AKOYNNP.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-CUMOJXWX.mjs';
5
+ export { a as GoogleIcon } from './chunk-KFGKQTHE.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';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@szum-tech/design-system",
3
- "version": "1.7.0",
3
+ "version": "1.8.0",
4
4
  "description": "Szum-Tech design system with tailwindcss support",
5
5
  "keywords": [
6
6
  "szum-tech",
@@ -41,10 +41,10 @@
41
41
  ],
42
42
  "scripts": {
43
43
  "build": "env NODE_ENV=production tsup && cpy './src/theme/global.css' './theme' --flat",
44
- "clean": "rm -rf node_modules && yarn clear:build",
45
- "clear: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
- "clear:build:dev": "rm -rf dist",
47
- "dev": "concurrently \"npm run dev:css\" \"npm run dev:build\"",
44
+ "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:dev": "rm -rf dist",
47
+ "dev": "concurrently \"yarn dev:css\" \"yarn dev:build\"",
48
48
  "dev:build": "tsup",
49
49
  "dev:css": "tailwindcss -w -i src/theme/global.css -o src/styles/default.css",
50
50
  "prettier:check": "prettier --check .",
@@ -57,54 +57,60 @@
57
57
  "type-check": "tsc --noEmit"
58
58
  },
59
59
  "dependencies": {
60
+ "@radix-ui/react-tooltip": "^1.0.5",
60
61
  "@tailwindcss/container-queries": "^0.1.0",
61
- "class-variance-authority": "^0.5.1",
62
+ "class-variance-authority": "^0.5.2",
62
63
  "tailwind-scrollbar": "^3.0.0"
63
64
  },
64
65
  "devDependencies": {
65
66
  "@babel/core": "^7.21.4",
66
67
  "@heroicons/react": "^2.0.17",
67
- "@storybook/addon-a11y": "^7.0.0",
68
- "@storybook/addon-actions": "^7.0.0",
69
- "@storybook/addon-docs": "^7.0.0",
70
- "@storybook/addon-essentials": "^7.0.0",
71
- "@storybook/addon-interactions": "^7.0.0",
72
- "@storybook/addon-links": "^7.0.0",
73
- "@storybook/addon-mdx-gfm": "^7.0.0",
74
- "@storybook/addons": "^7.0.0",
75
- "@storybook/core-common": "^6.5.16",
76
- "@storybook/core-events": "^6.5.16",
77
- "@storybook/react": "^7.0.0",
78
- "@storybook/react-vite": "^7.0.0",
79
- "@storybook/theming": "^7.0.0",
68
+ "@storybook/addon-a11y": "^7.0.6",
69
+ "@storybook/addon-actions": "^7.0.6",
70
+ "@storybook/addon-docs": "^7.0.6",
71
+ "@storybook/addon-essentials": "^7.0.6",
72
+ "@storybook/addon-interactions": "^7.0.6",
73
+ "@storybook/addon-links": "^7.0.6",
74
+ "@storybook/addon-mdx-gfm": "^7.0.6",
75
+ "@storybook/addons": "^7.0.6",
76
+ "@storybook/components": "^7.0.6",
77
+ "@storybook/core-common": "^7.0.6",
78
+ "@storybook/core-events": "^7.0.6",
79
+ "@storybook/manager-api": "^7.0.6",
80
+ "@storybook/preview-api": "^7.0.6",
81
+ "@storybook/react": "^7.0.6",
82
+ "@storybook/react-vite": "^7.0.6",
83
+ "@storybook/theming": "^7.0.6",
80
84
  "@szum-tech/prettier-config": "^1.2.0",
81
85
  "@szum-tech/semantic-release-preset": "^1.5.0",
86
+ "@testing-library/dom": "^9.2.0",
87
+ "@testing-library/jest-dom": "^5.16.5",
82
88
  "@testing-library/react": "^14.0.0",
83
89
  "@testing-library/user-event": "^14.4.3",
84
- "@types/react": "^18.0.32",
90
+ "@types/react": "^18.0.38",
85
91
  "@types/react-dom": "^18.0.11",
86
92
  "@types/semantic-release": "^20.0.1",
87
- "@vitejs/plugin-react": "^3.1.0",
93
+ "@vitejs/plugin-react": "^4.0.0",
88
94
  "autoprefixer": "^10.4.14",
89
95
  "babel-loader": "^9.1.2",
90
96
  "concurrently": "^8.0.1",
91
97
  "cpy-cli": "^4.2.0",
92
- "postcss": "^8.4.21",
93
- "prettier": "^2.8.7",
94
- "prettier-plugin-tailwindcss": "^0.2.6",
98
+ "postcss": "^8.4.23",
99
+ "prettier": "^2.8.8",
100
+ "prettier-plugin-tailwindcss": "^0.2.7",
95
101
  "react": "^18.2.0",
96
102
  "react-docgen": "^5.4.3",
97
103
  "react-docgen-typescript": "^2.2.2",
98
104
  "react-dom": "^18.2.0",
99
105
  "semantic-release": "^21.0.1",
100
106
  "serve": "^14.2.0",
101
- "storybook": "^7.0.0",
102
- "storybook-addon-pseudo-states": "^2.0.0-next.1",
107
+ "storybook": "^7.0.6",
108
+ "storybook-addon-pseudo-states": "^2.0.1",
103
109
  "storybook-addon-themes": "^6.1.0",
104
110
  "tailwindcss": "^3.3.1",
105
111
  "tsup": "^6.7.0",
106
- "typescript": "^5.0.3",
107
- "vite": "^4.2.1"
112
+ "typescript": "^5.0.4",
113
+ "vite": "^4.3.1"
108
114
  },
109
115
  "peerDependencies": {
110
116
  "react": "^18.2.0",
@@ -183,6 +183,30 @@ module.exports = {
183
183
  width: {
184
184
  128: "32.0rem",
185
185
  300: "75.0rem"
186
+ },
187
+ keyframes: {
188
+ slideDownAndFade: {
189
+ from: { opacity: 0, transform: "translateY(-2px)" },
190
+ to: { opacity: 1, transform: "translateY(0)" }
191
+ },
192
+ slideLeftAndFade: {
193
+ from: { opacity: 0, transform: "translateX(2px)" },
194
+ to: { opacity: 1, transform: "translateX(0)" }
195
+ },
196
+ slideUpAndFade: {
197
+ from: { opacity: 0, transform: "translateY(2px)" },
198
+ to: { opacity: 1, transform: "translateY(0)" }
199
+ },
200
+ slideRightAndFade: {
201
+ from: { opacity: 0, transform: "translateX(-2px)" },
202
+ to: { opacity: 1, transform: "translateX(0)" }
203
+ }
204
+ },
205
+ animation: {
206
+ slideDownAndFade: "slideDownAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)",
207
+ slideLeftAndFade: "slideLeftAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)",
208
+ slideUpAndFade: "slideUpAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)",
209
+ slideRightAndFade: "slideRightAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)"
186
210
  }
187
211
  }
188
212
  },
File without changes
File without changes
File without changes
File without changes