@ant-design/pro-components 2.0.4 → 2.0.5

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.
@@ -39222,7 +39222,7 @@ var genProStyle = function genProStyle(token) {
39222
39222
  paddingBlock: 16,
39223
39223
  paddingInlineStart: 8,
39224
39224
  paddingInlineEnd: 16,
39225
- borderTop: "1px solid ".concat(token.colorSplit)
39225
+ borderBlockStart: "1px solid ".concat(token.colorSplit)
39226
39226
  });
39227
39227
  };
39228
39228
 
@@ -44892,9 +44892,9 @@ var CheckCard_style_genProStyle = function genProStyle(token) {
44892
44892
  width: 0,
44893
44893
  height: 0,
44894
44894
  border: "6px solid ".concat(token.colorPrimary),
44895
- borderBottom: '6px solid transparent',
44896
- borderLeft: '6px solid transparent',
44897
- borderTopRightRadius: '2px',
44895
+ borderBlockEnd: '6px solid transparent',
44896
+ borderInlineStart: '6px solid transparent',
44897
+ borderBlockStartRightRadius: '2px',
44898
44898
  content: "''"
44899
44899
  }
44900
44900
  }), _token$componentCls));
@@ -45197,11 +45197,11 @@ var Statistic_style_genProStyle = function genProStyle(token) {
45197
45197
  }), _layoutHorizontal)), defineProperty_defineProperty(_layoutInline, '&-trend-up', defineProperty_defineProperty({}, "".concat(token.antCls, "-statistic-content"), defineProperty_defineProperty({
45198
45198
  color: '#f5222d'
45199
45199
  }, "".concat(token.componentCls, "--trend-icon"), {
45200
- borderBottomColor: '#f5222d'
45200
+ borderBlockEndColor: '#f5222d'
45201
45201
  }))), defineProperty_defineProperty(_layoutInline, '&-trend-down', defineProperty_defineProperty({}, "".concat(token.antCls, "-statistic-content"), defineProperty_defineProperty({
45202
45202
  color: '#389e0d'
45203
45203
  }, "".concat(token.componentCls, "--trend-icon"), {
45204
- borderBottomColor: '#52c41a'
45204
+ borderBlockEndColor: '#52c41a'
45205
45205
  }))), _layoutInline)), _token$componentCls));
45206
45206
  };
45207
45207
 
