react-fontpicker-ts 0.1.0 → 0.2.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/README.md +4 -109
- package/dist/index.css +3277 -3788
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +833 -674
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +835 -671
- package/dist/index.mjs.map +1 -1
- package/dist/sprite.1.1.5x-IEN72JY6.png +0 -0
- package/dist/sprite.1.1x-TBCR3GHG.png +0 -0
- package/dist/sprite.1.2x-7DLPF4QI.png +0 -0
- package/dist/sprite.2.1.5x-BTV2IYQE.png +0 -0
- package/dist/sprite.2.1x-LMLU3WAY.png +0 -0
- package/dist/sprite.2.2x-GLHW3CGI.png +0 -0
- package/dist/sprite.3.1.5x-APCYMH2U.png +0 -0
- package/dist/sprite.3.1x-4P6LGCUY.png +0 -0
- package/dist/sprite.3.2x-TXTVEISQ.png +0 -0
- package/dist/sprite.4.1.5x-QHIEK3EL.png +0 -0
- package/dist/sprite.4.1x-CKFO5N5Y.png +0 -0
- package/dist/sprite.4.2x-M7QAUGJM.png +0 -0
- package/dist/sprite.5.1.5x-FGGQRINX.png +0 -0
- package/dist/sprite.5.1x-7BMSHF5E.png +0 -0
- package/dist/sprite.5.2x-6GGR2CKH.png +0 -0
- package/dist/sprite.6.1.5x-RDOEAOLD.png +0 -0
- package/dist/sprite.6.1x-GJO4G432.png +0 -0
- package/dist/sprite.6.2x-P5P3ZGLE.png +0 -0
- package/dist/sprite.7.1.5x-NOP4JY5I.png +0 -0
- package/dist/sprite.7.1x-27V2WF2K.png +0 -0
- package/dist/sprite.7.2x-ZHKWVQ4L.png +0 -0
- package/dist/sprite.8.1.5x-J3A7XQVH.png +0 -0
- package/dist/sprite.8.1x-ZTY27DI3.png +0 -0
- package/dist/sprite.8.2x-PK3I6JFC.png +0 -0
- package/dist/src/components/FontPicker.d.ts +3 -3
- package/dist/src/components/FontPicker.d.ts.map +1 -1
- package/dist/src/components/FontPreviews.d.ts +7 -0
- package/dist/src/components/FontPreviews.d.ts.map +1 -0
- package/package.json +36 -15
- package/dist/sprite.1.1.5x-XMWDUN3B.png +0 -0
- package/dist/sprite.1.1x-HDD5SCOX.png +0 -0
- package/dist/sprite.1.2x-R5OZY447.png +0 -0
- package/dist/sprite.10.1.5x-NKFUPOTH.png +0 -0
- package/dist/sprite.10.1x-N74JTAKW.png +0 -0
- package/dist/sprite.10.2x-XVSCEJWZ.png +0 -0
- package/dist/sprite.11.1.5x-R3M3D3TB.png +0 -0
- package/dist/sprite.11.1x-7SYW6ANG.png +0 -0
- package/dist/sprite.11.2x-OXV2QAU2.png +0 -0
- package/dist/sprite.12.1.5x-RK5K5CBC.png +0 -0
- package/dist/sprite.12.1x-2UXSH2BC.png +0 -0
- package/dist/sprite.12.2x-ILRYIKLL.png +0 -0
- package/dist/sprite.13.1.5x-ZVKWAYBW.png +0 -0
- package/dist/sprite.13.1x-W35QRJN6.png +0 -0
- package/dist/sprite.13.2x-6QDJKTFQ.png +0 -0
- package/dist/sprite.14.1.5x-YQ5TVP4X.png +0 -0
- package/dist/sprite.14.1x-P62F5ZHB.png +0 -0
- package/dist/sprite.14.2x-FJMFBXNN.png +0 -0
- package/dist/sprite.15.1.5x-RSJTKGXJ.png +0 -0
- package/dist/sprite.15.1x-VT6OXOD4.png +0 -0
- package/dist/sprite.15.2x-O6JPUDO5.png +0 -0
- package/dist/sprite.16.1.5x-IF5CXL2K.png +0 -0
- package/dist/sprite.16.1x-BH3FBEAS.png +0 -0
- package/dist/sprite.16.2x-GWMKGITZ.png +0 -0
- package/dist/sprite.17.1.5x-VZ4PAF6Q.png +0 -0
- package/dist/sprite.17.1x-NZ7X6YT5.png +0 -0
- package/dist/sprite.17.2x-6XQTSIXG.png +0 -0
- package/dist/sprite.18.1.5x-SWHUCEVQ.png +0 -0
- package/dist/sprite.18.1x-57L6JD6F.png +0 -0
- package/dist/sprite.18.2x-WWYT5NSE.png +0 -0
- package/dist/sprite.19.1.5x-3RQQUIO3.png +0 -0
- package/dist/sprite.19.1x-3LJ7M6AR.png +0 -0
- package/dist/sprite.19.2x-IK6T6HLQ.png +0 -0
- package/dist/sprite.2.1.5x-K5NNDIW3.png +0 -0
- package/dist/sprite.2.1x-6JLC6P3G.png +0 -0
- package/dist/sprite.2.2x-265H7CFZ.png +0 -0
- package/dist/sprite.20.1.5x-JXDIFNZH.png +0 -0
- package/dist/sprite.20.1x-XNU2TJ6Q.png +0 -0
- package/dist/sprite.20.2x-XOZTSZTY.png +0 -0
- package/dist/sprite.21.1.5x-NPYIH4LB.png +0 -0
- package/dist/sprite.21.1x-SFNMHFDI.png +0 -0
- package/dist/sprite.21.2x-ZLQ2B6IK.png +0 -0
- package/dist/sprite.22.1.5x-BEHLPSYK.png +0 -0
- package/dist/sprite.22.1x-PGMCTRGT.png +0 -0
- package/dist/sprite.22.2x-2X3QIOVQ.png +0 -0
- package/dist/sprite.23.1.5x-XQITU43V.png +0 -0
- package/dist/sprite.23.1x-C765STXM.png +0 -0
- package/dist/sprite.23.2x-RFIXCUQ5.png +0 -0
- package/dist/sprite.24.1.5x-AWFULXDG.png +0 -0
- package/dist/sprite.24.1x-X3VC4KER.png +0 -0
- package/dist/sprite.24.2x-VKZEB2CH.png +0 -0
- package/dist/sprite.25.1.5x-J2DDFQLL.png +0 -0
- package/dist/sprite.25.1x-XQF4XMN7.png +0 -0
- package/dist/sprite.25.2x-QTVFDGUX.png +0 -0
- package/dist/sprite.26.1.5x-OJL22L3R.png +0 -0
- package/dist/sprite.26.1x-CGQ7DGJJ.png +0 -0
- package/dist/sprite.26.2x-H3G2GZUW.png +0 -0
- package/dist/sprite.27.1.5x-GAOIHSTF.png +0 -0
- package/dist/sprite.27.1x-SOKO7GY2.png +0 -0
- package/dist/sprite.27.2x-ITHLNV7Y.png +0 -0
- package/dist/sprite.28.1.5x-L6PPUSPI.png +0 -0
- package/dist/sprite.28.1x-A7MKNFXG.png +0 -0
- package/dist/sprite.28.2x-K77CZFAS.png +0 -0
- package/dist/sprite.29.1.5x-NKWAULUW.png +0 -0
- package/dist/sprite.29.1x-CDNA2EMC.png +0 -0
- package/dist/sprite.29.2x-O3XIGYZ7.png +0 -0
- package/dist/sprite.3.1.5x-IJHYR3HX.png +0 -0
- package/dist/sprite.3.1x-7WCEQE3K.png +0 -0
- package/dist/sprite.3.2x-5BRAAPEV.png +0 -0
- package/dist/sprite.30.1.5x-5J52YR4L.png +0 -0
- package/dist/sprite.30.1x-O2IEWRXU.png +0 -0
- package/dist/sprite.30.2x-HPGJXVZN.png +0 -0
- package/dist/sprite.31.1.5x-UJPCJFMG.png +0 -0
- package/dist/sprite.31.1x-U2J2WYAY.png +0 -0
- package/dist/sprite.31.2x-HKQONG4Z.png +0 -0
- package/dist/sprite.32.1.5x-MZ6JDYEM.png +0 -0
- package/dist/sprite.32.1x-TP2UTYLR.png +0 -0
- package/dist/sprite.32.2x-RZPSV5UX.png +0 -0
- package/dist/sprite.33.1.5x-TCAZHHP2.png +0 -0
- package/dist/sprite.33.1x-7S6OSG77.png +0 -0
- package/dist/sprite.33.2x-TICPWNE4.png +0 -0
- package/dist/sprite.34.1.5x-2NTL4MDB.png +0 -0
- package/dist/sprite.34.1x-IXYJYOUK.png +0 -0
- package/dist/sprite.34.2x-5GUPUSQT.png +0 -0
- package/dist/sprite.35.1.5x-7H3ORIFA.png +0 -0
- package/dist/sprite.35.1x-EPNBZ6SY.png +0 -0
- package/dist/sprite.35.2x-TXYDDKLH.png +0 -0
- package/dist/sprite.36.1.5x-JZYN2W6L.png +0 -0
- package/dist/sprite.36.1x-IZPAQFY7.png +0 -0
- package/dist/sprite.36.2x-QLFTLI4X.png +0 -0
- package/dist/sprite.37.1.5x-4JR4JB6C.png +0 -0
- package/dist/sprite.37.1x-6HIYOKB6.png +0 -0
- package/dist/sprite.37.2x-BJDJQKMI.png +0 -0
- package/dist/sprite.38.1.5x-A4MINTST.png +0 -0
- package/dist/sprite.38.1x-2ZSFTMRI.png +0 -0
- package/dist/sprite.38.2x-QH4TU7B7.png +0 -0
- package/dist/sprite.39.1.5x-GLTUGRUY.png +0 -0
- package/dist/sprite.39.1x-J3WKKDRT.png +0 -0
- package/dist/sprite.39.2x-IGNBAI52.png +0 -0
- package/dist/sprite.4.1.5x-MZSU4BIU.png +0 -0
- package/dist/sprite.4.1x-K2ZKVXBW.png +0 -0
- package/dist/sprite.4.2x-36JMJ5TY.png +0 -0
- package/dist/sprite.40.1.5x-KQ4UMFBJ.png +0 -0
- package/dist/sprite.40.1x-UAV75KRX.png +0 -0
- package/dist/sprite.40.2x-E6HWOLRK.png +0 -0
- package/dist/sprite.41.1.5x-2V2IOC5B.png +0 -0
- package/dist/sprite.41.1x-S454BCDL.png +0 -0
- package/dist/sprite.41.2x-O35F2TH5.png +0 -0
- package/dist/sprite.42.1.5x-55VRTVTZ.png +0 -0
- package/dist/sprite.42.1x-N5BTF34E.png +0 -0
- package/dist/sprite.42.2x-C7GLPHJL.png +0 -0
- package/dist/sprite.43.1.5x-7FOQHJZD.png +0 -0
- package/dist/sprite.43.1x-SVQ2YYRE.png +0 -0
- package/dist/sprite.43.2x-T4LGXBHT.png +0 -0
- package/dist/sprite.44.1.5x-ORB33HMT.png +0 -0
- package/dist/sprite.44.1x-26CE7BIA.png +0 -0
- package/dist/sprite.44.2x-WBXV5LJE.png +0 -0
- package/dist/sprite.45.1.5x-CM766AXL.png +0 -0
- package/dist/sprite.45.1x-I6HKG3TH.png +0 -0
- package/dist/sprite.45.2x-HTJBMJNX.png +0 -0
- package/dist/sprite.46.1.5x-FD6HAIAD.png +0 -0
- package/dist/sprite.46.1x-7CZZNAHY.png +0 -0
- package/dist/sprite.46.2x-RCELUTX4.png +0 -0
- package/dist/sprite.47.1.5x-UQEQZOLH.png +0 -0
- package/dist/sprite.47.1x-LZIROWHW.png +0 -0
- package/dist/sprite.47.2x-JHNRBS6B.png +0 -0
- package/dist/sprite.48.1.5x-CF4VLDQ3.png +0 -0
- package/dist/sprite.48.1x-37URWHJI.png +0 -0
- package/dist/sprite.48.2x-EO5K3WR3.png +0 -0
- package/dist/sprite.49.1.5x-ER2M27VD.png +0 -0
- package/dist/sprite.49.1x-QL2VV3AJ.png +0 -0
- package/dist/sprite.49.2x-U5RDSY6J.png +0 -0
- package/dist/sprite.5.1.5x-ME4GYDCA.png +0 -0
- package/dist/sprite.5.1x-W2IWAFNP.png +0 -0
- package/dist/sprite.5.2x-NCLJRA2R.png +0 -0
- package/dist/sprite.50.1.5x-S4Y55SM6.png +0 -0
- package/dist/sprite.50.1x-DORVBMXE.png +0 -0
- package/dist/sprite.50.2x-QW6UCBLZ.png +0 -0
- package/dist/sprite.51.1.5x-GX652CJX.png +0 -0
- package/dist/sprite.51.1x-7NDXNDRS.png +0 -0
- package/dist/sprite.51.2x-4VRCJBYW.png +0 -0
- package/dist/sprite.52.1.5x-ZCK4ZIRH.png +0 -0
- package/dist/sprite.52.1x-GHOWEHH7.png +0 -0
- package/dist/sprite.52.2x-6BUOP2DB.png +0 -0
- package/dist/sprite.53.1.5x-QYANAO2M.png +0 -0
- package/dist/sprite.53.1x-S5U5ZDQ2.png +0 -0
- package/dist/sprite.53.2x-J4WSXJEA.png +0 -0
- package/dist/sprite.54.1.5x-O4DSMMTX.png +0 -0
- package/dist/sprite.54.1x-3CA3HGGE.png +0 -0
- package/dist/sprite.54.2x-P7BQZS3S.png +0 -0
- package/dist/sprite.55.1.5x-HMGBFTI6.png +0 -0
- package/dist/sprite.55.1x-CT2NOYGV.png +0 -0
- package/dist/sprite.55.2x-GATJVZRT.png +0 -0
- package/dist/sprite.56.1.5x-XTQAT7P6.png +0 -0
- package/dist/sprite.56.1x-YBQIZY6U.png +0 -0
- package/dist/sprite.56.2x-7Y3HHBFF.png +0 -0
- package/dist/sprite.57.1.5x-EL7DF7DQ.png +0 -0
- package/dist/sprite.57.1x-ISDAJNBK.png +0 -0
- package/dist/sprite.57.2x-B3T3RWBJ.png +0 -0
- package/dist/sprite.58.1.5x-AB7E3NK7.png +0 -0
- package/dist/sprite.58.1x-5STNT7PP.png +0 -0
- package/dist/sprite.58.2x-3SUOF7OU.png +0 -0
- package/dist/sprite.59.1.5x-Q3QOSJF4.png +0 -0
- package/dist/sprite.59.1x-SJEVMFTL.png +0 -0
- package/dist/sprite.59.2x-CA2OYCYC.png +0 -0
- package/dist/sprite.6.1.5x-J2HZX7WZ.png +0 -0
- package/dist/sprite.6.1x-66ABRCF2.png +0 -0
- package/dist/sprite.6.2x-UELS3N4N.png +0 -0
- package/dist/sprite.60.1.5x-KUQO36F5.png +0 -0
- package/dist/sprite.60.1x-QFJ2HYZK.png +0 -0
- package/dist/sprite.60.2x-LZKO5ZIT.png +0 -0
- package/dist/sprite.61.1.5x-LN6RYWZK.png +0 -0
- package/dist/sprite.61.1x-EPK4BOK3.png +0 -0
- package/dist/sprite.61.2x-7JBPKG7R.png +0 -0
- package/dist/sprite.62.1.5x-7DSQK4RF.png +0 -0
- package/dist/sprite.62.1x-CSP67HCY.png +0 -0
- package/dist/sprite.62.2x-I5UD5YZC.png +0 -0
- package/dist/sprite.63.1.5x-5ZNCAXSC.png +0 -0
- package/dist/sprite.63.1x-7F4VERUU.png +0 -0
- package/dist/sprite.63.2x-LSCUFJAM.png +0 -0
- package/dist/sprite.64.1.5x-ATA5Q6LX.png +0 -0
- package/dist/sprite.64.1x-R2VDRSFT.png +0 -0
- package/dist/sprite.64.2x-YD5YI2DI.png +0 -0
- package/dist/sprite.65.1.5x-5O7TEWNR.png +0 -0
- package/dist/sprite.65.1x-V2BPH7ZR.png +0 -0
- package/dist/sprite.65.2x-ST7CS564.png +0 -0
- package/dist/sprite.66.1.5x-3KT73X5J.png +0 -0
- package/dist/sprite.66.1x-TK25CYYS.png +0 -0
- package/dist/sprite.66.2x-Q5Y23QE2.png +0 -0
- package/dist/sprite.67.1.5x-4CB2ACPO.png +0 -0
- package/dist/sprite.67.1x-AP27GV7V.png +0 -0
- package/dist/sprite.67.2x-OLVC2C4A.png +0 -0
- package/dist/sprite.68.1.5x-DRIVGXLF.png +0 -0
- package/dist/sprite.68.1x-YUI77IJP.png +0 -0
- package/dist/sprite.68.2x-QKQ6YI3Y.png +0 -0
- package/dist/sprite.69.1.5x-RITPHCT7.png +0 -0
- package/dist/sprite.69.1x-PYKOSVZM.png +0 -0
- package/dist/sprite.69.2x-6Y7W52SL.png +0 -0
- package/dist/sprite.7.1.5x-EGXDBUOU.png +0 -0
- package/dist/sprite.7.1x-LUXIWLZC.png +0 -0
- package/dist/sprite.7.2x-QXDRQFQV.png +0 -0
- package/dist/sprite.70.1.5x-PQQ25DCD.png +0 -0
- package/dist/sprite.70.1x-IMJFP6HN.png +0 -0
- package/dist/sprite.70.2x-UNFPYHDK.png +0 -0
- package/dist/sprite.71.1.5x-NEV4VFNG.png +0 -0
- package/dist/sprite.71.1x-QJZ3CDII.png +0 -0
- package/dist/sprite.71.2x-RACGFWVF.png +0 -0
- package/dist/sprite.8.1.5x-HNTPXNGH.png +0 -0
- package/dist/sprite.8.1x-X4QYD7LC.png +0 -0
- package/dist/sprite.8.2x-T3RXA3ZV.png +0 -0
- package/dist/sprite.9.1.5x-RREHIND2.png +0 -0
- package/dist/sprite.9.1x-7PBKZIKE.png +0 -0
- package/dist/sprite.9.2x-I4TPORKV.png +0 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import '../../font-preview/font-previews.css';
|
|
3
2
|
import './FontPicker.css';
|
|
4
|
-
export interface FontPickerProps {
|
|
3
|
+
export interface FontPickerProps extends React.ComponentPropsWithoutRef<'div'> {
|
|
5
4
|
defaultValue?: string;
|
|
6
5
|
noMatches?: string;
|
|
7
6
|
autoLoad?: boolean;
|
|
@@ -13,6 +12,7 @@ export interface FontPickerProps {
|
|
|
13
12
|
localFonts?: Font[] | undefined;
|
|
14
13
|
fontVariants?: (fontVariants: FontToVariant) => void;
|
|
15
14
|
value?: (value: string) => void;
|
|
15
|
+
loading?: React.ReactNode;
|
|
16
16
|
}
|
|
17
17
|
export interface Font {
|
|
18
18
|
category: string;
|
|
@@ -37,5 +37,5 @@ export interface FontToVariant {
|
|
|
37
37
|
variants: Variant[];
|
|
38
38
|
}
|
|
39
39
|
export declare function toString(v: Variant): string;
|
|
40
|
-
export default function FontPicker({ defaultValue, noMatches, autoLoad, loaderOnly, loadAllVariants, loadFonts, googleFonts, fontCategories, localFonts, fontVariants, value, }: FontPickerProps): JSX.Element;
|
|
40
|
+
export default function FontPicker({ defaultValue, noMatches, autoLoad, loaderOnly, loadAllVariants, loadFonts, googleFonts, fontCategories, localFonts, fontVariants, value, loading, ...rest }: FontPickerProps): JSX.Element;
|
|
41
41
|
//# sourceMappingURL=FontPicker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FontPicker.d.ts","sourceRoot":"","sources":["../../../src/components/FontPicker.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"FontPicker.d.ts","sourceRoot":"","sources":["../../../src/components/FontPicker.tsx"],"names":[],"mappings":";AAGA,OAAO,kBAAkB,CAAA;AAEzB,MAAM,WAAW,eAAgB,SAAQ,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC;IAC5E,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,EAAE,GAAG,aAAa,EAAE,GAAG,MAAM,CAAA;IAC/C,WAAW,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAA;IACxC,cAAc,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CAAA;IAClC,UAAU,CAAC,EAAE,IAAI,EAAE,GAAG,SAAS,CAAA;IAG/B,YAAY,CAAC,EAAE,CAAC,YAAY,EAAE,aAAa,KAAK,IAAI,CAAA;IACpD,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAG/B,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B;AAED,MAAM,WAAW,IAAI;IACnB,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,OAAO,EAAE,CAAA;CACpB;AAED,MAAM,WAAW,SAAS;IACxB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,MAAM,OAAO,GAAG,WAAW,GAAG,MAAM,CAAA;AAE1C,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,OAAO,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,OAAO,EAAE,CAAA;CACpB;AAED,wBAAgB,QAAQ,CAAC,CAAC,EAAE,OAAO,UAKlC;AAuBD,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EACjC,YAA0B,EAC1B,SAAwB,EACxB,QAAgB,EAChB,UAAkB,EAClB,eAAuB,EACvB,SAAc,EACd,WAAmB,EACnB,cAAsB,EACtB,UAAe,EACf,YAAY,EACZ,KAAK,EACL,OAA8C,EAC9C,GAAG,IAAI,EACR,EAAE,eAAe,eAiejB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FontPreviews.d.ts","sourceRoot":"","sources":["../../../src/components/FontPreviews.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACjC,OAAO,sCAAsC,CAAA;AAE7C,QAAA,MAAM,YAAY;eAA+B,SAAS;iBAAsB,CAAA;AAEhF,eAAe,YAAY,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-fontpicker-ts",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A Google font picker component for React",
|
|
6
6
|
"keywords": [
|
|
@@ -45,13 +45,30 @@
|
|
|
45
45
|
"build:vite": "vite build",
|
|
46
46
|
"dev": "run-s dev:*",
|
|
47
47
|
"dev:vite": "vite --port 3000",
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
48
|
+
"test-all": "run-p test:*",
|
|
49
|
+
"test": "run-p test:vitest",
|
|
50
|
+
"test:cypress-e2e": "start-server-and-test preview http://localhost:4173/react-fontpicker cypress:fast:e2e",
|
|
51
|
+
"test:cypress-comp": "npm run cypress:fast:comp",
|
|
52
|
+
"test:vitest": "npm run vitest",
|
|
53
|
+
"cypress:run": "run-p cypress:run:*",
|
|
54
|
+
"cypress:run:e2e": "CYPRESS_CRASH_REPORTS=0 cypress run --e2e",
|
|
55
|
+
"cypress:run:comp": "CYPRESS_CRASH_REPORTS=0 cypress run --component",
|
|
56
|
+
"cypress:fast:e2e": "npm run cypress:run:e2e --config video=false screenshot=false experimentalStudio=false",
|
|
57
|
+
"cypress:fast:comp": "npm run cypress:run:comp --config video=false screenshot=false useExperimentalComponentTesting=true",
|
|
58
|
+
"cypress:open": "CYPRESS_CRASH_REPORTS=0 cypress open",
|
|
59
|
+
"vitest": "vitest run",
|
|
60
|
+
"format": "prettier --write src cypress scripts",
|
|
61
|
+
"lint": "eslint src cypress",
|
|
62
|
+
"build-font-previews": "php ./scripts/build-font-previews.php",
|
|
63
|
+
"svg-text-test": "tsc -p tsconfig.scripts.json && node ./scripts/getTextSvg.js",
|
|
64
|
+
"preview": "vite preview --host 0.0.0.0 --outDir docs",
|
|
65
|
+
"upgrade": "npm run upgrade-packages && npm install && npm run build && npm run test",
|
|
66
|
+
"upgrade-packages": "ncu -u"
|
|
52
67
|
},
|
|
53
68
|
"tsup": {
|
|
54
|
-
"entry": [
|
|
69
|
+
"entry": [
|
|
70
|
+
"index.ts"
|
|
71
|
+
],
|
|
55
72
|
"clean": true,
|
|
56
73
|
"splitting": false,
|
|
57
74
|
"dts": false,
|
|
@@ -67,23 +84,27 @@
|
|
|
67
84
|
"react": ">=16.8"
|
|
68
85
|
},
|
|
69
86
|
"devDependencies": {
|
|
87
|
+
"@testing-library/dom": "^9.2.0",
|
|
88
|
+
"@testing-library/jest-dom": "^5.16.5",
|
|
89
|
+
"@testing-library/react": "^14.0.0",
|
|
90
|
+
"@testing-library/user-event": "^14.4.3",
|
|
70
91
|
"@types/node": "^18.11.18",
|
|
71
92
|
"@types/react": "^18.0.26",
|
|
72
93
|
"@types/react-dom": "^18.0.10",
|
|
73
|
-
"@typescript-eslint/eslint-plugin": "^5.48.1",
|
|
74
|
-
"@typescript-eslint/parser": "^5.48.1",
|
|
75
94
|
"@vitejs/plugin-react-swc": "^3.0.0",
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"eslint-plugin-react": "^7.32.1",
|
|
80
|
-
"eslint-plugin-react-hooks": "^4.6.0",
|
|
95
|
+
"cypress": "^12.7.0",
|
|
96
|
+
"jsdom": "^21.1.1",
|
|
97
|
+
"npm-check-updates": "^16.10.2",
|
|
81
98
|
"npm-run-all": "^4.1.5",
|
|
99
|
+
"opentype.js": "^1.3.4",
|
|
82
100
|
"prettier": "^2.8.3",
|
|
83
101
|
"react": "^18.2.0",
|
|
84
102
|
"react-dom": "^18.2.0",
|
|
103
|
+
"start-server-and-test": "^2.0.0",
|
|
104
|
+
"tsconfig": "file:*",
|
|
85
105
|
"tsup": "^6.6.3",
|
|
86
|
-
"typescript": "^4.9.
|
|
87
|
-
"vite": "
|
|
106
|
+
"typescript": "^4.9.5",
|
|
107
|
+
"vite": "<=4.1.4",
|
|
108
|
+
"vitest": "^0.29.2"
|
|
88
109
|
}
|
|
89
110
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|