@pyreon/document-primitives 0.3.0 → 0.11.0

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.
Files changed (4) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +17 -0
  3. package/lib/index.d.ts +13 -13
  4. package/package.json +17 -16
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025-present Vit Bokisch
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,17 @@
1
+ # @pyreon/document-primitives
2
+
3
+ Rocketstyle-based document components for `@pyreon/document` export.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ bun add @pyreon/document-primitives
9
+ ```
10
+
11
+ ## Overview
12
+
13
+ Provides styled document primitives built on `@pyreon/rocketstyle` that can be rendered to PDF, DOCX, email, and other formats via `@pyreon/document`.
14
+
15
+ ## License
16
+
17
+ MIT
package/lib/index.d.ts CHANGED
@@ -37,10 +37,10 @@ declare const DocumentPreview: _pyreon_rocketstyle0.RocketStyleComponent<Partial
37
37
  beforeContentCss: _pyreon_elements0.ExtendCss;
38
38
  afterContentCss: _pyreon_elements0.ExtendCss;
39
39
  }> & _pyreon_core0.PyreonHTMLAttributes<HTMLElement>, {
40
- tag: string;
41
- _documentProps: Record<string, unknown>;
42
40
  size?: string;
41
+ tag: string;
43
42
  showPageBreaks?: boolean;
43
+ _documentProps: Record<string, unknown>;
44
44
  }, {}, {
45
45
  backgroundColor: string;
46
46
  padding: number;
@@ -82,15 +82,15 @@ declare const DocButton: _pyreon_rocketstyle0.RocketStyleComponent<Partial<{
82
82
  css: _pyreon_elements0.ExtendCss;
83
83
  }> & _pyreon_core0.PyreonHTMLAttributes<HTMLElement>, {
84
84
  tag: string;
85
- href?: string;
86
85
  _documentProps: {
87
86
  href: string;
88
87
  };
88
+ href?: string;
89
89
  }, {}, {
90
+ padding: string;
90
91
  borderRadius: number;
91
92
  fontSize: number;
92
93
  fontWeight: string;
93
- padding: string;
94
94
  textAlign: string;
95
95
  textDecoration: string;
96
96
  }, {
@@ -126,10 +126,10 @@ declare const DocCode: _pyreon_rocketstyle0.RocketStyleComponent<Partial<{
126
126
  language?: string;
127
127
  }, {}, {
128
128
  backgroundColor: string;
129
+ padding: string;
129
130
  borderRadius: number;
130
131
  fontFamily: string;
131
132
  fontSize: number;
132
- padding: string;
133
133
  }, {
134
134
  _documentType: "code";
135
135
  }, {}, {
@@ -234,8 +234,8 @@ declare const DocDivider: _pyreon_rocketstyle0.RocketStyleComponent<Partial<{
234
234
  afterContentCss: _pyreon_elements0.ExtendCss;
235
235
  }> & _pyreon_core0.PyreonHTMLAttributes<HTMLElement>, {
236
236
  tag: string;
237
- color?: string;
238
237
  _documentProps: Record<string, unknown>;
238
+ color?: string;
239
239
  thickness?: number;
240
240
  }, {}, {
241
241
  borderColor: string;
@@ -396,10 +396,10 @@ declare const DocImage: _pyreon_rocketstyle0.RocketStyleComponent<Partial<{
396
396
  afterContentCss: _pyreon_elements0.ExtendCss;
397
397
  }> & _pyreon_core0.PyreonHTMLAttributes<HTMLElement>, {
398
398
  tag: string;
399
- height?: number | string;
400
399
  width?: number | string;
401
400
  _documentProps: Record<string, unknown>;
402
401
  caption?: string;
402
+ height?: number | string;
403
403
  src?: string;
404
404
  alt?: string;
405
405
  }, {}, {}, {
@@ -428,10 +428,10 @@ declare const DocLink: _pyreon_rocketstyle0.RocketStyleComponent<Partial<{
428
428
  css: _pyreon_elements0.ExtendCss;
429
429
  }> & _pyreon_core0.PyreonHTMLAttributes<HTMLElement>, {
430
430
  tag: string;
431
- href?: string;
432
431
  _documentProps: {
433
432
  href: string;
434
433
  };
434
+ href?: string;
435
435
  }, {}, {
436
436
  color: string;
437
437
  textDecoration: string;
@@ -571,10 +571,10 @@ declare const DocPage: _pyreon_rocketstyle0.RocketStyleComponent<Partial<{
571
571
  beforeContentCss: _pyreon_elements0.ExtendCss;
572
572
  afterContentCss: _pyreon_elements0.ExtendCss;
573
573
  }> & _pyreon_core0.PyreonHTMLAttributes<HTMLElement>, {
574
+ size?: string;
574
575
  tag: string;
575
576
  orientation?: string;
576
577
  _documentProps: Record<string, unknown>;
577
- size?: string;
578
578
  }, {}, {
579
579
  backgroundColor: string;
580
580
  padding: string;
@@ -681,13 +681,13 @@ declare const DocQuote: _pyreon_rocketstyle0.RocketStyleComponent<Partial<{
681
681
  afterContentCss: _pyreon_elements0.ExtendCss;
682
682
  }> & _pyreon_core0.PyreonHTMLAttributes<HTMLElement>, {
683
683
  tag: string;
684
- borderColor?: string;
685
684
  _documentProps: Record<string, unknown>;
685
+ borderColor?: string;
686
686
  }, {}, {
687
+ padding: string;
687
688
  borderColor: string;
688
689
  color: string;
689
690
  fontStyle: string;
690
- padding: string;
691
691
  }, {
692
692
  _documentType: "quote";
693
693
  }, {}, {
@@ -846,10 +846,10 @@ declare const DocSpacer: _pyreon_rocketstyle0.RocketStyleComponent<Partial<{
846
846
  afterContentCss: _pyreon_elements0.ExtendCss;
847
847
  }> & _pyreon_core0.PyreonHTMLAttributes<HTMLElement>, {
848
848
  tag: string;
849
- height?: number;
850
849
  _documentProps: {
851
850
  height: number;
852
851
  };
852
+ height?: number;
853
853
  }, {}, {}, {
854
854
  _documentType: "spacer";
855
855
  }, {}, {
@@ -901,10 +901,10 @@ declare const DocTable: _pyreon_rocketstyle0.RocketStyleComponent<Partial<{
901
901
  afterContentCss: _pyreon_elements0.ExtendCss;
902
902
  }> & _pyreon_core0.PyreonHTMLAttributes<HTMLElement>, {
903
903
  tag: string;
904
- columns?: unknown[];
905
904
  _documentProps: Record<string, unknown>;
906
905
  caption?: string;
907
906
  rows?: unknown[];
907
+ columns?: unknown[];
908
908
  headerStyle?: Record<string, unknown>;
909
909
  striped?: boolean;
910
910
  bordered?: boolean;
package/package.json CHANGED
@@ -1,16 +1,17 @@
1
1
  {
2
2
  "name": "@pyreon/document-primitives",
3
- "version": "0.3.0",
3
+ "version": "0.11.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/pyreon/ui-system",
7
- "directory": "packages/document-primitives"
7
+ "directory": "packages/ui-system/document-primitives"
8
8
  },
9
9
  "description": "Rocketstyle document components — render in browser, export to 18 formats",
10
10
  "license": "MIT",
11
11
  "type": "module",
12
12
  "sideEffects": false,
13
13
  "exports": {
14
+ "bun": "./src/index.ts",
14
15
  "source": "./src/index.ts",
15
16
  "import": "./lib/index.js",
16
17
  "types": "./lib/index.d.ts"
@@ -25,7 +26,7 @@
25
26
  "LICENSE"
26
27
  ],
27
28
  "engines": {
28
- "node": ">= 18"
29
+ "node": ">= 22"
29
30
  },
30
31
  "publishConfig": {
31
32
  "access": "public"
@@ -41,23 +42,23 @@
41
42
  "typecheck": "tsc --noEmit"
42
43
  },
43
44
  "peerDependencies": {
44
- "@pyreon/core": ">=0.7.0",
45
- "@pyreon/document": ">=0.10.0",
46
- "@pyreon/elements": ">=0.3.0",
47
- "@pyreon/rocketstyle": ">=0.3.0",
48
- "@pyreon/styler": ">=0.3.0",
49
- "@pyreon/ui-core": ">=0.3.0"
45
+ "@pyreon/core": "^0.11.0",
46
+ "@pyreon/document": "^0.11.0",
47
+ "@pyreon/elements": "^0.11.0",
48
+ "@pyreon/rocketstyle": "^0.11.0",
49
+ "@pyreon/styler": "^0.11.0",
50
+ "@pyreon/ui-core": "^0.11.0"
50
51
  },
51
52
  "dependencies": {
52
- "@pyreon/connector-document": "workspace:*"
53
+ "@pyreon/connector-document": "^0.11.0"
53
54
  },
54
55
  "devDependencies": {
55
- "@pyreon/core": "^0.7.0",
56
- "@pyreon/elements": "workspace:*",
57
- "@pyreon/rocketstyle": "workspace:*",
58
- "@pyreon/styler": "workspace:*",
59
- "@pyreon/ui-core": "workspace:*",
56
+ "@pyreon/core": "^0.11.0",
57
+ "@pyreon/elements": "^0.11.0",
58
+ "@pyreon/rocketstyle": "^0.11.0",
59
+ "@pyreon/styler": "^0.11.0",
60
+ "@pyreon/ui-core": "^0.11.0",
60
61
  "@vitus-labs/tools-rolldown": "^1.15.4",
61
- "@pyreon/typescript": "^0.7.4"
62
+ "@pyreon/typescript": "^0.11.0"
62
63
  }
63
64
  }