google-font-switcher 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +181 -0
- package/dist/a-KZ76CVVG.js +5 -0
- package/dist/b-R3AQK6YU.js +5 -0
- package/dist/c-4GUHUFZP.js +5 -0
- package/dist/chunk-WMU25H7I.js +140 -0
- package/dist/d-4YWKABEJ.js +5 -0
- package/dist/data.cjs +434 -0
- package/dist/data.d.ts +13 -0
- package/dist/data.js +78 -0
- package/dist/e-5ZV5WA2M.js +5 -0
- package/dist/f-CL3LC4CF.js +5 -0
- package/dist/g-CBR7PXHS.js +5 -0
- package/dist/google-font-picker-DX-D_mqh.d.ts +42 -0
- package/dist/h-VSR53KNJ.js +5 -0
- package/dist/i-DHSHY5GE.js +5 -0
- package/dist/index.cjs +189 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +29 -0
- package/dist/j-EX4QLXIE.js +5 -0
- package/dist/k-SJJK6ZNF.js +5 -0
- package/dist/l-R7J5DHCR.js +5 -0
- package/dist/m-WA3Y3Y4F.js +5 -0
- package/dist/n-J2736NOW.js +5 -0
- package/dist/o-SZPHGWHT.js +5 -0
- package/dist/p-KMPKHVYJ.js +5 -0
- package/dist/q-S2DUVQAK.js +5 -0
- package/dist/r-GSS2CDHM.js +5 -0
- package/dist/s-WENS5XEA.js +5 -0
- package/dist/style.css +14 -0
- package/dist/t-4QS36COO.js +5 -0
- package/dist/u-FRQLFDJR.js +5 -0
- package/dist/v-KY6JGF33.js +5 -0
- package/dist/w-JLQ4QTVU.js +5 -0
- package/dist/x-YAHWRCU5.js +5 -0
- package/dist/y-746DZM3E.js +5 -0
- package/dist/z-7R54UH5W.js +5 -0
- package/package.json +49 -0
package/dist/data.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
import { G as GoogleFontPicker, a as GoogleFontPickerProps, b as GoogleFontListItem, c as GoogleFontData } from './google-font-picker-DX-D_mqh.js';
|
|
4
|
+
|
|
5
|
+
/** Returns lightweight records suitable for the searchable font menu. */
|
|
6
|
+
declare function getAllGoogleFonts(): GoogleFontListItem[];
|
|
7
|
+
/** Loads only the selected font's small alphabetic data group. */
|
|
8
|
+
declare function resolveGoogleFont(family: string): Promise<GoogleFontData>;
|
|
9
|
+
type BuiltInGoogleFontPickerProps = Omit<ComponentProps<typeof GoogleFontPicker>, "fonts" | "resolver">;
|
|
10
|
+
/** A picker wired to the package's bundled font registry. */
|
|
11
|
+
declare function BuiltInGoogleFontPicker(props: BuiltInGoogleFontPickerProps): react.FunctionComponentElement<GoogleFontPickerProps>;
|
|
12
|
+
|
|
13
|
+
export { BuiltInGoogleFontPicker, type BuiltInGoogleFontPickerProps, getAllGoogleFonts, resolveGoogleFont };
|