@cryptlex/web-components 5.1.1 → 5.2.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 (128) hide show
  1. package/lib/components/data-table/data-table-filter.tsx +220 -0
  2. package/lib/components/data-table/data-table.tsx +593 -0
  3. package/lib/components/data-table/table-commons.tsx +233 -0
  4. package/lib/components/inputs/checkbox.tsx +72 -0
  5. package/lib/components/inputs/date-picker.tsx +130 -0
  6. package/lib/components/inputs/datefield.tsx +109 -0
  7. package/lib/components/inputs/field.tsx +106 -0
  8. package/lib/components/inputs/id-search.tsx +83 -0
  9. package/lib/components/inputs/input-otp.tsx +63 -0
  10. package/lib/components/inputs/multi-select.tsx +62 -0
  11. package/lib/components/inputs/numberfield.tsx +110 -0
  12. package/lib/components/inputs/searchfield.tsx +87 -0
  13. package/lib/components/inputs/select-options.tsx +303 -0
  14. package/lib/components/inputs/select.tsx +140 -0
  15. package/lib/components/inputs/textfield.tsx +96 -0
  16. package/lib/components/key-value-card/key-value-card.tsx +115 -0
  17. package/lib/components/ui/alert.tsx +32 -0
  18. package/lib/components/ui/avatar.tsx +22 -0
  19. package/lib/components/ui/badge.tsx +19 -0
  20. package/lib/components/ui/breadcrumbs.tsx +104 -0
  21. package/lib/components/ui/button.tsx +66 -0
  22. package/lib/components/ui/calendar.tsx +220 -0
  23. package/lib/components/ui/card.tsx +58 -0
  24. package/lib/components/ui/dialog.tsx +172 -0
  25. package/lib/components/ui/disclosure.tsx +113 -0
  26. package/lib/components/ui/list-box.tsx +86 -0
  27. package/lib/components/ui/loader.tsx +10 -0
  28. package/lib/components/ui/menu.tsx +168 -0
  29. package/lib/components/ui/popover.tsx +37 -0
  30. package/lib/components/ui/sidebar.tsx +552 -0
  31. package/lib/components/ui/skeleton.tsx +7 -0
  32. package/lib/components/ui/sonner.tsx +26 -0
  33. package/lib/components/ui/table.tsx +79 -0
  34. package/lib/components/ui/tabs.tsx +82 -0
  35. package/lib/components/ui/timeline.tsx +52 -0
  36. package/lib/components/ui/tooltip.tsx +30 -0
  37. package/lib/tokens.scss +89 -0
  38. package/lib/utils/form-context.tsx +7 -0
  39. package/lib/utils/form-hook.tsx +33 -0
  40. package/lib/utils/primitives.ts +68 -0
  41. package/lib/utils/resource-names.tsx +245 -0
  42. package/lib/utils/use-mobile.tsx +21 -0
  43. package/package.json +28 -38
  44. package/dist/components/data-table/data-table-filter.es.js +0 -132
  45. package/dist/components/data-table/data-table-filter.es.js.map +0 -1
  46. package/dist/components/data-table/data-table.es.js +0 -412
  47. package/dist/components/data-table/data-table.es.js.map +0 -1
  48. package/dist/components/data-table/table-commons.es.js +0 -136
  49. package/dist/components/data-table/table-commons.es.js.map +0 -1
  50. package/dist/components/inputs/checkbox.es.js +0 -61
  51. package/dist/components/inputs/checkbox.es.js.map +0 -1
  52. package/dist/components/inputs/date-picker.es.js +0 -124
  53. package/dist/components/inputs/date-picker.es.js.map +0 -1
  54. package/dist/components/inputs/datefield.es.js +0 -90
  55. package/dist/components/inputs/datefield.es.js.map +0 -1
  56. package/dist/components/inputs/field.es.js +0 -91
  57. package/dist/components/inputs/field.es.js.map +0 -1
  58. package/dist/components/inputs/id-search.es.js +0 -61
  59. package/dist/components/inputs/id-search.es.js.map +0 -1
  60. package/dist/components/inputs/input-otp.es.js +0 -60
  61. package/dist/components/inputs/input-otp.es.js.map +0 -1
  62. package/dist/components/inputs/multi-select.es.js +0 -47
  63. package/dist/components/inputs/multi-select.es.js.map +0 -1
  64. package/dist/components/inputs/numberfield.es.js +0 -101
  65. package/dist/components/inputs/numberfield.es.js.map +0 -1
  66. package/dist/components/inputs/searchfield.es.js +0 -80
  67. package/dist/components/inputs/searchfield.es.js.map +0 -1
  68. package/dist/components/inputs/select-options.es.js +0 -286
  69. package/dist/components/inputs/select-options.es.js.map +0 -1
  70. package/dist/components/inputs/select.es.js +0 -113
  71. package/dist/components/inputs/select.es.js.map +0 -1
  72. package/dist/components/inputs/textfield.es.js +0 -86
  73. package/dist/components/inputs/textfield.es.js.map +0 -1
  74. package/dist/components/key-value-card/key-value-card.es.js +0 -53
  75. package/dist/components/key-value-card/key-value-card.es.js.map +0 -1
  76. package/dist/components/ui/alert.es.js +0 -29
  77. package/dist/components/ui/alert.es.js.map +0 -1
  78. package/dist/components/ui/avatar.es.js +0 -19
  79. package/dist/components/ui/avatar.es.js.map +0 -1
  80. package/dist/components/ui/badge.es.js +0 -19
  81. package/dist/components/ui/badge.es.js.map +0 -1
  82. package/dist/components/ui/breadcrumbs.es.js +0 -104
  83. package/dist/components/ui/breadcrumbs.es.js.map +0 -1
  84. package/dist/components/ui/button.es.js +0 -58
  85. package/dist/components/ui/button.es.js.map +0 -1
  86. package/dist/components/ui/calendar.es.js +0 -163
  87. package/dist/components/ui/calendar.es.js.map +0 -1
  88. package/dist/components/ui/card.es.js +0 -53
  89. package/dist/components/ui/card.es.js.map +0 -1
  90. package/dist/components/ui/dialog.es.js +0 -156
  91. package/dist/components/ui/dialog.es.js.map +0 -1
  92. package/dist/components/ui/disclosure.es.js +0 -90
  93. package/dist/components/ui/disclosure.es.js.map +0 -1
  94. package/dist/components/ui/list-box.es.js +0 -76
  95. package/dist/components/ui/list-box.es.js.map +0 -1
  96. package/dist/components/ui/loader.es.js +0 -10
  97. package/dist/components/ui/loader.es.js.map +0 -1
  98. package/dist/components/ui/menu.es.js +0 -129
  99. package/dist/components/ui/menu.es.js.map +0 -1
  100. package/dist/components/ui/popover.es.js +0 -32
  101. package/dist/components/ui/popover.es.js.map +0 -1
  102. package/dist/components/ui/sidebar.es.js +0 -456
  103. package/dist/components/ui/sidebar.es.js.map +0 -1
  104. package/dist/components/ui/skeleton.es.js +0 -9
  105. package/dist/components/ui/skeleton.es.js.map +0 -1
  106. package/dist/components/ui/sonner.es.js +0 -24
  107. package/dist/components/ui/sonner.es.js.map +0 -1
  108. package/dist/components/ui/table.es.js +0 -88
  109. package/dist/components/ui/table.es.js.map +0 -1
  110. package/dist/components/ui/tabs.es.js +0 -83
  111. package/dist/components/ui/tabs.es.js.map +0 -1
  112. package/dist/components/ui/timeline.es.js +0 -46
  113. package/dist/components/ui/timeline.es.js.map +0 -1
  114. package/dist/components/ui/tooltip.es.js +0 -28
  115. package/dist/components/ui/tooltip.es.js.map +0 -1
  116. package/dist/index.es.d.ts +0 -861
  117. package/dist/index.es.js +0 -218
  118. package/dist/index.es.js.map +0 -1
  119. package/dist/utils/form-context.es.js +0 -8
  120. package/dist/utils/form-context.es.js.map +0 -1
  121. package/dist/utils/form-hook.es.js +0 -30
  122. package/dist/utils/form-hook.es.js.map +0 -1
  123. package/dist/utils/primitives.es.js +0 -31
  124. package/dist/utils/primitives.es.js.map +0 -1
  125. package/dist/utils/resource-names.es.js +0 -182
  126. package/dist/utils/resource-names.es.js.map +0 -1
  127. package/dist/utils/use-mobile.es.js +0 -17
  128. package/dist/utils/use-mobile.es.js.map +0 -1
