@cognite/aura 1.47174.0 → 1.47230.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 (27) hide show
  1. package/DESIGN.md +6 -0
  2. package/dist/components/ui/core/count/count.gallery.d.ts +2 -0
  3. package/dist/components/ui/core/count/count.gallery.js +55 -0
  4. package/dist/components/ui/core/count/count.gallery.js.map +1 -0
  5. package/dist/components/ui/core/separator/separator.gallery.d.ts +2 -0
  6. package/dist/components/ui/core/separator/separator.gallery.js +63 -0
  7. package/dist/components/ui/core/separator/separator.gallery.js.map +1 -0
  8. package/dist/components/ui/core/skeleton/skeleton.gallery.d.ts +2 -0
  9. package/dist/components/ui/core/skeleton/skeleton.gallery.js +22 -0
  10. package/dist/components/ui/core/skeleton/skeleton.gallery.js.map +1 -0
  11. package/dist/components/ui/core/slider/slider.gallery.d.ts +2 -0
  12. package/dist/components/ui/core/slider/slider.gallery.js +62 -0
  13. package/dist/components/ui/core/slider/slider.gallery.js.map +1 -0
  14. package/dist/components/ui/core/toggle/toggle.gallery.d.ts +2 -0
  15. package/dist/components/ui/core/toggle/toggle.gallery.js +32 -0
  16. package/dist/components/ui/core/toggle/toggle.gallery.js.map +1 -0
  17. package/dist/components/ui/core/tooltip/tooltip.gallery.d.ts +2 -0
  18. package/dist/components/ui/core/tooltip/tooltip.gallery.js +52 -0
  19. package/dist/components/ui/core/tooltip/tooltip.gallery.js.map +1 -0
  20. package/dist/styles.css +1 -1
  21. package/package.json +1 -1
  22. package/src/components/ui/core/count/count.md +33 -0
  23. package/src/components/ui/core/separator/separator.md +32 -0
  24. package/src/components/ui/core/skeleton/skeleton.md +33 -0
  25. package/src/components/ui/core/slider/slider.md +41 -0
  26. package/src/components/ui/core/toggle/toggle.md +39 -0
  27. package/src/components/ui/core/tooltip/tooltip.md +41 -0
package/DESIGN.md CHANGED
@@ -1458,6 +1458,7 @@ A keyboard-first search interface for discovering and executing actions, navigat
1458
1458
  #### Count
1459
1459
 
1460
1460
  **Storybook-slug:** count
1461
+ **Full guidance:** [count.md](./src/components/ui/core/count/count.md)
1461
1462
 
1462
1463
  **Definition**
1463
1464
  A compact numeric indicator used to surface quantities inline — for example, unread messages, selected items, or totals attached to labels or tabs.
@@ -1989,6 +1990,7 @@ Enables users to choose one or more predefined options from a dropdown list. Use
1989
1990
 
1990
1991
  **Storybook-slug:** separator
1991
1992
  **Docs-slug:** separator
1993
+ **Full guidance:** [separator.md](./src/components/ui/core/separator/separator.md)
1992
1994
 
1993
1995
  **Definition**
1994
1996
  A 1px visual divider between distinct content sections. Improves readability while remaining visually subtle.
@@ -2017,6 +2019,7 @@ A 1px visual divider between distinct content sections. Improves readability whi
2017
2019
  #### Skeleton
2018
2020
 
2019
2021
  **Storybook-slug:** skeleton
2022
+ **Full guidance:** [skeleton.md](./src/components/ui/core/skeleton/skeleton.md)
2020
2023
 
2021
2024
  **Definition**
2022
2025
  A loading placeholder that mimics the shape of incoming content, reducing perceived wait time and preventing layout shift.
@@ -2044,6 +2047,7 @@ A loading placeholder that mimics the shape of incoming content, reducing percei
2044
2047
 
2045
2048
  **Storybook-slug:** slider
2046
2049
  **Docs-slug:** slider
2050
+ **Full guidance:** [slider.md](./src/components/ui/core/slider/slider.md)
2047
2051
 
