lkd-web-kit 0.10.0 → 0.10.2
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/codex/skills/create-modal-component/SKILL.md +168 -0
- package/codex/skills/create-modal-component/agents/openai.yaml +4 -0
- package/codex/skills/create-svg-icon/SKILL.md +41 -0
- package/codex/skills/create-svg-icon/agents/openai.yaml +3 -0
- package/codex/skills/create-table-component/SKILL.md +189 -0
- package/codex/skills/create-table-component/agents/openai.yaml +3 -0
- package/codex/skills/rhf-lkd-forms/SKILL.md +186 -0
- package/dist/components/MyTable/MyTable.cjs +172 -0
- package/dist/components/MyTable/MyTable.d.ts +18 -0
- package/dist/components/MyTable/MyTable.d.ts.map +1 -0
- package/dist/components/MyTable/MyTable.js +170 -0
- package/dist/components/MyTable/index.d.ts +3 -0
- package/dist/components/MyTable/index.d.ts.map +1 -0
- package/dist/components/TableWrapper/TableWrapper.cjs +13 -0
- package/dist/components/TableWrapper/TableWrapper.d.ts +8 -0
- package/dist/components/TableWrapper/TableWrapper.d.ts.map +1 -0
- package/dist/components/TableWrapper/TableWrapper.js +11 -0
- package/dist/components/TableWrapper/TableWrapperFooter.cjs +11 -0
- package/dist/components/TableWrapper/TableWrapperFooter.d.ts +5 -0
- package/dist/components/TableWrapper/TableWrapperFooter.d.ts.map +1 -0
- package/dist/components/TableWrapper/TableWrapperFooter.js +9 -0
- package/dist/components/TableWrapper/TableWrapperHeader.cjs +11 -0
- package/dist/components/TableWrapper/TableWrapperHeader.d.ts +5 -0
- package/dist/components/TableWrapper/TableWrapperHeader.d.ts.map +1 -0
- package/dist/components/TableWrapper/TableWrapperHeader.js +9 -0
- package/dist/components/TableWrapper/TableWrapperPagination.cjs +31 -0
- package/dist/components/TableWrapper/TableWrapperPagination.d.ts +16 -0
- package/dist/components/TableWrapper/TableWrapperPagination.d.ts.map +1 -0
- package/dist/components/TableWrapper/TableWrapperPagination.js +30 -0
- package/dist/components/TableWrapper/TableWrapperTitle.cjs +11 -0
- package/dist/components/TableWrapper/TableWrapperTitle.d.ts +5 -0
- package/dist/components/TableWrapper/TableWrapperTitle.d.ts.map +1 -0
- package/dist/components/TableWrapper/TableWrapperTitle.js +9 -0
- package/dist/components/TableWrapper/index.d.ts +11 -0
- package/dist/components/TableWrapper/index.d.ts.map +1 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/index.cjs +12 -0
- package/dist/index.js +7 -1
- package/package.json +7 -2
- package/scripts/install-codex-skills.mjs +17 -0
package/dist/index.cjs
CHANGED
|
@@ -14,10 +14,16 @@ const require_index$9 = require("./components/MyNotifications/index.cjs");
|
|
|
14
14
|
const require_index$10 = require("./components/MyNumberInput/index.cjs");
|
|
15
15
|
const require_index$11 = require("./components/MyRadioGroup/index.cjs");
|
|
16
16
|
const require_index$12 = require("./components/MySelect/index.cjs");
|
|
17
|
+
const require_MyTable = require("./components/MyTable/MyTable.cjs");
|
|
17
18
|
const require_index$13 = require("./components/MyTextarea/index.cjs");
|
|
18
19
|
const require_index$14 = require("./components/MyTextInput/index.cjs");
|
|
19
20
|
const require_index$15 = require("./components/MyTimeInput/index.cjs");
|
|
20
21
|
const require_NavItems = require("./components/NavItems.cjs");
|
|
22
|
+
const require_TableWrapper = require("./components/TableWrapper/TableWrapper.cjs");
|
|
23
|
+
const require_TableWrapperFooter = require("./components/TableWrapper/TableWrapperFooter.cjs");
|
|
24
|
+
const require_TableWrapperHeader = require("./components/TableWrapper/TableWrapperHeader.cjs");
|
|
25
|
+
const require_TableWrapperPagination = require("./components/TableWrapper/TableWrapperPagination.cjs");
|
|
26
|
+
const require_TableWrapperTitle = require("./components/TableWrapper/TableWrapperTitle.cjs");
|
|
21
27
|
const require_http_status = require("./consts/http-status.cjs");
|
|
22
28
|
const require_revalidate = require("./consts/revalidate.cjs");
|
|
23
29
|
const require_index$16 = require("./contexts/ModalManagerContext/index.cjs");
|
|
@@ -93,6 +99,7 @@ exports.MyNotifications = require_index$9.MyNotifications;
|
|
|
93
99
|
exports.MyNumberInput = require_index$10.MyNumberInput;
|
|
94
100
|
exports.MyRadioGroup = require_index$11.MyRadioGroup;
|
|
95
101
|
exports.MySelect = require_index$12.MySelect;
|
|
102
|
+
exports.MyTable = require_MyTable;
|
|
96
103
|
exports.MyTextInput = require_index$14.MyTextInput;
|
|
97
104
|
exports.MyTextarea = require_index$13.MyTextarea;
|
|
98
105
|
exports.MyTimeInput = require_index$15.MyTimeInput;
|
|
@@ -101,6 +108,11 @@ exports.NavigationHistoryProvider = require_index$17.NavigationHistoryProvider;
|
|
|
101
108
|
exports.PageDataProvider = require_index$18.PageDataProvider;
|
|
102
109
|
exports.QP_BACK_URL_NAME = require_hook.QP_BACK_URL_NAME;
|
|
103
110
|
exports.Revalidate = require_revalidate.Revalidate;
|
|
111
|
+
exports.TableWrapper = require_TableWrapper;
|
|
112
|
+
exports.TableWrapperFooter = require_TableWrapperFooter;
|
|
113
|
+
exports.TableWrapperHeader = require_TableWrapperHeader;
|
|
114
|
+
exports.TableWrapperPagination = require_TableWrapperPagination;
|
|
115
|
+
exports.TableWrapperTitle = require_TableWrapperTitle;
|
|
104
116
|
exports.addBodyJsonHook = require_addBodyJsonHook.addBodyJsonHook;
|
|
105
117
|
exports.breakpointsWithPx = require_breakpoints_with_px.breakpointsWithPx;
|
|
106
118
|
exports.createNewRoute = require_new_route.createNewRoute;
|
package/dist/index.js
CHANGED
|
@@ -13,10 +13,16 @@ import { MyNotifications } from "./components/MyNotifications/index.js";
|
|
|
13
13
|
import { MyNumberInput } from "./components/MyNumberInput/index.js";
|
|
14
14
|
import { MyRadioGroup } from "./components/MyRadioGroup/index.js";
|
|
15
15
|
import { MySelect } from "./components/MySelect/index.js";
|
|
16
|
+
import MyTable from "./components/MyTable/MyTable.js";
|
|
16
17
|
import { MyTextarea } from "./components/MyTextarea/index.js";
|
|
17
18
|
import { MyTextInput } from "./components/MyTextInput/index.js";
|
|
18
19
|
import { MyTimeInput } from "./components/MyTimeInput/index.js";
|
|
19
20
|
import { NavItems } from "./components/NavItems.js";
|
|
21
|
+
import TableWrapper from "./components/TableWrapper/TableWrapper.js";
|
|
22
|
+
import TableWrapperFooter from "./components/TableWrapper/TableWrapperFooter.js";
|
|
23
|
+
import TableWrapperHeader from "./components/TableWrapper/TableWrapperHeader.js";
|
|
24
|
+
import TableWrapperPagination from "./components/TableWrapper/TableWrapperPagination.js";
|
|
25
|
+
import TableWrapperTitle from "./components/TableWrapper/TableWrapperTitle.js";
|
|
20
26
|
import { HttpStatus } from "./consts/http-status.js";
|
|
21
27
|
import { Revalidate } from "./consts/revalidate.js";
|
|
22
28
|
import { ModalManagerProvider, useModalManager } from "./contexts/ModalManagerContext/index.js";
|
|
@@ -60,4 +66,4 @@ import { addBodyJsonHook } from "./utils/ky/addBodyJsonHook.js";
|
|
|
60
66
|
import { parseJSON } from "./utils/ky/parseJson.js";
|
|
61
67
|
import { queryStringify } from "./utils/query-stringify.js";
|
|
62
68
|
import { createNewRoute, newRoute } from "./utils/new-route.js";
|
|
63
|
-
export { EmptyState, Form, FormCheckbox, FormCheckboxGroup, FormDateInput, FormDatePickerInput, FormDateTimePicker, FormInfinitySelect, FormMonthPickerInput, FormMultiSelect, FormNumberInput, FormRadioGroup, FormSelect, FormSubmitButton, FormTextInput, FormTextarea, FormTimeInput, HttpStatus, Icon, InfinityLoadMoreButton, InfinitySelect, ModalManagerProvider, MyCheckboxGroup, MyDateInput, MyDatePickerInput, MyDateTimePicker, MyMonthPickerInput, MyMultiSelect, MyNotifications, MyNumberInput, MyRadioGroup, MySelect, MyTextInput, MyTextarea, MyTimeInput, NavItems, NavigationHistoryProvider, PageDataProvider, QP_BACK_URL_NAME, Revalidate, addBodyJsonHook, breakpointsWithPx, createNewRoute, formatBytes, getVirtualContainerProps, getVirtualItemProps, groupBy, indexBy, isInfinityEmpty, myDefaultTheme, newRoute, nullableButRequired, numberToTimeInput, optionalButRequired, parseJSON, queryStringify, shuffleArray, timeInputToNumber, toTailwindColors, useBreakpoint, useFetchNextPageOnScroll, useModalManager, useNavigationHistory, useOnScrollProgress, usePageData, useUpdateSearchParams, useZodConfig, withController, withModalManager, zodValidator };
|
|
69
|
+
export { EmptyState, Form, FormCheckbox, FormCheckboxGroup, FormDateInput, FormDatePickerInput, FormDateTimePicker, FormInfinitySelect, FormMonthPickerInput, FormMultiSelect, FormNumberInput, FormRadioGroup, FormSelect, FormSubmitButton, FormTextInput, FormTextarea, FormTimeInput, HttpStatus, Icon, InfinityLoadMoreButton, InfinitySelect, ModalManagerProvider, MyCheckboxGroup, MyDateInput, MyDatePickerInput, MyDateTimePicker, MyMonthPickerInput, MyMultiSelect, MyNotifications, MyNumberInput, MyRadioGroup, MySelect, MyTable, MyTextInput, MyTextarea, MyTimeInput, NavItems, NavigationHistoryProvider, PageDataProvider, QP_BACK_URL_NAME, Revalidate, TableWrapper, TableWrapperFooter, TableWrapperHeader, TableWrapperPagination, TableWrapperTitle, addBodyJsonHook, breakpointsWithPx, createNewRoute, formatBytes, getVirtualContainerProps, getVirtualItemProps, groupBy, indexBy, isInfinityEmpty, myDefaultTheme, newRoute, nullableButRequired, numberToTimeInput, optionalButRequired, parseJSON, queryStringify, shuffleArray, timeInputToNumber, toTailwindColors, useBreakpoint, useFetchNextPageOnScroll, useModalManager, useNavigationHistory, useOnScrollProgress, usePageData, useUpdateSearchParams, useZodConfig, withController, withModalManager, zodValidator };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lkd-web-kit",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.2",
|
|
4
4
|
"description": "A template for creating React component libraries with Vite.",
|
|
5
5
|
"author": "LKD",
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,11 +19,14 @@
|
|
|
19
19
|
"import": "./dist/index.js"
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
|
+
"bin": {
|
|
23
|
+
"lkd-install-codex-skills": "./scripts/install-codex-skills.mjs"
|
|
24
|
+
},
|
|
22
25
|
"sideEffects": false,
|
|
23
26
|
"engines": {
|
|
24
27
|
"node": ">=22.12.0"
|
|
25
28
|
},
|
|
26
|
-
"files": ["dist"],
|
|
29
|
+
"files": ["dist", "codex/skills", "scripts/install-codex-skills.mjs"],
|
|
27
30
|
"scripts": {
|
|
28
31
|
"test": "vitest run --passWithNoTests",
|
|
29
32
|
"test:watch": "vitest",
|
|
@@ -34,6 +37,7 @@
|
|
|
34
37
|
},
|
|
35
38
|
"devDependencies": {
|
|
36
39
|
"@biomejs/biome": "2.4.14",
|
|
40
|
+
"@tanstack/react-table": "^8.21.3",
|
|
37
41
|
"@tanstack/react-virtual": "^3.13.24",
|
|
38
42
|
"@testing-library/jest-dom": "^6.8.0",
|
|
39
43
|
"@testing-library/react": "^16.3.0",
|
|
@@ -57,6 +61,7 @@
|
|
|
57
61
|
"@mantine/hooks": "^9.4.1",
|
|
58
62
|
"@mantine/notifications": "^9.4.1",
|
|
59
63
|
"@tanstack/react-query": "^5.101.2",
|
|
64
|
+
"@tanstack/react-table": "^8.21.3",
|
|
60
65
|
"@tanstack/react-virtual": "^3.14.4",
|
|
61
66
|
"clsx": "^2.1.1",
|
|
62
67
|
"ky": "^2.0.2",
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { cpSync, existsSync, mkdirSync } from 'node:fs'
|
|
3
|
+
import { dirname, join } from 'node:path'
|
|
4
|
+
import { fileURLToPath } from 'node:url'
|
|
5
|
+
|
|
6
|
+
const scriptDir = dirname(fileURLToPath(import.meta.url))
|
|
7
|
+
const source = join(scriptDir, '..', 'codex', 'skills')
|
|
8
|
+
const target = join(process.cwd(), '.agents', 'skills')
|
|
9
|
+
|
|
10
|
+
if (!existsSync(source)) {
|
|
11
|
+
throw new Error(`No se encontraron skills en ${source}`)
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
mkdirSync(target, { recursive: true })
|
|
15
|
+
cpSync(source, target, { recursive: true, force: true })
|
|
16
|
+
|
|
17
|
+
console.log(`Skills instaladas en ${target}`)
|