@@ -45368,7 +45368,7 @@ var genActionsStyle = function genActionsStyle(token) {
45368
45368
  paddingInline: 0,
45369
45369
  listStyle: 'none',
45370
45370
  background: token.colorBgContainer,
45371
- borderTop: "".concat(token.lineWidth, "px ").concat(token.lineType, " ").concat(token.colorSplit)
45371
+ borderBlockStart: "".concat(token.lineWidth, "px ").concat(token.lineType, " ").concat(token.colorSplit)
45372
45372
  }, defineProperty_defineProperty(_$concat, "".concat(antCls, "-space"), {
45373
45373
  gap: '0 !important',
45374
45374
  width: '100%'
@@ -45667,7 +45667,7 @@ var genProCardStyle = function genProCardStyle(token) {
45667
45667
  width: 0,
45668
45668
  height: 0,
45669
45669
  border: "6px solid ".concat(token.colorPrimary),
45670
- borderBottom: '6px solid transparent',
45670
+ borderBlockEnd: '6px solid transparent',
45671
45671
  borderInlineStart: '6px solid transparent',
45672
45672
  borderStartEndRadius: 2,
45673
45673
  content: '""'
@@ -45719,7 +45719,7 @@ var genProCardStyle = function genProCardStyle(token) {
45719
45719
  }), defineProperty_defineProperty(_objectSpread2, '&&-collapse', defineProperty_defineProperty({}, "> ".concat(componentCls), {
45720
45720
  '&-header': {
45721
45721
  paddingBlockEnd: token.padding,
45722
- borderBottom: 0
45722
+ borderBlockEnd: 0
45723
45723
  },
45724
45724
  '&-body': {
45725
45725
  display: 'none'
@@ -45735,7 +45735,7 @@ var genProCardStyle = function genProCardStyle(token) {
45735
45735
  '&': {
45736
45736
  paddingBlockEnd: token.padding
45737
45737
  },
45738
- borderBottom: "".concat(token.lineWidth, "px ").concat(token.lineType, " ").concat(token.colorSplit)
45738
+ borderBlockEnd: "".concat(token.lineWidth, "px ").concat(token.lineType, " ").concat(token.colorSplit)
45739
45739
  },
45740
45740
  '&-collapsible': {
45741
45741
  cursor: 'pointer'
@@ -45771,7 +45771,7 @@ var genProCardStyle = function genProCardStyle(token) {
45771
45771
  }), _objectSpread2))), defineProperty_defineProperty(_ref, "".concat(componentCls, "-col"), (_$concat2 = {}, defineProperty_defineProperty(_$concat2, "&".concat(componentCls, "-split-vertical"), {
45772
45772
  borderInlineEnd: "".concat(token.lineWidth, "px ").concat(token.lineType, " ").concat(token.colorSplit)
45773
45773
  }), defineProperty_defineProperty(_$concat2, "&".concat(componentCls, "-split-horizontal"), {
45774
- borderBottom: "".concat(token.lineWidth, "px ").concat(token.lineType, " ").concat(token.colorSplit)
45774
+ borderBlockEnd: "".concat(token.lineWidth, "px ").concat(token.lineType, " ").concat(token.colorSplit)
45775
45775
  }), _$concat2)), defineProperty_defineProperty(_ref, "".concat(componentCls, "-tabs"), (_$concat9 = {}, defineProperty_defineProperty(_$concat9, "".concat(token.antCls, "-tabs-top > ").concat(token.antCls, "-tabs-nav"), defineProperty_defineProperty({
45776
45776
  marginBlockEnd: 0
45777
45777
  }, "".concat(token.antCls, "-tabs-nav-list"), {
@@ -46260,7 +46260,7 @@ var StatisticCard_style_genProStyle = function genProStyle(token) {
46260
46260
  '&-footer': {
46261
46261
  marginBlockStart: 8,
46262
46262
  paddingBlockStart: '16px',
46263
- borderTop: "rgba(0, 0, 0, 0.08) solid ".concat(token.colorBorder)
46263
+ borderBlockStart: "rgba(0, 0, 0, 0.08) solid ".concat(token.colorBorder)
46264
46264
  }
46265
46265
  });
46266
46266
  };
@@ -59246,8 +59246,8 @@ var FieldDigitRange = function FieldDigitRange(_ref, ref) {
59246
59246
  style: {
59247
59247
  width: separatorWidth,
59248
59248
  textAlign: 'center',
59249
- borderLeft: 0,
59250
- borderRight: 0,
59249
+ borderInlineStart: 0,
59250
+ borderInlineEnd: 0,
59251
59251
  pointerEvents: 'none',
59252
59252
  backgroundColor: '#FFF'
59253
59253
  },
@@ -59258,7 +59258,7 @@ var FieldDigitRange = function FieldDigitRange(_ref, ref) {
59258
59258
  id: id !== null && id !== void 0 ? id : "".concat(id, "-1"),
59259
59259
  style: {
59260
59260
  width: "calc((100% - ".concat(separatorWidth, "px) / 2)"),
59261
- borderLeft: 0
59261
+ borderInlineStart: 0
59262
59262
  },
59263
59263
  value: valuePair === null || valuePair === void 0 ? void 0 : valuePair[1],
59264
59264
  defaultValue: defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue[1],
@@ -68953,10 +68953,24 @@ var QueryFilter_style_genProStyle = function genProStyle(token) {
68953
68953
 
68954
68954
  return defineProperty_defineProperty({}, token.proComponentsCls, defineProperty_defineProperty({}, token.componentCls, (_token$componentCls = {
68955
68955
  padding: 24
68956
- }, defineProperty_defineProperty(_token$componentCls, "".concat(token.antCls, "-form-item"), {
68956
+ }, defineProperty_defineProperty(_token$componentCls, "&".concat(token.antCls, "-form-horizontal"), {
68957
+ paddingInline: 0
68958
+ }), defineProperty_defineProperty(_token$componentCls, "".concat(token.antCls, "-form-item"), {
68959
+ marginBlock: 0
68960
+ }), defineProperty_defineProperty(_token$componentCls, "".concat(token.proComponentsCls, "-form-group-title"), {
68957
68961
  marginBlock: 0
68958
68962
  }), defineProperty_defineProperty(_token$componentCls, '&-row', {
68959
- rowGap: 24
68963
+ rowGap: 24,
68964
+ '&-split-line': {
68965
+ '&:after': {
68966
+ position: 'absolute',
68967
+ width: '100%',
68968
+ content: '""',
68969
+ height: 1,
68970
+ insetBlockEnd: -12,
68971
+ borderBlockEnd: '1px dashed ' + token.colorSplit
68972
+ }
68973
+ }
68960
68974
  }), defineProperty_defineProperty(_token$componentCls, '&-collapse-button', {
68961
68975
  display: 'flex',
68962
68976
  alignItems: 'center'
@@ -69174,25 +69188,18 @@ var QueryFilterContent = function QueryFilterContent(props) {
69174
69188
 
69175
69189
  currentSpan += colSpan;
69176
69190
 
69177
- var colItem = (0,jsx_runtime.jsx)(external_antd_.Col, {
69178
- span: colSpan,
69179
- children: itemDom
69180
- }, itemKey);
69181
-
69182
69191
  if (split && currentSpan % 24 === 0 && index < itemLength - 1) {
69183
- return [colItem, (0,jsx_runtime.jsx)(external_antd_.Col, {
69184
- span: "24",
69185
- children: (0,jsx_runtime.jsx)(external_antd_.Divider, {
69186
- style: {
69187
- marginBlockStart: -8,
69188
- marginBlockEnd: 16
69189
- },
69190
- dashed: true
69191
- })
69192
- }, "line")];
69192
+ return (0,jsx_runtime.jsx)(external_antd_.Col, {
69193
+ span: colSpan,
69194
+ className: "".concat(props.baseClassName, "-row-split-line"),
69195
+ children: itemDom
69196
+ }, itemKey);
69193
69197
  }
69194
69198
 
69195
- return colItem;
69199
+ return (0,jsx_runtime.jsx)(external_antd_.Col, {
69200
+ span: colSpan,
69201
+ children: itemDom
69202
+ }, itemKey);
69196
69203
  });
69197
69204
  var hiddenNum = showHiddenNum && processedList.filter(function (item) {
69198
69205
  return item.hidden;
@@ -69350,6 +69357,7 @@ function QueryFilter(props) {
69350
69357
  submitter: renderSubmitter,
69351
69358
  items: items,
69352
69359
  split: split,
69360
+ baseClassName: baseClassName,
69353
69361
  resetText: props.resetText,
69354
69362
  searchText: props.searchText,
69355
69363
  searchGutter: searchGutter,
@@ -71676,7 +71684,7 @@ function BaseForm(props) {
71676
71684
  },
71677
71685
  autoComplete: "off",
71678
71686
  form: form
71679
- }, omit_js_es(propRest, ['autoFocusFirstInput'])), {}, {
71687
+ }, omit_js_es(propRest, ['labelWidth', 'autoFocusFirstInput'])), {}, {
71680
71688
  // 组合 urlSearch 和 initialValues
71681
71689
  initialValues: syncToUrlAsImportant ? objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, initialData), initialValues), urlParamsMergeInitialValues) : objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, urlParamsMergeInitialValues), initialData), initialValues),
71682
71690
  onValuesChange: function onValuesChange(changedValues, values) {
@@ -75279,7 +75287,7 @@ var StatisticSkeleton = function StatisticSkeleton(_ref2) {
75279
75287
  children: new Array(arraySize).fill(null).map(function (_, index) {
75280
75288
  return (0,jsx_runtime.jsxs)("div", {
75281
75289
  style: {
75282
- borderLeft: arraySize > 2 && index === 1 ? '1px solid rgba(0,0,0,0.06)' : undefined,
75290
+ borderInlineStart: arraySize > 2 && index === 1 ? '1px solid rgba(0,0,0,0.06)' : undefined,
75283
75291
  paddingInlineStart: firstWidth(index),
75284
75292
  flex: 1,
75285
75293
  marginInlineEnd: index === 0 ? 16 : 0
@@ -78148,7 +78156,7 @@ var genFooterToolBarStyle = function genFooterToolBarStyle(token) {
78148
78156
 
78149
78157
  /* A way to reset the style of the component. */
78150
78158
  backgroundColor: 'rgba(255, 255, 255, 0.58)',
78151
- borderTop: "1px solid ".concat(token.colorSplit),
78159
+ borderBlockStart: "1px solid ".concat(token.colorSplit),
78152
78160
  '-webkit-backdrop-filter': 'blur(8px)',
78153
78161
  backdropFilter: 'blur(8px)',
78154
78162
  transition: 'all 0.2s ease 0s',
@@ -79479,7 +79487,7 @@ var genProLayoutHeaderStyle = function genProLayoutHeaderStyle(token) {
79479
79487
  width: '100%',
79480
79488
  paddingBlock: 0,
79481
79489
  paddingInline: 8,
79482
- borderBottom: "1px solid ".concat(token.colorSplit),
79490
+ borderBlockEnd: "1px solid ".concat(token.colorSplit),
79483
79491
  backgroundColor: token.colorBgHeader || 'rgba(255, 255, 255, 0.4)',
79484
79492
  WebkitBackdropFilter: 'blur(8px)',
79485
79493
  backdropFilter: 'blur(8px)',
@@ -80635,7 +80643,7 @@ var MenuUtil = /*#__PURE__*/_createClass(function MenuUtil(props) {
80635
80643
  key: (item.key || item.path) + '-group-divider',
80636
80644
  style: {
80637
80645
  padding: 0,
80638
- borderBottom: 0,
80646
+ borderBlockEnd: 0,
80639
80647
  margin: _this.props.collapsed ? '4px' : '6px 16px',
80640
80648
  marginBlockStart: _this.props.collapsed ? 4 : 8,
80641
80649
  borderColor: designToken === null || designToken === void 0 ? void 0 : (_designToken$sider = designToken.sider) === null || _designToken$sider === void 0 ? void 0 : _designToken$sider.colorMenuItemDivider
@@ -85684,7 +85692,7 @@ var style_genSiderMenuStyle = function genSiderMenuStyle(token) {
85684
85692
  paddingBlock: 16,
85685
85693
  color: token.colorTextMenu,
85686
85694
  cursor: 'pointer',
85687
- borderBottom: "1px solid ".concat(token.colorMenuItemDivider),
85695
+ borderBlockEnd: "1px solid ".concat(token.colorMenuItemDivider),
85688
85696
  '> a': {
85689
85697
  display: 'flex',
85690
85698
  alignItems: 'center',
@@ -91380,7 +91388,7 @@ var genProListStyle = function genProListStyle(token) {
91380
91388
  }, "".concat(token.antCls, "-tabs-top > ").concat(token.antCls, "-tabs-nav"), defineProperty_defineProperty({
91381
91389
  marginBlockEnd: 0,
91382
91390
  '&::before': {
91383
- borderBottom: 0
91391
+ borderBlockEnd: 0
91384
91392
  }
91385
91393
  }, "".concat(token.antCls, "-tabs-nav-list"), {
91386
91394
  marginBlockStart: 0,
@@ -113173,39 +113181,39 @@ var es_style_genProListStyle = function genProListStyle(token) {
113173
113181
  }, defineProperty_defineProperty(_token$componentCls, "".concat(token.proComponentsCls, "-table-alert"), {
113174
113182
  marginBlockEnd: '16px'
113175
113183
  }), defineProperty_defineProperty(_token$componentCls, '&-row', (_row = {
113176
- borderBottom: "1px solid ".concat(token.colorSplit),
113177
- '&:last-child': defineProperty_defineProperty({
113178
- borderBottom: 'none'
113179
- }, "".concat(token.antCls, "-list-item"), {
113180
- borderBottom: 'none'
113181
- }),
113182
- '&:hover': (_hover = {
113183
- backgroundColor: 'rgba(0, 0, 0, 0.02)',
113184
- transition: 'background-color 0.3s'
113185
- }, defineProperty_defineProperty(_hover, "".concat(token.antCls, "-list-item-action"), {
113186
- display: 'block'
113187
- }), defineProperty_defineProperty(_hover, "".concat(token.antCls, "-list-item-extra"), {
113188
- display: 'flex'
113189
- }), defineProperty_defineProperty(_hover, "".concat(token.componentCls, "-row-extra"), {
113190
- display: 'block'
113191
- }), defineProperty_defineProperty(_hover, "".concat(token.componentCls, "-row-subheader-actions"), {
113192
- display: 'block'
113193
- }), _hover),
113194
- '&-card': defineProperty_defineProperty({
113195
- marginBlock: 8,
113196
- marginInline: 0,
113197
- paddingBlock: 0,
113198
- paddingInline: 8,
113199
- '&:hover': {
113200
- backgroundColor: 'transparent'
113201
- }
113202
- }, "".concat(token.antCls, "-list-item-meta-title"), {
113203
- flexShrink: 9,
113204
- marginBlock: 0,
113205
- marginInline: 0,
113206
- lineHeight: '22px'
113207
- })
113208
- }, defineProperty_defineProperty(_row, "&".concat(token.componentCls, "-row-editable"), defineProperty_defineProperty({}, "".concat(token.componentCls, "-list-item"), {
113184
+ borderBlockEnd: "1px solid ".concat(token.colorSplit)
113185
+ }, defineProperty_defineProperty(_row, "".concat(token.antCls, "-list-item-meta-title"), {
113186
+ borderBlockEnd: 'none',
113187
+ margin: 0
113188
+ }), defineProperty_defineProperty(_row, '&:last-child', defineProperty_defineProperty({
113189
+ borderBlockEnd: 'none'
113190
+ }, "".concat(token.antCls, "-list-item"), {
113191
+ borderBlockEnd: 'none'
113192
+ })), defineProperty_defineProperty(_row, '&:hover', (_hover = {
113193
+ backgroundColor: 'rgba(0, 0, 0, 0.02)',
113194
+ transition: 'background-color 0.3s'
113195
+ }, defineProperty_defineProperty(_hover, "".concat(token.antCls, "-list-item-action"), {
113196
+ display: 'block'
113197
+ }), defineProperty_defineProperty(_hover, "".concat(token.antCls, "-list-item-extra"), {
113198
+ display: 'flex'
113199
+ }), defineProperty_defineProperty(_hover, "".concat(token.componentCls, "-row-extra"), {
113200
+ display: 'block'
113201
+ }), defineProperty_defineProperty(_hover, "".concat(token.componentCls, "-row-subheader-actions"), {
113202
+ display: 'block'
113203
+ }), _hover)), defineProperty_defineProperty(_row, '&-card', defineProperty_defineProperty({
113204
+ marginBlock: 8,
113205
+ marginInline: 0,
113206
+ paddingBlock: 0,
113207
+ paddingInline: 8,
113208
+ '&:hover': {
113209
+ backgroundColor: 'transparent'
113210
+ }
113211
+ }, "".concat(token.antCls, "-list-item-meta-title"), {
113212
+ flexShrink: 9,
113213
+ marginBlock: 0,
113214
+ marginInline: 0,
113215
+ lineHeight: '22px'
113216
+ })), defineProperty_defineProperty(_row, "&".concat(token.componentCls, "-row-editable"), defineProperty_defineProperty({}, "".concat(token.componentCls, "-list-item"), {
113209
113217
  '&-meta': {
113210
113218
  '&-avatar,&-description,&-title': {
113211
113219
  paddingBlock: 6,
@@ -113301,13 +113309,13 @@ var es_style_genProListStyle = function genProListStyle(token) {
113301
113309
  width: '16px',
113302
113310
  marginInlineEnd: '12px'
113303
113311
  }), defineProperty_defineProperty(_row, '&-no-split', (_noSplit = {}, defineProperty_defineProperty(_noSplit, "".concat(token.componentCls, "-row"), {
113304
- borderBottom: 'none'
113312
+ borderBlockEnd: 'none'
113305
113313
  }), defineProperty_defineProperty(_noSplit, "".concat(token.antCls, "-list ").concat(token.antCls, "-list-item"), {
113306
- borderBottom: 'none'
113314
+ borderBlockEnd: 'none'
113307
113315
  }), _noSplit)), defineProperty_defineProperty(_row, '&-bordered', defineProperty_defineProperty({}, "".concat(token.componentCls, "-toolbar"), {
113308
- borderBottom: "1px solid ".concat(token.colorSplit)
113316
+ borderBlockEnd: "1px solid ".concat(token.colorSplit)
113309
113317
  })), defineProperty_defineProperty(_row, "".concat(token.antCls, "-list-vertical"), (_$concat5 = {}, defineProperty_defineProperty(_$concat5, "".concat(token.componentCls, "-row"), {
113310
- borderBottom: '12px 18px 12px 24px'
113318
+ borderBlockEnd: '12px 18px 12px 24px'
113311
113319
  }), defineProperty_defineProperty(_$concat5, '&-header-title', {
113312
113320
  display: 'flex',
113313
113321
  flexDirection: 'column',
@@ -113340,7 +113348,7 @@ var es_style_genProListStyle = function genProListStyle(token) {
113340
113348
  '&-header': {
113341
113349
  paddingBlock: 0,
113342
113350
  paddingInline: 0,
113343
- borderBottom: 'none'
113351
+ borderBlockEnd: 'none'
113344
113352
  }
113345
113353
  }, "".concat(token.antCls, "-list-item"), {
113346
113354
  width: '100%',
@@ -113532,15 +113540,15 @@ function BaseProList(props) {
113532
113540
  ;// CONCATENATED MODULE: ./packages/components/src/version.ts
113533
113541
  var version_version = {
113534
113542
  "@ant-design/pro-card": "2.0.0-experimental.17",
113535
- "@ant-design/pro-components": "2.0.0-experimental.29",
113536
- "@ant-design/pro-descriptions": "2.0.0-experimental.17",
113537
- "@ant-design/pro-field": "2.0.0-experimental.16",
113538
- "@ant-design/pro-form": "2.0.0-experimental.17",
113543
+ "@ant-design/pro-components": "2.0.4",
113544
+ "@ant-design/pro-descriptions": "2.0.0-experimental.18",
113545
+ "@ant-design/pro-field": "2.0.0-experimental.17",
113546
+ "@ant-design/pro-form": "2.0.0-experimental.18",
113539
113547
  "@ant-design/pro-layout": "7.0.0-experimental.29",
113540
- "@ant-design/pro-list": "2.0.0-experimental.18",
113548
+ "@ant-design/pro-list": "2.0.0-experimental.19",
113541
113549
  "@ant-design/pro-provider": "2.0.0-experimental.10",
113542
113550
  "@ant-design/pro-skeleton": "2.0.0-experimental.8",
113543
- "@ant-design/pro-table": "3.0.0-experimental.18",
113551
+ "@ant-design/pro-table": "3.0.0-experimental.19",
113544
113552
  "@ant-design/pro-utils": "2.0.0-experimental.16"
113545
113553
  };
113546
113554
  ;// CONCATENATED MODULE: ./packages/components/src/index.tsx