@lobehub/ui 2.0.10 → 2.0.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/es/Img/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { ImageProps } from 'antd';
|
|
2
2
|
import { Ref } from 'react';
|
|
3
|
-
import type { ImgProps } from "../types";
|
|
4
|
-
|
|
5
|
-
ref?: Ref<HTMLImageElement
|
|
6
|
-
unoptimized?: boolean
|
|
7
|
-
}
|
|
3
|
+
import type { ImgProps as HtmlImgeProps } from "../types";
|
|
4
|
+
type ImgProps = HtmlImgeProps & ImageProps & {
|
|
5
|
+
ref?: Ref<HTMLImageElement>;
|
|
6
|
+
unoptimized?: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare const Img: import("react").NamedExoticComponent<ImgProps>;
|
|
8
9
|
export default Img;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
-
var _excluded = ["step", "value", "onChange", "max", "min", "defaultValue", "size", "controls", "gap", "style", "className", "classNames", "styles", "disabled"],
|
|
4
|
+
var _excluded = ["step", "value", "onChange", "max", "min", "defaultValue", "size", "controls", "gap", "style", "className", "classNames", "styles", "disabled", "unlimitedInput"],
|
|
5
5
|
_excluded2 = ["slider", "input"],
|
|
6
6
|
_excluded3 = ["slider", "input"];
|
|
7
7
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -22,7 +22,8 @@ var SliderWithInput = /*#__PURE__*/memo(function (_ref) {
|
|
|
22
22
|
var step = _ref.step,
|
|
23
23
|
value = _ref.value,
|
|
24
24
|
onChange = _ref.onChange,
|
|
25
|
-
max = _ref.max,
|
|
25
|
+
_ref$max = _ref.max,
|
|
26
|
+
max = _ref$max === void 0 ? 100 : _ref$max,
|
|
26
27
|
min = _ref.min,
|
|
27
28
|
defaultValue = _ref.defaultValue,
|
|
28
29
|
size = _ref.size,
|
|
@@ -34,6 +35,8 @@ var SliderWithInput = /*#__PURE__*/memo(function (_ref) {
|
|
|
34
35
|
classNames = _ref.classNames,
|
|
35
36
|
styles = _ref.styles,
|
|
36
37
|
disabled = _ref.disabled,
|
|
38
|
+
_ref$unlimitedInput = _ref.unlimitedInput,
|
|
39
|
+
unlimitedInput = _ref$unlimitedInput === void 0 ? false : _ref$unlimitedInput,
|
|
37
40
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
38
41
|
var handleOnchange = function handleOnchange(value) {
|
|
39
42
|
if (Number.isNaN(value) || isNull(value)) return;
|
|
@@ -76,7 +79,7 @@ var SliderWithInput = /*#__PURE__*/memo(function (_ref) {
|
|
|
76
79
|
controls: size !== 'small' || controls,
|
|
77
80
|
defaultValue: defaultValue,
|
|
78
81
|
disabled: disabled,
|
|
79
|
-
max: max,
|
|
82
|
+
max: unlimitedInput ? undefined : max,
|
|
80
83
|
min: min,
|
|
81
84
|
onChange: function onChange(v) {
|
|
82
85
|
return handleOnchange(Number(v));
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ImageProps } from 'antd';
|
|
3
3
|
import { ImgProps } from "../../types";
|
|
4
|
-
|
|
5
|
-
size?:
|
|
6
|
-
}
|
|
4
|
+
type Logo3dProps = Omit<ImgProps & ImageProps, 'width' | 'height' | 'src'> & {
|
|
5
|
+
size?: number | string;
|
|
6
|
+
};
|
|
7
|
+
declare const Logo3d: import("react").NamedExoticComponent<Logo3dProps>;
|
|
7
8
|
export default Logo3d;
|
package/es/hooks/useMermaid.js
CHANGED
|
@@ -54,7 +54,6 @@ export var useMermaid = function useMermaid(content, _ref) {
|
|
|
54
54
|
errorBkgColor: theme.colorTextDescription,
|
|
55
55
|
errorTextColor: theme.colorTextDescription,
|
|
56
56
|
fontFamily: theme.fontFamily,
|
|
57
|
-
fontSize: 14,
|
|
58
57
|
lineColor: theme.colorTextSecondary,
|
|
59
58
|
mainBkg: theme.colorBgContainer,
|
|
60
59
|
noteBkgColor: theme.colorInfoBg,
|