@lobehub/ui 2.0.9 → 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
- declare const Img: import("react").NamedExoticComponent<ImgProps & ImageProps & {
5
- ref?: Ref<HTMLImageElement> | undefined;
6
- unoptimized?: boolean | undefined;
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));
@@ -14,5 +14,6 @@ export interface SliderWithInputProps extends Omit<SliderSingleProps, 'className
14
14
  input?: CSSProperties;
15
15
  slider?: CSSProperties;
16
16
  } & SliderSingleProps['styles'];
17
+ unlimitedInput?: boolean;
17
18
  variant?: InputNumberProps['variant'];
18
19
  }
package/es/Tag/styles.js CHANGED
@@ -11,7 +11,7 @@ export var useStyles = createStyles(function (_ref) {
11
11
  filled: stylish.variantFilledWithoutHover,
12
12
  large: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n &.", "-tag {\n height: 28px;\n padding-inline: 12px;\n border-radius: 6px;\n }\n "])), prefixCls),
13
13
  outlined: stylish.variantOutlinedWithoutHover,
14
- root: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n color: ", ";\n &.", "-tag {\n user-select: none;\n\n display: flex;\n gap: 0.4em;\n align-items: center;\n justify-content: center;\n\n width: fit-content;\n height: 22px;\n margin: 0;\n\n line-height: 1.2;\n\n border-radius: 3px;\n\n span {\n margin: 0;\n }\n\n span:not(.anticon) {\n height: unset;\n line-height: inherit;\n }\n }\n "])), token.colorTextSecondary, prefixCls),
14
+ root: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n color: ", ";\n &.", "-tag {\n user-select: none;\n\n display: flex;\n gap: 0.4em;\n align-items: center;\n justify-content: center;\n\n width: fit-content;\n height: 22px;\n margin: 0;\n\n line-height: 1.2;\n\n border-radius: 3px;\n\n span {\n margin: 0;\n }\n }\n "])), token.colorTextSecondary, prefixCls),
15
15
  small: css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n &.", "-tag {\n height: 20px;\n padding-inline: 4px;\n }\n "])), prefixCls)
16
16
  };
17
17
  });
@@ -1,7 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import { ImageProps } from 'antd';
3
3
  import { ImgProps } from "../../types";
4
- declare const Logo3d: import("react").NamedExoticComponent<Omit<ImgProps & ImageProps, "height" | "width" | "src"> & {
5
- size?: string | number | undefined;
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;
@@ -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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/ui",
3
- "version": "2.0.9",
3
+ "version": "2.0.11",
4
4
  "description": "Lobe UI is an open-source UI component library for building AIGC web apps",
5
5
  "keywords": [
6
6
  "lobehub",