@pallasoft/ps-internal-components 1.0.1 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ps-skeleton-card-grid.d.ts +2 -0
- package/dist/components/ps-skeleton-card-grid.js +10 -0
- package/dist/components/ps-skeleton-list-card.d.ts +2 -0
- package/dist/components/ps-skeleton-list-card.js +10 -0
- package/dist/components/ps-skeleton-page-header.d.ts +2 -0
- package/dist/components/ps-skeleton-page-header.js +7 -0
- package/dist/components/ps-skeleton-stat-grid.d.ts +2 -0
- package/dist/components/ps-skeleton-stat-grid.js +10 -0
- package/dist/components/ps-skeleton-table.d.ts +2 -0
- package/dist/components/ps-skeleton-table.js +15 -0
- package/dist/esm/components/ps-skeleton-card-grid.js +6 -0
- package/dist/esm/components/ps-skeleton-list-card.js +6 -0
- package/dist/esm/components/ps-skeleton-page-header.js +3 -0
- package/dist/esm/components/ps-skeleton-stat-grid.js +6 -0
- package/dist/esm/components/ps-skeleton-table.js +11 -0
- package/dist/esm/index.js +10 -0
- package/dist/esm/models/ps-skeleton-card-grid-props.js +1 -0
- package/dist/esm/models/ps-skeleton-list-card-props.js +1 -0
- package/dist/esm/models/ps-skeleton-page-header-props.js +1 -0
- package/dist/esm/models/ps-skeleton-stat-grid-props.js +1 -0
- package/dist/esm/models/ps-skeleton-table-props.js +1 -0
- package/dist/esm/package.json +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +10 -0
- package/dist/models/ps-skeleton-card-grid-props.d.ts +5 -0
- package/dist/models/ps-skeleton-card-grid-props.js +2 -0
- package/dist/models/ps-skeleton-list-card-props.d.ts +5 -0
- package/dist/models/ps-skeleton-list-card-props.js +2 -0
- package/dist/models/ps-skeleton-page-header-props.d.ts +4 -0
- package/dist/models/ps-skeleton-page-header-props.js +2 -0
- package/dist/models/ps-skeleton-stat-grid-props.d.ts +4 -0
- package/dist/models/ps-skeleton-stat-grid-props.js +2 -0
- package/dist/models/ps-skeleton-table-props.d.ts +7 -0
- package/dist/models/ps-skeleton-table-props.js +2 -0
- package/package.json +4 -2
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PsSkeletonCardGrid = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const ps_class_name_service_js_1 = require("../services/ps-class-name-service.js");
|
|
6
|
+
const ps_card_header_js_1 = require("./ps-card-header.js");
|
|
7
|
+
const ps_card_js_1 = require("./ps-card.js");
|
|
8
|
+
const ps_skeleton_js_1 = require("./ps-skeleton.js");
|
|
9
|
+
const PsSkeletonCardGrid = ({ className, count, withBadges = false, }) => ((0, jsx_runtime_1.jsxs)("div", { "aria-busy": 'true', className: ps_class_name_service_js_1.PsClassNameService.merge('grid gap-3 lg:grid-cols-2', className), role: 'status', children: [(0, jsx_runtime_1.jsx)("span", { className: 'sr-only', children: "Loading" }), Array.from({ length: count }, (_, index) => ((0, jsx_runtime_1.jsx)(ps_card_js_1.PsCard, { children: (0, jsx_runtime_1.jsxs)(ps_card_header_js_1.PsCardHeader, { className: 'gap-2', children: [(0, jsx_runtime_1.jsx)(ps_skeleton_js_1.PsSkeleton, { className: 'h-5 w-44' }), (0, jsx_runtime_1.jsx)(ps_skeleton_js_1.PsSkeleton, { className: 'h-4 w-full max-w-md' }), (0, jsx_runtime_1.jsx)(ps_skeleton_js_1.PsSkeleton, { className: 'h-4 w-2/3' }), withBadges ? ((0, jsx_runtime_1.jsxs)("div", { className: 'flex gap-2 pt-1', children: [(0, jsx_runtime_1.jsx)(ps_skeleton_js_1.PsSkeleton, { className: 'h-5 w-36 rounded-full' }), (0, jsx_runtime_1.jsx)(ps_skeleton_js_1.PsSkeleton, { className: 'h-5 w-28 rounded-full' })] })) : null] }) }, index)))] }));
|
|
10
|
+
exports.PsSkeletonCardGrid = PsSkeletonCardGrid;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PsSkeletonListCard = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const ps_card_content_js_1 = require("./ps-card-content.js");
|
|
6
|
+
const ps_card_header_js_1 = require("./ps-card-header.js");
|
|
7
|
+
const ps_card_js_1 = require("./ps-card.js");
|
|
8
|
+
const ps_skeleton_js_1 = require("./ps-skeleton.js");
|
|
9
|
+
const PsSkeletonListCard = ({ hasAction = true, hasHeader = true, rows = 5, }) => ((0, jsx_runtime_1.jsxs)(ps_card_js_1.PsCard, { "aria-busy": 'true', role: 'status', children: [(0, jsx_runtime_1.jsx)("span", { className: 'sr-only', children: "Loading" }), hasHeader ? ((0, jsx_runtime_1.jsxs)(ps_card_header_js_1.PsCardHeader, { className: 'gap-2', children: [(0, jsx_runtime_1.jsx)(ps_skeleton_js_1.PsSkeleton, { className: 'h-5 w-40' }), (0, jsx_runtime_1.jsx)(ps_skeleton_js_1.PsSkeleton, { className: 'h-4 w-72 max-w-full' })] })) : null, (0, jsx_runtime_1.jsx)(ps_card_content_js_1.PsCardContent, { children: (0, jsx_runtime_1.jsx)("div", { className: 'flex flex-col divide-y rounded-lg border', children: Array.from({ length: rows }, (_, index) => ((0, jsx_runtime_1.jsxs)("div", { className: 'flex items-center justify-between gap-4 p-4', children: [(0, jsx_runtime_1.jsxs)("div", { className: 'flex flex-1 flex-col gap-2', children: [(0, jsx_runtime_1.jsx)(ps_skeleton_js_1.PsSkeleton, { className: 'h-4 w-36' }), (0, jsx_runtime_1.jsx)(ps_skeleton_js_1.PsSkeleton, { className: 'h-3 w-3/4 max-w-md' })] }), hasAction ? (0, jsx_runtime_1.jsx)(ps_skeleton_js_1.PsSkeleton, { className: 'h-8 w-32' }) : null] }, index))) }) })] }));
|
|
10
|
+
exports.PsSkeletonListCard = PsSkeletonListCard;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PsSkeletonPageHeader = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const ps_skeleton_js_1 = require("./ps-skeleton.js");
|
|
6
|
+
const PsSkeletonPageHeader = ({ hasBreadcrumb = true, withActions = false, }) => ((0, jsx_runtime_1.jsxs)("div", { "aria-busy": 'true', className: 'flex flex-col gap-3', role: 'status', children: [(0, jsx_runtime_1.jsx)("span", { className: 'sr-only', children: "Loading" }), hasBreadcrumb ? (0, jsx_runtime_1.jsx)(ps_skeleton_js_1.PsSkeleton, { className: 'h-4 w-72 max-w-full' }) : null, (0, jsx_runtime_1.jsxs)("div", { className: 'flex flex-col gap-4 lg:flex-row lg:items-end lg:justify-between', children: [(0, jsx_runtime_1.jsxs)("div", { className: 'flex flex-col gap-2', children: [(0, jsx_runtime_1.jsx)(ps_skeleton_js_1.PsSkeleton, { className: 'h-8 w-80 max-w-full' }), (0, jsx_runtime_1.jsx)(ps_skeleton_js_1.PsSkeleton, { className: 'h-4 w-[32rem] max-w-full' })] }), withActions ? ((0, jsx_runtime_1.jsxs)("div", { className: 'flex gap-2', children: [(0, jsx_runtime_1.jsx)(ps_skeleton_js_1.PsSkeleton, { className: 'h-9 w-36' }), (0, jsx_runtime_1.jsx)(ps_skeleton_js_1.PsSkeleton, { className: 'h-9 w-40' })] })) : null] })] }));
|
|
7
|
+
exports.PsSkeletonPageHeader = PsSkeletonPageHeader;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PsSkeletonStatGrid = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const ps_class_name_service_js_1 = require("../services/ps-class-name-service.js");
|
|
6
|
+
const ps_card_header_js_1 = require("./ps-card-header.js");
|
|
7
|
+
const ps_card_js_1 = require("./ps-card.js");
|
|
8
|
+
const ps_skeleton_js_1 = require("./ps-skeleton.js");
|
|
9
|
+
const PsSkeletonStatGrid = ({ className, count }) => ((0, jsx_runtime_1.jsxs)("div", { "aria-busy": 'true', className: ps_class_name_service_js_1.PsClassNameService.merge('grid grid-cols-2 gap-3 xl:grid-cols-4', className), role: 'status', children: [(0, jsx_runtime_1.jsx)("span", { className: 'sr-only', children: "Loading" }), Array.from({ length: count }, (_, index) => ((0, jsx_runtime_1.jsx)(ps_card_js_1.PsCard, { children: (0, jsx_runtime_1.jsxs)(ps_card_header_js_1.PsCardHeader, { className: 'gap-2 p-4', children: [(0, jsx_runtime_1.jsx)(ps_skeleton_js_1.PsSkeleton, { className: 'h-4 w-28' }), (0, jsx_runtime_1.jsx)(ps_skeleton_js_1.PsSkeleton, { className: 'h-7 w-12' })] }) }, index)))] }));
|
|
10
|
+
exports.PsSkeletonStatGrid = PsSkeletonStatGrid;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PsSkeletonTable = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const ps_class_name_service_js_1 = require("../services/ps-class-name-service.js");
|
|
6
|
+
const ps_card_content_js_1 = require("./ps-card-content.js");
|
|
7
|
+
const ps_card_js_1 = require("./ps-card.js");
|
|
8
|
+
const ps_skeleton_js_1 = require("./ps-skeleton.js");
|
|
9
|
+
const PsSkeletonTable = ({ alignments, columns, hasHeader = true, isFramed = true, rows, }) => {
|
|
10
|
+
const isRight = (index) => alignments !== undefined && alignments[index] === 'right';
|
|
11
|
+
const cell = (index, height) => ((0, jsx_runtime_1.jsx)("div", { className: ps_class_name_service_js_1.PsClassNameService.merge('flex min-w-0', index === 0 ? 'flex-[2]' : 'flex-1', isRight(index) ? 'justify-end' : ''), children: (0, jsx_runtime_1.jsx)(ps_skeleton_js_1.PsSkeleton, { className: ps_class_name_service_js_1.PsClassNameService.merge(height, isRight(index) ? 'w-16' : 'w-3/4') }) }, index));
|
|
12
|
+
const table = ((0, jsx_runtime_1.jsxs)("div", { "aria-busy": 'true', role: 'status', children: [(0, jsx_runtime_1.jsx)("span", { className: 'sr-only', children: "Loading" }), hasHeader ? ((0, jsx_runtime_1.jsx)("div", { className: 'flex items-center gap-6 border-b px-4 py-3', children: Array.from({ length: columns }, (_, index) => cell(index, 'h-3')) })) : null, Array.from({ length: rows }, (_, rowIndex) => ((0, jsx_runtime_1.jsx)("div", { className: 'flex items-center gap-6 border-b px-4 py-4 last:border-b-0', children: Array.from({ length: columns }, (_, index) => cell(index, 'h-4')) }, rowIndex)))] }));
|
|
13
|
+
return isFramed ? ((0, jsx_runtime_1.jsx)(ps_card_js_1.PsCard, { children: (0, jsx_runtime_1.jsx)(ps_card_content_js_1.PsCardContent, { className: 'p-0', children: table }) })) : (table);
|
|
14
|
+
};
|
|
15
|
+
exports.PsSkeletonTable = PsSkeletonTable;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { PsClassNameService } from '../services/ps-class-name-service.js';
|
|
3
|
+
import { PsCardHeader } from './ps-card-header.js';
|
|
4
|
+
import { PsCard } from './ps-card.js';
|
|
5
|
+
import { PsSkeleton } from './ps-skeleton.js';
|
|
6
|
+
export const PsSkeletonCardGrid = ({ className, count, withBadges = false, }) => (_jsxs("div", { "aria-busy": 'true', className: PsClassNameService.merge('grid gap-3 lg:grid-cols-2', className), role: 'status', children: [_jsx("span", { className: 'sr-only', children: "Loading" }), Array.from({ length: count }, (_, index) => (_jsx(PsCard, { children: _jsxs(PsCardHeader, { className: 'gap-2', children: [_jsx(PsSkeleton, { className: 'h-5 w-44' }), _jsx(PsSkeleton, { className: 'h-4 w-full max-w-md' }), _jsx(PsSkeleton, { className: 'h-4 w-2/3' }), withBadges ? (_jsxs("div", { className: 'flex gap-2 pt-1', children: [_jsx(PsSkeleton, { className: 'h-5 w-36 rounded-full' }), _jsx(PsSkeleton, { className: 'h-5 w-28 rounded-full' })] })) : null] }) }, index)))] }));
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { PsCardContent } from './ps-card-content.js';
|
|
3
|
+
import { PsCardHeader } from './ps-card-header.js';
|
|
4
|
+
import { PsCard } from './ps-card.js';
|
|
5
|
+
import { PsSkeleton } from './ps-skeleton.js';
|
|
6
|
+
export const PsSkeletonListCard = ({ hasAction = true, hasHeader = true, rows = 5, }) => (_jsxs(PsCard, { "aria-busy": 'true', role: 'status', children: [_jsx("span", { className: 'sr-only', children: "Loading" }), hasHeader ? (_jsxs(PsCardHeader, { className: 'gap-2', children: [_jsx(PsSkeleton, { className: 'h-5 w-40' }), _jsx(PsSkeleton, { className: 'h-4 w-72 max-w-full' })] })) : null, _jsx(PsCardContent, { children: _jsx("div", { className: 'flex flex-col divide-y rounded-lg border', children: Array.from({ length: rows }, (_, index) => (_jsxs("div", { className: 'flex items-center justify-between gap-4 p-4', children: [_jsxs("div", { className: 'flex flex-1 flex-col gap-2', children: [_jsx(PsSkeleton, { className: 'h-4 w-36' }), _jsx(PsSkeleton, { className: 'h-3 w-3/4 max-w-md' })] }), hasAction ? _jsx(PsSkeleton, { className: 'h-8 w-32' }) : null] }, index))) }) })] }));
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { PsSkeleton } from './ps-skeleton.js';
|
|
3
|
+
export const PsSkeletonPageHeader = ({ hasBreadcrumb = true, withActions = false, }) => (_jsxs("div", { "aria-busy": 'true', className: 'flex flex-col gap-3', role: 'status', children: [_jsx("span", { className: 'sr-only', children: "Loading" }), hasBreadcrumb ? _jsx(PsSkeleton, { className: 'h-4 w-72 max-w-full' }) : null, _jsxs("div", { className: 'flex flex-col gap-4 lg:flex-row lg:items-end lg:justify-between', children: [_jsxs("div", { className: 'flex flex-col gap-2', children: [_jsx(PsSkeleton, { className: 'h-8 w-80 max-w-full' }), _jsx(PsSkeleton, { className: 'h-4 w-[32rem] max-w-full' })] }), withActions ? (_jsxs("div", { className: 'flex gap-2', children: [_jsx(PsSkeleton, { className: 'h-9 w-36' }), _jsx(PsSkeleton, { className: 'h-9 w-40' })] })) : null] })] }));
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { PsClassNameService } from '../services/ps-class-name-service.js';
|
|
3
|
+
import { PsCardHeader } from './ps-card-header.js';
|
|
4
|
+
import { PsCard } from './ps-card.js';
|
|
5
|
+
import { PsSkeleton } from './ps-skeleton.js';
|
|
6
|
+
export const PsSkeletonStatGrid = ({ className, count }) => (_jsxs("div", { "aria-busy": 'true', className: PsClassNameService.merge('grid grid-cols-2 gap-3 xl:grid-cols-4', className), role: 'status', children: [_jsx("span", { className: 'sr-only', children: "Loading" }), Array.from({ length: count }, (_, index) => (_jsx(PsCard, { children: _jsxs(PsCardHeader, { className: 'gap-2 p-4', children: [_jsx(PsSkeleton, { className: 'h-4 w-28' }), _jsx(PsSkeleton, { className: 'h-7 w-12' })] }) }, index)))] }));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { PsClassNameService } from '../services/ps-class-name-service.js';
|
|
3
|
+
import { PsCardContent } from './ps-card-content.js';
|
|
4
|
+
import { PsCard } from './ps-card.js';
|
|
5
|
+
import { PsSkeleton } from './ps-skeleton.js';
|
|
6
|
+
export const PsSkeletonTable = ({ alignments, columns, hasHeader = true, isFramed = true, rows, }) => {
|
|
7
|
+
const isRight = (index) => alignments !== undefined && alignments[index] === 'right';
|
|
8
|
+
const cell = (index, height) => (_jsx("div", { className: PsClassNameService.merge('flex min-w-0', index === 0 ? 'flex-[2]' : 'flex-1', isRight(index) ? 'justify-end' : ''), children: _jsx(PsSkeleton, { className: PsClassNameService.merge(height, isRight(index) ? 'w-16' : 'w-3/4') }) }, index));
|
|
9
|
+
const table = (_jsxs("div", { "aria-busy": 'true', role: 'status', children: [_jsx("span", { className: 'sr-only', children: "Loading" }), hasHeader ? (_jsx("div", { className: 'flex items-center gap-6 border-b px-4 py-3', children: Array.from({ length: columns }, (_, index) => cell(index, 'h-3')) })) : null, Array.from({ length: rows }, (_, rowIndex) => (_jsx("div", { className: 'flex items-center gap-6 border-b px-4 py-4 last:border-b-0', children: Array.from({ length: columns }, (_, index) => cell(index, 'h-4')) }, rowIndex)))] }));
|
|
10
|
+
return isFramed ? (_jsx(PsCard, { children: _jsx(PsCardContent, { className: 'p-0', children: table }) })) : (table);
|
|
11
|
+
};
|
package/dist/esm/index.js
CHANGED
|
@@ -136,6 +136,11 @@ export * from './components/ps-sheet-title.js';
|
|
|
136
136
|
export * from './components/ps-sheet-trigger.js';
|
|
137
137
|
export * from './components/ps-sheet.js';
|
|
138
138
|
export * from './components/ps-skeleton.js';
|
|
139
|
+
export * from './components/ps-skeleton-card-grid.js';
|
|
140
|
+
export * from './components/ps-skeleton-list-card.js';
|
|
141
|
+
export * from './components/ps-skeleton-page-header.js';
|
|
142
|
+
export * from './components/ps-skeleton-stat-grid.js';
|
|
143
|
+
export * from './components/ps-skeleton-table.js';
|
|
139
144
|
export * from './components/ps-spinner.js';
|
|
140
145
|
export * from './components/ps-status-panel.js';
|
|
141
146
|
export * from './components/ps-switch.js';
|
|
@@ -315,6 +320,11 @@ export * from './models/ps-sheet-header-props.js';
|
|
|
315
320
|
export * from './models/ps-sheet-overlay-props.js';
|
|
316
321
|
export * from './models/ps-sheet-title-props.js';
|
|
317
322
|
export * from './models/ps-skeleton-props.js';
|
|
323
|
+
export * from './models/ps-skeleton-card-grid-props.js';
|
|
324
|
+
export * from './models/ps-skeleton-list-card-props.js';
|
|
325
|
+
export * from './models/ps-skeleton-page-header-props.js';
|
|
326
|
+
export * from './models/ps-skeleton-stat-grid-props.js';
|
|
327
|
+
export * from './models/ps-skeleton-table-props.js';
|
|
318
328
|
export * from './models/ps-spinner-props.js';
|
|
319
329
|
export * from './models/ps-status-panel-props.js';
|
|
320
330
|
export * from './models/ps-switch-props.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module"}
|
package/dist/index.d.ts
CHANGED
|
@@ -136,6 +136,11 @@ export * from './components/ps-sheet-title.js';
|
|
|
136
136
|
export * from './components/ps-sheet-trigger.js';
|
|
137
137
|
export * from './components/ps-sheet.js';
|
|
138
138
|
export * from './components/ps-skeleton.js';
|
|
139
|
+
export * from './components/ps-skeleton-card-grid.js';
|
|
140
|
+
export * from './components/ps-skeleton-list-card.js';
|
|
141
|
+
export * from './components/ps-skeleton-page-header.js';
|
|
142
|
+
export * from './components/ps-skeleton-stat-grid.js';
|
|
143
|
+
export * from './components/ps-skeleton-table.js';
|
|
139
144
|
export * from './components/ps-spinner.js';
|
|
140
145
|
export * from './components/ps-status-panel.js';
|
|
141
146
|
export * from './components/ps-switch.js';
|
|
@@ -315,6 +320,11 @@ export * from './models/ps-sheet-header-props.js';
|
|
|
315
320
|
export * from './models/ps-sheet-overlay-props.js';
|
|
316
321
|
export * from './models/ps-sheet-title-props.js';
|
|
317
322
|
export * from './models/ps-skeleton-props.js';
|
|
323
|
+
export * from './models/ps-skeleton-card-grid-props.js';
|
|
324
|
+
export * from './models/ps-skeleton-list-card-props.js';
|
|
325
|
+
export * from './models/ps-skeleton-page-header-props.js';
|
|
326
|
+
export * from './models/ps-skeleton-stat-grid-props.js';
|
|
327
|
+
export * from './models/ps-skeleton-table-props.js';
|
|
318
328
|
export * from './models/ps-spinner-props.js';
|
|
319
329
|
export * from './models/ps-status-panel-props.js';
|
|
320
330
|
export * from './models/ps-switch-props.js';
|
package/dist/index.js
CHANGED
|
@@ -152,6 +152,11 @@ __exportStar(require("./components/ps-sheet-title.js"), exports);
|
|
|
152
152
|
__exportStar(require("./components/ps-sheet-trigger.js"), exports);
|
|
153
153
|
__exportStar(require("./components/ps-sheet.js"), exports);
|
|
154
154
|
__exportStar(require("./components/ps-skeleton.js"), exports);
|
|
155
|
+
__exportStar(require("./components/ps-skeleton-card-grid.js"), exports);
|
|
156
|
+
__exportStar(require("./components/ps-skeleton-list-card.js"), exports);
|
|
157
|
+
__exportStar(require("./components/ps-skeleton-page-header.js"), exports);
|
|
158
|
+
__exportStar(require("./components/ps-skeleton-stat-grid.js"), exports);
|
|
159
|
+
__exportStar(require("./components/ps-skeleton-table.js"), exports);
|
|
155
160
|
__exportStar(require("./components/ps-spinner.js"), exports);
|
|
156
161
|
__exportStar(require("./components/ps-status-panel.js"), exports);
|
|
157
162
|
__exportStar(require("./components/ps-switch.js"), exports);
|
|
@@ -331,6 +336,11 @@ __exportStar(require("./models/ps-sheet-header-props.js"), exports);
|
|
|
331
336
|
__exportStar(require("./models/ps-sheet-overlay-props.js"), exports);
|
|
332
337
|
__exportStar(require("./models/ps-sheet-title-props.js"), exports);
|
|
333
338
|
__exportStar(require("./models/ps-skeleton-props.js"), exports);
|
|
339
|
+
__exportStar(require("./models/ps-skeleton-card-grid-props.js"), exports);
|
|
340
|
+
__exportStar(require("./models/ps-skeleton-list-card-props.js"), exports);
|
|
341
|
+
__exportStar(require("./models/ps-skeleton-page-header-props.js"), exports);
|
|
342
|
+
__exportStar(require("./models/ps-skeleton-stat-grid-props.js"), exports);
|
|
343
|
+
__exportStar(require("./models/ps-skeleton-table-props.js"), exports);
|
|
334
344
|
__exportStar(require("./models/ps-spinner-props.js"), exports);
|
|
335
345
|
__exportStar(require("./models/ps-status-panel-props.js"), exports);
|
|
336
346
|
__exportStar(require("./models/ps-switch-props.js"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pallasoft/ps-internal-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Shared Pallasoft internal UI: app header, app switcher and shadcn primitives for staff tools",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
"exports": {
|
|
13
13
|
".": {
|
|
14
14
|
"types": "./dist/index.d.ts",
|
|
15
|
+
"import": "./dist/esm/index.js",
|
|
15
16
|
"module": "./dist/esm/index.js",
|
|
16
17
|
"require": "./dist/index.js",
|
|
17
18
|
"default": "./dist/index.js"
|
|
@@ -19,6 +20,7 @@
|
|
|
19
20
|
"./theme.css": "./src/styles/theme.css",
|
|
20
21
|
"./tailwind-preset": {
|
|
21
22
|
"types": "./dist/pallasoft-internal-tailwind-preset.d.ts",
|
|
23
|
+
"import": "./dist/esm/pallasoft-internal-tailwind-preset.js",
|
|
22
24
|
"module": "./dist/esm/pallasoft-internal-tailwind-preset.js",
|
|
23
25
|
"require": "./dist/pallasoft-internal-tailwind-preset.js",
|
|
24
26
|
"default": "./dist/pallasoft-internal-tailwind-preset.js"
|
|
@@ -30,7 +32,7 @@
|
|
|
30
32
|
],
|
|
31
33
|
"scripts": {
|
|
32
34
|
"husky:prepare": "npx husky",
|
|
33
|
-
"build": "tsc && tsc -p tsconfig.esm.json",
|
|
35
|
+
"build": "tsc && tsc -p tsconfig.esm.json && node -e \"require('fs').writeFileSync('dist/esm/package.json', JSON.stringify({ type: 'module' }))\"",
|
|
34
36
|
"setup:graphify": "sh scripts/graphify-setup.sh",
|
|
35
37
|
"update:graphify": "sh scripts/graphify-update.sh",
|
|
36
38
|
"lint": "npm run lint:eslint",
|