@szum-tech/design-system 1.11.2 → 1.12.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-d6a17567.d.ts → Avatar-c6a2f50d.d.ts} +1 -1
- package/{Button-d3c2777e.d.ts → Button-ae5be036.d.ts} +1 -1
- package/Input-41362e55.d.ts +12 -0
- package/Textarea-7d32840f.d.ts +10 -0
- package/{Tooltip.provider-90345769.d.ts → Tooltip.provider-6de64d8b.d.ts} +1 -1
- package/{chunk-M6LWZWJB.js → chunk-3PIF22YM.js} +3 -2
- package/chunk-ACJI7SSR.mjs +7 -0
- package/chunk-BEZVY5QD.mjs +7 -0
- package/chunk-CBGYIR3X.mjs +36 -0
- package/chunk-D2YRORSD.mjs +3 -0
- package/chunk-DKDLYQOD.js +7 -0
- package/chunk-FA4FHRKJ.js +13 -0
- package/{chunk-MM2WP564.mjs → chunk-GETS73RC.mjs} +3 -2
- package/chunk-HDAV3F3Q.js +52 -0
- package/chunk-IGEGU67W.mjs +7 -0
- package/chunk-IN4WKCCQ.js +29 -0
- package/{chunk-2FD4IU55.mjs → chunk-KEPEPMEM.mjs} +3 -2
- package/{chunk-VJH5FTSI.mjs → chunk-LBRQSDEO.mjs} +3 -3
- package/{chunk-SW65ATAP.js → chunk-MGX5N7ZU.js} +3 -3
- package/chunk-PJRIZNPB.mjs +7 -0
- package/{chunk-JRSQX3DZ.js → chunk-V3HUNIZN.js} +4 -3
- package/chunk-YEKURALR.js +29 -0
- package/chunk-ZHWHVYOY.js +14 -0
- package/components/{Avatar → avatar}/index.d.ts +1 -1
- package/components/avatar/index.js +11 -0
- package/components/avatar/index.mjs +2 -0
- package/components/button/index.d.ts +5 -0
- package/components/button/index.js +12 -0
- package/components/button/index.mjs +3 -0
- package/components/index.d.ts +5 -4
- package/components/index.js +17 -11
- package/components/index.mjs +8 -6
- package/components/input/index.d.ts +3 -0
- package/components/input/index.js +11 -0
- package/components/input/index.mjs +2 -0
- package/components/textarea/index.d.ts +3 -0
- package/components/textarea/index.js +11 -0
- package/components/textarea/index.mjs +2 -0
- package/components/tooltip/index.d.ts +4 -0
- package/components/tooltip/index.js +15 -0
- package/components/tooltip/index.mjs +2 -0
- package/contexts/index.js +4 -3
- package/contexts/index.mjs +2 -1
- package/contexts/theme/index.js +4 -3
- package/contexts/theme/index.mjs +2 -1
- package/hooks/index.js +4 -3
- package/hooks/index.mjs +3 -2
- package/hooks/useTheme/index.js +4 -3
- package/hooks/useTheme/index.mjs +3 -2
- package/icons/index.d.ts +3 -5
- package/icons/index.js +26 -13
- package/icons/index.mjs +2 -1
- package/index.d.ts +5 -4
- package/index.js +25 -19
- package/index.mjs +10 -8
- package/package.json +8 -7
- package/theme/main-preset.js +3 -0
- package/Input.component-887e7975.d.ts +0 -12
- package/chunk-2OZE575J.js +0 -49
- package/chunk-5SE7P5YG.mjs +0 -6
- package/chunk-6UCEUWKV.js +0 -29
- package/chunk-CRJI67D5.mjs +0 -6
- package/chunk-OACRI5I5.mjs +0 -6
- package/chunk-S5MGYCU6.mjs +0 -7
- package/chunk-UJM6RAIA.js +0 -12
- package/chunk-X2QIG2W5.js +0 -13
- package/components/Avatar/index.js +0 -7
- package/components/Avatar/index.mjs +0 -1
- package/components/Button/index.d.ts +0 -5
- package/components/Button/index.js +0 -8
- package/components/Button/index.mjs +0 -2
- package/components/Input/index.d.ts +0 -3
- package/components/Input/index.js +0 -7
- package/components/Input/index.mjs +0 -1
- package/components/Tooltip/index.d.ts +0 -4
- package/components/Tooltip/index.js +0 -16
- package/components/Tooltip/index.mjs +0 -1
- /package/{chunk-BGWTSJD7.mjs → chunk-76WB4BRP.mjs} +0 -0
- /package/{chunk-RNAYKFZ2.js → chunk-PJ2GPHOZ.js} +0 -0
package/chunk-6UCEUWKV.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
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;
|
package/chunk-CRJI67D5.mjs
DELETED
package/chunk-OACRI5I5.mjs
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
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, IconRocket as l } from '@tabler/icons-react';
|
|
2
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
-
|
|
4
|
-
function n(l){return jsxs("svg",{viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...l,children:[jsx("path",{d:"M17.64 9.2c0-.637-.057-1.251-.164-1.84H9v3.481h4.844c-.209 1.125-.843 2.078-1.796 2.717v2.258h2.908c1.702-1.567 2.684-3.874 2.684-6.615z",fillRule:"evenodd",fillOpacity:"1",fill:"#4285f4",stroke:"none"}),jsx("path",{d:"M9.003 18c2.43 0 4.467-.806 5.956-2.18L12.05 13.56c-.806.54-1.836.86-3.047.86-2.344 0-4.328-1.584-5.036-3.711H.96v2.332C2.44 15.983 5.485 18 9.003 18z",fillRule:"evenodd",fillOpacity:"1",fill:"#34a853",stroke:"none"}),jsx("path",{d:"M3.964 10.712c-.18-.54-.282-1.117-.282-1.71 0-.593.102-1.17.282-1.71V4.96H.957C.347 6.175 0 7.55 0 9.002c0 1.452.348 2.827.957 4.042l3.007-2.332z",fillRule:"evenodd",fillOpacity:"1",fill:"#fbbc05",stroke:"none"}),jsx("path",{d:"M9.003 3.58c1.321 0 2.508.454 3.44 1.345l2.582-2.58C13.464.891 11.428 0 9.002 0 5.485 0 2.44 2.017.96 4.958L3.967 7.29c.708-2.127 2.692-3.71 5.036-3.71z",fillRule:"evenodd",fillOpacity:"1",fill:"#ea4335",stroke:"none"})]})}function p(l){return jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",fill:"currentColor",version:"1.1",viewBox:"0 0 26.349 26.35",xmlSpace:"preserve",...l,children:jsx("g",{children:jsxs("g",{children:[jsx("circle",{cx:"13.792",cy:"3.082",r:"3.082"}),jsx("circle",{cx:"13.792",cy:"24.501",r:"1.849"}),jsx("circle",{cx:"6.219",cy:"6.218",r:"2.774"}),jsx("circle",{cx:"21.365",cy:"21.363",r:"1.541"}),jsx("circle",{cx:"3.082",cy:"13.792",r:"2.465"}),jsx("circle",{cx:"24.501",cy:"13.791",r:"1.232"}),jsx("path",{d:"M4.694,19.84c-0.843,0.843-0.843,2.207,0,3.05c0.842,0.843,2.208,0.843,3.05,0c0.843-0.843,0.843-2.207,0-3.05 C6.902,18.996,5.537,18.988,4.694,19.84z"}),jsx("circle",{cx:"21.364",cy:"6.218",r:"0.924"})]})})})}
|
|
5
|
-
|
|
6
|
-
export { n as a, p as b };
|
package/chunk-S5MGYCU6.mjs
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
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 };
|
package/chunk-UJM6RAIA.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkX2QIG2W5_js = require('./chunk-X2QIG2W5.js');
|
|
4
|
-
var t = require('react');
|
|
5
|
-
|
|
6
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
7
|
-
|
|
8
|
-
var t__default = /*#__PURE__*/_interopDefault(t);
|
|
9
|
-
|
|
10
|
-
var r=()=>t__default.default.useContext(chunkX2QIG2W5_js.a);
|
|
11
|
-
|
|
12
|
-
exports.a = r;
|
package/chunk-X2QIG2W5.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var a = require('react');
|
|
4
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
-
|
|
6
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
7
|
-
|
|
8
|
-
var a__default = /*#__PURE__*/_interopDefault(a);
|
|
9
|
-
|
|
10
|
-
var n=a__default.default.createContext({});function T(t){if(typeof window<"u"&&window.localStorage){let e=window.localStorage.getItem("theme");if(e==="dark"||!e&&window.matchMedia("(prefers-color-scheme: dark)").matches)return "dark"}return t??"light"}function u({children:t,defaultTheme:e,theme:r}){let[o,i]=a__default.default.useState(r||T(e));function d(m){typeof window<"u"&&window.localStorage&&(m==="dark"?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),localStorage.setItem("theme",m));}return a__default.default.useEffect(()=>{d(o);},[o]),jsxRuntime.jsx(n.Provider,{value:{theme:o,setTheme:i},children:t})}
|
|
11
|
-
|
|
12
|
-
exports.a = n;
|
|
13
|
-
exports.b = u;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { a as default } from '../../chunk-MM2WP564.mjs';
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { d as ButtonColorType, a as ButtonProps, b as ButtonSizeType, c as ButtonVariantType, B as default } from '../../Button-d3c2777e.js';
|
|
2
|
-
import '../../utils.types-3df7903f.js';
|
|
3
|
-
import 'react';
|
|
4
|
-
import 'class-variance-authority';
|
|
5
|
-
import 'class-variance-authority/dist/types';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { a as default } from '../../chunk-S5MGYCU6.mjs';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var chunkJRSQX3DZ_js = require('../../chunk-JRSQX3DZ.js');
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
Object.defineProperty(exports, 'TooltipProvider', {
|
|
10
|
-
enumerable: true,
|
|
11
|
-
get: function () { return chunkJRSQX3DZ_js.b; }
|
|
12
|
-
});
|
|
13
|
-
Object.defineProperty(exports, 'default', {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function () { return chunkJRSQX3DZ_js.a; }
|
|
16
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { b as TooltipProvider, a as default } from '../../chunk-2FD4IU55.mjs';
|
|
File without changes
|
|
File without changes
|