@farmzone/fz-react-ui 1.2.1 → 1.2.3
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 +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -28,7 +28,6 @@ import { useDaumPostcodePopup } from 'react-daum-postcode';
|
|
|
28
28
|
import { create } from 'zustand';
|
|
29
29
|
import { createJSONStorage, persist } from 'zustand/middleware';
|
|
30
30
|
import { v4 } from 'uuid';
|
|
31
|
-
import heic2any from 'heic2any';
|
|
32
31
|
import { useEditor, useEditorState, EditorContent, ReactRenderer } from '@tiptap/react';
|
|
33
32
|
import { Extension, InputRule } from '@tiptap/core';
|
|
34
33
|
import StarterKit from '@tiptap/starter-kit';
|
|
@@ -1763,7 +1762,8 @@ var ToastManager = class _ToastManager {
|
|
|
1763
1762
|
duration: props.duration ?? perType.duration ?? base.duration ?? 1500,
|
|
1764
1763
|
style: Object.keys(style).length > 0 ? style : void 0,
|
|
1765
1764
|
className: className || void 0,
|
|
1766
|
-
iconTheme: props.iconTheme ?? perType.iconTheme ?? base.iconTheme
|
|
1765
|
+
iconTheme: props.iconTheme ?? perType.iconTheme ?? base.iconTheme,
|
|
1766
|
+
icon: props.icon ?? perType.icon ?? base.icon
|
|
1767
1767
|
};
|
|
1768
1768
|
}
|
|
1769
1769
|
registerContainer(position, setToasts) {
|
|
@@ -2074,7 +2074,7 @@ function ToastItemCard(props) {
|
|
|
2074
2074
|
onClick: handleClick,
|
|
2075
2075
|
children: [
|
|
2076
2076
|
toast2.props.icon || getDefaultIcon(toast2.props.type || "info", toast2.props.iconTheme),
|
|
2077
|
-
/* @__PURE__ */ jsx("span", { className:
|
|
2077
|
+
/* @__PURE__ */ jsx("span", { className: `flex-1 font-medium ${hasCustomStyle ? "" : "text-sm"}`, children: toast2.props.toast }),
|
|
2078
2078
|
toast2.props.showCloseButton === true && /* @__PURE__ */ jsx(
|
|
2079
2079
|
"button",
|
|
2080
2080
|
{
|
|
@@ -9549,6 +9549,7 @@ function revokeFile(file) {
|
|
|
9549
9549
|
}
|
|
9550
9550
|
}
|
|
9551
9551
|
var convertHeicToJpeg = async (file) => {
|
|
9552
|
+
const { default: heic2any } = await import('heic2any');
|
|
9552
9553
|
const blob = await heic2any({ blob: file, toType: "image/jpeg", quality: 0.92 });
|
|
9553
9554
|
const result = Array.isArray(blob) ? blob[0] : blob;
|
|
9554
9555
|
const baseName = file.name.replace(/\.[^.]+$/, "");
|