@signiphi/page-assembly 0.2.0-beta.1

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 ADDED
@@ -0,0 +1,85 @@
1
+ {
2
+ "name": "@signiphi/page-assembly",
3
+ "version": "0.2.0-beta.1",
4
+ "description": "React component for PDF and image page manipulation - upload, reorder, delete, and combine pages",
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.mjs",
7
+ "types": "./dist/index.d.ts",
8
+ "sideEffects": [
9
+ "*.css",
10
+ "./dist/styles/*.css"
11
+ ],
12
+ "exports": {
13
+ ".": {
14
+ "types": "./dist/index.d.ts",
15
+ "import": "./dist/index.mjs",
16
+ "require": "./dist/index.js",
17
+ "default": "./dist/index.js"
18
+ },
19
+ "./styles": "./dist/styles/index.css",
20
+ "./styles/source": "./src/styles/index.css",
21
+ "./src/styles/index.css": "./src/styles/index.css",
22
+ "./dist/styles/index.css": "./dist/styles/index.css"
23
+ },
24
+ "files": [
25
+ "dist",
26
+ "src/styles",
27
+ "README.md"
28
+ ],
29
+ "scripts": {
30
+ "build": "tsup && node -e \"require('fs').mkdirSync('dist/styles', {recursive: true})\" && postcss src/styles/index.css -o dist/styles/index.css",
31
+ "dev": "tsup --watch",
32
+ "type-check": "tsc --noEmit"
33
+ },
34
+ "keywords": [
35
+ "pdf",
36
+ "page-assembly",
37
+ "page-manipulation",
38
+ "document-assembly",
39
+ "react",
40
+ "drag-and-drop"
41
+ ],
42
+ "author": "signiphi",
43
+ "license": "",
44
+ "peerDependencies": {
45
+ "@radix-ui/react-alert-dialog": "^1.1.0",
46
+ "@radix-ui/react-dialog": "^1.1.15",
47
+ "@radix-ui/react-dropdown-menu": "^2.1.0",
48
+ "@radix-ui/react-label": "^2.1.0",
49
+ "@radix-ui/react-select": "^2.1.0",
50
+ "@radix-ui/react-tooltip": "^1.1.0",
51
+ "lucide-react": "^0.454.0",
52
+ "react": "^18.2.0 || ^19.0.0",
53
+ "react-dom": "^18.2.0 || ^19.0.0"
54
+ },
55
+ "peerDependenciesMeta": {
56
+ "tailwindcss": {
57
+ "optional": true
58
+ }
59
+ },
60
+ "dependencies": {
61
+ "@radix-ui/react-slot": "^1.2.3",
62
+ "class-variance-authority": "^0.7.1",
63
+ "clsx": "^2.1.1",
64
+ "pdf-lib": "^1.17.1",
65
+ "pdfjs-dist": "5.3.93",
66
+ "react-dnd": "^16.0.1",
67
+ "react-dnd-html5-backend": "^16.0.1",
68
+ "tailwind-merge": "^3.3.1"
69
+ },
70
+ "devDependencies": {
71
+ "@jridgewell/remapping": "^2.3.5",
72
+ "@tailwindcss/postcss": "^4.1.4",
73
+ "@types/node": "^20.11.19",
74
+ "@types/react": "^18.3.17",
75
+ "@types/react-dom": "^18.3.5",
76
+ "postcss": "^8.5.6",
77
+ "postcss-cli": "^11.0.0",
78
+ "postcss-nesting": "^13.0.2",
79
+ "postcss-prefix-selector": "^1.16.1",
80
+ "postcss-preset-env": "^10.4.0",
81
+ "tailwindcss": "^4.1.4",
82
+ "tsup": "^8.3.5",
83
+ "typescript": "^5.8.3"
84
+ }
85
+ }
@@ -0,0 +1,109 @@
1
+ /**
2
+ * signiphi Page Assembly Styles
3
+ *
4
+ * This file contains the base Tailwind CSS configuration and theme definitions
5
+ * for the page-assembly package.
6
+ *
7
+ * All styles are scoped with .signiphi-page-assembly prefix via PostCSS.
8
+ */
9
+
10
+ @import "tailwindcss";
11
+
12
+ /**
13
+ * Theme configuration using Tailwind v4 @theme directive
14
+ */
15
+ @theme {
16
+ /* Color palette for page-assembly */
17
+ --color-primary: #0099cd;
18
+ --color-primary-foreground: #ffffff;
19
+
20
+ --color-secondary: #f1f5f9;
21
+ --color-secondary-foreground: #0f172a;
22
+
23
+ --color-destructive: #ef4444;
24
+ --color-destructive-foreground: #ffffff;
25
+
26
+ --color-muted: #f1f5f9;
27
+ --color-muted-foreground: #64748b;
28
+
29
+ --color-accent: #f1f5f9;
30
+ --color-accent-foreground: #0f172a;
31
+
32
+ --color-popover: #ffffff;
33
+ --color-popover-foreground: #0f172a;
34
+
35
+ --color-card: #ffffff;
36
+ --color-card-foreground: #0f172a;
37
+
38
+ --color-border: #e2e8f0;
39
+ --color-input: #e2e8f0;
40
+ --color-ring: #0099cd;
41
+
42
+ --color-background: #ffffff;
43
+ --color-foreground: #0f172a;
44
+
45
+ /* CSS custom properties for consistent theming */
46
+ --xpa-background: 0 0% 100%;
47
+ --xpa-foreground: 222.2 84% 4.9%;
48
+ --xpa-card: 0 0% 100%;
49
+ --xpa-card-foreground: 222.2 84% 4.9%;
50
+ --xpa-popover: 0 0% 100%;
51
+ --xpa-popover-foreground: 222.2 84% 4.9%;
52
+ --xpa-primary: 198 100% 40%;
53
+ --xpa-primary-foreground: 0 0% 100%;
54
+ --xpa-secondary: 210 40% 96.1%;
55
+ --xpa-secondary-foreground: 222.2 47.4% 11.2%;
56
+ --xpa-muted: 210 40% 96.1%;
57
+ --xpa-muted-foreground: 215.4 16.3% 46.9%;
58
+ --xpa-accent: 210 40% 96.1%;
59
+ --xpa-accent-foreground: 222.2 47.4% 11.2%;
60
+ --xpa-destructive: 0 84.2% 60.2%;
61
+ --xpa-destructive-foreground: 0 0% 100%;
62
+ --xpa-border: 214.3 31.8% 91.4%;
63
+ --xpa-input: 214.3 31.8% 91.4%;
64
+ --xpa-ring: 198 100% 40%;
65
+ --xpa-radius: 0.5rem;
66
+ }
67
+
68
+ /**
69
+ * Base component styles
70
+ */
71
+ @layer base {
72
+ * {
73
+ @apply border-border;
74
+ }
75
+
76
+ body {
77
+ @apply bg-background text-foreground;
78
+ }
79
+ }
80
+
81
+ /**
82
+ * Custom animations
83
+ */
84
+ @layer utilities {
85
+ @keyframes spin {
86
+ to {
87
+ transform: rotate(360deg);
88
+ }
89
+ }
90
+
91
+ .animate-spin {
92
+ animation: spin 1s linear infinite;
93
+ }
94
+ }
95
+
96
+ /**
97
+ * Tab button styles (for demo integration)
98
+ */
99
+ .tab-button {
100
+ @apply inline-flex items-center justify-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-colors;
101
+ }
102
+
103
+ .tab-button-active {
104
+ @apply bg-primary text-primary-foreground shadow-sm;
105
+ }
106
+
107
+ .tab-button-inactive {
108
+ @apply bg-white text-gray-700 border border-gray-300 hover:bg-gray-50;
109
+ }