@szum-tech/design-system 1.11.0 → 1.11.1
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/{chunk-HYT672IP.mjs → chunk-2UY35M26.mjs} +3 -3
- package/chunk-6UCEUWKV.js +29 -0
- package/{chunk-OD5JALFX.js → chunk-FZN66KOY.js} +22 -2
- package/{chunk-XGJ5ZGBL.js → chunk-GAJMQ72N.js} +2 -2
- package/{chunk-MVUUXVLN.mjs → chunk-PVKPCK2R.mjs} +1 -1
- package/chunk-S5MGYCU6.mjs +7 -0
- package/components/Button/index.js +3 -3
- package/components/Button/index.mjs +2 -2
- package/components/Input/index.js +2 -2
- package/components/Input/index.mjs +1 -1
- package/components/index.js +5 -5
- package/components/index.mjs +3 -3
- package/icons/index.d.ts +1 -1
- package/icons/index.js +27 -7
- package/icons/index.mjs +1 -1
- package/index.js +5 -5
- package/index.mjs +3 -3
- package/package.json +16 -27
- package/theme/global.css +3 -1
- package/theme/main-preset.js +6 -2
- package/chunk-CXSHN55Q.js +0 -29
- package/chunk-U3TRYL6D.mjs +0 -7
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { IconTrash as c, IconCurrencyDollar as d, IconBrandGoogle as e, IconBolt as f } from '@tabler/icons-react';
|
|
1
|
+
export { IconTrash as c, IconCurrencyDollar as d, IconBrandGoogle as e, IconBolt as f, IconMail as g, IconDownload as h, IconBook as i, IconBrandNpm as j, IconBrandGithub as k } from '@tabler/icons-react';
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
|
|
4
|
-
function
|
|
4
|
+
function e(l){return jsxs("svg",{viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...l,children:[jsx("path",{d:"M17.64 9.2c0-.637-.057-1.251-.164-1.84H9v3.481h4.844c-.209 1.125-.843 2.078-1.796 2.717v2.258h2.908c1.702-1.567 2.684-3.874 2.684-6.615z",fillRule:"evenodd",fillOpacity:"1",fill:"#4285f4",stroke:"none"}),jsx("path",{d:"M9.003 18c2.43 0 4.467-.806 5.956-2.18L12.05 13.56c-.806.54-1.836.86-3.047.86-2.344 0-4.328-1.584-5.036-3.711H.96v2.332C2.44 15.983 5.485 18 9.003 18z",fillRule:"evenodd",fillOpacity:"1",fill:"#34a853",stroke:"none"}),jsx("path",{d:"M3.964 10.712c-.18-.54-.282-1.117-.282-1.71 0-.593.102-1.17.282-1.71V4.96H.957C.347 6.175 0 7.55 0 9.002c0 1.452.348 2.827.957 4.042l3.007-2.332z",fillRule:"evenodd",fillOpacity:"1",fill:"#fbbc05",stroke:"none"}),jsx("path",{d:"M9.003 3.58c1.321 0 2.508.454 3.44 1.345l2.582-2.58C13.464.891 11.428 0 9.002 0 5.485 0 2.44 2.017.96 4.958L3.967 7.29c.708-2.127 2.692-3.71 5.036-3.71z",fillRule:"evenodd",fillOpacity:"1",fill:"#ea4335",stroke:"none"})]})}function p(l){return jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",fill:"currentColor",version:"1.1",viewBox:"0 0 26.349 26.35",xmlSpace:"preserve",...l,children:jsx("g",{children:jsxs("g",{children:[jsx("circle",{cx:"13.792",cy:"3.082",r:"3.082"}),jsx("circle",{cx:"13.792",cy:"24.501",r:"1.849"}),jsx("circle",{cx:"6.219",cy:"6.218",r:"2.774"}),jsx("circle",{cx:"21.365",cy:"21.363",r:"1.541"}),jsx("circle",{cx:"3.082",cy:"13.792",r:"2.465"}),jsx("circle",{cx:"24.501",cy:"13.791",r:"1.232"}),jsx("path",{d:"M4.694,19.84c-0.843,0.843-0.843,2.207,0,3.05c0.842,0.843,2.208,0.843,3.05,0c0.843-0.843,0.843-2.207,0-3.05 C6.902,18.996,5.537,18.988,4.694,19.84z"}),jsx("circle",{cx:"21.364",cy:"6.218",r:"0.924"})]})})})}
|
|
5
5
|
|
|
6
|
-
export {
|
|
6
|
+
export { e as a, p as b };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var p = 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 p__namespace = /*#__PURE__*/_interopNamespace(p);
|
|
26
|
+
|
|
27
|
+
var l=classVarianceAuthority.cva(["h-10 w-full appearance-none border bg-white dark:bg-black py-2 font-poppins outline-0 transition-colors duration-300 ease-in-out","placeholder:select-none placeholder:text-gray-200","invalid:border-error-500 focus:border-primary-400 active:border-primary-400","disabled:border-gray-400 disabled:text-gray-200 disabled:placeholder:text-gray-300"],{variants:{invalid:{true:["text-error-500 border-error-500 hover:border-error-400 focus:text-gray-100"],false:["text-gray-100 border-gray-350 hover:border-primary-500"]},withStartIcon:{true:"pl-11",false:"pl-3"},withEndIcon:{true:"pr-11",false:"pr-3"}},defaultVariants:{invalid:!1,withStartIcon:!1,withEndIcon:!1}}),a=classVarianceAuthority.cva(["pointer-events-none absolute bottom-2 top-2 inline-flex w-10 content-center items-center justify-center text-center"],{variants:{disabled:{true:"text-gray-200"},site:{right:"right-0 border-l border-l-gray-400 pr-1",left:"left-0 border-r border-r-gray-400 pl-1"}},defaultVariants:{disabled:!1}});var m=p__namespace.forwardRef(function({invalid:n=!1,startIcon:t,endIcon:e,disabled:r=!1,...s},d){let c=l({withEndIcon:!!e,withStartIcon:!!t,invalid:n}),f=a({site:"left",disabled:r}),u=a({site:"right",disabled:r});return jsxRuntime.jsxs("div",{className:"relative text-gray-100 typography-body-2",children:[t?jsxRuntime.jsx("span",{className:f,children:t}):null,jsxRuntime.jsx("input",{"aria-invalid":n||void 0,disabled:r,className:c,ref:d,...s}),e?jsxRuntime.jsx("span",{"aria-hidden":!0,className:u,children:e}):null]})}),b=m;
|
|
28
|
+
|
|
29
|
+
exports.a = b;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var iconsReact = require('@tabler/icons-react');
|
|
4
4
|
var jsxRuntime = require('react/jsx-runtime');
|
|
5
5
|
|
|
6
|
-
function
|
|
6
|
+
function e(l){return jsxRuntime.jsxs("svg",{viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...l,children:[jsxRuntime.jsx("path",{d:"M17.64 9.2c0-.637-.057-1.251-.164-1.84H9v3.481h4.844c-.209 1.125-.843 2.078-1.796 2.717v2.258h2.908c1.702-1.567 2.684-3.874 2.684-6.615z",fillRule:"evenodd",fillOpacity:"1",fill:"#4285f4",stroke:"none"}),jsxRuntime.jsx("path",{d:"M9.003 18c2.43 0 4.467-.806 5.956-2.18L12.05 13.56c-.806.54-1.836.86-3.047.86-2.344 0-4.328-1.584-5.036-3.711H.96v2.332C2.44 15.983 5.485 18 9.003 18z",fillRule:"evenodd",fillOpacity:"1",fill:"#34a853",stroke:"none"}),jsxRuntime.jsx("path",{d:"M3.964 10.712c-.18-.54-.282-1.117-.282-1.71 0-.593.102-1.17.282-1.71V4.96H.957C.347 6.175 0 7.55 0 9.002c0 1.452.348 2.827.957 4.042l3.007-2.332z",fillRule:"evenodd",fillOpacity:"1",fill:"#fbbc05",stroke:"none"}),jsxRuntime.jsx("path",{d:"M9.003 3.58c1.321 0 2.508.454 3.44 1.345l2.582-2.58C13.464.891 11.428 0 9.002 0 5.485 0 2.44 2.017.96 4.958L3.967 7.29c.708-2.127 2.692-3.71 5.036-3.71z",fillRule:"evenodd",fillOpacity:"1",fill:"#ea4335",stroke:"none"})]})}function p(l){return jsxRuntime.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",fill:"currentColor",version:"1.1",viewBox:"0 0 26.349 26.35",xmlSpace:"preserve",...l,children:jsxRuntime.jsx("g",{children:jsxRuntime.jsxs("g",{children:[jsxRuntime.jsx("circle",{cx:"13.792",cy:"3.082",r:"3.082"}),jsxRuntime.jsx("circle",{cx:"13.792",cy:"24.501",r:"1.849"}),jsxRuntime.jsx("circle",{cx:"6.219",cy:"6.218",r:"2.774"}),jsxRuntime.jsx("circle",{cx:"21.365",cy:"21.363",r:"1.541"}),jsxRuntime.jsx("circle",{cx:"3.082",cy:"13.792",r:"2.465"}),jsxRuntime.jsx("circle",{cx:"24.501",cy:"13.791",r:"1.232"}),jsxRuntime.jsx("path",{d:"M4.694,19.84c-0.843,0.843-0.843,2.207,0,3.05c0.842,0.843,2.208,0.843,3.05,0c0.843-0.843,0.843-2.207,0-3.05 C6.902,18.996,5.537,18.988,4.694,19.84z"}),jsxRuntime.jsx("circle",{cx:"21.364",cy:"6.218",r:"0.924"})]})})})}
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, 'c', {
|
|
9
9
|
enumerable: true,
|
|
@@ -21,5 +21,25 @@ Object.defineProperty(exports, 'f', {
|
|
|
21
21
|
enumerable: true,
|
|
22
22
|
get: function () { return iconsReact.IconBolt; }
|
|
23
23
|
});
|
|
24
|
-
exports
|
|
24
|
+
Object.defineProperty(exports, 'g', {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () { return iconsReact.IconMail; }
|
|
27
|
+
});
|
|
28
|
+
Object.defineProperty(exports, 'h', {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
get: function () { return iconsReact.IconDownload; }
|
|
31
|
+
});
|
|
32
|
+
Object.defineProperty(exports, 'i', {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function () { return iconsReact.IconBook; }
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, 'j', {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () { return iconsReact.IconBrandNpm; }
|
|
39
|
+
});
|
|
40
|
+
Object.defineProperty(exports, 'k', {
|
|
41
|
+
enumerable: true,
|
|
42
|
+
get: function () { return iconsReact.IconBrandGithub; }
|
|
43
|
+
});
|
|
44
|
+
exports.a = e;
|
|
25
45
|
exports.b = p;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkFZN66KOY_js = require('./chunk-FZN66KOY.js');
|
|
4
4
|
var r = require('react');
|
|
5
5
|
var classVarianceAuthority = require('class-variance-authority');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -25,6 +25,6 @@ function _interopNamespace(e) {
|
|
|
25
25
|
|
|
26
26
|
var r__namespace = /*#__PURE__*/_interopNamespace(r);
|
|
27
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] leading-4",md:"px-4 py-1.5 text-sm leading-5",lg:"px-5 py-2 text-[.9375rem] leading-6"},variant:{text:"border-transparent bg-transparent",outlined:"bg-transparent",contained:""}},compoundVariants:[{variant:"text",color:"neutral",class:["text-gray-100","hover:border-gray-100 hover:bg-gray-100 hover:text-black","active:border-gray-200 active:bg-gray-200"]},{variant:"text",color:"primary",class:["text-primary-500","hover:border-primary-500 hover:bg-primary-500 hover:text-white","active:border-primary-600 active:bg-primary-600 active:text-white"]},{variant:"text",color:"success",class:["text-success-500","hover:border-success-500 hover:bg-success-500 hover:text-white","active:border-success-600 active:bg-success-600 active:text-white"]},{variant:"text",color:"warning",class:["text-warning-500","hover:border-warning-500 hover:bg-warning-500 hover:text-white","active:border-warning-600 active:bg-warning-600 active:text-white"]},{variant:"text",color:"error",class:["text-error-500","hover:border-error-500 hover:bg-error-500 hover:text-white","active:border-error-600 active:bg-error-600 active:text-white"]},{variant:"outlined",color:"neutral",class:["text-gray-100 border-gray-100","hover:bg-gray-100 hover:text-black","active:text-gray-600 active:bg-gray-200"]},{variant:"outlined",color:"primary",class:["text-primary-500 border-primary-500","hover:bg-primary-500 hover:text-white","active:text-white active:bg-primary-600"]},{variant:"outlined",color:"success",class:["text-success-500 border-success-500","hover:bg-success-500 hover:text-white","active:text-white active:bg-success-600"]},{variant:"outlined",color:"warning",class:["text-warning-500 border-warning-500","hover:bg-warning-500 hover:text-white","active:text-white active:bg-warning-600"]},{variant:"outlined",color:"error",class:["text-error-500 border-error-500","hover:bg-error-500 hover:text-white","active:text-white active:bg-error-600"]},{variant:"contained",color:"neutral",class:["border-gray-100 bg-gray-100 text-black","hover:border-white hover:bg-white","active:border-gray-200 active:bg-gray-200"]},{variant:"contained",color:"primary",class:["border-primary-500 bg-primary-500 text-white","hover:border-primary-400 hover:bg-primary-400","active:border-primary-600 active:bg-primary-600"]},{variant:"contained",color:"success",class:["border-success-500 bg-success-500 text-white","hover:border-success-400 hover:bg-success-400","active:border-success-600 active:bg-success-600"]},{variant:"contained",color:"warning",class:["border-warning-500 bg-warning-500 text-white","hover:border-warning-400 hover:bg-warning-400","active:border-warning-600 active:bg-warning-600"]},{variant:"contained",color:"error",class:["border-error-500 bg-error-500 text-white","hover:border-error-400 hover:bg-error-400","active:border-error-600 active:bg-error-600"]}],defaultVariants:{block:!1,color:"primary",size:"md",variant:"text"}}),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:"motion-reduce:hidden animate-spin"},size:{sm:"h-4.5 w-4.5",md:"h-5 w-5",lg:"h-5.5 w-5.5"}},defaultVariants:{loading:!1,size:"md"}});var k=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:L,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(
|
|
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] leading-4",md:"px-4 py-1.5 text-sm leading-5",lg:"px-5 py-2 text-[.9375rem] leading-6"},variant:{text:"border-transparent bg-transparent",outlined:"bg-transparent",contained:""}},compoundVariants:[{variant:"text",color:"neutral",class:["text-gray-100","hover:border-gray-100 hover:bg-gray-100 hover:text-black","active:border-gray-200 active:bg-gray-200"]},{variant:"text",color:"primary",class:["text-primary-500","hover:border-primary-500 hover:bg-primary-500 hover:text-white","active:border-primary-600 active:bg-primary-600 active:text-white"]},{variant:"text",color:"success",class:["text-success-500","hover:border-success-500 hover:bg-success-500 hover:text-white","active:border-success-600 active:bg-success-600 active:text-white"]},{variant:"text",color:"warning",class:["text-warning-500","hover:border-warning-500 hover:bg-warning-500 hover:text-white","active:border-warning-600 active:bg-warning-600 active:text-white"]},{variant:"text",color:"error",class:["text-error-500","hover:border-error-500 hover:bg-error-500 hover:text-white","active:border-error-600 active:bg-error-600 active:text-white"]},{variant:"outlined",color:"neutral",class:["text-gray-100 border-gray-100","hover:bg-gray-100 hover:text-black","active:text-gray-600 active:bg-gray-200"]},{variant:"outlined",color:"primary",class:["text-primary-500 border-primary-500","hover:bg-primary-500 hover:text-white","active:text-white active:bg-primary-600"]},{variant:"outlined",color:"success",class:["text-success-500 border-success-500","hover:bg-success-500 hover:text-white","active:text-white active:bg-success-600"]},{variant:"outlined",color:"warning",class:["text-warning-500 border-warning-500","hover:bg-warning-500 hover:text-white","active:text-white active:bg-warning-600"]},{variant:"outlined",color:"error",class:["text-error-500 border-error-500","hover:bg-error-500 hover:text-white","active:text-white active:bg-error-600"]},{variant:"contained",color:"neutral",class:["border-gray-100 bg-gray-100 text-black","hover:border-white hover:bg-white","active:border-gray-200 active:bg-gray-200"]},{variant:"contained",color:"primary",class:["border-primary-500 bg-primary-500 text-white","hover:border-primary-400 hover:bg-primary-400","active:border-primary-600 active:bg-primary-600"]},{variant:"contained",color:"success",class:["border-success-500 bg-success-500 text-white","hover:border-success-400 hover:bg-success-400","active:border-success-600 active:bg-success-600"]},{variant:"contained",color:"warning",class:["border-warning-500 bg-warning-500 text-white","hover:border-warning-400 hover:bg-warning-400","active:border-warning-600 active:bg-warning-600"]},{variant:"contained",color:"error",class:["border-error-500 bg-error-500 text-white","hover:border-error-400 hover:bg-error-400","active:border-error-600 active:bg-error-600"]}],defaultVariants:{block:!1,color:"primary",size:"md",variant:"text"}}),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:"motion-reduce:hidden animate-spin"},size:{sm:"h-4.5 w-4.5",md:"h-5 w-5",lg:"h-5.5 w-5.5"}},defaultVariants:{loading:!1,size:"md"}});var k=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:L,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(chunkFZN66KOY_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(chunkFZN66KOY_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]})}),V=k;
|
|
29
29
|
|
|
30
30
|
exports.a = V;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as p from 'react';
|
|
2
|
+
import { cva } from 'class-variance-authority';
|
|
3
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
var l=cva(["h-10 w-full appearance-none border bg-white dark:bg-black py-2 font-poppins outline-0 transition-colors duration-300 ease-in-out","placeholder:select-none placeholder:text-gray-200","invalid:border-error-500 focus:border-primary-400 active:border-primary-400","disabled:border-gray-400 disabled:text-gray-200 disabled:placeholder:text-gray-300"],{variants:{invalid:{true:["text-error-500 border-error-500 hover:border-error-400 focus:text-gray-100"],false:["text-gray-100 border-gray-350 hover:border-primary-500"]},withStartIcon:{true:"pl-11",false:"pl-3"},withEndIcon:{true:"pr-11",false:"pr-3"}},defaultVariants:{invalid:!1,withStartIcon:!1,withEndIcon:!1}}),a=cva(["pointer-events-none absolute bottom-2 top-2 inline-flex w-10 content-center items-center justify-center text-center"],{variants:{disabled:{true:"text-gray-200"},site:{right:"right-0 border-l border-l-gray-400 pr-1",left:"left-0 border-r border-r-gray-400 pl-1"}},defaultVariants:{disabled:!1}});var m=p.forwardRef(function({invalid:n=!1,startIcon:t,endIcon:e,disabled:r=!1,...s},d){let c=l({withEndIcon:!!e,withStartIcon:!!t,invalid:n}),f=a({site:"left",disabled:r}),u=a({site:"right",disabled:r});return jsxs("div",{className:"relative text-gray-100 typography-body-2",children:[t?jsx("span",{className:f,children:t}):null,jsx("input",{"aria-invalid":n||void 0,disabled:r,className:c,ref:d,...s}),e?jsx("span",{"aria-hidden":!0,className:u,children:e}):null]})}),b=m;
|
|
6
|
+
|
|
7
|
+
export { b as a };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
3
|
+
var chunkGAJMQ72N_js = require('../../chunk-GAJMQ72N.js');
|
|
4
|
+
require('../../chunk-FZN66KOY.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
module.exports =
|
|
8
|
+
module.exports = chunkGAJMQ72N_js.a;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { a as default } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
1
|
+
export { a as default } from '../../chunk-PVKPCK2R.mjs';
|
|
2
|
+
import '../../chunk-2UY35M26.mjs';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { a as default } from '../../chunk-
|
|
1
|
+
export { a as default } from '../../chunk-S5MGYCU6.mjs';
|
package/components/index.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
require('../chunk-RNAYKFZ2.js');
|
|
4
4
|
var chunkM6LWZWJB_js = require('../chunk-M6LWZWJB.js');
|
|
5
|
-
var
|
|
6
|
-
require('../chunk-
|
|
7
|
-
var
|
|
5
|
+
var chunkGAJMQ72N_js = require('../chunk-GAJMQ72N.js');
|
|
6
|
+
require('../chunk-FZN66KOY.js');
|
|
7
|
+
var chunk6UCEUWKV_js = require('../chunk-6UCEUWKV.js');
|
|
8
8
|
var chunkJRSQX3DZ_js = require('../chunk-JRSQX3DZ.js');
|
|
9
9
|
|
|
10
10
|
|
|
@@ -15,11 +15,11 @@ Object.defineProperty(exports, 'Avatar', {
|
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, 'Button', {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkGAJMQ72N_js.a; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, 'Input', {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunk6UCEUWKV_js.a; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, 'Tooltip', {
|
|
25
25
|
enumerable: true,
|
package/components/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../chunk-BGWTSJD7.mjs';
|
|
2
2
|
export { a as Avatar } from '../chunk-MM2WP564.mjs';
|
|
3
|
-
export { a as Button } from '../chunk-
|
|
4
|
-
import '../chunk-
|
|
5
|
-
export { a as Input } from '../chunk-
|
|
3
|
+
export { a as Button } from '../chunk-PVKPCK2R.mjs';
|
|
4
|
+
import '../chunk-2UY35M26.mjs';
|
|
5
|
+
export { a as Input } from '../chunk-S5MGYCU6.mjs';
|
|
6
6
|
export { a as Tooltip, b as TooltipProvider } from '../chunk-2FD4IU55.mjs';
|
package/icons/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { IconBolt, IconBrandGoogle, IconCurrencyDollar, IconTrash } from '@tabler/icons-react';
|
|
1
|
+
export { IconBolt, IconBook, IconBrandGithub, IconBrandGoogle, IconBrandNpm, IconCurrencyDollar, IconDownload, IconMail, IconTrash } from '@tabler/icons-react';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
|
package/icons/index.js
CHANGED
|
@@ -1,30 +1,50 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkFZN66KOY_js = require('../chunk-FZN66KOY.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 chunkFZN66KOY_js.a; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, 'IconBolt', {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkFZN66KOY_js.f; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, 'IconBook', {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunkFZN66KOY_js.i; }
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, 'IconBrandGithub', {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () { return chunkFZN66KOY_js.k; }
|
|
14
22
|
});
|
|
15
23
|
Object.defineProperty(exports, 'IconBrandGoogle', {
|
|
16
24
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkFZN66KOY_js.e; }
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(exports, 'IconBrandNpm', {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () { return chunkFZN66KOY_js.j; }
|
|
18
30
|
});
|
|
19
31
|
Object.defineProperty(exports, 'IconCurrencyDollar', {
|
|
20
32
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkFZN66KOY_js.d; }
|
|
34
|
+
});
|
|
35
|
+
Object.defineProperty(exports, 'IconDownload', {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
get: function () { return chunkFZN66KOY_js.h; }
|
|
38
|
+
});
|
|
39
|
+
Object.defineProperty(exports, 'IconMail', {
|
|
40
|
+
enumerable: true,
|
|
41
|
+
get: function () { return chunkFZN66KOY_js.g; }
|
|
22
42
|
});
|
|
23
43
|
Object.defineProperty(exports, 'IconTrash', {
|
|
24
44
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkFZN66KOY_js.c; }
|
|
26
46
|
});
|
|
27
47
|
Object.defineProperty(exports, 'LoadingIcon', {
|
|
28
48
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkFZN66KOY_js.b; }
|
|
30
50
|
});
|
package/icons/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { a as GoogleIcon, f as IconBolt, e as IconBrandGoogle, d as IconCurrencyDollar, c as IconTrash, b as LoadingIcon } from '../chunk-
|
|
1
|
+
export { a as GoogleIcon, f as IconBolt, i as IconBook, k as IconBrandGithub, e as IconBrandGoogle, j as IconBrandNpm, d as IconCurrencyDollar, h as IconDownload, g as IconMail, c as IconTrash, b as LoadingIcon } from '../chunk-2UY35M26.mjs';
|
package/index.js
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
require('./chunk-7M2UD3MX.js');
|
|
4
4
|
require('./chunk-RNAYKFZ2.js');
|
|
5
5
|
var chunkM6LWZWJB_js = require('./chunk-M6LWZWJB.js');
|
|
6
|
-
var
|
|
7
|
-
require('./chunk-
|
|
8
|
-
var
|
|
6
|
+
var chunkGAJMQ72N_js = require('./chunk-GAJMQ72N.js');
|
|
7
|
+
require('./chunk-FZN66KOY.js');
|
|
8
|
+
var chunk6UCEUWKV_js = require('./chunk-6UCEUWKV.js');
|
|
9
9
|
var chunkJRSQX3DZ_js = require('./chunk-JRSQX3DZ.js');
|
|
10
10
|
var chunkUJM6RAIA_js = require('./chunk-UJM6RAIA.js');
|
|
11
11
|
require('./chunk-JQ4UTWMH.js');
|
|
@@ -19,11 +19,11 @@ Object.defineProperty(exports, 'Avatar', {
|
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, 'Button', {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkGAJMQ72N_js.a; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, 'Input', {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunk6UCEUWKV_js.a; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, 'Tooltip', {
|
|
29
29
|
enumerable: true,
|
package/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import './chunk-TAA4AMBN.mjs';
|
|
2
2
|
import './chunk-BGWTSJD7.mjs';
|
|
3
3
|
export { a as Avatar } from './chunk-MM2WP564.mjs';
|
|
4
|
-
export { a as Button } from './chunk-
|
|
5
|
-
import './chunk-
|
|
6
|
-
export { a as Input } from './chunk-
|
|
4
|
+
export { a as Button } from './chunk-PVKPCK2R.mjs';
|
|
5
|
+
import './chunk-2UY35M26.mjs';
|
|
6
|
+
export { a as Input } from './chunk-S5MGYCU6.mjs';
|
|
7
7
|
export { a as Tooltip, b as TooltipProvider } from './chunk-2FD4IU55.mjs';
|
|
8
8
|
export { a as useTheme } from './chunk-CRJI67D5.mjs';
|
|
9
9
|
import './chunk-WPEQQQCR.mjs';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@szum-tech/design-system",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.1",
|
|
4
4
|
"description": "Szum-Tech design system with tailwindcss support",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"szum-tech",
|
|
@@ -51,9 +51,8 @@
|
|
|
51
51
|
"prettier:check": "prettier --check .",
|
|
52
52
|
"prettier:write": "prettier --write .",
|
|
53
53
|
"semantic-release": "semantic-release",
|
|
54
|
-
"storybook": "storybook dev -p 6006
|
|
54
|
+
"storybook": "storybook dev -p 6006",
|
|
55
55
|
"storybook:build": "storybook build --docs",
|
|
56
|
-
"storybook:prebuild": "tailwindcss -i src/theme/global.css -o src/styles/default.css",
|
|
57
56
|
"storybook:serve": "serve storybook-static",
|
|
58
57
|
"test": "vitest",
|
|
59
58
|
"test:coverage": "vitest run --coverage",
|
|
@@ -61,37 +60,27 @@
|
|
|
61
60
|
"type-check": "tsc --noEmit"
|
|
62
61
|
},
|
|
63
62
|
"dependencies": {
|
|
64
|
-
"@radix-ui/react-tooltip": "^1.0.
|
|
65
|
-
"@tabler/icons-react": "^2.
|
|
63
|
+
"@radix-ui/react-tooltip": "^1.0.6",
|
|
64
|
+
"@tabler/icons-react": "^2.20.0",
|
|
66
65
|
"@tailwindcss/container-queries": "^0.1.0",
|
|
67
66
|
"class-variance-authority": "^0.6.0",
|
|
68
|
-
"tailwind-scrollbar": "^3.0.
|
|
67
|
+
"tailwind-scrollbar": "^3.0.4"
|
|
69
68
|
},
|
|
70
69
|
"devDependencies": {
|
|
71
|
-
"@babel/core": "^7.
|
|
72
|
-
"@storybook/addon-a11y": "^7.0.
|
|
73
|
-
"@storybook/addon-
|
|
74
|
-
"@storybook/addon-
|
|
75
|
-
"@storybook/addon-
|
|
76
|
-
"@storybook/
|
|
77
|
-
"@storybook/
|
|
78
|
-
"@storybook/addon-mdx-gfm": "^7.0.6",
|
|
79
|
-
"@storybook/addons": "^7.0.6",
|
|
80
|
-
"@storybook/components": "^7.0.6",
|
|
81
|
-
"@storybook/core-common": "^7.0.6",
|
|
82
|
-
"@storybook/core-events": "^7.0.6",
|
|
83
|
-
"@storybook/manager-api": "^7.0.6",
|
|
84
|
-
"@storybook/preview-api": "^7.0.6",
|
|
85
|
-
"@storybook/react": "^7.0.6",
|
|
86
|
-
"@storybook/react-vite": "^7.0.6",
|
|
87
|
-
"@storybook/theming": "^7.0.6",
|
|
70
|
+
"@babel/core": "^7.22.1",
|
|
71
|
+
"@storybook/addon-a11y": "^7.0.18",
|
|
72
|
+
"@storybook/addon-essentials": "^7.0.18",
|
|
73
|
+
"@storybook/addon-interactions": "^7.0.18",
|
|
74
|
+
"@storybook/addon-styling": "^1.0.8",
|
|
75
|
+
"@storybook/react": "^7.0.18",
|
|
76
|
+
"@storybook/react-vite": "^7.0.18",
|
|
88
77
|
"@szum-tech/prettier-config": "^1.2.1",
|
|
89
78
|
"@szum-tech/semantic-release-preset": "^1.5.1",
|
|
90
79
|
"@testing-library/dom": "^9.3.0",
|
|
91
80
|
"@testing-library/jest-dom": "^5.16.5",
|
|
92
81
|
"@testing-library/react": "^14.0.0",
|
|
93
82
|
"@testing-library/user-event": "^14.4.3",
|
|
94
|
-
"@types/react": "^18.2.
|
|
83
|
+
"@types/react": "^18.2.7",
|
|
95
84
|
"@types/react-dom": "^18.2.4",
|
|
96
85
|
"@types/semantic-release": "^20.0.1",
|
|
97
86
|
"@vitejs/plugin-react": "^4.0.0",
|
|
@@ -109,13 +98,13 @@
|
|
|
109
98
|
"react-dom": "^18.2.0",
|
|
110
99
|
"semantic-release": "^21.0.2",
|
|
111
100
|
"serve": "^14.2.0",
|
|
112
|
-
"storybook": "^7.0.
|
|
101
|
+
"storybook": "^7.0.18",
|
|
113
102
|
"storybook-addon-pseudo-states": "^2.0.1",
|
|
114
|
-
"storybook-
|
|
103
|
+
"storybook-dark-mode": "^3.0.0",
|
|
115
104
|
"tailwindcss": "^3.3.2",
|
|
116
105
|
"tsup": "^6.7.0",
|
|
117
106
|
"typescript": "^5.0.4",
|
|
118
|
-
"vite": "^4.3.
|
|
107
|
+
"vite": "^4.3.9",
|
|
119
108
|
"vite-tsconfig-paths": "^4.2.0",
|
|
120
109
|
"vitest": "^0.31.0"
|
|
121
110
|
},
|
package/theme/global.css
CHANGED
|
@@ -61,6 +61,7 @@
|
|
|
61
61
|
--gray-100: 28 28 28; /* #1C1C1C */
|
|
62
62
|
--gray-200: 88 87 87; /* #585757 */
|
|
63
63
|
--gray-300: 150 150 150; /* #969696 */
|
|
64
|
+
--gray-350: 193 193 193; /* #C1C1C1 */
|
|
64
65
|
--gray-400: 235 235 235; /* #EBEBEB */
|
|
65
66
|
|
|
66
67
|
--background-primary: 255 255 255; /* #ffffff */
|
|
@@ -123,6 +124,7 @@
|
|
|
123
124
|
--gray-100: 234 234 234; /* #eaeaea */
|
|
124
125
|
--gray-200: 192 192 192; /* #c0c0c0 */
|
|
125
126
|
--gray-300: 123 123 123; /* #7b7b7b */
|
|
127
|
+
--gray-350: 85 85 85; /* #555555 */
|
|
126
128
|
--gray-400: 46 46 46; /* #2e2e2e */
|
|
127
129
|
|
|
128
130
|
--background-primary: 17 17 17; /* #111111 */
|
|
@@ -134,6 +136,6 @@
|
|
|
134
136
|
}
|
|
135
137
|
|
|
136
138
|
body {
|
|
137
|
-
@apply font-poppins text-gray-100 antialiased scroll;
|
|
139
|
+
@apply bg-app-secondary font-poppins text-gray-100 antialiased scroll;
|
|
138
140
|
}
|
|
139
141
|
}
|
package/theme/main-preset.js
CHANGED
|
@@ -11,6 +11,10 @@ var require_colors = __commonJS({
|
|
|
11
11
|
module2.exports = {
|
|
12
12
|
theme: {
|
|
13
13
|
colors: {
|
|
14
|
+
app: {
|
|
15
|
+
primary: "rgb(var(--background-primary))",
|
|
16
|
+
secondary: "rgb(var(--background-secondary))"
|
|
17
|
+
},
|
|
14
18
|
black: "rgb(var(--black) / <alpha-value>)",
|
|
15
19
|
error: {
|
|
16
20
|
100: "rgb(var(--error-100) / <alpha-value>)",
|
|
@@ -27,6 +31,7 @@ var require_colors = __commonJS({
|
|
|
27
31
|
100: "rgb(var(--gray-100) / <alpha-value>)",
|
|
28
32
|
200: "rgb(var(--gray-200) / <alpha-value>)",
|
|
29
33
|
300: "rgb(var(--gray-300) / <alpha-value>)",
|
|
34
|
+
350: "rgb(var(--gray-350) / <alpha-value>)",
|
|
30
35
|
400: "rgb(var(--gray-400) / <alpha-value>)"
|
|
31
36
|
},
|
|
32
37
|
primary: {
|
|
@@ -86,8 +91,7 @@ var require_scroll = __commonJS({
|
|
|
86
91
|
module2.exports = plugin(function({ addUtilities }) {
|
|
87
92
|
addUtilities({
|
|
88
93
|
".scroll": {
|
|
89
|
-
|
|
90
|
-
// {}
|
|
94
|
+
"@apply scrollbar scrollbar-thin scrollbar-track-app-secondary scrollbar-thumb-gray-400 hover:scrollbar-thumb-gray-350": {}
|
|
91
95
|
}
|
|
92
96
|
});
|
|
93
97
|
});
|
package/chunk-CXSHN55Q.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var s = 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 s__namespace = /*#__PURE__*/_interopNamespace(s);
|
|
26
|
-
|
|
27
|
-
var l=classVarianceAuthority.cva(["h-10 w-full appearance-none border bg-white dark:bg-black py-2 font-poppins outline-0 transition-colors duration-300 ease-in-out","placeholder:select-none placeholder:text-gray-200","invalid:border-error-500 focus:border-primary-400 active:border-primary-400","disabled:border-white dark:disabled:border-black disabled:text-gray-200 disabled:placeholder:text-gray-300"],{variants:{invalid:{true:["text-error-500 border-error-500 hover:border-error-400 focus:text-gray-100"],false:["text-gray-100 border-gray-400 hover:border-primary-500"]},withStartIcon:{true:"pl-11",false:"pl-3"},withEndIcon:{true:"pr-11",false:"pr-3"}},defaultVariants:{invalid:!1,withStartIcon:!1,withEndIcon:!1}}),a=classVarianceAuthority.cva(["pointer-events-none absolute bottom-2 top-2 inline-flex w-10 content-center items-center justify-center text-center"],{variants:{disabled:{true:"text-gray-200"},site:{right:"right-0 border-l border-l-gray-400 pr-1",left:"left-0 border-r border-r-gray-400 pl-1"}},defaultVariants:{disabled:!1}});var b=s__namespace.forwardRef(function({invalid:n=!1,startIcon:e,endIcon:t,disabled:r=!1,...p},d){let c=l({withEndIcon:!!t,withStartIcon:!!e,invalid:n}),f=a({site:"left",disabled:r}),u=a({site:"right",disabled:r});return jsxRuntime.jsxs("div",{className:"relative text-gray-100 typography-body-2",children:[e?jsxRuntime.jsx("span",{className:f,children:e}):null,jsxRuntime.jsx("input",{"aria-invalid":n||void 0,disabled:r,className:c,ref:d,...p}),t?jsxRuntime.jsx("span",{"aria-hidden":!0,className:u,children:t}):null]})}),m=b;
|
|
28
|
-
|
|
29
|
-
exports.a = m;
|
package/chunk-U3TRYL6D.mjs
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as s from 'react';
|
|
2
|
-
import { cva } from 'class-variance-authority';
|
|
3
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
|
-
|
|
5
|
-
var l=cva(["h-10 w-full appearance-none border bg-white dark:bg-black py-2 font-poppins outline-0 transition-colors duration-300 ease-in-out","placeholder:select-none placeholder:text-gray-200","invalid:border-error-500 focus:border-primary-400 active:border-primary-400","disabled:border-white dark:disabled:border-black disabled:text-gray-200 disabled:placeholder:text-gray-300"],{variants:{invalid:{true:["text-error-500 border-error-500 hover:border-error-400 focus:text-gray-100"],false:["text-gray-100 border-gray-400 hover:border-primary-500"]},withStartIcon:{true:"pl-11",false:"pl-3"},withEndIcon:{true:"pr-11",false:"pr-3"}},defaultVariants:{invalid:!1,withStartIcon:!1,withEndIcon:!1}}),a=cva(["pointer-events-none absolute bottom-2 top-2 inline-flex w-10 content-center items-center justify-center text-center"],{variants:{disabled:{true:"text-gray-200"},site:{right:"right-0 border-l border-l-gray-400 pr-1",left:"left-0 border-r border-r-gray-400 pl-1"}},defaultVariants:{disabled:!1}});var b=s.forwardRef(function({invalid:n=!1,startIcon:e,endIcon:t,disabled:r=!1,...p},d){let c=l({withEndIcon:!!t,withStartIcon:!!e,invalid:n}),f=a({site:"left",disabled:r}),u=a({site:"right",disabled:r});return jsxs("div",{className:"relative text-gray-100 typography-body-2",children:[e?jsx("span",{className:f,children:e}):null,jsx("input",{"aria-invalid":n||void 0,disabled:r,className:c,ref:d,...p}),t?jsx("span",{"aria-hidden":!0,className:u,children:t}):null]})}),m=b;
|
|
6
|
-
|
|
7
|
-
export { m as a };
|