@petrarca/sonnet-playground 0.1.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/dist/PlayColorPalette-UFMTJTUB.js +8 -0
- package/dist/PlayColorPalette-UFMTJTUB.js.map +1 -0
- package/dist/PlayCoreComponents-7QCDFQLT.js +7 -0
- package/dist/PlayCoreComponents-7QCDFQLT.js.map +1 -0
- package/dist/PlayDataComponents-GZSRTW4F.js +7 -0
- package/dist/PlayDataComponents-GZSRTW4F.js.map +1 -0
- package/dist/PlayFormComponents-RJB6WZHD.js +7 -0
- package/dist/PlayFormComponents-RJB6WZHD.js.map +1 -0
- package/dist/PlayFormWidgets-OFV7TJKH.js +7 -0
- package/dist/PlayFormWidgets-OFV7TJKH.js.map +1 -0
- package/dist/PlayForms-24XX5DC6.js +7 -0
- package/dist/PlayForms-24XX5DC6.js.map +1 -0
- package/dist/PlayJsonEditor-4L5INQPU.js +7 -0
- package/dist/PlayJsonEditor-4L5INQPU.js.map +1 -0
- package/dist/PlayTypography-ID6DLFZD.js +8 -0
- package/dist/PlayTypography-ID6DLFZD.js.map +1 -0
- package/dist/chunk-5V27QDAY.js +617 -0
- package/dist/chunk-5V27QDAY.js.map +1 -0
- package/dist/chunk-A3IK3CVW.js +212 -0
- package/dist/chunk-A3IK3CVW.js.map +1 -0
- package/dist/chunk-CYNK2P2Q.js +411 -0
- package/dist/chunk-CYNK2P2Q.js.map +1 -0
- package/dist/chunk-FTN2A5YL.js +20 -0
- package/dist/chunk-FTN2A5YL.js.map +1 -0
- package/dist/chunk-GYKEPHHA.js +1154 -0
- package/dist/chunk-GYKEPHHA.js.map +1 -0
- package/dist/chunk-KAT24CQQ.js +125 -0
- package/dist/chunk-KAT24CQQ.js.map +1 -0
- package/dist/chunk-P7I5IDXA.js +432 -0
- package/dist/chunk-P7I5IDXA.js.map +1 -0
- package/dist/chunk-QIETZUEN.js +885 -0
- package/dist/chunk-QIETZUEN.js.map +1 -0
- package/dist/chunk-TZGJH7YS.js +837 -0
- package/dist/chunk-TZGJH7YS.js.map +1 -0
- package/dist/index.d.ts +160 -0
- package/dist/index.js +328 -0
- package/dist/index.js.map +1 -0
- package/dist/pages/index.d.ts +69 -0
- package/dist/pages/index.js +36 -0
- package/dist/pages/index.js.map +1 -0
- package/package.json +54 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
declare function PlayTypography(): React.ReactElement;
|
|
5
|
+
|
|
6
|
+
/** Color Palette playground -- living reference for the design system color tokens. */
|
|
7
|
+
declare function PlayColorPalette(): React.ReactElement;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* PlayCoreComponents - Showcase for all core UI components
|
|
11
|
+
*
|
|
12
|
+
* This playground allows testing and visual verification of all core UI components
|
|
13
|
+
* before they are used in production. Each component is tested "in-vitro" here first.
|
|
14
|
+
*
|
|
15
|
+
* Structure:
|
|
16
|
+
* - Each component type gets its own section
|
|
17
|
+
* - Show all variants, states, and edge cases
|
|
18
|
+
* - Interactive examples where applicable
|
|
19
|
+
* - Use simple HTML/Tailwind for layout (no Mantine)
|
|
20
|
+
*/
|
|
21
|
+
declare function PlayCoreComponents(): react_jsx_runtime.JSX.Element;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Playground page for the JsonEditor component.
|
|
25
|
+
*
|
|
26
|
+
* Demonstrates a JSON Schema where only the /metadata section
|
|
27
|
+
* is editable. The rest of the schema (properties, required, etc.)
|
|
28
|
+
* is visible but locked.
|
|
29
|
+
*/
|
|
30
|
+
declare function PlayJsonEditor(): react_jsx_runtime.JSX.Element;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Playground page for testing Form components
|
|
34
|
+
* Accessible at /playground/form-components
|
|
35
|
+
*
|
|
36
|
+
* Tests all custom Form wrapper components that provide consistent
|
|
37
|
+
* label, description, and error handling around base UI components.
|
|
38
|
+
*/
|
|
39
|
+
declare function PlayFormComponents(): react_jsx_runtime.JSX.Element;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Playground page for testing JsonSchemaFormRenderer
|
|
43
|
+
* Accessible at /playground/forms
|
|
44
|
+
*/
|
|
45
|
+
declare function PlayForms(): react_jsx_runtime.JSX.Element;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Playground page for testing form widgets
|
|
49
|
+
* Accessible at /playground/form-widgets
|
|
50
|
+
*/
|
|
51
|
+
declare function PlayFormWidgets(): react_jsx_runtime.JSX.Element;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Playground page for SearchInput, EntitySelect, EntityTable, and EntityTree.
|
|
55
|
+
* Accessible at /playground/data-components
|
|
56
|
+
*
|
|
57
|
+
* Six sections:
|
|
58
|
+
* 1. Simple mode -- single freetext search, no field picker
|
|
59
|
+
* 2. Faceted mode -- two-column: schema editor left, live search + output right
|
|
60
|
+
* 3. EntityTable -- static sample data wired to faceted SearchInput
|
|
61
|
+
* 4. Local renderers -- same data with x- prefixed custom cell renderers
|
|
62
|
+
* 5. EntitySelect -- async searchable select backed by a static mock fetcher
|
|
63
|
+
* 6. EntityTree -- schema-driven tree with static nested data
|
|
64
|
+
*/
|
|
65
|
+
|
|
66
|
+
/** Playground sandbox for SearchInput, EntitySelect, and EntityTable. */
|
|
67
|
+
declare function PlayDataComponents(): React.ReactElement;
|
|
68
|
+
|
|
69
|
+
export { PlayColorPalette, PlayCoreComponents, PlayDataComponents, PlayFormComponents, PlayFormWidgets, PlayForms, PlayJsonEditor, PlayTypography };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import {
|
|
2
|
+
PlayFormWidgets
|
|
3
|
+
} from "../chunk-P7I5IDXA.js";
|
|
4
|
+
import {
|
|
5
|
+
PlayDataComponents
|
|
6
|
+
} from "../chunk-TZGJH7YS.js";
|
|
7
|
+
import {
|
|
8
|
+
PlayTypography
|
|
9
|
+
} from "../chunk-CYNK2P2Q.js";
|
|
10
|
+
import {
|
|
11
|
+
PlayColorPalette
|
|
12
|
+
} from "../chunk-A3IK3CVW.js";
|
|
13
|
+
import "../chunk-FTN2A5YL.js";
|
|
14
|
+
import {
|
|
15
|
+
PlayCoreComponents
|
|
16
|
+
} from "../chunk-GYKEPHHA.js";
|
|
17
|
+
import {
|
|
18
|
+
PlayJsonEditor
|
|
19
|
+
} from "../chunk-KAT24CQQ.js";
|
|
20
|
+
import {
|
|
21
|
+
PlayFormComponents
|
|
22
|
+
} from "../chunk-5V27QDAY.js";
|
|
23
|
+
import {
|
|
24
|
+
PlayForms
|
|
25
|
+
} from "../chunk-QIETZUEN.js";
|
|
26
|
+
export {
|
|
27
|
+
PlayColorPalette,
|
|
28
|
+
PlayCoreComponents,
|
|
29
|
+
PlayDataComponents,
|
|
30
|
+
PlayFormComponents,
|
|
31
|
+
PlayFormWidgets,
|
|
32
|
+
PlayForms,
|
|
33
|
+
PlayJsonEditor,
|
|
34
|
+
PlayTypography
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/package.json
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@petrarca/sonnet-playground",
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"description": "Playground framework and built-in component demos for the Petrarca Sonnet component library",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"publishConfig": {
|
|
7
|
+
"access": "public"
|
|
8
|
+
},
|
|
9
|
+
"type": "module",
|
|
10
|
+
"main": "./dist/index.js",
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"import": "./dist/index.js",
|
|
15
|
+
"types": "./dist/index.d.ts"
|
|
16
|
+
},
|
|
17
|
+
"./pages": {
|
|
18
|
+
"import": "./dist/pages/index.js",
|
|
19
|
+
"types": "./dist/pages/index.d.ts"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"dist"
|
|
24
|
+
],
|
|
25
|
+
"scripts": {
|
|
26
|
+
"build": "tsup",
|
|
27
|
+
"dev": "tsup --watch",
|
|
28
|
+
"typecheck": "tsc --noEmit",
|
|
29
|
+
"lint": "tsc --noEmit",
|
|
30
|
+
"test": "vitest run",
|
|
31
|
+
"clean": "rm -rf dist *.tsbuildinfo"
|
|
32
|
+
},
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@petrarca/sonnet-core": "workspace:*",
|
|
35
|
+
"@petrarca/sonnet-ui": "workspace:*",
|
|
36
|
+
"@petrarca/sonnet-forms": "workspace:*",
|
|
37
|
+
"@petrarca/sonnet-shell": "workspace:*",
|
|
38
|
+
"lucide-react": "^0.553.0",
|
|
39
|
+
"sonner": "^2.0.7",
|
|
40
|
+
"zod": "^4.3.6"
|
|
41
|
+
},
|
|
42
|
+
"peerDependencies": {
|
|
43
|
+
"react": ">=18",
|
|
44
|
+
"react-dom": ">=18",
|
|
45
|
+
"react-router-dom": ">=7",
|
|
46
|
+
"tailwindcss": ">=3"
|
|
47
|
+
},
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"@types/react": "^19.0.0",
|
|
50
|
+
"@types/react-dom": "^19.0.0",
|
|
51
|
+
"tsup": "^8.4.0",
|
|
52
|
+
"typescript": "^5.9.2"
|
|
53
|
+
}
|
|
54
|
+
}
|