@pnkx-lib/ui 1.9.533 → 1.9.536

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 @@ import { jsx, jsxs } from 'react/jsx-runtime';
2
2
  import { Modal, Spin } from 'antd';
3
3
  import * as React from 'react';
4
4
  import React__default, { isValidElement, version as version$1, useRef, useLayoutEffect, useEffect, Component, useContext, forwardRef, useMemo as useMemo$1, useState, Children, useImperativeHandle } from 'react';
5
- import { b as useMemo, i as isFragment$1, L as LocaleContext, l as localeValues, c as useLayoutUpdateEffect, d as Context, _ as _toConsumableArray, u as unit, e as clearFix, f as textEllipsis, g as genStyleHooks, m as merge, r as resetComponent, h as defaultPrefixCls, j as genComponentStyleHook, w as warning, C as ConfigContext, k as useToken, S as SizeContext, n as devUseWarning, p as getAlphaColor, q as getLineHeight, s as genFocusStyle, v as resetIcon, x as genSubStyleComponent, a as useComponentConfig, D as DisabledContext, o as omit, y as useLayoutEffect$1, t as toArray$2 } from '../chunks/toArray-DACIS0E1.js';
5
+ import { b as useMemo, i as isFragment$1, L as LocaleContext, l as localeValues, c as useLayoutUpdateEffect, d as Context, _ as _toConsumableArray, u as unit, e as clearFix, f as textEllipsis, g as genStyleHooks, m as merge, r as resetComponent, h as defaultPrefixCls, j as genComponentStyleHook, w as warning, C as ConfigContext, k as useToken, S as SizeContext, n as devUseWarning, p as getAlphaColor, q as getLineHeight, s as genFocusStyle, v as resetIcon, x as genSubStyleComponent, a as useComponentConfig, D as DisabledContext, y as useLayoutEffect$1, o as omit, t as toArray$2 } from '../chunks/toArray-GtzhUyP3.js';
6
6
  import * as ReactDOM from 'react-dom';
7
7
  import ReactDOM__default, { createPortal, flushSync } from 'react-dom';
8
8
  import { c as classNames } from '../chunks/index-xdC7i8zM.js';
@@ -12,7 +12,7 @@ import { _ as _typeof, b as _defineProperty } from '../chunks/defineProperty-CTL
12
12
  import { R as RefIcon$7 } from '../chunks/LoadingOutlined-C5-PNVpb.js';
13
13
  import { R as RefIcon$8, a as RefIcon$a } from '../chunks/CloseCircleFilled-4jnV3XJV.js';
14
14
  import { R as RefIcon$9 } from '../chunks/CloseOutlined-DdLJZQvZ.js';
15
- import { C as Controller } from '../chunks/index.esm-AaUjBMaK.js';
15
+ import { C as Controller } from '../chunks/index.esm-Dr5ZHcf7.js';
16
16
  import { toast } from '@pnkx-lib/core';
17
17
  import { R as RefIcon$b } from '../chunks/InboxOutlined-W7xl_mLq.js';
18
18
 
@@ -1557,19 +1557,17 @@ function _regeneratorDefine(e, r, n, t) {
1557
1557
  i = 0;
1558
1558
  }
1559
1559
  _regeneratorDefine = function regeneratorDefine(e, r, n, t) {
1560
- if (r) i ? i(e, r, {
1560
+ function o(r, n) {
1561
+ _regeneratorDefine(e, r, function (e) {
1562
+ return this._invoke(r, n, e);
1563
+ });
1564
+ }
1565
+ r ? i ? i(e, r, {
1561
1566
  value: n,
1562
1567
  enumerable: !t,
1563
1568
  configurable: !t,
1564
1569
  writable: !t
1565
- }) : e[r] = n;else {
1566
- var o = function o(r, n) {
1567
- _regeneratorDefine(e, r, function (e) {
1568
- return this._invoke(r, n, e);
1569
- });
1570
- };
1571
- o("next", 0), o("throw", 1), o("return", 2);
1572
- }
1570
+ }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2));
1573
1571
  }, _regeneratorDefine(e, r, n, t);
