pixelize-design-library 2.3.1-beta.19 → 2.3.1-beta.20
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/.cursor/TASK-SETUP.md +43 -0
- package/.cursor/agents/be-impl.md +37 -0
- package/.cursor/agents/fe-impl.md +39 -0
- package/.cursor/agents/task-plan.md +56 -0
- package/.cursor/agents/test-create.md +31 -0
- package/.cursor/agents/test-exec.md +26 -0
- package/.cursor/hooks/task-hint.env +1 -0
- package/.cursor/hooks/task-skill-nudge.sh +71 -0
- package/.cursor/hooks/task-slash-guard.sh +31 -0
- package/.cursor/hooks.json +13 -0
- package/.cursor/modules/account-management/MODULE.md +16 -0
- package/.cursor/modules/buttons/MODULE.md +13 -0
- package/.cursor/modules/cards/MODULE.md +13 -0
- package/.cursor/modules/charts/MODULE.md +13 -0
- package/.cursor/modules/common/MODULE.md +13 -0
- package/.cursor/modules/contact-auth/MODULE.md +13 -0
- package/.cursor/modules/data-display/MODULE.md +13 -0
- package/.cursor/modules/feedback/MODULE.md +14 -0
- package/.cursor/modules/form/MODULE.md +13 -0
- package/.cursor/modules/inputs-basic/MODULE.md +13 -0
- package/.cursor/modules/inputs-date-file/MODULE.md +19 -0
- package/.cursor/modules/inputs-select/MODULE.md +14 -0
- package/.cursor/modules/inputs-toggle/MODULE.md +13 -0
- package/.cursor/modules/kanban/MODULE.md +14 -0
- package/.cursor/modules/layout-navigation/MODULE.md +14 -0
- package/.cursor/modules/overlays/MODULE.md +13 -0
- package/.cursor/modules/playground/MODULE.md +15 -0
- package/.cursor/modules/table/MODULE.md +15 -0
- package/.cursor/modules/theme/MODULE.md +15 -0
- package/.cursor/modules/types-exports/MODULE.md +17 -0
- package/.cursor/modules/utility-ui/MODULE.md +15 -0
- package/.cursor/modules/utils-hooks/MODULE.md +13 -0
- package/.cursor/pixelize-task-statusline.sh +64 -0
- package/.cursor/plans/blocked/.gitkeep +0 -0
- package/.cursor/plans/current.md +35 -0
- package/.cursor/plans/done/.gitkeep +0 -0
- package/.cursor/rules +31 -0
- package/.cursor/skills/task/SKILL.md +167 -0
- package/CLAUDE.md +122 -0
- package/dist/Components/Card/PaymentCard/PaymentCard.d.ts +1 -1
- package/dist/Components/Card/PaymentCard/PaymentCard.js +3 -3
- package/dist/Components/Card/PaymentCard/PaymentCardProps.d.ts +1 -0
- package/dist/Components/Dropdown/DropDown.js +28 -2
- package/dist/Components/Dropdown/Dropdown.test.d.ts +1 -0
- package/dist/Components/Dropdown/Dropdown.test.js +102 -0
- package/dist/Components/SideBar/components/OtherApps.test.js +3 -2
- package/dist/Components/Table/components/TableBody.virtualize.test.js +13 -3
- package/dist/Components/Table/settings/ManageColumns.test.js +1 -0
- package/dist/Theme/index.d.ts +4 -4
- package/dist/Theme/index.js +4 -4
- package/package.json +1 -1
|
@@ -70,19 +70,29 @@ var Harness = function (_a) {
|
|
|
70
70
|
react_1.default.createElement(react_3.Tbody, null,
|
|
71
71
|
react_1.default.createElement(TableBody_1.default, { data: makeData(count), columns: columns, startRow: 0, endRow: count, columnWidths: [120], isCheckbox: false, isContent: false, isLink: false, isActionFreeze: false, noBorders: false, selections: [], handleCheckbox: function () { }, scrollContainerRef: ref }))))));
|
|
72
72
|
};
|
|
73
|
+
// Windowing math (normal density): ROW_HEIGHT=40, OVERSCAN=6, viewport falls
|
|
74
|
+
// back to 500px (jsdom clientHeight=0). Rows are unmeasured in jsdom, so every
|
|
75
|
+
// row is estimated at 40px. bottom = 0 + 500 + 6*40 = 740 -> last rendered row
|
|
76
|
+
// is the highest index with offset < 740 -> index 18 (offsets[18]=720). So rows
|
|
77
|
+
// 0..18 (19 rows) render and the trailing spacer reserves (100-19)*40 px.
|
|
78
|
+
var ROW_HEIGHT = 40;
|
|
79
|
+
var VISIBLE_COUNT = 19;
|
|
80
|
+
var LAST_VISIBLE = VISIBLE_COUNT - 1;
|
|
73
81
|
describe("TableBody virtualization", function () {
|
|
74
82
|
it("windows large pages and reserves height with spacer rows", function () {
|
|
75
83
|
var _a = (0, react_2.render)(react_1.default.createElement(Harness, { count: 100 })), container = _a.container, queryByText = _a.queryByText;
|
|
76
|
-
// jsdom clientHeight=0 -> 500px fallback -> ceil(500/45)+12 = 24 rows
|
|
77
84
|
expect(queryByText("Row 0")).toBeInTheDocument();
|
|
78
|
-
expect(queryByText("Row
|
|
85
|
+
expect(queryByText("Row ".concat(LAST_VISIBLE))).toBeInTheDocument();
|
|
79
86
|
// Rows beyond the window are not mounted.
|
|
87
|
+
expect(queryByText("Row ".concat(LAST_VISIBLE + 1))).not.toBeInTheDocument();
|
|
80
88
|
expect(queryByText("Row 50")).not.toBeInTheDocument();
|
|
81
89
|
expect(queryByText("Row 99")).not.toBeInTheDocument();
|
|
82
90
|
// A trailing spacer reserves the height of the unrendered rows.
|
|
83
91
|
var spacers = container.querySelectorAll('tr[aria-hidden="true"]');
|
|
84
92
|
expect(spacers.length).toBe(1);
|
|
85
|
-
expect(spacers[0]).toHaveStyle({
|
|
93
|
+
expect(spacers[0]).toHaveStyle({
|
|
94
|
+
height: "".concat((100 - VISIBLE_COUNT) * ROW_HEIGHT, "px"),
|
|
95
|
+
});
|
|
86
96
|
});
|
|
87
97
|
it("renders every row and no spacers below the threshold", function () {
|
|
88
98
|
var _a = (0, react_2.render)(react_1.default.createElement(Harness, { count: 30 })), container = _a.container, queryByText = _a.queryByText;
|
|
@@ -97,6 +97,7 @@ jest.mock("../../../Theme/useCustomTheme", function () { return ({
|
|
|
97
97
|
},
|
|
98
98
|
red: { 50: "#fee", 200: "#fcc", 600: "#c00" },
|
|
99
99
|
border: { 200: "#e2e8f0" },
|
|
100
|
+
text: { 500: "#555", 700: "#333" },
|
|
100
101
|
white: "#fff",
|
|
101
102
|
},
|
|
102
103
|
shadows: { sm: "0 1px 2px rgba(0,0,0,0.05)" },
|
package/dist/Theme/index.d.ts
CHANGED
|
@@ -7,11 +7,11 @@ import emerald from "./Emerald/theme";
|
|
|
7
7
|
import rosewood from "./Rosewood/theme";
|
|
8
8
|
export { skyline, meadow, radiant, lavender, slate, emerald, rosewood };
|
|
9
9
|
export declare const ThemesList: {
|
|
10
|
-
skyline: Record<string, any>;
|
|
11
|
-
meadow: Record<string, any>;
|
|
12
|
-
radiant: Record<string, any>;
|
|
13
10
|
lavender: Record<string, any>;
|
|
14
|
-
|
|
11
|
+
meadow: Record<string, any>;
|
|
12
|
+
skyline: Record<string, any>;
|
|
15
13
|
emerald: Record<string, any>;
|
|
16
14
|
rosewood: Record<string, any>;
|
|
15
|
+
slate: Record<string, any>;
|
|
16
|
+
radiant: Record<string, any>;
|
|
17
17
|
};
|
package/dist/Theme/index.js
CHANGED
|
@@ -19,11 +19,11 @@ exports.emerald = theme_6.default;
|
|
|
19
19
|
var theme_7 = __importDefault(require("./Rosewood/theme"));
|
|
20
20
|
exports.rosewood = theme_7.default;
|
|
21
21
|
exports.ThemesList = {
|
|
22
|
-
skyline: theme_4.default,
|
|
23
|
-
meadow: theme_2.default,
|
|
24
|
-
radiant: theme_3.default,
|
|
25
22
|
lavender: theme_1.default,
|
|
26
|
-
|
|
23
|
+
meadow: theme_2.default,
|
|
24
|
+
skyline: theme_4.default,
|
|
27
25
|
emerald: theme_6.default,
|
|
28
26
|
rosewood: theme_7.default,
|
|
27
|
+
slate: theme_5.default,
|
|
28
|
+
radiant: theme_3.default,
|
|
29
29
|
};
|