@shipfox/react-ui 0.2.0 → 0.4.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/.storybook/preview.tsx +1 -1
- package/.turbo/turbo-build.log +2 -2
- package/.turbo/turbo-check.log +3 -3
- package/.turbo/turbo-type.log +1 -1
- package/CHANGELOG.md +17 -0
- package/dist/components/alert/alert.d.ts +18 -0
- package/dist/components/alert/alert.d.ts.map +1 -0
- package/dist/components/alert/alert.js +123 -0
- package/dist/components/alert/alert.js.map +1 -0
- package/dist/components/alert/alert.stories.js +112 -0
- package/dist/components/alert/alert.stories.js.map +1 -0
- package/dist/components/alert/index.d.ts +2 -0
- package/dist/components/alert/index.d.ts.map +1 -0
- package/dist/components/alert/index.js +3 -0
- package/dist/components/alert/index.js.map +1 -0
- package/dist/components/avatar/avatar-group.d.ts +18 -0
- package/dist/components/avatar/avatar-group.d.ts.map +1 -0
- package/dist/components/avatar/avatar-group.js +132 -0
- package/dist/components/avatar/avatar-group.js.map +1 -0
- package/dist/components/avatar/avatar.d.ts +24 -0
- package/dist/components/avatar/avatar.d.ts.map +1 -0
- package/dist/components/avatar/avatar.js +165 -0
- package/dist/components/avatar/avatar.js.map +1 -0
- package/dist/components/avatar/avatar.stories.js +267 -0
- package/dist/components/avatar/avatar.stories.js.map +1 -0
- package/dist/components/avatar/index.d.ts +3 -0
- package/dist/components/avatar/index.d.ts.map +1 -0
- package/dist/components/avatar/index.js +4 -0
- package/dist/components/avatar/index.js.map +1 -0
- package/dist/components/badge/badge.d.ts +48 -0
- package/dist/components/badge/badge.d.ts.map +1 -0
- package/dist/components/badge/badge.js +72 -0
- package/dist/components/badge/badge.js.map +1 -0
- package/dist/components/badge/badge.stories.js +802 -0
- package/dist/components/badge/badge.stories.js.map +1 -0
- package/dist/components/badge/icon-badge.d.ts +9 -0
- package/dist/components/badge/icon-badge.d.ts.map +1 -0
- package/dist/components/badge/icon-badge.js +32 -0
- package/dist/components/badge/icon-badge.js.map +1 -0
- package/dist/components/badge/index.d.ts +5 -0
- package/dist/components/badge/index.d.ts.map +1 -0
- package/dist/components/badge/index.js +6 -0
- package/dist/components/badge/index.js.map +1 -0
- package/dist/components/badge/status-badge.d.ts +9 -0
- package/dist/components/badge/status-badge.d.ts.map +1 -0
- package/dist/components/badge/status-badge.js +29 -0
- package/dist/components/badge/status-badge.js.map +1 -0
- package/dist/components/badge/user-badge.d.ts +8 -0
- package/dist/components/badge/user-badge.d.ts.map +1 -0
- package/dist/components/badge/user-badge.js +24 -0
- package/dist/components/badge/user-badge.js.map +1 -0
- package/dist/components/{button.d.ts → button/button.d.ts} +1 -1
- package/dist/components/button/button.d.ts.map +1 -0
- package/dist/components/{button.js → button/button.js} +2 -2
- package/dist/components/button/button.js.map +1 -0
- package/dist/components/{button.stories.js → button/button.stories.js} +1 -1
- package/dist/components/button/button.stories.js.map +1 -0
- package/dist/components/button/index.d.ts +2 -0
- package/dist/components/button/index.d.ts.map +1 -0
- package/dist/components/button/index.js +3 -0
- package/dist/components/button/index.js.map +1 -0
- package/dist/components/checkbox/checkbox-label.d.ts +14 -0
- package/dist/components/checkbox/checkbox-label.d.ts.map +1 -0
- package/dist/components/checkbox/checkbox-label.js +82 -0
- package/dist/components/checkbox/checkbox-label.js.map +1 -0
- package/dist/components/checkbox/checkbox-links.d.ts +18 -0
- package/dist/components/checkbox/checkbox-links.d.ts.map +1 -0
- package/dist/components/checkbox/checkbox-links.js +58 -0
- package/dist/components/checkbox/checkbox-links.js.map +1 -0
- package/dist/components/checkbox/checkbox.d.ts +9 -0
- package/dist/components/checkbox/checkbox.d.ts.map +1 -0
- package/dist/components/checkbox/checkbox.js +49 -0
- package/dist/components/checkbox/checkbox.js.map +1 -0
- package/dist/components/checkbox/checkbox.stories.js +566 -0
- package/dist/components/checkbox/checkbox.stories.js.map +1 -0
- package/dist/components/checkbox/index.d.ts +4 -0
- package/dist/components/checkbox/index.d.ts.map +1 -0
- package/dist/components/checkbox/index.js +5 -0
- package/dist/components/checkbox/index.js.map +1 -0
- package/dist/components/code-block/code-block-footer.d.ts +26 -0
- package/dist/components/code-block/code-block-footer.d.ts.map +1 -0
- package/dist/components/code-block/code-block-footer.js +86 -0
- package/dist/components/code-block/code-block-footer.js.map +1 -0
- package/dist/components/code-block/code-block.d.ts +50 -0
- package/dist/components/code-block/code-block.d.ts.map +1 -0
- package/dist/components/code-block/code-block.js +142 -0
- package/dist/components/code-block/code-block.js.map +1 -0
- package/dist/components/code-block/code-block.stories.js +341 -0
- package/dist/components/code-block/code-block.stories.js.map +1 -0
- package/dist/components/code-block/code-content.d.ts +11 -0
- package/dist/components/code-block/code-content.d.ts.map +1 -0
- package/dist/components/code-block/code-content.js +29 -0
- package/dist/components/code-block/code-content.js.map +1 -0
- package/dist/components/code-block/code-copy-button.d.ts +11 -0
- package/dist/components/code-block/code-copy-button.d.ts.map +1 -0
- package/dist/components/code-block/code-copy-button.js +49 -0
- package/dist/components/code-block/code-copy-button.js.map +1 -0
- package/dist/components/code-block/code-tabs.d.ts +16 -0
- package/dist/components/code-block/code-tabs.d.ts.map +1 -0
- package/dist/components/code-block/code-tabs.js +98 -0
- package/dist/components/code-block/code-tabs.js.map +1 -0
- package/dist/components/code-block/index.d.ts +4 -0
- package/dist/components/code-block/index.d.ts.map +1 -0
- package/dist/components/code-block/index.js +5 -0
- package/dist/components/code-block/index.js.map +1 -0
- package/dist/components/dynamic-item/dynamic-item.d.ts +13 -0
- package/dist/components/dynamic-item/dynamic-item.d.ts.map +1 -0
- package/dist/components/dynamic-item/dynamic-item.js +43 -0
- package/dist/components/dynamic-item/dynamic-item.js.map +1 -0
- package/dist/components/dynamic-item/dynamic-item.stories.js +375 -0
- package/dist/components/dynamic-item/dynamic-item.stories.js.map +1 -0
- package/dist/components/dynamic-item/index.d.ts +2 -0
- package/dist/components/dynamic-item/index.d.ts.map +1 -0
- package/dist/components/dynamic-item/index.js +3 -0
- package/dist/components/dynamic-item/index.js.map +1 -0
- package/dist/components/icon/custom/index.d.ts +3 -0
- package/dist/components/icon/custom/index.d.ts.map +1 -1
- package/dist/components/icon/custom/index.js +3 -0
- package/dist/components/icon/custom/index.js.map +1 -1
- package/dist/components/icon/custom/shipfox-logo.d.ts +8 -0
- package/dist/components/icon/custom/shipfox-logo.d.ts.map +1 -0
- package/dist/components/icon/custom/shipfox-logo.js +22 -0
- package/dist/components/icon/custom/shipfox-logo.js.map +1 -0
- package/dist/components/icon/custom/slack-logo.d.ts +6 -0
- package/dist/components/icon/custom/slack-logo.d.ts.map +1 -0
- package/dist/components/icon/custom/slack-logo.js +34 -0
- package/dist/components/icon/custom/slack-logo.js.map +1 -0
- package/dist/components/icon/custom/stripe-logo.d.ts +8 -0
- package/dist/components/icon/custom/stripe-logo.d.ts.map +1 -0
- package/dist/components/icon/custom/stripe-logo.js +24 -0
- package/dist/components/icon/custom/stripe-logo.js.map +1 -0
- package/dist/components/icon/icon.d.ts +13 -1
- package/dist/components/icon/icon.d.ts.map +1 -1
- package/dist/components/icon/icon.js +15 -3
- package/dist/components/icon/icon.js.map +1 -1
- package/dist/components/icon/icon.stories.js +6 -3
- package/dist/components/icon/icon.stories.js.map +1 -1
- package/dist/components/index.d.ts +12 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +13 -2
- package/dist/components/index.js.map +1 -1
- package/dist/components/inline-tips/index.d.ts +2 -0
- package/dist/components/inline-tips/index.d.ts.map +1 -0
- package/dist/components/inline-tips/index.js +3 -0
- package/dist/components/inline-tips/index.js.map +1 -0
- package/dist/components/inline-tips/inline-tips.d.ts +19 -0
- package/dist/components/inline-tips/inline-tips.d.ts.map +1 -0
- package/dist/components/inline-tips/inline-tips.js +98 -0
- package/dist/components/inline-tips/inline-tips.js.map +1 -0
- package/dist/components/inline-tips/inline-tips.stories.js +214 -0
- package/dist/components/inline-tips/inline-tips.stories.js.map +1 -0
- package/dist/components/input/index.d.ts +2 -0
- package/dist/components/input/index.d.ts.map +1 -0
- package/dist/components/input/index.js +3 -0
- package/dist/components/input/index.js.map +1 -0
- package/dist/components/input/input.d.ts.map +1 -0
- package/dist/components/{input.js → input/input.js} +2 -2
- package/dist/components/input/input.js.map +1 -0
- package/dist/components/{input.stories.js → input/input.stories.js} +1 -1
- package/dist/components/input/input.stories.js.map +1 -0
- package/dist/components/item/index.d.ts +2 -0
- package/dist/components/item/index.d.ts.map +1 -0
- package/dist/components/item/index.js +3 -0
- package/dist/components/item/index.js.map +1 -0
- package/dist/components/item/item.d.ts +32 -0
- package/dist/components/item/item.d.ts.map +1 -0
- package/dist/components/item/item.js +120 -0
- package/dist/components/item/item.js.map +1 -0
- package/dist/components/item/item.stories.js +232 -0
- package/dist/components/item/item.stories.js.map +1 -0
- package/dist/components/label/index.d.ts +2 -0
- package/dist/components/label/index.d.ts.map +1 -0
- package/dist/components/label/index.js +3 -0
- package/dist/components/label/index.js.map +1 -0
- package/dist/components/label/label.d.ts +7 -0
- package/dist/components/label/label.d.ts.map +1 -0
- package/dist/components/label/label.js +13 -0
- package/dist/components/label/label.js.map +1 -0
- package/dist/components/label/label.stories.js +105 -0
- package/dist/components/label/label.stories.js.map +1 -0
- package/dist/components/moving-border/moving-border.d.ts +9 -0
- package/dist/components/moving-border/moving-border.d.ts.map +1 -0
- package/dist/components/moving-border/moving-border.js +54 -0
- package/dist/components/moving-border/moving-border.js.map +1 -0
- package/dist/components/textarea/textarea.js +1 -1
- package/dist/components/textarea/textarea.js.map +1 -1
- package/dist/components/theme/index.d.ts +2 -0
- package/dist/components/theme/index.d.ts.map +1 -0
- package/dist/components/theme/index.js +3 -0
- package/dist/components/theme/index.js.map +1 -0
- package/dist/components/{theme-provider.d.ts → theme/theme-provider.d.ts} +1 -1
- package/dist/components/theme/theme-provider.d.ts.map +1 -0
- package/dist/components/{theme-provider.js → theme/theme-provider.js} +1 -1
- package/dist/components/theme/theme-provider.js.map +1 -0
- package/dist/components/toast/index.d.ts +3 -0
- package/dist/components/toast/index.d.ts.map +1 -0
- package/dist/components/toast/index.js +4 -0
- package/dist/components/toast/index.js.map +1 -0
- package/dist/components/toast/toast-custom.d.ts +19 -0
- package/dist/components/toast/toast-custom.d.ts.map +1 -0
- package/dist/components/toast/toast-custom.js +134 -0
- package/dist/components/toast/toast-custom.js.map +1 -0
- package/dist/components/toast/toast.d.ts +5 -0
- package/dist/components/toast/toast.d.ts.map +1 -0
- package/dist/components/toast/toast.js +40 -0
- package/dist/components/toast/toast.js.map +1 -0
- package/dist/components/toast/toast.stories.js +326 -0
- package/dist/components/toast/toast.stories.js.map +1 -0
- package/dist/components/tooltip/index.d.ts +2 -0
- package/dist/components/tooltip/index.d.ts.map +1 -0
- package/dist/components/tooltip/index.js +3 -0
- package/dist/components/tooltip/index.js.map +1 -0
- package/dist/components/tooltip/tooltip.d.ts +20 -0
- package/dist/components/tooltip/tooltip.d.ts.map +1 -0
- package/dist/components/tooltip/tooltip.js +98 -0
- package/dist/components/tooltip/tooltip.js.map +1 -0
- package/dist/components/tooltip/tooltip.stories.js +560 -0
- package/dist/components/tooltip/tooltip.stories.js.map +1 -0
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +3 -0
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/useResolvedTheme.d.ts +2 -0
- package/dist/hooks/useResolvedTheme.d.ts.map +1 -0
- package/dist/hooks/useResolvedTheme.js +24 -0
- package/dist/hooks/useResolvedTheme.js.map +1 -0
- package/dist/hooks/useShikiHighlight.d.ts +28 -0
- package/dist/hooks/useShikiHighlight.d.ts.map +1 -0
- package/dist/hooks/useShikiHighlight.js +106 -0
- package/dist/hooks/useShikiHighlight.js.map +1 -0
- package/dist/hooks/useShikiStyleInjection.d.ts +2 -0
- package/dist/hooks/useShikiStyleInjection.d.ts.map +1 -0
- package/dist/hooks/useShikiStyleInjection.js +34 -0
- package/dist/hooks/useShikiStyleInjection.js.map +1 -0
- package/dist/utils/avatar.d.ts +3 -0
- package/dist/utils/avatar.d.ts.map +1 -0
- package/dist/utils/avatar.js +32 -0
- package/dist/utils/avatar.js.map +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -0
- package/dist/utils/index.js.map +1 -1
- package/index.css +130 -7
- package/package.json +7 -4
- package/src/assets/illustration-1.svg +92 -0
- package/src/assets/illustration-2.svg +14 -0
- package/src/assets/illustration-gradient.svg +7049 -0
- package/src/components/alert/alert.stories.tsx +77 -0
- package/src/components/alert/alert.tsx +144 -0
- package/src/components/alert/index.ts +1 -0
- package/src/components/avatar/avatar-group.tsx +186 -0
- package/src/components/avatar/avatar.stories.tsx +179 -0
- package/src/components/avatar/avatar.tsx +219 -0
- package/src/components/avatar/index.ts +2 -0
- package/src/components/badge/badge.stories.tsx +468 -0
- package/src/components/badge/badge.tsx +147 -0
- package/src/components/badge/icon-badge.tsx +43 -0
- package/src/components/badge/index.ts +4 -0
- package/src/components/badge/status-badge.tsx +43 -0
- package/src/components/badge/user-badge.tsx +34 -0
- package/src/components/{button.tsx → button/button.tsx} +1 -1
- package/src/components/button/index.ts +1 -0
- package/src/components/checkbox/checkbox-label.tsx +125 -0
- package/src/components/checkbox/checkbox-links.tsx +90 -0
- package/src/components/checkbox/checkbox.stories.tsx +375 -0
- package/src/components/checkbox/checkbox.tsx +71 -0
- package/src/components/checkbox/index.ts +3 -0
- package/src/components/code-block/code-block-footer.tsx +173 -0
- package/src/components/code-block/code-block.stories.tsx +323 -0
- package/src/components/code-block/code-block.tsx +283 -0
- package/src/components/code-block/code-content.tsx +60 -0
- package/src/components/code-block/code-copy-button.tsx +73 -0
- package/src/components/code-block/code-tabs.tsx +170 -0
- package/src/components/code-block/index.ts +3 -0
- package/src/components/dynamic-item/dynamic-item.stories.tsx +261 -0
- package/src/components/dynamic-item/dynamic-item.tsx +68 -0
- package/src/components/dynamic-item/index.ts +1 -0
- package/src/components/icon/custom/index.ts +3 -0
- package/src/components/icon/custom/shipfox-logo.tsx +20 -0
- package/src/components/icon/custom/slack-logo.tsx +35 -0
- package/src/components/icon/custom/stripe-logo.tsx +27 -0
- package/src/components/icon/icon.stories.tsx +3 -1
- package/src/components/icon/icon.tsx +29 -1
- package/src/components/index.ts +12 -1
- package/src/components/inline-tips/index.ts +1 -0
- package/src/components/inline-tips/inline-tips.stories.tsx +126 -0
- package/src/components/inline-tips/inline-tips.tsx +132 -0
- package/src/components/input/index.ts +1 -0
- package/src/components/{input.tsx → input/input.tsx} +1 -1
- package/src/components/item/index.ts +1 -0
- package/src/components/item/item.stories.tsx +150 -0
- package/src/components/item/item.tsx +182 -0
- package/src/components/label/index.ts +1 -0
- package/src/components/label/label.stories.tsx +67 -0
- package/src/components/label/label.tsx +15 -0
- package/src/components/moving-border/moving-border.tsx +67 -0
- package/src/components/textarea/textarea.tsx +1 -1
- package/src/components/theme/index.ts +1 -0
- package/src/components/toast/index.ts +2 -0
- package/src/components/toast/toast-custom.tsx +154 -0
- package/src/components/toast/toast.stories.tsx +369 -0
- package/src/components/toast/toast.tsx +41 -0
- package/src/components/tooltip/index.ts +1 -0
- package/src/components/tooltip/tooltip.stories.tsx +284 -0
- package/src/components/tooltip/tooltip.tsx +121 -0
- package/src/hooks/index.ts +3 -0
- package/src/hooks/useResolvedTheme.ts +34 -0
- package/src/hooks/useShikiHighlight.ts +140 -0
- package/src/hooks/useShikiStyleInjection.ts +34 -0
- package/src/utils/avatar.ts +27 -0
- package/src/utils/index.ts +1 -0
- package/dist/components/button.d.ts.map +0 -1
- package/dist/components/button.js.map +0 -1
- package/dist/components/button.stories.js.map +0 -1
- package/dist/components/input.d.ts.map +0 -1
- package/dist/components/input.js.map +0 -1
- package/dist/components/input.stories.js.map +0 -1
- package/dist/components/theme-provider.d.ts.map +0 -1
- package/dist/components/theme-provider.js.map +0 -1
- /package/dist/components/{input.d.ts → input/input.d.ts} +0 -0
- /package/src/components/{button.stories.tsx → button/button.stories.tsx} +0 -0
- /package/src/components/{input.stories.tsx → input/input.stories.tsx} +0 -0
- /package/src/components/{theme-provider.tsx → theme/theme-provider.tsx} +0 -0
|
@@ -0,0 +1,560 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Code } from '../../components/typography/index.js';
|
|
3
|
+
import { Button } from '../button/index.js';
|
|
4
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from './tooltip.js';
|
|
5
|
+
const meta = {
|
|
6
|
+
title: 'Components/Tooltip',
|
|
7
|
+
component: Tooltip,
|
|
8
|
+
tags: [
|
|
9
|
+
'autodocs'
|
|
10
|
+
],
|
|
11
|
+
argTypes: {
|
|
12
|
+
defaultOpen: {
|
|
13
|
+
control: 'boolean'
|
|
14
|
+
},
|
|
15
|
+
delayDuration: {
|
|
16
|
+
control: 'number'
|
|
17
|
+
},
|
|
18
|
+
variant: {
|
|
19
|
+
control: 'select',
|
|
20
|
+
options: [
|
|
21
|
+
'default',
|
|
22
|
+
'inverted',
|
|
23
|
+
'muted'
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
size: {
|
|
27
|
+
control: 'select',
|
|
28
|
+
options: [
|
|
29
|
+
'sm',
|
|
30
|
+
'md',
|
|
31
|
+
'lg'
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
side: {
|
|
35
|
+
control: 'select',
|
|
36
|
+
options: [
|
|
37
|
+
'top',
|
|
38
|
+
'bottom',
|
|
39
|
+
'left',
|
|
40
|
+
'right'
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
align: {
|
|
44
|
+
control: 'select',
|
|
45
|
+
options: [
|
|
46
|
+
'start',
|
|
47
|
+
'center',
|
|
48
|
+
'end'
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
sideOffset: {
|
|
52
|
+
control: 'number'
|
|
53
|
+
},
|
|
54
|
+
animated: {
|
|
55
|
+
control: 'boolean'
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
args: {
|
|
59
|
+
defaultOpen: false,
|
|
60
|
+
delayDuration: 0,
|
|
61
|
+
variant: 'default',
|
|
62
|
+
size: 'md',
|
|
63
|
+
side: 'top',
|
|
64
|
+
align: 'center',
|
|
65
|
+
sideOffset: 8,
|
|
66
|
+
animated: true
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
export default meta;
|
|
70
|
+
export const Default = {
|
|
71
|
+
args: {
|
|
72
|
+
defaultOpen: false
|
|
73
|
+
},
|
|
74
|
+
render: (args)=>{
|
|
75
|
+
const { defaultOpen, delayDuration, variant, size, side, align, sideOffset, animated } = args;
|
|
76
|
+
return /*#__PURE__*/ _jsx("div", {
|
|
77
|
+
className: "flex items-center justify-center p-64",
|
|
78
|
+
children: /*#__PURE__*/ _jsxs(Tooltip, {
|
|
79
|
+
defaultOpen: defaultOpen,
|
|
80
|
+
delayDuration: delayDuration,
|
|
81
|
+
children: [
|
|
82
|
+
/*#__PURE__*/ _jsx(TooltipTrigger, {
|
|
83
|
+
asChild: true,
|
|
84
|
+
children: /*#__PURE__*/ _jsx(Button, {
|
|
85
|
+
children: "Hover me"
|
|
86
|
+
})
|
|
87
|
+
}),
|
|
88
|
+
/*#__PURE__*/ _jsx(TooltipContent, {
|
|
89
|
+
variant: variant,
|
|
90
|
+
size: size,
|
|
91
|
+
side: side,
|
|
92
|
+
align: align,
|
|
93
|
+
sideOffset: sideOffset,
|
|
94
|
+
animated: animated,
|
|
95
|
+
children: "Tooltip Text"
|
|
96
|
+
})
|
|
97
|
+
]
|
|
98
|
+
})
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
export const Types = {
|
|
103
|
+
render: ()=>/*#__PURE__*/ _jsxs("div", {
|
|
104
|
+
className: "flex flex-col gap-64 p-64",
|
|
105
|
+
children: [
|
|
106
|
+
/*#__PURE__*/ _jsx(Code, {
|
|
107
|
+
variant: "label",
|
|
108
|
+
className: "text-foreground-neutral-subtle",
|
|
109
|
+
children: "TYPES"
|
|
110
|
+
}),
|
|
111
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
112
|
+
className: "flex flex-col gap-32",
|
|
113
|
+
children: [
|
|
114
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
115
|
+
className: "flex flex-col gap-16",
|
|
116
|
+
children: [
|
|
117
|
+
/*#__PURE__*/ _jsx(Code, {
|
|
118
|
+
variant: "label",
|
|
119
|
+
className: "text-foreground-neutral-subtle",
|
|
120
|
+
children: "Type=Text"
|
|
121
|
+
}),
|
|
122
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
123
|
+
className: "flex gap-16",
|
|
124
|
+
children: [
|
|
125
|
+
/*#__PURE__*/ _jsxs(Tooltip, {
|
|
126
|
+
children: [
|
|
127
|
+
/*#__PURE__*/ _jsx(TooltipTrigger, {
|
|
128
|
+
asChild: true,
|
|
129
|
+
children: /*#__PURE__*/ _jsx(Button, {
|
|
130
|
+
variant: "primary",
|
|
131
|
+
children: "Tooltip Text"
|
|
132
|
+
})
|
|
133
|
+
}),
|
|
134
|
+
/*#__PURE__*/ _jsx(TooltipContent, {
|
|
135
|
+
variant: "inverted",
|
|
136
|
+
children: "Tooltip Text"
|
|
137
|
+
})
|
|
138
|
+
]
|
|
139
|
+
}),
|
|
140
|
+
/*#__PURE__*/ _jsxs(Tooltip, {
|
|
141
|
+
children: [
|
|
142
|
+
/*#__PURE__*/ _jsx(TooltipTrigger, {
|
|
143
|
+
asChild: true,
|
|
144
|
+
children: /*#__PURE__*/ _jsx(Button, {
|
|
145
|
+
variant: "secondary",
|
|
146
|
+
children: "Tooltip Text"
|
|
147
|
+
})
|
|
148
|
+
}),
|
|
149
|
+
/*#__PURE__*/ _jsx(TooltipContent, {
|
|
150
|
+
children: "Tooltip Text"
|
|
151
|
+
})
|
|
152
|
+
]
|
|
153
|
+
})
|
|
154
|
+
]
|
|
155
|
+
})
|
|
156
|
+
]
|
|
157
|
+
}),
|
|
158
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
159
|
+
className: "flex flex-col gap-16",
|
|
160
|
+
children: [
|
|
161
|
+
/*#__PURE__*/ _jsx(Code, {
|
|
162
|
+
variant: "label",
|
|
163
|
+
className: "text-foreground-neutral-subtle",
|
|
164
|
+
children: "Type=Shortcut"
|
|
165
|
+
}),
|
|
166
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
167
|
+
className: "flex gap-16",
|
|
168
|
+
children: [
|
|
169
|
+
/*#__PURE__*/ _jsxs(Tooltip, {
|
|
170
|
+
children: [
|
|
171
|
+
/*#__PURE__*/ _jsx(TooltipTrigger, {
|
|
172
|
+
asChild: true,
|
|
173
|
+
children: /*#__PURE__*/ _jsx(Button, {
|
|
174
|
+
variant: "primary",
|
|
175
|
+
children: "Tooltip Text"
|
|
176
|
+
})
|
|
177
|
+
}),
|
|
178
|
+
/*#__PURE__*/ _jsx(TooltipContent, {
|
|
179
|
+
variant: "inverted",
|
|
180
|
+
children: /*#__PURE__*/ _jsxs("div", {
|
|
181
|
+
className: "flex items-center gap-6",
|
|
182
|
+
children: [
|
|
183
|
+
/*#__PURE__*/ _jsx("span", {
|
|
184
|
+
children: "Tooltip Text"
|
|
185
|
+
}),
|
|
186
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
187
|
+
className: "flex items-center gap-4",
|
|
188
|
+
children: [
|
|
189
|
+
/*#__PURE__*/ _jsx("kbd", {
|
|
190
|
+
className: "flex h-16 w-16 items-center justify-center rounded-4 border border-border-neutral-base bg-background-field-base text-sm text-foreground-neutral-subtle",
|
|
191
|
+
children: "⌘"
|
|
192
|
+
}),
|
|
193
|
+
/*#__PURE__*/ _jsx("kbd", {
|
|
194
|
+
className: "flex h-16 w-16 items-center justify-center rounded-4 border border-border-neutral-base bg-background-field-base text-sm text-foreground-neutral-subtle",
|
|
195
|
+
children: "/"
|
|
196
|
+
})
|
|
197
|
+
]
|
|
198
|
+
})
|
|
199
|
+
]
|
|
200
|
+
})
|
|
201
|
+
})
|
|
202
|
+
]
|
|
203
|
+
}),
|
|
204
|
+
/*#__PURE__*/ _jsxs(Tooltip, {
|
|
205
|
+
children: [
|
|
206
|
+
/*#__PURE__*/ _jsx(TooltipTrigger, {
|
|
207
|
+
asChild: true,
|
|
208
|
+
children: /*#__PURE__*/ _jsx(Button, {
|
|
209
|
+
variant: "secondary",
|
|
210
|
+
children: "Tooltip Text"
|
|
211
|
+
})
|
|
212
|
+
}),
|
|
213
|
+
/*#__PURE__*/ _jsx(TooltipContent, {
|
|
214
|
+
children: /*#__PURE__*/ _jsxs("div", {
|
|
215
|
+
className: "flex items-center gap-6",
|
|
216
|
+
children: [
|
|
217
|
+
/*#__PURE__*/ _jsx("span", {
|
|
218
|
+
children: "Tooltip Text"
|
|
219
|
+
}),
|
|
220
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
221
|
+
className: "flex items-center gap-4",
|
|
222
|
+
children: [
|
|
223
|
+
/*#__PURE__*/ _jsx("kbd", {
|
|
224
|
+
className: "flex h-16 w-16 items-center justify-center rounded-4 border border-border-neutral-base bg-background-field-base text-xs text-foreground-neutral-subtle",
|
|
225
|
+
children: "⌘"
|
|
226
|
+
}),
|
|
227
|
+
/*#__PURE__*/ _jsx("kbd", {
|
|
228
|
+
className: "flex h-16 w-16 items-center justify-center rounded-4 border border-border-neutral-base bg-background-field-base text-xs text-foreground-neutral-subtle",
|
|
229
|
+
children: "/"
|
|
230
|
+
})
|
|
231
|
+
]
|
|
232
|
+
})
|
|
233
|
+
]
|
|
234
|
+
})
|
|
235
|
+
})
|
|
236
|
+
]
|
|
237
|
+
})
|
|
238
|
+
]
|
|
239
|
+
})
|
|
240
|
+
]
|
|
241
|
+
}),
|
|
242
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
243
|
+
className: "flex flex-col gap-16",
|
|
244
|
+
children: [
|
|
245
|
+
/*#__PURE__*/ _jsx(Code, {
|
|
246
|
+
variant: "label",
|
|
247
|
+
className: "text-foreground-neutral-subtle",
|
|
248
|
+
children: "Type=Graph"
|
|
249
|
+
}),
|
|
250
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
251
|
+
className: "flex gap-16",
|
|
252
|
+
children: [
|
|
253
|
+
/*#__PURE__*/ _jsxs(Tooltip, {
|
|
254
|
+
children: [
|
|
255
|
+
/*#__PURE__*/ _jsx(TooltipTrigger, {
|
|
256
|
+
asChild: true,
|
|
257
|
+
children: /*#__PURE__*/ _jsx(Button, {
|
|
258
|
+
variant: "primary",
|
|
259
|
+
children: "Hover for graph data"
|
|
260
|
+
})
|
|
261
|
+
}),
|
|
262
|
+
/*#__PURE__*/ _jsx(TooltipContent, {
|
|
263
|
+
variant: "inverted",
|
|
264
|
+
className: "w-160",
|
|
265
|
+
children: /*#__PURE__*/ _jsxs("div", {
|
|
266
|
+
className: "flex flex-col gap-4",
|
|
267
|
+
children: [
|
|
268
|
+
/*#__PURE__*/ _jsx("div", {
|
|
269
|
+
className: "text-xs text-foreground-neutral-subtle",
|
|
270
|
+
children: "Jul 22, 2025"
|
|
271
|
+
}),
|
|
272
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
273
|
+
className: "flex flex-col gap-4",
|
|
274
|
+
children: [
|
|
275
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
276
|
+
className: "flex items-center justify-between gap-12",
|
|
277
|
+
children: [
|
|
278
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
279
|
+
className: "flex flex-1 items-center gap-4",
|
|
280
|
+
children: [
|
|
281
|
+
/*#__PURE__*/ _jsx("div", {
|
|
282
|
+
className: "size-6 rounded-full bg-purple-500"
|
|
283
|
+
}),
|
|
284
|
+
/*#__PURE__*/ _jsx("span", {
|
|
285
|
+
className: "text-xs",
|
|
286
|
+
children: "Data A"
|
|
287
|
+
})
|
|
288
|
+
]
|
|
289
|
+
}),
|
|
290
|
+
/*#__PURE__*/ _jsx("span", {
|
|
291
|
+
className: "text-xs",
|
|
292
|
+
children: "$6.14"
|
|
293
|
+
})
|
|
294
|
+
]
|
|
295
|
+
}),
|
|
296
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
297
|
+
className: "flex items-center justify-between gap-12",
|
|
298
|
+
children: [
|
|
299
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
300
|
+
className: "flex flex-1 items-center gap-4",
|
|
301
|
+
children: [
|
|
302
|
+
/*#__PURE__*/ _jsx("div", {
|
|
303
|
+
className: "size-6 rounded-full bg-green-500"
|
|
304
|
+
}),
|
|
305
|
+
/*#__PURE__*/ _jsx("span", {
|
|
306
|
+
className: "text-xs",
|
|
307
|
+
children: "Data B"
|
|
308
|
+
})
|
|
309
|
+
]
|
|
310
|
+
}),
|
|
311
|
+
/*#__PURE__*/ _jsx("span", {
|
|
312
|
+
className: "text-xs",
|
|
313
|
+
children: "$4.37"
|
|
314
|
+
})
|
|
315
|
+
]
|
|
316
|
+
}),
|
|
317
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
318
|
+
className: "flex items-center justify-between gap-12",
|
|
319
|
+
children: [
|
|
320
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
321
|
+
className: "flex flex-1 items-center gap-4",
|
|
322
|
+
children: [
|
|
323
|
+
/*#__PURE__*/ _jsx("div", {
|
|
324
|
+
className: "size-6 rounded-full bg-orange-500"
|
|
325
|
+
}),
|
|
326
|
+
/*#__PURE__*/ _jsx("span", {
|
|
327
|
+
className: "text-xs",
|
|
328
|
+
children: "Data C"
|
|
329
|
+
})
|
|
330
|
+
]
|
|
331
|
+
}),
|
|
332
|
+
/*#__PURE__*/ _jsx("span", {
|
|
333
|
+
className: "text-xs",
|
|
334
|
+
children: "$12.88"
|
|
335
|
+
})
|
|
336
|
+
]
|
|
337
|
+
}),
|
|
338
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
339
|
+
className: "flex items-center justify-between gap-12",
|
|
340
|
+
children: [
|
|
341
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
342
|
+
className: "flex flex-1 items-center gap-4",
|
|
343
|
+
children: [
|
|
344
|
+
/*#__PURE__*/ _jsx("div", {
|
|
345
|
+
className: "size-6 rounded-full bg-blue-500"
|
|
346
|
+
}),
|
|
347
|
+
/*#__PURE__*/ _jsx("span", {
|
|
348
|
+
className: "text-xs",
|
|
349
|
+
children: "Data D"
|
|
350
|
+
})
|
|
351
|
+
]
|
|
352
|
+
}),
|
|
353
|
+
/*#__PURE__*/ _jsx("span", {
|
|
354
|
+
className: "text-xs",
|
|
355
|
+
children: "$2.91"
|
|
356
|
+
})
|
|
357
|
+
]
|
|
358
|
+
})
|
|
359
|
+
]
|
|
360
|
+
})
|
|
361
|
+
]
|
|
362
|
+
})
|
|
363
|
+
})
|
|
364
|
+
]
|
|
365
|
+
}),
|
|
366
|
+
/*#__PURE__*/ _jsxs(Tooltip, {
|
|
367
|
+
children: [
|
|
368
|
+
/*#__PURE__*/ _jsx(TooltipTrigger, {
|
|
369
|
+
asChild: true,
|
|
370
|
+
children: /*#__PURE__*/ _jsx(Button, {
|
|
371
|
+
variant: "secondary",
|
|
372
|
+
children: "Hover for graph data"
|
|
373
|
+
})
|
|
374
|
+
}),
|
|
375
|
+
/*#__PURE__*/ _jsx(TooltipContent, {
|
|
376
|
+
className: "w-160",
|
|
377
|
+
children: /*#__PURE__*/ _jsxs("div", {
|
|
378
|
+
className: "flex flex-col gap-4",
|
|
379
|
+
children: [
|
|
380
|
+
/*#__PURE__*/ _jsx("div", {
|
|
381
|
+
className: "text-xs text-foreground-neutral-subtle",
|
|
382
|
+
children: "Jul 22, 2025"
|
|
383
|
+
}),
|
|
384
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
385
|
+
className: "flex flex-col gap-4",
|
|
386
|
+
children: [
|
|
387
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
388
|
+
className: "flex items-center justify-between gap-12",
|
|
389
|
+
children: [
|
|
390
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
391
|
+
className: "flex flex-1 items-center gap-4",
|
|
392
|
+
children: [
|
|
393
|
+
/*#__PURE__*/ _jsx("div", {
|
|
394
|
+
className: "size-6 rounded-full bg-purple-500"
|
|
395
|
+
}),
|
|
396
|
+
/*#__PURE__*/ _jsx("span", {
|
|
397
|
+
className: "text-xs",
|
|
398
|
+
children: "Data A"
|
|
399
|
+
})
|
|
400
|
+
]
|
|
401
|
+
}),
|
|
402
|
+
/*#__PURE__*/ _jsx("span", {
|
|
403
|
+
className: "text-xs",
|
|
404
|
+
children: "$6.14"
|
|
405
|
+
})
|
|
406
|
+
]
|
|
407
|
+
}),
|
|
408
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
409
|
+
className: "flex items-center justify-between gap-12",
|
|
410
|
+
children: [
|
|
411
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
412
|
+
className: "flex flex-1 items-center gap-4",
|
|
413
|
+
children: [
|
|
414
|
+
/*#__PURE__*/ _jsx("div", {
|
|
415
|
+
className: "size-6 rounded-full bg-green-500"
|
|
416
|
+
}),
|
|
417
|
+
/*#__PURE__*/ _jsx("span", {
|
|
418
|
+
className: "text-xs",
|
|
419
|
+
children: "Data B"
|
|
420
|
+
})
|
|
421
|
+
]
|
|
422
|
+
}),
|
|
423
|
+
/*#__PURE__*/ _jsx("span", {
|
|
424
|
+
className: "text-xs",
|
|
425
|
+
children: "$4.37"
|
|
426
|
+
})
|
|
427
|
+
]
|
|
428
|
+
}),
|
|
429
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
430
|
+
className: "flex items-center justify-between gap-12",
|
|
431
|
+
children: [
|
|
432
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
433
|
+
className: "flex flex-1 items-center gap-4",
|
|
434
|
+
children: [
|
|
435
|
+
/*#__PURE__*/ _jsx("div", {
|
|
436
|
+
className: "size-6 rounded-full bg-orange-500"
|
|
437
|
+
}),
|
|
438
|
+
/*#__PURE__*/ _jsx("span", {
|
|
439
|
+
className: "text-xs",
|
|
440
|
+
children: "Data C"
|
|
441
|
+
})
|
|
442
|
+
]
|
|
443
|
+
}),
|
|
444
|
+
/*#__PURE__*/ _jsx("span", {
|
|
445
|
+
className: "text-xs",
|
|
446
|
+
children: "$12.88"
|
|
447
|
+
})
|
|
448
|
+
]
|
|
449
|
+
}),
|
|
450
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
451
|
+
className: "flex items-center justify-between gap-12",
|
|
452
|
+
children: [
|
|
453
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
454
|
+
className: "flex flex-1 items-center gap-4",
|
|
455
|
+
children: [
|
|
456
|
+
/*#__PURE__*/ _jsx("div", {
|
|
457
|
+
className: "size-6 rounded-full bg-blue-500"
|
|
458
|
+
}),
|
|
459
|
+
/*#__PURE__*/ _jsx("span", {
|
|
460
|
+
className: "text-xs",
|
|
461
|
+
children: "Data D"
|
|
462
|
+
})
|
|
463
|
+
]
|
|
464
|
+
}),
|
|
465
|
+
/*#__PURE__*/ _jsx("span", {
|
|
466
|
+
className: "text-xs",
|
|
467
|
+
children: "$2.91"
|
|
468
|
+
})
|
|
469
|
+
]
|
|
470
|
+
})
|
|
471
|
+
]
|
|
472
|
+
})
|
|
473
|
+
]
|
|
474
|
+
})
|
|
475
|
+
})
|
|
476
|
+
]
|
|
477
|
+
})
|
|
478
|
+
]
|
|
479
|
+
})
|
|
480
|
+
]
|
|
481
|
+
}),
|
|
482
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
483
|
+
className: "flex flex-col gap-16",
|
|
484
|
+
children: [
|
|
485
|
+
/*#__PURE__*/ _jsx(Code, {
|
|
486
|
+
variant: "label",
|
|
487
|
+
className: "text-foreground-neutral-subtle",
|
|
488
|
+
children: "Type=Breadcrumbs"
|
|
489
|
+
}),
|
|
490
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
491
|
+
className: "flex gap-16",
|
|
492
|
+
children: [
|
|
493
|
+
/*#__PURE__*/ _jsxs(Tooltip, {
|
|
494
|
+
children: [
|
|
495
|
+
/*#__PURE__*/ _jsx(TooltipTrigger, {
|
|
496
|
+
asChild: true,
|
|
497
|
+
children: /*#__PURE__*/ _jsx(Button, {
|
|
498
|
+
variant: "primary",
|
|
499
|
+
children: "Breadcrumb"
|
|
500
|
+
})
|
|
501
|
+
}),
|
|
502
|
+
/*#__PURE__*/ _jsx(TooltipContent, {
|
|
503
|
+
variant: "inverted",
|
|
504
|
+
children: /*#__PURE__*/ _jsxs("div", {
|
|
505
|
+
className: "flex items-center gap-6",
|
|
506
|
+
children: [
|
|
507
|
+
/*#__PURE__*/ _jsx("span", {
|
|
508
|
+
children: "Breadcrumb"
|
|
509
|
+
}),
|
|
510
|
+
/*#__PURE__*/ _jsx("span", {
|
|
511
|
+
className: "text-foreground-neutral-muted",
|
|
512
|
+
children: "/"
|
|
513
|
+
}),
|
|
514
|
+
/*#__PURE__*/ _jsx("span", {
|
|
515
|
+
children: "Breadcrumb"
|
|
516
|
+
})
|
|
517
|
+
]
|
|
518
|
+
})
|
|
519
|
+
})
|
|
520
|
+
]
|
|
521
|
+
}),
|
|
522
|
+
/*#__PURE__*/ _jsxs(Tooltip, {
|
|
523
|
+
children: [
|
|
524
|
+
/*#__PURE__*/ _jsx(TooltipTrigger, {
|
|
525
|
+
asChild: true,
|
|
526
|
+
children: /*#__PURE__*/ _jsx(Button, {
|
|
527
|
+
variant: "secondary",
|
|
528
|
+
children: "Breadcrumb"
|
|
529
|
+
})
|
|
530
|
+
}),
|
|
531
|
+
/*#__PURE__*/ _jsx(TooltipContent, {
|
|
532
|
+
children: /*#__PURE__*/ _jsxs("div", {
|
|
533
|
+
className: "flex items-center gap-6",
|
|
534
|
+
children: [
|
|
535
|
+
/*#__PURE__*/ _jsx("span", {
|
|
536
|
+
children: "Breadcrumb"
|
|
537
|
+
}),
|
|
538
|
+
/*#__PURE__*/ _jsx("span", {
|
|
539
|
+
className: "text-foreground-neutral-muted",
|
|
540
|
+
children: "/"
|
|
541
|
+
}),
|
|
542
|
+
/*#__PURE__*/ _jsx("span", {
|
|
543
|
+
children: "Breadcrumb"
|
|
544
|
+
})
|
|
545
|
+
]
|
|
546
|
+
})
|
|
547
|
+
})
|
|
548
|
+
]
|
|
549
|
+
})
|
|
550
|
+
]
|
|
551
|
+
})
|
|
552
|
+
]
|
|
553
|
+
})
|
|
554
|
+
]
|
|
555
|
+
})
|
|
556
|
+
]
|
|
557
|
+
})
|
|
558
|
+
};
|
|
559
|
+
|
|
560
|
+
//# sourceMappingURL=tooltip.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/tooltip/tooltip.stories.tsx"],"sourcesContent":["import type {Meta, StoryObj} from '@storybook/react';\nimport {Code} from 'components/typography';\nimport {Button} from '../button';\nimport {Tooltip, TooltipContent, type TooltipContentProps, TooltipTrigger} from './tooltip';\n\ntype TooltipStoryArgs = {\n defaultOpen?: boolean;\n delayDuration?: number;\n variant?: TooltipContentProps['variant'];\n size?: TooltipContentProps['size'];\n side?: TooltipContentProps['side'];\n align?: TooltipContentProps['align'];\n sideOffset?: TooltipContentProps['sideOffset'];\n animated?: TooltipContentProps['animated'];\n};\n\nconst meta = {\n title: 'Components/Tooltip',\n component: Tooltip,\n tags: ['autodocs'],\n argTypes: {\n defaultOpen: {control: 'boolean'},\n delayDuration: {control: 'number'},\n variant: {\n control: 'select',\n options: ['default', 'inverted', 'muted'],\n },\n size: {\n control: 'select',\n options: ['sm', 'md', 'lg'],\n },\n side: {\n control: 'select',\n options: ['top', 'bottom', 'left', 'right'],\n },\n align: {\n control: 'select',\n options: ['start', 'center', 'end'],\n },\n sideOffset: {control: 'number'},\n animated: {control: 'boolean'},\n },\n args: {\n defaultOpen: false,\n delayDuration: 0,\n variant: 'default',\n size: 'md',\n side: 'top',\n align: 'center',\n sideOffset: 8,\n animated: true,\n },\n} satisfies Meta<TooltipStoryArgs>;\n\nexport default meta;\ntype Story = StoryObj<typeof meta>;\n\nexport const Default: Story = {\n args: {\n defaultOpen: false,\n },\n\n render: (args: TooltipStoryArgs) => {\n const {defaultOpen, delayDuration, variant, size, side, align, sideOffset, animated} = args;\n return (\n <div className=\"flex items-center justify-center p-64\">\n <Tooltip defaultOpen={defaultOpen} delayDuration={delayDuration}>\n <TooltipTrigger asChild>\n <Button>Hover me</Button>\n </TooltipTrigger>\n <TooltipContent\n variant={variant}\n size={size}\n side={side}\n align={align}\n sideOffset={sideOffset}\n animated={animated}\n >\n Tooltip Text\n </TooltipContent>\n </Tooltip>\n </div>\n );\n },\n};\n\nexport const Types: Story = {\n render: () => (\n <div className=\"flex flex-col gap-64 p-64\">\n <Code variant=\"label\" className=\"text-foreground-neutral-subtle\">\n TYPES\n </Code>\n <div className=\"flex flex-col gap-32\">\n {/* Text Type */}\n <div className=\"flex flex-col gap-16\">\n <Code variant=\"label\" className=\"text-foreground-neutral-subtle\">\n Type=Text\n </Code>\n <div className=\"flex gap-16\">\n <Tooltip>\n <TooltipTrigger asChild>\n <Button variant=\"primary\">Tooltip Text</Button>\n </TooltipTrigger>\n <TooltipContent variant=\"inverted\">Tooltip Text</TooltipContent>\n </Tooltip>\n <Tooltip>\n <TooltipTrigger asChild>\n <Button variant=\"secondary\">Tooltip Text</Button>\n </TooltipTrigger>\n <TooltipContent>Tooltip Text</TooltipContent>\n </Tooltip>\n </div>\n </div>\n\n {/* Shortcut Type */}\n <div className=\"flex flex-col gap-16\">\n <Code variant=\"label\" className=\"text-foreground-neutral-subtle\">\n Type=Shortcut\n </Code>\n <div className=\"flex gap-16\">\n <Tooltip>\n <TooltipTrigger asChild>\n <Button variant=\"primary\">Tooltip Text</Button>\n </TooltipTrigger>\n <TooltipContent variant=\"inverted\">\n <div className=\"flex items-center gap-6\">\n <span>Tooltip Text</span>\n <div className=\"flex items-center gap-4\">\n <kbd className=\"flex h-16 w-16 items-center justify-center rounded-4 border border-border-neutral-base bg-background-field-base text-sm text-foreground-neutral-subtle\">\n ⌘\n </kbd>\n <kbd className=\"flex h-16 w-16 items-center justify-center rounded-4 border border-border-neutral-base bg-background-field-base text-sm text-foreground-neutral-subtle\">\n /\n </kbd>\n </div>\n </div>\n </TooltipContent>\n </Tooltip>\n <Tooltip>\n <TooltipTrigger asChild>\n <Button variant=\"secondary\">Tooltip Text</Button>\n </TooltipTrigger>\n <TooltipContent>\n <div className=\"flex items-center gap-6\">\n <span>Tooltip Text</span>\n <div className=\"flex items-center gap-4\">\n <kbd className=\"flex h-16 w-16 items-center justify-center rounded-4 border border-border-neutral-base bg-background-field-base text-xs text-foreground-neutral-subtle\">\n ⌘\n </kbd>\n <kbd className=\"flex h-16 w-16 items-center justify-center rounded-4 border border-border-neutral-base bg-background-field-base text-xs text-foreground-neutral-subtle\">\n /\n </kbd>\n </div>\n </div>\n </TooltipContent>\n </Tooltip>\n </div>\n </div>\n\n {/* Graph Type */}\n <div className=\"flex flex-col gap-16\">\n <Code variant=\"label\" className=\"text-foreground-neutral-subtle\">\n Type=Graph\n </Code>\n <div className=\"flex gap-16\">\n <Tooltip>\n <TooltipTrigger asChild>\n <Button variant=\"primary\">Hover for graph data</Button>\n </TooltipTrigger>\n <TooltipContent variant=\"inverted\" className=\"w-160\">\n <div className=\"flex flex-col gap-4\">\n <div className=\"text-xs text-foreground-neutral-subtle\">Jul 22, 2025</div>\n <div className=\"flex flex-col gap-4\">\n <div className=\"flex items-center justify-between gap-12\">\n <div className=\"flex flex-1 items-center gap-4\">\n <div className=\"size-6 rounded-full bg-purple-500\" />\n <span className=\"text-xs\">Data A</span>\n </div>\n <span className=\"text-xs\">$6.14</span>\n </div>\n <div className=\"flex items-center justify-between gap-12\">\n <div className=\"flex flex-1 items-center gap-4\">\n <div className=\"size-6 rounded-full bg-green-500\" />\n <span className=\"text-xs\">Data B</span>\n </div>\n <span className=\"text-xs\">$4.37</span>\n </div>\n <div className=\"flex items-center justify-between gap-12\">\n <div className=\"flex flex-1 items-center gap-4\">\n <div className=\"size-6 rounded-full bg-orange-500\" />\n <span className=\"text-xs\">Data C</span>\n </div>\n <span className=\"text-xs\">$12.88</span>\n </div>\n <div className=\"flex items-center justify-between gap-12\">\n <div className=\"flex flex-1 items-center gap-4\">\n <div className=\"size-6 rounded-full bg-blue-500\" />\n <span className=\"text-xs\">Data D</span>\n </div>\n <span className=\"text-xs\">$2.91</span>\n </div>\n </div>\n </div>\n </TooltipContent>\n </Tooltip>\n <Tooltip>\n <TooltipTrigger asChild>\n <Button variant=\"secondary\">Hover for graph data</Button>\n </TooltipTrigger>\n <TooltipContent className=\"w-160\">\n <div className=\"flex flex-col gap-4\">\n <div className=\"text-xs text-foreground-neutral-subtle\">Jul 22, 2025</div>\n <div className=\"flex flex-col gap-4\">\n <div className=\"flex items-center justify-between gap-12\">\n <div className=\"flex flex-1 items-center gap-4\">\n <div className=\"size-6 rounded-full bg-purple-500\" />\n <span className=\"text-xs\">Data A</span>\n </div>\n <span className=\"text-xs\">$6.14</span>\n </div>\n <div className=\"flex items-center justify-between gap-12\">\n <div className=\"flex flex-1 items-center gap-4\">\n <div className=\"size-6 rounded-full bg-green-500\" />\n <span className=\"text-xs\">Data B</span>\n </div>\n <span className=\"text-xs\">$4.37</span>\n </div>\n <div className=\"flex items-center justify-between gap-12\">\n <div className=\"flex flex-1 items-center gap-4\">\n <div className=\"size-6 rounded-full bg-orange-500\" />\n <span className=\"text-xs\">Data C</span>\n </div>\n <span className=\"text-xs\">$12.88</span>\n </div>\n <div className=\"flex items-center justify-between gap-12\">\n <div className=\"flex flex-1 items-center gap-4\">\n <div className=\"size-6 rounded-full bg-blue-500\" />\n <span className=\"text-xs\">Data D</span>\n </div>\n <span className=\"text-xs\">$2.91</span>\n </div>\n </div>\n </div>\n </TooltipContent>\n </Tooltip>\n </div>\n </div>\n\n {/* Breadcrumbs Type */}\n <div className=\"flex flex-col gap-16\">\n <Code variant=\"label\" className=\"text-foreground-neutral-subtle\">\n Type=Breadcrumbs\n </Code>\n <div className=\"flex gap-16\">\n <Tooltip>\n <TooltipTrigger asChild>\n <Button variant=\"primary\">Breadcrumb</Button>\n </TooltipTrigger>\n <TooltipContent variant=\"inverted\">\n <div className=\"flex items-center gap-6\">\n <span>Breadcrumb</span>\n <span className=\"text-foreground-neutral-muted\">/</span>\n <span>Breadcrumb</span>\n </div>\n </TooltipContent>\n </Tooltip>\n <Tooltip>\n <TooltipTrigger asChild>\n <Button variant=\"secondary\">Breadcrumb</Button>\n </TooltipTrigger>\n <TooltipContent>\n <div className=\"flex items-center gap-6\">\n <span>Breadcrumb</span>\n <span className=\"text-foreground-neutral-muted\">/</span>\n <span>Breadcrumb</span>\n </div>\n </TooltipContent>\n </Tooltip>\n </div>\n </div>\n </div>\n </div>\n ),\n};\n"],"names":["Code","Button","Tooltip","TooltipContent","TooltipTrigger","meta","title","component","tags","argTypes","defaultOpen","control","delayDuration","variant","options","size","side","align","sideOffset","animated","args","Default","render","div","className","asChild","Types","span","kbd"],"mappings":";AACA,SAAQA,IAAI,QAAO,wBAAwB;AAC3C,SAAQC,MAAM,QAAO,YAAY;AACjC,SAAQC,OAAO,EAAEC,cAAc,EAA4BC,cAAc,QAAO,YAAY;AAa5F,MAAMC,OAAO;IACXC,OAAO;IACPC,WAAWL;IACXM,MAAM;QAAC;KAAW;IAClBC,UAAU;QACRC,aAAa;YAACC,SAAS;QAAS;QAChCC,eAAe;YAACD,SAAS;QAAQ;QACjCE,SAAS;YACPF,SAAS;YACTG,SAAS;gBAAC;gBAAW;gBAAY;aAAQ;QAC3C;QACAC,MAAM;YACJJ,SAAS;YACTG,SAAS;gBAAC;gBAAM;gBAAM;aAAK;QAC7B;QACAE,MAAM;YACJL,SAAS;YACTG,SAAS;gBAAC;gBAAO;gBAAU;gBAAQ;aAAQ;QAC7C;QACAG,OAAO;YACLN,SAAS;YACTG,SAAS;gBAAC;gBAAS;gBAAU;aAAM;QACrC;QACAI,YAAY;YAACP,SAAS;QAAQ;QAC9BQ,UAAU;YAACR,SAAS;QAAS;IAC/B;IACAS,MAAM;QACJV,aAAa;QACbE,eAAe;QACfC,SAAS;QACTE,MAAM;QACNC,MAAM;QACNC,OAAO;QACPC,YAAY;QACZC,UAAU;IACZ;AACF;AAEA,eAAed,KAAK;AAGpB,OAAO,MAAMgB,UAAiB;IAC5BD,MAAM;QACJ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SAAQ;kEAAU;;;8DAE5B,KAACV;oDAAeU,SAAQ;8DACtB,cAAA,MAACU;wDAAIC,WAAU;;0EACb,KAACG;0EAAK;;0EACN,KAACA;gEAAKH,WAAU;0EAAgC;;0EAChD,KAACG;0EAAK;;;;;;;sDAIZ,MAACzB;;8DACC,KAACE;oDAAeqB,OAAO;8DACrB,cAAA,KAACxB;wDAAOY,SAAQ;kEAAY;;;8DAE9B,KAACV;8DACC,cAAA,MAACoB;wDAAIC,WAAU;;0EACb,KAACG;0EAAK;;0EACN,KAACA;gEAAKH,WAAU;0EAAgC;;0EAChD,KAACG;0EAAK;;;;;;;;;;;;;;;AASxB,EAAE"}
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,YAAY,CAAC"}
|
package/dist/hooks/index.js
CHANGED
package/dist/hooks/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/hooks/index.ts"],"sourcesContent":["export * from './useCopyToClipboard';\nexport * from './useTheme';\n"],"names":[],"mappings":"AAAA,cAAc,uBAAuB;AACrC,cAAc,aAAa"}
|
|
1
|
+
{"version":3,"sources":["../../src/hooks/index.ts"],"sourcesContent":["export * from './useCopyToClipboard';\nexport * from './useResolvedTheme';\nexport * from './useShikiHighlight';\nexport * from './useShikiStyleInjection';\nexport * from './useTheme';\n"],"names":[],"mappings":"AAAA,cAAc,uBAAuB;AACrC,cAAc,qBAAqB;AACnC,cAAc,sBAAsB;AACpC,cAAc,2BAA2B;AACzC,cAAc,aAAa"}
|