2048
2052
  **Definition**
2049
2053
  An interactive control for selecting a single value or a range from a continuous scale. Provides visual feedback and quick approximate value selection.
@@ -2242,6 +2246,7 @@ Allows users to select a time value through a clock interface.
2242
2246
  #### Toggle
2243
2247
 
2244
2248
  **Storybook-slug:** toggle
2249
+ **Full guidance:** [toggle.md](./src/components/ui/core/toggle/toggle.md)
2245
2250
 
2246
2251
  **Definition**
2247
2252
  A single pressable button with active/inactive state, used to toggle one option or formatting command on or off.
@@ -2351,6 +2356,7 @@ The single, persistent navigation bar at the top of every authenticated CDF and
2351
2356
 
2352
2357
  **Storybook-slug:** tooltip
2353
2358
  **Docs-slug:** tooltip
2359
+ **Full guidance:** [tooltip.md](./src/components/ui/core/tooltip/tooltip.md)
2354
2360
 
2355
2361
  **Definition**
2356
2362
  A short hint that appears on hover or focus. No heavy interaction inside.
@@ -0,0 +1,2 @@
1
+ import type { ReactElement } from "react";
2
+ export declare function CountGallery(): ReactElement;
@@ -0,0 +1,55 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Count, CountUnit, CountValue } from "./count.js";
3
+ export function CountGallery() {
4
+ return /*#__PURE__*/ _jsxs("div", {
5
+ className: "flex items-center gap-3",
6
+ children: [
7
+ /*#__PURE__*/ _jsxs(Count, {
8
+ variant: "default",
9
+ children: [
10
+ /*#__PURE__*/ _jsx(CountValue, {
11
+ children: "19"
12
+ }),
13
+ /*#__PURE__*/ _jsx(CountUnit, {
14
+ children: "℃"
15
+ })
16
+ ]
17
+ }),
18
+ /*#__PURE__*/ _jsxs(Count, {
19
+ variant: "success",
20
+ children: [
21
+ /*#__PURE__*/ _jsx(CountValue, {
22
+ children: "19"
23
+ }),
24
+ /*#__PURE__*/ _jsx(CountUnit, {
25
+ children: "℃"
26
+ })
27
+ ]
28
+ }),
29
+ /*#__PURE__*/ _jsxs(Count, {
30
+ variant: "warning",
31
+ children: [
32
+ /*#__PURE__*/ _jsx(CountValue, {
33
+ children: "19"
34
+ }),
35
+ /*#__PURE__*/ _jsx(CountUnit, {
36
+ children: "℉"
37
+ })
38
+ ]
39
+ }),
40
+ /*#__PURE__*/ _jsxs(Count, {
41
+ variant: "critical",
42
+ children: [
43
+ /*#__PURE__*/ _jsx(CountValue, {
44
+ children: "19"
45
+ }),
46
+ /*#__PURE__*/ _jsx(CountUnit, {
47
+ children: "℉"
48
+ })
49
+ ]
50
+ })
51
+ ]
52
+ });
53
+ }
54
+
55
+ //# sourceMappingURL=count.gallery.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/components/ui/core/count/count.gallery.tsx"],"sourcesContent":["import type { ReactElement } from 'react';\n\nimport { Count, CountUnit, CountValue } from './count';\n\nexport function CountGallery(): ReactElement {\n return (\n <div className=\"flex items-center gap-3\">\n <Count variant=\"default\">\n <CountValue>19</CountValue>\n <CountUnit>℃</CountUnit>\n </Count>\n <Count variant=\"success\">\n <CountValue>19</CountValue>\n <CountUnit>℃</CountUnit>\n </Count>\n <Count variant=\"warning\">\n <CountValue>19</CountValue>\n <CountUnit>℉</CountUnit>\n </Count>\n <Count variant=\"critical\">\n <CountValue>19</CountValue>\n <CountUnit>℉</CountUnit>\n </Count>\n </div>\n );\n}\n"],"names":["Count","CountUnit","CountValue","CountGallery","div","className","variant"],"mappings":";AAEA,SAASA,KAAK,EAAEC,SAAS,EAAEC,UAAU,QAAQ,aAAU;AAEvD,OAAO,SAASC;IACd,qBACE,MAACC;QAAIC,WAAU;;0BACb,MAACL;gBAAMM,SAAQ;;kCACb,KAACJ;kCAAW;;kCACZ,KAACD;kCAAU;;;;0BAEb,MAACD;gBAAMM,SAAQ;;kCACb,KAACJ;kCAAW;;kCACZ,KAACD;kCAAU;;;;0BAEb,MAACD;gBAAMM,SAAQ;;kCACb,KAACJ;kCAAW;;kCACZ,KAACD;kCAAU;;;;0BAEb,MAACD;gBAAMM,SAAQ;;kCACb,KAACJ;kCAAW;;kCACZ,KAACD;kCAAU;;;;;;AAInB"}
@@ -0,0 +1,2 @@
1
+ import type { ReactElement } from "react";
2
+ export declare function SeparatorGallery(): ReactElement;
@@ -0,0 +1,63 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Separator } from "./separator.js";
3
+ export function SeparatorGallery() {
4
+ return /*#__PURE__*/ _jsxs("div", {
5
+ className: "space-y-8",
6
+ children: [
7
+ /*#__PURE__*/ _jsxs("div", {
8
+ children: [
9
+ /*#__PURE__*/ _jsx("h3", {
10
+ className: "text-sm font-medium mb-4",
11
+ children: "Horizontal"
12
+ }),
13
+ /*#__PURE__*/ _jsxs("div", {
14
+ className: "w-75 space-y-4",
15
+ children: [
16
+ /*#__PURE__*/ _jsx("p", {
17
+ className: "text-sm",
18
+ children: "Content above"
19
+ }),
20
+ /*#__PURE__*/ _jsx(Separator, {
21
+ orientation: "horizontal"
22
+ }),
23
+ /*#__PURE__*/ _jsx("p", {
24
+ className: "text-sm",
25
+ children: "Content below"
26
+ })
27
+ ]
28
+ })
29
+ ]
30
+ }),
31
+ /*#__PURE__*/ _jsxs("div", {
32
+ children: [
33
+ /*#__PURE__*/ _jsx("h3", {
34
+ className: "text-sm font-medium mb-4",
35
+ children: "Vertical"
36
+ }),
37
+ /*#__PURE__*/ _jsxs("div", {
38
+ className: "flex h-5 items-center space-x-4 text-sm",
39
+ children: [
40
+ /*#__PURE__*/ _jsx("span", {
41
+ children: "Item 1"
42
+ }),
43
+ /*#__PURE__*/ _jsx(Separator, {
44
+ orientation: "vertical"
45
+ }),
46
+ /*#__PURE__*/ _jsx("span", {
47
+ children: "Item 2"
48
+ }),
49
+ /*#__PURE__*/ _jsx(Separator, {
50
+ orientation: "vertical"
51
+ }),
52
+ /*#__PURE__*/ _jsx("span", {
53
+ children: "Item 3"
54
+ })
55
+ ]
56
+ })
57
+ ]
58
+ })
59
+ ]
60
+ });
61
+ }
62
+
63
+ //# sourceMappingURL=separator.gallery.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/components/ui/core/separator/separator.gallery.tsx"],"sourcesContent":["import type { ReactElement } from 'react';\n\nimport { Separator } from './separator';\n\nexport function SeparatorGallery(): ReactElement {\n return (\n <div className=\"space-y-8\">\n <div>\n <h3 className=\"text-sm font-medium mb-4\">Horizontal</h3>\n <div className=\"w-75 space-y-4\">\n <p className=\"text-sm\">Content above</p>\n <Separator orientation=\"horizontal\" />\n <p className=\"text-sm\">Content below</p>\n </div>\n </div>\n <div>\n <h3 className=\"text-sm font-medium mb-4\">Vertical</h3>\n <div className=\"flex h-5 items-center space-x-4 text-sm\">\n <span>Item 1</span>\n <Separator orientation=\"vertical\" />\n <span>Item 2</span>\n <Separator orientation=\"vertical\" />\n <span>Item 3</span>\n </div>\n </div>\n </div>\n );\n}\n"],"names":["Separator","SeparatorGallery","div","className","h3","p","orientation","span"],"mappings":";AAEA,SAASA,SAAS,QAAQ,iBAAc;AAExC,OAAO,SAASC;IACd,qBACE,MAACC;QAAIC,WAAU;;0BACb,MAACD;;kCACC,KAACE;wBAAGD,WAAU;kCAA2B;;kCACzC,MAACD;wBAAIC,WAAU;;0CACb,KAACE;gCAAEF,WAAU;0CAAU;;0CACvB,KAACH;gCAAUM,aAAY;;0CACvB,KAACD;gCAAEF,WAAU;0CAAU;;;;;;0BAG3B,MAACD;;kCACC,KAACE;wBAAGD,WAAU;kCAA2B;;kCACzC,MAACD;wBAAIC,WAAU;;0CACb,KAACI;0CAAK;;0CACN,KAACP;gCAAUM,aAAY;;0CACvB,KAACC;0CAAK;;0CACN,KAACP;gCAAUM,aAAY;;0CACvB,KAACC;0CAAK;;;;;;;;AAKhB"}
@@ -0,0 +1,2 @@
1
+ import type { ReactElement } from "react";
2
+ export declare function SkeletonGallery(): ReactElement;
@@ -0,0 +1,22 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Skeleton } from "./skeleton.js";
3
+ export function SkeletonGallery() {
4
+ return /*#__PURE__*/ _jsxs("div", {
5
+ className: "flex flex-col gap-4 items-start",
6
+ role: "status",
7
+ "aria-label": "Loading skeleton",
8
+ children: [
9
+ /*#__PURE__*/ _jsx(Skeleton, {
10
+ className: "w-100 h-4"
11
+ }),
12
+ /*#__PURE__*/ _jsx(Skeleton, {
13
+ className: "size-12 rounded-full"
14
+ }),
15
+ /*#__PURE__*/ _jsx(Skeleton, {
16
+ className: "w-75 h-32"
17
+ })
18
+ ]
19
+ });
20
+ }
21
+
22
+ //# sourceMappingURL=skeleton.gallery.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/components/ui/core/skeleton/skeleton.gallery.tsx"],"sourcesContent":["import type { ReactElement } from 'react';\n\nimport { Skeleton } from './skeleton';\n\nexport function SkeletonGallery(): ReactElement {\n return (\n <div\n className=\"flex flex-col gap-4 items-start\"\n role=\"status\"\n aria-label=\"Loading skeleton\"\n >\n <Skeleton className=\"w-100 h-4\" />\n <Skeleton className=\"size-12 rounded-full\" />\n <Skeleton className=\"w-75 h-32\" />\n </div>\n );\n}\n"],"names":["Skeleton","SkeletonGallery","div","className","role","aria-label"],"mappings":";AAEA,SAASA,QAAQ,QAAQ,gBAAa;AAEtC,OAAO,SAASC;IACd,qBACE,MAACC;QACCC,WAAU;QACVC,MAAK;QACLC,cAAW;;0BAEX,KAACL;gBAASG,WAAU;;0BACpB,KAACH;gBAASG,WAAU;;0BACpB,KAACH;gBAASG,WAAU;;;;AAG1B"}
@@ -0,0 +1,2 @@
1
+ import { type ReactElement } from "react";
2
+ export declare function SliderGallery(): ReactElement;
@@ -0,0 +1,62 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useId } from "react";
3
+ import { Label } from "../label/label.js";
4
+ import { Slider } from "./slider.js";
5
+ export function SliderGallery() {
6
+ const id = useId();
7
+ return /*#__PURE__*/ _jsxs("div", {
8
+ className: "w-80 space-y-6",
9
+ children: [
10
+ /*#__PURE__*/ _jsxs("div", {
11
+ className: "grid gap-2",
12
+ children: [
13
+ /*#__PURE__*/ _jsx(Label, {
14
+ id: `${id}-volume`,
15
+ children: "Volume"
16
+ }),
17
+ /*#__PURE__*/ _jsx(Slider, {
18
+ defaultValue: [
19
+ 50
20
+ ],
21
+ "aria-labelledby": `${id}-volume`
22
+ })
23
+ ]
24
+ }),
25
+ /*#__PURE__*/ _jsxs("div", {
26
+ className: "grid gap-2",
27
+ children: [
28
+ /*#__PURE__*/ _jsx(Label, {
29
+ id: `${id}-price`,
30
+ children: "Price range"
31
+ }),
32
+ /*#__PURE__*/ _jsx(Slider, {
33
+ defaultValue: [
34
+ 20,
35
+ 80
36
+ ],
37
+ "aria-labelledby": `${id}-price`
38
+ })
39
+ ]
40
+ }),
41
+ /*#__PURE__*/ _jsxs("div", {
42
+ className: "group grid gap-2",
43
+ "data-disabled": "true",
44
+ children: [
45
+ /*#__PURE__*/ _jsx(Label, {
46
+ id: `${id}-brightness`,
47
+ children: "Brightness"
48
+ }),
49
+ /*#__PURE__*/ _jsx(Slider, {
50
+ defaultValue: [
51
+ 30
52
+ ],
53
+ "aria-labelledby": `${id}-brightness`,
54
+ disabled: true
55
+ })
56
+ ]
57
+ })
58
+ ]
59
+ });
60
+ }
61
+
62
+ //# sourceMappingURL=slider.gallery.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/components/ui/core/slider/slider.gallery.tsx"],"sourcesContent":["import { type ReactElement, useId } from 'react';\n\nimport { Label } from '../label/label';\n\nimport { Slider } from './slider';\n\nexport function SliderGallery(): ReactElement {\n const id = useId();\n\n return (\n <div className=\"w-80 space-y-6\">\n <div className=\"grid gap-2\">\n <Label id={`${id}-volume`}>Volume</Label>\n <Slider defaultValue={[50]} aria-labelledby={`${id}-volume`} />\n </div>\n <div className=\"grid gap-2\">\n <Label id={`${id}-price`}>Price range</Label>\n <Slider defaultValue={[20, 80]} aria-labelledby={`${id}-price`} />\n </div>\n <div className=\"group grid gap-2\" data-disabled=\"true\">\n <Label id={`${id}-brightness`}>Brightness</Label>\n <Slider\n defaultValue={[30]}\n aria-labelledby={`${id}-brightness`}\n disabled\n />\n </div>\n </div>\n );\n}\n"],"names":["useId","Label","Slider","SliderGallery","id","div","className","defaultValue","aria-labelledby","data-disabled","disabled"],"mappings":";AAAA,SAA4BA,KAAK,QAAQ,QAAQ;AAEjD,SAASC,KAAK,QAAQ,oBAAiB;AAEvC,SAASC,MAAM,QAAQ,cAAW;AAElC,OAAO,SAASC;IACd,MAAMC,KAAKJ;IAEX,qBACE,MAACK;QAAIC,WAAU;;0BACb,MAACD;gBAAIC,WAAU;;kCACb,KAACL;wBAAMG,IAAI,GAAGA,GAAG,OAAO,CAAC;kCAAE;;kCAC3B,KAACF;wBAAOK,cAAc;4BAAC;yBAAG;wBAAEC,mBAAiB,GAAGJ,GAAG,OAAO,CAAC;;;;0BAE7D,MAACC;gBAAIC,WAAU;;kCACb,KAACL;wBAAMG,IAAI,GAAGA,GAAG,MAAM,CAAC;kCAAE;;kCAC1B,KAACF;wBAAOK,cAAc;4BAAC;4BAAI;yBAAG;wBAAEC,mBAAiB,GAAGJ,GAAG,MAAM,CAAC;;;;0BAEhE,MAACC;gBAAIC,WAAU;gBAAmBG,iBAAc;;kCAC9C,KAACR;wBAAMG,IAAI,GAAGA,GAAG,WAAW,CAAC;kCAAE;;kCAC/B,KAACF;wBACCK,cAAc;4BAAC;yBAAG;wBAClBC,mBAAiB,GAAGJ,GAAG,WAAW,CAAC;wBACnCM,QAAQ;;;;;;AAKlB"}
@@ -0,0 +1,2 @@
1
+ import type { ReactElement } from "react";
2
+ export declare function ToggleGallery(): ReactElement;
@@ -0,0 +1,32 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { IconBold, IconFilter, IconItalic } from "@tabler/icons-react";
3
+ import { Toggle } from "./toggle.js";
4
+ export function ToggleGallery() {
5
+ return /*#__PURE__*/ _jsxs("div", {
6
+ className: "flex items-center gap-3",
7
+ children: [
8
+ /*#__PURE__*/ _jsx(Toggle, {
9
+ "aria-label": "Bold",
10
+ children: /*#__PURE__*/ _jsx(IconBold, {})
11
+ }),
12
+ /*#__PURE__*/ _jsx(Toggle, {
13
+ "aria-label": "Italic",
14
+ defaultPressed: true,
15
+ children: /*#__PURE__*/ _jsx(IconItalic, {})
16
+ }),
17
+ /*#__PURE__*/ _jsx(Toggle, {
18
+ icon: /*#__PURE__*/ _jsx(IconFilter, {}),
19
+ label: "Open",
20
+ count: 3
21
+ }),
22
+ /*#__PURE__*/ _jsx(Toggle, {
23
+ icon: /*#__PURE__*/ _jsx(IconFilter, {}),
24
+ label: "Closed",
25
+ count: 12,
26
+ disabled: true
27
+ })
28
+ ]
29
+ });
30
+ }
31
+
32
+ //# sourceMappingURL=toggle.gallery.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/components/ui/core/toggle/toggle.gallery.tsx"],"sourcesContent":["import type { ReactElement } from 'react';\n\nimport { IconBold, IconFilter, IconItalic } from '@tabler/icons-react';\n\nimport { Toggle } from './toggle';\n\nexport function ToggleGallery(): ReactElement {\n return (\n <div className=\"flex items-center gap-3\">\n <Toggle aria-label=\"Bold\">\n <IconBold />\n </Toggle>\n <Toggle aria-label=\"Italic\" defaultPressed>\n <IconItalic />\n </Toggle>\n <Toggle icon={<IconFilter />} label=\"Open\" count={3} />\n <Toggle icon={<IconFilter />} label=\"Closed\" count={12} disabled />\n </div>\n );\n}\n"],"names":["IconBold","IconFilter","IconItalic","Toggle","ToggleGallery","div","className","aria-label","defaultPressed","icon","label","count","disabled"],"mappings":";AAEA,SAASA,QAAQ,EAAEC,UAAU,EAAEC,UAAU,QAAQ,sBAAsB;AAEvE,SAASC,MAAM,QAAQ,cAAW;AAElC,OAAO,SAASC;IACd,qBACE,MAACC;QAAIC,WAAU;;0BACb,KAACH;gBAAOI,cAAW;0BACjB,cAAA,KAACP;;0BAEH,KAACG;gBAAOI,cAAW;gBAASC,cAAc;0BACxC,cAAA,KAACN;;0BAEH,KAACC;gBAAOM,oBAAM,KAACR;gBAAeS,OAAM;gBAAOC,OAAO;;0BAClD,KAACR;gBAAOM,oBAAM,KAACR;gBAAeS,OAAM;gBAASC,OAAO;gBAAIC,QAAQ;;;;AAGtE"}
@@ -0,0 +1,2 @@
1
+ import type { ReactElement } from "react";
2
+ export declare function TooltipGallery(): ReactElement;
@@ -0,0 +1,52 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Button } from "../button/button.js";
3
+ import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./tooltip.js";
4
+ export function TooltipGallery() {
5
+ return /*#__PURE__*/ _jsx(TooltipProvider, {
6
+ children: /*#__PURE__*/ _jsxs("div", {
7
+ className: "flex justify-center gap-2",
8
+ children: [
9
+ /*#__PURE__*/ _jsxs(Tooltip, {
10
+ children: [
11
+ /*#__PURE__*/ _jsx(TooltipTrigger, {
12
+ render: /*#__PURE__*/ _jsx(Button, {
13
+ children: "Hover me"
14
+ })
15
+ }),
16
+ /*#__PURE__*/ _jsx(TooltipContent, {
17
+ children: "Publishing will make it available to all users"
18
+ })
19
+ ]
20
+ }),
21
+ /*#__PURE__*/ _jsxs(Tooltip, {
22
+ children: [
23
+ /*#__PURE__*/ _jsx(TooltipTrigger, {
24
+ render: /*#__PURE__*/ _jsx(Button, {
25
+ variant: "outline",
26
+ children: "More info"
27
+ })
28
+ }),
29
+ /*#__PURE__*/ _jsx(TooltipContent, {
30
+ children: "This button does something important"
31
+ })
32
+ ]
33
+ }),
34
+ /*#__PURE__*/ _jsxs(Tooltip, {
35
+ children: [
36
+ /*#__PURE__*/ _jsx(TooltipTrigger, {
37
+ render: /*#__PURE__*/ _jsx(Button, {
38
+ variant: "destructive",
39
+ children: "Delete"
40
+ })
41
+ }),
42
+ /*#__PURE__*/ _jsx(TooltipContent, {
43
+ children: "This action cannot be undone"
44
+ })
45
+ ]
46
+ })
47
+ ]
48
+ })
49
+ });
50
+ }
51
+
52
+ //# sourceMappingURL=tooltip.gallery.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/components/ui/core/tooltip/tooltip.gallery.tsx"],"sourcesContent":["import type { ReactElement } from 'react';\n\nimport { Button } from '../button/button';\n\nimport {\n Tooltip,\n TooltipContent,\n TooltipProvider,\n TooltipTrigger,\n} from './tooltip';\n\nexport function TooltipGallery(): ReactElement {\n return (\n <TooltipProvider>\n <div className=\"flex justify-center gap-2\">\n <Tooltip>\n <TooltipTrigger render={<Button>Hover me</Button>} />\n <TooltipContent>\n Publishing will make it available to all users\n </TooltipContent>\n </Tooltip>\n\n <Tooltip>\n <TooltipTrigger\n render={<Button variant=\"outline\">More info</Button>}\n />\n <TooltipContent>This button does something important</TooltipContent>\n </Tooltip>\n\n <Tooltip>\n <TooltipTrigger\n render={<Button variant=\"destructive\">Delete</Button>}\n />\n <TooltipContent>This action cannot be undone</TooltipContent>\n </Tooltip>\n </div>\n </TooltipProvider>\n );\n}\n"],"names":["Button","Tooltip","TooltipContent","TooltipProvider","TooltipTrigger","TooltipGallery","div","className","render","variant"],"mappings":";AAEA,SAASA,MAAM,QAAQ,sBAAmB;AAE1C,SACEC,OAAO,EACPC,cAAc,EACdC,eAAe,EACfC,cAAc,QACT,eAAY;AAEnB,OAAO,SAASC;IACd,qBACE,KAACF;kBACC,cAAA,MAACG;YAAIC,WAAU;;8BACb,MAACN;;sCACC,KAACG;4BAAeI,sBAAQ,KAACR;0CAAO;;;sCAChC,KAACE;sCAAe;;;;8BAKlB,MAACD;;sCACC,KAACG;4BACCI,sBAAQ,KAACR;gCAAOS,SAAQ;0CAAU;;;sCAEpC,KAACP;sCAAe;;;;8BAGlB,MAACD;;sCACC,KAACG;4BACCI,sBAAQ,KAACR;gCAAOS,SAAQ;0CAAc;;;sCAExC,KAACP;sCAAe;;;;;;;AAK1B"}