@hanzo/ui 5.3.35 → 5.3.36
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/bin/create-registry.js +0 -0
- package/bin/npx-registry-mcp.js +0 -0
- package/bin/registry-mcp-wrapper.sh +0 -0
- package/bin/registry-mcp.js +0 -0
- package/bin/start-mcp-server.sh +0 -0
- package/bin/test-mcp.sh +0 -0
- package/dist/3d/button.js +1 -297
- package/dist/3d/button.mjs +1 -272
- package/dist/3d/card.js +1 -233
- package/dist/3d/card.mjs +1 -206
- package/dist/3d/carousel.js +1 -370
- package/dist/3d/carousel.mjs +1 -343
- package/dist/3d/grid.js +1 -361
- package/dist/3d/grid.mjs +1 -336
- package/dist/3d/index.js +1 -1517
- package/dist/3d/index.mjs +1 -1471
- package/dist/3d/marquee.js +1 -351
- package/dist/3d/marquee.mjs +1 -326
- package/dist/3d/pin.js +1 -45
- package/dist/3d/pin.mjs +1 -23
- package/dist/accordion.js +1 -79
- package/dist/accordion.mjs +1 -54
- package/dist/alert-dialog.js +1 -224
- package/dist/alert-dialog.mjs +1 -191
- package/dist/alert.js +1 -97
- package/dist/alert.mjs +1 -91
- package/dist/animation/animated-background.js +1 -423
- package/dist/animation/animated-background.mjs +1 -417
- package/dist/animation/animated-beam.js +1 -118
- package/dist/animation/animated-beam.mjs +1 -96
- package/dist/animation/animated-cursor.js +1 -274
- package/dist/animation/animated-cursor.mjs +1 -269
- package/dist/animation/animated-icon.js +2 -356
- package/dist/animation/animated-icon.mjs +2 -350
- package/dist/animation/animated-list.js +1 -338
- package/dist/animation/animated-list.mjs +1 -332
- package/dist/animation/animated-number.js +1 -282
- package/dist/animation/animated-number.mjs +1 -276
- package/dist/animation/animated-testimonials.js +1 -96
- package/dist/animation/animated-testimonials.mjs +1 -74
- package/dist/animation/animated-tooltip.js +1 -66
- package/dist/animation/animated-tooltip.mjs +1 -44
- package/dist/animation/apple-cards-carousel.js +1 -307
- package/dist/animation/apple-cards-carousel.mjs +1 -284
- package/dist/animation/apple-hello-effect.js +1 -59
- package/dist/animation/apple-hello-effect.mjs +1 -37
- package/dist/animation/index.js +2 -1951
- package/dist/animation/index.mjs +2 -1920
- package/dist/avatar.js +1 -70
- package/dist/avatar.mjs +1 -46
- package/dist/badge.js +1 -60
- package/dist/badge.mjs +1 -54
- package/dist/blocks/index.js +2 -1684
- package/dist/blocks/index.mjs +2 -1645
- package/dist/breadcrumb.js +1 -106
- package/dist/breadcrumb.mjs +1 -98
- package/dist/calendar-ext/index.js +1 -207
- package/dist/calendar-ext/index.mjs +1 -169
- package/dist/calendar.js +1 -193
- package/dist/calendar.mjs +1 -168
- package/dist/carousel.js +1 -282
- package/dist/carousel.mjs +1 -253
- package/dist/charts/index.js +6 -5840
- package/dist/charts/index.mjs +6 -5749
- package/dist/checkbox.js +1 -59
- package/dist/checkbox.mjs +1 -34
- package/dist/code/block.js +2 -225
- package/dist/code/block.mjs +2 -202
- package/dist/code/compare.js +5 -444
- package/dist/code/compare.mjs +5 -421
- package/dist/code/diff.js +12 -429
- package/dist/code/diff.mjs +11 -405
- package/dist/code/editor.js +1 -242
- package/dist/code/editor.mjs +1 -217
- package/dist/code/explorer.js +1 -290
- package/dist/code/explorer.mjs +1 -267
- package/dist/code/index.js +26 -2514
- package/dist/code/index.mjs +24 -2471
- package/dist/code/preview.js +6 -363
- package/dist/code/preview.mjs +6 -340
- package/dist/code/snippet.js +2 -273
- package/dist/code/snippet.mjs +2 -249
- package/dist/code/tabs.js +1 -74
- package/dist/code/tabs.mjs +1 -52
- package/dist/code/terminal.js +3 -436
- package/dist/code/terminal.mjs +3 -413
- package/dist/collapsible.js +1 -32
- package/dist/collapsible.mjs +1 -8
- package/dist/command.js +1 -282
- package/dist/command.mjs +1 -251
- package/dist/context-menu.js +1 -206
- package/dist/context-menu.mjs +1 -170
- package/dist/desktop/hooks.js +1 -223
- package/dist/desktop/hooks.mjs +1 -198
- package/dist/desktop/index.js +1 -685
- package/dist/desktop/index.mjs +1 -657
- package/dist/desktop/spotlight.js +1 -260
- package/dist/desktop/spotlight.mjs +1 -235
- package/dist/desktop/window.js +1 -273
- package/dist/desktop/window.mjs +1 -247
- package/dist/device/index.js +1 -2
- package/dist/device/index.mjs +0 -1
- package/dist/dialog.js +1 -245
- package/dist/dialog.mjs +1 -213
- package/dist/dock/basic.js +1 -173
- package/dist/dock/basic.mjs +1 -150
- package/dist/dock/index.js +1 -647
- package/dist/dock/index.mjs +1 -620
- package/dist/dock/limelight-nav.js +1 -314
- package/dist/dock/limelight-nav.mjs +1 -293
- package/dist/dock/macos.js +1 -140
- package/dist/dock/macos.mjs +1 -117
- package/dist/dock/menu.js +1 -69
- package/dist/dock/menu.mjs +1 -47
- package/dist/dock/message.js +1 -148
- package/dist/dock/message.mjs +1 -126
- package/dist/drawer.js +1 -114
- package/dist/drawer.mjs +1 -102
- package/dist/dropdown-menu.js +1 -201
- package/dist/dropdown-menu.mjs +1 -165
- package/dist/finance/AdvancedChart.js +2 -47
- package/dist/finance/AdvancedChart.mjs +2 -45
- package/dist/finance/CompanyProfile.js +2 -47
- package/dist/finance/CompanyProfile.mjs +2 -45
- package/dist/finance/CryptoScreener.js +2 -44
- package/dist/finance/CryptoScreener.mjs +2 -42
- package/dist/finance/Financials.js +2 -51
- package/dist/finance/Financials.mjs +2 -49
- package/dist/finance/ForexScreener.js +2 -45
- package/dist/finance/ForexScreener.mjs +2 -43
- package/dist/finance/MarketOverview.js +2 -103
- package/dist/finance/MarketOverview.mjs +2 -101
- package/dist/finance/NewsTimeline.js +2 -43
- package/dist/finance/NewsTimeline.mjs +2 -41
- package/dist/finance/OrderEntry.js +1 -130
- package/dist/finance/OrderEntry.mjs +1 -128
- package/dist/finance/OrdersHistory.js +1 -63
- package/dist/finance/OrdersHistory.mjs +1 -61
- package/dist/finance/PositionsList.js +1 -79
- package/dist/finance/PositionsList.mjs +1 -77
- package/dist/finance/StockScreener.js +2 -45
- package/dist/finance/StockScreener.mjs +2 -43
- package/dist/finance/SymbolInfo.js +2 -45
- package/dist/finance/SymbolInfo.mjs +2 -43
- package/dist/finance/TechnicalAnalysis.js +2 -53
- package/dist/finance/TechnicalAnalysis.mjs +2 -51
- package/dist/finance/TickerTape.js +2 -55
- package/dist/finance/TickerTape.mjs +2 -53
- package/dist/finance/TradingPanel.js +1 -190
- package/dist/finance/TradingPanel.mjs +1 -188
- package/dist/finance/index.js +2 -929
- package/dist/finance/index.mjs +2 -913
- package/dist/form/index.js +1 -153
- package/dist/form/index.mjs +1 -123
- package/dist/form.js +1 -171
- package/dist/form.mjs +1 -141
- package/dist/hover-card.js +1 -57
- package/dist/hover-card.mjs +1 -33
- package/dist/index.js +192 -9618
- package/dist/index.mjs +192 -9202
- package/dist/input-otp.js +1 -78
- package/dist/input-otp.mjs +1 -53
- package/dist/kanban/index.js +1 -593
- package/dist/kanban/index.mjs +1 -571
- package/dist/lib/utils.js +1 -28
- package/dist/lib/utils.mjs +1 -24
- package/dist/mermaid/index.js +1 -280
- package/dist/mermaid/index.mjs +1 -253
- package/dist/navigation/index.js +1 -97
- package/dist/navigation/index.mjs +1 -78
- package/dist/navigation-menu.js +1 -148
- package/dist/navigation-menu.mjs +1 -115
- package/dist/pattern/grid-pattern.js +3 -325
- package/dist/pattern/grid-pattern.mjs +3 -302
- package/dist/pattern/index.js +3 -325
- package/dist/pattern/index.mjs +3 -302
- package/dist/popover.js +1 -62
- package/dist/popover.mjs +1 -36
- package/dist/progress.js +1 -61
- package/dist/progress.mjs +1 -36
- package/dist/project/gantt.js +1 -64
- package/dist/project/gantt.mjs +1 -42
- package/dist/project/index.js +1 -635
- package/dist/project/index.mjs +1 -610
- package/dist/project/kanban.js +1 -596
- package/dist/project/kanban.mjs +1 -571
- package/dist/project/list.js +1 -34
- package/dist/project/list.mjs +1 -11
- package/dist/radio-group.js +1 -67
- package/dist/radio-group.mjs +1 -44
- package/dist/resizable.js +1 -71
- package/dist/resizable.mjs +1 -47
- package/dist/scroll-area.js +1 -88
- package/dist/scroll-area.mjs +1 -65
- package/dist/select.js +1 -139
- package/dist/select.mjs +1 -110
- package/dist/separator.js +1 -58
- package/dist/separator.mjs +1 -33
- package/dist/sheet.js +1 -147
- package/dist/sheet.mjs +1 -116
- package/dist/skeleton.js +1 -31
- package/dist/skeleton.mjs +1 -26
- package/dist/slider.js +1 -98
- package/dist/slider.mjs +1 -72
- package/dist/sonner.js +1 -33
- package/dist/sonner.mjs +1 -28
- package/dist/spline/index.js +1 -210
- package/dist/spline/index.mjs +1 -201
- package/dist/spline/media-stack.js +1 -192
- package/dist/spline/media-stack.mjs +1 -184
- package/dist/spline/player.js +1 -36
- package/dist/spline/player.mjs +1 -30
- package/dist/switch.js +1 -61
- package/dist/switch.mjs +1 -36
- package/dist/table.js +1 -109
- package/dist/table.mjs +1 -100
- package/dist/tabs.js +1 -127
- package/dist/tabs.mjs +1 -101
- package/dist/tailwind/index.mjs +1 -2011
- package/dist/textarea.js +1 -77
- package/dist/textarea.mjs +1 -55
- package/dist/toggle-group.js +1 -117
- package/dist/toggle-group.mjs +1 -92
- package/dist/toggle.js +1 -70
- package/dist/toggle.mjs +1 -47
- package/dist/tooltip.js +1 -66
- package/dist/tooltip.mjs +1 -39
- package/dist/types/index.mjs +1 -51
- package/dist/ui/announcement.js +1 -133
- package/dist/ui/announcement.mjs +1 -111
- package/dist/ui/avatar-group.js +1 -87
- package/dist/ui/avatar-group.mjs +1 -64
- package/dist/ui/banner.js +1 -84
- package/dist/ui/banner.mjs +1 -61
- package/dist/ui/cursor.js +1 -77
- package/dist/ui/cursor.mjs +1 -55
- package/dist/ui/index.js +1 -494
- package/dist/ui/index.mjs +1 -461
- package/dist/ui/marquee.js +1 -73
- package/dist/ui/marquee.mjs +1 -51
- package/dist/ui/pill.js +1 -84
- package/dist/ui/pill.mjs +1 -61
- package/dist/ui/spinner.js +1 -27
- package/dist/ui/spinner.mjs +1 -25
- package/dist/ui/tags.js +1 -116
- package/dist/ui/tags.mjs +1 -94
- package/dist/ui/ticker.js +1 -72
- package/dist/ui/ticker.mjs +1 -50
- package/dist/util/index.mjs +1 -404
- package/package.json +28 -27
- package/dist/primitives/index.js +0 -9619
- package/dist/primitives/index.mjs +0 -9203
- package/dist/primitives-export.js +0 -9619
- package/dist/primitives-export.mjs +0 -9203
package/dist/popover.js
CHANGED
|
@@ -1,63 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
var PopoverPrimitive = require('@radix-ui/react-popover');
|
|
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 PopoverPrimitive__namespace = /*#__PURE__*/_interopNamespace(PopoverPrimitive);
|
|
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 Popover = PopoverPrimitive__namespace.Root;
|
|
36
|
-
var PopoverTrigger = PopoverPrimitive__namespace.Trigger;
|
|
37
|
-
var PopoverAnchor = PopoverPrimitive__namespace.Anchor;
|
|
38
|
-
var PopoverClose = PopoverPrimitive__namespace.Close;
|
|
39
|
-
var PopoverContent = /* @__PURE__ */ __name(({
|
|
40
|
-
className,
|
|
41
|
-
align = "center",
|
|
42
|
-
sideOffset = 4,
|
|
43
|
-
...props
|
|
44
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx(PopoverPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
45
|
-
PopoverPrimitive__namespace.Content,
|
|
46
|
-
{
|
|
47
|
-
align,
|
|
48
|
-
className: cn(
|
|
49
|
-
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
50
|
-
"bg-bg-dark border-divider z-50 w-72 rounded-md border p-4 text-gray-50 shadow-lg shadow-md outline-hidden",
|
|
51
|
-
className
|
|
52
|
-
),
|
|
53
|
-
sideOffset,
|
|
54
|
-
...props
|
|
55
|
-
}
|
|
56
|
-
) }), "PopoverContent");
|
|
57
|
-
PopoverContent.displayName = PopoverPrimitive__namespace.Content.displayName;
|
|
58
|
-
|
|
59
|
-
exports.Popover = Popover;
|
|
60
|
-
exports.PopoverAnchor = PopoverAnchor;
|
|
61
|
-
exports.PopoverClose = PopoverClose;
|
|
62
|
-
exports.PopoverContent = PopoverContent;
|
|
63
|
-
exports.PopoverTrigger = PopoverTrigger;
|
|
2
|
+
'use strict';var o=require('@radix-ui/react-popover'),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 d=Object.defineProperty;var t=(e,r)=>d(e,"name",{value:r,configurable:true});function i(...e){return tailwindMerge.twMerge(clsx.clsx(e))}t(i,"cn");var C=o__namespace.Root,b=o__namespace.Trigger,h=o__namespace.Anchor,y=o__namespace.Close,P=t(({className:e,align:r="center",sideOffset:n=4,...s})=>jsxRuntime.jsx(o__namespace.Portal,{children:jsxRuntime.jsx(o__namespace.Content,{align:r,className:i("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","bg-bg-dark border-divider z-50 w-72 rounded-md border p-4 text-gray-50 shadow-lg shadow-md outline-hidden",e),sideOffset:n,...s})}),"PopoverContent");P.displayName=o__namespace.Content.displayName;exports.Popover=C;exports.PopoverAnchor=h;exports.PopoverClose=y;exports.PopoverContent=P;exports.PopoverTrigger=b;
|
package/dist/popover.mjs
CHANGED
|
@@ -1,37 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
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
|
-
var Popover = PopoverPrimitive.Root;
|
|
14
|
-
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
15
|
-
var PopoverAnchor = PopoverPrimitive.Anchor;
|
|
16
|
-
var PopoverClose = PopoverPrimitive.Close;
|
|
17
|
-
var PopoverContent = /* @__PURE__ */ __name(({
|
|
18
|
-
className,
|
|
19
|
-
align = "center",
|
|
20
|
-
sideOffset = 4,
|
|
21
|
-
...props
|
|
22
|
-
}) => /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
23
|
-
PopoverPrimitive.Content,
|
|
24
|
-
{
|
|
25
|
-
align,
|
|
26
|
-
className: cn(
|
|
27
|
-
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
28
|
-
"bg-bg-dark border-divider z-50 w-72 rounded-md border p-4 text-gray-50 shadow-lg shadow-md outline-hidden",
|
|
29
|
-
className
|
|
30
|
-
),
|
|
31
|
-
sideOffset,
|
|
32
|
-
...props
|
|
33
|
-
}
|
|
34
|
-
) }), "PopoverContent");
|
|
35
|
-
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
36
|
-
|
|
37
|
-
export { Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger };
|
|
2
|
+
import*as o from'@radix-ui/react-popover';import {clsx}from'clsx';import {twMerge}from'tailwind-merge';import {jsx}from'react/jsx-runtime';var d=Object.defineProperty;var t=(e,r)=>d(e,"name",{value:r,configurable:true});function i(...e){return twMerge(clsx(e))}t(i,"cn");var C=o.Root,b=o.Trigger,h=o.Anchor,y=o.Close,P=t(({className:e,align:r="center",sideOffset:n=4,...s})=>jsx(o.Portal,{children:jsx(o.Content,{align:r,className:i("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","bg-bg-dark border-divider z-50 w-72 rounded-md border p-4 text-gray-50 shadow-lg shadow-md outline-hidden",e),sideOffset:n,...s})}),"PopoverContent");P.displayName=o.Content.displayName;export{C as Popover,h as PopoverAnchor,y as PopoverClose,P as PopoverContent,b as PopoverTrigger};
|
package/dist/progress.js
CHANGED
|
@@ -1,62 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
-
|
|
6
|
-
var ProgressPrimitive = require('@radix-ui/react-progress');
|
|
7
|
-
var clsx = require('clsx');
|
|
8
|
-
var tailwindMerge = require('tailwind-merge');
|
|
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 ProgressPrimitive__namespace = /*#__PURE__*/_interopNamespace(ProgressPrimitive);
|
|
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 Progress = /* @__PURE__ */ __name(({
|
|
38
|
-
className,
|
|
39
|
-
value,
|
|
40
|
-
...props
|
|
41
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
42
|
-
ProgressPrimitive__namespace.Root,
|
|
43
|
-
{
|
|
44
|
-
className: cn(
|
|
45
|
-
"bg-bg-quaternary relative h-4 w-full overflow-hidden",
|
|
46
|
-
className
|
|
47
|
-
),
|
|
48
|
-
...props,
|
|
49
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
50
|
-
ProgressPrimitive__namespace.Indicator,
|
|
51
|
-
{
|
|
52
|
-
className: "h-full w-full flex-1 bg-green-500 transition-all",
|
|
53
|
-
style: { transform: `translateX(-${100 - (value || 0)}%)` }
|
|
54
|
-
}
|
|
55
|
-
)
|
|
56
|
-
}
|
|
57
|
-
), "Progress");
|
|
58
|
-
Progress.displayName = ProgressPrimitive__namespace.Root.displayName;
|
|
59
|
-
var progress_default = Progress;
|
|
60
|
-
|
|
61
|
-
exports.Progress = Progress;
|
|
62
|
-
exports.default = progress_default;
|
|
2
|
+
'use strict';Object.defineProperty(exports,'__esModule',{value:true});var e=require('@radix-ui/react-progress'),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 e__namespace=/*#__PURE__*/_interopNamespace(e);var l=Object.defineProperty;var t=(r,o)=>l(r,"name",{value:o,configurable:true});function s(...r){return tailwindMerge.twMerge(clsx.clsx(r))}t(s,"cn");var a=t(({className:r,value:o,...n})=>jsxRuntime.jsx(e__namespace.Root,{className:s("bg-bg-quaternary relative h-4 w-full overflow-hidden",r),...n,children:jsxRuntime.jsx(e__namespace.Indicator,{className:"h-full w-full flex-1 bg-green-500 transition-all",style:{transform:`translateX(-${100-(o||0)}%)`}})}),"Progress");a.displayName=e__namespace.Root.displayName;var v=a;exports.Progress=a;exports.default=v;
|
package/dist/progress.mjs
CHANGED
|
@@ -1,37 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
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
|
-
var Progress = /* @__PURE__ */ __name(({
|
|
14
|
-
className,
|
|
15
|
-
value,
|
|
16
|
-
...props
|
|
17
|
-
}) => /* @__PURE__ */ jsx(
|
|
18
|
-
ProgressPrimitive.Root,
|
|
19
|
-
{
|
|
20
|
-
className: cn(
|
|
21
|
-
"bg-bg-quaternary relative h-4 w-full overflow-hidden",
|
|
22
|
-
className
|
|
23
|
-
),
|
|
24
|
-
...props,
|
|
25
|
-
children: /* @__PURE__ */ jsx(
|
|
26
|
-
ProgressPrimitive.Indicator,
|
|
27
|
-
{
|
|
28
|
-
className: "h-full w-full flex-1 bg-green-500 transition-all",
|
|
29
|
-
style: { transform: `translateX(-${100 - (value || 0)}%)` }
|
|
30
|
-
}
|
|
31
|
-
)
|
|
32
|
-
}
|
|
33
|
-
), "Progress");
|
|
34
|
-
Progress.displayName = ProgressPrimitive.Root.displayName;
|
|
35
|
-
var progress_default = Progress;
|
|
36
|
-
|
|
37
|
-
export { Progress, progress_default as default };
|
|
2
|
+
import*as e from'@radix-ui/react-progress';import {clsx}from'clsx';import {twMerge}from'tailwind-merge';import {jsx}from'react/jsx-runtime';var l=Object.defineProperty;var t=(r,o)=>l(r,"name",{value:o,configurable:true});function s(...r){return twMerge(clsx(r))}t(s,"cn");var a=t(({className:r,value:o,...n})=>jsx(e.Root,{className:s("bg-bg-quaternary relative h-4 w-full overflow-hidden",r),...n,children:jsx(e.Indicator,{className:"h-full w-full flex-1 bg-green-500 transition-all",style:{transform:`translateX(-${100-(o||0)}%)`}})}),"Progress");a.displayName=e.Root.displayName;var v=a;export{a as Progress,v as default};
|
package/dist/project/gantt.js
CHANGED
|
@@ -1,65 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
var React = require('react');
|
|
5
|
-
var utils = require('@hanzo/ui/lib/utils');
|
|
6
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
-
|
|
8
|
-
function _interopNamespace(e) {
|
|
9
|
-
if (e && e.__esModule) return e;
|
|
10
|
-
var n = Object.create(null);
|
|
11
|
-
if (e) {
|
|
12
|
-
Object.keys(e).forEach(function (k) {
|
|
13
|
-
if (k !== 'default') {
|
|
14
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
15
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
16
|
-
enumerable: true,
|
|
17
|
-
get: function () { return e[k]; }
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
n.default = e;
|
|
23
|
-
return Object.freeze(n);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
27
|
-
|
|
28
|
-
var Gantt = React__namespace.forwardRef(
|
|
29
|
-
({ className, tasks = [], ...props }, ref) => {
|
|
30
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
31
|
-
"div",
|
|
32
|
-
{
|
|
33
|
-
ref,
|
|
34
|
-
className: utils.cn(
|
|
35
|
-
"rounded-lg border bg-card text-card-foreground shadow-sm",
|
|
36
|
-
className
|
|
37
|
-
),
|
|
38
|
-
...props,
|
|
39
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "p-6", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-4", children: tasks.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center p-8", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground", children: "No tasks available. Add tasks to display Gantt chart." }) }) : tasks.map((task) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
40
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between text-sm", children: [
|
|
41
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-medium", children: task.name }),
|
|
42
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-muted-foreground", children: [
|
|
43
|
-
task.progress ?? 0,
|
|
44
|
-
"%"
|
|
45
|
-
] })
|
|
46
|
-
] }),
|
|
47
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-8 rounded-md bg-muted", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
48
|
-
"div",
|
|
49
|
-
{
|
|
50
|
-
className: "h-full rounded-md bg-primary",
|
|
51
|
-
style: { width: `${task.progress ?? 0}%` }
|
|
52
|
-
}
|
|
53
|
-
) }),
|
|
54
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-between text-xs text-muted-foreground", children: [
|
|
55
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { children: task.start.toLocaleDateString() }),
|
|
56
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { children: task.end.toLocaleDateString() })
|
|
57
|
-
] })
|
|
58
|
-
] }, task.id)) }) })
|
|
59
|
-
}
|
|
60
|
-
);
|
|
61
|
-
}
|
|
62
|
-
);
|
|
63
|
-
Gantt.displayName = "Gantt";
|
|
64
|
-
|
|
65
|
-
exports.Gantt = Gantt;
|
|
2
|
+
'use strict';var d=require('react'),utils=require('@hanzo/ui/lib/utils'),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 d__namespace=/*#__PURE__*/_interopNamespace(d);var o=d__namespace.forwardRef(({className:r,tasks:s=[],...n},i)=>jsxRuntime.jsx("div",{ref:i,className:utils.cn("rounded-lg border bg-card text-card-foreground shadow-sm",r),...n,children:jsxRuntime.jsx("div",{className:"p-6",children:jsxRuntime.jsx("div",{className:"space-y-4",children:s.length===0?jsxRuntime.jsx("div",{className:"flex items-center justify-center p-8",children:jsxRuntime.jsx("p",{className:"text-sm text-muted-foreground",children:"No tasks available. Add tasks to display Gantt chart."})}):s.map(t=>jsxRuntime.jsxs("div",{className:"space-y-2",children:[jsxRuntime.jsxs("div",{className:"flex items-center justify-between text-sm",children:[jsxRuntime.jsx("span",{className:"font-medium",children:t.name}),jsxRuntime.jsxs("span",{className:"text-muted-foreground",children:[t.progress??0,"%"]})]}),jsxRuntime.jsx("div",{className:"h-8 rounded-md bg-muted",children:jsxRuntime.jsx("div",{className:"h-full rounded-md bg-primary",style:{width:`${t.progress??0}%`}})}),jsxRuntime.jsxs("div",{className:"flex justify-between text-xs text-muted-foreground",children:[jsxRuntime.jsx("span",{children:t.start.toLocaleDateString()}),jsxRuntime.jsx("span",{children:t.end.toLocaleDateString()})]})]},t.id))})})}));o.displayName="Gantt";exports.Gantt=o;
|
package/dist/project/gantt.mjs
CHANGED
|
@@ -1,43 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
3
|
-
import { cn } from '@hanzo/ui/lib/utils';
|
|
4
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
5
|
-
|
|
6
|
-
var Gantt = React.forwardRef(
|
|
7
|
-
({ className, tasks = [], ...props }, ref) => {
|
|
8
|
-
return /* @__PURE__ */ jsx(
|
|
9
|
-
"div",
|
|
10
|
-
{
|
|
11
|
-
ref,
|
|
12
|
-
className: cn(
|
|
13
|
-
"rounded-lg border bg-card text-card-foreground shadow-sm",
|
|
14
|
-
className
|
|
15
|
-
),
|
|
16
|
-
...props,
|
|
17
|
-
children: /* @__PURE__ */ jsx("div", { className: "p-6", children: /* @__PURE__ */ jsx("div", { className: "space-y-4", children: tasks.length === 0 ? /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center p-8", children: /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: "No tasks available. Add tasks to display Gantt chart." }) }) : tasks.map((task) => /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
18
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between text-sm", children: [
|
|
19
|
-
/* @__PURE__ */ jsx("span", { className: "font-medium", children: task.name }),
|
|
20
|
-
/* @__PURE__ */ jsxs("span", { className: "text-muted-foreground", children: [
|
|
21
|
-
task.progress ?? 0,
|
|
22
|
-
"%"
|
|
23
|
-
] })
|
|
24
|
-
] }),
|
|
25
|
-
/* @__PURE__ */ jsx("div", { className: "h-8 rounded-md bg-muted", children: /* @__PURE__ */ jsx(
|
|
26
|
-
"div",
|
|
27
|
-
{
|
|
28
|
-
className: "h-full rounded-md bg-primary",
|
|
29
|
-
style: { width: `${task.progress ?? 0}%` }
|
|
30
|
-
}
|
|
31
|
-
) }),
|
|
32
|
-
/* @__PURE__ */ jsxs("div", { className: "flex justify-between text-xs text-muted-foreground", children: [
|
|
33
|
-
/* @__PURE__ */ jsx("span", { children: task.start.toLocaleDateString() }),
|
|
34
|
-
/* @__PURE__ */ jsx("span", { children: task.end.toLocaleDateString() })
|
|
35
|
-
] })
|
|
36
|
-
] }, task.id)) }) })
|
|
37
|
-
}
|
|
38
|
-
);
|
|
39
|
-
}
|
|
40
|
-
);
|
|
41
|
-
Gantt.displayName = "Gantt";
|
|
42
|
-
|
|
43
|
-
export { Gantt };
|
|
2
|
+
import*as d from'react';import {cn}from'@hanzo/ui/lib/utils';import {jsx,jsxs}from'react/jsx-runtime';var o=d.forwardRef(({className:r,tasks:s=[],...n},i)=>jsx("div",{ref:i,className:cn("rounded-lg border bg-card text-card-foreground shadow-sm",r),...n,children:jsx("div",{className:"p-6",children:jsx("div",{className:"space-y-4",children:s.length===0?jsx("div",{className:"flex items-center justify-center p-8",children:jsx("p",{className:"text-sm text-muted-foreground",children:"No tasks available. Add tasks to display Gantt chart."})}):s.map(t=>jsxs("div",{className:"space-y-2",children:[jsxs("div",{className:"flex items-center justify-between text-sm",children:[jsx("span",{className:"font-medium",children:t.name}),jsxs("span",{className:"text-muted-foreground",children:[t.progress??0,"%"]})]}),jsx("div",{className:"h-8 rounded-md bg-muted",children:jsx("div",{className:"h-full rounded-md bg-primary",style:{width:`${t.progress??0}%`}})}),jsxs("div",{className:"flex justify-between text-xs text-muted-foreground",children:[jsx("span",{children:t.start.toLocaleDateString()}),jsx("span",{children:t.end.toLocaleDateString()})]})]},t.id))})})}));o.displayName="Gantt";export{o as Gantt};
|