@julseb-lib/react 1.0.45 → 1.0.46
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.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +22 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2499,7 +2499,7 @@ var usePagination = ({
|
|
|
2499
2499
|
|
|
2500
2500
|
// src/lib/hooks/useTextLineCount.tsx
|
|
2501
2501
|
var import_react14 = require("react");
|
|
2502
|
-
var useTextLineCount = (text, containerWidth, fontSize = 16, fontFamily = "
|
|
2502
|
+
var useTextLineCount = (text, containerWidth, fontSize = 16, fontFamily = "lato") => {
|
|
2503
2503
|
const [lineCount, setLineCount] = (0, import_react14.useState)(1);
|
|
2504
2504
|
const canvasRef = (0, import_react14.useRef)(null);
|
|
2505
2505
|
const measureLines = (0, import_react14.useCallback)(() => {
|