@hanzo/ui 5.3.19 → 5.3.22

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 (229) hide show
  1. package/dist/3d/button.js +298 -1
  2. package/dist/3d/button.mjs +273 -1
  3. package/dist/3d/card.js +234 -1
  4. package/dist/3d/card.mjs +207 -1
  5. package/dist/3d/carousel.js +371 -1
  6. package/dist/3d/carousel.mjs +344 -1
  7. package/dist/3d/grid.js +362 -1
  8. package/dist/3d/grid.mjs +337 -1
  9. package/dist/3d/index.js +1518 -1
  10. package/dist/3d/index.mjs +1472 -1
  11. package/dist/3d/marquee.js +352 -1
  12. package/dist/3d/marquee.mjs +327 -1
  13. package/dist/3d/pin.js +46 -1
  14. package/dist/3d/pin.mjs +24 -1
  15. package/dist/accordion.js +80 -1
  16. package/dist/accordion.mjs +55 -1
  17. package/dist/alert-dialog.js +220 -1
  18. package/dist/alert-dialog.mjs +187 -1
  19. package/dist/alert.js +68 -1
  20. package/dist/alert.mjs +64 -1
  21. package/dist/animation/animated-background.js +424 -1
  22. package/dist/animation/animated-background.mjs +418 -1
  23. package/dist/animation/animated-beam.js +119 -1
  24. package/dist/animation/animated-beam.mjs +97 -1
  25. package/dist/animation/animated-cursor.js +275 -1
  26. package/dist/animation/animated-cursor.mjs +270 -1
  27. package/dist/animation/animated-icon.js +357 -2
  28. package/dist/animation/animated-icon.mjs +351 -2
  29. package/dist/animation/animated-list.js +339 -1
  30. package/dist/animation/animated-list.mjs +333 -1
  31. package/dist/animation/animated-number.js +283 -1
  32. package/dist/animation/animated-number.mjs +277 -1
  33. package/dist/animation/animated-testimonials.js +97 -1
  34. package/dist/animation/animated-testimonials.mjs +75 -1
  35. package/dist/animation/animated-tooltip.js +67 -1
  36. package/dist/animation/animated-tooltip.mjs +45 -1
  37. package/dist/animation/apple-cards-carousel.js +308 -1
  38. package/dist/animation/apple-cards-carousel.mjs +285 -1
  39. package/dist/animation/apple-hello-effect.js +60 -1
  40. package/dist/animation/apple-hello-effect.mjs +38 -1
  41. package/dist/animation/index.js +1952 -2
  42. package/dist/animation/index.mjs +1921 -2
  43. package/dist/avatar.js +71 -1
  44. package/dist/avatar.mjs +47 -1
  45. package/dist/badge.js +66 -1
  46. package/dist/badge.mjs +40 -1
  47. package/dist/blocks/index.js +1665 -2
  48. package/dist/blocks/index.mjs +1626 -2
  49. package/dist/breadcrumb.js +107 -1
  50. package/dist/breadcrumb.mjs +99 -1
  51. package/dist/calendar.js +189 -1
  52. package/dist/calendar.mjs +164 -1
  53. package/dist/carousel.js +278 -1
  54. package/dist/carousel.mjs +249 -1
  55. package/dist/checkbox.js +60 -1
  56. package/dist/checkbox.mjs +35 -1
  57. package/dist/code/block.js +226 -2
  58. package/dist/code/block.mjs +203 -2
  59. package/dist/code/compare.js +445 -5
  60. package/dist/code/compare.mjs +422 -5
  61. package/dist/code/diff.js +430 -12
  62. package/dist/code/diff.mjs +406 -11
  63. package/dist/code/editor.js +243 -1
  64. package/dist/code/editor.mjs +218 -1
  65. package/dist/code/explorer.js +291 -1
  66. package/dist/code/explorer.mjs +268 -1
  67. package/dist/code/index.js +2515 -26
  68. package/dist/code/index.mjs +2472 -24
  69. package/dist/code/preview.js +364 -6
  70. package/dist/code/preview.mjs +341 -6
  71. package/dist/code/snippet.js +274 -2
  72. package/dist/code/snippet.mjs +250 -2
  73. package/dist/code/tabs.js +75 -1
  74. package/dist/code/tabs.mjs +53 -1
  75. package/dist/code/terminal.js +437 -3
  76. package/dist/code/terminal.mjs +414 -3
  77. package/dist/collapsible.js +33 -1
  78. package/dist/collapsible.mjs +9 -1
  79. package/dist/command.js +262 -1
  80. package/dist/command.mjs +232 -1
  81. package/dist/context-menu.js +207 -1
  82. package/dist/context-menu.mjs +171 -1
  83. package/dist/device/index.js +3 -1
  84. package/dist/device/index.mjs +2 -0
  85. package/dist/dialog.js +151 -1
  86. package/dist/dialog.mjs +121 -1
  87. package/dist/dock/basic.js +174 -1
  88. package/dist/dock/basic.mjs +151 -1
  89. package/dist/dock/index.js +628 -1
  90. package/dist/dock/index.mjs +601 -1
  91. package/dist/dock/limelight-nav.js +295 -1
  92. package/dist/dock/limelight-nav.mjs +274 -1
  93. package/dist/dock/macos.js +141 -1
  94. package/dist/dock/macos.mjs +118 -1
  95. package/dist/dock/menu.js +70 -1
  96. package/dist/dock/menu.mjs +48 -1
  97. package/dist/dock/message.js +144 -1
  98. package/dist/dock/message.mjs +122 -1
  99. package/dist/drawer.js +115 -1
  100. package/dist/drawer.mjs +103 -1
  101. package/dist/dropdown-menu.js +202 -1
  102. package/dist/dropdown-menu.mjs +166 -1
  103. package/dist/finance/AdvancedChart.js +48 -2
  104. package/dist/finance/AdvancedChart.mjs +46 -2
  105. package/dist/finance/CompanyProfile.js +48 -2
  106. package/dist/finance/CompanyProfile.mjs +46 -2
  107. package/dist/finance/CryptoScreener.js +45 -2
  108. package/dist/finance/CryptoScreener.mjs +43 -2
  109. package/dist/finance/Financials.js +52 -2
  110. package/dist/finance/Financials.mjs +50 -2
  111. package/dist/finance/ForexScreener.js +46 -2
  112. package/dist/finance/ForexScreener.mjs +44 -2
  113. package/dist/finance/MarketOverview.js +104 -2
  114. package/dist/finance/MarketOverview.mjs +102 -2
  115. package/dist/finance/NewsTimeline.js +44 -2
  116. package/dist/finance/NewsTimeline.mjs +42 -2
  117. package/dist/finance/OrderEntry.js +131 -1
  118. package/dist/finance/OrderEntry.mjs +129 -1
  119. package/dist/finance/OrdersHistory.js +64 -1
  120. package/dist/finance/OrdersHistory.mjs +62 -1
  121. package/dist/finance/PositionsList.js +80 -1
  122. package/dist/finance/PositionsList.mjs +78 -1
  123. package/dist/finance/StockScreener.js +46 -2
  124. package/dist/finance/StockScreener.mjs +44 -2
  125. package/dist/finance/SymbolInfo.js +46 -2
  126. package/dist/finance/SymbolInfo.mjs +44 -2
  127. package/dist/finance/TechnicalAnalysis.js +54 -2
  128. package/dist/finance/TechnicalAnalysis.mjs +52 -2
  129. package/dist/finance/TickerTape.js +56 -2
  130. package/dist/finance/TickerTape.mjs +54 -2
  131. package/dist/finance/TradingPanel.js +191 -1
  132. package/dist/finance/TradingPanel.mjs +189 -1
  133. package/dist/finance/index.js +930 -2
  134. package/dist/finance/index.mjs +914 -2
  135. package/dist/form/index.js +155 -1
  136. package/dist/form/index.mjs +125 -1
  137. package/dist/form.js +172 -1
  138. package/dist/form.mjs +142 -1
  139. package/dist/hover-card.js +58 -1
  140. package/dist/hover-card.mjs +34 -1
  141. package/dist/index.js +8467 -192
  142. package/dist/index.mjs +8087 -192
  143. package/dist/input-otp.js +79 -1
  144. package/dist/input-otp.mjs +54 -1
  145. package/dist/lib/utils.js +28 -1
  146. package/dist/lib/utils.mjs +24 -1
  147. package/dist/navigation/index.js +98 -1
  148. package/dist/navigation/index.mjs +79 -1
  149. package/dist/navigation-menu.js +149 -1
  150. package/dist/navigation-menu.mjs +116 -1
  151. package/dist/pattern/grid-pattern.js +326 -3
  152. package/dist/pattern/grid-pattern.mjs +303 -3
  153. package/dist/pattern/index.js +326 -3
  154. package/dist/pattern/index.mjs +303 -3
  155. package/dist/popover.js +63 -1
  156. package/dist/popover.mjs +37 -1
  157. package/dist/primitives/index.js +8467 -192
  158. package/dist/primitives/index.mjs +8087 -192
  159. package/dist/primitives-export.js +8467 -192
  160. package/dist/primitives-export.mjs +8087 -192
  161. package/dist/progress.js +62 -1
  162. package/dist/progress.mjs +37 -1
  163. package/dist/project/gantt.js +65 -1
  164. package/dist/project/gantt.mjs +43 -1
  165. package/dist/project/index.js +636 -1
  166. package/dist/project/index.mjs +611 -1
  167. package/dist/project/kanban.js +597 -1
  168. package/dist/project/kanban.mjs +572 -1
  169. package/dist/project/list.js +35 -1
  170. package/dist/project/list.mjs +12 -1
  171. package/dist/radio-group.js +68 -1
  172. package/dist/radio-group.mjs +45 -1
  173. package/dist/resizable.js +72 -1
  174. package/dist/resizable.mjs +48 -1
  175. package/dist/scroll-area.js +89 -1
  176. package/dist/scroll-area.mjs +66 -1
  177. package/dist/select.js +140 -1
  178. package/dist/select.mjs +111 -1
  179. package/dist/separator.js +59 -1
  180. package/dist/separator.mjs +34 -1
  181. package/dist/sheet.js +148 -1
  182. package/dist/sheet.mjs +117 -1
  183. package/dist/skeleton.js +32 -1
  184. package/dist/skeleton.mjs +27 -1
  185. package/dist/slider.js +99 -1
  186. package/dist/slider.mjs +73 -1
  187. package/dist/sonner.js +34 -1
  188. package/dist/sonner.mjs +29 -1
  189. package/dist/switch.js +62 -1
  190. package/dist/switch.mjs +37 -1
  191. package/dist/table.js +110 -1
  192. package/dist/table.mjs +101 -1
  193. package/dist/tabs.js +82 -1
  194. package/dist/tabs.mjs +57 -1
  195. package/dist/tailwind/index.js +2023 -1
  196. package/dist/tailwind/index.mjs +2011 -1
  197. package/dist/textarea.js +78 -1
  198. package/dist/textarea.mjs +56 -1
  199. package/dist/toggle-group.js +118 -1
  200. package/dist/toggle-group.mjs +93 -1
  201. package/dist/toggle.js +71 -1
  202. package/dist/toggle.mjs +48 -1
  203. package/dist/tooltip.js +67 -1
  204. package/dist/tooltip.mjs +40 -1
  205. package/dist/types/index.js +57 -1
  206. package/dist/types/index.mjs +51 -1
  207. package/dist/ui/announcement.js +129 -1
  208. package/dist/ui/announcement.mjs +107 -1
  209. package/dist/ui/avatar-group.js +88 -1
  210. package/dist/ui/avatar-group.mjs +65 -1
  211. package/dist/ui/banner.js +85 -1
  212. package/dist/ui/banner.mjs +62 -1
  213. package/dist/ui/cursor.js +78 -1
  214. package/dist/ui/cursor.mjs +56 -1
  215. package/dist/ui/index.js +475 -1
  216. package/dist/ui/index.mjs +442 -1
  217. package/dist/ui/marquee.js +74 -1
  218. package/dist/ui/marquee.mjs +52 -1
  219. package/dist/ui/pill.js +85 -1
  220. package/dist/ui/pill.mjs +62 -1
  221. package/dist/ui/spinner.js +28 -1
  222. package/dist/ui/spinner.mjs +26 -1
  223. package/dist/ui/tags.js +101 -1
  224. package/dist/ui/tags.mjs +79 -1
  225. package/dist/ui/ticker.js +73 -1
  226. package/dist/ui/ticker.mjs +51 -1
  227. package/dist/util/index.js +457 -1
  228. package/dist/util/index.mjs +399 -1
  229. package/package.json +1 -1
