@szum-tech/design-system 3.8.1 → 3.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/dist/{chunk-O3DHBQA5.cjs → chunk-3GNVQFCK.cjs} +1 -1
- package/dist/{chunk-SYKUS2RV.js → chunk-3MH6P44N.js} +2 -2
- package/dist/{chunk-3BLXG7ET.js → chunk-3RK5PCIC.js} +1 -1
- package/dist/{chunk-2Q2BIWBE.js → chunk-5MV54MWS.js} +1 -1
- package/dist/{chunk-YWG7TML6.cjs → chunk-6X26XC6P.cjs} +1 -1
- package/dist/chunk-A7SBXO2Y.cjs +40 -0
- package/dist/{chunk-ACJ3ES2B.js → chunk-BTSHACKG.js} +1 -1
- package/dist/{chunk-3DUJHGXE.cjs → chunk-CFJ44JVK.cjs} +1 -1
- package/dist/{chunk-Q5ONG5HB.cjs → chunk-DTYX7CYN.cjs} +2 -2
- package/dist/{chunk-XV3AQ6NS.js → chunk-KGGCA634.js} +1 -1
- package/dist/{chunk-SZ3LC2VO.js → chunk-PHPJ54IC.js} +5 -3
- package/dist/{chunk-FKCWRNWB.js → chunk-U3QKV7I4.js} +1 -1
- package/dist/chunk-U7XZJQ4O.js +36 -0
- package/dist/{chunk-X55H6LRX.cjs → chunk-ULEEQ723.cjs} +1 -1
- package/dist/{chunk-BAWVLSRF.cjs → chunk-VK5EX3OG.cjs} +1 -1
- package/dist/{chunk-UW6GOD7J.js → chunk-VT5GDGZJ.js} +1 -1
- package/dist/{chunk-3Z3GVXXN.cjs → chunk-XTNS5QH5.cjs} +5 -3
- package/dist/{chunk-Z6CZAPVG.cjs → chunk-ZVF7J4EI.cjs} +1 -1
- package/dist/components/alert/index.cjs +4 -4
- package/dist/components/alert/index.js +1 -1
- package/dist/components/badge/index.cjs +4 -4
- package/dist/components/badge/index.js +1 -1
- package/dist/components/button/index.cjs +10 -10
- package/dist/components/button/index.js +9 -9
- package/dist/components/color-swatch/index.cjs +2 -2
- package/dist/components/color-swatch/index.js +1 -1
- package/dist/components/dialog/index.cjs +9 -9
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/field/index.cjs +11 -11
- package/dist/components/field/index.js +1 -1
- package/dist/components/header/index.cjs +2 -2
- package/dist/components/header/index.js +1 -1
- package/dist/components/index.cjs +77 -73
- package/dist/components/index.d.cts +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +9 -9
- package/dist/components/item/index.cjs +11 -11
- package/dist/components/item/index.js +1 -1
- package/dist/components/stepper/index.cjs +28 -28
- package/dist/components/stepper/index.js +9 -9
- package/dist/components/toaster/index.cjs +11 -11
- package/dist/components/toaster/index.js +9 -9
- package/dist/components/tooltip/index.cjs +9 -4
- package/dist/components/tooltip/index.d.cts +8 -12
- package/dist/components/tooltip/index.d.ts +8 -12
- package/dist/components/tooltip/index.js +2 -1
- package/package.json +6 -9
- package/tailwind/global.css +5 -0
- package/dist/chunk-GR37JJQK.cjs +0 -43
- package/dist/chunk-HJJPEVIH.js +0 -40
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
export { Stepper, StepperActivationMode, StepperContent, StepperDataState, StepperDescription, StepperFocusIntent, StepperIndicator, StepperItem, StepperNav, StepperNavigationDirection, StepperNextTrigger, StepperOrientation, StepperPanel, StepperPrevTrigger, StepperTitle, StepperTrigger, useStepperContext, useStepperFocusContext, useStepperItemContext } from '../../chunk-
|
|
1
|
+
export { Stepper, StepperActivationMode, StepperContent, StepperDataState, StepperDescription, StepperFocusIntent, StepperIndicator, StepperItem, StepperNav, StepperNavigationDirection, StepperNextTrigger, StepperOrientation, StepperPanel, StepperPrevTrigger, StepperTitle, StepperTrigger, useStepperContext, useStepperFocusContext, useStepperItemContext } from '../../chunk-PHPJ54IC.js';
|
|
2
2
|
import '../../chunk-DTSFPOLX.js';
|
|
3
3
|
import '../../chunk-P5IUC7HJ.js';
|
|
4
4
|
import '../../chunk-OQCNPNPS.js';
|
|
5
|
-
import '../../chunk-
|
|
6
|
-
import '../../chunk-
|
|
5
|
+
import '../../chunk-U7XZJQ4O.js';
|
|
6
|
+
import '../../chunk-VT5GDGZJ.js';
|
|
7
7
|
import '../../chunk-UGSNASZM.js';
|
|
8
|
-
import '../../chunk-
|
|
8
|
+
import '../../chunk-KGGCA634.js';
|
|
9
9
|
import '../../chunk-PBEZZMAB.js';
|
|
10
10
|
import '../../chunk-4TRADSTP.js';
|
|
11
11
|
import '../../chunk-M7NIRB3U.js';
|
|
12
12
|
import '../../chunk-E5TYGWGE.js';
|
|
13
|
-
import '../../chunk-
|
|
13
|
+
import '../../chunk-U3QKV7I4.js';
|
|
14
14
|
import '../../chunk-6BSR3O2J.js';
|
|
15
15
|
import '../../chunk-5F2Y65JH.js';
|
|
16
|
-
import '../../chunk-
|
|
16
|
+
import '../../chunk-3RK5PCIC.js';
|
|
17
|
+
import '../../chunk-BTSHACKG.js';
|
|
17
18
|
import '../../chunk-HNRVLRMN.js';
|
|
18
|
-
import '../../chunk-
|
|
19
|
+
import '../../chunk-3MH6P44N.js';
|
|
19
20
|
import '../../chunk-XJIUGEPN.js';
|
|
20
21
|
import '../../chunk-I3RSTJP6.js';
|
|
21
|
-
import '../../chunk-3BLXG7ET.js';
|
|
22
22
|
import '../../chunk-H5O5L6XT.js';
|
|
23
23
|
import '../../chunk-DFD2WUOU.js';
|
|
24
|
-
import '../../chunk-
|
|
24
|
+
import '../../chunk-5MV54MWS.js';
|
|
25
25
|
import '../../chunk-5MJPZUTO.js';
|
|
26
26
|
import '../../chunk-NGVFYKAT.js';
|
|
27
27
|
import '../../chunk-ZD2QRAOX.js';
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkXTNS5QH5_cjs = require('../../chunk-XTNS5QH5.cjs');
|
|
4
4
|
require('../../chunk-GHV2TURY.cjs');
|
|
5
5
|
require('../../chunk-3WSQRFUY.cjs');
|
|
6
6
|
require('../../chunk-NU5UQPBX.cjs');
|
|
7
|
-
require('../../chunk-
|
|
8
|
-
require('../../chunk-
|
|
7
|
+
require('../../chunk-A7SBXO2Y.cjs');
|
|
8
|
+
require('../../chunk-6X26XC6P.cjs');
|
|
9
9
|
require('../../chunk-5AA4IE2T.cjs');
|
|
10
|
-
require('../../chunk-
|
|
10
|
+
require('../../chunk-CFJ44JVK.cjs');
|
|
11
11
|
require('../../chunk-TH44JYXB.cjs');
|
|
12
12
|
require('../../chunk-XENOUBSI.cjs');
|
|
13
13
|
require('../../chunk-UJX74PFK.cjs');
|
|
14
14
|
require('../../chunk-XJZOANXX.cjs');
|
|
15
|
-
require('../../chunk-
|
|
15
|
+
require('../../chunk-ZVF7J4EI.cjs');
|
|
16
16
|
require('../../chunk-2Y2ZCPNV.cjs');
|
|
17
17
|
require('../../chunk-HCHVDUI6.cjs');
|
|
18
|
-
require('../../chunk-
|
|
18
|
+
require('../../chunk-ULEEQ723.cjs');
|
|
19
|
+
require('../../chunk-VK5EX3OG.cjs');
|
|
19
20
|
require('../../chunk-CXHDWIGF.cjs');
|
|
20
|
-
require('../../chunk-
|
|
21
|
+
require('../../chunk-DTYX7CYN.cjs');
|
|
21
22
|
require('../../chunk-UIOBJSKZ.cjs');
|
|
22
23
|
require('../../chunk-S3ANEJJ7.cjs');
|
|
23
|
-
require('../../chunk-X55H6LRX.cjs');
|
|
24
24
|
require('../../chunk-EW6TE3N5.cjs');
|
|
25
25
|
require('../../chunk-7EYMOUWG.cjs');
|
|
26
|
-
require('../../chunk-
|
|
26
|
+
require('../../chunk-3GNVQFCK.cjs');
|
|
27
27
|
require('../../chunk-TMXVL5CV.cjs');
|
|
28
28
|
require('../../chunk-I7AV5IQO.cjs');
|
|
29
29
|
require('../../chunk-H2BWO3SI.cjs');
|
|
@@ -32,9 +32,9 @@ require('../../chunk-H2BWO3SI.cjs');
|
|
|
32
32
|
|
|
33
33
|
Object.defineProperty(exports, "Toaster", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkXTNS5QH5_cjs.Toaster; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "toast", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkXTNS5QH5_cjs.toast; }
|
|
40
40
|
});
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
export { Toaster, toast } from '../../chunk-
|
|
1
|
+
export { Toaster, toast } from '../../chunk-PHPJ54IC.js';
|
|
2
2
|
import '../../chunk-DTSFPOLX.js';
|
|
3
3
|
import '../../chunk-P5IUC7HJ.js';
|
|
4
4
|
import '../../chunk-OQCNPNPS.js';
|
|
5
|
-
import '../../chunk-
|
|
6
|
-
import '../../chunk-
|
|
5
|
+
import '../../chunk-U7XZJQ4O.js';
|
|
6
|
+
import '../../chunk-VT5GDGZJ.js';
|
|
7
7
|
import '../../chunk-UGSNASZM.js';
|
|
8
|
-
import '../../chunk-
|
|
8
|
+
import '../../chunk-KGGCA634.js';
|
|
9
9
|
import '../../chunk-PBEZZMAB.js';
|
|
10
10
|
import '../../chunk-4TRADSTP.js';
|
|
11
11
|
import '../../chunk-M7NIRB3U.js';
|
|
12
12
|
import '../../chunk-E5TYGWGE.js';
|
|
13
|
-
import '../../chunk-
|
|
13
|
+
import '../../chunk-U3QKV7I4.js';
|
|
14
14
|
import '../../chunk-6BSR3O2J.js';
|
|
15
15
|
import '../../chunk-5F2Y65JH.js';
|
|
16
|
-
import '../../chunk-
|
|
16
|
+
import '../../chunk-3RK5PCIC.js';
|
|
17
|
+
import '../../chunk-BTSHACKG.js';
|
|
17
18
|
import '../../chunk-HNRVLRMN.js';
|
|
18
|
-
import '../../chunk-
|
|
19
|
+
import '../../chunk-3MH6P44N.js';
|
|
19
20
|
import '../../chunk-XJIUGEPN.js';
|
|
20
21
|
import '../../chunk-I3RSTJP6.js';
|
|
21
|
-
import '../../chunk-3BLXG7ET.js';
|
|
22
22
|
import '../../chunk-H5O5L6XT.js';
|
|
23
23
|
import '../../chunk-DFD2WUOU.js';
|
|
24
|
-
import '../../chunk-
|
|
24
|
+
import '../../chunk-5MV54MWS.js';
|
|
25
25
|
import '../../chunk-5MJPZUTO.js';
|
|
26
26
|
import '../../chunk-NGVFYKAT.js';
|
|
27
27
|
import '../../chunk-ZD2QRAOX.js';
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkA7SBXO2Y_cjs = require('../../chunk-A7SBXO2Y.cjs');
|
|
4
|
+
require('../../chunk-H2BWO3SI.cjs');
|
|
4
5
|
|
|
5
6
|
|
|
6
7
|
|
|
7
8
|
Object.defineProperty(exports, "Tooltip", {
|
|
8
9
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkA7SBXO2Y_cjs.Tooltip; }
|
|
10
11
|
});
|
|
11
|
-
Object.defineProperty(exports, "
|
|
12
|
+
Object.defineProperty(exports, "TooltipContent", {
|
|
12
13
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkA7SBXO2Y_cjs.TooltipContent; }
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(exports, "TooltipTrigger", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return chunkA7SBXO2Y_cjs.TooltipTrigger; }
|
|
14
19
|
});
|
|
@@ -2,17 +2,13 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { Tooltip as Tooltip$1 } from 'radix-ui';
|
|
4
4
|
|
|
5
|
-
type TooltipProps = Tooltip$1.
|
|
6
|
-
|
|
7
|
-
defaultOpen?: boolean;
|
|
8
|
-
open?: boolean;
|
|
9
|
-
onOpenChange?: (open: boolean) => void;
|
|
10
|
-
content?: React.ReactNode;
|
|
11
|
-
collisionPadding?: number;
|
|
12
|
-
};
|
|
13
|
-
declare function Tooltip({ defaultOpen, content, open, onOpenChange, children, side, align, collisionPadding, sideOffset, ...props }: TooltipProps): react_jsx_runtime.JSX.Element;
|
|
5
|
+
type TooltipProps = React.ComponentProps<typeof Tooltip$1.Root>;
|
|
6
|
+
declare function Tooltip(props: TooltipProps): react_jsx_runtime.JSX.Element;
|
|
14
7
|
|
|
15
|
-
type
|
|
16
|
-
declare function
|
|
8
|
+
type TooltipTriggerProps = React.ComponentProps<typeof Tooltip$1.Trigger>;
|
|
9
|
+
declare function TooltipTrigger(props: TooltipTriggerProps): react_jsx_runtime.JSX.Element;
|
|
17
10
|
|
|
18
|
-
|
|
11
|
+
type TooltipContentProps = React.ComponentProps<typeof Tooltip$1.Content>;
|
|
12
|
+
declare function TooltipContent({ className, sideOffset, children, ...props }: TooltipContentProps): react_jsx_runtime.JSX.Element;
|
|
13
|
+
|
|
14
|
+
export { Tooltip, TooltipContent, type TooltipContentProps, type TooltipProps, TooltipTrigger, type TooltipTriggerProps };
|
|
@@ -2,17 +2,13 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { Tooltip as Tooltip$1 } from 'radix-ui';
|
|
4
4
|
|
|
5
|
-
type TooltipProps = Tooltip$1.
|
|
6
|
-
|
|
7
|
-
defaultOpen?: boolean;
|
|
8
|
-
open?: boolean;
|
|
9
|
-
onOpenChange?: (open: boolean) => void;
|
|
10
|
-
content?: React.ReactNode;
|
|
11
|
-
collisionPadding?: number;
|
|
12
|
-
};
|
|
13
|
-
declare function Tooltip({ defaultOpen, content, open, onOpenChange, children, side, align, collisionPadding, sideOffset, ...props }: TooltipProps): react_jsx_runtime.JSX.Element;
|
|
5
|
+
type TooltipProps = React.ComponentProps<typeof Tooltip$1.Root>;
|
|
6
|
+
declare function Tooltip(props: TooltipProps): react_jsx_runtime.JSX.Element;
|
|
14
7
|
|
|
15
|
-
type
|
|
16
|
-
declare function
|
|
8
|
+
type TooltipTriggerProps = React.ComponentProps<typeof Tooltip$1.Trigger>;
|
|
9
|
+
declare function TooltipTrigger(props: TooltipTriggerProps): react_jsx_runtime.JSX.Element;
|
|
17
10
|
|
|
18
|
-
|
|
11
|
+
type TooltipContentProps = React.ComponentProps<typeof Tooltip$1.Content>;
|
|
12
|
+
declare function TooltipContent({ className, sideOffset, children, ...props }: TooltipContentProps): react_jsx_runtime.JSX.Element;
|
|
13
|
+
|
|
14
|
+
export { Tooltip, TooltipContent, type TooltipContentProps, type TooltipProps, TooltipTrigger, type TooltipTriggerProps };
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { Tooltip,
|
|
1
|
+
export { Tooltip, TooltipContent, TooltipTrigger } from '../../chunk-U7XZJQ4O.js';
|
|
2
|
+
import '../../chunk-ZD2QRAOX.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@szum-tech/design-system",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.9.0",
|
|
4
4
|
"description": "Szum-Tech design system with tailwindcss support",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"szum-tech",
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
"dependencies": {
|
|
123
123
|
"class-variance-authority": "^0.7.1",
|
|
124
124
|
"clsx": "^2.1.1",
|
|
125
|
-
"lucide-react": "^0.
|
|
125
|
+
"lucide-react": "^0.562.0",
|
|
126
126
|
"radix-ui": "^1.4.3",
|
|
127
127
|
"sonner": "^2.0.7",
|
|
128
128
|
"tailwind-merge": "^3.3.1",
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
"@storybook/addon-vitest": "^10.1.4",
|
|
136
136
|
"@storybook/builder-vite": "^10.1.4",
|
|
137
137
|
"@storybook/react-vite": "^10.1.4",
|
|
138
|
-
"@szum-tech/eslint-config": "^2.1.
|
|
138
|
+
"@szum-tech/eslint-config": "^2.1.15",
|
|
139
139
|
"@szum-tech/prettier-config": "^1.6.2",
|
|
140
140
|
"@szum-tech/semantic-release-config": "^2.3.1",
|
|
141
141
|
"@tailwindcss/vite": "^4.1.11",
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
"@testing-library/jest-dom": "^6.6.4",
|
|
144
144
|
"@testing-library/react": "^16.3.0",
|
|
145
145
|
"@testing-library/user-event": "^14.6.1",
|
|
146
|
-
"@types/node": "^
|
|
146
|
+
"@types/node": "^25.0.3",
|
|
147
147
|
"@types/react": "^19.2.7",
|
|
148
148
|
"@types/react-dom": "^19.2.3",
|
|
149
149
|
"@vitejs/plugin-react": "^5.1.1",
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
"@vitest/ui": "^4.0.15",
|
|
154
154
|
"cpy-cli": "^6.0.0",
|
|
155
155
|
"eslint": "^9.39.1",
|
|
156
|
-
"happy-dom": "^20.0
|
|
156
|
+
"happy-dom": "^20.1.0",
|
|
157
157
|
"playwright": "^1.56.1",
|
|
158
158
|
"prettier": "^3.7.4",
|
|
159
159
|
"react": "^19.2.1",
|
|
@@ -168,7 +168,7 @@
|
|
|
168
168
|
"tsup": "^8.5.1",
|
|
169
169
|
"typescript": "^5.9.3",
|
|
170
170
|
"vite": "^7.2.4",
|
|
171
|
-
"vite-tsconfig-paths": "^
|
|
171
|
+
"vite-tsconfig-paths": "^6.0.3",
|
|
172
172
|
"vitest": "^4.0.15"
|
|
173
173
|
},
|
|
174
174
|
"peerDependencies": {
|
|
@@ -176,9 +176,6 @@
|
|
|
176
176
|
"react-dom": ">=19",
|
|
177
177
|
"tailwindcss": ">=4"
|
|
178
178
|
},
|
|
179
|
-
"engines": {
|
|
180
|
-
"node": ">=24"
|
|
181
|
-
},
|
|
182
179
|
"publishConfig": {
|
|
183
180
|
"access": "public"
|
|
184
181
|
}
|
package/tailwind/global.css
CHANGED
|
@@ -7,12 +7,17 @@
|
|
|
7
7
|
|
|
8
8
|
@plugin "tailwindcss-animate";
|
|
9
9
|
|
|
10
|
+
@custom-variant dark (&:is(.dark *));
|
|
11
|
+
|
|
10
12
|
@layer base {
|
|
11
13
|
button:not(:disabled),
|
|
12
14
|
[role="button"]:not(:disabled) {
|
|
13
15
|
cursor: pointer;
|
|
14
16
|
}
|
|
15
17
|
|
|
18
|
+
* {
|
|
19
|
+
@apply border-border outline-ring/50;
|
|
20
|
+
}
|
|
16
21
|
body {
|
|
17
22
|
@apply bg-background font-poppins text-foreground text-body-default antialiased;
|
|
18
23
|
}
|
package/dist/chunk-GR37JJQK.cjs
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var radixUi = require('radix-ui');
|
|
4
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
-
|
|
6
|
-
// src/components/tooltip/tooltip.tsx
|
|
7
|
-
function Tooltip({
|
|
8
|
-
defaultOpen,
|
|
9
|
-
content,
|
|
10
|
-
open,
|
|
11
|
-
onOpenChange,
|
|
12
|
-
children,
|
|
13
|
-
side,
|
|
14
|
-
align,
|
|
15
|
-
collisionPadding = 8,
|
|
16
|
-
sideOffset = 8,
|
|
17
|
-
...props
|
|
18
|
-
}) {
|
|
19
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(radixUi.Tooltip.Root, { delayDuration: 0, open, defaultOpen, onOpenChange, children: [
|
|
20
|
-
/* @__PURE__ */ jsxRuntime.jsx(radixUi.Tooltip.Trigger, { asChild: true, children }),
|
|
21
|
-
content ? /* @__PURE__ */ jsxRuntime.jsx(radixUi.Tooltip.Portal, { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
22
|
-
radixUi.Tooltip.Content,
|
|
23
|
-
{
|
|
24
|
-
className: "text-body-1 data-[state=delayed-open]:data-[side=bottom]:animate-slideUpAndFade data-[state=delayed-open]:data-[side=left]:animate-slideRightAndFade data-[state=delayed-open]:data-[side=right]:animate-slideLeftAndFade data-[state=delayed-open]:data-[side=top]:animate-slideDownAndFade rounded bg-white p-2 text-gray-100 will-change-[transform,opacity] select-none",
|
|
25
|
-
sideOffset,
|
|
26
|
-
side,
|
|
27
|
-
align,
|
|
28
|
-
collisionPadding,
|
|
29
|
-
...props,
|
|
30
|
-
children: [
|
|
31
|
-
content,
|
|
32
|
-
/* @__PURE__ */ jsxRuntime.jsx(radixUi.Tooltip.Arrow, { width: 8, height: 4, className: "fill-white" })
|
|
33
|
-
]
|
|
34
|
-
}
|
|
35
|
-
) }) : null
|
|
36
|
-
] });
|
|
37
|
-
}
|
|
38
|
-
function TooltipProvider({ children, skipDelayDuration = 500, ...props }) {
|
|
39
|
-
return /* @__PURE__ */ jsxRuntime.jsx(radixUi.Tooltip.Provider, { skipDelayDuration, ...props, children });
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
exports.Tooltip = Tooltip;
|
|
43
|
-
exports.TooltipProvider = TooltipProvider;
|
package/dist/chunk-HJJPEVIH.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { Tooltip as Tooltip$1 } from 'radix-ui';
|
|
2
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
-
|
|
4
|
-
// src/components/tooltip/tooltip.tsx
|
|
5
|
-
function Tooltip({
|
|
6
|
-
defaultOpen,
|
|
7
|
-
content,
|
|
8
|
-
open,
|
|
9
|
-
onOpenChange,
|
|
10
|
-
children,
|
|
11
|
-
side,
|
|
12
|
-
align,
|
|
13
|
-
collisionPadding = 8,
|
|
14
|
-
sideOffset = 8,
|
|
15
|
-
...props
|
|
16
|
-
}) {
|
|
17
|
-
return /* @__PURE__ */ jsxs(Tooltip$1.Root, { delayDuration: 0, open, defaultOpen, onOpenChange, children: [
|
|
18
|
-
/* @__PURE__ */ jsx(Tooltip$1.Trigger, { asChild: true, children }),
|
|
19
|
-
content ? /* @__PURE__ */ jsx(Tooltip$1.Portal, { children: /* @__PURE__ */ jsxs(
|
|
20
|
-
Tooltip$1.Content,
|
|
21
|
-
{
|
|
22
|
-
className: "text-body-1 data-[state=delayed-open]:data-[side=bottom]:animate-slideUpAndFade data-[state=delayed-open]:data-[side=left]:animate-slideRightAndFade data-[state=delayed-open]:data-[side=right]:animate-slideLeftAndFade data-[state=delayed-open]:data-[side=top]:animate-slideDownAndFade rounded bg-white p-2 text-gray-100 will-change-[transform,opacity] select-none",
|
|
23
|
-
sideOffset,
|
|
24
|
-
side,
|
|
25
|
-
align,
|
|
26
|
-
collisionPadding,
|
|
27
|
-
...props,
|
|
28
|
-
children: [
|
|
29
|
-
content,
|
|
30
|
-
/* @__PURE__ */ jsx(Tooltip$1.Arrow, { width: 8, height: 4, className: "fill-white" })
|
|
31
|
-
]
|
|
32
|
-
}
|
|
33
|
-
) }) : null
|
|
34
|
-
] });
|
|
35
|
-
}
|
|
36
|
-
function TooltipProvider({ children, skipDelayDuration = 500, ...props }) {
|
|
37
|
-
return /* @__PURE__ */ jsx(Tooltip$1.Provider, { skipDelayDuration, ...props, children });
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export { Tooltip, TooltipProvider };
|