vibe-design-system 2.8.4 → 2.8.5
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vibe-design-system",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.5",
|
|
4
4
|
"description": "Auto-generate design systems for vibe coding projects",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -38,4 +38,4 @@
|
|
|
38
38
|
"typescript": "^5.8.3",
|
|
39
39
|
"vite": "^5.4.19"
|
|
40
40
|
}
|
|
41
|
-
}
|
|
41
|
+
}
|
|
@@ -538,6 +538,12 @@ const COMPONENT_EXTRA_ARGS = {
|
|
|
538
538
|
" totalEstimated: 0,",
|
|
539
539
|
" projectTotalEstimated: 0,",
|
|
540
540
|
],
|
|
541
|
+
TimeTable: [
|
|
542
|
+
" logs: [{ id: \"1\", taskId: \"t1\", userId: \"u1\", date: \"2024-01-15\", hours: 8, description: \"Work session\", billable: true, status: \"submitted\" }, { id: \"2\", taskId: \"t1\", userId: \"u1\", date: \"2024-01-16\", hours: 6, description: \"Review session\", billable: false, status: \"draft\" }],",
|
|
543
|
+
" users: [],",
|
|
544
|
+
" tasks: [],",
|
|
545
|
+
" onLogClick: () => {},",
|
|
546
|
+
],
|
|
541
547
|
};
|
|
542
548
|
|
|
543
549
|
/** Render'da args'a uygulanacak fallback (useState(estimate.toString()) gibi kullanımlar için; args/Controls undefined yapsa bile). */
|
|
@@ -550,6 +556,7 @@ const SAFE_WRAPPER_DEFAULTS = {
|
|
|
550
556
|
TaskEstimateInput: `{ estimate: 0, onUpdate: () => {}, value: 0, task: { id: "1", title: "Example", estimate: 0 }, compact: false }`,
|
|
551
557
|
TimeFilterPanel: `{ filter: { preset: null, dateRange: {}, userIds: [], tags: [], billable: "all" }, onFilterChange: () => {}, onSaveFilter: () => {}, onDeleteFilter: () => {}, filteredCount: 0, savedFilters: [] }`,
|
|
552
558
|
TimeStats: `{ totalLogged: 0, totalBillable: 0, totalNonBillable: 0, totalBilled: 0, totalEstimated: 0, projectTotalEstimated: 0 }`,
|
|
559
|
+
TimeTable: `{ logs: [{ id: "1", taskId: "t1", userId: "u1", date: "2024-01-15", hours: 8, description: "Work session", billable: true, status: "submitted" }, { id: "2", taskId: "t1", userId: "u1", date: "2024-01-16", hours: 6, description: "Review session", billable: false, status: "draft" }], users: [], tasks: [], onLogClick: () => {} }`,
|
|
553
560
|
};
|
|
554
561
|
|
|
555
562
|
/** Recursive list of .tsx/.jsx file paths under dir (relative to dir). Index.tsx / index.tsx first for deterministic "first usage". */
|
|
@@ -821,15 +828,23 @@ function buildDefaultArgsForRequiredProps(props, usageFromPages = null, componen
|
|
|
821
828
|
}
|
|
822
829
|
}
|
|
823
830
|
}
|
|
824
|
-
// COMPONENT_EXTRA_ARGS: props listesi boş olsa bile (örn. parse edilemeyen component) uygula
|
|
831
|
+
// COMPONENT_EXTRA_ARGS: props listesi boş olsa bile (örn. parse edilemeyen component) uygula.
|
|
832
|
+
// Bu blok her zaman override eder — auto-generated değerleri daha doğru olanlarla değiştirir.
|
|
825
833
|
if (componentName && COMPONENT_EXTRA_ARGS[componentName]) {
|
|
826
834
|
for (const line of COMPONENT_EXTRA_ARGS[componentName]) {
|
|
827
835
|
const keyMatch = line.match(/^\s*(\w+)\s*:/);
|
|
828
836
|
const key = keyMatch ? keyMatch[1] : null;
|
|
829
|
-
if (
|
|
830
|
-
|
|
831
|
-
|
|
837
|
+
if (!key) continue;
|
|
838
|
+
if (added.has(key)) {
|
|
839
|
+
// Remove the previously auto-generated line for this key so we can replace it
|
|
840
|
+
const idx = argLines.findIndex(l => {
|
|
841
|
+
const m = l.match(/^\s*(\w+)\s*:/);
|
|
842
|
+
return m && m[1] === key;
|
|
843
|
+
});
|
|
844
|
+
if (idx !== -1) argLines.splice(idx, 1);
|
|
832
845
|
}
|
|
846
|
+
argLines.push(line);
|
|
847
|
+
added.add(key);
|
|
833
848
|
}
|
|
834
849
|
}
|
|
835
850
|
for (const name of Object.keys(fromPages)) {
|