package/dist/ui/pill.mjs CHANGED
@@ -1 +1,62 @@
1
- import*as s from'react';import {cva}from'class-variance-authority';import {X}from'lucide-react';import {clsx}from'clsx';import {twMerge}from'tailwind-merge';import {jsxs,jsx}from'react/jsx-runtime';var d=Object.defineProperty;var a=(e,r)=>d(e,"name",{value:r,configurable:true});function n(...e){return twMerge(clsx(e))}a(n,"cn");var f=cva("inline-flex items-center gap-1.5 rounded-full px-3 py-1 text-sm font-medium transition-colors",{variants:{variant:{default:"bg-primary/10 text-primary hover:bg-primary/20",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",success:"bg-green-100 text-green-700 dark:bg-green-900/30 dark:text-green-400",warning:"bg-yellow-100 text-yellow-700 dark:bg-yellow-900/30 dark:text-yellow-400",error:"bg-red-100 text-red-700 dark:bg-red-900/30 dark:text-red-400"}},defaultVariants:{variant:"default"}}),y=s.forwardRef(({className:e,variant:r,onRemove:t,children:i,...p},c)=>jsxs("span",{ref:c,className:n(f({variant:r}),e),...p,children:[i,t&&jsxs("button",{type:"button",onClick:t,className:"ml-0.5 rounded-full p-0.5 hover:bg-black/10 dark:hover:bg-white/10",children:[jsx(X,{className:"h-3 w-3"}),jsx("span",{className:"sr-only",children:"Remove"})]})]}));y.displayName="Pill";export{y as Pill,f as pillVariants};
1
+ "use client";
2
+ import * as React from 'react';
3
+ import { cva } from 'class-variance-authority';
4
+ import { X } from 'lucide-react';
5
+ import { clsx } from 'clsx';
6
+ import { twMerge } from 'tailwind-merge';
7
+ import { jsxs, jsx } from 'react/jsx-runtime';
8
+
9
+ var __defProp = Object.defineProperty;
10
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
11
+ function cn(...inputs) {
12
+ return twMerge(clsx(inputs));
13
+ }
14
+ __name(cn, "cn");
15
+ var pillVariants = cva(
16
+ "inline-flex items-center gap-1.5 rounded-full px-3 py-1 text-sm font-medium transition-colors",
17
+ {
18
+ variants: {
19
+ variant: {
20
+ default: "bg-primary/10 text-primary hover:bg-primary/20",
21
+ secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
22
+ outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
23
+ success: "bg-green-100 text-green-700 dark:bg-green-900/30 dark:text-green-400",
24
+ warning: "bg-yellow-100 text-yellow-700 dark:bg-yellow-900/30 dark:text-yellow-400",
25
+ error: "bg-red-100 text-red-700 dark:bg-red-900/30 dark:text-red-400"
26
+ }
27
+ },
28
+ defaultVariants: {
29
+ variant: "default"
30
+ }
31
+ }
32
+ );
33
+ var Pill = React.forwardRef(
34
+ ({ className, variant, onRemove, children, ...props }, ref) => {
35
+ return /* @__PURE__ */ jsxs(
36
+ "span",
37
+ {
38
+ ref,
39
+ className: cn(pillVariants({ variant }), className),
40
+ ...props,
41
+ children: [
42
+ children,
43
+ onRemove && /* @__PURE__ */ jsxs(
44
+ "button",
45
+ {
46
+ type: "button",
47
+ onClick: onRemove,
48
+ className: "ml-0.5 rounded-full p-0.5 hover:bg-black/10 dark:hover:bg-white/10",
49
+ children: [
50
+ /* @__PURE__ */ jsx(X, { className: "h-3 w-3" }),
51
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Remove" })
52
+ ]
53
+ }
54
+ )
55
+ ]
56
+ }
57
+ );
58
+ }
59
+ );
60
+ Pill.displayName = "Pill";
61
+
62
+ export { Pill, pillVariants };
@@ -1 +1,28 @@
1
- 'use strict';var lucideReact=require('lucide-react'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge'),jsxRuntime=require('react/jsx-runtime');var o=Object.defineProperty;var r=(e,t)=>o(e,"name",{value:t,configurable:true});function n(...e){return tailwindMerge.twMerge(clsx.clsx(e))}r(n,"cn");function L({className:e,...t}){return jsxRuntime.jsx(lucideReact.Loader2Icon,{role:"status","aria-label":"Loading",className:n("size-4 animate-spin",e),...t})}r(L,"Spinner");exports.Spinner=L;
1
+ "use client";
2
+ 'use strict';
3
+
4
+ var lucideReact = require('lucide-react');
5
+ var clsx = require('clsx');
6
+ var tailwindMerge = require('tailwind-merge');
7
+ var jsxRuntime = require('react/jsx-runtime');
8
+
9
+ var __defProp = Object.defineProperty;
10
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
11
+ function cn(...inputs) {
12
+ return tailwindMerge.twMerge(clsx.clsx(inputs));
13
+ }
14
+ __name(cn, "cn");
15
+ function Spinner({ className, ...props }) {
16
+ return /* @__PURE__ */ jsxRuntime.jsx(
17
+ lucideReact.Loader2Icon,
18
+ {
19
+ role: "status",
20
+ "aria-label": "Loading",
21
+ className: cn("size-4 animate-spin", className),
22
+ ...props
23
+ }
24
+ );
25
+ }
26
+ __name(Spinner, "Spinner");
27
+
28
+ exports.Spinner = Spinner;
@@ -1 +1,26 @@
1
- import {Loader2Icon}from'lucide-react';import {clsx}from'clsx';import {twMerge}from'tailwind-merge';import {jsx}from'react/jsx-runtime';var o=Object.defineProperty;var r=(e,t)=>o(e,"name",{value:t,configurable:true});function n(...e){return twMerge(clsx(e))}r(n,"cn");function L({className:e,...t}){return jsx(Loader2Icon,{role:"status","aria-label":"Loading",className:n("size-4 animate-spin",e),...t})}r(L,"Spinner");export{L as Spinner};
1
+ "use client";
2
+ import { Loader2Icon } from 'lucide-react';
3
+ import { clsx } from 'clsx';
4
+ import { twMerge } from 'tailwind-merge';
5
+ import { jsx } from 'react/jsx-runtime';
6
+
7
+ var __defProp = Object.defineProperty;
8
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
9
+ function cn(...inputs) {
10
+ return twMerge(clsx(inputs));
11
+ }
12
+ __name(cn, "cn");
13
+ function Spinner({ className, ...props }) {
14
+ return /* @__PURE__ */ jsx(
15
+ Loader2Icon,
16
+ {
17
+ role: "status",
18
+ "aria-label": "Loading",
19
+ className: cn("size-4 animate-spin", className),
20
+ ...props
21
+ }
22
+ );
23
+ }
24
+ __name(Spinner, "Spinner");
25
+
26
+ export { Spinner };
package/dist/ui/tags.js CHANGED
@@ -1 +1,101 @@
1
- 'use strict';var l=require('react'),lucideReact=require('lucide-react'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge'),classVarianceAuthority=require('class-variance-authority'),jsxRuntime=require('react/jsx-runtime');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var l__namespace=/*#__PURE__*/_interopNamespace(l);var f=Object.defineProperty;var d=(e,r)=>f(e,"name",{value:r,configurable:true});function a(...e){return tailwindMerge.twMerge(clsx.clsx(e))}d(a,"cn");var x=classVarianceAuthority.cva("focus:ring-ring border-divider inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:ring-2 focus:ring-offset-2 focus:outline-hidden",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80 border-transparent shadow",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 border-transparent",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/80 border-transparent shadow",outline:"hover:bg-bg-secondary text-text-secondary hover:text-text-default border border-gray-500 bg-transparent shadow-xs",inputAdornment:"bg-gray-600 px-2 font-medium text-white",tags:"text-text-secondary border-divider bg-bg-quaternary rounded-lg px-2 py-1 font-normal capitalize"}},defaultVariants:{variant:"default"}}),s=l__namespace.forwardRef(({className:e,variant:r,...t},n)=>jsxRuntime.jsx("div",{ref:n,className:a(x({variant:r}),e),...t}));s.displayName="Badge";var T=l__namespace.forwardRef(({className:e,tags:r,onRemove:t,variant:n="default",...g},u)=>jsxRuntime.jsx("div",{ref:u,className:a("flex flex-wrap gap-2",e),...g,children:r.map(o=>jsxRuntime.jsxs(s,{variant:n,className:a("gap-1",t&&"pr-1"),children:[o.label,t&&jsxRuntime.jsxs("button",{type:"button",onClick:()=>t(o.id),className:"ml-1 rounded-full p-0.5 hover:bg-black/10 dark:hover:bg-white/10",children:[jsxRuntime.jsx(lucideReact.X,{className:"h-3 w-3"}),jsxRuntime.jsxs("span",{className:"sr-only",children:["Remove ",o.label]})]})]},o.id))}));T.displayName="Tags";exports.Tags=T;
1
+ "use client";
2
+ 'use strict';
3
+
4
+ var React = require('react');
5
+ var lucideReact = require('lucide-react');
6
+ var clsx = require('clsx');
7
+ var tailwindMerge = require('tailwind-merge');
8
+ var classVarianceAuthority = require('class-variance-authority');
9
+ var jsxRuntime = require('react/jsx-runtime');
10
+
11
+ function _interopNamespace(e) {
12
+ if (e && e.__esModule) return e;
13
+ var n = Object.create(null);
14
+ if (e) {
15
+ Object.keys(e).forEach(function (k) {
16
+ if (k !== 'default') {
17
+ var d = Object.getOwnPropertyDescriptor(e, k);
18
+ Object.defineProperty(n, k, d.get ? d : {
19
+ enumerable: true,
20
+ get: function () { return e[k]; }
21
+ });
22
+ }
23
+ });
24
+ }
25
+ n.default = e;
26
+ return Object.freeze(n);
27
+ }
28
+
29
+ var React__namespace = /*#__PURE__*/_interopNamespace(React);
30
+
31
+ var __defProp = Object.defineProperty;
32
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
33
+ function cn(...inputs) {
34
+ return tailwindMerge.twMerge(clsx.clsx(inputs));
35
+ }
36
+ __name(cn, "cn");
37
+ var badgeVariants = classVarianceAuthority.cva(
38
+ "focus:ring-ring border-divider inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:ring-2 focus:ring-offset-2 focus:outline-hidden",
39
+ {
40
+ variants: {
41
+ variant: {
42
+ default: "bg-primary text-primary-foreground hover:bg-primary/80 border-transparent shadow",
43
+ secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80 border-transparent",
44
+ destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/80 border-transparent shadow",
45
+ outline: "hover:bg-bg-secondary text-text-secondary hover:text-text-default border border-gray-500 bg-transparent shadow-xs",
46
+ inputAdornment: "bg-gray-600 px-2 font-medium text-white",
47
+ tags: "text-text-secondary border-divider bg-bg-quaternary rounded-lg px-2 py-1 font-normal capitalize"
48
+ }
49
+ },
50
+ defaultVariants: {
51
+ variant: "default"
52
+ }
53
+ }
54
+ );
55
+ var Badge = React__namespace.forwardRef(
56
+ ({ className, variant, ...props }, ref) => {
57
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn(badgeVariants({ variant }), className), ...props });
58
+ }
59
+ );
60
+ Badge.displayName = "Badge";
61
+ var Tags = React__namespace.forwardRef(
62
+ ({ className, tags, onRemove, variant = "default", ...props }, ref) => {
63
+ return /* @__PURE__ */ jsxRuntime.jsx(
64
+ "div",
65
+ {
66
+ ref,
67
+ className: cn("flex flex-wrap gap-2", className),
68
+ ...props,
69
+ children: tags.map((tag) => /* @__PURE__ */ jsxRuntime.jsxs(
70
+ Badge,
71
+ {
72
+ variant,
73
+ className: cn("gap-1", onRemove && "pr-1"),
74
+ children: [
75
+ tag.label,
76
+ onRemove && /* @__PURE__ */ jsxRuntime.jsxs(
77
+ "button",
78
+ {
79
+ type: "button",
80
+ onClick: () => onRemove(tag.id),
81
+ className: "ml-1 rounded-full p-0.5 hover:bg-black/10 dark:hover:bg-white/10",
82
+ children: [
83
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "h-3 w-3" }),
84
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "sr-only", children: [
85
+ "Remove ",
86
+ tag.label
87
+ ] })
88
+ ]
89
+ }
90
+ )
91
+ ]
92
+ },
93
+ tag.id
94
+ ))
95
+ }
96
+ );
97
+ }
98
+ );
99
+ Tags.displayName = "Tags";
100
+
101
+ exports.Tags = Tags;
package/dist/ui/tags.mjs CHANGED
@@ -1 +1,79 @@
1
- import*as l from'react';import {X}from'lucide-react';import {clsx}from'clsx';import {twMerge}from'tailwind-merge';import {cva}from'class-variance-authority';import {jsx,jsxs}from'react/jsx-runtime';var f=Object.defineProperty;var d=(e,r)=>f(e,"name",{value:r,configurable:true});function a(...e){return twMerge(clsx(e))}d(a,"cn");var x=cva("focus:ring-ring border-divider inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:ring-2 focus:ring-offset-2 focus:outline-hidden",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80 border-transparent shadow",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 border-transparent",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/80 border-transparent shadow",outline:"hover:bg-bg-secondary text-text-secondary hover:text-text-default border border-gray-500 bg-transparent shadow-xs",inputAdornment:"bg-gray-600 px-2 font-medium text-white",tags:"text-text-secondary border-divider bg-bg-quaternary rounded-lg px-2 py-1 font-normal capitalize"}},defaultVariants:{variant:"default"}}),s=l.forwardRef(({className:e,variant:r,...t},n)=>jsx("div",{ref:n,className:a(x({variant:r}),e),...t}));s.displayName="Badge";var T=l.forwardRef(({className:e,tags:r,onRemove:t,variant:n="default",...g},u)=>jsx("div",{ref:u,className:a("flex flex-wrap gap-2",e),...g,children:r.map(o=>jsxs(s,{variant:n,className:a("gap-1",t&&"pr-1"),children:[o.label,t&&jsxs("button",{type:"button",onClick:()=>t(o.id),className:"ml-1 rounded-full p-0.5 hover:bg-black/10 dark:hover:bg-white/10",children:[jsx(X,{className:"h-3 w-3"}),jsxs("span",{className:"sr-only",children:["Remove ",o.label]})]})]},o.id))}));T.displayName="Tags";export{T as Tags};
1
+ "use client";
2
+ import * as React from 'react';
3
+ import { X } from 'lucide-react';
4
+ import { clsx } from 'clsx';
5
+ import { twMerge } from 'tailwind-merge';
6
+ import { cva } from 'class-variance-authority';
7
+ import { jsx, jsxs } from 'react/jsx-runtime';
8
+
9
+ var __defProp = Object.defineProperty;
10
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
11
+ function cn(...inputs) {
12
+ return twMerge(clsx(inputs));
13
+ }
14
+ __name(cn, "cn");
15
+ var badgeVariants = cva(
16
+ "focus:ring-ring border-divider inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:ring-2 focus:ring-offset-2 focus:outline-hidden",
17
+ {
18
+ variants: {
19
+ variant: {
20
+ default: "bg-primary text-primary-foreground hover:bg-primary/80 border-transparent shadow",
21
+ secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80 border-transparent",
22
+ destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/80 border-transparent shadow",
23
+ outline: "hover:bg-bg-secondary text-text-secondary hover:text-text-default border border-gray-500 bg-transparent shadow-xs",
24
+ inputAdornment: "bg-gray-600 px-2 font-medium text-white",
25
+ tags: "text-text-secondary border-divider bg-bg-quaternary rounded-lg px-2 py-1 font-normal capitalize"
26
+ }
27
+ },
28
+ defaultVariants: {
29
+ variant: "default"
30
+ }
31
+ }
32
+ );
33
+ var Badge = React.forwardRef(
34
+ ({ className, variant, ...props }, ref) => {
35
+ return /* @__PURE__ */ jsx("div", { ref, className: cn(badgeVariants({ variant }), className), ...props });
36
+ }
37
+ );
38
+ Badge.displayName = "Badge";
39
+ var Tags = React.forwardRef(
40
+ ({ className, tags, onRemove, variant = "default", ...props }, ref) => {
41
+ return /* @__PURE__ */ jsx(
42
+ "div",
43
+ {
44
+ ref,
45
+ className: cn("flex flex-wrap gap-2", className),
46
+ ...props,
47
+ children: tags.map((tag) => /* @__PURE__ */ jsxs(
48
+ Badge,
49
+ {
50
+ variant,
51
+ className: cn("gap-1", onRemove && "pr-1"),
52
+ children: [
53
+ tag.label,
54
+ onRemove && /* @__PURE__ */ jsxs(
55
+ "button",
56
+ {
57
+ type: "button",
58
+ onClick: () => onRemove(tag.id),
59
+ className: "ml-1 rounded-full p-0.5 hover:bg-black/10 dark:hover:bg-white/10",
60
+ children: [
61
+ /* @__PURE__ */ jsx(X, { className: "h-3 w-3" }),
62
+ /* @__PURE__ */ jsxs("span", { className: "sr-only", children: [
63
+ "Remove ",
64
+ tag.label
65
+ ] })
66
+ ]
67
+ }
68
+ )
69
+ ]
70
+ },
71
+ tag.id
72
+ ))
73
+ }
74
+ );
75
+ }
76
+ );
77
+ Tags.displayName = "Tags";
78
+
79
+ export { Tags };
package/dist/ui/ticker.js CHANGED
@@ -1 +1,73 @@
1
- 'use strict';var o=require('react'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge'),jsxRuntime=require('react/jsx-runtime');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var o__namespace=/*#__PURE__*/_interopNamespace(o);var m=Object.defineProperty;var n=(e,t)=>m(e,"name",{value:t,configurable:true});function r(...e){return tailwindMerge.twMerge(clsx.clsx(e))}n(r,"cn");var f=o__namespace.forwardRef(({className:e,children:t,speed:a=50,direction:i="left",pauseOnHover:s=true,...c},l)=>jsxRuntime.jsx("div",{ref:l,className:r("group relative overflow-hidden",e),...c,children:jsxRuntime.jsxs("div",{className:r("flex w-fit animate-scroll",s&&"group-hover:[animation-play-state:paused]"),style:{animationDuration:`${a}s`,animationDirection:i==="right"?"reverse":"normal"},children:[t,t]})}));f.displayName="Ticker";exports.Ticker=f;
1
+ "use client";
2
+ 'use strict';
3
+
4
+ var React = require('react');
5
+ var clsx = require('clsx');
6
+ var tailwindMerge = require('tailwind-merge');
7
+ var jsxRuntime = require('react/jsx-runtime');
8
+
9
+ function _interopNamespace(e) {
10
+ if (e && e.__esModule) return e;
11
+ var n = Object.create(null);
12
+ if (e) {
13
+ Object.keys(e).forEach(function (k) {
14
+ if (k !== 'default') {
15
+ var d = Object.getOwnPropertyDescriptor(e, k);
16
+ Object.defineProperty(n, k, d.get ? d : {
17
+ enumerable: true,
18
+ get: function () { return e[k]; }
19
+ });
20
+ }
21
+ });
22
+ }
23
+ n.default = e;
24
+ return Object.freeze(n);
25
+ }
26
+
27
+ var React__namespace = /*#__PURE__*/_interopNamespace(React);
28
+
29
+ var __defProp = Object.defineProperty;
30
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
31
+ function cn(...inputs) {
32
+ return tailwindMerge.twMerge(clsx.clsx(inputs));
33
+ }
34
+ __name(cn, "cn");
35
+ var Ticker = React__namespace.forwardRef(
36
+ ({
37
+ className,
38
+ children,
39
+ speed = 50,
40
+ direction = "left",
41
+ pauseOnHover = true,
42
+ ...props
43
+ }, ref) => {
44
+ return /* @__PURE__ */ jsxRuntime.jsx(
45
+ "div",
46
+ {
47
+ ref,
48
+ className: cn("group relative overflow-hidden", className),
49
+ ...props,
50
+ children: /* @__PURE__ */ jsxRuntime.jsxs(
51
+ "div",
52
+ {
53
+ className: cn(
54
+ "flex w-fit animate-scroll",
55
+ pauseOnHover && "group-hover:[animation-play-state:paused]"
56
+ ),
57
+ style: {
58
+ animationDuration: `${speed}s`,
59
+ animationDirection: direction === "right" ? "reverse" : "normal"
60
+ },
61
+ children: [
62
+ children,
63
+ children
64
+ ]
65
+ }
66
+ )
67
+ }
68
+ );
69
+ }
70
+ );
71
+ Ticker.displayName = "Ticker";
72
+
73
+ exports.Ticker = Ticker;
@@ -1 +1,51 @@
1
- import*as o from'react';import {clsx}from'clsx';import {twMerge}from'tailwind-merge';import {jsx,jsxs}from'react/jsx-runtime';var m=Object.defineProperty;var n=(e,t)=>m(e,"name",{value:t,configurable:true});function r(...e){return twMerge(clsx(e))}n(r,"cn");var f=o.forwardRef(({className:e,children:t,speed:a=50,direction:i="left",pauseOnHover:s=true,...c},l)=>jsx("div",{ref:l,className:r("group relative overflow-hidden",e),...c,children:jsxs("div",{className:r("flex w-fit animate-scroll",s&&"group-hover:[animation-play-state:paused]"),style:{animationDuration:`${a}s`,animationDirection:i==="right"?"reverse":"normal"},children:[t,t]})}));f.displayName="Ticker";export{f as Ticker};
1
+ "use client";
2
+ import * as React from 'react';
3
+ import { clsx } from 'clsx';
4
+ import { twMerge } from 'tailwind-merge';
5
+ import { jsx, jsxs } from 'react/jsx-runtime';
6
+
7
+ var __defProp = Object.defineProperty;
8
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
9
+ function cn(...inputs) {
10
+ return twMerge(clsx(inputs));
11
+ }
12
+ __name(cn, "cn");
13
+ var Ticker = React.forwardRef(
14
+ ({
15
+ className,
16
+ children,
17
+ speed = 50,
18
+ direction = "left",
19
+ pauseOnHover = true,
20
+ ...props
21
+ }, ref) => {
22
+ return /* @__PURE__ */ jsx(
23
+ "div",
24
+ {
25
+ ref,
26
+ className: cn("group relative overflow-hidden", className),
27
+ ...props,
28
+ children: /* @__PURE__ */ jsxs(
29
+ "div",
30
+ {
31
+ className: cn(
32
+ "flex w-fit animate-scroll",
33
+ pauseOnHover && "group-hover:[animation-play-state:paused]"
34
+ ),
35
+ style: {
36
+ animationDuration: `${speed}s`,
37
+ animationDirection: direction === "right" ? "reverse" : "normal"
38
+ },
39
+ children: [
40
+ children,
41
+ children
42
+ ]
43
+ }
44
+ )
45
+ }
46
+ );
47
+ }
48
+ );
49
+ Ticker.displayName = "Ticker";
50
+
51
+ export { Ticker };