@appcorp/stellar-solutions-modules 0.1.53 → 0.1.55
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/global-modules/bank/bank.js +4 -8
- package/global-modules/bank/context.js +15 -14
- package/global-modules/bank/drawer.js +2 -2
- package/global-modules/bank/form.js +2 -2
- package/global-modules/bank/types.d.ts +1 -1
- package/global-modules/branch/branch.js +3 -7
- package/global-modules/branch/constants.d.ts +0 -11
- package/global-modules/branch/constants.js +1 -15
- package/global-modules/branch/context.js +16 -15
- package/global-modules/branch/drawer.js +2 -2
- package/global-modules/branch/form.js +2 -2
- package/global-modules/branch/types.d.ts +1 -1
- package/global-modules/payment-mode/context.js +16 -15
- package/global-modules/payment-mode/drawer.js +2 -2
- package/global-modules/payment-mode/form.js +2 -2
- package/global-modules/payment-mode/payment-mode.js +16 -20
- package/global-modules/payment-mode/types.d.ts +1 -1
- package/global-modules/preferences/context.js +14 -13
- package/global-modules/preferences/currency.js +2 -2
- package/global-modules/tax/context.js +16 -15
- package/global-modules/tax/drawer.js +2 -2
- package/global-modules/tax/form.js +2 -2
- package/global-modules/tax/tax.js +4 -8
- package/global-modules/tax/types.d.ts +1 -1
- package/index.d.ts +0 -30
- package/index.js +0 -46
- package/lib/toast-utils.d.ts +0 -44
- package/lib/toast-utils.js +240 -212
- package/lib/utils.d.ts +0 -2
- package/lib/utils.js +5 -12
- package/package.json +6 -7
- package/components/theme-provider.d.ts +0 -9
- package/components/theme-provider.js +0 -122
- package/components/theme-switcher.d.ts +0 -4
- package/components/theme-switcher.js +0 -60
- package/components/ui/badge.d.ts +0 -9
- package/components/ui/badge.js +0 -82
- package/components/ui/button.d.ts +0 -10
- package/components/ui/button.js +0 -91
- package/components/ui/card.d.ts +0 -9
- package/components/ui/card.js +0 -94
- package/components/ui/carousel.d.ts +0 -19
- package/components/ui/carousel.js +0 -168
- package/components/ui/checkbox.d.ts +0 -9
- package/components/ui/checkbox.js +0 -87
- package/components/ui/combobox.d.ts +0 -70
- package/components/ui/combobox.js +0 -315
- package/components/ui/command.d.ts +0 -18
- package/components/ui/command.js +0 -115
- package/components/ui/dialog.d.ts +0 -15
- package/components/ui/dialog.js +0 -118
- package/components/ui/drawer.d.ts +0 -13
- package/components/ui/drawer.js +0 -115
- package/components/ui/dropdown-menu.d.ts +0 -25
- package/components/ui/dropdown-menu.js +0 -148
- package/components/ui/enhanced-dropzone.d.ts +0 -21
- package/components/ui/enhanced-dropzone.js +0 -187
- package/components/ui/enhanced-table-footer-action.d.ts +0 -34
- package/components/ui/enhanced-table-footer-action.js +0 -117
- package/components/ui/enhanced-table-footer-page.d.ts +0 -32
- package/components/ui/enhanced-table-footer-page.js +0 -140
- package/components/ui/enhanced-table-footer-pagination.d.ts +0 -36
- package/components/ui/enhanced-table-footer-pagination.js +0 -122
- package/components/ui/enhanced-table-header-action.d.ts +0 -7
- package/components/ui/enhanced-table-header-action.js +0 -21
- package/components/ui/enhanced-table-header-search.d.ts +0 -12
- package/components/ui/enhanced-table-header-search.js +0 -17
- package/components/ui/enhanced-table.d.ts +0 -75
- package/components/ui/enhanced-table.js +0 -196
- package/components/ui/form.d.ts +0 -24
- package/components/ui/form.js +0 -125
- package/components/ui/input.d.ts +0 -8
- package/components/ui/input.js +0 -86
- package/components/ui/label.d.ts +0 -7
- package/components/ui/label.js +0 -68
- package/components/ui/popover.d.ts +0 -7
- package/components/ui/popover.js +0 -82
- package/components/ui/select.d.ts +0 -15
- package/components/ui/select.js +0 -127
- package/components/ui/separator.d.ts +0 -4
- package/components/ui/separator.js +0 -66
- package/components/ui/shadcn-io/color-picker/index.d.ts +0 -43
- package/components/ui/shadcn-io/color-picker/index.js +0 -304
- package/components/ui/shadcn-io/dropzone/index.d.ts +0 -19
- package/components/ui/shadcn-io/dropzone/index.js +0 -131
- package/components/ui/sonner.d.ts +0 -4
- package/components/ui/sonner.js +0 -54
- package/components/ui/switch.d.ts +0 -9
- package/components/ui/switch.js +0 -89
- package/components/ui/table.d.ts +0 -10
- package/components/ui/table.js +0 -101
- package/components/ui/textarea.d.ts +0 -8
- package/components/ui/textarea.js +0 -86
|
@@ -1,122 +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 __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
15
|
-
if (k2 === undefined) k2 = k;
|
|
16
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
17
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
18
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
19
|
-
}
|
|
20
|
-
Object.defineProperty(o, k2, desc);
|
|
21
|
-
}) : (function(o, m, k, k2) {
|
|
22
|
-
if (k2 === undefined) k2 = k;
|
|
23
|
-
o[k2] = m[k];
|
|
24
|
-
}));
|
|
25
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
26
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
27
|
-
}) : function(o, v) {
|
|
28
|
-
o["default"] = v;
|
|
29
|
-
});
|
|
30
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
31
|
-
var ownKeys = function(o) {
|
|
32
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
33
|
-
var ar = [];
|
|
34
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
35
|
-
return ar;
|
|
36
|
-
};
|
|
37
|
-
return ownKeys(o);
|
|
38
|
-
};
|
|
39
|
-
return function (mod) {
|
|
40
|
-
if (mod && mod.__esModule) return mod;
|
|
41
|
-
var result = {};
|
|
42
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
43
|
-
__setModuleDefault(result, mod);
|
|
44
|
-
return result;
|
|
45
|
-
};
|
|
46
|
-
})();
|
|
47
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
48
|
-
var t = {};
|
|
49
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
50
|
-
t[p] = s[p];
|
|
51
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
52
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
53
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
54
|
-
t[p[i]] = s[p[i]];
|
|
55
|
-
}
|
|
56
|
-
return t;
|
|
57
|
-
};
|
|
58
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
59
|
-
exports.ThemeProvider = ThemeProvider;
|
|
60
|
-
var react_1 = __importStar(require("react"));
|
|
61
|
-
var next_themes_1 = require("next-themes");
|
|
62
|
-
var themes_1 = require("../lib/themes");
|
|
63
|
-
// Component that applies theme variables when theme changes
|
|
64
|
-
function ThemeApplier(_a) {
|
|
65
|
-
var children = _a.children;
|
|
66
|
-
var _b = (0, next_themes_1.useTheme)(), theme = _b.theme, resolvedTheme = _b.resolvedTheme;
|
|
67
|
-
(0, react_1.useEffect)(function () {
|
|
68
|
-
var applyTheme = function (themeName) {
|
|
69
|
-
var themeConfig = themes_1.themes[themeName];
|
|
70
|
-
if (!themeConfig) {
|
|
71
|
-
console.warn("Theme \"".concat(themeName, "\" not found, falling back to light theme"));
|
|
72
|
-
// Fallback to light theme
|
|
73
|
-
var lightTheme = themes_1.themes.light;
|
|
74
|
-
if (lightTheme) {
|
|
75
|
-
var root_1 = document.documentElement;
|
|
76
|
-
Object.entries(lightTheme.colors).forEach(function (_a) {
|
|
77
|
-
var key = _a[0], value = _a[1];
|
|
78
|
-
root_1.style.setProperty("--".concat(key), value);
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
return;
|
|
82
|
-
}
|
|
83
|
-
var root = document.documentElement;
|
|
84
|
-
// Apply theme colors as CSS variables
|
|
85
|
-
Object.entries(themeConfig.colors).forEach(function (_a) {
|
|
86
|
-
var key = _a[0], value = _a[1];
|
|
87
|
-
root.style.setProperty("--".concat(key), value);
|
|
88
|
-
});
|
|
89
|
-
// Add theme class to root element for CSS selectors
|
|
90
|
-
root.className = root.className.replace(/theme-\w+/g, "");
|
|
91
|
-
root.classList.add("theme-".concat(themeName));
|
|
92
|
-
// Also set data-theme attribute for CSS selectors
|
|
93
|
-
root.setAttribute("data-theme", themeName);
|
|
94
|
-
};
|
|
95
|
-
// Apply theme on mount and when theme changes
|
|
96
|
-
var activeTheme = resolvedTheme || theme || "light";
|
|
97
|
-
// Always apply theme, even if it's "system" - fallback to light
|
|
98
|
-
var themeToApply = activeTheme === "system" ? "light" : activeTheme;
|
|
99
|
-
applyTheme(themeToApply);
|
|
100
|
-
}, [theme, resolvedTheme]);
|
|
101
|
-
// Apply default theme on mount
|
|
102
|
-
(0, react_1.useEffect)(function () {
|
|
103
|
-
// Apply light theme as default on first mount
|
|
104
|
-
var applyDefaultTheme = function () {
|
|
105
|
-
var lightTheme = themes_1.themes.light;
|
|
106
|
-
if (lightTheme) {
|
|
107
|
-
var root_2 = document.documentElement;
|
|
108
|
-
Object.entries(lightTheme.colors).forEach(function (_a) {
|
|
109
|
-
var key = _a[0], value = _a[1];
|
|
110
|
-
root_2.style.setProperty("--".concat(key), value);
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
|
-
};
|
|
114
|
-
applyDefaultTheme();
|
|
115
|
-
}, []); // Run only once on mount
|
|
116
|
-
return react_1.default.createElement(react_1.default.Fragment, null, children);
|
|
117
|
-
}
|
|
118
|
-
function ThemeProvider(_a) {
|
|
119
|
-
var children = _a.children, _b = _a.defaultTheme, defaultTheme = _b === void 0 ? "light" : _b, _c = _a.storageKey, storageKey = _c === void 0 ? "ui-theme" : _c, _d = _a.enableSystem, enableSystem = _d === void 0 ? false : _d, props = __rest(_a, ["children", "defaultTheme", "storageKey", "enableSystem"]);
|
|
120
|
-
return (react_1.default.createElement(next_themes_1.ThemeProvider, __assign({ attribute: "data-theme", defaultTheme: defaultTheme, storageKey: storageKey, enableSystem: enableSystem, themes: Object.keys(themes_1.themes) }, props),
|
|
121
|
-
react_1.default.createElement(ThemeApplier, null, children)));
|
|
122
|
-
}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
-
};
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.ThemeToggle = ThemeToggle;
|
|
8
|
-
exports.ColorThemeSelector = ColorThemeSelector;
|
|
9
|
-
exports.ThemeSwitcher = ThemeSwitcher;
|
|
10
|
-
var react_1 = __importDefault(require("react"));
|
|
11
|
-
var lucide_react_1 = require("lucide-react");
|
|
12
|
-
var next_themes_1 = require("next-themes");
|
|
13
|
-
var button_1 = require("../components/ui/button");
|
|
14
|
-
var dropdown_menu_1 = require("../components/ui/dropdown-menu");
|
|
15
|
-
var themes_1 = require("../lib/themes");
|
|
16
|
-
function ThemeToggle() {
|
|
17
|
-
var setTheme = (0, next_themes_1.useTheme)().setTheme;
|
|
18
|
-
return (react_1.default.createElement(dropdown_menu_1.DropdownMenu, null,
|
|
19
|
-
react_1.default.createElement(dropdown_menu_1.DropdownMenuTrigger, { asChild: true },
|
|
20
|
-
react_1.default.createElement(button_1.Button, { variant: "outline", size: "icon" },
|
|
21
|
-
react_1.default.createElement(lucide_react_1.Sun, { className: "h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0" }),
|
|
22
|
-
react_1.default.createElement(lucide_react_1.Moon, { className: "absolute h-[1.2rem] w-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100" }),
|
|
23
|
-
react_1.default.createElement("span", { className: "sr-only" }, "Toggle theme"))),
|
|
24
|
-
react_1.default.createElement(dropdown_menu_1.DropdownMenuContent, { align: "end" },
|
|
25
|
-
react_1.default.createElement(dropdown_menu_1.DropdownMenuLabel, null, "Theme"),
|
|
26
|
-
react_1.default.createElement(dropdown_menu_1.DropdownMenuSeparator, null),
|
|
27
|
-
react_1.default.createElement(dropdown_menu_1.DropdownMenuItem, { onClick: function () { return setTheme("light"); } },
|
|
28
|
-
react_1.default.createElement(lucide_react_1.Sun, { className: "mr-2 h-4 w-4" }),
|
|
29
|
-
react_1.default.createElement("span", null, "Light")),
|
|
30
|
-
react_1.default.createElement(dropdown_menu_1.DropdownMenuItem, { onClick: function () { return setTheme("dark"); } },
|
|
31
|
-
react_1.default.createElement(lucide_react_1.Moon, { className: "mr-2 h-4 w-4" }),
|
|
32
|
-
react_1.default.createElement("span", null, "Dark")),
|
|
33
|
-
react_1.default.createElement(dropdown_menu_1.DropdownMenuItem, { onClick: function () { return setTheme("system"); } },
|
|
34
|
-
react_1.default.createElement(lucide_react_1.Monitor, { className: "mr-2 h-4 w-4" }),
|
|
35
|
-
react_1.default.createElement("span", null, "System")))));
|
|
36
|
-
}
|
|
37
|
-
function ColorThemeSelector() {
|
|
38
|
-
var _a = (0, next_themes_1.useTheme)(), theme = _a.theme, setTheme = _a.setTheme;
|
|
39
|
-
return (react_1.default.createElement(dropdown_menu_1.DropdownMenu, null,
|
|
40
|
-
react_1.default.createElement(dropdown_menu_1.DropdownMenuTrigger, { asChild: true },
|
|
41
|
-
react_1.default.createElement(button_1.Button, { variant: "outline", size: "icon" },
|
|
42
|
-
react_1.default.createElement(lucide_react_1.Palette, { className: "h-[1.2rem] w-[1.2rem]" }),
|
|
43
|
-
react_1.default.createElement("span", { className: "sr-only" }, "Select color theme"))),
|
|
44
|
-
react_1.default.createElement(dropdown_menu_1.DropdownMenuContent, { align: "end", className: "w-56" },
|
|
45
|
-
react_1.default.createElement(dropdown_menu_1.DropdownMenuLabel, null, "Color Theme"),
|
|
46
|
-
react_1.default.createElement(dropdown_menu_1.DropdownMenuSeparator, null),
|
|
47
|
-
Object.entries(themes_1.themes).map(function (_a) {
|
|
48
|
-
var key = _a[0], themeConfig = _a[1];
|
|
49
|
-
return (react_1.default.createElement(dropdown_menu_1.DropdownMenuItem, { key: key, onClick: function () { return setTheme(key); }, className: "flex items-center gap-2" },
|
|
50
|
-
react_1.default.createElement("div", { className: "w-4 h-4 rounded-full border", style: {
|
|
51
|
-
backgroundColor: "oklch(".concat(themeConfig.colors.primary, ")"),
|
|
52
|
-
} }),
|
|
53
|
-
react_1.default.createElement("span", { className: theme === key ? "font-semibold" : "" }, themeConfig.displayName)));
|
|
54
|
-
}))));
|
|
55
|
-
}
|
|
56
|
-
function ThemeSwitcher() {
|
|
57
|
-
return (react_1.default.createElement("div", { className: "flex items-center gap-2" },
|
|
58
|
-
react_1.default.createElement(ThemeToggle, null),
|
|
59
|
-
react_1.default.createElement(ColorThemeSelector, null)));
|
|
60
|
-
}
|
package/components/ui/badge.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { type VariantProps } from "class-variance-authority";
|
|
3
|
-
declare const badgeVariants: (props?: ({
|
|
4
|
-
variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
|
|
5
|
-
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
6
|
-
declare function Badge({ className, variant, asChild, ...props }: React.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
|
|
7
|
-
asChild?: boolean;
|
|
8
|
-
}): React.JSX.Element;
|
|
9
|
-
export { Badge, badgeVariants };
|
package/components/ui/badge.js
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
-
if (k2 === undefined) k2 = k;
|
|
15
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
-
}
|
|
19
|
-
Object.defineProperty(o, k2, desc);
|
|
20
|
-
}) : (function(o, m, k, k2) {
|
|
21
|
-
if (k2 === undefined) k2 = k;
|
|
22
|
-
o[k2] = m[k];
|
|
23
|
-
}));
|
|
24
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
-
}) : function(o, v) {
|
|
27
|
-
o["default"] = v;
|
|
28
|
-
});
|
|
29
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
30
|
-
var ownKeys = function(o) {
|
|
31
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
32
|
-
var ar = [];
|
|
33
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
34
|
-
return ar;
|
|
35
|
-
};
|
|
36
|
-
return ownKeys(o);
|
|
37
|
-
};
|
|
38
|
-
return function (mod) {
|
|
39
|
-
if (mod && mod.__esModule) return mod;
|
|
40
|
-
var result = {};
|
|
41
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
42
|
-
__setModuleDefault(result, mod);
|
|
43
|
-
return result;
|
|
44
|
-
};
|
|
45
|
-
})();
|
|
46
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
47
|
-
var t = {};
|
|
48
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
49
|
-
t[p] = s[p];
|
|
50
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
51
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
52
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
53
|
-
t[p[i]] = s[p[i]];
|
|
54
|
-
}
|
|
55
|
-
return t;
|
|
56
|
-
};
|
|
57
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
58
|
-
exports.badgeVariants = void 0;
|
|
59
|
-
exports.Badge = Badge;
|
|
60
|
-
var React = __importStar(require("react"));
|
|
61
|
-
var react_slot_1 = require("@radix-ui/react-slot");
|
|
62
|
-
var class_variance_authority_1 = require("class-variance-authority");
|
|
63
|
-
var utils_1 = require("../../lib/utils");
|
|
64
|
-
var badgeVariants = (0, class_variance_authority_1.cva)("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden", {
|
|
65
|
-
variants: {
|
|
66
|
-
variant: {
|
|
67
|
-
default: "border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
|
|
68
|
-
secondary: "border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",
|
|
69
|
-
destructive: "border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
|
70
|
-
outline: "text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",
|
|
71
|
-
},
|
|
72
|
-
},
|
|
73
|
-
defaultVariants: {
|
|
74
|
-
variant: "default",
|
|
75
|
-
},
|
|
76
|
-
});
|
|
77
|
-
exports.badgeVariants = badgeVariants;
|
|
78
|
-
function Badge(_a) {
|
|
79
|
-
var className = _a.className, variant = _a.variant, _b = _a.asChild, asChild = _b === void 0 ? false : _b, props = __rest(_a, ["className", "variant", "asChild"]);
|
|
80
|
-
var Comp = asChild ? react_slot_1.Slot : "span";
|
|
81
|
-
return (React.createElement(Comp, __assign({ "data-slot": "badge", className: (0, utils_1.cn)(badgeVariants({ variant: variant }), className) }, props)));
|
|
82
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { type VariantProps } from "class-variance-authority";
|
|
3
|
-
declare const buttonVariants: (props?: ({
|
|
4
|
-
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
5
|
-
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
6
|
-
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
7
|
-
declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
8
|
-
asChild?: boolean;
|
|
9
|
-
}): React.JSX.Element;
|
|
10
|
-
export { Button, buttonVariants };
|
package/components/ui/button.js
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
-
if (k2 === undefined) k2 = k;
|
|
15
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
-
}
|
|
19
|
-
Object.defineProperty(o, k2, desc);
|
|
20
|
-
}) : (function(o, m, k, k2) {
|
|
21
|
-
if (k2 === undefined) k2 = k;
|
|
22
|
-
o[k2] = m[k];
|
|
23
|
-
}));
|
|
24
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
-
}) : function(o, v) {
|
|
27
|
-
o["default"] = v;
|
|
28
|
-
});
|
|
29
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
30
|
-
var ownKeys = function(o) {
|
|
31
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
32
|
-
var ar = [];
|
|
33
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
34
|
-
return ar;
|
|
35
|
-
};
|
|
36
|
-
return ownKeys(o);
|
|
37
|
-
};
|
|
38
|
-
return function (mod) {
|
|
39
|
-
if (mod && mod.__esModule) return mod;
|
|
40
|
-
var result = {};
|
|
41
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
42
|
-
__setModuleDefault(result, mod);
|
|
43
|
-
return result;
|
|
44
|
-
};
|
|
45
|
-
})();
|
|
46
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
47
|
-
var t = {};
|
|
48
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
49
|
-
t[p] = s[p];
|
|
50
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
51
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
52
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
53
|
-
t[p[i]] = s[p[i]];
|
|
54
|
-
}
|
|
55
|
-
return t;
|
|
56
|
-
};
|
|
57
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
58
|
-
exports.buttonVariants = void 0;
|
|
59
|
-
exports.Button = Button;
|
|
60
|
-
var React = __importStar(require("react"));
|
|
61
|
-
var react_slot_1 = require("@radix-ui/react-slot");
|
|
62
|
-
var class_variance_authority_1 = require("class-variance-authority");
|
|
63
|
-
var utils_1 = require("../../lib/utils");
|
|
64
|
-
var buttonVariants = (0, class_variance_authority_1.cva)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive", {
|
|
65
|
-
variants: {
|
|
66
|
-
variant: {
|
|
67
|
-
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
68
|
-
destructive: "bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
|
69
|
-
outline: "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
|
|
70
|
-
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
71
|
-
ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
|
|
72
|
-
link: "text-primary underline-offset-4 hover:underline",
|
|
73
|
-
},
|
|
74
|
-
size: {
|
|
75
|
-
default: "h-9 px-4 py-2 has-[>svg]:px-3",
|
|
76
|
-
sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
|
|
77
|
-
lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
|
|
78
|
-
icon: "size-9",
|
|
79
|
-
},
|
|
80
|
-
},
|
|
81
|
-
defaultVariants: {
|
|
82
|
-
variant: "default",
|
|
83
|
-
size: "default",
|
|
84
|
-
},
|
|
85
|
-
});
|
|
86
|
-
exports.buttonVariants = buttonVariants;
|
|
87
|
-
function Button(_a) {
|
|
88
|
-
var className = _a.className, variant = _a.variant, size = _a.size, _b = _a.asChild, asChild = _b === void 0 ? false : _b, props = __rest(_a, ["className", "variant", "size", "asChild"]);
|
|
89
|
-
var Comp = asChild ? react_slot_1.Slot : "button";
|
|
90
|
-
return (React.createElement(Comp, __assign({ "data-slot": "button", className: (0, utils_1.cn)(buttonVariants({ variant: variant, size: size, className: className })) }, props)));
|
|
91
|
-
}
|
package/components/ui/card.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
declare function Card({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
3
|
-
declare function CardHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
4
|
-
declare function CardTitle({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
5
|
-
declare function CardDescription({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
6
|
-
declare function CardAction({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
7
|
-
declare function CardContent({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
8
|
-
declare function CardFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
9
|
-
export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent, };
|
package/components/ui/card.js
DELETED
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
-
if (k2 === undefined) k2 = k;
|
|
15
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
-
}
|
|
19
|
-
Object.defineProperty(o, k2, desc);
|
|
20
|
-
}) : (function(o, m, k, k2) {
|
|
21
|
-
if (k2 === undefined) k2 = k;
|
|
22
|
-
o[k2] = m[k];
|
|
23
|
-
}));
|
|
24
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
-
}) : function(o, v) {
|
|
27
|
-
o["default"] = v;
|
|
28
|
-
});
|
|
29
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
30
|
-
var ownKeys = function(o) {
|
|
31
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
32
|
-
var ar = [];
|
|
33
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
34
|
-
return ar;
|
|
35
|
-
};
|
|
36
|
-
return ownKeys(o);
|
|
37
|
-
};
|
|
38
|
-
return function (mod) {
|
|
39
|
-
if (mod && mod.__esModule) return mod;
|
|
40
|
-
var result = {};
|
|
41
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
42
|
-
__setModuleDefault(result, mod);
|
|
43
|
-
return result;
|
|
44
|
-
};
|
|
45
|
-
})();
|
|
46
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
47
|
-
var t = {};
|
|
48
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
49
|
-
t[p] = s[p];
|
|
50
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
51
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
52
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
53
|
-
t[p[i]] = s[p[i]];
|
|
54
|
-
}
|
|
55
|
-
return t;
|
|
56
|
-
};
|
|
57
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
58
|
-
exports.Card = Card;
|
|
59
|
-
exports.CardHeader = CardHeader;
|
|
60
|
-
exports.CardFooter = CardFooter;
|
|
61
|
-
exports.CardTitle = CardTitle;
|
|
62
|
-
exports.CardAction = CardAction;
|
|
63
|
-
exports.CardDescription = CardDescription;
|
|
64
|
-
exports.CardContent = CardContent;
|
|
65
|
-
var React = __importStar(require("react"));
|
|
66
|
-
var utils_1 = require("../../lib/utils");
|
|
67
|
-
function Card(_a) {
|
|
68
|
-
var className = _a.className, props = __rest(_a, ["className"]);
|
|
69
|
-
return (React.createElement("div", __assign({ "data-slot": "card", className: (0, utils_1.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm", className) }, props)));
|
|
70
|
-
}
|
|
71
|
-
function CardHeader(_a) {
|
|
72
|
-
var className = _a.className, props = __rest(_a, ["className"]);
|
|
73
|
-
return (React.createElement("div", __assign({ "data-slot": "card-header", className: (0, utils_1.cn)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6", className) }, props)));
|
|
74
|
-
}
|
|
75
|
-
function CardTitle(_a) {
|
|
76
|
-
var className = _a.className, props = __rest(_a, ["className"]);
|
|
77
|
-
return (React.createElement("div", __assign({ "data-slot": "card-title", className: (0, utils_1.cn)("leading-none font-semibold", className) }, props)));
|
|
78
|
-
}
|
|
79
|
-
function CardDescription(_a) {
|
|
80
|
-
var className = _a.className, props = __rest(_a, ["className"]);
|
|
81
|
-
return (React.createElement("div", __assign({ "data-slot": "card-description", className: (0, utils_1.cn)("text-muted-foreground text-sm", className) }, props)));
|
|
82
|
-
}
|
|
83
|
-
function CardAction(_a) {
|
|
84
|
-
var className = _a.className, props = __rest(_a, ["className"]);
|
|
85
|
-
return (React.createElement("div", __assign({ "data-slot": "card-action", className: (0, utils_1.cn)("col-start-2 row-span-2 row-start-1 self-start justify-self-end", className) }, props)));
|
|
86
|
-
}
|
|
87
|
-
function CardContent(_a) {
|
|
88
|
-
var className = _a.className, props = __rest(_a, ["className"]);
|
|
89
|
-
return (React.createElement("div", __assign({ "data-slot": "card-content", className: (0, utils_1.cn)("px-6", className) }, props)));
|
|
90
|
-
}
|
|
91
|
-
function CardFooter(_a) {
|
|
92
|
-
var className = _a.className, props = __rest(_a, ["className"]);
|
|
93
|
-
return (React.createElement("div", __assign({ "data-slot": "card-footer", className: (0, utils_1.cn)("flex items-center px-6 [.border-t]:pt-6", className) }, props)));
|
|
94
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import useEmblaCarousel, { type UseEmblaCarouselType } from "embla-carousel-react";
|
|
3
|
-
import { Button } from "./button";
|
|
4
|
-
type CarouselApi = UseEmblaCarouselType[1];
|
|
5
|
-
type UseCarouselParameters = Parameters<typeof useEmblaCarousel>;
|
|
6
|
-
type CarouselOptions = UseCarouselParameters[0];
|
|
7
|
-
type CarouselPlugin = UseCarouselParameters[1];
|
|
8
|
-
type CarouselProps = {
|
|
9
|
-
opts?: CarouselOptions;
|
|
10
|
-
plugins?: CarouselPlugin;
|
|
11
|
-
orientation?: "horizontal" | "vertical";
|
|
12
|
-
setApi?: (api: CarouselApi) => void;
|
|
13
|
-
};
|
|
14
|
-
declare function Carousel({ orientation, opts, setApi, plugins, className, children, ...props }: React.ComponentProps<"div"> & CarouselProps): React.JSX.Element;
|
|
15
|
-
declare function CarouselContent({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
16
|
-
declare function CarouselItem({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
17
|
-
declare function CarouselPrevious({ className, variant, size, ...props }: React.ComponentProps<typeof Button>): React.JSX.Element;
|
|
18
|
-
declare function CarouselNext({ className, variant, size, ...props }: React.ComponentProps<typeof Button>): React.JSX.Element;
|
|
19
|
-
export { type CarouselApi, Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext, };
|