1574
1572
  }
1575
1573
 
@@ -3576,7 +3574,7 @@ const genWaveStyle = token => {
3576
3574
  }
3577
3575
  };
3578
3576
  };
3579
- const useStyle$3 = genComponentStyleHook('Wave', token => [genWaveStyle(token)]);
3577
+ const useStyle$3 = genComponentStyleHook('Wave', genWaveStyle);
3580
3578
 
3581
3579
  const TARGET_CLS = `${defaultPrefixCls}-wave-target`;
3582
3580
 
@@ -3697,24 +3695,16 @@ function unstableSetRender(render) {
3697
3695
  function isValidWaveColor(color) {
3698
3696
  return color && color !== '#fff' && color !== '#ffffff' && color !== 'rgb(255, 255, 255)' && color !== 'rgba(255, 255, 255, 1)' && !/rgba\((?:\d*, ){3}0\)/.test(color) &&
3699
3697
  // any transparent rgba color
3700
- color !== 'transparent';
3698
+ color !== 'transparent' && color !== 'canvastext';
3701
3699
  }
3702
3700
  function getTargetWaveColor(node) {
3701
+ var _a;
3703
3702
  const {
3704
3703
  borderTopColor,
3705
3704
  borderColor,
3706
3705
  backgroundColor
3707
3706
  } = getComputedStyle(node);
3708
- if (isValidWaveColor(borderTopColor)) {
3709
- return borderTopColor;
3710
- }
3711
- if (isValidWaveColor(borderColor)) {
3712
- return borderColor;
3713
- }
3714
- if (isValidWaveColor(backgroundColor)) {
3715
- return backgroundColor;
3716
- }
3717
- return null;
3707
+ return (_a = [borderTopColor, borderColor, backgroundColor].find(isValidWaveColor)) !== null && _a !== void 0 ? _a : null;
3718
3708
  }
3719
3709
 
3720
3710
  function validateNum(value) {
@@ -4394,6 +4384,13 @@ let AggregationColor = /*#__PURE__*/function () {
4394
4384
  }]);
4395
4385
  }();
4396
4386
 
4387
+ const generateColor = color => {
4388
+ if (color instanceof AggregationColor) {
4389
+ return color;
4390
+ }
4391
+ return new AggregationColor(color);
4392
+ };
4393
+
4397
4394
  const isBright = (value, bgColorToken) => {
4398
4395
  const {
4399
4396
  r,
@@ -4435,6 +4432,7 @@ const prepareComponentToken$2 = token => {
4435
4432
  }), {});
