@szum-tech/design-system 1.12.2 → 1.13.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.
Files changed (73) hide show
  1. package/dist/index.d.ts +172 -0
  2. package/dist/index.js +44 -0
  3. package/dist/index.mjs +11 -0
  4. package/icons/index.d.ts +1 -1
  5. package/icons/index.js +29 -27
  6. package/icons/index.mjs +6 -2
  7. package/package.json +7 -12
  8. package/Avatar-c6a2f50d.d.ts +0 -37
  9. package/Button-ae5be036.d.ts +0 -63
  10. package/Input-41362e55.d.ts +0 -12
  11. package/Textarea-7d32840f.d.ts +0 -10
  12. package/ThemeProvider-cd78c94b.d.ts +0 -23
  13. package/Tooltip.provider-6de64d8b.d.ts +0 -20
  14. package/chunk-3PIF22YM.js +0 -9
  15. package/chunk-76WB4BRP.mjs +0 -1
  16. package/chunk-7M2UD3MX.js +0 -2
  17. package/chunk-ACJI7SSR.mjs +0 -7
  18. package/chunk-BEZVY5QD.mjs +0 -7
  19. package/chunk-BYGQEMVJ.js +0 -30
  20. package/chunk-D2YRORSD.mjs +0 -3
  21. package/chunk-DKDLYQOD.js +0 -7
  22. package/chunk-FA4FHRKJ.js +0 -13
  23. package/chunk-GETS73RC.mjs +0 -7
  24. package/chunk-IGEGU67W.mjs +0 -7
  25. package/chunk-IN4WKCCQ.js +0 -29
  26. package/chunk-IZJ75JZB.js +0 -55
  27. package/chunk-IZQ36CWU.mjs +0 -36
  28. package/chunk-JQ4UTWMH.js +0 -2
  29. package/chunk-KEPEPMEM.mjs +0 -7
  30. package/chunk-LXYPZK73.mjs +0 -8
  31. package/chunk-PJ2GPHOZ.js +0 -2
  32. package/chunk-PJRIZNPB.mjs +0 -7
  33. package/chunk-TAA4AMBN.mjs +0 -1
  34. package/chunk-V3HUNIZN.js +0 -30
  35. package/chunk-WPEQQQCR.mjs +0 -1
  36. package/chunk-YEKURALR.js +0 -29
  37. package/chunk-ZHWHVYOY.js +0 -14
  38. package/components/avatar/index.d.ts +0 -5
  39. package/components/avatar/index.js +0 -11
  40. package/components/avatar/index.mjs +0 -2
  41. package/components/button/index.d.ts +0 -5
  42. package/components/button/index.js +0 -12
  43. package/components/button/index.mjs +0 -3
  44. package/components/index.d.ts +0 -11
  45. package/components/index.js +0 -37
  46. package/components/index.mjs +0 -8
  47. package/components/input/index.d.ts +0 -3
  48. package/components/input/index.js +0 -11
  49. package/components/input/index.mjs +0 -2
  50. package/components/textarea/index.d.ts +0 -3
  51. package/components/textarea/index.js +0 -11
  52. package/components/textarea/index.mjs +0 -2
  53. package/components/tooltip/index.d.ts +0 -4
  54. package/components/tooltip/index.js +0 -15
  55. package/components/tooltip/index.mjs +0 -2
  56. package/contexts/index.d.ts +0 -4
  57. package/contexts/index.js +0 -16
  58. package/contexts/index.mjs +0 -3
  59. package/contexts/theme/index.d.ts +0 -4
  60. package/contexts/theme/index.js +0 -15
  61. package/contexts/theme/index.mjs +0 -2
  62. package/hooks/index.d.ts +0 -3
  63. package/hooks/index.js +0 -14
  64. package/hooks/index.mjs +0 -5
  65. package/hooks/useTheme/index.d.ts +0 -3
  66. package/hooks/useTheme/index.js +0 -13
  67. package/hooks/useTheme/index.mjs +0 -4
  68. package/index.d.ts +0 -14
  69. package/index.js +0 -53
  70. package/index.mjs +0 -12
  71. package/theme.types-a32f0702.d.ts +0 -9
  72. package/useTheme-01c9253b.d.ts +0 -5
  73. package/utils.types-3df7903f.d.ts +0 -13
