@szum-tech/design-system 1.8.0 → 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.
- package/{Avatar-cea60385.d.ts → Avatar-d6a17567.d.ts} +2 -1
- package/{Button-b6aa5957.d.ts → Button-0370c8dc.d.ts} +23 -2
- package/{ThemeProvider-8e6d7838.d.ts → ThemeProvider-cd78c94b.d.ts} +2 -1
- package/{Tooltip.provider-0bfb8e8b.d.ts → Tooltip.provider-90345769.d.ts} +3 -2
- package/chunk-IU6YFFFX.js +30 -0
- package/{chunk-KFGKQTHE.mjs → chunk-L7XC4VZM.mjs} +2 -2
- package/chunk-V5HU3D4L.mjs +8 -0
- package/chunk-ZXKZOOUS.js +8 -0
- package/components/Avatar/index.d.ts +2 -1
- package/components/Button/index.d.ts +1 -1
- package/components/Button/index.js +3 -2
- package/components/Button/index.mjs +2 -1
- package/components/Icons/index.d.ts +2 -1
- package/components/Icons/index.js +6 -2
- package/components/Icons/index.mjs +1 -1
- package/components/Tooltip/index.d.ts +2 -1
- package/components/index.d.ts +5 -4
- package/components/index.js +8 -4
- package/components/index.mjs +2 -2
- package/contexts/index.d.ts +2 -1
- package/contexts/theme/index.d.ts +2 -1
- package/index.d.ts +6 -5
- package/index.js +8 -4
- package/index.mjs +2 -2
- package/loading-b90ed1cb.d.ts +10 -0
- package/package.json +21 -15
- package/theme/main-preset.js +4 -0
- package/chunk-35PGUWPE.js +0 -29
- package/chunk-CUMOJXWX.mjs +0 -7
- package/chunk-PSTRT4QP.js +0 -7
- package/google-141b534f.d.ts +0 -7
|
@@ -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
|
|
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 };
|
|
@@ -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,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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
|
|
3
|
-
function
|
|
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
4
|
|
|
5
|
-
export {
|
|
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-
|
|
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-
|
|
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 +1,2 @@
|
|
|
1
|
-
export { a as default } from '../../chunk-
|
|
1
|
+
export { a as default } from '../../chunk-V5HU3D4L.mjs';
|
|
2
|
+
import '../../chunk-L7XC4VZM.mjs';
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkZXKZOOUS_js = require('../../chunk-ZXKZOOUS.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, 'GoogleIcon', {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkZXKZOOUS_js.a; }
|
|
10
|
+
});
|
|
11
|
+
Object.defineProperty(exports, 'LoadingIcon', {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkZXKZOOUS_js.b; }
|
|
10
14
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { a as GoogleIcon } from '../../chunk-
|
|
1
|
+
export { a as GoogleIcon, b as LoadingIcon } from '../../chunk-L7XC4VZM.mjs';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export { a as TooltipProps, c as TooltipProvider, b as TooltipProviderProps, T as default } from '../../Tooltip.provider-
|
|
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';
|
package/components/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export { A as Avatar, a as AvatarProps, b as AvatarSizeType } from '../Avatar-
|
|
2
|
-
export { B as Button, d as ButtonColorType, a as ButtonProps, b as ButtonSizeType, c as ButtonVariantType } from '../Button-
|
|
3
|
-
export { G as GoogleIcon, I as IconProps } from '../
|
|
4
|
-
export { T as Tooltip, a as TooltipProps, c as TooltipProvider, b as TooltipProviderProps } from '../Tooltip.provider-
|
|
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';
|
|
5
6
|
import 'react';
|
|
6
7
|
import 'class-variance-authority';
|
|
7
8
|
import 'class-variance-authority/dist/types';
|
package/components/index.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
require('../chunk-AZOTATFN.js');
|
|
4
4
|
var chunkM6LWZWJB_js = require('../chunk-M6LWZWJB.js');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
5
|
+
var chunkIU6YFFFX_js = require('../chunk-IU6YFFFX.js');
|
|
6
|
+
var chunkZXKZOOUS_js = require('../chunk-ZXKZOOUS.js');
|
|
7
7
|
var chunkH45G4SKR_js = require('../chunk-H45G4SKR.js');
|
|
8
8
|
|
|
9
9
|
|
|
@@ -14,11 +14,15 @@ Object.defineProperty(exports, 'Avatar', {
|
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, 'Button', {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkIU6YFFFX_js.a; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, 'GoogleIcon', {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkZXKZOOUS_js.a; }
|
|
22
|
+
});
|
|
23
|
+
Object.defineProperty(exports, 'LoadingIcon', {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function () { return chunkZXKZOOUS_js.b; }
|
|
22
26
|
});
|
|
23
27
|
Object.defineProperty(exports, 'Tooltip', {
|
|
24
28
|
enumerable: true,
|
package/components/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../chunk-CWYY7UTM.mjs';
|
|
2
2
|
export { a as Avatar } from '../chunk-MM2WP564.mjs';
|
|
3
|
-
export { a as Button } from '../chunk-
|
|
4
|
-
export { a as GoogleIcon } from '../chunk-
|
|
3
|
+
export { a as Button } from '../chunk-V5HU3D4L.mjs';
|
|
4
|
+
export { a as GoogleIcon, b as LoadingIcon } from '../chunk-L7XC4VZM.mjs';
|
|
5
5
|
export { a as Tooltip, b as TooltipProvider } from '../chunk-KJ2XNFGW.mjs';
|
package/contexts/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export { T as ThemeContext, b as ThemeProvider, a as ThemeProviderProps } from '../ThemeProvider-
|
|
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-
|
|
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,10 +1,11 @@
|
|
|
1
|
-
export { A as Avatar, a as AvatarProps, b as AvatarSizeType } from './Avatar-
|
|
2
|
-
export { B as Button, d as ButtonColorType, a as ButtonProps, b as ButtonSizeType, c as ButtonVariantType } from './Button-
|
|
3
|
-
export { G as GoogleIcon, I as IconProps } from './
|
|
4
|
-
export { T as Tooltip, a as TooltipProps, c as TooltipProvider, b as TooltipProviderProps } from './Tooltip.provider-
|
|
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
5
|
export { u as useTheme } from './useTheme-01c9253b.js';
|
|
6
|
-
export { T as ThemeContext, b as ThemeProvider, a as ThemeProviderProps } from './ThemeProvider-
|
|
6
|
+
export { T as ThemeContext, b as ThemeProvider, a as ThemeProviderProps } from './ThemeProvider-cd78c94b.js';
|
|
7
7
|
export { a as ThemeContextType, T as ThemeType } from './theme.types-a32f0702.js';
|
|
8
|
+
import 'react/jsx-runtime';
|
|
8
9
|
import 'react';
|
|
9
10
|
import 'class-variance-authority';
|
|
10
11
|
import 'class-variance-authority/dist/types';
|
package/index.js
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
require('./chunk-7M2UD3MX.js');
|
|
4
4
|
require('./chunk-AZOTATFN.js');
|
|
5
5
|
var chunkM6LWZWJB_js = require('./chunk-M6LWZWJB.js');
|
|
6
|
-
var
|
|
7
|
-
var
|
|
6
|
+
var chunkIU6YFFFX_js = require('./chunk-IU6YFFFX.js');
|
|
7
|
+
var chunkZXKZOOUS_js = require('./chunk-ZXKZOOUS.js');
|
|
8
8
|
var chunkH45G4SKR_js = require('./chunk-H45G4SKR.js');
|
|
9
9
|
var chunkUJM6RAIA_js = require('./chunk-UJM6RAIA.js');
|
|
10
10
|
require('./chunk-JQ4UTWMH.js');
|
|
@@ -18,11 +18,15 @@ Object.defineProperty(exports, 'Avatar', {
|
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, 'Button', {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkIU6YFFFX_js.a; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, 'GoogleIcon', {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkZXKZOOUS_js.a; }
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(exports, 'LoadingIcon', {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () { return chunkZXKZOOUS_js.b; }
|
|
26
30
|
});
|
|
27
31
|
Object.defineProperty(exports, 'Tooltip', {
|
|
28
32
|
enumerable: true,
|
package/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import './chunk-TAA4AMBN.mjs';
|
|
2
2
|
import './chunk-CWYY7UTM.mjs';
|
|
3
3
|
export { a as Avatar } from './chunk-MM2WP564.mjs';
|
|
4
|
-
export { a as Button } from './chunk-
|
|
5
|
-
export { a as GoogleIcon } from './chunk-
|
|
4
|
+
export { a as Button } from './chunk-V5HU3D4L.mjs';
|
|
5
|
+
export { a as GoogleIcon, b as LoadingIcon } from './chunk-L7XC4VZM.mjs';
|
|
6
6
|
export { a as Tooltip, b as TooltipProvider } from './chunk-KJ2XNFGW.mjs';
|
|
7
7
|
export { a as useTheme } from './chunk-CRJI67D5.mjs';
|
|
8
8
|
import './chunk-WPEQQQCR.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.
|
|
3
|
+
"version": "1.9.0",
|
|
4
4
|
"description": "Szum-Tech design system with tailwindcss support",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"szum-tech",
|
|
@@ -54,17 +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": {
|
|
60
63
|
"@radix-ui/react-tooltip": "^1.0.5",
|
|
61
64
|
"@tailwindcss/container-queries": "^0.1.0",
|
|
62
|
-
"class-variance-authority": "^0.
|
|
63
|
-
"tailwind-scrollbar": "^3.0.
|
|
65
|
+
"class-variance-authority": "^0.6.0",
|
|
66
|
+
"tailwind-scrollbar": "^3.0.1"
|
|
64
67
|
},
|
|
65
68
|
"devDependencies": {
|
|
66
|
-
"@babel/core": "^7.21.
|
|
67
|
-
"@heroicons/react": "^2.0.
|
|
69
|
+
"@babel/core": "^7.21.8",
|
|
70
|
+
"@heroicons/react": "^2.0.18",
|
|
68
71
|
"@storybook/addon-a11y": "^7.0.6",
|
|
69
72
|
"@storybook/addon-actions": "^7.0.6",
|
|
70
73
|
"@storybook/addon-docs": "^7.0.6",
|
|
@@ -81,41 +84,44 @@
|
|
|
81
84
|
"@storybook/react": "^7.0.6",
|
|
82
85
|
"@storybook/react-vite": "^7.0.6",
|
|
83
86
|
"@storybook/theming": "^7.0.6",
|
|
84
|
-
"@szum-tech/prettier-config": "^1.2.
|
|
85
|
-
"@szum-tech/semantic-release-preset": "^1.5.
|
|
86
|
-
"@testing-library/dom": "^9.
|
|
87
|
+
"@szum-tech/prettier-config": "^1.2.1",
|
|
88
|
+
"@szum-tech/semantic-release-preset": "^1.5.1",
|
|
89
|
+
"@testing-library/dom": "^9.3.0",
|
|
87
90
|
"@testing-library/jest-dom": "^5.16.5",
|
|
88
91
|
"@testing-library/react": "^14.0.0",
|
|
89
92
|
"@testing-library/user-event": "^14.4.3",
|
|
90
|
-
"@types/react": "^18.
|
|
91
|
-
"@types/react-dom": "^18.
|
|
93
|
+
"@types/react": "^18.2.6",
|
|
94
|
+
"@types/react-dom": "^18.2.4",
|
|
92
95
|
"@types/semantic-release": "^20.0.1",
|
|
93
96
|
"@vitejs/plugin-react": "^4.0.0",
|
|
94
97
|
"autoprefixer": "^10.4.14",
|
|
95
98
|
"babel-loader": "^9.1.2",
|
|
96
99
|
"concurrently": "^8.0.1",
|
|
97
100
|
"cpy-cli": "^4.2.0",
|
|
101
|
+
"happy-dom": "^9.18.3",
|
|
98
102
|
"postcss": "^8.4.23",
|
|
99
103
|
"prettier": "^2.8.8",
|
|
100
|
-
"prettier-plugin-tailwindcss": "^0.2.
|
|
104
|
+
"prettier-plugin-tailwindcss": "^0.2.8",
|
|
101
105
|
"react": "^18.2.0",
|
|
102
106
|
"react-docgen": "^5.4.3",
|
|
103
107
|
"react-docgen-typescript": "^2.2.2",
|
|
104
108
|
"react-dom": "^18.2.0",
|
|
105
|
-
"semantic-release": "^21.0.
|
|
109
|
+
"semantic-release": "^21.0.2",
|
|
106
110
|
"serve": "^14.2.0",
|
|
107
111
|
"storybook": "^7.0.6",
|
|
108
112
|
"storybook-addon-pseudo-states": "^2.0.1",
|
|
109
113
|
"storybook-addon-themes": "^6.1.0",
|
|
110
|
-
"tailwindcss": "^3.3.
|
|
114
|
+
"tailwindcss": "^3.3.2",
|
|
111
115
|
"tsup": "^6.7.0",
|
|
112
116
|
"typescript": "^5.0.4",
|
|
113
|
-
"vite": "^4.3.1"
|
|
117
|
+
"vite": "^4.3.1",
|
|
118
|
+
"vite-tsconfig-paths": "^4.2.0",
|
|
119
|
+
"vitest": "^0.31.0"
|
|
114
120
|
},
|
|
115
121
|
"peerDependencies": {
|
|
116
122
|
"react": "^18.2.0",
|
|
117
123
|
"react-dom": "^18.2.0",
|
|
118
|
-
"tailwindcss": "^3.3.
|
|
124
|
+
"tailwindcss": "^3.3.2"
|
|
119
125
|
},
|
|
120
126
|
"publishConfig": {
|
|
121
127
|
"access": "public"
|
package/theme/main-preset.js
CHANGED
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;
|
package/chunk-CUMOJXWX.mjs
DELETED
|
@@ -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 };
|
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;
|