fis-component 0.0.9 → 0.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/dist/cjs/index.js CHANGED
@@ -3090,6 +3090,7 @@ function noSplit(list) {
3090
3090
  });
3091
3091
 
3092
3092
  var IconContext = /*#__PURE__*/React.createContext({});
3093
+ var Context$1 = IconContext;
3093
3094
 
3094
3095
  function _toArray(r) {
3095
3096
  return _arrayWithHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableRest();
@@ -3302,6 +3303,7 @@ const locale$1 = {
3302
3303
  placeholder: 'Select time',
3303
3304
  rangePlaceholder: ['Start time', 'End time']
3304
3305
  };
3306
+ var TimePicker = locale$1;
3305
3307
 
3306
3308
  // Merge into a locale object
3307
3309
  const locale = {
@@ -3317,17 +3319,20 @@ const locale = {
3317
3319
  rangeMonthPlaceholder: ['Start month', 'End month'],
3318
3320
  rangeWeekPlaceholder: ['Start week', 'End week']
3319
3321
  }, locale$2),
3320
- timePickerLocale: Object.assign({}, locale$1)
3322
+ timePickerLocale: Object.assign({}, TimePicker)
3321
3323
  };
3324
+ // All settings at:
3325
+ // https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json
3326
+ var enUS = locale;
3322
3327
 
3323
3328
  /* eslint-disable no-template-curly-in-string */
3324
3329
  const typeTemplate = '${label} is not a valid ${type}';
3325
3330
  const localeValues = {
3326
3331
  locale: 'en',
3327
3332
  Pagination: locale$3,
3328
- DatePicker: locale,
3329
- TimePicker: locale$1,
3330
- Calendar: locale,
3333
+ DatePicker: enUS,
3334
+ TimePicker,
3335
+ Calendar: enUS,
3331
3336
  global: {
3332
3337
  placeholder: 'Please select'
3333
3338
  },
@@ -3462,10 +3467,11 @@ const localeValues = {
3462
3467
  gradientColor: 'Gradient'
3463
3468
  }
3464
3469
  };
3470
+ var defaultLocale = localeValues;
3465
3471
 
3466
- Object.assign({}, localeValues.Modal);
3472
+ Object.assign({}, defaultLocale.Modal);
3467
3473
  let localeList = [];
3468
- const generateLocale = () => localeList.reduce((merged, locale) => Object.assign(Object.assign({}, merged), locale), localeValues.Modal);
3474
+ const generateLocale = () => localeList.reduce((merged, locale) => Object.assign(Object.assign({}, merged), locale), defaultLocale.Modal);
3469
3475
  function changeConfirmLocale(newLocale) {
3470
3476
  if (newLocale) {
3471
3477
  const cloneLocale = Object.assign({}, newLocale);
@@ -3476,10 +3482,11 @@ function changeConfirmLocale(newLocale) {
3476
3482
  generateLocale();
3477
3483
  };
3478
3484
  }
3479
- Object.assign({}, localeValues.Modal);
3485
+ Object.assign({}, defaultLocale.Modal);
3480
3486
  }
3481
3487
 
3482
3488
  const LocaleContext = /*#__PURE__*/React.createContext(undefined);
3489
+ var LocaleContext$1 = LocaleContext;
3483
3490
 
3484
3491
  const ANT_MARK = 'internalMark';