@@ -1,37 +0,0 @@
1
- 'use strict';
2
-
3
- require('../chunk-PJ2GPHOZ.js');
4
- var chunk3PIF22YM_js = require('../chunk-3PIF22YM.js');
5
- var chunkBYGQEMVJ_js = require('../chunk-BYGQEMVJ.js');
6
- require('../chunk-IZJ75JZB.js');
7
- var chunkYEKURALR_js = require('../chunk-YEKURALR.js');
8
- var chunkIN4WKCCQ_js = require('../chunk-IN4WKCCQ.js');
9
- var chunkV3HUNIZN_js = require('../chunk-V3HUNIZN.js');
10
- require('../chunk-DKDLYQOD.js');
11
-
12
-
13
-
14
- Object.defineProperty(exports, 'Avatar', {
15
- enumerable: true,
16
- get: function () { return chunk3PIF22YM_js.a; }
17
- });
18
- Object.defineProperty(exports, 'Button', {
19
- enumerable: true,
20
- get: function () { return chunkBYGQEMVJ_js.a; }
21
- });
22
- Object.defineProperty(exports, 'Input', {
23
- enumerable: true,
24
- get: function () { return chunkYEKURALR_js.a; }
25
- });
26
- Object.defineProperty(exports, 'Textarea', {
27
- enumerable: true,
28
- get: function () { return chunkIN4WKCCQ_js.a; }
29
- });
30
- Object.defineProperty(exports, 'Tooltip', {
31
- enumerable: true,
32
- get: function () { return chunkV3HUNIZN_js.a; }
33
- });
34
- Object.defineProperty(exports, 'TooltipProvider', {
35
- enumerable: true,
36
- get: function () { return chunkV3HUNIZN_js.b; }
37
- });
@@ -1,8 +0,0 @@
1
- import '../chunk-76WB4BRP.mjs';
2
- export { a as Avatar } from '../chunk-GETS73RC.mjs';
3
- export { a as Button } from '../chunk-LXYPZK73.mjs';
4
- import '../chunk-IZQ36CWU.mjs';
5
- export { a as Input } from '../chunk-PJRIZNPB.mjs';
6
- export { a as Textarea } from '../chunk-ACJI7SSR.mjs';
7
- export { a as Tooltip, b as TooltipProvider } from '../chunk-KEPEPMEM.mjs';
8
- import '../chunk-D2YRORSD.mjs';
@@ -1,3 +0,0 @@
1
- export { a as Input, I as InputProps } from '../../Input-41362e55.js';
2
- import 'react';
3
- import '../../utils.types-3df7903f.js';
@@ -1,11 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkYEKURALR_js = require('../../chunk-YEKURALR.js');
4
- require('../../chunk-DKDLYQOD.js');
5
-
6
-
7
-
8
- Object.defineProperty(exports, 'Input', {
9
- enumerable: true,
10
- get: function () { return chunkYEKURALR_js.a; }
11
- });
@@ -1,2 +0,0 @@
1
- export { a as Input } from '../../chunk-PJRIZNPB.mjs';
2
- import '../../chunk-D2YRORSD.mjs';
@@ -1,3 +0,0 @@
1
- export { a as Textarea, T as TextareaProps } from '../../Textarea-7d32840f.js';
2
- import 'react';
3
- import '../../utils.types-3df7903f.js';
@@ -1,11 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkIN4WKCCQ_js = require('../../chunk-IN4WKCCQ.js');
4
- require('../../chunk-DKDLYQOD.js');
5
-
6
-
7
-
8
- Object.defineProperty(exports, 'Textarea', {
9
- enumerable: true,
10
- get: function () { return chunkIN4WKCCQ_js.a; }
11
- });
@@ -1,2 +0,0 @@
1
- export { a as Textarea } from '../../chunk-ACJI7SSR.mjs';
2
- import '../../chunk-D2YRORSD.mjs';
@@ -1,4 +0,0 @@
1
- export { a as Tooltip, T as TooltipProps, c as TooltipProvider, b as TooltipProviderProps } from '../../Tooltip.provider-6de64d8b.js';
2
- import 'react/jsx-runtime';
3
- import 'react';
4
- import '@radix-ui/react-tooltip';
@@ -1,15 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkV3HUNIZN_js = require('../../chunk-V3HUNIZN.js');
4
- require('../../chunk-DKDLYQOD.js');
5
-
6
-
7
-
8
- Object.defineProperty(exports, 'Tooltip', {
9
- enumerable: true,
10
- get: function () { return chunkV3HUNIZN_js.a; }
11
- });
12
- Object.defineProperty(exports, 'TooltipProvider', {
13
- enumerable: true,
14
- get: function () { return chunkV3HUNIZN_js.b; }
15
- });
@@ -1,2 +0,0 @@
1
- export { a as Tooltip, b as TooltipProvider } from '../../chunk-KEPEPMEM.mjs';
2
- import '../../chunk-D2YRORSD.mjs';
@@ -1,4 +0,0 @@
1
- export { T as ThemeContext, b as ThemeProvider, a as ThemeProviderProps } from '../ThemeProvider-cd78c94b.js';
2
- export { a as ThemeContextType, T as ThemeType } from '../theme.types-a32f0702.js';
3
- import 'react';
4
- import 'react/jsx-runtime';
package/contexts/index.js DELETED
@@ -1,16 +0,0 @@
1
- 'use strict';
2
-
3
- require('../chunk-JQ4UTWMH.js');
4
- var chunkZHWHVYOY_js = require('../chunk-ZHWHVYOY.js');
5
- require('../chunk-DKDLYQOD.js');
6
-
7
-
8
-
9
- Object.defineProperty(exports, 'ThemeContext', {
10
- enumerable: true,
11
- get: function () { return chunkZHWHVYOY_js.a; }
12
- });
13
- Object.defineProperty(exports, 'ThemeProvider', {
14
- enumerable: true,
15
- get: function () { return chunkZHWHVYOY_js.b; }
16
- });
@@ -1,3 +0,0 @@
1
- import '../chunk-WPEQQQCR.mjs';
2
- export { a as ThemeContext, b as ThemeProvider } from '../chunk-IGEGU67W.mjs';
3
- import '../chunk-D2YRORSD.mjs';
@@ -1,4 +0,0 @@
1
- export { T as ThemeContext, b as ThemeProvider, a as ThemeProviderProps } from '../../ThemeProvider-cd78c94b.js';
2
- export { a as ThemeContextType, T as ThemeType } from '../../theme.types-a32f0702.js';
3
- import 'react';
4
- import 'react/jsx-runtime';
@@ -1,15 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkZHWHVYOY_js = require('../../chunk-ZHWHVYOY.js');
4
- require('../../chunk-DKDLYQOD.js');
5
-
6
-
7
-
8
- Object.defineProperty(exports, 'ThemeContext', {
9
- enumerable: true,
10
- get: function () { return chunkZHWHVYOY_js.a; }
11
- });
12
- Object.defineProperty(exports, 'ThemeProvider', {
13
- enumerable: true,
14
- get: function () { return chunkZHWHVYOY_js.b; }
15
- });
@@ -1,2 +0,0 @@
1
- export { a as ThemeContext, b as ThemeProvider } from '../../chunk-IGEGU67W.mjs';
2
- import '../../chunk-D2YRORSD.mjs';
package/hooks/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export { u as useTheme } from '../useTheme-01c9253b.js';
2
- import '../theme.types-a32f0702.js';
3
- import 'react';
package/hooks/index.js DELETED
@@ -1,14 +0,0 @@
1
- 'use strict';
2
-
3
- require('../chunk-7M2UD3MX.js');
4
- var chunkFA4FHRKJ_js = require('../chunk-FA4FHRKJ.js');
5
- require('../chunk-JQ4UTWMH.js');
6
- require('../chunk-ZHWHVYOY.js');
7
- require('../chunk-DKDLYQOD.js');
8
-
9
-
10
-
11
- Object.defineProperty(exports, 'useTheme', {
12
- enumerable: true,
13
- get: function () { return chunkFA4FHRKJ_js.a; }
14
- });
package/hooks/index.mjs DELETED
@@ -1,5 +0,0 @@
1
- import '../chunk-TAA4AMBN.mjs';
2
- export { a as useTheme } from '../chunk-BEZVY5QD.mjs';
3
- import '../chunk-WPEQQQCR.mjs';
4
- import '../chunk-IGEGU67W.mjs';
5
- import '../chunk-D2YRORSD.mjs';
@@ -1,3 +0,0 @@
1
- export { u as useTheme } from '../../useTheme-01c9253b.js';
2
- import '../../theme.types-a32f0702.js';
3
- import 'react';
@@ -1,13 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkFA4FHRKJ_js = require('../../chunk-FA4FHRKJ.js');
4
- require('../../chunk-JQ4UTWMH.js');
5
- require('../../chunk-ZHWHVYOY.js');
6
- require('../../chunk-DKDLYQOD.js');
7
-
8
-
9
-
10
- Object.defineProperty(exports, 'useTheme', {
11
- enumerable: true,
12
- get: function () { return chunkFA4FHRKJ_js.a; }
13
- });
@@ -1,4 +0,0 @@
1
- export { a as useTheme } from '../../chunk-BEZVY5QD.mjs';
2
- import '../../chunk-WPEQQQCR.mjs';
3
- import '../../chunk-IGEGU67W.mjs';
4
- import '../../chunk-D2YRORSD.mjs';
package/index.d.ts DELETED
@@ -1,14 +0,0 @@
1
- export { a as Avatar, A as AvatarProps, b as AvatarSizeType } from './Avatar-c6a2f50d.js';
2
- export { a as Button, d as ButtonColorType, B as ButtonProps, b as ButtonSizeType, c as ButtonVariantType } from './Button-ae5be036.js';
3
- export { a as Input, I as InputProps } from './Input-41362e55.js';
4
- export { a as Tooltip, T as TooltipProps, c as TooltipProvider, b as TooltipProviderProps } from './Tooltip.provider-6de64d8b.js';
5
- export { a as Textarea, T as TextareaProps } from './Textarea-7d32840f.js';
6
- export { u as useTheme } from './useTheme-01c9253b.js';
7
- export { T as ThemeContext, b as ThemeProvider, a as ThemeProviderProps } from './ThemeProvider-cd78c94b.js';
8
- export { a as ThemeContextType, T as ThemeType } from './theme.types-a32f0702.js';
9
- import 'react/jsx-runtime';
10
- import 'react';
11
- import 'class-variance-authority';
12
- import 'class-variance-authority/dist/types';
13
- import './utils.types-3df7903f.js';
14
- import '@radix-ui/react-tooltip';
package/index.js DELETED
@@ -1,53 +0,0 @@
1
- 'use strict';
2
-
3
- require('./chunk-7M2UD3MX.js');
4
- var chunkFA4FHRKJ_js = require('./chunk-FA4FHRKJ.js');
5
- require('./chunk-PJ2GPHOZ.js');
6
- var chunk3PIF22YM_js = require('./chunk-3PIF22YM.js');
7
- var chunkBYGQEMVJ_js = require('./chunk-BYGQEMVJ.js');
8
- require('./chunk-IZJ75JZB.js');
9
- var chunkYEKURALR_js = require('./chunk-YEKURALR.js');
10
- var chunkIN4WKCCQ_js = require('./chunk-IN4WKCCQ.js');
11
- var chunkV3HUNIZN_js = require('./chunk-V3HUNIZN.js');
12
- require('./chunk-JQ4UTWMH.js');
13
- var chunkZHWHVYOY_js = require('./chunk-ZHWHVYOY.js');
14
- require('./chunk-DKDLYQOD.js');
15
-
16
-
17
-
18
- Object.defineProperty(exports, 'useTheme', {
19
- enumerable: true,
20
- get: function () { return chunkFA4FHRKJ_js.a; }
21
- });
22
- Object.defineProperty(exports, 'Avatar', {
23
- enumerable: true,
24
- get: function () { return chunk3PIF22YM_js.a; }
25
- });
26
- Object.defineProperty(exports, 'Button', {
27
- enumerable: true,
28
- get: function () { return chunkBYGQEMVJ_js.a; }
29
- });
30
- Object.defineProperty(exports, 'Input', {
31
- enumerable: true,
32
- get: function () { return chunkYEKURALR_js.a; }
33
- });
34
- Object.defineProperty(exports, 'Textarea', {
35
- enumerable: true,
36
- get: function () { return chunkIN4WKCCQ_js.a; }
37
- });
38
- Object.defineProperty(exports, 'Tooltip', {
39
- enumerable: true,
40
- get: function () { return chunkV3HUNIZN_js.a; }
41
- });
42
- Object.defineProperty(exports, 'TooltipProvider', {
43
- enumerable: true,
44
- get: function () { return chunkV3HUNIZN_js.b; }
45
- });
46
- Object.defineProperty(exports, 'ThemeContext', {
47
- enumerable: true,
48
- get: function () { return chunkZHWHVYOY_js.a; }
49
- });
50
- Object.defineProperty(exports, 'ThemeProvider', {
51
- enumerable: true,
52
- get: function () { return chunkZHWHVYOY_js.b; }
53
- });
package/index.mjs DELETED
@@ -1,12 +0,0 @@
1
- import './chunk-TAA4AMBN.mjs';
2
- export { a as useTheme } from './chunk-BEZVY5QD.mjs';
3
- import './chunk-76WB4BRP.mjs';
4
- export { a as Avatar } from './chunk-GETS73RC.mjs';
5
- export { a as Button } from './chunk-LXYPZK73.mjs';
6
- import './chunk-IZQ36CWU.mjs';
7
- export { a as Input } from './chunk-PJRIZNPB.mjs';
8
- export { a as Textarea } from './chunk-ACJI7SSR.mjs';
9
- export { a as Tooltip, b as TooltipProvider } from './chunk-KEPEPMEM.mjs';
10
- import './chunk-WPEQQQCR.mjs';
11
- export { a as ThemeContext, b as ThemeProvider } from './chunk-IGEGU67W.mjs';
12
- import './chunk-D2YRORSD.mjs';
@@ -1,9 +0,0 @@
1
- import React__default from 'react';
2
-
3
- type ThemeType = "light" | "dark";
4
- interface ThemeContextType {
5
- theme: ThemeType;
6
- setTheme: React__default.Dispatch<React__default.SetStateAction<ThemeType>>;
7
- }
8
-
9
- export { ThemeType as T, ThemeContextType as a };
@@ -1,5 +0,0 @@
1
- import { a as ThemeContextType } from './theme.types-a32f0702.js';
2
-
3
- declare const useTheme: () => ThemeContextType;
4
-
5
- export { useTheme as u };
@@ -1,13 +0,0 @@
1
- import * as React from 'react';
2
-
3
- type AsProp<C extends React.ElementType> = {
4
- /**
5
- * Defines HTML tag to be used for component
6
- */
7
- as?: C;
8
- };
9
- type PropsToOmit<C extends React.ElementType, P> = keyof (AsProp<C> & P);
10
- type PolymorphicComponentProp<C extends React.ElementType, Props = {}> = Props & AsProp<C> & Omit<React.ComponentPropsWithoutRef<C>, PropsToOmit<C, Props>>;
11
- type OmitStylesProps<T> = Omit<T, "className" | "style">;
12
-
13
- export { AsProp as A, OmitStylesProps as O, PolymorphicComponentProp as P };