@lobehub/ui 2.0.5 → 2.0.6

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.
@@ -34,7 +34,7 @@ var Button = /*#__PURE__*/memo(function (_ref) {
34
34
  styles = _useStyles.styles,
35
35
  cx = _useStyles.cx,
36
36
  theme = _useStyles.theme;
37
- var defaultVariant = type === 'primary' ? undefined : variant || (theme.isDarkMode ? 'filled' : 'outlined');
37
+ var defaultVariant = type ? undefined : variant || (theme.isDarkMode ? 'filled' : 'outlined');
38
38
  var variants = useMemo(function () {
39
39
  return cva(styles.root, {
40
40
  defaultVariants: {
@@ -43,15 +43,6 @@ var Button = /*#__PURE__*/memo(function (_ref) {
43
43
  },
44
44
  /* eslint-disable sort-keys-fix/sort-keys-fix */
45
45
  variants: {
46
- variant: {
47
- filled: styles.filled,
48
- outlined: styles.outlined,
49
- dashed: null,
50
- text: null,
51
- link: null,
52
- normal: null,
53
- solid: null
54
- },
55
46
  glass: {
56
47
  false: null,
57
48
  true: styles.glass
@@ -67,8 +58,7 @@ var Button = /*#__PURE__*/memo(function (_ref) {
67
58
  return /*#__PURE__*/_jsx(AntdButton, _objectSpread(_objectSpread({
68
59
  className: cx(variants({
69
60
  glass: glass,
70
- shadow: shadow,
71
- variant: defaultVariant
61
+ shadow: shadow
72
62
  }), className),
73
63
  color: color || (defaultVariant === 'filled' ? 'default' : undefined),
74
64
  danger: danger,
@@ -1,7 +1,5 @@
1
1
  export declare const useStyles: (props?: unknown) => import("antd-style").ReturnStyles<{
2
- filled: import("antd-style").SerializedStyles;
3
2
  glass: string;
4
- outlined: import("antd-style").SerializedStyles;
5
3
  root: import("antd-style").SerializedStyles;
6
4
  shadow: import("antd-style").SerializedStyles;
7
5
  }>;
@@ -1,4 +1,4 @@
1
- var _templateObject, _templateObject2, _templateObject3, _templateObject4;
1
+ var _templateObject, _templateObject2;
2
2
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
3
3
  import { createStyles } from 'antd-style';
4
4
  export var useStyles = createStyles(function (_ref) {
@@ -7,10 +7,8 @@ export var useStyles = createStyles(function (_ref) {
7
7
  stylish = _ref.stylish,
8
8
  prefixCls = _ref.prefixCls;
9
9
  return {
10
- filled: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n &.", "-btn.", "-btn-variant-filled {\n ", ";\n }\n "])), prefixCls, prefixCls, stylish.variantFilled),
11
10
  glass: stylish.blur,
12
- outlined: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n &.", "-btn.", "-btn-variant-outlined {\n ", "\n }\n "])), prefixCls, prefixCls, stylish.variantOutlined),
13
- root: css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n &.", "-btn {\n transition:\n color 400ms ", ",\n background 100ms ", ";\n\n > .", "-btn-icon {\n display: flex;\n }\n }\n "])), prefixCls, token.motionEaseOut, token.motionEaseOut, prefixCls),
14
- shadow: css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n box-shadow: ", " !important;\n "])), token.boxShadowTertiary)
11
+ root: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n &.", "-btn {\n > .", "-btn-icon {\n display: flex;\n }\n }\n "])), prefixCls, prefixCls),
12
+ shadow: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n box-shadow: ", " !important;\n "])), token.boxShadowTertiary)
15
13
  };
16
14
  });
@@ -22,10 +22,7 @@ export var createLobeAntdTheme = function createLobeAntdTheme(_ref) {
22
22
  algorithm: isDark ? darkAlgorithm : lightAlgorithm,
23
23
  components: {
24
24
  Button: {
25
- contentFontSizeSM: 12,
26
- defaultActiveBorderColor: baseToken.colorBorder,
27
- defaultActiveColor: baseToken.colorText,
28
- groupBorderColor: baseToken.colorBorder
25
+ contentFontSizeSM: 12
29
26
  },
30
27
  DatePicker: {
31
28
  activeBorderColor: baseToken.colorBorder,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/ui",
3
- "version": "2.0.5",
3
+ "version": "2.0.6",
4
4
  "description": "Lobe UI is an open-source UI component library for building AIGC web apps",
5
5
  "keywords": [
6
6
  "lobehub",