3485
3492
  const LocaleProvider = props => {
@@ -3499,13 +3506,14 @@ const LocaleProvider = props => {
3499
3506
  const getMemoizedContextValue = React__namespace.useMemo(() => Object.assign(Object.assign({}, locale), {
3500
3507
  exist: true
3501
3508
  }), [locale]);
3502
- return /*#__PURE__*/React__namespace.createElement(LocaleContext.Provider, {
3509
+ return /*#__PURE__*/React__namespace.createElement(LocaleContext$1.Provider, {
3503
3510
  value: getMemoizedContextValue
3504
3511
  }, children);
3505
3512
  };
3506
3513
  if (process.env.NODE_ENV !== 'production') {
3507
3514
  LocaleProvider.displayName = 'LocaleProvider';
3508
3515
  }
3516
+ var LocaleProvider$1 = LocaleProvider;
3509
3517
 
3510
3518
  /**
3511
3519
  * Take input from [0, n] and return it as [0, 1]
@@ -4930,6 +4938,7 @@ const seedToken = Object.assign(Object.assign({}, defaultPresetColors), {
4930
4938
  // Motion
4931
4939
  motion: true
4932
4940
  });
4941
+ var seedToken$1 = seedToken;
4933
4942
 
4934
4943
  function genColorMapToken(seed, _ref) {
4935
4944
  let {
@@ -5059,6 +5068,7 @@ const genRadius = radiusBase => {
5059
5068
  borderRadiusOuter: radiusOuter
5060
5069
  };
5061
5070
  };
5071
+ var genRadius$1 = genRadius;
5062
5072
 
5063
5073
  function genCommonMapToken(token) {
5064
5074
  const {
@@ -5074,7 +5084,7 @@ function genCommonMapToken(token) {
5074
5084
  motionDurationSlow: `${(motionBase + motionUnit * 3).toFixed(1)}s`,
5075
5085
  // line
5076
5086
  lineWidthBold: lineWidth + 1
5077
- }, genRadius(borderRadius));
5087
+ }, genRadius$1(borderRadius));
5078
5088
  }
5079
5089
 
5080
5090
  const genControlHeight = token => {
@@ -5087,6 +5097,7 @@ const genControlHeight = token => {
5087
5097
  controlHeightLG: controlHeight * 1.25
5088
5098
  };
5089
5099
  };
5100
+ var genControlHeight$1 = genControlHeight;
5090
5101
 
5091
5102
  function getLineHeight(fontSize) {
5092
5103
  return (fontSize + 8) / fontSize;
@@ -5140,6 +5151,7 @@ const genFontMapToken = fontSize => {
5140
5151
  lineHeightHeading5: lineHeights[2]
5141
5152
  };
5142
5153
  };
5154
+ var genFontMapToken$1 = genFontMapToken;
5143
5155
 
5144
5156
  function genSizeMapToken(token) {
5145
5157
  const {
@@ -5234,16 +5246,16 @@ function derivative(token) {
5234
5246
  return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, token), colorPalettes), genColorMapToken(token, {
5235
5247
  generateColorPalettes,
5236
5248
  generateNeutralColorPalettes
5237
- })), genFontMapToken(token.fontSize)), genSizeMapToken(token)), genControlHeight(token)), genCommonMapToken(token));
5249
+ })), genFontMapToken$1(token.fontSize)), genSizeMapToken(token)), genControlHeight$1(token)), genCommonMapToken(token));
5238
5250
  }
5239
5251
 
5240
5252
  const defaultTheme = createTheme(derivative);
5241
5253
  // ================================ Context =================================
5242
5254
  // To ensure snapshot stable. We disable hashed in test env.
5243
5255
  const defaultConfig = {
5244
- token: seedToken,
5256
+ token: seedToken$1,
5245
5257
  override: {
5246
- override: seedToken
5258
+ override: seedToken$1
5247
5259
  },
5248
5260
  hashed: true
5249
5261
  };
@@ -5347,6 +5359,7 @@ const DisabledContextProvider = _ref => {
5347
5359
  value: disabled !== null && disabled !== void 0 ? disabled : originDisabled
5348
5360
  }, children);
5349
5361
  };
5362
+ var DisabledContext$1 = DisabledContext;
5350
5363
 
5351
5364
  const SizeContext = /*#__PURE__*/React__namespace.createContext(undefined);
5352
5365
  const SizeContextProvider = _ref => {
@@ -5359,10 +5372,11 @@ const SizeContextProvider = _ref => {
5359
5372
  value: size || originSize
5360
5373
  }, children);
5361
5374
  };
5375
+ var SizeContext$1 = SizeContext;
5362
5376
 
5363
5377
  function useConfig() {
5364
- const componentDisabled = React.useContext(DisabledContext);
5365
- const componentSize = React.useContext(SizeContext);
5378
+ const componentDisabled = React.useContext(DisabledContext$1);
5379
+ const componentSize = React.useContext(SizeContext$1);
5366
5380
  return {
5367
5381
  componentDisabled,
5368
5382
  componentSize
@@ -6115,7 +6129,7 @@ function formatToken(derivativeToken) {
6115
6129
  } = derivativeToken,
6116
6130
  restToken = __rest$4(derivativeToken, ["override"]);
6117
6131
  const overrideTokens = Object.assign({}, override);
6118
- Object.keys(seedToken).forEach(token => {
6132
+ Object.keys(seedToken$1).forEach(token => {
6119
6133
  delete overrideTokens[token];
6120
6134
  });
6121
6135
  const mergedToken = Object.assign(Object.assign({}, restToken), overrideTokens);
@@ -6368,7 +6382,7 @@ function useToken() {
6368
6382
  } = React.useContext(DesignTokenContext);
6369
6383
  const salt = `${version$1}-${hashed || ''}`;
6370
6384
  const mergedTheme = theme || defaultTheme;
6371
- const [token, hashId, realToken] = useCacheToken(mergedTheme, [seedToken, rootDesignToken], {
6385
+ const [token, hashId, realToken] = useCacheToken(mergedTheme, [seedToken$1, rootDesignToken], {
6372
6386
  salt,
6373
6387
  override,
6374
6388
  getComputedToken,
@@ -6489,6 +6503,7 @@ const useResetIconStyle = (iconPrefixCls, csp) => {
6489
6503
  })
6490
6504
  }]);
6491
6505
  };
6506
+ var useStyle$2 = useResetIconStyle;
6492
6507
 
6493
6508
  const {
6494
6509
  genStyleHooks,
@@ -6522,7 +6537,7 @@ const {
6522
6537
  iconPrefixCls
6523
6538
  } = React.useContext(ConfigContext);
6524
6539
  // Generate style for icons
6525
- useResetIconStyle(iconPrefixCls, csp);
6540
+ useStyle$2(iconPrefixCls, csp);
6526
6541
  return csp !== null && csp !== void 0 ? csp : {};
6527
6542
  },
6528
6543
  getResetStyles: token => [{
@@ -6538,6 +6553,7 @@ const {
6538
6553
  } = fullClone$1;
6539
6554
  const useEmptyId = () => '';
6540
6555
  const useThemeKey = typeof useId === 'undefined' ? useEmptyId : useId;
6556
+ var useThemeKey$1 = useThemeKey;
6541
6557
 
6542
6558
  function useTheme(theme, parentTheme, config) {
6543
6559
  var _a, _b;
@@ -6547,7 +6563,7 @@ function useTheme(theme, parentTheme, config) {
6547
6563
  hashed: (_a = parentTheme === null || parentTheme === void 0 ? void 0 : parentTheme.hashed) !== null && _a !== void 0 ? _a : defaultConfig.hashed,
6548
6564
  cssVar: parentTheme === null || parentTheme === void 0 ? void 0 : parentTheme.cssVar
6549
6565
  }) : parentTheme;
6550
- const themeKey = useThemeKey();
6566
+ const themeKey = useThemeKey$1();
6551
6567
  if (process.env.NODE_ENV !== 'production') {
6552
6568
  const cssVarEnabled = themeConfig.cssVar || parentThemeConfig.cssVar;
6553
6569
  const validKey = !!(typeof themeConfig.cssVar === 'object' && ((_b = themeConfig.cssVar) === null || _b === void 0 ? void 0 : _b.key) || themeKey);
@@ -7572,7 +7588,7 @@ const ProviderChildren = props => {
7572
7588
  }, [parentContext.getPrefixCls, props.prefixCls]);
7573
7589
  const iconPrefixCls = customIconPrefixCls || parentContext.iconPrefixCls || defaultIconPrefixCls;
7574
7590
  const csp = customCsp || parentContext.csp;
7575
- useResetIconStyle(iconPrefixCls, csp);
7591
+ useStyle$2(iconPrefixCls, csp);
7576
7592
  const mergedTheme = useTheme(theme, parentContext.theme, {
7577
7593
  prefixCls: getPrefixCls('')
7578
7594
  });
@@ -7689,7 +7705,7 @@ const ProviderChildren = props => {
7689
7705
  }), children);
7690
7706
  const validateMessages = React__namespace.useMemo(() => {
7691
7707
  var _a, _b, _c, _d;
7692
- return merge$1(((_a = localeValues.Form) === null || _a === void 0 ? void 0 : _a.defaultValidateMessages) || {}, ((_c = (_b = memoedConfig.locale) === null || _b === void 0 ? void 0 : _b.Form) === null || _c === void 0 ? void 0 : _c.defaultValidateMessages) || {}, ((_d = memoedConfig.form) === null || _d === void 0 ? void 0 : _d.validateMessages) || {}, (form === null || form === void 0 ? void 0 : form.validateMessages) || {});
7708
+ return merge$1(((_a = defaultLocale.Form) === null || _a === void 0 ? void 0 : _a.defaultValidateMessages) || {}, ((_c = (_b = memoedConfig.locale) === null || _b === void 0 ? void 0 : _b.Form) === null || _c === void 0 ? void 0 : _c.defaultValidateMessages) || {}, ((_d = memoedConfig.form) === null || _d === void 0 ? void 0 : _d.validateMessages) || {}, (form === null || form === void 0 ? void 0 : form.validateMessages) || {});
7693
7709
  }, [memoedConfig, form === null || form === void 0 ? void 0 : form.validateMessages]);
7694
7710
  if (Object.keys(validateMessages).length > 0) {
7695
7711
  childNode = /*#__PURE__*/React__namespace.createElement(ValidateMessagesContext.Provider, {
@@ -7697,13 +7713,13 @@ const ProviderChildren = props => {
7697
7713
  }, childNode);
7698
7714
  }
7699
7715
  if (locale) {
7700
- childNode = /*#__PURE__*/React__namespace.createElement(LocaleProvider, {
7716
+ childNode = /*#__PURE__*/React__namespace.createElement(LocaleProvider$1, {
7701
7717
  locale: locale,
7702
7718
  _ANT_MARK__: ANT_MARK
7703
7719
  }, childNode);
7704
7720
  }
7705
7721
  if (iconPrefixCls || csp) {
7706
- childNode = /*#__PURE__*/React__namespace.createElement(IconContext.Provider, {
7722
+ childNode = /*#__PURE__*/React__namespace.createElement(Context$1.Provider, {
7707
7723
  value: memoIconContextValue
7708
7724
  }, childNode);
7709
7725
  }
@@ -7739,7 +7755,7 @@ const ProviderChildren = props => {
7739
7755
  }
7740
7756
  parsedComponents[componentName] = parsedToken;
7741
7757
  });
7742
- const mergedToken = Object.assign(Object.assign({}, seedToken), token);
7758
+ const mergedToken = Object.assign(Object.assign({}, seedToken$1), token);
7743
7759
  return Object.assign(Object.assign({}, rest), {
7744
7760
  theme: themeObj,
7745
7761
  token: mergedToken,
@@ -7773,20 +7789,20 @@ const ProviderChildren = props => {
7773
7789
  };
7774
7790
  const ConfigProvider = props => {
7775
7791
  const context = React__namespace.useContext(ConfigContext);
7776
- const antLocale = React__namespace.useContext(LocaleContext);
7792
+ const antLocale = React__namespace.useContext(LocaleContext$1);
7777
7793
  return /*#__PURE__*/React__namespace.createElement(ProviderChildren, Object.assign({
7778
7794
  parentContext: context,
7779
7795
  legacyLocale: antLocale
7780
7796
  }, props));
7781
7797
  };
7782
7798
  ConfigProvider.ConfigContext = ConfigContext;
7783
- ConfigProvider.SizeContext = SizeContext;
7799
+ ConfigProvider.SizeContext = SizeContext$1;
7784
7800
  ConfigProvider.config = setGlobalConfig;
7785
7801
  ConfigProvider.useConfig = useConfig;
7786
7802
  Object.defineProperty(ConfigProvider, 'SizeContext', {
7787
7803
  get: () => {
7788
7804
  process.env.NODE_ENV !== "production" ? warning$2(false, 'ConfigProvider', 'ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead.') : void 0;
7789
- return SizeContext;
7805
+ return SizeContext$1;
7790
7806
  }
7791
7807
  });
7792
7808
  if (process.env.NODE_ENV !== 'production') {
@@ -7865,7 +7881,7 @@ function normalizeTwoToneColors(twoToneColor) {
7865
7881
  }
7866
7882
  var iconStyles = "\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";
7867
7883
  var useInsertStyles = function useInsertStyles(eleRef) {
7868
- var _useContext = React.useContext(IconContext),
7884
+ var _useContext = React.useContext(Context$1),
7869
7885
  csp = _useContext.csp,
7870
7886
  prefixCls = _useContext.prefixCls;
7871
7887
  var mergedStyleStr = iconStyles;
@@ -7942,19 +7958,20 @@ var IconBase = function IconBase(props) {
7942
7958
  IconBase.displayName = 'IconReact';
7943
7959
  IconBase.getTwoToneColors = getTwoToneColors;
7944
7960
  IconBase.setTwoToneColors = setTwoToneColors;
7961
+ var ReactIcon = IconBase;
7945
7962
 
7946
7963
  function setTwoToneColor(twoToneColor) {
7947
7964
  var _normalizeTwoToneColo = normalizeTwoToneColors(twoToneColor),
7948
7965
  _normalizeTwoToneColo2 = _slicedToArray(_normalizeTwoToneColo, 2),
7949
7966
  primaryColor = _normalizeTwoToneColo2[0],
7950
7967
  secondaryColor = _normalizeTwoToneColo2[1];
7951
- return IconBase.setTwoToneColors({
7968
+ return ReactIcon.setTwoToneColors({
7952
7969
  primaryColor: primaryColor,
7953
7970
  secondaryColor: secondaryColor
7954
7971
  });
7955
7972
  }
7956
7973
  function getTwoToneColor() {
7957
- var colors = IconBase.getTwoToneColors();
7974
+ var colors = ReactIcon.getTwoToneColors();
7958
7975
  if (!colors.calculated) {
7959
7976
  return colors.primaryColor;
7960
7977
  }
@@ -7977,7 +7994,7 @@ var Icon = /*#__PURE__*/React__namespace.forwardRef(function (props, ref) {
7977
7994
  onClick = props.onClick,
7978
7995
  twoToneColor = props.twoToneColor,
7979
7996
  restProps = _objectWithoutProperties(props, _excluded);
7980
- var _React$useContext = React__namespace.useContext(IconContext),
7997
+ var _React$useContext = React__namespace.useContext(Context$1),
7981
7998
  _React$useContext$pre = _React$useContext.prefixCls,
7982
7999
  prefixCls = _React$useContext$pre === void 0 ? 'anticon' : _React$useContext$pre,
7983
8000
  rootClassName = _React$useContext.rootClassName;
@@ -8002,7 +8019,7 @@ var Icon = /*#__PURE__*/React__namespace.forwardRef(function (props, ref) {
8002
8019
  tabIndex: iconTabIndex,
8003
8020
  onClick: onClick,
8004
8021
  className: classString
8005
- }), /*#__PURE__*/React__namespace.createElement(IconBase, {
8022
+ }), /*#__PURE__*/React__namespace.createElement(ReactIcon, {
8006
8023
  icon: icon,
8007
8024
  primaryColor: primaryColor,
8008
8025
  secondaryColor: secondaryColor,
@@ -8012,6 +8029,7 @@ var Icon = /*#__PURE__*/React__namespace.forwardRef(function (props, ref) {
8012
8029
  Icon.displayName = 'AntdIcon';
8013
8030
  Icon.getTwoToneColor = getTwoToneColor;
8014
8031
  Icon.setTwoToneColor = setTwoToneColor;
8032
+ var AntdIcon = Icon;
8015
8033
 
8016
8034
  function isFragment(child) {
8017
8035
  return child && /*#__PURE__*/React.isValidElement(child) && child.type === React.Fragment;
@@ -8027,12 +8045,13 @@ function cloneElement(element, props) {
8027
8045
  }
8028
8046
 
8029
8047
  // This icon file is generated automatically.
8030
- var LoadingOutlined$1 = { "icon": { "tag": "svg", "attrs": { "viewBox": "0 0 1024 1024", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z" } }] }, "name": "loading", "theme": "outlined" };
8048
+ var LoadingOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "0 0 1024 1024", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z" } }] }, "name": "loading", "theme": "outlined" };
8049
+ var LoadingOutlinedSvg = LoadingOutlined$2;
8031
8050
 
8032
8051
  var LoadingOutlined = function LoadingOutlined(props, ref) {
8033
- return /*#__PURE__*/React__namespace.createElement(Icon, _extends({}, props, {
8052
+ return /*#__PURE__*/React__namespace.createElement(AntdIcon, _extends({}, props, {
8034
8053
  ref: ref,
8035
- icon: LoadingOutlined$1
8054
+ icon: LoadingOutlinedSvg
8036
8055
  }));
8037
8056
  };
8038
8057
 
@@ -8041,6 +8060,7 @@ var RefIcon = /*#__PURE__*/React__namespace.forwardRef(LoadingOutlined);
8041
8060
  if (process.env.NODE_ENV !== 'production') {
8042
8061
  RefIcon.displayName = 'LoadingOutlined';
8043
8062
  }
8063
+ var LoadingOutlined$1 = RefIcon;
8044
8064
 
8045
8065
  function _regeneratorRuntime() {
8046
8066
  _regeneratorRuntime = function _regeneratorRuntime() {
@@ -8674,6 +8694,7 @@ const showWaveEffect = (target, info) => {
8674
8694
  target: target
8675
8695
  })), holder);
8676
8696
  };
8697
+ var showWaveEffect$1 = showWaveEffect;
8677
8698
 
8678
8699
  const useWave = (nodeRef, className, component) => {
8679
8700
  const {
@@ -8690,7 +8711,7 @@ const useWave = (nodeRef, className, component) => {
8690
8711
  showEffect
8691
8712
  } = wave || {};
8692
8713
  // Customize wave effect
8693
- (showEffect || showWaveEffect)(targetNode, {
8714
+ (showEffect || showWaveEffect$1)(targetNode, {
8694
8715
  className,
8695
8716
  token,
8696
8717
  component,
@@ -8708,6 +8729,7 @@ const useWave = (nodeRef, className, component) => {
8708
8729
  };
8709
8730
  return showDebounceWave;
8710
8731
  };
8732
+ var useWave$1 = useWave;
8711
8733
 
8712
8734
  const Wave = props => {
8713
8735
  const {
@@ -8723,7 +8745,7 @@ const Wave = props => {
8723
8745
  const prefixCls = getPrefixCls('wave');
8724
8746
  const [, hashId] = useStyle$1(prefixCls);
8725
8747
  // =============================== Wave ===============================
8726
- const showWave = useWave(containerRef, classNames(prefixCls, hashId), component);
8748
+ const showWave = useWave$1(containerRef, classNames(prefixCls, hashId), component);
8727
8749
  // ============================== Effect ==============================
8728
8750
  React.useEffect(() => {
8729
8751
  const node = containerRef.current;
@@ -8758,9 +8780,10 @@ const Wave = props => {
8758
8780
  if (process.env.NODE_ENV !== 'production') {
8759
8781
  Wave.displayName = 'Wave';
8760
8782
  }
8783
+ var Wave$1 = Wave;
8761
8784
 
8762
8785
  const useSize = customSize => {
8763
- const size = React.useContext(SizeContext);
8786
+ const size = React.useContext(SizeContext$1);
8764
8787
  const mergedSize = React.useMemo(() => {
8765
8788
  if (!customSize) {
8766
8789
  return size;
@@ -8775,6 +8798,7 @@ const useSize = customSize => {
8775
8798
  }, [customSize, size]);
8776
8799
  return mergedSize;
8777
8800
  };
8801
+ var useSize$1 = useSize;
8778
8802
 
8779
8803
  undefined && undefined.__rest || function (s, e) {
8780
8804
  var t = {};
@@ -8856,6 +8880,7 @@ const ButtonGroup = props => {
8856
8880
  className: classes
8857
8881
  })));
8858
8882
  };
8883
+ var Group = ButtonGroup;
8859
8884
 
8860
8885
  const rxTwoCNChar = /^[\u4e00-\u9fa5]{2}$/;
8861
8886
  const isTwoCNChar = rxTwoCNChar.test.bind(rxTwoCNChar);
@@ -8915,6 +8940,7 @@ const IconWrapper = /*#__PURE__*/React.forwardRef((props, ref) => {
8915
8940
  style: style
8916
8941
  }, children);
8917
8942
  });
8943
+ var IconWrapper$1 = IconWrapper;
8918
8944
 
8919
8945
  const InnerLoadingIcon = /*#__PURE__*/React.forwardRef((props, ref) => {
8920
8946
  const {
@@ -8924,12 +8950,12 @@ const InnerLoadingIcon = /*#__PURE__*/React.forwardRef((props, ref) => {
8924
8950
  iconClassName
8925
8951
  } = props;
8926
8952
  const mergedIconCls = classNames(`${prefixCls}-loading-icon`, className);
8927
- return /*#__PURE__*/React.createElement(IconWrapper, {
8953
+ return /*#__PURE__*/React.createElement(IconWrapper$1, {
8928
8954
  prefixCls: prefixCls,
8929
8955
  className: mergedIconCls,
8930
8956
  style: style,
8931
8957
  ref: ref
8932
- }, /*#__PURE__*/React.createElement(RefIcon, {
8958
+ }, /*#__PURE__*/React.createElement(LoadingOutlined$1, {
8933
8959
  className: iconClassName
8934
8960
  }));
8935
8961
  });
@@ -8985,6 +9011,7 @@ const LoadingIcon = props => {
8985
9011
  });
8986
9012
  });
8987
9013
  };
9014
+ var LoadingIcon$1 = LoadingIcon;
8988
9015
 
8989
9016
  const genButtonBorderStyle = (buttonTypeCls, borderColor) => ({
8990
9017
  // Border
@@ -9051,6 +9078,7 @@ const genGroupStyle = token => {
9051
9078
  genButtonBorderStyle(`${componentCls}-primary`, groupBorderColor), genButtonBorderStyle(`${componentCls}-danger`, colorErrorHover)]
9052
9079
  };
9053
9080
  };
9081
+ var genGroupStyle$1 = genGroupStyle;
9054
9082
 
9055
9083
  const prepareToken = token => {
9056
9084
  const {
@@ -9443,7 +9471,7 @@ var useStyle = genStyleHooks('Button', token => {
9443
9471
  // Group (type, ghost, danger, loading)
9444
9472
  genTypeButtonStyle(buttonToken),
9445
9473
  // Button Group
9446
- genGroupStyle(buttonToken)];
9474
+ genGroupStyle$1(buttonToken)];
9447
9475
  }, prepareComponentToken, {
9448
9476
  unitless: {
9449
9477
  fontWeight: true,
@@ -9671,7 +9699,7 @@ const InternalCompoundedButton = /*#__PURE__*/React.forwardRef((props, ref) => {
9671
9699
  const mergedInsertSpace = (_a = autoInsertSpace !== null && autoInsertSpace !== void 0 ? autoInsertSpace : button === null || button === void 0 ? void 0 : button.autoInsertSpace) !== null && _a !== void 0 ? _a : true;
9672
9700
  const prefixCls = getPrefixCls('btn', customizePrefixCls);
9673
9701
  const [wrapCSSVar, hashId, cssVarCls] = useStyle(prefixCls);
9674
- const disabled = React.useContext(DisabledContext);
9702
+ const disabled = React.useContext(DisabledContext$1);
9675
9703
  const mergedDisabled = customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled;
9676
9704
  const groupSize = React.useContext(GroupSizeContext);
9677
9705
  const loadingOrDelay = React.useMemo(() => getLoadingConfig(loading), [loading]);
@@ -9737,7 +9765,7 @@ const InternalCompoundedButton = /*#__PURE__*/React.forwardRef((props, ref) => {
9737
9765
  small: 'sm',
9738
9766
  middle: undefined
9739
9767
  };
9740
- const sizeFullName = useSize(ctxSize => {
9768
+ const sizeFullName = useSize$1(ctxSize => {
9741
9769
  var _a, _b;
9742
9770
  return (_b = (_a = customizeSize !== null && customizeSize !== void 0 ? customizeSize : compactSize) !== null && _a !== void 0 ? _a : groupSize) !== null && _b !== void 0 ? _b : ctxSize;
9743
9771
  });
@@ -9760,11 +9788,11 @@ const InternalCompoundedButton = /*#__PURE__*/React.forwardRef((props, ref) => {
9760
9788
  const fullStyle = Object.assign(Object.assign({}, button === null || button === void 0 ? void 0 : button.style), customStyle);
9761
9789
  const iconClasses = classNames(customClassNames === null || customClassNames === void 0 ? void 0 : customClassNames.icon, (_b = button === null || button === void 0 ? void 0 : button.classNames) === null || _b === void 0 ? void 0 : _b.icon);
9762
9790
  const iconStyle = Object.assign(Object.assign({}, (styles === null || styles === void 0 ? void 0 : styles.icon) || {}), ((_c = button === null || button === void 0 ? void 0 : button.styles) === null || _c === void 0 ? void 0 : _c.icon) || {});
9763
- const iconNode = icon && !innerLoading ? (/*#__PURE__*/React.createElement(IconWrapper, {
9791
+ const iconNode = icon && !innerLoading ? (/*#__PURE__*/React.createElement(IconWrapper$1, {
9764
9792
  prefixCls: prefixCls,
9765
9793
  className: iconClasses,
9766
9794
  style: iconStyle
9767
- }, icon)) : (/*#__PURE__*/React.createElement(LoadingIcon, {
9795
+ }, icon)) : (/*#__PURE__*/React.createElement(LoadingIcon$1, {
9768
9796
  existIcon: !!icon,
9769
9797
  prefixCls: prefixCls,
9770
9798
  loading: innerLoading
@@ -9794,7 +9822,7 @@ const InternalCompoundedButton = /*#__PURE__*/React.forwardRef((props, ref) => {
9794
9822
  prefixCls: prefixCls
9795
9823
  }));
9796
9824
  if (!isUnBorderedButtonType(mergedType)) {
9797
- buttonNode = /*#__PURE__*/React.createElement(Wave, {
9825
+ buttonNode = /*#__PURE__*/React.createElement(Wave$1, {
9798
9826
  component: "Button",
9799
9827
  disabled: innerLoading
9800
9828
  }, buttonNode);
@@ -9802,14 +9830,15 @@ const InternalCompoundedButton = /*#__PURE__*/React.forwardRef((props, ref) => {
9802
9830
  return wrapCSSVar(buttonNode);
9803
9831
  });
9804
9832
  const Button = InternalCompoundedButton;
9805
- Button.Group = ButtonGroup;
9833
+ Button.Group = Group;
9806
9834
  Button.__ANT_BUTTON = true;
9807
9835
  if (process.env.NODE_ENV !== 'production') {
9808
9836
  Button.displayName = 'Button';
9809
9837
  }
9838
+ var Button$1 = Button;
9810
9839
 
9811
9840
  const FisButton = () => {
9812
- return jsxRuntime.jsx(Button, { children: "Hello from my React component!" });
9841
+ return jsxRuntime.jsx(Button$1, { children: "Hello from my React component!" });
9813
9842
  };
9814
9843
 
9815
9844
  exports.FisButton = FisButton;