4436
4433
  return Object.assign(Object.assign({}, shadowColorTokens), {
4437
4434
  fontWeight: 400,
4435
+ iconGap: token.marginXS,
4438
4436
  defaultShadow: `0 ${token.controlOutlineWidth}px 0 ${token.controlTmpOutline}`,
4439
4437
  primaryShadow: `0 ${token.controlOutlineWidth}px 0 ${token.controlOutline}`,
4440
4438
  dangerShadow: `0 ${token.controlOutlineWidth}px 0 ${token.colorErrorOutline}`,
@@ -4488,7 +4486,7 @@ const genSharedButtonStyle = token => {
4488
4486
  opacityLoading,
4489
4487
  motionDurationSlow,
4490
4488
  motionEaseInOut,
4491
- marginXS,
4489
+ iconGap,
4492
4490
  calc
4493
4491
  } = token;
4494
4492
  return {
@@ -4496,7 +4494,7 @@ const genSharedButtonStyle = token => {
4496
4494
  outline: 'none',
4497
4495
  position: 'relative',
4498
4496
  display: 'inline-flex',
4499
- gap: token.marginXS,
4497
+ gap: iconGap,
4500
4498
  alignItems: 'center',
4501
4499
  justifyContent: 'center',
4502
4500
  fontWeight,
@@ -4548,7 +4546,7 @@ const genSharedButtonStyle = token => {
4548
4546
  [`&:not(${componentCls}-icon-end)`]: {
4549
4547
  [`${componentCls}-loading-icon-motion`]: {
4550
4548
  '&-appear-start, &-enter-start': {
4551
- marginInlineEnd: calc(marginXS).mul(-1).equal()
4549
+ marginInlineEnd: calc(iconGap).mul(-1).equal()
4552
4550
  },
4553
4551
  '&-appear-active, &-enter-active': {
4554
4552
  marginInlineEnd: 0
@@ -4557,7 +4555,7 @@ const genSharedButtonStyle = token => {
4557
4555
  marginInlineEnd: 0
4558
4556
  },
4559
4557
  '&-leave-active': {
4560
- marginInlineEnd: calc(marginXS).mul(-1).equal()
4558
+ marginInlineEnd: calc(iconGap).mul(-1).equal()
4561
4559
  }
4562
4560
  }
4563
4561
  },
@@ -4565,7 +4563,7 @@ const genSharedButtonStyle = token => {
4565
4563
  flexDirection: 'row-reverse',
4566
4564
  [`${componentCls}-loading-icon-motion`]: {
4567
4565
  '&-appear-start, &-enter-start': {
4568
- marginInlineStart: calc(marginXS).mul(-1).equal()
4566
+ marginInlineStart: calc(iconGap).mul(-1).equal()
4569
4567
  },
4570
4568
  '&-appear-active, &-enter-active': {
4571
4569
  marginInlineStart: 0
@@ -4574,7 +4572,7 @@ const genSharedButtonStyle = token => {
4574
4572
  marginInlineStart: 0
4575
4573
  },
4576
4574
  '&-leave-active': {
4577
- marginInlineStart: calc(marginXS).mul(-1).equal()
4575
+ marginInlineStart: calc(iconGap).mul(-1).equal()
4578
4576
  }
4579
4577
  }
4580
4578
  }
@@ -4697,8 +4695,10 @@ const genPresetColorStyle = token => {
4697
4695
  borderColor: activeColor,
4698
4696
  background: token.colorBgContainer
4699
4697
  })), genDashedButtonStyle(token)), genFilledButtonStyle(token, lightColor, {
4698
+ color: darkColor,
4700
4699
  background: lightHoverColor
4701
4700
  }, {
4701
+ color: darkColor,
4702
4702
  background: lightBorderColor
4703
4703
  })), genTextLinkButtonStyle(token, darkColor, 'link', {
4704
4704
  color: hoverColor
@@ -4724,8 +4724,10 @@ const genDefaultButtonStyle = token => Object.assign(Object.assign(Object.assign
4724
4724
  color: token.solidTextColor,
4725
4725
  background: token.colorBgSolidActive
4726
4726
  })), genDashedButtonStyle(token)), genFilledButtonStyle(token, token.colorFillTertiary, {
4727
+ color: token.defaultColor,
4727
4728
  background: token.colorFillSecondary
4728
4729
  }, {
4730
+ color: token.defaultColor,
4729
4731
  background: token.colorFill
4730
4732
  })), genGhostButtonStyle(token.componentCls, token.ghostBg, token.defaultGhostColor, token.defaultGhostBorderColor, token.colorTextDisabled, token.colorBorder)), genTextLinkButtonStyle(token, token.textTextColor, 'link', {
4731
4733
  color: token.colorLinkHover,
@@ -4745,8 +4747,10 @@ const genPrimaryButtonStyle = token => Object.assign(Object.assign(Object.assign
4745
4747
  borderColor: token.colorPrimaryActive,
4746
4748
  background: token.colorBgContainer
4747
4749
  })), genDashedButtonStyle(token)), genFilledButtonStyle(token, token.colorPrimaryBg, {
4750
+ color: token.colorPrimary,
4748
4751
  background: token.colorPrimaryBgHover
4749
4752
  }, {
4753
+ color: token.colorPrimary,
4750
4754
  background: token.colorPrimaryBorder
4751
4755
  })), genTextLinkButtonStyle(token, token.colorPrimaryText, 'text', {
4752
4756
  color: token.colorPrimaryTextHover,
@@ -4780,8 +4784,10 @@ const genDangerousStyle = token => Object.assign(Object.assign(Object.assign(Obj
4780
4784
  color: token.colorErrorActive,
4781
4785
  borderColor: token.colorErrorActive
4782
4786
  })), genDashedButtonStyle(token)), genFilledButtonStyle(token, token.colorErrorBg, {
4787
+ color: token.colorError,
4783
4788
  background: token.colorErrorBgFilledHover
4784
4789
  }, {
4790
+ color: token.colorError,
4785
4791
  background: token.colorErrorBgActive
4786
4792
  })), genTextLinkButtonStyle(token, token.colorError, 'text', {
4787
4793
  color: token.colorErrorHover,
@@ -4949,7 +4955,7 @@ const useStyle$2 = genStyleHooks('Button', token => {
4949
4955
  });
4950
4956
 
4951
4957
  // handle border collapse
4952
- function compactItemBorder(token, parentCls, options) {
4958
+ function compactItemBorder(token, parentCls, options, prefixCls) {
4953
4959
  const {
4954
4960
  focusElCls,
4955
4961
  focus,
@@ -4961,13 +4967,16 @@ function compactItemBorder(token, parentCls, options) {
4961
4967
  [`&-item:not(${parentCls}-last-item)`]: {
4962
4968
  marginInlineEnd: token.calc(token.lineWidth).mul(-1).equal()
4963
4969
  },
4970
+ [`&-item:not(${prefixCls}-status-success)`]: {
4971
+ zIndex: 2
4972
+ },
4964
4973
  '&-item': Object.assign(Object.assign({
4965
4974
  [hoverEffects]: {
4966
- zIndex: 2
4975
+ zIndex: 3
4967
4976
  }
4968
4977
  }, focusElCls ? {
4969
4978
  [`&${focusElCls}`]: {
4970
- zIndex: 2
4979
+ zIndex: 3
4971
4980
  }
4972
4981
  } : {}), {
4973
4982
  [`&[disabled] ${childCombinator}`]: {
@@ -5008,19 +5017,22 @@ function genCompactItemStyle(token, options = {
5008
5017
  } = token;
5009
5018
  const compactCls = `${componentCls}-compact`;
5010
5019
  return {
5011
- [compactCls]: Object.assign(Object.assign({}, compactItemBorder(token, compactCls, options)), compactItemBorderRadius(componentCls, compactCls, options))
5020
+ [compactCls]: Object.assign(Object.assign({}, compactItemBorder(token, compactCls, options, componentCls)), compactItemBorderRadius(componentCls, compactCls, options))
5012
5021
  };
5013
5022
  }
5014
5023
 
5015
- function compactItemVerticalBorder(token, parentCls) {
5024
+ function compactItemVerticalBorder(token, parentCls, prefixCls) {
5016
5025
  return {
5017
5026
  // border collapse
5018
5027
  [`&-item:not(${parentCls}-last-item)`]: {
5019
5028
  marginBottom: token.calc(token.lineWidth).mul(-1).equal()
5020
5029
  },
5030
+ [`&-item:not(${prefixCls}-status-success)`]: {
5031
+ zIndex: 2
5032
+ },
5021
5033
  '&-item': {
5022
5034
  '&:hover,&:focus,&:active': {
5023
- zIndex: 2
5035
+ zIndex: 3
5024
5036
  },
5025
5037
  '&[disabled]': {
5026
5038
  zIndex: 0
@@ -5050,7 +5062,7 @@ function compactItemBorderVerticalRadius(prefixCls, parentCls) {
5050
5062
  function genCompactItemVerticalStyle(token) {
5051
5063
  const compactCls = `${token.componentCls}-compact-vertical`;
5052
5064
  return {
5053
- [compactCls]: Object.assign(Object.assign({}, compactItemVerticalBorder(token, compactCls)), compactItemBorderVerticalRadius(token.componentCls, compactCls))
5065
+ [compactCls]: Object.assign(Object.assign({}, compactItemVerticalBorder(token, compactCls, token.componentCls)), compactItemBorderVerticalRadius(token.componentCls, compactCls))
5054
5066
  };
5055
5067
  }
5056
5068
 
@@ -5126,7 +5138,7 @@ const InternalCompoundedButton = /*#__PURE__*/React__default.forwardRef((props,
5126
5138
  variant,
5127
5139
  type,
5128
5140
  danger = false,
5129
- shape = 'default',
5141
+ shape: customizeShape,
5130
5142
  size: customizeSize,
5131
5143
  styles,
5132
5144
  disabled: customDisabled,
@@ -5151,6 +5163,7 @@ const InternalCompoundedButton = /*#__PURE__*/React__default.forwardRef((props,
5151
5163
  const {
5152
5164
  button
5153
5165
  } = React__default.useContext(ConfigContext);
5166
+ const shape = customizeShape || (button === null || button === void 0 ? void 0 : button.shape) || 'default';
5154
5167
  const [mergedColor, mergedVariant] = useMemo$1(() => {
5155
5168
  // >>>>> Local
5156
5169
  // Color & Variant
@@ -5207,7 +5220,7 @@ const InternalCompoundedButton = /*#__PURE__*/React__default.forwardRef((props,
5207
5220
  // ========================= Effect =========================
5208
5221
  // Loading. Should use `useLayoutEffect` to avoid low perf multiple click issue.
5209
5222
  // https://github.com/ant-design/ant-design/issues/51325
5210
- useLayoutEffect(() => {
5223
+ useLayoutEffect$1(() => {
5211
5224
  let delayTimer = null;
5212
5225
  if (loadingOrDelay.delay > 0) {
5213
5226
  delayTimer = setTimeout(() => {
@@ -7820,8 +7833,6 @@ function useAlign(open, popupEle, target, placement, builtinPlacements, popupAli
7820
7833
  var doc = popupElement.ownerDocument;
7821
7834
  var win = getWin(popupElement);
7822
7835
  var _win$getComputedStyle = win.getComputedStyle(popupElement),
7823
- width = _win$getComputedStyle.width,
7824
- height = _win$getComputedStyle.height,
7825
7836
  popupPosition = _win$getComputedStyle.position;
7826
7837
  var originLeft = popupElement.style.left;
7827
7838
  var originTop = popupElement.style.top;
@@ -7870,6 +7881,9 @@ function useAlign(open, popupEle, target, placement, builtinPlacements, popupAli
7870
7881
  };
7871
7882
  }
7872
7883
  var popupRect = popupElement.getBoundingClientRect();
7884
+ var _win$getComputedStyle2 = win.getComputedStyle(popupElement),
7885
+ height = _win$getComputedStyle2.height,
7886
+ width = _win$getComputedStyle2.width;
7873
7887
  popupRect.x = (_popupRect$x = popupRect.x) !== null && _popupRect$x !== void 0 ? _popupRect$x : popupRect.left;
7874
7888
  popupRect.y = (_popupRect$y = popupRect.y) !== null && _popupRect$y !== void 0 ? _popupRect$y : popupRect.top;
7875
7889
  var _doc$documentElement = doc.documentElement,
@@ -8743,6 +8757,10 @@ function generateTrigger() {
8743
8757
  cloneProps.className = classNames(originChildProps.className, className);
8744
8758
  }
8745
8759
 
8760
+ // ============================ Perf ============================
8761
+ var renderedRef = React.useRef(false);
8762
+ renderedRef.current || (renderedRef.current = forceRender || mergedOpen || inMotion);
8763
+
8746
8764
  // =========================== Render ===========================
8747
8765
  var mergedChildrenProps = _objectSpread2(_objectSpread2({}, originChildProps), cloneProps);
8748
8766
 
@@ -8777,7 +8795,7 @@ function generateTrigger() {
8777
8795
  onResize: onTargetResize
8778
8796
  }, /*#__PURE__*/React.createElement(TriggerWrapper, {
8779
8797
  getTriggerDOMNode: getTriggerDOMNode
8780
- }, triggerNode)), /*#__PURE__*/React.createElement(TriggerContext.Provider, {
8798
+ }, triggerNode)), renderedRef.current && /*#__PURE__*/React.createElement(TriggerContext.Provider, {
8781
8799
  value: context
8782
8800
  }, /*#__PURE__*/React.createElement(Popup, {
8783
8801
  portal: PortalComponent,
@@ -9463,6 +9481,11 @@ function getPlacements(config) {
9463
9481
  borderRadius} = config;
9464
9482
  const halfArrowWidth = arrowWidth / 2;
9465
9483
  const placementMap = {};
9484
+ // Dynamic offset
9485
+ const arrowOffset = getArrowOffsetToken({
9486
+ contentRadius: borderRadius,
9487
+ limitVerticalRadius: true
9488
+ });
9466
9489
  Object.keys(PlacementAlignMap).forEach(key => {
9467
9490
  const template = arrowPointAtCenter && ArrowCenterPlacementAlignMap[key] || PlacementAlignMap[key];
9468
9491
  const placementInfo = Object.assign(Object.assign({}, template), {
@@ -9497,11 +9520,6 @@ function getPlacements(config) {
9497
9520
  placementInfo.offset[0] = halfArrowWidth + offset;
9498
9521
  break;
9499
9522
  }
9500
- // Dynamic offset
9501
- const arrowOffset = getArrowOffsetToken({
9502
- contentRadius: borderRadius,
9503
- limitVerticalRadius: true
9504
- });
9505
9523
  if (arrowPointAtCenter) {
9506
9524
  switch (key) {
9507
9525
  case 'topLeft':
@@ -9573,7 +9591,7 @@ const genTooltipStyle = token => {
9573
9591
  minWidth: centerAlignMinWidth,
9574
9592
  minHeight: controlHeight,
9575
9593
  padding: `${unit(token.calc(paddingSM).div(2).equal())} ${unit(paddingXS)}`,
9576
- color: tooltipColor,
9594
+ color: `var(--ant-tooltip-color, ${tooltipColor})`,
9577
9595
  textAlign: 'start',
9578
9596
  textDecoration: 'none',
9579
9597
  wordWrap: 'break-word',
@@ -9676,8 +9694,12 @@ function parseColor(prefixCls, color) {
9676
9694
  });
9677
9695
  const overlayStyle = {};
9678
9696
  const arrowStyle = {};
9697
+ const rgb = generateColor(color).toRgb();
9698
+ const luminance = (0.299 * rgb.r + 0.587 * rgb.g + 0.114 * rgb.b) / 255;
9699
+ const textColor = luminance < 0.5 ? '#FFF' : '#000';
9679
9700
  if (color && !isInternalColor) {
9680
9701
  overlayStyle.background = color;
9702
+ overlayStyle['--ant-tooltip-color'] = textColor;
9681
9703
  // @ts-ignore
9682
9704
  arrowStyle['--antd-arrow-background-color'] = color;
9683
9705
  }
@@ -11046,6 +11068,7 @@ var __awaiter = undefined && undefined.__awaiter || function (thisArg, _argument
11046
11068
  };
11047
11069
  const LIST_IGNORE = `__LIST_IGNORE_${Date.now()}__`;
11048
11070
  const InternalUpload = (props, ref) => {
11071
+ const config = useComponentConfig('upload');
11049
11072
  const {
11050
11073
  fileList,
11051
11074
  defaultFileList,
@@ -11080,6 +11103,7 @@ const InternalUpload = (props, ref) => {
11080
11103
  // ===================== Disabled =====================
11081
11104
  const disabled = React.useContext(DisabledContext);
11082
11105
  const mergedDisabled = customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled;
11106
+ const customRequest = props.customRequest || config.customRequest;
11083
11107
  const [mergedFileList, setMergedFileList] = useMergedState(defaultFileList || [], {
11084
11108
  value: fileList,
11085
11109
  postState: list => list !== null && list !== void 0 ? list : []
@@ -11209,7 +11233,6 @@ const InternalUpload = (props, ref) => {
11209
11233
  const onSuccess = (response, file, xhr) => {
11210
11234
  try {
11211
11235
  if (typeof response === 'string') {
11212
- // biome-ignore lint/style/noParameterAssign: we need to modify response
11213
11236
  response = JSON.parse(response);
11214
11237
  }
11215
11238
  } catch (_a) {
@@ -11302,6 +11325,7 @@ const InternalUpload = (props, ref) => {
11302
11325
  onProgress,
11303
11326
  onSuccess
11304
11327
  }, props), {
11328
+ customRequest,
11305
11329
  data,
11306
11330
  multiple,
11307
11331
  action,
package/es/ui/Layout.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
- import { g as genStyleHooks, u as unit, C as ConfigContext, o as omit, t as toArray, a as useComponentConfig, _ as _toConsumableArray } from '../chunks/toArray-DACIS0E1.js';
2
+ import { g as genStyleHooks, u as unit, C as ConfigContext, o as omit, t as toArray, a as useComponentConfig, _ as _toConsumableArray } from '../chunks/toArray-GtzhUyP3.js';
3
3
  import * as React from 'react';
4
4
  import { useContext, useState, useEffect, useRef } from 'react';
5
5
  import { c as classNames } from '../chunks/index-xdC7i8zM.js';
@@ -185,7 +185,7 @@ const prepareComponentToken = token => {
185
185
  };
186
186
  // ============================== Export ==============================
187
187
  const DEPRECATED_TOKENS = [['colorBgBody', 'bodyBg'], ['colorBgHeader', 'headerBg'], ['colorBgTrigger', 'triggerBg']];
188
- const useStyle$1 = genStyleHooks('Layout', token => [genLayoutStyle(token)], prepareComponentToken, {
188
+ const useStyle$1 = genStyleHooks('Layout', genLayoutStyle, prepareComponentToken, {
189
189
  deprecatedTokens: DEPRECATED_TOKENS
190
190
  });
191
191
 
@@ -296,7 +296,7 @@ const genSiderStyle = token => {
296
296
  }
297
297
  };
298
298
  };
299
- const useStyle = genStyleHooks(['Layout', 'Sider'], token => [genSiderStyle(token)], prepareComponentToken, {
299
+ const useStyle = genStyleHooks(['Layout', 'Sider'], genSiderStyle, prepareComponentToken, {
300
300
  deprecatedTokens: DEPRECATED_TOKENS
301
301
  });
302
302
 
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from 'react/jsx-runtime';
2
- import { u as useForm } from '../chunks/index.esm-AaUjBMaK.js';
2
+ import { u as useForm } from '../chunks/index.esm-Dr5ZHcf7.js';
3
3
  import { Button } from './Button.js';
4
4
  import { I as Icon, _ as _extends } from '../chunks/AntdIcon-KP2HuB_x.js';
5
5
  import * as React from 'react';