@signiphi/page-assembly 0.2.0-beta.1 → 0.2.0-beta.11
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/README.md +283 -92
- package/dist/index.d.mts +239 -1
- package/dist/index.d.ts +239 -1
- package/dist/index.js +1557 -36
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1548 -36
- package/dist/index.mjs.map +1 -1
- package/dist/styles/index.css +88 -27
- package/dist/styles/index.d.ts +1 -0
- package/package.json +14 -6
- package/src/styles/index.d.ts +1 -0
package/dist/styles/index.css
CHANGED
|
@@ -190,16 +190,10 @@
|
|
|
190
190
|
background-color: transparent;
|
|
191
191
|
opacity: 1;
|
|
192
192
|
}
|
|
193
|
-
.signiphi-page-assembly:not(#\#):not(#\#) :where(select[multiple]) optgroup {
|
|
193
|
+
.signiphi-page-assembly:not(#\#):not(#\#) :where(select:is([multiple], [size])) optgroup {
|
|
194
194
|
font-weight: bolder;
|
|
195
195
|
}
|
|
196
|
-
.signiphi-page-assembly:not(#\#):not(#\#) :where(select[size]) optgroup {
|
|
197
|
-
font-weight: bolder;
|
|
198
|
-
}
|
|
199
|
-
.signiphi-page-assembly:not(#\#):not(#\#) :where(select[multiple]) optgroup option {
|
|
200
|
-
padding-left: 20px;
|
|
201
|
-
}
|
|
202
|
-
.signiphi-page-assembly:not(#\#):not(#\#) :where(select[size]) optgroup option {
|
|
196
|
+
.signiphi-page-assembly:not(#\#):not(#\#) :where(select:is([multiple], [size])) optgroup option {
|
|
203
197
|
padding-left: 20px;
|
|
204
198
|
}
|
|
205
199
|
.signiphi-page-assembly:not(#\#):not(#\#) ::file-selector-button {
|
|
@@ -264,6 +258,9 @@
|
|
|
264
258
|
.signiphi-page-assembly:not(#\#):not(#\#):not(#\#) [hidden]:where(:not([hidden="until-found"])) {
|
|
265
259
|
display: none !important;
|
|
266
260
|
}
|
|
261
|
+
.signiphi-page-assembly:not(#\#):not(#\#):not(#\#):not(#\#) .invisible {
|
|
262
|
+
visibility: hidden;
|
|
263
|
+
}
|
|
267
264
|
.signiphi-page-assembly:not(#\#):not(#\#):not(#\#):not(#\#) .sr-only {
|
|
268
265
|
position: absolute;
|
|
269
266
|
width: 1px;
|
|
@@ -416,6 +413,9 @@
|
|
|
416
413
|
.signiphi-page-assembly:not(#\#):not(#\#):not(#\#):not(#\#) .ml-auto {
|
|
417
414
|
margin-left: auto;
|
|
418
415
|
}
|
|
416
|
+
.signiphi-page-assembly:not(#\#):not(#\#):not(#\#):not(#\#) .contents {
|
|
417
|
+
display: contents;
|
|
418
|
+
}
|
|
419
419
|
.signiphi-page-assembly:not(#\#):not(#\#):not(#\#):not(#\#) .flex {
|
|
420
420
|
display: flex;
|
|
421
421
|
}
|
|
@@ -536,6 +536,9 @@
|
|
|
536
536
|
.signiphi-page-assembly:not(#\#):not(#\#):not(#\#):not(#\#) .min-w-\[var\(--radix-select-trigger-width\)\] {
|
|
537
537
|
min-width: var(--radix-select-trigger-width);
|
|
538
538
|
}
|
|
539
|
+
.signiphi-page-assembly:not(#\#):not(#\#):not(#\#):not(#\#) .flex-shrink-0 {
|
|
540
|
+
flex-shrink: 0;
|
|
541
|
+
}
|
|
539
542
|
.signiphi-page-assembly:not(#\#):not(#\#):not(#\#):not(#\#) .translate-x-\[-50\%\] {
|
|
540
543
|
--tw-translate-x: -50%;
|
|
541
544
|
translate: -50% var(--tw-translate-y);
|
|
@@ -613,7 +616,7 @@
|
|
|
613
616
|
gap: calc(0.25rem * 4);
|
|
614
617
|
gap: calc(var(--spacing) * 4);
|
|
615
618
|
}
|
|
616
|
-
.signiphi-page-assembly:not(#\#):not(#\#):not(#\#):not(#\#) :where(.signiphi-page-assembly .space-y-1\.5 > :not(:last-child)) {
|
|
619
|
+
.signiphi-page-assembly:not(#\#):not(#\#):not(#\#):not(#\#) :where(:is(.signiphi-page-assembly .space-y-1\.5) > :not(:last-child)) {
|
|
617
620
|
--tw-space-y-reverse: 0;
|
|
618
621
|
margin-top: calc((0.25rem * 1.5) * 0);
|
|
619
622
|
margin-top: calc((var(--spacing) * 1.5) * var(--tw-space-y-reverse));
|
|
@@ -624,7 +627,7 @@
|
|
|
624
627
|
margin-bottom: calc(calc(0.25rem * 1.5) * calc(1 - 0));
|
|
625
628
|
margin-bottom: calc(calc(var(--spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse)));
|
|
626
629
|
}
|
|
627
|
-
.signiphi-page-assembly:not(#\#):not(#\#):not(#\#):not(#\#) :where(.signiphi-page-assembly .space-y-2 > :not(:last-child)) {
|
|
630
|
+
.signiphi-page-assembly:not(#\#):not(#\#):not(#\#):not(#\#) :where(:is(.signiphi-page-assembly .space-y-2) > :not(:last-child)) {
|
|
628
631
|
--tw-space-y-reverse: 0;
|
|
629
632
|
margin-top: calc((0.25rem * 2) * 0);
|
|
630
633
|
margin-top: calc((var(--spacing) * 2) * var(--tw-space-y-reverse));
|
|
@@ -635,16 +638,16 @@
|
|
|
635
638
|
margin-bottom: calc(calc(0.25rem * 2) * calc(1 - 0));
|
|
636
639
|
margin-bottom: calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)));
|
|
637
640
|
}
|
|
638
|
-
.signiphi-page-assembly:not(#\#):not(#\#):not(#\#):not(#\#) :where(.signiphi-page-assembly .space-y-
|
|
641
|
+
.signiphi-page-assembly:not(#\#):not(#\#):not(#\#):not(#\#) :where(:is(.signiphi-page-assembly .space-y-3) > :not(:last-child)) {
|
|
639
642
|
--tw-space-y-reverse: 0;
|
|
640
|
-
margin-top: calc((0.25rem *
|
|
641
|
-
margin-top: calc((var(--spacing) *
|
|
642
|
-
margin-top: calc(calc(0.25rem *
|
|
643
|
-
margin-top: calc(calc(var(--spacing) *
|
|
644
|
-
margin-bottom: calc((0.25rem *
|
|
645
|
-
margin-bottom: calc((var(--spacing) *
|
|
646
|
-
margin-bottom: calc(calc(0.25rem *
|
|
647
|
-
margin-bottom: calc(calc(var(--spacing) *
|
|
643
|
+
margin-top: calc((0.25rem * 3) * 0);
|
|
644
|
+
margin-top: calc((var(--spacing) * 3) * var(--tw-space-y-reverse));
|
|
645
|
+
margin-top: calc(calc(0.25rem * 3) * 0);
|
|
646
|
+
margin-top: calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));
|
|
647
|
+
margin-bottom: calc((0.25rem * 3) * (1 - 0));
|
|
648
|
+
margin-bottom: calc((var(--spacing) * 3) * (1 - var(--tw-space-y-reverse)));
|
|
649
|
+
margin-bottom: calc(calc(0.25rem * 3) * calc(1 - 0));
|
|
650
|
+
margin-bottom: calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)));
|
|
648
651
|
}
|
|
649
652
|
.signiphi-page-assembly:not(#\#):not(#\#):not(#\#):not(#\#) .truncate {
|
|
650
653
|
overflow: hidden;
|
|
@@ -688,6 +691,24 @@
|
|
|
688
691
|
--tw-border-style: dashed;
|
|
689
692
|
border-style: dashed;
|
|
690
693
|
}
|
|
694
|
+
.signiphi-page-assembly:not(#\#):not(#\#):not(#\#):not(#\#) .border-border {
|
|
695
|
+
border-color: #e2e8f0;
|
|
696
|
+
border-color: var(--color-border);
|
|
697
|
+
}
|
|
698
|
+
.signiphi-page-assembly:not(#\#):not(#\#):not(#\#):not(#\#) .border-destructive\/50 {
|
|
699
|
+
border-color: rgba(239, 68, 68, 0.5);
|
|
700
|
+
}
|
|
701
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
702
|
+
.signiphi-page-assembly:not(#\#):not(#\#):not(#\#):not(#\#) .border-destructive\/50 {
|
|
703
|
+
border-color: color-mix(in oklab, #ef4444 50%, transparent);
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
@supports (color: color-mix(in lch, red, blue)) {
|
|
707
|
+
.signiphi-page-assembly:not(#\#):not(#\#):not(#\#):not(#\#) .border-destructive\/50 {
|
|
708
|
+
border-color: color-mix(in oklab, var(--color-destructive) 50%, transparent);
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
}
|
|
691
712
|
.signiphi-page-assembly:not(#\#):not(#\#):not(#\#):not(#\#) .border-gray-200 {
|
|
692
713
|
border-color: rgb(229, 231, 235);
|
|
693
714
|
border-color: var(--color-gray-200);
|
|
@@ -765,6 +786,20 @@
|
|
|
765
786
|
background-color: #ef4444;
|
|
766
787
|
background-color: var(--color-destructive);
|
|
767
788
|
}
|
|
789
|
+
.signiphi-page-assembly:not(#\#):not(#\#):not(#\#):not(#\#) .bg-destructive\/5 {
|
|
790
|
+
background-color: rgba(239, 68, 68, 0.05);
|
|
791
|
+
}
|
|
792
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
793
|
+
.signiphi-page-assembly:not(#\#):not(#\#):not(#\#):not(#\#) .bg-destructive\/5 {
|
|
794
|
+
background-color: color-mix(in oklab, #ef4444 5%, transparent);
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
@supports (color: color-mix(in lch, red, blue)) {
|
|
798
|
+
.signiphi-page-assembly:not(#\#):not(#\#):not(#\#):not(#\#) .bg-destructive\/5 {
|
|
799
|
+
background-color: color-mix(in oklab, var(--color-destructive) 5%, transparent);
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
}
|
|
768
803
|
.signiphi-page-assembly:not(#\#):not(#\#):not(#\#):not(#\#) .bg-muted {
|
|
769
804
|
background-color: #f1f5f9;
|
|
770
805
|
background-color: var(--color-muted);
|
|
@@ -914,10 +949,6 @@
|
|
|
914
949
|
padding-bottom: calc(0.25rem * 3);
|
|
915
950
|
padding-bottom: calc(var(--spacing) * 3);
|
|
916
951
|
}
|
|
917
|
-
.signiphi-page-assembly:not(#\#):not(#\#):not(#\#):not(#\#) .pb-6 {
|
|
918
|
-
padding-bottom: calc(0.25rem * 6);
|
|
919
|
-
padding-bottom: calc(var(--spacing) * 6);
|
|
920
|
-
}
|
|
921
952
|
.signiphi-page-assembly:not(#\#):not(#\#):not(#\#):not(#\#) .pl-8 {
|
|
922
953
|
padding-left: calc(0.25rem * 8);
|
|
923
954
|
padding-left: calc(var(--spacing) * 8);
|
|
@@ -991,6 +1022,10 @@
|
|
|
991
1022
|
color: #0f172a;
|
|
992
1023
|
color: var(--color-card-foreground);
|
|
993
1024
|
}
|
|
1025
|
+
.signiphi-page-assembly:not(#\#):not(#\#):not(#\#):not(#\#) .text-destructive {
|
|
1026
|
+
color: #ef4444;
|
|
1027
|
+
color: var(--color-destructive);
|
|
1028
|
+
}
|
|
994
1029
|
.signiphi-page-assembly:not(#\#):not(#\#):not(#\#):not(#\#) .text-destructive-foreground {
|
|
995
1030
|
color: #ffffff;
|
|
996
1031
|
color: var(--color-destructive-foreground);
|
|
@@ -1171,9 +1206,19 @@
|
|
|
1171
1206
|
}
|
|
1172
1207
|
}
|
|
1173
1208
|
@media (hover: hover) {
|
|
1174
|
-
.signiphi-page-assembly:not(#\#):not(#\#):not(#\#):not(#\#) :is(.signiphi-page-assembly .hover\:border-
|
|
1175
|
-
border-color:
|
|
1176
|
-
|
|
1209
|
+
.signiphi-page-assembly:not(#\#):not(#\#):not(#\#):not(#\#) :is(.signiphi-page-assembly .hover\:border-primary\/60):hover {
|
|
1210
|
+
border-color: rgba(0, 153, 205, 0.6);
|
|
1211
|
+
}
|
|
1212
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
1213
|
+
.signiphi-page-assembly:not(#\#):not(#\#):not(#\#):not(#\#) :is(.signiphi-page-assembly .hover\:border-primary\/60):hover {
|
|
1214
|
+
border-color: color-mix(in oklab, #0099cd 60%, transparent);
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1217
|
+
@supports (color: color-mix(in lch, red, blue)) {
|
|
1218
|
+
.signiphi-page-assembly:not(#\#):not(#\#):not(#\#):not(#\#) :is(.signiphi-page-assembly .hover\:border-primary\/60):hover {
|
|
1219
|
+
border-color: color-mix(in oklab, var(--color-primary) 60%, transparent);
|
|
1220
|
+
}
|
|
1221
|
+
}
|
|
1177
1222
|
}
|
|
1178
1223
|
}
|
|
1179
1224
|
@media (hover: hover) {
|
|
@@ -1220,6 +1265,22 @@
|
|
|
1220
1265
|
background-color: var(--color-gray-100);
|
|
1221
1266
|
}
|
|
1222
1267
|
}
|
|
1268
|
+
@media (hover: hover) {
|
|
1269
|
+
.signiphi-page-assembly:not(#\#):not(#\#):not(#\#):not(#\#) :is(.signiphi-page-assembly .hover\:bg-primary\/10):hover {
|
|
1270
|
+
background-color: rgba(0, 153, 205, 0.1);
|
|
1271
|
+
}
|
|
1272
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
1273
|
+
.signiphi-page-assembly:not(#\#):not(#\#):not(#\#):not(#\#) :is(.signiphi-page-assembly .hover\:bg-primary\/10):hover {
|
|
1274
|
+
background-color: color-mix(in oklab, #0099cd 10%, transparent);
|
|
1275
|
+
}
|
|
1276
|
+
|
|
1277
|
+
@supports (color: color-mix(in lch, red, blue)) {
|
|
1278
|
+
.signiphi-page-assembly:not(#\#):not(#\#):not(#\#):not(#\#) :is(.signiphi-page-assembly .hover\:bg-primary\/10):hover {
|
|
1279
|
+
background-color: color-mix(in oklab, var(--color-primary) 10%, transparent);
|
|
1280
|
+
}
|
|
1281
|
+
}
|
|
1282
|
+
}
|
|
1283
|
+
}
|
|
1223
1284
|
@media (hover: hover) {
|
|
1224
1285
|
.signiphi-page-assembly:not(#\#):not(#\#):not(#\#):not(#\#) :is(.signiphi-page-assembly .hover\:bg-primary\/80):hover {
|
|
1225
1286
|
background-color: rgba(0, 153, 205, 0.8);
|
|
@@ -1434,7 +1495,7 @@
|
|
|
1434
1495
|
}
|
|
1435
1496
|
}
|
|
1436
1497
|
@media (min-width: 40rem) {
|
|
1437
|
-
.signiphi-page-assembly:not(#\#):not(#\#):not(#\#):not(#\#) :where(.signiphi-page-assembly .sm\:space-x-2 > :not(:last-child)) {
|
|
1498
|
+
.signiphi-page-assembly:not(#\#):not(#\#):not(#\#):not(#\#) :where(:is(.signiphi-page-assembly .sm\:space-x-2) > :not(:last-child)) {
|
|
1438
1499
|
--tw-space-x-reverse: 0;
|
|
1439
1500
|
margin-left: calc((0.25rem * 2) * 0);
|
|
1440
1501
|
margin-left: calc((var(--spacing) * 2) * var(--tw-space-x-reverse));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signiphi/page-assembly",
|
|
3
|
-
"version": "0.2.0-beta.
|
|
3
|
+
"version": "0.2.0-beta.11",
|
|
4
4
|
"description": "React component for PDF and image page manipulation - upload, reorder, delete, and combine pages",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -16,7 +16,11 @@
|
|
|
16
16
|
"require": "./dist/index.js",
|
|
17
17
|
"default": "./dist/index.js"
|
|
18
18
|
},
|
|
19
|
-
"./styles":
|
|
19
|
+
"./styles": {
|
|
20
|
+
"types": "./dist/styles/index.d.ts",
|
|
21
|
+
"import": "./dist/styles/index.css",
|
|
22
|
+
"default": "./dist/styles/index.css"
|
|
23
|
+
},
|
|
20
24
|
"./styles/source": "./src/styles/index.css",
|
|
21
25
|
"./src/styles/index.css": "./src/styles/index.css",
|
|
22
26
|
"./dist/styles/index.css": "./dist/styles/index.css"
|
|
@@ -27,9 +31,11 @@
|
|
|
27
31
|
"README.md"
|
|
28
32
|
],
|
|
29
33
|
"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"
|
|
34
|
+
"build": "tsup && node -e \"require('fs').mkdirSync('dist/styles', {recursive: true})\" && postcss src/styles/index.css -o dist/styles/index.css && node -e \"require('fs').copyFileSync('src/styles/index.d.ts','dist/styles/index.d.ts')\"",
|
|
35
|
+
"dev": "tsup --watch --no-clean",
|
|
36
|
+
"type-check": "tsc --noEmit",
|
|
37
|
+
"test": "vitest run --pool=forks",
|
|
38
|
+
"test:watch": "vitest"
|
|
33
39
|
},
|
|
34
40
|
"keywords": [
|
|
35
41
|
"pdf",
|
|
@@ -69,6 +75,7 @@
|
|
|
69
75
|
},
|
|
70
76
|
"devDependencies": {
|
|
71
77
|
"@jridgewell/remapping": "^2.3.5",
|
|
78
|
+
"@signiphi/pdf-crypto": "workspace:*",
|
|
72
79
|
"@tailwindcss/postcss": "^4.1.4",
|
|
73
80
|
"@types/node": "^20.11.19",
|
|
74
81
|
"@types/react": "^18.3.17",
|
|
@@ -80,6 +87,7 @@
|
|
|
80
87
|
"postcss-preset-env": "^10.4.0",
|
|
81
88
|
"tailwindcss": "^4.1.4",
|
|
82
89
|
"tsup": "^8.3.5",
|
|
83
|
-
"typescript": "^5.8.3"
|
|
90
|
+
"typescript": "^5.8.3",
|
|
91
|
+
"vitest": "^1.0.4"
|
|
84
92
|
}
|
|
85
93
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|