@jameskabz/nextcraft-ui 0.6.5 → 0.6.6
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/dist/index.cjs +3448 -103
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +746 -54
- package/dist/index.d.ts +746 -54
- package/dist/index.js +3388 -50
- package/dist/index.js.map +1 -1
- package/package.json +1 -26
- package/dist/components/craft-alert.cjs +0 -69
- package/dist/components/craft-alert.cjs.map +0 -1
- package/dist/components/craft-alert.d.cts +0 -16
- package/dist/components/craft-alert.d.ts +0 -16
- package/dist/components/craft-alert.js +0 -45
- package/dist/components/craft-alert.js.map +0 -1
- package/dist/components/craft-badge.cjs +0 -54
- package/dist/components/craft-badge.cjs.map +0 -1
- package/dist/components/craft-badge.d.cts +0 -12
- package/dist/components/craft-badge.d.ts +0 -12
- package/dist/components/craft-badge.js +0 -30
- package/dist/components/craft-badge.js.map +0 -1
- package/dist/components/craft-button.cjs +0 -66
- package/dist/components/craft-button.cjs.map +0 -1
- package/dist/components/craft-button.d.cts +0 -15
- package/dist/components/craft-button.d.ts +0 -15
- package/dist/components/craft-button.js +0 -42
- package/dist/components/craft-button.js.map +0 -1
- package/dist/components/craft-card.cjs +0 -63
- package/dist/components/craft-card.cjs.map +0 -1
- package/dist/components/craft-card.d.cts +0 -13
- package/dist/components/craft-card.d.ts +0 -13
- package/dist/components/craft-card.js +0 -39
- package/dist/components/craft-card.js.map +0 -1
- package/dist/components/craft-checkbox.cjs +0 -103
- package/dist/components/craft-checkbox.cjs.map +0 -1
- package/dist/components/craft-checkbox.d.cts +0 -16
- package/dist/components/craft-checkbox.d.ts +0 -16
- package/dist/components/craft-checkbox.js +0 -69
- package/dist/components/craft-checkbox.js.map +0 -1
- package/dist/components/craft-command-palette.cjs +0 -134
- package/dist/components/craft-command-palette.cjs.map +0 -1
- package/dist/components/craft-command-palette.d.cts +0 -28
- package/dist/components/craft-command-palette.d.ts +0 -28
- package/dist/components/craft-command-palette.js +0 -100
- package/dist/components/craft-command-palette.js.map +0 -1
- package/dist/components/craft-confirm-dialog.cjs +0 -114
- package/dist/components/craft-confirm-dialog.cjs.map +0 -1
- package/dist/components/craft-confirm-dialog.d.cts +0 -21
- package/dist/components/craft-confirm-dialog.d.ts +0 -21
- package/dist/components/craft-confirm-dialog.js +0 -80
- package/dist/components/craft-confirm-dialog.js.map +0 -1
- package/dist/components/craft-create-edit-drawer.cjs +0 -112
- package/dist/components/craft-create-edit-drawer.cjs.map +0 -1
- package/dist/components/craft-create-edit-drawer.d.cts +0 -28
- package/dist/components/craft-create-edit-drawer.d.ts +0 -28
- package/dist/components/craft-create-edit-drawer.js +0 -78
- package/dist/components/craft-create-edit-drawer.js.map +0 -1
- package/dist/components/craft-currency-input.cjs +0 -68
- package/dist/components/craft-currency-input.cjs.map +0 -1
- package/dist/components/craft-currency-input.d.cts +0 -14
- package/dist/components/craft-currency-input.d.ts +0 -14
- package/dist/components/craft-currency-input.js +0 -34
- package/dist/components/craft-currency-input.js.map +0 -1
- package/dist/components/craft-data-table.cjs +0 -407
- package/dist/components/craft-data-table.cjs.map +0 -1
- package/dist/components/craft-data-table.d.cts +0 -58
- package/dist/components/craft-data-table.d.ts +0 -58
- package/dist/components/craft-data-table.js +0 -373
- package/dist/components/craft-data-table.js.map +0 -1
- package/dist/components/craft-date-picker.cjs +0 -226
- package/dist/components/craft-date-picker.cjs.map +0 -1
- package/dist/components/craft-date-picker.d.cts +0 -17
- package/dist/components/craft-date-picker.d.ts +0 -17
- package/dist/components/craft-date-picker.js +0 -192
- package/dist/components/craft-date-picker.js.map +0 -1
- package/dist/components/craft-drawer.cjs +0 -126
- package/dist/components/craft-drawer.cjs.map +0 -1
- package/dist/components/craft-drawer.d.cts +0 -19
- package/dist/components/craft-drawer.d.ts +0 -19
- package/dist/components/craft-drawer.js +0 -92
- package/dist/components/craft-drawer.js.map +0 -1
- package/dist/components/craft-dropdown-menu.cjs +0 -127
- package/dist/components/craft-dropdown-menu.cjs.map +0 -1
- package/dist/components/craft-dropdown-menu.d.cts +0 -28
- package/dist/components/craft-dropdown-menu.d.ts +0 -28
- package/dist/components/craft-dropdown-menu.js +0 -93
- package/dist/components/craft-dropdown-menu.js.map +0 -1
- package/dist/components/craft-empty-state.cjs +0 -58
- package/dist/components/craft-empty-state.cjs.map +0 -1
- package/dist/components/craft-empty-state.d.cts +0 -14
- package/dist/components/craft-empty-state.d.ts +0 -14
- package/dist/components/craft-empty-state.js +0 -34
- package/dist/components/craft-empty-state.js.map +0 -1
- package/dist/components/craft-error-state.cjs +0 -60
- package/dist/components/craft-error-state.cjs.map +0 -1
- package/dist/components/craft-error-state.d.cts +0 -15
- package/dist/components/craft-error-state.d.ts +0 -15
- package/dist/components/craft-error-state.js +0 -36
- package/dist/components/craft-error-state.js.map +0 -1
- package/dist/components/craft-filter-bar.cjs +0 -76
- package/dist/components/craft-filter-bar.cjs.map +0 -1
- package/dist/components/craft-filter-bar.d.cts +0 -18
- package/dist/components/craft-filter-bar.d.ts +0 -18
- package/dist/components/craft-filter-bar.js +0 -52
- package/dist/components/craft-filter-bar.js.map +0 -1
- package/dist/components/craft-form-builder.cjs +0 -330
- package/dist/components/craft-form-builder.cjs.map +0 -1
- package/dist/components/craft-form-builder.d.cts +0 -57
- package/dist/components/craft-form-builder.d.ts +0 -57
- package/dist/components/craft-form-builder.js +0 -301
- package/dist/components/craft-form-builder.js.map +0 -1
- package/dist/components/craft-form-field.cjs +0 -301
- package/dist/components/craft-form-field.cjs.map +0 -1
- package/dist/components/craft-form-field.d.cts +0 -30
- package/dist/components/craft-form-field.d.ts +0 -30
- package/dist/components/craft-form-field.js +0 -280
- package/dist/components/craft-form-field.js.map +0 -1
- package/dist/components/craft-form.cjs +0 -114
- package/dist/components/craft-form.cjs.map +0 -1
- package/dist/components/craft-form.d.cts +0 -27
- package/dist/components/craft-form.d.ts +0 -27
- package/dist/components/craft-form.js +0 -80
- package/dist/components/craft-form.js.map +0 -1
- package/dist/components/craft-icon.cjs +0 -102
- package/dist/components/craft-icon.cjs.map +0 -1
- package/dist/components/craft-icon.d.cts +0 -19
- package/dist/components/craft-icon.d.ts +0 -19
- package/dist/components/craft-icon.js +0 -67
- package/dist/components/craft-icon.js.map +0 -1
- package/dist/components/craft-input.cjs +0 -78
- package/dist/components/craft-input.cjs.map +0 -1
- package/dist/components/craft-input.d.cts +0 -19
- package/dist/components/craft-input.d.ts +0 -19
- package/dist/components/craft-input.js +0 -44
- package/dist/components/craft-input.js.map +0 -1
- package/dist/components/craft-link.cjs +0 -70
- package/dist/components/craft-link.cjs.map +0 -1
- package/dist/components/craft-link.d.cts +0 -14
- package/dist/components/craft-link.d.ts +0 -14
- package/dist/components/craft-link.js +0 -36
- package/dist/components/craft-link.js.map +0 -1
- package/dist/components/craft-loading-state.cjs +0 -64
- package/dist/components/craft-loading-state.cjs.map +0 -1
- package/dist/components/craft-loading-state.d.cts +0 -13
- package/dist/components/craft-loading-state.d.ts +0 -13
- package/dist/components/craft-loading-state.js +0 -40
- package/dist/components/craft-loading-state.js.map +0 -1
- package/dist/components/craft-modal.cjs +0 -174
- package/dist/components/craft-modal.cjs.map +0 -1
- package/dist/components/craft-modal.d.cts +0 -19
- package/dist/components/craft-modal.d.ts +0 -19
- package/dist/components/craft-modal.js +0 -140
- package/dist/components/craft-modal.js.map +0 -1
- package/dist/components/craft-number-input.cjs +0 -63
- package/dist/components/craft-number-input.cjs.map +0 -1
- package/dist/components/craft-number-input.d.cts +0 -12
- package/dist/components/craft-number-input.d.ts +0 -12
- package/dist/components/craft-number-input.js +0 -29
- package/dist/components/craft-number-input.js.map +0 -1
- package/dist/components/craft-pagination.cjs +0 -130
- package/dist/components/craft-pagination.cjs.map +0 -1
- package/dist/components/craft-pagination.d.cts +0 -19
- package/dist/components/craft-pagination.d.ts +0 -19
- package/dist/components/craft-pagination.js +0 -106
- package/dist/components/craft-pagination.js.map +0 -1
- package/dist/components/craft-popover.cjs +0 -123
- package/dist/components/craft-popover.cjs.map +0 -1
- package/dist/components/craft-popover.d.cts +0 -20
- package/dist/components/craft-popover.d.ts +0 -20
- package/dist/components/craft-popover.js +0 -89
- package/dist/components/craft-popover.js.map +0 -1
- package/dist/components/craft-select.cjs +0 -84
- package/dist/components/craft-select.cjs.map +0 -1
- package/dist/components/craft-select.d.cts +0 -12
- package/dist/components/craft-select.d.ts +0 -12
- package/dist/components/craft-select.js +0 -50
- package/dist/components/craft-select.js.map +0 -1
- package/dist/components/craft-skeleton.cjs +0 -45
- package/dist/components/craft-skeleton.cjs.map +0 -1
- package/dist/components/craft-skeleton.d.cts +0 -10
- package/dist/components/craft-skeleton.d.ts +0 -10
- package/dist/components/craft-skeleton.js +0 -21
- package/dist/components/craft-skeleton.js.map +0 -1
- package/dist/components/craft-stat-card.cjs +0 -67
- package/dist/components/craft-stat-card.cjs.map +0 -1
- package/dist/components/craft-stat-card.d.cts +0 -17
- package/dist/components/craft-stat-card.d.ts +0 -17
- package/dist/components/craft-stat-card.js +0 -43
- package/dist/components/craft-stat-card.js.map +0 -1
- package/dist/components/craft-submit-button.cjs +0 -71
- package/dist/components/craft-submit-button.cjs.map +0 -1
- package/dist/components/craft-submit-button.d.cts +0 -13
- package/dist/components/craft-submit-button.d.ts +0 -13
- package/dist/components/craft-submit-button.js +0 -47
- package/dist/components/craft-submit-button.js.map +0 -1
- package/dist/components/craft-switch.cjs +0 -82
- package/dist/components/craft-switch.cjs.map +0 -1
- package/dist/components/craft-switch.d.cts +0 -14
- package/dist/components/craft-switch.d.ts +0 -14
- package/dist/components/craft-switch.js +0 -48
- package/dist/components/craft-switch.js.map +0 -1
- package/dist/components/craft-table-toolbar.cjs +0 -79
- package/dist/components/craft-table-toolbar.cjs.map +0 -1
- package/dist/components/craft-table-toolbar.d.cts +0 -19
- package/dist/components/craft-table-toolbar.d.ts +0 -19
- package/dist/components/craft-table-toolbar.js +0 -55
- package/dist/components/craft-table-toolbar.js.map +0 -1
- package/dist/components/craft-tabs.cjs +0 -105
- package/dist/components/craft-tabs.cjs.map +0 -1
- package/dist/components/craft-tabs.d.cts +0 -19
- package/dist/components/craft-tabs.d.ts +0 -19
- package/dist/components/craft-tabs.js +0 -71
- package/dist/components/craft-tabs.js.map +0 -1
- package/dist/components/craft-textarea.cjs +0 -69
- package/dist/components/craft-textarea.cjs.map +0 -1
- package/dist/components/craft-textarea.d.cts +0 -12
- package/dist/components/craft-textarea.d.ts +0 -12
- package/dist/components/craft-textarea.js +0 -35
- package/dist/components/craft-textarea.js.map +0 -1
- package/dist/components/craft-toast.cjs +0 -98
- package/dist/components/craft-toast.cjs.map +0 -1
- package/dist/components/craft-toast.d.cts +0 -24
- package/dist/components/craft-toast.d.ts +0 -24
- package/dist/components/craft-toast.js +0 -63
- package/dist/components/craft-toast.js.map +0 -1
- package/dist/components/craft-tooltip.cjs +0 -75
- package/dist/components/craft-tooltip.cjs.map +0 -1
- package/dist/components/craft-tooltip.d.cts +0 -13
- package/dist/components/craft-tooltip.d.ts +0 -13
- package/dist/components/craft-tooltip.js +0 -41
- package/dist/components/craft-tooltip.js.map +0 -1
- package/dist/components/forms/types.cjs +0 -17
- package/dist/components/forms/types.cjs.map +0 -1
- package/dist/components/forms/types.d.cts +0 -7
- package/dist/components/forms/types.d.ts +0 -7
- package/dist/components/forms/types.js +0 -1
- package/dist/components/forms/types.js.map +0 -1
- package/dist/components/glass-card.cjs +0 -64
- package/dist/components/glass-card.cjs.map +0 -1
- package/dist/components/glass-card.d.cts +0 -12
- package/dist/components/glass-card.d.ts +0 -12
- package/dist/components/glass-card.js +0 -40
- package/dist/components/glass-card.js.map +0 -1
- package/dist/components/layout/app-shell.cjs +0 -49
- package/dist/components/layout/app-shell.cjs.map +0 -1
- package/dist/components/layout/app-shell.d.cts +0 -10
- package/dist/components/layout/app-shell.d.ts +0 -10
- package/dist/components/layout/app-shell.js +0 -25
- package/dist/components/layout/app-shell.js.map +0 -1
- package/dist/components/layout/app-template.cjs +0 -104
- package/dist/components/layout/app-template.cjs.map +0 -1
- package/dist/components/layout/app-template.d.cts +0 -19
- package/dist/components/layout/app-template.d.ts +0 -19
- package/dist/components/layout/app-template.js +0 -70
- package/dist/components/layout/app-template.js.map +0 -1
- package/dist/components/layout/auth-layout.cjs +0 -65
- package/dist/components/layout/auth-layout.cjs.map +0 -1
- package/dist/components/layout/auth-layout.d.cts +0 -12
- package/dist/components/layout/auth-layout.d.ts +0 -12
- package/dist/components/layout/auth-layout.js +0 -41
- package/dist/components/layout/auth-layout.js.map +0 -1
- package/dist/components/layout/breadcrumbs.cjs +0 -39
- package/dist/components/layout/breadcrumbs.cjs.map +0 -1
- package/dist/components/layout/breadcrumbs.d.cts +0 -13
- package/dist/components/layout/breadcrumbs.d.ts +0 -13
- package/dist/components/layout/breadcrumbs.js +0 -15
- package/dist/components/layout/breadcrumbs.js.map +0 -1
- package/dist/components/layout/container.cjs +0 -45
- package/dist/components/layout/container.cjs.map +0 -1
- package/dist/components/layout/container.d.cts +0 -9
- package/dist/components/layout/container.d.ts +0 -9
- package/dist/components/layout/container.js +0 -21
- package/dist/components/layout/container.js.map +0 -1
- package/dist/components/layout/grid.cjs +0 -47
- package/dist/components/layout/grid.cjs.map +0 -1
- package/dist/components/layout/grid.d.cts +0 -10
- package/dist/components/layout/grid.d.ts +0 -10
- package/dist/components/layout/grid.js +0 -23
- package/dist/components/layout/grid.js.map +0 -1
- package/dist/components/layout/layout-config.cjs +0 -78
- package/dist/components/layout/layout-config.cjs.map +0 -1
- package/dist/components/layout/layout-config.d.cts +0 -92
- package/dist/components/layout/layout-config.d.ts +0 -92
- package/dist/components/layout/layout-config.js +0 -54
- package/dist/components/layout/layout-config.js.map +0 -1
- package/dist/components/layout/page-header.cjs +0 -52
- package/dist/components/layout/page-header.cjs.map +0 -1
- package/dist/components/layout/page-header.d.cts +0 -11
- package/dist/components/layout/page-header.d.ts +0 -11
- package/dist/components/layout/page-header.js +0 -28
- package/dist/components/layout/page-header.js.map +0 -1
- package/dist/components/layout/sidebar.cjs +0 -64
- package/dist/components/layout/sidebar.cjs.map +0 -1
- package/dist/components/layout/sidebar.d.cts +0 -17
- package/dist/components/layout/sidebar.d.ts +0 -17
- package/dist/components/layout/sidebar.js +0 -40
- package/dist/components/layout/sidebar.js.map +0 -1
- package/dist/components/layout/top-nav.cjs +0 -49
- package/dist/components/layout/top-nav.cjs.map +0 -1
- package/dist/components/layout/top-nav.d.cts +0 -11
- package/dist/components/layout/top-nav.d.ts +0 -11
- package/dist/components/layout/top-nav.js +0 -25
- package/dist/components/layout/top-nav.js.map +0 -1
- package/dist/components/layout/types.cjs +0 -29
- package/dist/components/layout/types.cjs.map +0 -1
- package/dist/components/layout/types.d.cts +0 -12
- package/dist/components/layout/types.d.ts +0 -12
- package/dist/components/layout/types.js +0 -5
- package/dist/components/layout/types.js.map +0 -1
- package/dist/components/table/types.cjs +0 -17
- package/dist/components/table/types.cjs.map +0 -1
- package/dist/components/table/types.d.cts +0 -7
- package/dist/components/table/types.d.ts +0 -7
- package/dist/components/table/types.js +0 -1
- package/dist/components/table/types.js.map +0 -1
- package/dist/components/theme-switcher.cjs +0 -72
- package/dist/components/theme-switcher.cjs.map +0 -1
- package/dist/components/theme-switcher.d.cts +0 -9
- package/dist/components/theme-switcher.d.ts +0 -9
- package/dist/components/theme-switcher.js +0 -48
- package/dist/components/theme-switcher.js.map +0 -1
- package/dist/craft/components.cjs +0 -123
- package/dist/craft/components.cjs.map +0 -1
- package/dist/craft/components.d.cts +0 -36
- package/dist/craft/components.d.ts +0 -36
- package/dist/craft/components.js +0 -67
- package/dist/craft/components.js.map +0 -1
- package/dist/craft/forms.cjs +0 -35
- package/dist/craft/forms.cjs.map +0 -1
- package/dist/craft/forms.d.cts +0 -7
- package/dist/craft/forms.d.ts +0 -7
- package/dist/craft/forms.js +0 -9
- package/dist/craft/forms.js.map +0 -1
- package/dist/craft/layout.cjs +0 -56
- package/dist/craft/layout.cjs.map +0 -1
- package/dist/craft/layout.d.cts +0 -12
- package/dist/craft/layout.d.ts +0 -12
- package/dist/craft/layout.js +0 -23
- package/dist/craft/layout.js.map +0 -1
- package/dist/craft/table.cjs +0 -38
- package/dist/craft/table.cjs.map +0 -1
- package/dist/craft/table.d.cts +0 -7
- package/dist/craft/table.d.ts +0 -7
- package/dist/craft/table.js +0 -11
- package/dist/craft/table.js.map +0 -1
- package/dist/craft/theme.cjs +0 -34
- package/dist/craft/theme.cjs.map +0 -1
- package/dist/craft/theme.d.cts +0 -4
- package/dist/craft/theme.d.ts +0 -4
- package/dist/craft/theme.js +0 -8
- package/dist/craft/theme.js.map +0 -1
- package/dist/theme-context-EVI9PfKv.d.cts +0 -22
- package/dist/theme-context-EVI9PfKv.d.ts +0 -22
- package/dist/utils/cn.cjs +0 -31
- package/dist/utils/cn.cjs.map +0 -1
- package/dist/utils/cn.d.cts +0 -3
- package/dist/utils/cn.d.ts +0 -3
- package/dist/utils/cn.js +0 -7
- package/dist/utils/cn.js.map +0 -1
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var glass_card_exports = {};
|
|
20
|
-
__export(glass_card_exports, {
|
|
21
|
-
GlassCard: () => GlassCard
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(glass_card_exports);
|
|
24
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
|
-
var import_cn = require("@/utils/cn");
|
|
26
|
-
const intensityClasses = {
|
|
27
|
-
subtle: "backdrop-blur-md bg-opacity-50",
|
|
28
|
-
medium: "backdrop-blur-xl bg-opacity-70",
|
|
29
|
-
strong: "backdrop-blur-2xl bg-opacity-90"
|
|
30
|
-
};
|
|
31
|
-
function GlassCard({
|
|
32
|
-
className,
|
|
33
|
-
tone,
|
|
34
|
-
intensity = "medium",
|
|
35
|
-
bordered = true,
|
|
36
|
-
children,
|
|
37
|
-
...props
|
|
38
|
-
}) {
|
|
39
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
40
|
-
"div",
|
|
41
|
-
{
|
|
42
|
-
className: (0, import_cn.cn)(
|
|
43
|
-
"relative overflow-hidden rounded-3xl p-6 text-[rgb(var(--nc-fg))]",
|
|
44
|
-
"shadow-[0_8px_32px_rgba(0,0,0,0.3)]",
|
|
45
|
-
"transition-all duration-300",
|
|
46
|
-
"hover:shadow-[0_8px_40px_rgba(0,0,0,0.4)]",
|
|
47
|
-
intensityClasses[intensity],
|
|
48
|
-
"bg-linear-to-br from-[rgb(var(--nc-accent-1)/0.15)] via-[rgb(var(--nc-accent-2)/0.10)] to-[rgb(var(--nc-accent-3)/0.15)]",
|
|
49
|
-
"border-[rgb(var(--nc-accent-1)/0.3)]",
|
|
50
|
-
bordered ? "border-2" : "border-0",
|
|
51
|
-
"before:absolute before:inset-0 before:bg-linear-to-br before:from-white/10 before:to-transparent before:opacity-0 hover:before:opacity-100 before:transition-opacity before:duration-300",
|
|
52
|
-
className
|
|
53
|
-
),
|
|
54
|
-
"data-nc-theme": tone,
|
|
55
|
-
...props,
|
|
56
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "relative z-10", children })
|
|
57
|
-
}
|
|
58
|
-
);
|
|
59
|
-
}
|
|
60
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
61
|
-
0 && (module.exports = {
|
|
62
|
-
GlassCard
|
|
63
|
-
});
|
|
64
|
-
//# sourceMappingURL=glass-card.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/glass-card.tsx"],"sourcesContent":["import { cn } from \"@/utils/cn\";\nimport type { ThemeName } from \"@/theme/theme-context\";\n\nexport type GlassCardProps = React.HTMLAttributes<HTMLDivElement> & {\n tone?: ThemeName;\n intensity?: \"subtle\" | \"medium\" | \"strong\";\n bordered?: boolean;\n};\n\nconst intensityClasses: Record<NonNullable<GlassCardProps[\"intensity\"]>, string> = {\n subtle: \"backdrop-blur-md bg-opacity-50\",\n medium: \"backdrop-blur-xl bg-opacity-70\",\n strong: \"backdrop-blur-2xl bg-opacity-90\",\n};\n\nexport function GlassCard({\n className,\n tone,\n intensity = \"medium\",\n bordered = true,\n children,\n ...props\n}: GlassCardProps) {\n return (\n <div\n className={cn(\n \"relative overflow-hidden rounded-3xl p-6 text-[rgb(var(--nc-fg))]\",\n \"shadow-[0_8px_32px_rgba(0,0,0,0.3)]\",\n \"transition-all duration-300\",\n \"hover:shadow-[0_8px_40px_rgba(0,0,0,0.4)]\",\n intensityClasses[intensity],\n \"bg-linear-to-br from-[rgb(var(--nc-accent-1)/0.15)] via-[rgb(var(--nc-accent-2)/0.10)] to-[rgb(var(--nc-accent-3)/0.15)]\",\n \"border-[rgb(var(--nc-accent-1)/0.3)]\",\n bordered ? \"border-2\" : \"border-0\",\n \"before:absolute before:inset-0 before:bg-linear-to-br before:from-white/10 before:to-transparent before:opacity-0 hover:before:opacity-100 before:transition-opacity before:duration-300\",\n className\n )}\n data-nc-theme={tone}\n {...props}\n >\n <div className=\"relative z-10\">{children}</div>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAwCM;AAxCN,gBAAmB;AASnB,MAAM,mBAA6E;AAAA,EACjF,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AACV;AAEO,SAAS,UAAU;AAAA,EACxB;AAAA,EACA;AAAA,EACA,YAAY;AAAA,EACZ,WAAW;AAAA,EACX;AAAA,EACA,GAAG;AACL,GAAmB;AACjB,SACE;AAAA,IAAC;AAAA;AAAA,MACC,eAAW;AAAA,QACT;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA,iBAAiB,SAAS;AAAA,QAC1B;AAAA,QACA;AAAA,QACA,WAAW,aAAa;AAAA,QACxB;AAAA,QACA;AAAA,MACF;AAAA,MACA,iBAAe;AAAA,MACd,GAAG;AAAA,MAEJ,sDAAC,SAAI,WAAU,iBAAiB,UAAS;AAAA;AAAA,EAC3C;AAEJ;","names":[]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { a as ThemeName } from '../theme-context-EVI9PfKv.cjs';
|
|
3
|
-
import 'react';
|
|
4
|
-
|
|
5
|
-
type GlassCardProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
6
|
-
tone?: ThemeName;
|
|
7
|
-
intensity?: "subtle" | "medium" | "strong";
|
|
8
|
-
bordered?: boolean;
|
|
9
|
-
};
|
|
10
|
-
declare function GlassCard({ className, tone, intensity, bordered, children, ...props }: GlassCardProps): react_jsx_runtime.JSX.Element;
|
|
11
|
-
|
|
12
|
-
export { GlassCard, type GlassCardProps };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { a as ThemeName } from '../theme-context-EVI9PfKv.js';
|
|
3
|
-
import 'react';
|
|
4
|
-
|
|
5
|
-
type GlassCardProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
6
|
-
tone?: ThemeName;
|
|
7
|
-
intensity?: "subtle" | "medium" | "strong";
|
|
8
|
-
bordered?: boolean;
|
|
9
|
-
};
|
|
10
|
-
declare function GlassCard({ className, tone, intensity, bordered, children, ...props }: GlassCardProps): react_jsx_runtime.JSX.Element;
|
|
11
|
-
|
|
12
|
-
export { GlassCard, type GlassCardProps };
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from "@/utils/cn";
|
|
3
|
-
const intensityClasses = {
|
|
4
|
-
subtle: "backdrop-blur-md bg-opacity-50",
|
|
5
|
-
medium: "backdrop-blur-xl bg-opacity-70",
|
|
6
|
-
strong: "backdrop-blur-2xl bg-opacity-90"
|
|
7
|
-
};
|
|
8
|
-
function GlassCard({
|
|
9
|
-
className,
|
|
10
|
-
tone,
|
|
11
|
-
intensity = "medium",
|
|
12
|
-
bordered = true,
|
|
13
|
-
children,
|
|
14
|
-
...props
|
|
15
|
-
}) {
|
|
16
|
-
return /* @__PURE__ */ jsx(
|
|
17
|
-
"div",
|
|
18
|
-
{
|
|
19
|
-
className: cn(
|
|
20
|
-
"relative overflow-hidden rounded-3xl p-6 text-[rgb(var(--nc-fg))]",
|
|
21
|
-
"shadow-[0_8px_32px_rgba(0,0,0,0.3)]",
|
|
22
|
-
"transition-all duration-300",
|
|
23
|
-
"hover:shadow-[0_8px_40px_rgba(0,0,0,0.4)]",
|
|
24
|
-
intensityClasses[intensity],
|
|
25
|
-
"bg-linear-to-br from-[rgb(var(--nc-accent-1)/0.15)] via-[rgb(var(--nc-accent-2)/0.10)] to-[rgb(var(--nc-accent-3)/0.15)]",
|
|
26
|
-
"border-[rgb(var(--nc-accent-1)/0.3)]",
|
|
27
|
-
bordered ? "border-2" : "border-0",
|
|
28
|
-
"before:absolute before:inset-0 before:bg-linear-to-br before:from-white/10 before:to-transparent before:opacity-0 hover:before:opacity-100 before:transition-opacity before:duration-300",
|
|
29
|
-
className
|
|
30
|
-
),
|
|
31
|
-
"data-nc-theme": tone,
|
|
32
|
-
...props,
|
|
33
|
-
children: /* @__PURE__ */ jsx("div", { className: "relative z-10", children })
|
|
34
|
-
}
|
|
35
|
-
);
|
|
36
|
-
}
|
|
37
|
-
export {
|
|
38
|
-
GlassCard
|
|
39
|
-
};
|
|
40
|
-
//# sourceMappingURL=glass-card.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/glass-card.tsx"],"sourcesContent":["import { cn } from \"@/utils/cn\";\nimport type { ThemeName } from \"@/theme/theme-context\";\n\nexport type GlassCardProps = React.HTMLAttributes<HTMLDivElement> & {\n tone?: ThemeName;\n intensity?: \"subtle\" | \"medium\" | \"strong\";\n bordered?: boolean;\n};\n\nconst intensityClasses: Record<NonNullable<GlassCardProps[\"intensity\"]>, string> = {\n subtle: \"backdrop-blur-md bg-opacity-50\",\n medium: \"backdrop-blur-xl bg-opacity-70\",\n strong: \"backdrop-blur-2xl bg-opacity-90\",\n};\n\nexport function GlassCard({\n className,\n tone,\n intensity = \"medium\",\n bordered = true,\n children,\n ...props\n}: GlassCardProps) {\n return (\n <div\n className={cn(\n \"relative overflow-hidden rounded-3xl p-6 text-[rgb(var(--nc-fg))]\",\n \"shadow-[0_8px_32px_rgba(0,0,0,0.3)]\",\n \"transition-all duration-300\",\n \"hover:shadow-[0_8px_40px_rgba(0,0,0,0.4)]\",\n intensityClasses[intensity],\n \"bg-linear-to-br from-[rgb(var(--nc-accent-1)/0.15)] via-[rgb(var(--nc-accent-2)/0.10)] to-[rgb(var(--nc-accent-3)/0.15)]\",\n \"border-[rgb(var(--nc-accent-1)/0.3)]\",\n bordered ? \"border-2\" : \"border-0\",\n \"before:absolute before:inset-0 before:bg-linear-to-br before:from-white/10 before:to-transparent before:opacity-0 hover:before:opacity-100 before:transition-opacity before:duration-300\",\n className\n )}\n data-nc-theme={tone}\n {...props}\n >\n <div className=\"relative z-10\">{children}</div>\n </div>\n );\n}\n"],"mappings":"AAwCM;AAxCN,SAAS,UAAU;AASnB,MAAM,mBAA6E;AAAA,EACjF,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AACV;AAEO,SAAS,UAAU;AAAA,EACxB;AAAA,EACA;AAAA,EACA,YAAY;AAAA,EACZ,WAAW;AAAA,EACX;AAAA,EACA,GAAG;AACL,GAAmB;AACjB,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW;AAAA,QACT;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA,iBAAiB,SAAS;AAAA,QAC1B;AAAA,QACA;AAAA,QACA,WAAW,aAAa;AAAA,QACxB;AAAA,QACA;AAAA,MACF;AAAA,MACA,iBAAe;AAAA,MACd,GAAG;AAAA,MAEJ,8BAAC,SAAI,WAAU,iBAAiB,UAAS;AAAA;AAAA,EAC3C;AAEJ;","names":[]}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var app_shell_exports = {};
|
|
20
|
-
__export(app_shell_exports, {
|
|
21
|
-
AppShell: () => AppShell
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(app_shell_exports);
|
|
24
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
|
-
var import_cn = require("@/utils/cn");
|
|
26
|
-
function AppShell({ className, sidebar, topNav, children, ...props }) {
|
|
27
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
28
|
-
"div",
|
|
29
|
-
{
|
|
30
|
-
className: (0, import_cn.cn)(
|
|
31
|
-
"grid min-h-screen grid-cols-1 gap-6 bg-background p-6 lg:grid-cols-[260px_1fr]",
|
|
32
|
-
className
|
|
33
|
-
),
|
|
34
|
-
...props,
|
|
35
|
-
children: [
|
|
36
|
-
sidebar && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "h-full lg:sticky lg:top-6 lg:self-start lg:max-h-[calc(100vh-3rem)] lg:overflow-y-auto", children: sidebar }),
|
|
37
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex flex-col gap-6", children: [
|
|
38
|
-
topNav && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "lg:sticky lg:top-6 lg:z-20", children: topNav }),
|
|
39
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("main", { className: "flex-1", children })
|
|
40
|
-
] })
|
|
41
|
-
]
|
|
42
|
-
}
|
|
43
|
-
);
|
|
44
|
-
}
|
|
45
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
46
|
-
0 && (module.exports = {
|
|
47
|
-
AppShell
|
|
48
|
-
});
|
|
49
|
-
//# sourceMappingURL=app-shell.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/layout/app-shell.tsx"],"sourcesContent":["import * as React from \"react\";\n\nimport { cn } from \"@/utils/cn\";\n\nexport type AppShellProps = React.HTMLAttributes<HTMLDivElement> & {\n sidebar?: React.ReactNode;\n topNav?: React.ReactNode;\n};\n\nexport function AppShell({ className, sidebar, topNav, children, ...props }: AppShellProps) {\n return (\n <div\n className={cn(\n \"grid min-h-screen grid-cols-1 gap-6 bg-background p-6 lg:grid-cols-[260px_1fr]\",\n className\n )}\n {...props}\n >\n {sidebar && (\n <div className=\"h-full lg:sticky lg:top-6 lg:self-start lg:max-h-[calc(100vh-3rem)] lg:overflow-y-auto\">\n {sidebar}\n </div>\n )}\n <div className=\"flex flex-col gap-6\">\n {topNav && <div className=\"lg:sticky lg:top-6 lg:z-20\">{topNav}</div>}\n <main className=\"flex-1\">{children}</main>\n </div>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAmBQ;AAjBR,gBAAmB;AAOZ,SAAS,SAAS,EAAE,WAAW,SAAS,QAAQ,UAAU,GAAG,MAAM,GAAkB;AAC1F,SACE;AAAA,IAAC;AAAA;AAAA,MACC,eAAW;AAAA,QACT;AAAA,QACA;AAAA,MACF;AAAA,MACC,GAAG;AAAA,MAEH;AAAA,mBACC,4CAAC,SAAI,WAAU,0FACZ,mBACH;AAAA,QAEF,6CAAC,SAAI,WAAU,uBACZ;AAAA,oBAAU,4CAAC,SAAI,WAAU,8BAA8B,kBAAO;AAAA,UAC/D,4CAAC,UAAK,WAAU,UAAU,UAAS;AAAA,WACrC;AAAA;AAAA;AAAA,EACF;AAEJ;","names":[]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
|
|
4
|
-
type AppShellProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
5
|
-
sidebar?: React.ReactNode;
|
|
6
|
-
topNav?: React.ReactNode;
|
|
7
|
-
};
|
|
8
|
-
declare function AppShell({ className, sidebar, topNav, children, ...props }: AppShellProps): react_jsx_runtime.JSX.Element;
|
|
9
|
-
|
|
10
|
-
export { AppShell, type AppShellProps };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
|
|
4
|
-
type AppShellProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
5
|
-
sidebar?: React.ReactNode;
|
|
6
|
-
topNav?: React.ReactNode;
|
|
7
|
-
};
|
|
8
|
-
declare function AppShell({ className, sidebar, topNav, children, ...props }: AppShellProps): react_jsx_runtime.JSX.Element;
|
|
9
|
-
|
|
10
|
-
export { AppShell, type AppShellProps };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from "@/utils/cn";
|
|
3
|
-
function AppShell({ className, sidebar, topNav, children, ...props }) {
|
|
4
|
-
return /* @__PURE__ */ jsxs(
|
|
5
|
-
"div",
|
|
6
|
-
{
|
|
7
|
-
className: cn(
|
|
8
|
-
"grid min-h-screen grid-cols-1 gap-6 bg-background p-6 lg:grid-cols-[260px_1fr]",
|
|
9
|
-
className
|
|
10
|
-
),
|
|
11
|
-
...props,
|
|
12
|
-
children: [
|
|
13
|
-
sidebar && /* @__PURE__ */ jsx("div", { className: "h-full lg:sticky lg:top-6 lg:self-start lg:max-h-[calc(100vh-3rem)] lg:overflow-y-auto", children: sidebar }),
|
|
14
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-6", children: [
|
|
15
|
-
topNav && /* @__PURE__ */ jsx("div", { className: "lg:sticky lg:top-6 lg:z-20", children: topNav }),
|
|
16
|
-
/* @__PURE__ */ jsx("main", { className: "flex-1", children })
|
|
17
|
-
] })
|
|
18
|
-
]
|
|
19
|
-
}
|
|
20
|
-
);
|
|
21
|
-
}
|
|
22
|
-
export {
|
|
23
|
-
AppShell
|
|
24
|
-
};
|
|
25
|
-
//# sourceMappingURL=app-shell.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/layout/app-shell.tsx"],"sourcesContent":["import * as React from \"react\";\n\nimport { cn } from \"@/utils/cn\";\n\nexport type AppShellProps = React.HTMLAttributes<HTMLDivElement> & {\n sidebar?: React.ReactNode;\n topNav?: React.ReactNode;\n};\n\nexport function AppShell({ className, sidebar, topNav, children, ...props }: AppShellProps) {\n return (\n <div\n className={cn(\n \"grid min-h-screen grid-cols-1 gap-6 bg-background p-6 lg:grid-cols-[260px_1fr]\",\n className\n )}\n {...props}\n >\n {sidebar && (\n <div className=\"h-full lg:sticky lg:top-6 lg:self-start lg:max-h-[calc(100vh-3rem)] lg:overflow-y-auto\">\n {sidebar}\n </div>\n )}\n <div className=\"flex flex-col gap-6\">\n {topNav && <div className=\"lg:sticky lg:top-6 lg:z-20\">{topNav}</div>}\n <main className=\"flex-1\">{children}</main>\n </div>\n </div>\n );\n}\n"],"mappings":"AAmBQ,cAIF,YAJE;AAjBR,SAAS,UAAU;AAOZ,SAAS,SAAS,EAAE,WAAW,SAAS,QAAQ,UAAU,GAAG,MAAM,GAAkB;AAC1F,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW;AAAA,QACT;AAAA,QACA;AAAA,MACF;AAAA,MACC,GAAG;AAAA,MAEH;AAAA,mBACC,oBAAC,SAAI,WAAU,0FACZ,mBACH;AAAA,QAEF,qBAAC,SAAI,WAAU,uBACZ;AAAA,oBAAU,oBAAC,SAAI,WAAU,8BAA8B,kBAAO;AAAA,UAC/D,oBAAC,UAAK,WAAU,UAAU,UAAS;AAAA,WACrC;AAAA;AAAA;AAAA,EACF;AAEJ;","names":[]}
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
"use client";
|
|
3
|
-
var __create = Object.create;
|
|
4
|
-
var __defProp = Object.defineProperty;
|
|
5
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
-
var __export = (target, all) => {
|
|
10
|
-
for (var name in all)
|
|
11
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
-
};
|
|
13
|
-
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
-
for (let key of __getOwnPropNames(from))
|
|
16
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
17
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
|
-
}
|
|
19
|
-
return to;
|
|
20
|
-
};
|
|
21
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
-
mod
|
|
28
|
-
));
|
|
29
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
-
var app_template_exports = {};
|
|
31
|
-
__export(app_template_exports, {
|
|
32
|
-
AppTemplate: () => AppTemplate
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(app_template_exports);
|
|
35
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
36
|
-
var React = __toESM(require("react"), 1);
|
|
37
|
-
var import_app_shell = require("./app-shell");
|
|
38
|
-
var import_craft_icon = require("@/components/craft-icon");
|
|
39
|
-
var import_breadcrumbs = require("./breadcrumbs");
|
|
40
|
-
var import_sidebar = require("./sidebar");
|
|
41
|
-
var import_top_nav = require("./top-nav");
|
|
42
|
-
function AppTemplate({
|
|
43
|
-
config,
|
|
44
|
-
headerActions,
|
|
45
|
-
headerBreadcrumb,
|
|
46
|
-
sidebarFooter,
|
|
47
|
-
resolveIcon,
|
|
48
|
-
icons,
|
|
49
|
-
activePath,
|
|
50
|
-
getActivePath,
|
|
51
|
-
lucideFallback = true,
|
|
52
|
-
children
|
|
53
|
-
}) {
|
|
54
|
-
const sidebarConfig = config.sidebar;
|
|
55
|
-
const headerConfig = config.header;
|
|
56
|
-
const resolvedActivePath = activePath != null ? activePath : getActivePath == null ? void 0 : getActivePath();
|
|
57
|
-
const buildIcon = React.useCallback(
|
|
58
|
-
(name) => {
|
|
59
|
-
if (!name) return void 0;
|
|
60
|
-
if (resolveIcon) return resolveIcon(name);
|
|
61
|
-
if (icons == null ? void 0 : icons[name]) return icons[name];
|
|
62
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_craft_icon.CraftIcon, { name, useLucide: lucideFallback });
|
|
63
|
-
},
|
|
64
|
-
[icons, lucideFallback, resolveIcon]
|
|
65
|
-
);
|
|
66
|
-
const sidebarItems = sidebarConfig ? sidebarConfig.items.map((item) => {
|
|
67
|
-
var _a;
|
|
68
|
-
return {
|
|
69
|
-
label: item.label,
|
|
70
|
-
href: item.href,
|
|
71
|
-
active: (_a = item.active) != null ? _a : resolvedActivePath && item.href ? item.href === resolvedActivePath : false,
|
|
72
|
-
icon: buildIcon(item.icon)
|
|
73
|
-
};
|
|
74
|
-
}) : null;
|
|
75
|
-
const breadcrumbNode = headerBreadcrumb != null ? headerBreadcrumb : (headerConfig == null ? void 0 : headerConfig.breadcrumb) ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_breadcrumbs.Breadcrumbs, { items: headerConfig.breadcrumb }) : null;
|
|
76
|
-
const sidebarFooterNode = sidebarFooter != null ? sidebarFooter : (sidebarConfig == null ? void 0 : sidebarConfig.footerText) ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "text-xs text-[rgb(var(--nc-fg-muted))]", children: sidebarConfig.footerText }) : null;
|
|
77
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
78
|
-
import_app_shell.AppShell,
|
|
79
|
-
{
|
|
80
|
-
sidebar: sidebarConfig && sidebarItems ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
81
|
-
import_sidebar.Sidebar,
|
|
82
|
-
{
|
|
83
|
-
title: sidebarConfig.title,
|
|
84
|
-
items: sidebarItems,
|
|
85
|
-
footer: sidebarFooterNode
|
|
86
|
-
}
|
|
87
|
-
) : void 0,
|
|
88
|
-
topNav: headerConfig ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
89
|
-
import_top_nav.TopNav,
|
|
90
|
-
{
|
|
91
|
-
title: headerConfig.title,
|
|
92
|
-
breadcrumb: breadcrumbNode,
|
|
93
|
-
actions: headerActions
|
|
94
|
-
}
|
|
95
|
-
) : void 0,
|
|
96
|
-
children
|
|
97
|
-
}
|
|
98
|
-
);
|
|
99
|
-
}
|
|
100
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
101
|
-
0 && (module.exports = {
|
|
102
|
-
AppTemplate
|
|
103
|
-
});
|
|
104
|
-
//# sourceMappingURL=app-template.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/layout/app-template.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\n\nimport { AppShell } from \"./app-shell\";\nimport { CraftIcon } from \"@/components/craft-icon\";\nimport { Breadcrumbs } from \"./breadcrumbs\";\nimport { Sidebar, type SidebarItem } from \"./sidebar\";\nimport { TopNav } from \"./top-nav\";\nimport type { LayoutConfig, LayoutSidebarItem } from \"./layout-config\";\n\nexport type AppTemplateProps = {\n config: LayoutConfig;\n headerActions?: React.ReactNode;\n headerBreadcrumb?: React.ReactNode;\n sidebarFooter?: React.ReactNode;\n resolveIcon?: (name: string) => React.ReactNode;\n icons?: Record<string, React.ReactNode>;\n activePath?: string;\n getActivePath?: () => string | undefined;\n lucideFallback?: boolean;\n children: React.ReactNode;\n};\n\nexport function AppTemplate({\n config,\n headerActions,\n headerBreadcrumb,\n sidebarFooter,\n resolveIcon,\n icons,\n activePath,\n getActivePath,\n lucideFallback = true,\n children,\n}: AppTemplateProps) {\n const sidebarConfig = config.sidebar;\n const headerConfig = config.header;\n\n const resolvedActivePath = activePath ?? getActivePath?.();\n\n const buildIcon = React.useCallback(\n (name?: string) => {\n if (!name) return undefined;\n if (resolveIcon) return resolveIcon(name);\n if (icons?.[name]) return icons[name];\n return <CraftIcon name={name} useLucide={lucideFallback} />;\n },\n [icons, lucideFallback, resolveIcon]\n );\n\n const sidebarItems: SidebarItem[] | null = sidebarConfig\n ? sidebarConfig.items.map((item: LayoutSidebarItem) => ({\n label: item.label,\n href: item.href,\n active:\n item.active ??\n (resolvedActivePath && item.href\n ? item.href === resolvedActivePath\n : false),\n icon: buildIcon(item.icon),\n }))\n : null;\n\n const breadcrumbNode =\n headerBreadcrumb ??\n (headerConfig?.breadcrumb ? (\n <Breadcrumbs items={headerConfig.breadcrumb} />\n ) : null);\n\n const sidebarFooterNode =\n sidebarFooter ??\n (sidebarConfig?.footerText ? (\n <div className=\"text-xs text-[rgb(var(--nc-fg-muted))]\">\n {sidebarConfig.footerText}\n </div>\n ) : null);\n\n return (\n <AppShell\n sidebar={\n sidebarConfig && sidebarItems ? (\n <Sidebar\n title={sidebarConfig.title}\n items={sidebarItems}\n footer={sidebarFooterNode}\n />\n ) : undefined\n }\n topNav={\n headerConfig ? (\n <TopNav\n title={headerConfig.title}\n breadcrumb={breadcrumbNode}\n actions={headerActions}\n />\n ) : undefined\n }\n >\n {children}\n </AppShell>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AA8Ca;AA5Cb,YAAuB;AAEvB,uBAAyB;AACzB,wBAA0B;AAC1B,yBAA4B;AAC5B,qBAA0C;AAC1C,qBAAuB;AAgBhB,SAAS,YAAY;AAAA,EAC1B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,iBAAiB;AAAA,EACjB;AACF,GAAqB;AACnB,QAAM,gBAAgB,OAAO;AAC7B,QAAM,eAAe,OAAO;AAE5B,QAAM,qBAAqB,kCAAc;AAEzC,QAAM,YAAY,MAAM;AAAA,IACtB,CAAC,SAAkB;AACjB,UAAI,CAAC,KAAM,QAAO;AAClB,UAAI,YAAa,QAAO,YAAY,IAAI;AACxC,UAAI,+BAAQ,MAAO,QAAO,MAAM,IAAI;AACpC,aAAO,4CAAC,+BAAU,MAAY,WAAW,gBAAgB;AAAA,IAC3D;AAAA,IACA,CAAC,OAAO,gBAAgB,WAAW;AAAA,EACrC;AAEA,QAAM,eAAqC,gBACvC,cAAc,MAAM,IAAI,CAAC,SAAyB;AApDxD;AAoD4D;AAAA,MACpD,OAAO,KAAK;AAAA,MACZ,MAAM,KAAK;AAAA,MACX,SACE,UAAK,WAAL,YACC,sBAAsB,KAAK,OACxB,KAAK,SAAS,qBACd;AAAA,MACN,MAAM,UAAU,KAAK,IAAI;AAAA,IAC3B;AAAA,GAAE,IACF;AAEJ,QAAM,iBACJ,+CACC,6CAAc,cACb,4CAAC,kCAAY,OAAO,aAAa,YAAY,IAC3C;AAEN,QAAM,oBACJ,yCACC,+CAAe,cACd,4CAAC,SAAI,WAAU,0CACZ,wBAAc,YACjB,IACE;AAEN,SACE;AAAA,IAAC;AAAA;AAAA,MACC,SACE,iBAAiB,eACf;AAAA,QAAC;AAAA;AAAA,UACC,OAAO,cAAc;AAAA,UACrB,OAAO;AAAA,UACP,QAAQ;AAAA;AAAA,MACV,IACE;AAAA,MAEN,QACE,eACE;AAAA,QAAC;AAAA;AAAA,UACC,OAAO,aAAa;AAAA,UACpB,YAAY;AAAA,UACZ,SAAS;AAAA;AAAA,MACX,IACE;AAAA,MAGL;AAAA;AAAA,EACH;AAEJ;","names":[]}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { LayoutConfig } from './layout-config.cjs';
|
|
4
|
-
|
|
5
|
-
type AppTemplateProps = {
|
|
6
|
-
config: LayoutConfig;
|
|
7
|
-
headerActions?: React.ReactNode;
|
|
8
|
-
headerBreadcrumb?: React.ReactNode;
|
|
9
|
-
sidebarFooter?: React.ReactNode;
|
|
10
|
-
resolveIcon?: (name: string) => React.ReactNode;
|
|
11
|
-
icons?: Record<string, React.ReactNode>;
|
|
12
|
-
activePath?: string;
|
|
13
|
-
getActivePath?: () => string | undefined;
|
|
14
|
-
lucideFallback?: boolean;
|
|
15
|
-
children: React.ReactNode;
|
|
16
|
-
};
|
|
17
|
-
declare function AppTemplate({ config, headerActions, headerBreadcrumb, sidebarFooter, resolveIcon, icons, activePath, getActivePath, lucideFallback, children, }: AppTemplateProps): react_jsx_runtime.JSX.Element;
|
|
18
|
-
|
|
19
|
-
export { AppTemplate, type AppTemplateProps };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { LayoutConfig } from './layout-config.js';
|
|
4
|
-
|
|
5
|
-
type AppTemplateProps = {
|
|
6
|
-
config: LayoutConfig;
|
|
7
|
-
headerActions?: React.ReactNode;
|
|
8
|
-
headerBreadcrumb?: React.ReactNode;
|
|
9
|
-
sidebarFooter?: React.ReactNode;
|
|
10
|
-
resolveIcon?: (name: string) => React.ReactNode;
|
|
11
|
-
icons?: Record<string, React.ReactNode>;
|
|
12
|
-
activePath?: string;
|
|
13
|
-
getActivePath?: () => string | undefined;
|
|
14
|
-
lucideFallback?: boolean;
|
|
15
|
-
children: React.ReactNode;
|
|
16
|
-
};
|
|
17
|
-
declare function AppTemplate({ config, headerActions, headerBreadcrumb, sidebarFooter, resolveIcon, icons, activePath, getActivePath, lucideFallback, children, }: AppTemplateProps): react_jsx_runtime.JSX.Element;
|
|
18
|
-
|
|
19
|
-
export { AppTemplate, type AppTemplateProps };
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import * as React from "react";
|
|
4
|
-
import { AppShell } from "./app-shell";
|
|
5
|
-
import { CraftIcon } from "@/components/craft-icon";
|
|
6
|
-
import { Breadcrumbs } from "./breadcrumbs";
|
|
7
|
-
import { Sidebar } from "./sidebar";
|
|
8
|
-
import { TopNav } from "./top-nav";
|
|
9
|
-
function AppTemplate({
|
|
10
|
-
config,
|
|
11
|
-
headerActions,
|
|
12
|
-
headerBreadcrumb,
|
|
13
|
-
sidebarFooter,
|
|
14
|
-
resolveIcon,
|
|
15
|
-
icons,
|
|
16
|
-
activePath,
|
|
17
|
-
getActivePath,
|
|
18
|
-
lucideFallback = true,
|
|
19
|
-
children
|
|
20
|
-
}) {
|
|
21
|
-
const sidebarConfig = config.sidebar;
|
|
22
|
-
const headerConfig = config.header;
|
|
23
|
-
const resolvedActivePath = activePath != null ? activePath : getActivePath == null ? void 0 : getActivePath();
|
|
24
|
-
const buildIcon = React.useCallback(
|
|
25
|
-
(name) => {
|
|
26
|
-
if (!name) return void 0;
|
|
27
|
-
if (resolveIcon) return resolveIcon(name);
|
|
28
|
-
if (icons == null ? void 0 : icons[name]) return icons[name];
|
|
29
|
-
return /* @__PURE__ */ jsx(CraftIcon, { name, useLucide: lucideFallback });
|
|
30
|
-
},
|
|
31
|
-
[icons, lucideFallback, resolveIcon]
|
|
32
|
-
);
|
|
33
|
-
const sidebarItems = sidebarConfig ? sidebarConfig.items.map((item) => {
|
|
34
|
-
var _a;
|
|
35
|
-
return {
|
|
36
|
-
label: item.label,
|
|
37
|
-
href: item.href,
|
|
38
|
-
active: (_a = item.active) != null ? _a : resolvedActivePath && item.href ? item.href === resolvedActivePath : false,
|
|
39
|
-
icon: buildIcon(item.icon)
|
|
40
|
-
};
|
|
41
|
-
}) : null;
|
|
42
|
-
const breadcrumbNode = headerBreadcrumb != null ? headerBreadcrumb : (headerConfig == null ? void 0 : headerConfig.breadcrumb) ? /* @__PURE__ */ jsx(Breadcrumbs, { items: headerConfig.breadcrumb }) : null;
|
|
43
|
-
const sidebarFooterNode = sidebarFooter != null ? sidebarFooter : (sidebarConfig == null ? void 0 : sidebarConfig.footerText) ? /* @__PURE__ */ jsx("div", { className: "text-xs text-[rgb(var(--nc-fg-muted))]", children: sidebarConfig.footerText }) : null;
|
|
44
|
-
return /* @__PURE__ */ jsx(
|
|
45
|
-
AppShell,
|
|
46
|
-
{
|
|
47
|
-
sidebar: sidebarConfig && sidebarItems ? /* @__PURE__ */ jsx(
|
|
48
|
-
Sidebar,
|
|
49
|
-
{
|
|
50
|
-
title: sidebarConfig.title,
|
|
51
|
-
items: sidebarItems,
|
|
52
|
-
footer: sidebarFooterNode
|
|
53
|
-
}
|
|
54
|
-
) : void 0,
|
|
55
|
-
topNav: headerConfig ? /* @__PURE__ */ jsx(
|
|
56
|
-
TopNav,
|
|
57
|
-
{
|
|
58
|
-
title: headerConfig.title,
|
|
59
|
-
breadcrumb: breadcrumbNode,
|
|
60
|
-
actions: headerActions
|
|
61
|
-
}
|
|
62
|
-
) : void 0,
|
|
63
|
-
children
|
|
64
|
-
}
|
|
65
|
-
);
|
|
66
|
-
}
|
|
67
|
-
export {
|
|
68
|
-
AppTemplate
|
|
69
|
-
};
|
|
70
|
-
//# sourceMappingURL=app-template.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/layout/app-template.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\n\nimport { AppShell } from \"./app-shell\";\nimport { CraftIcon } from \"@/components/craft-icon\";\nimport { Breadcrumbs } from \"./breadcrumbs\";\nimport { Sidebar, type SidebarItem } from \"./sidebar\";\nimport { TopNav } from \"./top-nav\";\nimport type { LayoutConfig, LayoutSidebarItem } from \"./layout-config\";\n\nexport type AppTemplateProps = {\n config: LayoutConfig;\n headerActions?: React.ReactNode;\n headerBreadcrumb?: React.ReactNode;\n sidebarFooter?: React.ReactNode;\n resolveIcon?: (name: string) => React.ReactNode;\n icons?: Record<string, React.ReactNode>;\n activePath?: string;\n getActivePath?: () => string | undefined;\n lucideFallback?: boolean;\n children: React.ReactNode;\n};\n\nexport function AppTemplate({\n config,\n headerActions,\n headerBreadcrumb,\n sidebarFooter,\n resolveIcon,\n icons,\n activePath,\n getActivePath,\n lucideFallback = true,\n children,\n}: AppTemplateProps) {\n const sidebarConfig = config.sidebar;\n const headerConfig = config.header;\n\n const resolvedActivePath = activePath ?? getActivePath?.();\n\n const buildIcon = React.useCallback(\n (name?: string) => {\n if (!name) return undefined;\n if (resolveIcon) return resolveIcon(name);\n if (icons?.[name]) return icons[name];\n return <CraftIcon name={name} useLucide={lucideFallback} />;\n },\n [icons, lucideFallback, resolveIcon]\n );\n\n const sidebarItems: SidebarItem[] | null = sidebarConfig\n ? sidebarConfig.items.map((item: LayoutSidebarItem) => ({\n label: item.label,\n href: item.href,\n active:\n item.active ??\n (resolvedActivePath && item.href\n ? item.href === resolvedActivePath\n : false),\n icon: buildIcon(item.icon),\n }))\n : null;\n\n const breadcrumbNode =\n headerBreadcrumb ??\n (headerConfig?.breadcrumb ? (\n <Breadcrumbs items={headerConfig.breadcrumb} />\n ) : null);\n\n const sidebarFooterNode =\n sidebarFooter ??\n (sidebarConfig?.footerText ? (\n <div className=\"text-xs text-[rgb(var(--nc-fg-muted))]\">\n {sidebarConfig.footerText}\n </div>\n ) : null);\n\n return (\n <AppShell\n sidebar={\n sidebarConfig && sidebarItems ? (\n <Sidebar\n title={sidebarConfig.title}\n items={sidebarItems}\n footer={sidebarFooterNode}\n />\n ) : undefined\n }\n topNav={\n headerConfig ? (\n <TopNav\n title={headerConfig.title}\n breadcrumb={breadcrumbNode}\n actions={headerActions}\n />\n ) : undefined\n }\n >\n {children}\n </AppShell>\n );\n}\n"],"mappings":";AA8Ca;AA5Cb,YAAY,WAAW;AAEvB,SAAS,gBAAgB;AACzB,SAAS,iBAAiB;AAC1B,SAAS,mBAAmB;AAC5B,SAAS,eAAiC;AAC1C,SAAS,cAAc;AAgBhB,SAAS,YAAY;AAAA,EAC1B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,iBAAiB;AAAA,EACjB;AACF,GAAqB;AACnB,QAAM,gBAAgB,OAAO;AAC7B,QAAM,eAAe,OAAO;AAE5B,QAAM,qBAAqB,kCAAc;AAEzC,QAAM,YAAY,MAAM;AAAA,IACtB,CAAC,SAAkB;AACjB,UAAI,CAAC,KAAM,QAAO;AAClB,UAAI,YAAa,QAAO,YAAY,IAAI;AACxC,UAAI,+BAAQ,MAAO,QAAO,MAAM,IAAI;AACpC,aAAO,oBAAC,aAAU,MAAY,WAAW,gBAAgB;AAAA,IAC3D;AAAA,IACA,CAAC,OAAO,gBAAgB,WAAW;AAAA,EACrC;AAEA,QAAM,eAAqC,gBACvC,cAAc,MAAM,IAAI,CAAC,SAAyB;AApDxD;AAoD4D;AAAA,MACpD,OAAO,KAAK;AAAA,MACZ,MAAM,KAAK;AAAA,MACX,SACE,UAAK,WAAL,YACC,sBAAsB,KAAK,OACxB,KAAK,SAAS,qBACd;AAAA,MACN,MAAM,UAAU,KAAK,IAAI;AAAA,IAC3B;AAAA,GAAE,IACF;AAEJ,QAAM,iBACJ,+CACC,6CAAc,cACb,oBAAC,eAAY,OAAO,aAAa,YAAY,IAC3C;AAEN,QAAM,oBACJ,yCACC,+CAAe,cACd,oBAAC,SAAI,WAAU,0CACZ,wBAAc,YACjB,IACE;AAEN,SACE;AAAA,IAAC;AAAA;AAAA,MACC,SACE,iBAAiB,eACf;AAAA,QAAC;AAAA;AAAA,UACC,OAAO,cAAc;AAAA,UACrB,OAAO;AAAA,UACP,QAAQ;AAAA;AAAA,MACV,IACE;AAAA,MAEN,QACE,eACE;AAAA,QAAC;AAAA;AAAA,UACC,OAAO,aAAa;AAAA,UACpB,YAAY;AAAA,UACZ,SAAS;AAAA;AAAA,MACX,IACE;AAAA,MAGL;AAAA;AAAA,EACH;AAEJ;","names":[]}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var auth_layout_exports = {};
|
|
20
|
-
__export(auth_layout_exports, {
|
|
21
|
-
AuthLayout: () => AuthLayout
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(auth_layout_exports);
|
|
24
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
|
-
var import_cn = require("@/utils/cn");
|
|
26
|
-
function AuthLayout({
|
|
27
|
-
className,
|
|
28
|
-
title,
|
|
29
|
-
description,
|
|
30
|
-
footer,
|
|
31
|
-
graphic,
|
|
32
|
-
children,
|
|
33
|
-
...props
|
|
34
|
-
}) {
|
|
35
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
36
|
-
"div",
|
|
37
|
-
{
|
|
38
|
-
className: (0, import_cn.cn)(
|
|
39
|
-
"grid min-h-screen grid-cols-1 bg-background",
|
|
40
|
-
"lg:grid-cols-[1.1fr_0.9fr]",
|
|
41
|
-
className
|
|
42
|
-
),
|
|
43
|
-
...props,
|
|
44
|
-
children: [
|
|
45
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "flex flex-col justify-center px-6 py-16 sm:px-12", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "mx-auto w-full max-w-md space-y-6", children: [
|
|
46
|
-
(title || description) && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-2", children: [
|
|
47
|
-
title && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h1", { className: "text-3xl font-bold text-[rgb(var(--nc-fg))]", children: title }),
|
|
48
|
-
description && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-[rgb(var(--nc-fg-muted))]", children: description })
|
|
49
|
-
] }),
|
|
50
|
-
children,
|
|
51
|
-
footer && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "text-sm text-[rgb(var(--nc-fg-muted))]", children: footer })
|
|
52
|
-
] }) }),
|
|
53
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "hidden items-center justify-center border-l border-[rgb(var(--nc-border)/0.3)] bg-[rgb(var(--nc-surface)/0.08)] p-12 text-[rgb(var(--nc-fg))] lg:flex", children: graphic != null ? graphic : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "max-w-sm space-y-4 text-center", children: [
|
|
54
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("h2", { className: "text-2xl font-semibold", children: "Crafted experiences" }),
|
|
55
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-[rgb(var(--nc-fg-muted))]", children: "Build authentication flows that feel premium and cohesive." })
|
|
56
|
-
] }) })
|
|
57
|
-
]
|
|
58
|
-
}
|
|
59
|
-
);
|
|
60
|
-
}
|
|
61
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
62
|
-
0 && (module.exports = {
|
|
63
|
-
AuthLayout
|
|
64
|
-
});
|
|
65
|
-
//# sourceMappingURL=auth-layout.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/layout/auth-layout.tsx"],"sourcesContent":["import * as React from \"react\";\n\nimport { cn } from \"@/utils/cn\";\n\nexport type AuthLayoutProps = React.HTMLAttributes<HTMLDivElement> & {\n title?: React.ReactNode;\n description?: React.ReactNode;\n footer?: React.ReactNode;\n graphic?: React.ReactNode;\n};\n\nexport function AuthLayout({\n className,\n title,\n description,\n footer,\n graphic,\n children,\n ...props\n}: AuthLayoutProps) {\n return (\n <div\n className={cn(\n \"grid min-h-screen grid-cols-1 bg-background\",\n \"lg:grid-cols-[1.1fr_0.9fr]\",\n className\n )}\n {...props}\n >\n <div className=\"flex flex-col justify-center px-6 py-16 sm:px-12\">\n <div className=\"mx-auto w-full max-w-md space-y-6\">\n {(title || description) && (\n <div className=\"space-y-2\">\n {title && <h1 className=\"text-3xl font-bold text-[rgb(var(--nc-fg))]\">{title}</h1>}\n {description && <p className=\"text-[rgb(var(--nc-fg-muted))]\">{description}</p>}\n </div>\n )}\n {children}\n {footer && <div className=\"text-sm text-[rgb(var(--nc-fg-muted))]\">{footer}</div>}\n </div>\n </div>\n <div className=\"hidden items-center justify-center border-l border-[rgb(var(--nc-border)/0.3)] bg-[rgb(var(--nc-surface)/0.08)] p-12 text-[rgb(var(--nc-fg))] lg:flex\">\n {graphic ?? (\n <div className=\"max-w-sm space-y-4 text-center\">\n <h2 className=\"text-2xl font-semibold\">Crafted experiences</h2>\n <p className=\"text-[rgb(var(--nc-fg-muted))]\">\n Build authentication flows that feel premium and cohesive.\n </p>\n </div>\n )}\n </div>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAgCY;AA9BZ,gBAAmB;AASZ,SAAS,WAAW;AAAA,EACzB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAoB;AAClB,SACE;AAAA,IAAC;AAAA;AAAA,MACC,eAAW;AAAA,QACT;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,MACC,GAAG;AAAA,MAEJ;AAAA,oDAAC,SAAI,WAAU,oDACb,uDAAC,SAAI,WAAU,qCACX;AAAA,oBAAS,gBACT,6CAAC,SAAI,WAAU,aACZ;AAAA,qBAAS,4CAAC,QAAG,WAAU,+CAA+C,iBAAM;AAAA,YAC5E,eAAe,4CAAC,OAAE,WAAU,kCAAkC,uBAAY;AAAA,aAC7E;AAAA,UAED;AAAA,UACA,UAAU,4CAAC,SAAI,WAAU,0CAA0C,kBAAO;AAAA,WAC7E,GACF;AAAA,QACA,4CAAC,SAAI,WAAU,yJACZ,sCACC,6CAAC,SAAI,WAAU,kCACb;AAAA,sDAAC,QAAG,WAAU,0BAAyB,iCAAmB;AAAA,UAC1D,4CAAC,OAAE,WAAU,kCAAiC,wEAE9C;AAAA,WACF,GAEJ;AAAA;AAAA;AAAA,EACF;AAEJ;","names":[]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
|
|
4
|
-
type AuthLayoutProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
5
|
-
title?: React.ReactNode;
|
|
6
|
-
description?: React.ReactNode;
|
|
7
|
-
footer?: React.ReactNode;
|
|
8
|
-
graphic?: React.ReactNode;
|
|
9
|
-
};
|
|
10
|
-
declare function AuthLayout({ className, title, description, footer, graphic, children, ...props }: AuthLayoutProps): react_jsx_runtime.JSX.Element;
|
|
11
|
-
|
|
12
|
-
export { AuthLayout, type AuthLayoutProps };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
|
|
4
|
-
type AuthLayoutProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
5
|
-
title?: React.ReactNode;
|
|
6
|
-
description?: React.ReactNode;
|
|
7
|
-
footer?: React.ReactNode;
|
|
8
|
-
graphic?: React.ReactNode;
|
|
9
|
-
};
|
|
10
|
-
declare function AuthLayout({ className, title, description, footer, graphic, children, ...props }: AuthLayoutProps): react_jsx_runtime.JSX.Element;
|
|
11
|
-
|
|
12
|
-
export { AuthLayout, type AuthLayoutProps };
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from "@/utils/cn";
|
|
3
|
-
function AuthLayout({
|
|
4
|
-
className,
|
|
5
|
-
title,
|
|
6
|
-
description,
|
|
7
|
-
footer,
|
|
8
|
-
graphic,
|
|
9
|
-
children,
|
|
10
|
-
...props
|
|
11
|
-
}) {
|
|
12
|
-
return /* @__PURE__ */ jsxs(
|
|
13
|
-
"div",
|
|
14
|
-
{
|
|
15
|
-
className: cn(
|
|
16
|
-
"grid min-h-screen grid-cols-1 bg-background",
|
|
17
|
-
"lg:grid-cols-[1.1fr_0.9fr]",
|
|
18
|
-
className
|
|
19
|
-
),
|
|
20
|
-
...props,
|
|
21
|
-
children: [
|
|
22
|
-
/* @__PURE__ */ jsx("div", { className: "flex flex-col justify-center px-6 py-16 sm:px-12", children: /* @__PURE__ */ jsxs("div", { className: "mx-auto w-full max-w-md space-y-6", children: [
|
|
23
|
-
(title || description) && /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
24
|
-
title && /* @__PURE__ */ jsx("h1", { className: "text-3xl font-bold text-[rgb(var(--nc-fg))]", children: title }),
|
|
25
|
-
description && /* @__PURE__ */ jsx("p", { className: "text-[rgb(var(--nc-fg-muted))]", children: description })
|
|
26
|
-
] }),
|
|
27
|
-
children,
|
|
28
|
-
footer && /* @__PURE__ */ jsx("div", { className: "text-sm text-[rgb(var(--nc-fg-muted))]", children: footer })
|
|
29
|
-
] }) }),
|
|
30
|
-
/* @__PURE__ */ jsx("div", { className: "hidden items-center justify-center border-l border-[rgb(var(--nc-border)/0.3)] bg-[rgb(var(--nc-surface)/0.08)] p-12 text-[rgb(var(--nc-fg))] lg:flex", children: graphic != null ? graphic : /* @__PURE__ */ jsxs("div", { className: "max-w-sm space-y-4 text-center", children: [
|
|
31
|
-
/* @__PURE__ */ jsx("h2", { className: "text-2xl font-semibold", children: "Crafted experiences" }),
|
|
32
|
-
/* @__PURE__ */ jsx("p", { className: "text-[rgb(var(--nc-fg-muted))]", children: "Build authentication flows that feel premium and cohesive." })
|
|
33
|
-
] }) })
|
|
34
|
-
]
|
|
35
|
-
}
|
|
36
|
-
);
|
|
37
|
-
}
|
|
38
|
-
export {
|
|
39
|
-
AuthLayout
|
|
40
|
-
};
|
|
41
|
-
//# sourceMappingURL=auth-layout.js.map
|