@@ -1,83 +0,0 @@
1
- import { jsx as n } from "react/jsx-runtime";
2
- import { Tabs as i, composeRenderProps as r, TabList as s, Tab as l, TabPanel as c } from "react-aria-components";
3
- import { cn as o } from "../../utils/primitives.es.js";
4
- function m({ className: t, ...a }) {
5
- return /* @__PURE__ */ n(
6
- i,
7
- {
8
- className: r(
9
- t,
10
- (e) => o(
11
- "group flex flex-col gap-2",
12
- /* Orientation */
13
- "data-[orientation=vertical]:flex-row",
14
- e
15
- )
16
- ),
17
- ...a
18
- }
19
- );
20
- }
21
- function d({
22
- className: t,
23
- ...a
24
- }) {
25
- return /* @__PURE__ */ n(
26
- s,
27
- {
28
- className: r(
29
- t,
30
- (e) => o(
31
- "inline-flex items-center border-b text-muted-foreground",
32
- /* Orientation */
33
- "data-[orientation=vertical]:h-auto data-[orientation=vertical]:flex-col",
34
- e
35
- )
36
- ),
37
- ...a
38
- }
39
- );
40
- }
41
- function p({ className: t, ...a }) {
42
- return /* @__PURE__ */ n(
43
- l,
44
- {
45
- className: r(
46
- t,
47
- (e) => o(
48
- "btn btn-ghost leading-none text-accent h-input truncate inline-flex items-center px-3 body font-medium transition-all",
49
- /* Selected */
50
- "data-[selected]:bg-primary/20 data-[selected]:text-primary",
51
- /* Orientation */
52
- "group-data-[orientation=vertical]:w-full",
53
- e
54
- )
55
- ),
56
- ...a
57
- }
58
- );
59
- }
60
- function x({ className: t, ...a }) {
61
- return /* @__PURE__ */ n(
62
- c,
63
- {
64
- className: r(
65
- t,
66
- (e) => o(
67
- "ring-offset-background",
68
- /* Focus Visible */
69
- "focus-ring",
70
- e
71
- )
72
- ),
73
- ...a
74
- }
75
- );
76
- }
77
- export {
78
- p as Tab,
79
- d as TabList,
80
- x as TabPanel,
81
- m as Tabs
82
- };
83
- //# sourceMappingURL=tabs.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tabs.es.js","sources":["../../../lib/components/ui/tabs.tsx"],"sourcesContent":["import {\n Tab as AriaTab,\n TabList as AriaTabList,\n TabListProps as AriaTabListProps,\n TabPanel as AriaTabPanel,\n TabPanelProps as AriaTabPanelProps,\n TabProps as AriaTabProps,\n Tabs as AriaTabs,\n TabsProps as AriaTabsProps,\n composeRenderProps,\n} from \"react-aria-components\"\n\nimport { cn } from \"@/utils/index\"\n\nexport function Tabs({ className, ...props }: AriaTabsProps) {\n return (\n <AriaTabs\n className={composeRenderProps(className, (className) =>\n cn(\n \"group flex flex-col gap-2\",\n /* Orientation */\n \"data-[orientation=vertical]:flex-row\",\n className\n )\n )}\n {...props}\n />\n )\n}\n\nexport function TabList<T extends object>({\n className,\n ...props\n}: AriaTabListProps<T>) {\n return (\n <AriaTabList\n className={composeRenderProps(className, (className) =>\n cn(\n \"inline-flex items-center border-b text-muted-foreground\",\n /* Orientation */\n \"data-[orientation=vertical]:h-auto data-[orientation=vertical]:flex-col\",\n className\n )\n )}\n {...props}\n />\n )\n}\n\nexport function Tab({ className, ...props }: AriaTabProps) {\n return (\n <AriaTab\n className={composeRenderProps(className, (className) =>\n cn(\n \"btn btn-ghost leading-none text-accent h-input truncate inline-flex items-center px-3 body font-medium transition-all\",\n /* Selected */\n \"data-[selected]:bg-primary/20 data-[selected]:text-primary\",\n /* Orientation */\n \"group-data-[orientation=vertical]:w-full\",\n className\n )\n )}\n {...props}\n />\n )\n}\n\nexport function TabPanel({ className, ...props }: AriaTabPanelProps) {\n return (\n <AriaTabPanel\n className={composeRenderProps(className, (className) =>\n cn(\n \"ring-offset-background\",\n /* Focus Visible */\n \"focus-ring\",\n className\n )\n )}\n {...props}\n />\n )\n}"],"names":["Tabs","className","props","jsx","AriaTabs","composeRenderProps","cn","TabList","AriaTabList","Tab","AriaTab","TabPanel","AriaTabPanel"],"mappings":";;;AAcO,SAASA,EAAK,EAAE,WAAAC,GAAW,GAAGC,KAAwB;AAC3D,SACE,gBAAAC;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,WAAWC;AAAA,QAAmBJ;AAAA,QAAW,CAACA,MACxCK;AAAA,UACE;AAAA;AAAA,UAEA;AAAA,UACAL;AAAAA,QAAA;AAAA,MACF;AAAA,MAED,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGV;AAEO,SAASK,EAA0B;AAAA,EACxC,WAAAN;AAAA,EACA,GAAGC;AACL,GAAwB;AACtB,SACE,gBAAAC;AAAA,IAACK;AAAAA,IAAA;AAAA,MACC,WAAWH;AAAA,QAAmBJ;AAAA,QAAW,CAACA,MACxCK;AAAA,UACE;AAAA;AAAA,UAEA;AAAA,UACAL;AAAAA,QAAA;AAAA,MACF;AAAA,MAED,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGV;AAEO,SAASO,EAAI,EAAE,WAAAR,GAAW,GAAGC,KAAuB;AACzD,SACE,gBAAAC;AAAA,IAACO;AAAAA,IAAA;AAAA,MACC,WAAWL;AAAA,QAAmBJ;AAAA,QAAW,CAACA,MACxCK;AAAA,UACE;AAAA;AAAA,UAEA;AAAA;AAAA,UAEA;AAAA,UACAL;AAAAA,QAAA;AAAA,MACF;AAAA,MAED,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGV;AAEO,SAASS,EAAS,EAAE,WAAAV,GAAW,GAAGC,KAA4B;AACnE,SACE,gBAAAC;AAAA,IAACS;AAAAA,IAAA;AAAA,MACC,WAAWP;AAAA,QAAmBJ;AAAA,QAAW,CAACA,MACxCK;AAAA,UACE;AAAA;AAAA,UAEA;AAAA,UACAL;AAAAA,QAAA;AAAA,MACF;AAAA,MAED,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGV;"}
@@ -1,46 +0,0 @@
1
- import { jsx as n, jsxs as c } from "react/jsx-runtime";
2
- import { cva as a } from "class-variance-authority";
3
- import { cn as i } from "../../utils/primitives.es.js";
4
- function g({ className: t, ...e }) {
5
- return /* @__PURE__ */ n("ol", { className: i("grid grid-col-1 gap-icon", t), ...e });
6
- }
7
- function f({ className: t, ...e }) {
8
- return /* @__PURE__ */ n("li", { className: i("grid grid-cols-[4rem_2rem_1fr] grid-rows-subgrid list-none gap-icon", t), ...e });
9
- }
10
- const l = a(
11
- "p-1 rounded-full",
12
- {
13
- variants: {
14
- variant: {
15
- destructive: "text-destructive-foreground bg-destructive",
16
- success: "text-success-foreground bg-success",
17
- muted: "text-muted-foreground bg-muted"
18
- }
19
- },
20
- defaultVariants: {
21
- variant: "muted"
22
- }
23
- }
24
- );
25
- function p({ icon: t, className: e, variant: r, ...s }) {
26
- return /* @__PURE__ */ c("div", { ...s, className: "flex flex-col items-center gap-2", children: [
27
- /* @__PURE__ */ n("div", { className: i(l({ variant: r, className: e })), children: /* @__PURE__ */ n(t, { className: "size-icon " }) }),
28
- /* @__PURE__ */ n("div", { className: "h-full w-[1px]" })
29
- ] });
30
- }
31
- function v({ className: t, date: e, dateFormatter: r, ...s }) {
32
- const o = `${(e.getMonth() + 1).toString().padStart(2, "0")}-${e.getFullYear()}`;
33
- return /* @__PURE__ */ n("time", { ...s, dateTime: e.toISOString(), className: i("font-mono leading-none text-muted", t), children: r ? r(e) : o });
34
- }
35
- function x({ className: t, ...e }) {
36
- return /* @__PURE__ */ n("section", { className: i("", t), ...e });
37
- }
38
- export {
39
- g as Timeline,
40
- x as TimelineContent,
41
- v as TimelineDate,
42
- p as TimelineIcon,
43
- f as TimelineItem,
44
- l as timelineIconVariants
45
- };
46
- //# sourceMappingURL=timeline.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"timeline.es.js","sources":["../../../lib/components/ui/timeline.tsx"],"sourcesContent":["import { cn } from \"@/utils\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport type { LucideIcon } from \"lucide-react\";\n\nexport function Timeline({ className, ...props }: React.ComponentProps<'ol'>) {\n return <ol className={cn(\"grid grid-col-1 gap-icon\", className)} {...props} />\n}\n\nexport function TimelineItem({ className, ...props }: React.ComponentProps<'li'> & {}) {\n return (\n <li className={cn(\"grid grid-cols-[4rem_2rem_1fr] grid-rows-subgrid list-none gap-icon\", className)} {...props} />\n )\n}\n\nexport const timelineIconVariants = cva(\n `p-1 rounded-full`,\n {\n variants: {\n variant: {\n destructive: \"text-destructive-foreground bg-destructive\",\n success: \"text-success-foreground bg-success\",\n muted: \"text-muted-foreground bg-muted\",\n },\n },\n defaultVariants: {\n variant: \"muted\",\n },\n },\n);\n\nexport function TimelineIcon({ icon: Icon, className, variant, ...props }: Omit<React.ComponentProps<'div'>, 'children'> & VariantProps<typeof timelineIconVariants> & {\n icon: LucideIcon\n}) {\n return <div {...props} className=\"flex flex-col items-center gap-2\">\n <div className={cn(timelineIconVariants({ variant, className }))}>\n <Icon className=\"size-icon \" />\n </div>\n <div className=\"h-full w-[1px]\" />\n </div>\n}\n\nexport function TimelineDate({ className, date, dateFormatter, ...props }: Omit<React.ComponentProps<'time'>, 'dateTime' | 'children'> & {\n date: Date\n dateFormatter?: (d: Date) => string;\n}) {\n const defaultDateDisplay = `${(date.getMonth() + 1).toString().padStart(2, '0')}-${date.getFullYear()}`;\n return <time {...props} dateTime={date.toISOString()} className={cn(\"font-mono leading-none text-muted\", className)}>{dateFormatter ? dateFormatter(date) : defaultDateDisplay}</time>\n}\n\nexport function TimelineContent({ className, ...props }: React.ComponentProps<'section'>) {\n return <section className={cn(\"\", className)} {...props} />;\n}"],"names":["Timeline","className","props","jsx","cn","TimelineItem","timelineIconVariants","cva","TimelineIcon","Icon","variant","jsxs","TimelineDate","date","dateFormatter","defaultDateDisplay","TimelineContent"],"mappings":";;;AAIO,SAASA,EAAS,EAAE,WAAAC,GAAW,GAAGC,KAAqC;AAC1E,SAAO,gBAAAC,EAAC,QAAG,WAAWC,EAAG,4BAA4BH,CAAS,GAAI,GAAGC,GAAO;AAChF;AAEO,SAASG,EAAa,EAAE,WAAAJ,GAAW,GAAGC,KAA0C;AACnF,SACI,gBAAAC,EAAC,QAAG,WAAWC,EAAG,uEAAuEH,CAAS,GAAI,GAAGC,GAAO;AAExH;AAEO,MAAMI,IAAuBC;AAAA,EAChC;AAAA,EACA;AAAA,IACI,UAAU;AAAA,MACN,SAAS;AAAA,QACL,aAAa;AAAA,QACb,SAAS;AAAA,QACT,OAAO;AAAA,MAAA;AAAA,IACX;AAAA,IAEJ,iBAAiB;AAAA,MACb,SAAS;AAAA,IAAA;AAAA,EACb;AAER;AAEO,SAASC,EAAa,EAAE,MAAMC,GAAM,WAAAR,GAAW,SAAAS,GAAS,GAAGR,KAE/D;AACC,SAAO,gBAAAS,EAAC,OAAA,EAAK,GAAGT,GAAO,WAAU,oCAC7B,UAAA;AAAA,IAAA,gBAAAC,EAAC,OAAA,EAAI,WAAWC,EAAGE,EAAqB,EAAE,SAAAI,GAAS,WAAAT,EAAA,CAAW,CAAC,GAC3D,UAAA,gBAAAE,EAACM,GAAA,EAAK,WAAU,cAAa,GACjC;AAAA,IACA,gBAAAN,EAAC,OAAA,EAAI,WAAU,iBAAA,CAAiB;AAAA,EAAA,GACpC;AACJ;AAEO,SAASS,EAAa,EAAE,WAAAX,GAAW,MAAAY,GAAM,eAAAC,GAAe,GAAGZ,KAG/D;AACC,QAAMa,IAAqB,IAAIF,EAAK,SAAA,IAAa,GAAG,SAAA,EAAW,SAAS,GAAG,GAAG,CAAC,IAAIA,EAAK,aAAa;AACrG,2BAAQ,QAAA,EAAM,GAAGX,GAAO,UAAUW,EAAK,YAAA,GAAe,WAAWT,EAAG,qCAAqCH,CAAS,GAAI,cAAgBa,EAAcD,CAAI,IAAIE,GAAmB;AACnL;AAEO,SAASC,EAAgB,EAAE,WAAAf,GAAW,GAAGC,KAA0C;AACtF,SAAO,gBAAAC,EAAC,aAAQ,WAAWC,EAAG,IAAIH,CAAS,GAAI,GAAGC,GAAO;AAC7D;"}
@@ -1,28 +0,0 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import { TooltipTrigger as r, Tooltip as m, composeRenderProps as n } from "react-aria-components";
3
- import { cn as d } from "../../utils/primitives.es.js";
4
- const g = r, f = ({ className: o, offset: t = 4, ...e }) => /* @__PURE__ */ a(
5
- m,
6
- {
7
- offset: t,
8
- className: n(
9
- o,
10
- (i) => d(
11
- "z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0",
12
- /* Entering */
13
- "data-[entering]:zoom-in-95",
14
- /* Exiting */
15
- "data-[exiting]:animate-out data-[exiting]:fade-out-0 data-[exiting]:zoom-out-95",
16
- /* Placement */
17
- "data-[placement=bottom]:slide-in-from-top-2 data-[placement=left]:slide-in-from-right-2 data-[placement=right]:slide-in-from-left-2 data-[placement=top]:slide-in-from-bottom-2",
18
- i
19
- )
20
- ),
21
- ...e
22
- }
23
- );
24
- export {
25
- f as Tooltip,
26
- g as TooltipTrigger
27
- };
28
- //# sourceMappingURL=tooltip.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tooltip.es.js","sources":["../../../lib/components/ui/tooltip.tsx"],"sourcesContent":["import {\n\tTooltip as AriaTooltip,\n\tTooltipTrigger as AriaTooltipTrigger,\n\tcomposeRenderProps,\n\ttype TooltipProps as AriaTooltipProps,\n} from \"react-aria-components\"\n\nimport { cn } from \"@/utils/index\"\n\nconst TooltipTrigger = AriaTooltipTrigger\nconst Tooltip = ({ className, offset = 4, ...props }: AriaTooltipProps) => (\n\t<AriaTooltip\n\t\toffset={offset}\n\t\tclassName={composeRenderProps(className, (className) =>\n\t\t\tcn(\n\t\t\t\t\"z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0\",\n\t\t\t\t/* Entering */\n\t\t\t\t\"data-[entering]:zoom-in-95\",\n\t\t\t\t/* Exiting */\n\t\t\t\t\"data-[exiting]:animate-out data-[exiting]:fade-out-0 data-[exiting]:zoom-out-95\",\n\t\t\t\t/* Placement */\n\t\t\t\t\"data-[placement=bottom]:slide-in-from-top-2 data-[placement=left]:slide-in-from-right-2 data-[placement=right]:slide-in-from-left-2 data-[placement=top]:slide-in-from-bottom-2\",\n\t\t\t\tclassName\n\t\t\t)\n\t\t)}\n\t\t{...props}\n\t/>\n)\n\nexport { Tooltip, TooltipTrigger }\n"],"names":["TooltipTrigger","AriaTooltipTrigger","Tooltip","className","offset","props","jsx","AriaTooltip","composeRenderProps","cn"],"mappings":";;;AASA,MAAMA,IAAiBC,GACjBC,IAAU,CAAC,EAAE,WAAAC,GAAW,QAAAC,IAAS,GAAG,GAAGC,QAC5C,gBAAAC;AAAA,EAACC;AAAAA,EAAA;AAAA,IACA,QAAAH;AAAA,IACA,WAAWI;AAAA,MAAmBL;AAAA,MAAW,CAACA,MACzCM;AAAA,QACC;AAAA;AAAA,QAEA;AAAA;AAAA,QAEA;AAAA;AAAA,QAEA;AAAA,QACAN;AAAAA,MAAA;AAAA,IACD;AAAA,IAEA,GAAGE;AAAA,EAAA;AACL;"}