@pdfme/ui 5.3.15-dev.1 → 5.3.15-dev.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/dist/index.es.js +36 -36
- package/dist/index.umd.js +36 -36
- package/package.json +4 -4
package/dist/index.es.js
CHANGED
@@ -80108,7 +80108,7 @@ const DEFAULT_OPACITY = 1, HEX_COLOR_PATTERN = "^#(?:[A-Fa-f0-9]{6})$", getBody$
|
|
80108
80108
|
});
|
80109
80109
|
};
|
80110
80110
|
/**
|
80111
|
-
* @license lucide v0.
|
80111
|
+
* @license lucide v0.487.0 - ISC
|
80112
80112
|
*
|
80113
80113
|
* This source code is licensed under the ISC license.
|
80114
80114
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -80119,7 +80119,7 @@ const AlignCenter = [
|
|
80119
80119
|
["path", { d: "M21 6H3" }]
|
80120
80120
|
];
|
80121
80121
|
/**
|
80122
|
-
* @license lucide v0.
|
80122
|
+
* @license lucide v0.487.0 - ISC
|
80123
80123
|
*
|
80124
80124
|
* This source code is licensed under the ISC license.
|
80125
80125
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -80130,7 +80130,7 @@ const AlignJustify = [
|
|
80130
80130
|
["path", { d: "M3 6h18" }]
|
80131
80131
|
];
|
80132
80132
|
/**
|
80133
|
-
* @license lucide v0.
|
80133
|
+
* @license lucide v0.487.0 - ISC
|
80134
80134
|
*
|
80135
80135
|
* This source code is licensed under the ISC license.
|
80136
80136
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -80141,7 +80141,7 @@ const AlignLeft = [
|
|
80141
80141
|
["path", { d: "M21 6H3" }]
|
80142
80142
|
];
|
80143
80143
|
/**
|
80144
|
-
* @license lucide v0.
|
80144
|
+
* @license lucide v0.487.0 - ISC
|
80145
80145
|
*
|
80146
80146
|
* This source code is licensed under the ISC license.
|
80147
80147
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -80152,7 +80152,7 @@ const AlignRight = [
|
|
80152
80152
|
["path", { d: "M21 6H3" }]
|
80153
80153
|
];
|
80154
80154
|
/**
|
80155
|
-
* @license lucide v0.
|
80155
|
+
* @license lucide v0.487.0 - ISC
|
80156
80156
|
*
|
80157
80157
|
* This source code is licensed under the ISC license.
|
80158
80158
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -80163,7 +80163,7 @@ const ArrowDownToLine = [
|
|
80163
80163
|
["path", { d: "M19 21H5" }]
|
80164
80164
|
];
|
80165
80165
|
/**
|
80166
|
-
* @license lucide v0.
|
80166
|
+
* @license lucide v0.487.0 - ISC
|
80167
80167
|
*
|
80168
80168
|
* This source code is licensed under the ISC license.
|
80169
80169
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -80174,7 +80174,7 @@ const ArrowUpToLine = [
|
|
80174
80174
|
["path", { d: "M12 7v14" }]
|
80175
80175
|
];
|
80176
80176
|
/**
|
80177
|
-
* @license lucide v0.
|
80177
|
+
* @license lucide v0.487.0 - ISC
|
80178
80178
|
*
|
80179
80179
|
* This source code is licensed under the ISC license.
|
80180
80180
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -80185,7 +80185,7 @@ const Strikethrough = [
|
|
80185
80185
|
["line", { x1: "4", x2: "20", y1: "12", y2: "12" }]
|
80186
80186
|
];
|
80187
80187
|
/**
|
80188
|
-
* @license lucide v0.
|
80188
|
+
* @license lucide v0.487.0 - ISC
|
80189
80189
|
*
|
80190
80190
|
* This source code is licensed under the ISC license.
|
80191
80191
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -80198,7 +80198,7 @@ const TextCursorInput = [
|
|
80198
80198
|
["path", { d: "M9 7v10" }]
|
80199
80199
|
];
|
80200
80200
|
/**
|
80201
|
-
* @license lucide v0.
|
80201
|
+
* @license lucide v0.487.0 - ISC
|
80202
80202
|
*
|
80203
80203
|
* This source code is licensed under the ISC license.
|
80204
80204
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -135665,7 +135665,7 @@ const Dragger = /* @__PURE__ */ reactExports.forwardRef((a, s) => {
|
|
135665
135665
|
Upload.Dragger = Dragger;
|
135666
135666
|
Upload.LIST_IGNORE = LIST_IGNORE;
|
135667
135667
|
/**
|
135668
|
-
* @license lucide-react v0.
|
135668
|
+
* @license lucide-react v0.487.0 - ISC
|
135669
135669
|
*
|
135670
135670
|
* This source code is licensed under the ISC license.
|
135671
135671
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -135678,7 +135678,7 @@ const toKebabCase = (a) => a.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(
|
|
135678
135678
|
return s.charAt(0).toUpperCase() + s.slice(1);
|
135679
135679
|
}, mergeClasses = (...a) => a.filter((s, c, u) => !!s && s.trim() !== "" && u.indexOf(s) === c).join(" ").trim();
|
135680
135680
|
/**
|
135681
|
-
* @license lucide-react v0.
|
135681
|
+
* @license lucide-react v0.487.0 - ISC
|
135682
135682
|
*
|
135683
135683
|
* This source code is licensed under the ISC license.
|
135684
135684
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -135695,7 +135695,7 @@ var defaultAttributes$1 = {
|
|
135695
135695
|
strokeLinejoin: "round"
|
135696
135696
|
};
|
135697
135697
|
/**
|
135698
|
-
* @license lucide-react v0.
|
135698
|
+
* @license lucide-react v0.487.0 - ISC
|
135699
135699
|
*
|
135700
135700
|
* This source code is licensed under the ISC license.
|
135701
135701
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -135729,7 +135729,7 @@ const Icon = reactExports.forwardRef(
|
|
135729
135729
|
)
|
135730
135730
|
);
|
135731
135731
|
/**
|
135732
|
-
* @license lucide-react v0.
|
135732
|
+
* @license lucide-react v0.487.0 - ISC
|
135733
135733
|
*
|
135734
135734
|
* This source code is licensed under the ISC license.
|
135735
135735
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -135750,7 +135750,7 @@ const createLucideIcon = (a, s) => {
|
|
135750
135750
|
return c.displayName = toPascalCase(a), c;
|
135751
135751
|
};
|
135752
135752
|
/**
|
135753
|
-
* @license lucide-react v0.
|
135753
|
+
* @license lucide-react v0.487.0 - ISC
|
135754
135754
|
*
|
135755
135755
|
* This source code is licensed under the ISC license.
|
135756
135756
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -135763,7 +135763,7 @@ const __iconNode$m = [
|
|
135763
135763
|
["path", { d: "M14 8V7c0-1.1.9-2 2-2h2a2 2 0 0 1 2 2v1", key: "1apec2" }]
|
135764
135764
|
], AlignCenterHorizontal = createLucideIcon("align-center-horizontal", __iconNode$m);
|
135765
135765
|
/**
|
135766
|
-
* @license lucide-react v0.
|
135766
|
+
* @license lucide-react v0.487.0 - ISC
|
135767
135767
|
*
|
135768
135768
|
* This source code is licensed under the ISC license.
|
135769
135769
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -135776,7 +135776,7 @@ const __iconNode$l = [
|
|
135776
135776
|
["path", { d: "M16 14h1a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-1", key: "1euafb" }]
|
135777
135777
|
], AlignCenterVertical = createLucideIcon("align-center-vertical", __iconNode$l);
|
135778
135778
|
/**
|
135779
|
-
* @license lucide-react v0.
|
135779
|
+
* @license lucide-react v0.487.0 - ISC
|
135780
135780
|
*
|
135781
135781
|
* This source code is licensed under the ISC license.
|
135782
135782
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -135787,7 +135787,7 @@ const __iconNode$k = [
|
|
135787
135787
|
["path", { d: "M22 22H2", key: "19qnx5" }]
|
135788
135788
|
], AlignEndHorizontal = createLucideIcon("align-end-horizontal", __iconNode$k);
|
135789
135789
|
/**
|
135790
|
-
* @license lucide-react v0.
|
135790
|
+
* @license lucide-react v0.487.0 - ISC
|
135791
135791
|
*
|
135792
135792
|
* This source code is licensed under the ISC license.
|
135793
135793
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -135798,7 +135798,7 @@ const __iconNode$j = [
|
|
135798
135798
|
["path", { d: "M22 22V2", key: "12ipfv" }]
|
135799
135799
|
], AlignEndVertical = createLucideIcon("align-end-vertical", __iconNode$j);
|
135800
135800
|
/**
|
135801
|
-
* @license lucide-react v0.
|
135801
|
+
* @license lucide-react v0.487.0 - ISC
|
135802
135802
|
*
|
135803
135803
|
* This source code is licensed under the ISC license.
|
135804
135804
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -135809,7 +135809,7 @@ const __iconNode$i = [
|
|
135809
135809
|
["path", { d: "M20 22V2", key: "1bnhr8" }]
|
135810
135810
|
], AlignHorizontalSpaceAround = createLucideIcon("align-horizontal-space-around", __iconNode$i);
|
135811
135811
|
/**
|
135812
|
-
* @license lucide-react v0.
|
135812
|
+
* @license lucide-react v0.487.0 - ISC
|
135813
135813
|
*
|
135814
135814
|
* This source code is licensed under the ISC license.
|
135815
135815
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -135820,7 +135820,7 @@ const __iconNode$h = [
|
|
135820
135820
|
["path", { d: "M22 2H2", key: "fhrpnj" }]
|
135821
135821
|
], AlignStartHorizontal = createLucideIcon("align-start-horizontal", __iconNode$h);
|
135822
135822
|
/**
|
135823
|
-
* @license lucide-react v0.
|
135823
|
+
* @license lucide-react v0.487.0 - ISC
|
135824
135824
|
*
|
135825
135825
|
* This source code is licensed under the ISC license.
|
135826
135826
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -135831,7 +135831,7 @@ const __iconNode$g = [
|
|
135831
135831
|
["path", { d: "M2 2v20", key: "1ivd8o" }]
|
135832
135832
|
], AlignStartVertical = createLucideIcon("align-start-vertical", __iconNode$g);
|
135833
135833
|
/**
|
135834
|
-
* @license lucide-react v0.
|
135834
|
+
* @license lucide-react v0.487.0 - ISC
|
135835
135835
|
*
|
135836
135836
|
* This source code is licensed under the ISC license.
|
135837
135837
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -135842,7 +135842,7 @@ const __iconNode$f = [
|
|
135842
135842
|
["path", { d: "M22 4H2", key: "1b7qnq" }]
|
135843
135843
|
], AlignVerticalSpaceAround = createLucideIcon("align-vertical-space-around", __iconNode$f);
|
135844
135844
|
/**
|
135845
|
-
* @license lucide-react v0.
|
135845
|
+
* @license lucide-react v0.487.0 - ISC
|
135846
135846
|
*
|
135847
135847
|
* This source code is licensed under the ISC license.
|
135848
135848
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -135852,7 +135852,7 @@ const __iconNode$e = [
|
|
135852
135852
|
["path", { d: "M19 12H5", key: "x3x0zl" }]
|
135853
135853
|
], ArrowLeft = createLucideIcon("arrow-left", __iconNode$e);
|
135854
135854
|
/**
|
135855
|
-
* @license lucide-react v0.
|
135855
|
+
* @license lucide-react v0.487.0 - ISC
|
135856
135856
|
*
|
135857
135857
|
* This source code is licensed under the ISC license.
|
135858
135858
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -135862,21 +135862,21 @@ const __iconNode$d = [
|
|
135862
135862
|
["path", { d: "m12 5 7 7-7 7", key: "xquz4c" }]
|
135863
135863
|
], ArrowRight = createLucideIcon("arrow-right", __iconNode$d);
|
135864
135864
|
/**
|
135865
|
-
* @license lucide-react v0.
|
135865
|
+
* @license lucide-react v0.487.0 - ISC
|
135866
135866
|
*
|
135867
135867
|
* This source code is licensed under the ISC license.
|
135868
135868
|
* See the LICENSE file in the root directory of this source tree.
|
135869
135869
|
*/
|
135870
135870
|
const __iconNode$c = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], ChevronLeft = createLucideIcon("chevron-left", __iconNode$c);
|
135871
135871
|
/**
|
135872
|
-
* @license lucide-react v0.
|
135872
|
+
* @license lucide-react v0.487.0 - ISC
|
135873
135873
|
*
|
135874
135874
|
* This source code is licensed under the ISC license.
|
135875
135875
|
* See the LICENSE file in the root directory of this source tree.
|
135876
135876
|
*/
|
135877
135877
|
const __iconNode$b = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], ChevronRight = createLucideIcon("chevron-right", __iconNode$b);
|
135878
135878
|
/**
|
135879
|
-
* @license lucide-react v0.
|
135879
|
+
* @license lucide-react v0.487.0 - ISC
|
135880
135880
|
*
|
135881
135881
|
* This source code is licensed under the ISC license.
|
135882
135882
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -135886,7 +135886,7 @@ const __iconNode$a = [
|
|
135886
135886
|
["path", { d: "m18 17-5-5 5-5", key: "h8a8et" }]
|
135887
135887
|
], ChevronsLeft = createLucideIcon("chevrons-left", __iconNode$a);
|
135888
135888
|
/**
|
135889
|
-
* @license lucide-react v0.
|
135889
|
+
* @license lucide-react v0.487.0 - ISC
|
135890
135890
|
*
|
135891
135891
|
* This source code is licensed under the ISC license.
|
135892
135892
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -135896,7 +135896,7 @@ const __iconNode$9 = [
|
|
135896
135896
|
["path", { d: "m13 17 5-5-5-5", key: "17xmmf" }]
|
135897
135897
|
], ChevronsRight = createLucideIcon("chevrons-right", __iconNode$9);
|
135898
135898
|
/**
|
135899
|
-
* @license lucide-react v0.
|
135899
|
+
* @license lucide-react v0.487.0 - ISC
|
135900
135900
|
*
|
135901
135901
|
* This source code is licensed under the ISC license.
|
135902
135902
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -135907,7 +135907,7 @@ const __iconNode$8 = [
|
|
135907
135907
|
["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
|
135908
135908
|
], CircleAlert = createLucideIcon("circle-alert", __iconNode$8);
|
135909
135909
|
/**
|
135910
|
-
* @license lucide-react v0.
|
135910
|
+
* @license lucide-react v0.487.0 - ISC
|
135911
135911
|
*
|
135912
135912
|
* This source code is licensed under the ISC license.
|
135913
135913
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -135918,7 +135918,7 @@ const __iconNode$7 = [
|
|
135918
135918
|
["circle", { cx: "5", cy: "12", r: "1", key: "1pcz8c" }]
|
135919
135919
|
], Ellipsis = createLucideIcon("ellipsis", __iconNode$7);
|
135920
135920
|
/**
|
135921
|
-
* @license lucide-react v0.
|
135921
|
+
* @license lucide-react v0.487.0 - ISC
|
135922
135922
|
*
|
135923
135923
|
* This source code is licensed under the ISC license.
|
135924
135924
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -135932,14 +135932,14 @@ const __iconNode$6 = [
|
|
135932
135932
|
["circle", { cx: "15", cy: "19", r: "1", key: "f4zoj3" }]
|
135933
135933
|
], GripVertical = createLucideIcon("grip-vertical", __iconNode$6);
|
135934
135934
|
/**
|
135935
|
-
* @license lucide-react v0.
|
135935
|
+
* @license lucide-react v0.487.0 - ISC
|
135936
135936
|
*
|
135937
135937
|
* This source code is licensed under the ISC license.
|
135938
135938
|
* See the LICENSE file in the root directory of this source tree.
|
135939
135939
|
*/
|
135940
135940
|
const __iconNode$5 = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], LoaderCircle = createLucideIcon("loader-circle", __iconNode$5);
|
135941
135941
|
/**
|
135942
|
-
* @license lucide-react v0.
|
135942
|
+
* @license lucide-react v0.487.0 - ISC
|
135943
135943
|
*
|
135944
135944
|
* This source code is licensed under the ISC license.
|
135945
135945
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -135949,7 +135949,7 @@ const __iconNode$4 = [
|
|
135949
135949
|
["path", { d: "M7 11V7a5 5 0 0 1 10 0v4", key: "fwvmzm" }]
|
135950
135950
|
], Lock = createLucideIcon("lock", __iconNode$4);
|
135951
135951
|
/**
|
135952
|
-
* @license lucide-react v0.
|
135952
|
+
* @license lucide-react v0.487.0 - ISC
|
135953
135953
|
*
|
135954
135954
|
* This source code is licensed under the ISC license.
|
135955
135955
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -135960,14 +135960,14 @@ const __iconNode$3 = [
|
|
135960
135960
|
["line", { x1: "4", x2: "20", y1: "18", y2: "18", key: "yk5zj1" }]
|
135961
135961
|
], Menu = createLucideIcon("menu", __iconNode$3);
|
135962
135962
|
/**
|
135963
|
-
* @license lucide-react v0.
|
135963
|
+
* @license lucide-react v0.487.0 - ISC
|
135964
135964
|
*
|
135965
135965
|
* This source code is licensed under the ISC license.
|
135966
135966
|
* See the LICENSE file in the root directory of this source tree.
|
135967
135967
|
*/
|
135968
135968
|
const __iconNode$2 = [["path", { d: "M5 12h14", key: "1ays0h" }]], Minus = createLucideIcon("minus", __iconNode$2);
|
135969
135969
|
/**
|
135970
|
-
* @license lucide-react v0.
|
135970
|
+
* @license lucide-react v0.487.0 - ISC
|
135971
135971
|
*
|
135972
135972
|
* This source code is licensed under the ISC license.
|
135973
135973
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -135977,7 +135977,7 @@ const __iconNode$1 = [
|
|
135977
135977
|
["path", { d: "M12 5v14", key: "s699le" }]
|
135978
135978
|
], Plus = createLucideIcon("plus", __iconNode$1);
|
135979
135979
|
/**
|
135980
|
-
* @license lucide-react v0.
|
135980
|
+
* @license lucide-react v0.487.0 - ISC
|
135981
135981
|
*
|
135982
135982
|
* This source code is licensed under the ISC license.
|
135983
135983
|
* See the LICENSE file in the root directory of this source tree.
|
package/dist/index.umd.js
CHANGED
@@ -138,47 +138,47 @@ endstream`,s}copyBytesInto(s,c){this.updateDict();const u=c;c+=this.dict.copyByt
|
|
138
138
|
`,""),Q=widthOfTextAtSize(Z,y,m,P),Y=heightOfFontAtSize(y,m),J=_*m*W;k===""&&(k=`\r
|
139
139
|
`);let ee=M;S==="center"?ee+=(R-Q)/2:S==="right"&&(ee+=R-Q);let re=E-mm2pt(v.position.y)-F-J;if(v.strikethrough&&Q>0){const V=ee+Q+1,K=re+Y/3;d.drawLine({start:rotatePoint({x:ee,y:K},U,B.angle),end:rotatePoint({x:V,y:K},U,B.angle),thickness:1/12*m,color:C,opacity:O})}if(v.underline&&Q>0){const V=ee+Q+1,K=re-Y/12;d.drawLine({start:rotatePoint({x:ee,y:K},U,B.angle),end:rotatePoint({x:V,y:K},U,B.angle),thickness:1/12*m,color:C,opacity:O})}if(B.angle!==0){const V=rotatePoint({x:ee,y:re},U,B.angle);ee=V.x,re=V.y}let ae=P;if(S==="justify"&&k.slice(-1)!==`
|
140
140
|
`){const V=N.segment(Z)[Symbol.iterator](),K=Array.from(V).length;ae+=(R-Q)/K}d.pushOperators(u.setCharacterSpacing(ae)),d.drawText(Z,{x:ee,y:re,rotate:B,size:m,color:C,lineHeight:_*m,font:I,opacity:O})})};/**
|
141
|
-
* @license lucide v0.
|
141
|
+
* @license lucide v0.487.0 - ISC
|
142
142
|
*
|
143
143
|
* This source code is licensed under the ISC license.
|
144
144
|
* See the LICENSE file in the root directory of this source tree.
|
145
145
|
*/const AlignCenter=[["path",{d:"M17 12H7"}],["path",{d:"M19 18H5"}],["path",{d:"M21 6H3"}]];/**
|
146
|
-
* @license lucide v0.
|
146
|
+
* @license lucide v0.487.0 - ISC
|
147
147
|
*
|
148
148
|
* This source code is licensed under the ISC license.
|
149
149
|
* See the LICENSE file in the root directory of this source tree.
|
150
150
|
*/const AlignJustify=[["path",{d:"M3 12h18"}],["path",{d:"M3 18h18"}],["path",{d:"M3 6h18"}]];/**
|
151
|
-
* @license lucide v0.
|
151
|
+
* @license lucide v0.487.0 - ISC
|
152
152
|
*
|
153
153
|
* This source code is licensed under the ISC license.
|
154
154
|
* See the LICENSE file in the root directory of this source tree.
|
155
155
|
*/const AlignLeft=[["path",{d:"M15 12H3"}],["path",{d:"M17 18H3"}],["path",{d:"M21 6H3"}]];/**
|
156
|
-
* @license lucide v0.
|
156
|
+
* @license lucide v0.487.0 - ISC
|
157
157
|
*
|
158
158
|
* This source code is licensed under the ISC license.
|
159
159
|
* See the LICENSE file in the root directory of this source tree.
|
160
160
|
*/const AlignRight=[["path",{d:"M21 12H9"}],["path",{d:"M21 18H7"}],["path",{d:"M21 6H3"}]];/**
|
161
|
-
* @license lucide v0.
|
161
|
+
* @license lucide v0.487.0 - ISC
|
162
162
|
*
|
163
163
|
* This source code is licensed under the ISC license.
|
164
164
|
* See the LICENSE file in the root directory of this source tree.
|
165
165
|
*/const ArrowDownToLine=[["path",{d:"M12 17V3"}],["path",{d:"m6 11 6 6 6-6"}],["path",{d:"M19 21H5"}]];/**
|
166
|
-
* @license lucide v0.
|
166
|
+
* @license lucide v0.487.0 - ISC
|
167
167
|
*
|
168
168
|
* This source code is licensed under the ISC license.
|
169
169
|
* See the LICENSE file in the root directory of this source tree.
|
170
170
|
*/const ArrowUpToLine=[["path",{d:"M5 3h14"}],["path",{d:"m18 13-6-6-6 6"}],["path",{d:"M12 7v14"}]];/**
|
171
|
-
* @license lucide v0.
|
171
|
+
* @license lucide v0.487.0 - ISC
|
172
172
|
*
|
173
173
|
* This source code is licensed under the ISC license.
|
174
174
|
* See the LICENSE file in the root directory of this source tree.
|
175
175
|
*/const Strikethrough=[["path",{d:"M16 4H9a3 3 0 0 0-2.83 4"}],["path",{d:"M14 12a4 4 0 0 1 0 8H6"}],["line",{x1:"4",x2:"20",y1:"12",y2:"12"}]];/**
|
176
|
-
* @license lucide v0.
|
176
|
+
* @license lucide v0.487.0 - ISC
|
177
177
|
*
|
178
178
|
* This source code is licensed under the ISC license.
|
179
179
|
* See the LICENSE file in the root directory of this source tree.
|
180
180
|
*/const TextCursorInput=[["path",{d:"M5 4h1a3 3 0 0 1 3 3 3 3 0 0 1 3-3h1"}],["path",{d:"M13 20h-1a3 3 0 0 1-3-3 3 3 0 0 1-3 3H5"}],["path",{d:"M5 16H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h1"}],["path",{d:"M13 8h7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-7"}],["path",{d:"M9 7v10"}]];/**
|
181
|
-
* @license lucide v0.
|
181
|
+
* @license lucide v0.487.0 - ISC
|
182
182
|
*
|
183
183
|
* This source code is licensed under the ISC license.
|
184
184
|
* See the LICENSE file in the root directory of this source tree.
|
@@ -636,137 +636,137 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
636
636
|
${c}-download,
|
637
637
|
${c}-delete
|
638
638
|
`]:{zIndex:10,width:u,margin:`0 ${unit$1(a.marginXXS)}`,fontSize:u,cursor:"pointer",transition:`all ${a.motionDurationSlow}`,color:d,"&:hover":{color:d},svg:{verticalAlign:"baseline"}}},[`${A}-thumbnail, ${A}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${A}-name`]:{display:"none",textAlign:"center"},[`${A}-file + ${A}-name`]:{position:"absolute",bottom:a.margin,display:"block",width:`calc(100% - ${unit$1(p(a.paddingXS).mul(2).equal())})`},[`${A}-uploading`]:{[`&${A}`]:{backgroundColor:a.colorFillAlter},[`&::before, ${c}-eye, ${c}-download, ${c}-delete`]:{display:"none"}},[`${A}-progress`]:{bottom:a.marginXL,width:`calc(100% - ${unit$1(p(a.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${s}-wrapper${s}-picture-circle-wrapper`]:{[`${s}${s}-select`]:{borderRadius:"50%"}}}},genRtlStyle=a=>{const{componentCls:s}=a;return{[`${s}-rtl`]:{direction:"rtl"}}},genBaseStyle=a=>{const{componentCls:s,colorTextDisabled:c}=a;return{[`${s}-wrapper`]:Object.assign(Object.assign({},resetComponent(a)),{[s]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${s}-select`]:{display:"inline-block"},[`${s}-hidden`]:{display:"none"},[`${s}-disabled`]:{color:c,cursor:"not-allowed"}})}},prepareComponentToken=a=>({actionsColor:a.colorTextDescription}),useStyle=genStyleHooks("Upload",a=>{const{fontSizeHeading3:s,fontHeight:c,lineWidth:u,controlHeightLG:d,calc:p}=a,v=merge(a,{uploadThumbnailSize:p(s).mul(2).equal(),uploadProgressOffset:p(p(c).div(2)).add(u).equal(),uploadPicCardSize:p(d).mul(2.55).equal()});return[genBaseStyle(v),genDraggerStyle(v),genPictureStyle(v),genPictureCardStyle(v),genListStyle(v),genMotionStyle(v),genRtlStyle(v),genCollapseMotion(v)]},prepareComponentToken);function file2Obj(a){return Object.assign(Object.assign({},a),{lastModified:a.lastModified,lastModifiedDate:a.lastModifiedDate,name:a.name,size:a.size,type:a.type,uid:a.uid,percent:0,originFileObj:a})}function updateFileList(a,s){const c=_toConsumableArray$e(s),u=c.findIndex(d=>{let{uid:p}=d;return p===a.uid});return u===-1?c.push(a):c[u]=a,c}function getFileItem(a,s){const c=a.uid!==void 0?"uid":"name";return s.filter(u=>u[c]===a[c])[0]}function removeFileItem(a,s){const c=a.uid!==void 0?"uid":"name",u=s.filter(d=>d[c]!==a[c]);return u.length===s.length?null:u}const extname=function(){const s=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),u=s[s.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(u)||[""])[0]},isImageFileType=a=>a.indexOf("image/")===0,isImageUrl=a=>{if(a.type&&!a.thumbUrl)return isImageFileType(a.type);const s=a.thumbUrl||a.url||"",c=extname(s);return/^data:image\//.test(s)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(c)?!0:!(/^data:/.test(s)||c)},MEASURE_SIZE=200;function previewImage(a){return new Promise(s=>{if(!a.type||!isImageFileType(a.type)){s("");return}const c=document.createElement("canvas");c.width=MEASURE_SIZE,c.height=MEASURE_SIZE,c.style.cssText=`position: fixed; left: 0; top: 0; width: ${MEASURE_SIZE}px; height: ${MEASURE_SIZE}px; z-index: 9999; display: none;`,document.body.appendChild(c);const u=c.getContext("2d"),d=new Image;if(d.onload=()=>{const{width:p,height:v}=d;let A=MEASURE_SIZE,b=MEASURE_SIZE,g=0,x=0;p>v?(b=v*(MEASURE_SIZE/p),x=-(b-A)/2):(A=p*(MEASURE_SIZE/v),g=-(A-b)/2),u.drawImage(d,g,x,A,b);const y=c.toDataURL();document.body.removeChild(c),window.URL.revokeObjectURL(d.src),s(y)},d.crossOrigin="anonymous",a.type.startsWith("image/svg+xml")){const p=new FileReader;p.onload=()=>{p.result&&typeof p.result=="string"&&(d.src=p.result)},p.readAsDataURL(a)}else if(a.type.startsWith("image/gif")){const p=new FileReader;p.onload=()=>{p.result&&s(p.result)},p.readAsDataURL(a)}else d.src=window.URL.createObjectURL(a)})}const ListItem=reactExports.forwardRef((a,s)=>{let{prefixCls:c,className:u,style:d,locale:p,listType:v,file:A,items:b,progress:g,iconRender:x,actionIconRender:y,itemRender:f,isImgUrl:m,showPreviewIcon:C,showRemoveIcon:S,showDownloadIcon:w,previewIcon:_,removeIcon:P,downloadIcon:$,extra:I,onPreview:E,onDownload:R,onClose:T}=a;var B,M;const{status:D}=A,[O,H]=reactExports.useState(D);reactExports.useEffect(()=>{D!=="removed"&&H(D)},[D]);const[j,q]=reactExports.useState(!1);reactExports.useEffect(()=>{const ge=setTimeout(()=>{q(!0)},300);return()=>{clearTimeout(ge)}},[]);const L=x(A);let F=reactExports.createElement("div",{className:`${c}-icon`},L);if(v==="picture"||v==="picture-card"||v==="picture-circle")if(O==="uploading"||!A.thumbUrl&&!A.url){const ge=classnames(`${c}-list-item-thumbnail`,{[`${c}-list-item-file`]:O!=="uploading"});F=reactExports.createElement("div",{className:ge},L)}else{const ge=m!=null&&m(A)?reactExports.createElement("img",{src:A.thumbUrl||A.url,alt:A.name,className:`${c}-list-item-image`,crossOrigin:A.crossOrigin}):L,Se=classnames(`${c}-list-item-thumbnail`,{[`${c}-list-item-file`]:m&&!m(A)});F=reactExports.createElement("a",{className:Se,onClick:ve=>E(A,ve),href:A.url||A.thumbUrl,target:"_blank",rel:"noopener noreferrer"},ge)}const U=classnames(`${c}-list-item`,`${c}-list-item-${O}`),N=typeof A.linkProps=="string"?JSON.parse(A.linkProps):A.linkProps,k=(typeof S=="function"?S(A):S)?y((typeof P=="function"?P(A):P)||reactExports.createElement(RefIcon$f,null),()=>T(A),c,p.removeFile,!0):null,W=(typeof w=="function"?w(A):w)&&O==="done"?y((typeof $=="function"?$(A):$)||reactExports.createElement(RefIcon$e,null),()=>R(A),c,p.downloadFile):null,Z=v!=="picture-card"&&v!=="picture-circle"&&reactExports.createElement("span",{key:"download-delete",className:classnames(`${c}-list-item-actions`,{picture:v==="picture"})},W,k),Q=typeof I=="function"?I(A):I,Y=Q&&reactExports.createElement("span",{className:`${c}-list-item-extra`},Q),J=classnames(`${c}-list-item-name`),ee=A.url?reactExports.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:J,title:A.name},N,{href:A.url,onClick:ge=>E(A,ge)}),A.name,Y):reactExports.createElement("span",{key:"view",className:J,onClick:ge=>E(A,ge),title:A.name},A.name,Y),re=(typeof C=="function"?C(A):C)&&(A.url||A.thumbUrl)?reactExports.createElement("a",{href:A.url||A.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:ge=>E(A,ge),title:p.previewFile},typeof _=="function"?_(A):_||reactExports.createElement(RefIcon$s,null)):null,ae=(v==="picture-card"||v==="picture-circle")&&O!=="uploading"&&reactExports.createElement("span",{className:`${c}-list-item-actions`},re,O==="done"&&W,k),{getPrefixCls:V}=reactExports.useContext(ConfigContext$1),K=V(),te=reactExports.createElement("div",{className:U},F,ee,Z,ae,j&&reactExports.createElement(CSSMotion,{motionName:`${K}-fade`,visible:O==="uploading",motionDeadline:2e3},ge=>{let{className:Se}=ge;const ve="percent"in A?reactExports.createElement(Progress,Object.assign({},g,{type:"line",percent:A.percent,"aria-label":A["aria-label"],"aria-labelledby":A["aria-labelledby"]})):null;return reactExports.createElement("div",{className:classnames(`${c}-list-item-progress`,Se)},ve)})),ie=A.response&&typeof A.response=="string"?A.response:((B=A.error)===null||B===void 0?void 0:B.statusText)||((M=A.error)===null||M===void 0?void 0:M.message)||p.uploadError,ce=O==="error"?reactExports.createElement(Tooltip,{title:ie,getPopupContainer:ge=>ge.parentNode},te):te;return reactExports.createElement("div",{className:classnames(`${c}-list-item-container`,u),style:d,ref:s},f?f(ce,A,b,{download:R.bind(null,A),preview:E.bind(null,A),remove:T.bind(null,A)}):ce)}),InternalUploadList=(a,s)=>{const{listType:c="text",previewFile:u=previewImage,onPreview:d,onDownload:p,onRemove:v,locale:A,iconRender:b,isImageUrl:g=isImageUrl,prefixCls:x,items:y=[],showPreviewIcon:f=!0,showRemoveIcon:m=!0,showDownloadIcon:C=!1,removeIcon:S,previewIcon:w,downloadIcon:_,extra:P,progress:$={size:[-1,2],showInfo:!1},appendAction:I,appendActionVisible:E=!0,itemRender:R,disabled:T}=a,B=useForceUpdate(),[M,D]=reactExports.useState(!1),O=["picture-card","picture-circle"].includes(c);reactExports.useEffect(()=>{c.startsWith("picture")&&(y||[]).forEach(Y=>{!(Y.originFileObj instanceof File||Y.originFileObj instanceof Blob)||Y.thumbUrl!==void 0||(Y.thumbUrl="",u==null||u(Y.originFileObj).then(J=>{Y.thumbUrl=J||"",B()}))})},[c,y,u]),reactExports.useEffect(()=>{D(!0)},[]);const H=(Y,J)=>{if(d)return J==null||J.preventDefault(),d(Y)},j=Y=>{typeof p=="function"?p(Y):Y.url&&window.open(Y.url)},q=Y=>{v==null||v(Y)},L=Y=>{if(b)return b(Y,c);const J=Y.status==="uploading";if(c.startsWith("picture")){const ee=c==="picture"?reactExports.createElement(RefIcon$F,null):A.uploading,re=g!=null&&g(Y)?reactExports.createElement(RefIcon$3,null):reactExports.createElement(RefIcon$a,null);return J?ee:re}return J?reactExports.createElement(RefIcon$F,null):reactExports.createElement(RefIcon$4,null)},F=(Y,J,ee,re,ae)=>{const V={type:"text",size:"small",title:re,onClick:K=>{var te,ie;J(),reactExports.isValidElement(Y)&&((ie=(te=Y.props).onClick)===null||ie===void 0||ie.call(te,K))},className:`${ee}-list-item-action`};return ae&&(V.disabled=T),reactExports.isValidElement(Y)?reactExports.createElement(Button$1,Object.assign({},V,{icon:cloneElement(Y,Object.assign(Object.assign({},Y.props),{onClick:()=>{}}))})):reactExports.createElement(Button$1,Object.assign({},V),reactExports.createElement("span",null,Y))};reactExports.useImperativeHandle(s,()=>({handlePreview:H,handleDownload:j}));const{getPrefixCls:U}=reactExports.useContext(ConfigContext$1),N=U("upload",x),k=U(),W=classnames(`${N}-list`,`${N}-list-${c}`),Z=reactExports.useMemo(()=>omit(initCollapseMotion(k),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[k]),Q=Object.assign(Object.assign({},O?{}:Z),{motionDeadline:2e3,motionName:`${N}-${O?"animate-inline":"animate"}`,keys:_toConsumableArray$e(y.map(Y=>({key:Y.uid,file:Y}))),motionAppear:M});return reactExports.createElement("div",{className:W},reactExports.createElement(CSSMotionList,Object.assign({},Q,{component:!1}),Y=>{let{key:J,file:ee,className:re,style:ae}=Y;return reactExports.createElement(ListItem,{key:J,locale:A,prefixCls:N,className:re,style:ae,file:ee,items:y,progress:$,listType:c,isImgUrl:g,showPreviewIcon:f,showRemoveIcon:m,showDownloadIcon:C,removeIcon:S,previewIcon:w,downloadIcon:_,extra:P,iconRender:L,actionIconRender:F,itemRender:R,onPreview:H,onDownload:j,onClose:q})}),I&&reactExports.createElement(CSSMotion,Object.assign({},Q,{visible:E,forceRender:!0}),Y=>{let{className:J,style:ee}=Y;return cloneElement(I,re=>({className:classnames(re.className,J),style:Object.assign(Object.assign(Object.assign({},ee),{pointerEvents:J?"none":void 0}),re.style)}))}))},UploadList=reactExports.forwardRef(InternalUploadList);var __awaiter=function(a,s,c,u){function d(p){return p instanceof c?p:new c(function(v){v(p)})}return new(c||(c=Promise))(function(p,v){function A(x){try{g(u.next(x))}catch(y){v(y)}}function b(x){try{g(u.throw(x))}catch(y){v(y)}}function g(x){x.done?p(x.value):d(x.value).then(A,b)}g((u=u.apply(a,[])).next())})};const LIST_IGNORE=`__LIST_IGNORE_${Date.now()}__`,InternalUpload=(a,s)=>{const{fileList:c,defaultFileList:u,onRemove:d,showUploadList:p=!0,listType:v="text",onPreview:A,onDownload:b,onChange:g,onDrop:x,previewFile:y,disabled:f,locale:m,iconRender:C,isImageUrl:S,progress:w,prefixCls:_,className:P,type:$="select",children:I,style:E,itemRender:R,maxCount:T,data:B={},multiple:M=!1,hasControlInside:D=!0,action:O="",accept:H="",supportServerRender:j=!0,rootClassName:q}=a,L=reactExports.useContext(DisabledContext),F=f??L,[U,N]=useMergedState(u||[],{value:c,postState:Ne=>Ne??[]}),[k,W]=reactExports.useState("drop"),Z=reactExports.useRef(null),Q=reactExports.useRef(null);reactExports.useMemo(()=>{const Ne=Date.now();(c||[]).forEach((Me,Fe)=>{!Me.uid&&!Object.isFrozen(Me)&&(Me.uid=`__AUTO__${Ne}_${Fe}__`)})},[c]);const Y=(Ne,Me,Fe)=>{let Ie=_toConsumableArray$e(Me),je=!1;T===1?Ie=Ie.slice(-1):T&&(je=Ie.length>T,Ie=Ie.slice(0,T)),reactDomExports.flushSync(()=>{N(Ie)});const Ye={file:Ne,fileList:Ie};Fe&&(Ye.event=Fe),(!je||Ne.status==="removed"||Ie.some(Te=>Te.uid===Ne.uid))&&reactDomExports.flushSync(()=>{g==null||g(Ye)})},J=(Ne,Me)=>__awaiter(void 0,void 0,void 0,function*(){const{beforeUpload:Fe,transformFile:Ie}=a;let je=Ne;if(Fe){const Ye=yield Fe(Ne,Me);if(Ye===!1)return!1;if(delete Ne[LIST_IGNORE],Ye===LIST_IGNORE)return Object.defineProperty(Ne,LIST_IGNORE,{value:!0,configurable:!0}),!1;typeof Ye=="object"&&Ye&&(je=Ye)}return Ie&&(je=yield Ie(je)),je}),ee=Ne=>{const Me=Ne.filter(je=>!je.file[LIST_IGNORE]);if(!Me.length)return;const Fe=Me.map(je=>file2Obj(je.file));let Ie=_toConsumableArray$e(U);Fe.forEach(je=>{Ie=updateFileList(je,Ie)}),Fe.forEach((je,Ye)=>{let Te=je;if(Me[Ye].parsedFile)je.status="uploading";else{const{originFileObj:ke}=je;let De;try{De=new File([ke],ke.name,{type:ke.type})}catch{De=new Blob([ke],{type:ke.type}),De.name=ke.name,De.lastModifiedDate=new Date,De.lastModified=new Date().getTime()}De.uid=je.uid,Te=De}Y(Te,Ie)})},re=(Ne,Me,Fe)=>{try{typeof Ne=="string"&&(Ne=JSON.parse(Ne))}catch{}if(!getFileItem(Me,U))return;const Ie=file2Obj(Me);Ie.status="done",Ie.percent=100,Ie.response=Ne,Ie.xhr=Fe;const je=updateFileList(Ie,U);Y(Ie,je)},ae=(Ne,Me)=>{if(!getFileItem(Me,U))return;const Fe=file2Obj(Me);Fe.status="uploading",Fe.percent=Ne.percent;const Ie=updateFileList(Fe,U);Y(Fe,Ie,Ne)},V=(Ne,Me,Fe)=>{if(!getFileItem(Fe,U))return;const Ie=file2Obj(Fe);Ie.error=Ne,Ie.response=Me,Ie.status="error";const je=updateFileList(Ie,U);Y(Ie,je)},K=Ne=>{let Me;Promise.resolve(typeof d=="function"?d(Ne):d).then(Fe=>{var Ie;if(Fe===!1)return;const je=removeFileItem(Ne,U);je&&(Me=Object.assign(Object.assign({},Ne),{status:"removed"}),U==null||U.forEach(Ye=>{const Te=Me.uid!==void 0?"uid":"name";Ye[Te]===Me[Te]&&!Object.isFrozen(Ye)&&(Ye.status="removed")}),(Ie=Z.current)===null||Ie===void 0||Ie.abort(Me),Y(Me,je))})},te=Ne=>{W(Ne.type),Ne.type==="drop"&&(x==null||x(Ne))};reactExports.useImperativeHandle(s,()=>({onBatchStart:ee,onSuccess:re,onProgress:ae,onError:V,fileList:U,upload:Z.current,nativeElement:Q.current}));const{getPrefixCls:ie,direction:ce,upload:ge}=reactExports.useContext(ConfigContext$1),Se=ie("upload",_),ve=Object.assign(Object.assign({onBatchStart:ee,onError:V,onProgress:ae,onSuccess:re},a),{data:B,multiple:M,action:O,accept:H,supportServerRender:j,prefixCls:Se,disabled:F,beforeUpload:J,onChange:void 0,hasControlInside:D});delete ve.className,delete ve.style,(!I||F)&&delete ve.id;const me=`${Se}-wrapper`,[fe,se,oe]=useStyle(Se,me),[de]=useLocale$1("Upload",localeValues.Upload),{showRemoveIcon:le,showPreviewIcon:xe,showDownloadIcon:Ce,removeIcon:$e,previewIcon:we,downloadIcon:Ee,extra:Ae}=typeof p=="boolean"?{}:p,pe=typeof le>"u"?!F:le,he=(Ne,Me)=>p?reactExports.createElement(UploadList,{prefixCls:Se,listType:v,items:U,previewFile:y,onPreview:A,onDownload:b,onRemove:K,showRemoveIcon:pe,showPreviewIcon:xe,showDownloadIcon:Ce,removeIcon:$e,previewIcon:we,downloadIcon:Ee,iconRender:C,extra:Ae,locale:Object.assign(Object.assign({},de),m),isImageUrl:S,progress:w,appendAction:Ne,appendActionVisible:Me,itemRender:R,disabled:F}):Ne,_e=classnames(me,P,q,se,oe,ge==null?void 0:ge.className,{[`${Se}-rtl`]:ce==="rtl",[`${Se}-picture-card-wrapper`]:v==="picture-card",[`${Se}-picture-circle-wrapper`]:v==="picture-circle"}),ye=Object.assign(Object.assign({},ge==null?void 0:ge.style),E);if($==="drag"){const Ne=classnames(se,Se,`${Se}-drag`,{[`${Se}-drag-uploading`]:U.some(Me=>Me.status==="uploading"),[`${Se}-drag-hover`]:k==="dragover",[`${Se}-disabled`]:F,[`${Se}-rtl`]:ce==="rtl"});return fe(reactExports.createElement("span",{className:_e,ref:Q},reactExports.createElement("div",{className:Ne,style:ye,onDrop:te,onDragOver:te,onDragLeave:te},reactExports.createElement(Upload$2,Object.assign({},ve,{ref:Z,className:`${Se}-btn`}),reactExports.createElement("div",{className:`${Se}-drag-container`},I))),he()))}const Pe=classnames(Se,`${Se}-select`,{[`${Se}-disabled`]:F,[`${Se}-hidden`]:!I}),Le=reactExports.createElement("div",{className:Pe},reactExports.createElement(Upload$2,Object.assign({},ve,{ref:Z})));return fe(v==="picture-card"||v==="picture-circle"?reactExports.createElement("span",{className:_e,ref:Q},he(Le,!!I)):reactExports.createElement("span",{className:_e,ref:Q},Le,he()))},Upload$1=reactExports.forwardRef(InternalUpload);var __rest$3=function(a,s){var c={};for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&s.indexOf(u)<0&&(c[u]=a[u]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,u=Object.getOwnPropertySymbols(a);d<u.length;d++)s.indexOf(u[d])<0&&Object.prototype.propertyIsEnumerable.call(a,u[d])&&(c[u[d]]=a[u[d]]);return c};const Dragger=reactExports.forwardRef((a,s)=>{var{style:c,height:u,hasControlInside:d=!1}=a,p=__rest$3(a,["style","height","hasControlInside"]);return reactExports.createElement(Upload$1,Object.assign({ref:s,hasControlInside:d},p,{type:"drag",style:Object.assign(Object.assign({},c),{height:u})}))}),Upload=Upload$1;Upload.Dragger=Dragger,Upload.LIST_IGNORE=LIST_IGNORE;/**
|
639
|
-
* @license lucide-react v0.
|
639
|
+
* @license lucide-react v0.487.0 - ISC
|
640
640
|
*
|
641
641
|
* This source code is licensed under the ISC license.
|
642
642
|
* See the LICENSE file in the root directory of this source tree.
|
643
643
|
*/const toKebabCase=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),toCamelCase=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(s,c,u)=>u?u.toUpperCase():c.toLowerCase()),toPascalCase=a=>{const s=toCamelCase(a);return s.charAt(0).toUpperCase()+s.slice(1)},mergeClasses=(...a)=>a.filter((s,c,u)=>!!s&&s.trim()!==""&&u.indexOf(s)===c).join(" ").trim();/**
|
644
|
-
* @license lucide-react v0.
|
644
|
+
* @license lucide-react v0.487.0 - ISC
|
645
645
|
*
|
646
646
|
* This source code is licensed under the ISC license.
|
647
647
|
* See the LICENSE file in the root directory of this source tree.
|
648
648
|
*/var defaultAttributes$1={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
649
|
-
* @license lucide-react v0.
|
649
|
+
* @license lucide-react v0.487.0 - ISC
|
650
650
|
*
|
651
651
|
* This source code is licensed under the ISC license.
|
652
652
|
* See the LICENSE file in the root directory of this source tree.
|
653
653
|
*/const Icon=reactExports.forwardRef(({color:a="currentColor",size:s=24,strokeWidth:c=2,absoluteStrokeWidth:u,className:d="",children:p,iconNode:v,...A},b)=>reactExports.createElement("svg",{ref:b,...defaultAttributes$1,width:s,height:s,stroke:a,strokeWidth:u?Number(c)*24/Number(s):c,className:mergeClasses("lucide",d),...A},[...v.map(([g,x])=>reactExports.createElement(g,x)),...Array.isArray(p)?p:[p]]));/**
|
654
|
-
* @license lucide-react v0.
|
654
|
+
* @license lucide-react v0.487.0 - ISC
|
655
655
|
*
|
656
656
|
* This source code is licensed under the ISC license.
|
657
657
|
* See the LICENSE file in the root directory of this source tree.
|
658
658
|
*/const createLucideIcon=(a,s)=>{const c=reactExports.forwardRef(({className:u,...d},p)=>reactExports.createElement(Icon,{ref:p,iconNode:s,className:mergeClasses(`lucide-${toKebabCase(toPascalCase(a))}`,`lucide-${a}`,u),...d}));return c.displayName=toPascalCase(a),c};/**
|
659
|
-
* @license lucide-react v0.
|
659
|
+
* @license lucide-react v0.487.0 - ISC
|
660
660
|
*
|
661
661
|
* This source code is licensed under the ISC license.
|
662
662
|
* See the LICENSE file in the root directory of this source tree.
|
663
663
|
*/const __iconNode$m=[["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"M10 16v4a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-4",key:"11f1s0"}],["path",{d:"M10 8V4a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v4",key:"t14dx9"}],["path",{d:"M20 16v1a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2v-1",key:"1w07xs"}],["path",{d:"M14 8V7c0-1.1.9-2 2-2h2a2 2 0 0 1 2 2v1",key:"1apec2"}]],AlignCenterHorizontal=createLucideIcon("align-center-horizontal",__iconNode$m);/**
|
664
|
-
* @license lucide-react v0.
|
664
|
+
* @license lucide-react v0.487.0 - ISC
|
665
665
|
*
|
666
666
|
* This source code is licensed under the ISC license.
|
667
667
|
* See the LICENSE file in the root directory of this source tree.
|
668
668
|
*/const __iconNode$l=[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"M8 10H4a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h4",key:"14d6g8"}],["path",{d:"M16 10h4a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-4",key:"1e2lrw"}],["path",{d:"M8 20H7a2 2 0 0 1-2-2v-2c0-1.1.9-2 2-2h1",key:"1fkdwx"}],["path",{d:"M16 14h1a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-1",key:"1euafb"}]],AlignCenterVertical=createLucideIcon("align-center-vertical",__iconNode$l);/**
|
669
|
-
* @license lucide-react v0.
|
669
|
+
* @license lucide-react v0.487.0 - ISC
|
670
670
|
*
|
671
671
|
* This source code is licensed under the ISC license.
|
672
672
|
* See the LICENSE file in the root directory of this source tree.
|
673
673
|
*/const __iconNode$k=[["rect",{width:"6",height:"16",x:"4",y:"2",rx:"2",key:"z5wdxg"}],["rect",{width:"6",height:"9",x:"14",y:"9",rx:"2",key:"um7a8w"}],["path",{d:"M22 22H2",key:"19qnx5"}]],AlignEndHorizontal=createLucideIcon("align-end-horizontal",__iconNode$k);/**
|
674
|
-
* @license lucide-react v0.
|
674
|
+
* @license lucide-react v0.487.0 - ISC
|
675
675
|
*
|
676
676
|
* This source code is licensed under the ISC license.
|
677
677
|
* See the LICENSE file in the root directory of this source tree.
|
678
678
|
*/const __iconNode$j=[["rect",{width:"16",height:"6",x:"2",y:"4",rx:"2",key:"10wcwx"}],["rect",{width:"9",height:"6",x:"9",y:"14",rx:"2",key:"4p5bwg"}],["path",{d:"M22 22V2",key:"12ipfv"}]],AlignEndVertical=createLucideIcon("align-end-vertical",__iconNode$j);/**
|
679
|
-
* @license lucide-react v0.
|
679
|
+
* @license lucide-react v0.487.0 - ISC
|
680
680
|
*
|
681
681
|
* This source code is licensed under the ISC license.
|
682
682
|
* See the LICENSE file in the root directory of this source tree.
|
683
683
|
*/const __iconNode$i=[["rect",{width:"6",height:"10",x:"9",y:"7",rx:"2",key:"yn7j0q"}],["path",{d:"M4 22V2",key:"tsjzd3"}],["path",{d:"M20 22V2",key:"1bnhr8"}]],AlignHorizontalSpaceAround=createLucideIcon("align-horizontal-space-around",__iconNode$i);/**
|
684
|
-
* @license lucide-react v0.
|
684
|
+
* @license lucide-react v0.487.0 - ISC
|
685
685
|
*
|
686
686
|
* This source code is licensed under the ISC license.
|
687
687
|
* See the LICENSE file in the root directory of this source tree.
|
688
688
|
*/const __iconNode$h=[["rect",{width:"6",height:"16",x:"4",y:"6",rx:"2",key:"1n4dg1"}],["rect",{width:"6",height:"9",x:"14",y:"6",rx:"2",key:"17khns"}],["path",{d:"M22 2H2",key:"fhrpnj"}]],AlignStartHorizontal=createLucideIcon("align-start-horizontal",__iconNode$h);/**
|
689
|
-
* @license lucide-react v0.
|
689
|
+
* @license lucide-react v0.487.0 - ISC
|
690
690
|
*
|
691
691
|
* This source code is licensed under the ISC license.
|
692
692
|
* See the LICENSE file in the root directory of this source tree.
|
693
693
|
*/const __iconNode$g=[["rect",{width:"9",height:"6",x:"6",y:"14",rx:"2",key:"lpm2y7"}],["rect",{width:"16",height:"6",x:"6",y:"4",rx:"2",key:"rdj6ps"}],["path",{d:"M2 2v20",key:"1ivd8o"}]],AlignStartVertical=createLucideIcon("align-start-vertical",__iconNode$g);/**
|
694
|
-
* @license lucide-react v0.
|
694
|
+
* @license lucide-react v0.487.0 - ISC
|
695
695
|
*
|
696
696
|
* This source code is licensed under the ISC license.
|
697
697
|
* See the LICENSE file in the root directory of this source tree.
|
698
698
|
*/const __iconNode$f=[["rect",{width:"10",height:"6",x:"7",y:"9",rx:"2",key:"b1zbii"}],["path",{d:"M22 20H2",key:"1p1f7z"}],["path",{d:"M22 4H2",key:"1b7qnq"}]],AlignVerticalSpaceAround=createLucideIcon("align-vertical-space-around",__iconNode$f);/**
|
699
|
-
* @license lucide-react v0.
|
699
|
+
* @license lucide-react v0.487.0 - ISC
|
700
700
|
*
|
701
701
|
* This source code is licensed under the ISC license.
|
702
702
|
* See the LICENSE file in the root directory of this source tree.
|
703
703
|
*/const __iconNode$e=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],ArrowLeft=createLucideIcon("arrow-left",__iconNode$e);/**
|
704
|
-
* @license lucide-react v0.
|
704
|
+
* @license lucide-react v0.487.0 - ISC
|
705
705
|
*
|
706
706
|
* This source code is licensed under the ISC license.
|
707
707
|
* See the LICENSE file in the root directory of this source tree.
|
708
708
|
*/const __iconNode$d=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],ArrowRight=createLucideIcon("arrow-right",__iconNode$d);/**
|
709
|
-
* @license lucide-react v0.
|
709
|
+
* @license lucide-react v0.487.0 - ISC
|
710
710
|
*
|
711
711
|
* This source code is licensed under the ISC license.
|
712
712
|
* See the LICENSE file in the root directory of this source tree.
|
713
713
|
*/const __iconNode$c=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],ChevronLeft=createLucideIcon("chevron-left",__iconNode$c);/**
|
714
|
-
* @license lucide-react v0.
|
714
|
+
* @license lucide-react v0.487.0 - ISC
|
715
715
|
*
|
716
716
|
* This source code is licensed under the ISC license.
|
717
717
|
* See the LICENSE file in the root directory of this source tree.
|
718
718
|
*/const __iconNode$b=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ChevronRight=createLucideIcon("chevron-right",__iconNode$b);/**
|
719
|
-
* @license lucide-react v0.
|
719
|
+
* @license lucide-react v0.487.0 - ISC
|
720
720
|
*
|
721
721
|
* This source code is licensed under the ISC license.
|
722
722
|
* See the LICENSE file in the root directory of this source tree.
|
723
723
|
*/const __iconNode$a=[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]],ChevronsLeft=createLucideIcon("chevrons-left",__iconNode$a);/**
|
724
|
-
* @license lucide-react v0.
|
724
|
+
* @license lucide-react v0.487.0 - ISC
|
725
725
|
*
|
726
726
|
* This source code is licensed under the ISC license.
|
727
727
|
* See the LICENSE file in the root directory of this source tree.
|
728
728
|
*/const __iconNode$9=[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]],ChevronsRight=createLucideIcon("chevrons-right",__iconNode$9);/**
|
729
|
-
* @license lucide-react v0.
|
729
|
+
* @license lucide-react v0.487.0 - ISC
|
730
730
|
*
|
731
731
|
* This source code is licensed under the ISC license.
|
732
732
|
* See the LICENSE file in the root directory of this source tree.
|
733
733
|
*/const __iconNode$8=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],CircleAlert=createLucideIcon("circle-alert",__iconNode$8);/**
|
734
|
-
* @license lucide-react v0.
|
734
|
+
* @license lucide-react v0.487.0 - ISC
|
735
735
|
*
|
736
736
|
* This source code is licensed under the ISC license.
|
737
737
|
* See the LICENSE file in the root directory of this source tree.
|
738
738
|
*/const __iconNode$7=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],Ellipsis=createLucideIcon("ellipsis",__iconNode$7);/**
|
739
|
-
* @license lucide-react v0.
|
739
|
+
* @license lucide-react v0.487.0 - ISC
|
740
740
|
*
|
741
741
|
* This source code is licensed under the ISC license.
|
742
742
|
* See the LICENSE file in the root directory of this source tree.
|
743
743
|
*/const __iconNode$6=[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]],GripVertical=createLucideIcon("grip-vertical",__iconNode$6);/**
|
744
|
-
* @license lucide-react v0.
|
744
|
+
* @license lucide-react v0.487.0 - ISC
|
745
745
|
*
|
746
746
|
* This source code is licensed under the ISC license.
|
747
747
|
* See the LICENSE file in the root directory of this source tree.
|
748
748
|
*/const __iconNode$5=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],LoaderCircle=createLucideIcon("loader-circle",__iconNode$5);/**
|
749
|
-
* @license lucide-react v0.
|
749
|
+
* @license lucide-react v0.487.0 - ISC
|
750
750
|
*
|
751
751
|
* This source code is licensed under the ISC license.
|
752
752
|
* See the LICENSE file in the root directory of this source tree.
|
753
753
|
*/const __iconNode$4=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],Lock=createLucideIcon("lock",__iconNode$4);/**
|
754
|
-
* @license lucide-react v0.
|
754
|
+
* @license lucide-react v0.487.0 - ISC
|
755
755
|
*
|
756
756
|
* This source code is licensed under the ISC license.
|
757
757
|
* See the LICENSE file in the root directory of this source tree.
|
758
758
|
*/const __iconNode$3=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],Menu=createLucideIcon("menu",__iconNode$3);/**
|
759
|
-
* @license lucide-react v0.
|
759
|
+
* @license lucide-react v0.487.0 - ISC
|
760
760
|
*
|
761
761
|
* This source code is licensed under the ISC license.
|
762
762
|
* See the LICENSE file in the root directory of this source tree.
|
763
763
|
*/const __iconNode$2=[["path",{d:"M5 12h14",key:"1ays0h"}]],Minus=createLucideIcon("minus",__iconNode$2);/**
|
764
|
-
* @license lucide-react v0.
|
764
|
+
* @license lucide-react v0.487.0 - ISC
|
765
765
|
*
|
766
766
|
* This source code is licensed under the ISC license.
|
767
767
|
* See the LICENSE file in the root directory of this source tree.
|
768
768
|
*/const __iconNode$1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Plus=createLucideIcon("plus",__iconNode$1);/**
|
769
|
-
* @license lucide-react v0.
|
769
|
+
* @license lucide-react v0.487.0 - ISC
|
770
770
|
*
|
771
771
|
* This source code is licensed under the ISC license.
|
772
772
|
* See the LICENSE file in the root directory of this source tree.
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@pdfme/ui",
|
3
|
-
"version": "5.3.15-dev.
|
3
|
+
"version": "5.3.15-dev.11",
|
4
4
|
"sideEffects": false,
|
5
5
|
"author": "hand-dot",
|
6
6
|
"license": "MIT",
|
@@ -44,7 +44,7 @@
|
|
44
44
|
"form-render": "^2.2.16",
|
45
45
|
"globrex": "^0.1.2",
|
46
46
|
"hotkeys-js": "^3.8.7",
|
47
|
-
"lucide-react": "^0.
|
47
|
+
"lucide-react": "^0.487.0",
|
48
48
|
"react": "^16.14.0",
|
49
49
|
"react-dom": "^16.14.0",
|
50
50
|
"react-moveable": "^0.56.0",
|
@@ -63,7 +63,7 @@
|
|
63
63
|
"@vitejs/plugin-react": "^4.2.0",
|
64
64
|
"csstype": "^3.1.2",
|
65
65
|
"esbuild": "^0.25.2",
|
66
|
-
"eslint-plugin-react": "^7.37.
|
66
|
+
"eslint-plugin-react": "^7.37.5",
|
67
67
|
"eslint-plugin-react-hooks": "^5.2.0",
|
68
68
|
"is-path-inside": "^4.0.0",
|
69
69
|
"jest-canvas-mock": "^2.3.1",
|
@@ -71,7 +71,7 @@
|
|
71
71
|
"postcss": "^8.5.3",
|
72
72
|
"process": "^0.11.10",
|
73
73
|
"rollup": "^4.38.0",
|
74
|
-
"vite": "^6.2.
|
74
|
+
"vite": "^6.2.5",
|
75
75
|
"vite-plugin-css-injected-by-js": "^3.3.0",
|
76
76
|
"vite-tsconfig-paths": "^5.1.4"
|
77
77
|
},
|