@appcorp/shadcn 1.2.0 → 2.0.1
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/components/app-sidebar.js +1 -41
- package/components/audio.js +1 -21
- package/components/dashboard.js +1 -67
- package/components/drawer-generic.js +1 -47
- package/components/enhanced-checkbox.js +1 -86
- package/components/enhanced-combobox.js +1 -315
- package/components/enhanced-drawer-footer.js +1 -39
- package/components/enhanced-drawer-header.js +1 -15
- package/components/enhanced-dropzone-impl.d.ts +32 -0
- package/components/enhanced-dropzone-impl.js +1 -0
- package/components/enhanced-dropzone.d.ts +2 -63
- package/components/enhanced-dropzone.js +1 -296
- package/components/enhanced-input.js +1 -87
- package/components/enhanced-label.js +1 -68
- package/components/enhanced-radio.js +1 -23
- package/components/enhanced-select.js +1 -81
- package/components/enhanced-slider.js +1 -80
- package/components/enhanced-switch.js +1 -89
- package/components/enhanced-table-footer-action.js +1 -110
- package/components/enhanced-table-footer-page.js +1 -132
- package/components/enhanced-table-footer-pagination.js +1 -118
- package/components/enhanced-table-header-action.js +1 -40
- package/components/enhanced-table-header-search.js +1 -18
- package/components/enhanced-table.js +1 -329
- package/components/enhanced-textarea.js +1 -87
- package/components/field.d.ts +1 -1
- package/components/field.js +1 -153
- package/components/image-resize-dialog.js +1 -180
- package/components/nav-main.js +1 -86
- package/components/nav-projects.js +1 -50
- package/components/nav-user.js +1 -62
- package/components/show-toast.js +1 -11
- package/components/sidebar.d.ts +1 -1
- package/components/sidebar.js +1 -326
- package/components/team-switcher.js +1 -53
- package/components/theme-provider.js +1 -160
- package/components/timeline.js +1 -21
- package/components/tooltip.js +1 -85
- package/components/ui/accordion.js +1 -87
- package/components/ui/alert-dialog.js +1 -120
- package/components/ui/alert.d.ts +1 -1
- package/components/ui/alert.js +1 -90
- package/components/ui/area-chart-v1-impl.d.ts +19 -0
- package/components/ui/area-chart-v1-impl.js +1 -0
- package/components/ui/area-chart-v1.d.ts +2 -19
- package/components/ui/area-chart-v1.js +1 -114
- package/components/ui/aspect-ratio.js +1 -40
- package/components/ui/avatar.js +1 -80
- package/components/ui/badge.d.ts +2 -2
- package/components/ui/badge.js +1 -80
- package/components/ui/breadcrumb.js +1 -107
- package/components/ui/button.d.ts +2 -2
- package/components/ui/button.js +1 -92
- package/components/ui/calendar-impl.d.ts +8 -0
- package/components/ui/calendar-impl.js +1 -0
- package/components/ui/calendar.d.ts +2 -8
- package/components/ui/calendar.js +1 -109
- package/components/ui/card.js +1 -96
- package/components/ui/carousel-impl.d.ts +18 -0
- package/components/ui/carousel-impl.js +1 -0
- package/components/ui/carousel.d.ts +6 -18
- package/components/ui/carousel.js +1 -171
- package/components/ui/chart-impl.d.ts +62 -0
- package/components/ui/chart-impl.js +7 -0
- package/components/ui/chart.d.ts +7 -62
- package/components/ui/chart.js +1 -220
- package/components/ui/checkbox.js +1 -71
- package/components/ui/collapsible.js +1 -44
- package/components/ui/combobox.js +1 -88
- package/components/ui/command-impl.d.ts +80 -0
- package/components/ui/command-impl.js +1 -0
- package/components/ui/command.d.ts +9 -80
- package/components/ui/command.js +1 -118
- package/components/ui/context-menu.js +1 -141
- package/components/ui/dialog.js +1 -113
- package/components/ui/drawer-impl.d.ts +22 -0
- package/components/ui/drawer-impl.js +1 -0
- package/components/ui/drawer.d.ts +10 -22
- package/components/ui/drawer.js +1 -112
- package/components/ui/dropdown-menu.js +1 -143
- package/components/ui/form.d.ts +4 -2
- package/components/ui/form.js +1 -132
- package/components/ui/hover-card.js +1 -72
- package/components/ui/input-otp-impl.d.ts +34 -0
- package/components/ui/input-otp-impl.js +1 -0
- package/components/ui/input-otp.d.ts +4 -34
- package/components/ui/input-otp.js +1 -93
- package/components/ui/input.js +1 -66
- package/components/ui/label.d.ts +1 -1
- package/components/ui/label.js +1 -70
- package/components/ui/language-selector.js +1 -63
- package/components/ui/menubar.js +1 -165
- package/components/ui/navigation-menu.d.ts +1 -1
- package/components/ui/navigation-menu.js +1 -114
- package/components/ui/pagination.js +1 -113
- package/components/ui/popover.js +1 -75
- package/components/ui/progress.js +1 -69
- package/components/ui/radio-group.js +1 -77
- package/components/ui/resizable-impl.d.ts +24 -0
- package/components/ui/resizable-impl.js +1 -0
- package/components/ui/resizable.d.ts +3 -24
- package/components/ui/resizable.js +1 -79
- package/components/ui/scroll-area.js +1 -80
- package/components/ui/select.js +1 -127
- package/components/ui/separator.js +1 -68
- package/components/ui/sheet.d.ts +1 -1
- package/components/ui/sheet.js +1 -127
- package/components/ui/skeleton.js +1 -34
- package/components/ui/slider.js +1 -79
- package/components/ui/sonner.js +1 -45
- package/components/ui/switch.js +1 -69
- package/components/ui/table.js +1 -109
- package/components/ui/tabs.js +1 -82
- package/components/ui/textarea.js +1 -66
- package/components/ui/theme-switcher.js +1 -152
- package/components/ui/toggle.d.ts +2 -2
- package/components/ui/toggle.js +1 -87
- package/data/admin-dashboard.js +1 -304
- package/hooks/use-enhanced-combobox.js +1 -150
- package/hooks/use-mobile.js +1 -51
- package/hooks/use-outside-click.js +1 -23
- package/lib/themes.js +1 -150
- package/lib/toast-utils.js +1 -212
- package/lib/utils.js +1 -12
- package/package.json +9 -90
- package/utils/transform-breadcrumbs.js +1 -11
- package/utils/transform-navitems.js +1 -33
- package/components/aceternity-ui/apple-cards-carousel.d.ts +0 -35
- package/components/aceternity-ui/apple-cards-carousel.js +0 -263
- package/components/shadcn-example/ai-chat/chat-interface.d.ts +0 -11
- package/components/shadcn-example/ai-chat/chat-interface.js +0 -70
- package/components/shadcn-example/ai-chat/index.d.ts +0 -38
- package/components/shadcn-example/ai-chat/index.js +0 -66
- package/components/shadcn-example/ai-chat/sidebar.d.ts +0 -15
- package/components/shadcn-example/ai-chat/sidebar.js +0 -68
- package/components/shadcn-example/ai-chat/welcome-section.d.ts +0 -12
- package/components/shadcn-example/ai-chat/welcome-section.js +0 -26
- package/components/shadcn-example/authentication/index.d.ts +0 -24
- package/components/shadcn-example/authentication/index.js +0 -59
- package/components/shadcn-example/authentication/user-auth-form.d.ts +0 -11
- package/components/shadcn-example/authentication/user-auth-form.js +0 -54
- package/components/shadcn-example/blog-detail-page/comment-section.d.ts +0 -15
- package/components/shadcn-example/blog-detail-page/comment-section.js +0 -83
- package/components/shadcn-example/blog-detail-page/content.d.ts +0 -7
- package/components/shadcn-example/blog-detail-page/content.js +0 -15
- package/components/shadcn-example/blog-detail-page/header.d.ts +0 -11
- package/components/shadcn-example/blog-detail-page/header.js +0 -36
- package/components/shadcn-example/blog-detail-page/index.d.ts +0 -25
- package/components/shadcn-example/blog-detail-page/index.js +0 -74
- package/components/shadcn-example/blog-page/blog-post-card.d.ts +0 -13
- package/components/shadcn-example/blog-page/blog-post-card.js +0 -30
- package/components/shadcn-example/blog-page/featured-post-sidebar-item.d.ts +0 -10
- package/components/shadcn-example/blog-page/featured-post-sidebar-item.js +0 -19
- package/components/shadcn-example/blog-page/index.d.ts +0 -20
- package/components/shadcn-example/blog-page/index.js +0 -36
- package/components/shadcn-example/coming-soon/countdown.d.ts +0 -2
- package/components/shadcn-example/coming-soon/countdown.js +0 -82
- package/components/shadcn-example/coming-soon/index.d.ts +0 -10
- package/components/shadcn-example/coming-soon/index.js +0 -41
- package/components/shadcn-io/color-picker/index.d.ts +0 -43
- package/components/shadcn-io/color-picker/index.js +0 -304
- package/components/shadcn-io/copy-button/index.d.ts +0 -16
- package/components/shadcn-io/copy-button/index.js +0 -121
- package/components/shadcn-io/dropzone/index.d.ts +0 -19
- package/components/shadcn-io/dropzone/index.js +0 -131
- package/components/shadcn-io/gantt/index.d.ts +0 -145
- package/components/shadcn-io/gantt/index.js +0 -766
- package/components/shadcn-io/table/index.d.ts +0 -60
- package/components/shadcn-io/table/index.js +0 -138
- package/templates/appcorp-v1/footer/bottom-bar.d.ts +0 -6
- package/templates/appcorp-v1/footer/bottom-bar.js +0 -25
- package/templates/appcorp-v1/footer/cta.d.ts +0 -6
- package/templates/appcorp-v1/footer/cta.js +0 -21
- package/templates/appcorp-v1/footer/footer-grid.d.ts +0 -14
- package/templates/appcorp-v1/footer/footer-grid.js +0 -52
- package/templates/appcorp-v1/footer/index.d.ts +0 -3
- package/templates/appcorp-v1/footer/index.js +0 -28
- package/templates/appcorp-v1/footer/newsletter.d.ts +0 -11
- package/templates/appcorp-v1/footer/newsletter.js +0 -28
- package/templates/appcorp-v1/footer/stats.d.ts +0 -6
- package/templates/appcorp-v1/footer/stats.js +0 -15
- package/templates/appcorp-v1/header/announcement-bar.d.ts +0 -3
- package/templates/appcorp-v1/header/announcement-bar.js +0 -15
- package/templates/appcorp-v1/header/dropdown-panel.d.ts +0 -8
- package/templates/appcorp-v1/header/dropdown-panel.js +0 -72
- package/templates/appcorp-v1/header/index.d.ts +0 -12
- package/templates/appcorp-v1/header/index.js +0 -16
- package/templates/appcorp-v1/header/mobile-menu.d.ts +0 -14
- package/templates/appcorp-v1/header/mobile-menu.js +0 -101
- package/templates/appcorp-v1/header/navigation-bar.d.ts +0 -3
- package/templates/appcorp-v1/header/navigation-bar.js +0 -117
- package/templates/appcorp-v1/header/social-button.d.ts +0 -7
- package/templates/appcorp-v1/header/social-button.js +0 -48
- package/templates/appcorp-v1/home.d.ts +0 -3
- package/templates/appcorp-v1/home.js +0 -27
- package/templates/data/appcorp-v1.d.ts +0 -93
- package/templates/data/appcorp-v1.js +0 -348
- package/templates/data/edupilotpro-v1.d.ts +0 -33
- package/templates/data/edupilotpro-v1.js +0 -116
- package/templates/data/school-v1.d.ts +0 -328
- package/templates/data/school-v1.js +0 -1563
- package/templates/edupilotpro-v1/feature-card.d.ts +0 -13
- package/templates/edupilotpro-v1/feature-card.js +0 -28
- package/templates/edupilotpro-v1/mockups/dashboard-mockup.d.ts +0 -3
- package/templates/edupilotpro-v1/mockups/dashboard-mockup.js +0 -55
- package/templates/school-v1/footer.d.ts +0 -3
- package/templates/school-v1/footer.js +0 -75
- package/templates/school-v1/index.d.ts +0 -18
- package/templates/school-v1/index.js +0 -60
- package/templates/school-v1/navigation.d.ts +0 -3
- package/templates/school-v1/navigation.js +0 -123
- package/templates/school-v1/sections/about.d.ts +0 -3
- package/templates/school-v1/sections/about.js +0 -49
- package/templates/school-v1/sections/admissions.d.ts +0 -3
- package/templates/school-v1/sections/admissions.js +0 -77
- package/templates/school-v1/sections/contact.d.ts +0 -3
- package/templates/school-v1/sections/contact.js +0 -67
- package/templates/school-v1/sections/faqs.d.ts +0 -3
- package/templates/school-v1/sections/faqs.js +0 -50
- package/templates/school-v1/sections/hero.d.ts +0 -3
- package/templates/school-v1/sections/hero.js +0 -132
- package/templates/school-v1/sections/management.d.ts +0 -3
- package/templates/school-v1/sections/management.js +0 -34
- package/templates/school-v1/sections/policies.d.ts +0 -3
- package/templates/school-v1/sections/policies.js +0 -127
- package/templates/school-v1/sections/programs.d.ts +0 -3
- package/templates/school-v1/sections/programs.js +0 -107
- package/templates/school-v1/sections/testimonials.d.ts +0 -3
- package/templates/school-v1/sections/testimonials.js +0 -46
- package/templates/school-v1/sections/why-choose-us.d.ts +0 -3
- package/templates/school-v1/sections/why-choose-us.js +0 -57
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
var __assign = (this && this.__assign) || function () {
|
|
4
|
-
__assign = Object.assign || function(t) {
|
|
5
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
6
|
-
s = arguments[i];
|
|
7
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
8
|
-
t[p] = s[p];
|
|
9
|
-
}
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
|
-
return __assign.apply(this, arguments);
|
|
13
|
-
};
|
|
14
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
15
|
-
var t = {};
|
|
16
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
17
|
-
t[p] = s[p];
|
|
18
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
19
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
20
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
21
|
-
t[p[i]] = s[p[i]];
|
|
22
|
-
}
|
|
23
|
-
return t;
|
|
24
|
-
};
|
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.DropzoneEmptyState = exports.DropzoneContent = exports.Dropzone = void 0;
|
|
30
|
-
var lucide_react_1 = require("lucide-react");
|
|
31
|
-
var react_1 = __importDefault(require("react"));
|
|
32
|
-
var react_2 = require("react");
|
|
33
|
-
var react_dropzone_1 = require("react-dropzone");
|
|
34
|
-
var button_1 = require("../../ui/button");
|
|
35
|
-
var utils_1 = require("../../../lib/utils");
|
|
36
|
-
var renderBytes = function (bytes) {
|
|
37
|
-
var units = ["B", "KB", "MB", "GB", "TB", "PB"];
|
|
38
|
-
var size = bytes;
|
|
39
|
-
var unitIndex = 0;
|
|
40
|
-
while (size >= 1024 && unitIndex < units.length - 1) {
|
|
41
|
-
size /= 1024;
|
|
42
|
-
unitIndex++;
|
|
43
|
-
}
|
|
44
|
-
return "".concat(size.toFixed(2)).concat(units[unitIndex]);
|
|
45
|
-
};
|
|
46
|
-
var DropzoneContext = (0, react_2.createContext)(undefined);
|
|
47
|
-
var Dropzone = function (_a) {
|
|
48
|
-
var accept = _a.accept, _b = _a.maxFiles, maxFiles = _b === void 0 ? 1 : _b, maxSize = _a.maxSize, minSize = _a.minSize, onDrop = _a.onDrop, onError = _a.onError, disabled = _a.disabled, src = _a.src, className = _a.className, children = _a.children, props = __rest(_a, ["accept", "maxFiles", "maxSize", "minSize", "onDrop", "onError", "disabled", "src", "className", "children"]);
|
|
49
|
-
var _c = (0, react_dropzone_1.useDropzone)(__assign({ accept: accept, maxFiles: maxFiles, maxSize: maxSize, minSize: minSize, onError: onError, disabled: disabled, onDrop: function (acceptedFiles, fileRejections, event) {
|
|
50
|
-
var _a, _b;
|
|
51
|
-
if (fileRejections.length > 0) {
|
|
52
|
-
var message = (_b = (_a = fileRejections.at(0)) === null || _a === void 0 ? void 0 : _a.errors.at(0)) === null || _b === void 0 ? void 0 : _b.message;
|
|
53
|
-
onError === null || onError === void 0 ? void 0 : onError(new Error(message));
|
|
54
|
-
return;
|
|
55
|
-
}
|
|
56
|
-
onDrop === null || onDrop === void 0 ? void 0 : onDrop(acceptedFiles, fileRejections, event);
|
|
57
|
-
} }, props)), getRootProps = _c.getRootProps, getInputProps = _c.getInputProps, isDragActive = _c.isDragActive;
|
|
58
|
-
return (react_1.default.createElement(DropzoneContext.Provider, { key: JSON.stringify(src), value: { src: src, accept: accept, maxSize: maxSize, minSize: minSize, maxFiles: maxFiles } },
|
|
59
|
-
react_1.default.createElement(button_1.Button, __assign({ className: (0, utils_1.cn)("relative h-auto w-full flex-col overflow-hidden p-8", isDragActive && "outline-none ring-1 ring-ring", className), disabled: disabled, type: "button", variant: "outline" }, getRootProps()),
|
|
60
|
-
react_1.default.createElement("input", __assign({}, getInputProps(), { disabled: disabled })),
|
|
61
|
-
children)));
|
|
62
|
-
};
|
|
63
|
-
exports.Dropzone = Dropzone;
|
|
64
|
-
var maxLabelItems = 3;
|
|
65
|
-
var DropzoneContent = function (_a) {
|
|
66
|
-
var children = _a.children, className = _a.className;
|
|
67
|
-
// Use useContext directly here so the component is safe to render even when
|
|
68
|
-
// there is no surrounding <Dropzone /> provider (avoids an exception during
|
|
69
|
-
// SSR or when a consumer imports DropzoneContent standalone).
|
|
70
|
-
var context = (0, react_2.useContext)(DropzoneContext);
|
|
71
|
-
if (!context) {
|
|
72
|
-
return null;
|
|
73
|
-
}
|
|
74
|
-
var src = context.src;
|
|
75
|
-
if (!src) {
|
|
76
|
-
return null;
|
|
77
|
-
}
|
|
78
|
-
if (children) {
|
|
79
|
-
return children;
|
|
80
|
-
}
|
|
81
|
-
return (react_1.default.createElement("div", { className: (0, utils_1.cn)("flex flex-col items-center justify-center", className) },
|
|
82
|
-
react_1.default.createElement("div", { className: "flex size-8 items-center justify-center rounded-md bg-muted text-muted-foreground" },
|
|
83
|
-
react_1.default.createElement(lucide_react_1.UploadIcon, { size: 16 })),
|
|
84
|
-
react_1.default.createElement("p", { className: "my-2 w-full truncate font-medium text-sm" }, src.length > maxLabelItems
|
|
85
|
-
? "".concat(new Intl.ListFormat("en").format(src.slice(0, maxLabelItems).map(function (file) { return file.name; })), " and ").concat(src.length - maxLabelItems, " more")
|
|
86
|
-
: new Intl.ListFormat("en").format(src.map(function (file) { return file.name; }))),
|
|
87
|
-
react_1.default.createElement("p", { className: "w-full text-wrap text-muted-foreground text-xs" }, "Drag and drop or click to replace")));
|
|
88
|
-
};
|
|
89
|
-
exports.DropzoneContent = DropzoneContent;
|
|
90
|
-
var DropzoneEmptyState = function (_a) {
|
|
91
|
-
var children = _a.children, className = _a.className;
|
|
92
|
-
// Read context directly and return null when a Dropzone provider isn't
|
|
93
|
-
// present. This keeps the empty state component safe to import and render
|
|
94
|
-
// without requiring the wrapping Dropzone component.
|
|
95
|
-
var context = (0, react_2.useContext)(DropzoneContext);
|
|
96
|
-
if (!context) {
|
|
97
|
-
return null;
|
|
98
|
-
}
|
|
99
|
-
var src = context.src, accept = context.accept, maxSize = context.maxSize, minSize = context.minSize, maxFiles = context.maxFiles;
|
|
100
|
-
if (src) {
|
|
101
|
-
return null;
|
|
102
|
-
}
|
|
103
|
-
if (children) {
|
|
104
|
-
return children;
|
|
105
|
-
}
|
|
106
|
-
var caption = "";
|
|
107
|
-
if (accept) {
|
|
108
|
-
caption += "Accepts ";
|
|
109
|
-
caption += new Intl.ListFormat("en").format(Object.keys(accept));
|
|
110
|
-
}
|
|
111
|
-
if (minSize && maxSize) {
|
|
112
|
-
caption += " between ".concat(renderBytes(minSize), " and ").concat(renderBytes(maxSize));
|
|
113
|
-
}
|
|
114
|
-
else if (minSize) {
|
|
115
|
-
caption += " at least ".concat(renderBytes(minSize));
|
|
116
|
-
}
|
|
117
|
-
else if (maxSize) {
|
|
118
|
-
caption += " less than ".concat(renderBytes(maxSize));
|
|
119
|
-
}
|
|
120
|
-
return (react_1.default.createElement("div", { className: (0, utils_1.cn)("flex flex-col items-center justify-center", className) },
|
|
121
|
-
react_1.default.createElement("div", { className: "flex size-8 items-center justify-center rounded-md bg-muted text-muted-foreground" },
|
|
122
|
-
react_1.default.createElement(lucide_react_1.UploadIcon, { size: 16 })),
|
|
123
|
-
react_1.default.createElement("p", { className: "my-2 w-full truncate text-wrap font-medium text-sm" },
|
|
124
|
-
"Upload ",
|
|
125
|
-
maxFiles === 1 ? "a file" : "files"),
|
|
126
|
-
react_1.default.createElement("p", { className: "w-full truncate text-wrap text-muted-foreground text-xs" }, "Drag and drop or click to upload"),
|
|
127
|
-
caption && (react_1.default.createElement("p", { className: "text-wrap text-muted-foreground text-xs" },
|
|
128
|
-
caption,
|
|
129
|
-
"."))));
|
|
130
|
-
};
|
|
131
|
-
exports.DropzoneEmptyState = DropzoneEmptyState;
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import type { FC, ReactNode, RefObject } from "react";
|
|
2
|
-
export declare const useGanttDragging: () => [boolean, (args_0: boolean | ((prev: boolean) => boolean)) => void];
|
|
3
|
-
export declare const useGanttScrollX: () => [number, (args_0: number | ((prev: number) => number)) => void];
|
|
4
|
-
export type GanttStatus = {
|
|
5
|
-
id: string;
|
|
6
|
-
name: string;
|
|
7
|
-
color: string;
|
|
8
|
-
};
|
|
9
|
-
export type GanttFeature = {
|
|
10
|
-
id: string;
|
|
11
|
-
name: string;
|
|
12
|
-
startAt: Date;
|
|
13
|
-
endAt: Date;
|
|
14
|
-
status: GanttStatus;
|
|
15
|
-
lane?: string;
|
|
16
|
-
};
|
|
17
|
-
export type GanttMarkerProps = {
|
|
18
|
-
id: string;
|
|
19
|
-
date: Date;
|
|
20
|
-
label: string;
|
|
21
|
-
};
|
|
22
|
-
export type Range = "daily" | "monthly" | "quarterly";
|
|
23
|
-
export type TimelineData = {
|
|
24
|
-
year: number;
|
|
25
|
-
quarters: {
|
|
26
|
-
months: {
|
|
27
|
-
days: number;
|
|
28
|
-
}[];
|
|
29
|
-
}[];
|
|
30
|
-
}[];
|
|
31
|
-
export type GanttContextProps = {
|
|
32
|
-
zoom: number;
|
|
33
|
-
range: Range;
|
|
34
|
-
columnWidth: number;
|
|
35
|
-
sidebarWidth: number;
|
|
36
|
-
headerHeight: number;
|
|
37
|
-
rowHeight: number;
|
|
38
|
-
onAddItem: ((date: Date) => void) | undefined;
|
|
39
|
-
placeholderLength: number;
|
|
40
|
-
timelineData: TimelineData;
|
|
41
|
-
ref: RefObject<HTMLDivElement | null> | null;
|
|
42
|
-
scrollToFeature?: (feature: GanttFeature) => void;
|
|
43
|
-
};
|
|
44
|
-
export type GanttContentHeaderProps = {
|
|
45
|
-
renderHeaderItem: (index: number) => ReactNode;
|
|
46
|
-
title: string;
|
|
47
|
-
columns: number;
|
|
48
|
-
};
|
|
49
|
-
export declare const GanttContentHeader: FC<GanttContentHeaderProps>;
|
|
50
|
-
export type GanttHeaderProps = {
|
|
51
|
-
className?: string;
|
|
52
|
-
};
|
|
53
|
-
export declare const GanttHeader: FC<GanttHeaderProps>;
|
|
54
|
-
export type GanttSidebarItemProps = {
|
|
55
|
-
feature: GanttFeature;
|
|
56
|
-
onSelectItem?: (id: string) => void;
|
|
57
|
-
className?: string;
|
|
58
|
-
};
|
|
59
|
-
export declare const GanttSidebarItem: FC<GanttSidebarItemProps>;
|
|
60
|
-
export declare const GanttSidebarHeader: FC;
|
|
61
|
-
export type GanttSidebarGroupProps = {
|
|
62
|
-
children: ReactNode;
|
|
63
|
-
name: string;
|
|
64
|
-
className?: string;
|
|
65
|
-
};
|
|
66
|
-
export declare const GanttSidebarGroup: FC<GanttSidebarGroupProps>;
|
|
67
|
-
export type GanttSidebarProps = {
|
|
68
|
-
children: ReactNode;
|
|
69
|
-
className?: string;
|
|
70
|
-
};
|
|
71
|
-
export declare const GanttSidebar: FC<GanttSidebarProps>;
|
|
72
|
-
export type GanttAddFeatureHelperProps = {
|
|
73
|
-
top: number;
|
|
74
|
-
className?: string;
|
|
75
|
-
};
|
|
76
|
-
export declare const GanttAddFeatureHelper: FC<GanttAddFeatureHelperProps>;
|
|
77
|
-
export type GanttColumnProps = {
|
|
78
|
-
index: number;
|
|
79
|
-
isColumnSecondary?: (item: number) => boolean;
|
|
80
|
-
};
|
|
81
|
-
export declare const GanttColumn: FC<GanttColumnProps>;
|
|
82
|
-
export type GanttColumnsProps = {
|
|
83
|
-
columns: number;
|
|
84
|
-
isColumnSecondary?: (item: number) => boolean;
|
|
85
|
-
};
|
|
86
|
-
export declare const GanttColumns: FC<GanttColumnsProps>;
|
|
87
|
-
export type GanttCreateMarkerTriggerProps = {
|
|
88
|
-
onCreateMarker: (date: Date) => void;
|
|
89
|
-
className?: string;
|
|
90
|
-
};
|
|
91
|
-
export declare const GanttCreateMarkerTrigger: FC<GanttCreateMarkerTriggerProps>;
|
|
92
|
-
export type GanttFeatureDragHelperProps = {
|
|
93
|
-
featureId: GanttFeature["id"];
|
|
94
|
-
direction: "left" | "right";
|
|
95
|
-
date: Date | null;
|
|
96
|
-
};
|
|
97
|
-
export declare const GanttFeatureDragHelper: FC<GanttFeatureDragHelperProps>;
|
|
98
|
-
export type GanttFeatureItemCardProps = Pick<GanttFeature, "id"> & {
|
|
99
|
-
children?: ReactNode;
|
|
100
|
-
};
|
|
101
|
-
export declare const GanttFeatureItemCard: FC<GanttFeatureItemCardProps>;
|
|
102
|
-
export type GanttFeatureItemProps = GanttFeature & {
|
|
103
|
-
onMove?: (id: string, startDate: Date, endDate: Date | null) => void;
|
|
104
|
-
children?: ReactNode;
|
|
105
|
-
className?: string;
|
|
106
|
-
};
|
|
107
|
-
export declare const GanttFeatureItem: FC<GanttFeatureItemProps>;
|
|
108
|
-
export type GanttFeatureListGroupProps = {
|
|
109
|
-
children: ReactNode;
|
|
110
|
-
className?: string;
|
|
111
|
-
};
|
|
112
|
-
export declare const GanttFeatureListGroup: FC<GanttFeatureListGroupProps>;
|
|
113
|
-
export type GanttFeatureRowProps = {
|
|
114
|
-
features: GanttFeature[];
|
|
115
|
-
onMove?: (id: string, startAt: Date, endAt: Date | null) => void;
|
|
116
|
-
children?: (feature: GanttFeature) => ReactNode;
|
|
117
|
-
className?: string;
|
|
118
|
-
};
|
|
119
|
-
export declare const GanttFeatureRow: FC<GanttFeatureRowProps>;
|
|
120
|
-
export type GanttFeatureListProps = {
|
|
121
|
-
className?: string;
|
|
122
|
-
children: ReactNode;
|
|
123
|
-
};
|
|
124
|
-
export declare const GanttFeatureList: FC<GanttFeatureListProps>;
|
|
125
|
-
export declare const GanttMarker: FC<GanttMarkerProps & {
|
|
126
|
-
onRemove?: (id: string) => void;
|
|
127
|
-
className?: string;
|
|
128
|
-
}>;
|
|
129
|
-
export type GanttProviderProps = {
|
|
130
|
-
range?: Range;
|
|
131
|
-
zoom?: number;
|
|
132
|
-
onAddItem?: (date: Date) => void;
|
|
133
|
-
children: ReactNode;
|
|
134
|
-
className?: string;
|
|
135
|
-
};
|
|
136
|
-
export declare const GanttProvider: FC<GanttProviderProps>;
|
|
137
|
-
export type GanttTimelineProps = {
|
|
138
|
-
children: ReactNode;
|
|
139
|
-
className?: string;
|
|
140
|
-
};
|
|
141
|
-
export declare const GanttTimeline: FC<GanttTimelineProps>;
|
|
142
|
-
export type GanttTodayProps = {
|
|
143
|
-
className?: string;
|
|
144
|
-
};
|
|
145
|
-
export declare const GanttToday: FC<GanttTodayProps>;
|