@pisell/materials 2.2.44 → 2.2.45

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.
@@ -2,7 +2,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
2
2
  import { createFromIconfontCN } from '@ant-design/icons';
3
3
  import React from 'react';
4
4
  var MyIcon = createFromIconfontCN({
5
- scriptUrl: 'https://static.pisellcdn.com/pisell2iconfont.js' // 在 iconfont.cn 上生成
5
+ scriptUrl: 'https://static.pisellcdn.com/pisell2/iconfont_1.0.js' // 在 iconfont.cn 上生成
6
6
  });
7
7
 
8
8
  var IconFont = function IconFont(props) {
@@ -10,7 +10,7 @@ import { Button } from 'antd';
10
10
  import classNames from 'classnames';
11
11
  import { isBoolean, isUndefined } from '@pisell/utils';
12
12
  import XClose from '@pisell/icon/es/XClose';
13
- import Delete_wght300_24px from '@pisell/icon/src/Delete_wght300_24px';
13
+ import Delete_wght300_24px from '@pisell/icon/es/Delete_wght300_24px';
14
14
  import Modal from "../../../modal";
15
15
  import { sizeMap } from "../../constants";
16
16
  import "./index.less";
@@ -2,7 +2,7 @@ var _excluded = ["value", "precision", "showCurrencySymbol", "useThousandsSepara
2
2
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
3
3
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
4
4
  import React, { useMemo } from 'react';
5
- import { formatAmountWithOptions } from '@pisell/utils/src';
5
+ import { formatAmountWithOptions } from '@pisell/utils';
6
6
  import usePisellConfig from "../../../pisell-config-provider/hooks/usePisellConfig";
7
7
  var Amount = function Amount(props) {
8
8
  var value = props.value,
@@ -35,7 +35,7 @@ module.exports = __toCommonJS(iconfont_exports);
35
35
  var import_icons = require("@ant-design/icons");
36
36
  var import_react = __toESM(require("react"));
37
37
  var MyIcon = (0, import_icons.createFromIconfontCN)({
38
- scriptUrl: "https://static.pisellcdn.com/pisell2iconfont.js"
38
+ scriptUrl: "https://static.pisellcdn.com/pisell2/iconfont_1.0.js"
39
39
  // 在 iconfont.cn 上生成
40
40
  });
41
41
  var IconFont = (props) => {
@@ -37,7 +37,7 @@ var import_antd = require("antd");
37
37
  var import_classnames = __toESM(require("classnames"));
38
38
  var import_utils = require("@pisell/utils");
39
39
  var import_XClose = __toESM(require("@pisell/icon/es/XClose"));
40
- var import_Delete_wght300_24px = __toESM(require("@pisell/icon/src/Delete_wght300_24px"));
40
+ var import_Delete_wght300_24px = __toESM(require("@pisell/icon/es/Delete_wght300_24px"));
41
41
  var import_modal = __toESM(require("../../../modal"));
42
42
  var import_constants = require("../../constants");
43
43
  var import_index = require("./index.less");
@@ -33,7 +33,7 @@ __export(Amount_exports, {
33
33
  });
34
34
  module.exports = __toCommonJS(Amount_exports);
35
35
  var import_react = __toESM(require("react"));
36
- var import_src = require("@pisell/utils/src");
36
+ var import_utils = require("@pisell/utils");
37
37
  var import_usePisellConfig = __toESM(require("../../../pisell-config-provider/hooks/usePisellConfig"));
38
38
  var Amount = (props) => {
39
39
  const {
@@ -46,7 +46,7 @@ var Amount = (props) => {
46
46
  } = props;
47
47
  const config = (0, import_usePisellConfig.default)();
48
48
  const amount = (0, import_react.useMemo)(() => {
49
- return (0, import_src.formatAmountWithOptions)(value, (config == null ? void 0 : config.symbol) || "", {
49
+ return (0, import_utils.formatAmountWithOptions)(value, (config == null ? void 0 : config.symbol) || "", {
50
50
  precision,
51
51
  showCurrencySymbol,
52
52
  useThousandsSeparator,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "2.2.44",
3
+ "version": "2.2.45",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -65,8 +65,8 @@
65
65
  "@zxing/library": "0.21.2",
66
66
  "swiper": "^8.4.7",
67
67
  "@pisell/utils": "2.0.1",
68
- "@pisell/date-picker": "1.0.101",
69
- "@pisell/icon": "0.0.11"
68
+ "@pisell/icon": "0.0.11",
69
+ "@pisell/date-picker": "1.0.101"
70
70
  },
71
71
  "peerDependencies": {
72
72
  "react": "^18.0.0",