@hsu-react/ui 0.0.8 → 0.0.10

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.
Files changed (126) hide show
  1. package/es/components/Chart/Bar/index.d.ts +5 -1
  2. package/es/components/Chart/Bar/index.js +84 -9
  3. package/es/components/Chart/Line/index.d.ts +5 -1
  4. package/es/components/Chart/Line/index.js +84 -9
  5. package/es/components/Chart/_utils/autoSmooth.d.ts +2 -0
  6. package/es/components/Chart/_utils/autoSmooth.js +12 -2
  7. package/es/components/Chart/_utils/cartesian.d.ts +11 -0
  8. package/es/components/Chart/_utils/cartesian.js +19 -0
  9. package/es/components/Chart/chartUtils/chartTooltipFormatter.d.ts +2 -0
  10. package/es/components/Chart/chartUtils/chartTooltipFormatter.js +13 -3
  11. package/es/components/Chart/chartUtils/index.d.ts +5 -2
  12. package/es/components/Chart/chartUtils/index.js +3 -1
  13. package/es/components/Chart/chartUtils/useDataZoomWindow.d.ts +19 -0
  14. package/es/components/Chart/chartUtils/useDataZoomWindow.js +37 -0
  15. package/es/components/Chart/chartUtils/useLegendSelection.d.ts +14 -0
  16. package/es/components/Chart/chartUtils/useLegendSelection.js +35 -0
  17. package/es/components/FormItem/ItemContainer/index.d.ts +2 -0
  18. package/es/components/FormItem/ItemContainer/index.js +4 -15
  19. package/es/components/Modal/index.module.scss +1 -0
  20. package/es/components/Panel/ListPanel/ListModalPanel/index.js +33 -5
  21. package/es/components/Panel/ListPanel/ListModalPanel/index.module.scss +17 -2
  22. package/es/components/Panel/ListPanel/index.module.scss +11 -12
  23. package/es/components/Search/{_components → SearchAdvanced/_components}/AdvancedFiltersDrawer/index.d.ts +3 -3
  24. package/es/components/Search/{_components → SearchAdvanced/_components}/AdvancedFiltersDrawer/index.js +3 -3
  25. package/es/components/Search/SearchAdvanced/index.js +26 -148
  26. package/es/components/Search/SearchCard/index.js +1 -1
  27. package/es/components/Search/{_components → SearchCollapsible/_components}/CollapseToggle/index.js +2 -2
  28. package/es/components/Search/SearchCollapsible/index.js +17 -138
  29. package/es/components/Search/SearchWithFilter/index.js +4 -143
  30. package/es/components/Search/SearchWithMore/index.js +11 -142
  31. package/es/components/Search/_components/FilterDropdown/index.js +5 -6
  32. package/es/components/Search/_components/SearchBase/index.d.ts +32 -0
  33. package/es/components/Search/_components/SearchBase/index.js +185 -0
  34. package/es/components/Search/_hooks/useSearchCommon.js +5 -11
  35. package/es/components/Search/_hooks/useSearchExpand.js +4 -13
  36. package/es/components/Search/_utils/calculateButtonGroupAndColumnWidth.js +3 -10
  37. package/es/components/Search/_utils/calculateVisibleItems.js +4 -5
  38. package/es/components/Search/_utils/index.d.ts +2 -0
  39. package/es/components/Search/_utils/index.js +3 -1
  40. package/es/components/Search/_utils/measureButtonGroupWidth.d.ts +6 -0
  41. package/es/components/Search/_utils/measureButtonGroupWidth.js +18 -0
  42. package/es/components/Search/_utils/shouldDisplayExtraItem.d.ts +11 -0
  43. package/es/components/Search/_utils/shouldDisplayExtraItem.js +13 -0
  44. package/es/components/Search/index.d.ts +4 -0
  45. package/es/components/Search/index.js +6 -133
  46. package/es/components/Table/_hooks/useTableColumns.js +11 -0
  47. package/lib/components/Chart/Bar/index.d.ts +5 -1
  48. package/lib/components/Chart/Bar/index.js +68 -4
  49. package/lib/components/Chart/Line/index.d.ts +5 -1
  50. package/lib/components/Chart/Line/index.js +68 -4
  51. package/lib/components/Chart/_utils/autoSmooth.d.ts +2 -0
  52. package/lib/components/Chart/_utils/autoSmooth.js +11 -1
  53. package/lib/components/Chart/_utils/cartesian.d.ts +11 -0
  54. package/lib/components/Chart/_utils/cartesian.js +21 -1
  55. package/lib/components/Chart/chartUtils/chartTooltipFormatter.d.ts +2 -0
  56. package/lib/components/Chart/chartUtils/chartTooltipFormatter.js +5 -3
  57. package/lib/components/Chart/chartUtils/index.d.ts +5 -2
  58. package/lib/components/Chart/chartUtils/index.js +14 -0
  59. package/lib/components/Chart/chartUtils/useDataZoomWindow.d.ts +19 -0
  60. package/lib/components/Chart/chartUtils/useDataZoomWindow.js +31 -0
  61. package/lib/components/Chart/chartUtils/useLegendSelection.d.ts +14 -0
  62. package/lib/components/Chart/chartUtils/useLegendSelection.js +26 -0
  63. package/lib/components/FormItem/ItemContainer/index.d.ts +2 -0
  64. package/lib/components/FormItem/ItemContainer/index.js +2 -5
  65. package/lib/components/Modal/index.module.scss +1 -0
  66. package/lib/components/Panel/ListPanel/ListModalPanel/index.js +21 -2
  67. package/lib/components/Panel/ListPanel/ListModalPanel/index.module.scss +17 -2
  68. package/lib/components/Panel/ListPanel/index.module.scss +11 -12
  69. package/lib/components/Search/{_components → SearchAdvanced/_components}/AdvancedFiltersDrawer/index.d.ts +3 -3
  70. package/lib/components/Search/{_components → SearchAdvanced/_components}/AdvancedFiltersDrawer/index.js +3 -3
  71. package/lib/components/Search/SearchAdvanced/index.js +19 -134
  72. package/lib/components/Search/SearchCard/index.js +1 -1
  73. package/lib/components/Search/{_components → SearchCollapsible/_components}/CollapseToggle/index.js +2 -2
  74. package/lib/components/Search/SearchCollapsible/index.js +12 -124
  75. package/lib/components/Search/SearchWithFilter/index.js +5 -129
  76. package/lib/components/Search/SearchWithMore/index.js +7 -126
  77. package/lib/components/Search/_components/FilterDropdown/index.js +5 -6
  78. package/lib/components/Search/_components/SearchBase/index.d.ts +32 -0
  79. package/lib/components/Search/_components/SearchBase/index.js +169 -0
  80. package/lib/components/Search/_hooks/useSearchCommon.js +4 -6
  81. package/lib/components/Search/_hooks/useSearchExpand.js +2 -13
  82. package/lib/components/Search/_utils/calculateButtonGroupAndColumnWidth.js +2 -10
  83. package/lib/components/Search/_utils/calculateVisibleItems.js +3 -5
  84. package/lib/components/Search/_utils/index.d.ts +2 -0
  85. package/lib/components/Search/_utils/index.js +15 -1
  86. package/lib/components/Search/_utils/measureButtonGroupWidth.d.ts +6 -0
  87. package/lib/components/Search/_utils/measureButtonGroupWidth.js +24 -0
  88. package/lib/components/Search/_utils/shouldDisplayExtraItem.d.ts +11 -0
  89. package/lib/components/Search/_utils/shouldDisplayExtraItem.js +19 -0
  90. package/lib/components/Search/index.d.ts +4 -0
  91. package/lib/components/Search/index.js +8 -119
  92. package/lib/components/Table/_hooks/useTableColumns.js +11 -0
  93. package/package.json +1 -1
  94. package/src/components/Chart/Bar/index.tsx +132 -2
  95. package/src/components/Chart/Line/index.tsx +132 -2
  96. package/src/components/Chart/_utils/autoSmooth.ts +181 -164
  97. package/src/components/Chart/_utils/cartesian.ts +28 -0
  98. package/src/components/Chart/chartUtils/chartTooltipFormatter.ts +11 -2
  99. package/src/components/Chart/chartUtils/index.ts +53 -37
  100. package/src/components/Chart/chartUtils/useDataZoomWindow.ts +61 -0
  101. package/src/components/Chart/chartUtils/useLegendSelection.ts +35 -0
  102. package/src/components/FormItem/ItemContainer/index.tsx +4 -7
  103. package/src/components/Modal/index.module.scss +1 -0
  104. package/src/components/Panel/ListPanel/ListModalPanel/index.module.scss +17 -2
  105. package/src/components/Panel/ListPanel/ListModalPanel/index.tsx +261 -233
  106. package/src/components/Panel/ListPanel/index.module.scss +11 -12
  107. package/src/components/Search/{_components → SearchAdvanced/_components}/AdvancedFiltersDrawer/index.tsx +6 -6
  108. package/src/components/Search/SearchAdvanced/index.tsx +25 -164
  109. package/src/components/Search/SearchCard/index.tsx +1 -1
  110. package/src/components/Search/{_components → SearchCollapsible/_components}/CollapseToggle/index.tsx +2 -2
  111. package/src/components/Search/SearchCollapsible/index.tsx +13 -162
  112. package/src/components/Search/SearchWithFilter/index.tsx +2 -164
  113. package/src/components/Search/SearchWithMore/index.tsx +9 -161
  114. package/src/components/Search/_components/FilterDropdown/index.tsx +5 -6
  115. package/src/components/Search/_components/SearchBase/index.tsx +224 -0
  116. package/src/components/Search/_hooks/useSearchCommon.ts +10 -13
  117. package/src/components/Search/_hooks/useSearchExpand.ts +3 -13
  118. package/src/components/Search/_utils/calculateButtonGroupAndColumnWidth.ts +2 -10
  119. package/src/components/Search/_utils/calculateVisibleItems.ts +10 -11
  120. package/src/components/Search/_utils/index.ts +2 -0
  121. package/src/components/Search/_utils/measureButtonGroupWidth.ts +23 -0
  122. package/src/components/Search/_utils/shouldDisplayExtraItem.ts +23 -0
  123. package/src/components/Search/index.tsx +7 -153
  124. package/src/components/Table/_hooks/useTableColumns.tsx +17 -0
  125. /package/es/components/Search/{_components → SearchCollapsible/_components}/CollapseToggle/index.d.ts +0 -0
  126. /package/lib/components/Search/{_components → SearchCollapsible/_components}/CollapseToggle/index.d.ts +0 -0
@@ -0,0 +1,35 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
10
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
11
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
12
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
13
+ import { useCallback, useState } from "react";
14
+ /**
15
+ * 图例选中状态管理:配合 Chart.Bar / Chart.Line 的 onLegendSelectChanged,
16
+ * 在调用方按"当前可见系列"重算 Y 轴 min/max/interval(calculateAxisConfig),
17
+ * 实现图例隐藏某一项后坐标轴自动重算。
18
+ */
19
+ export function useLegendSelection() {
20
+ var _useState = useState({}),
21
+ _useState2 = _slicedToArray(_useState, 2),
22
+ legendSelected = _useState2[0],
23
+ setLegendSelected = _useState2[1];
24
+ var onLegendSelectChanged = useCallback(function (selected) {
25
+ setLegendSelected(_objectSpread({}, selected));
26
+ }, []);
27
+ var isSeriesVisible = useCallback(function (name) {
28
+ return name == null || legendSelected[name] !== false;
29
+ }, [legendSelected]);
30
+ return {
31
+ legendSelected: legendSelected,
32
+ onLegendSelectChanged: onLegendSelectChanged,
33
+ isSeriesVisible: isSeriesVisible
34
+ };
35
+ }
@@ -35,6 +35,8 @@ export interface ItemContainerProps extends FormItemProps {
35
35
  labelBreak?: boolean;
36
36
  hideAdditiona?: boolean;
37
37
  hideLabel?: boolean;
38
+ /** 显隐开关,由 FormItem 消费;在此解构剥离,避免透传到 DOM */
39
+ visible?: boolean;
38
40
  }
39
41
  declare const ItemContainer: React.FC<ItemContainerProps>;
40
42
  export default ItemContainer;
@@ -1,16 +1,12 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- var _excluded = ["children", "className", "required", "rules", "name", "labelWidth", "labelHeight", "labelMinHeight", "inputWidth", "inputMinWidth", "inputHeight", "inputMinHeight", "height", "width", "style", "requiredMsg", "layout", "requiredPosition", "colon", "label", "labelRender", "tips", "horizontalAlignment", "hideRequired", "labelClassName", "en", "type", "hasPermi", "labelExtra", "labelExtraClassName", "labelEllipsis", "labelBreak", "hideAdditiona", "hideLabel"],
2
+ var _excluded = ["children", "className", "required", "rules", "name", "labelWidth", "labelHeight", "labelMinHeight", "inputWidth", "inputMinWidth", "inputHeight", "inputMinHeight", "height", "width", "style", "requiredMsg", "layout", "requiredPosition", "colon", "label", "labelRender", "tips", "horizontalAlignment", "hideRequired", "labelClassName", "en", "type", "hasPermi", "labelExtra", "labelExtraClassName", "labelEllipsis", "labelBreak", "hideAdditiona", "hideLabel", "visible"],
3
3
  _excluded2 = ["icon", "iconClassName"];
4
4
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
5
5
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
6
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
6
7
  function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
7
8
  function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
8
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
9
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
10
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
11
9
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
12
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
13
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
14
10
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
15
11
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
16
12
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
@@ -79,6 +75,7 @@ var ItemContainer = function ItemContainer(props) {
79
75
  hideAdditiona = _props$hideAdditiona === void 0 ? false : _props$hideAdditiona,
80
76
  _props$hideLabel = props.hideLabel,
81
77
  hideLabel = _props$hideLabel === void 0 ? false : _props$hideLabel,
78
+ _visible = props.visible,
82
79
  formItemProps = _objectWithoutProperties(props, _excluded);
83
80
  var _tips$icon = tips.icon,
84
81
  icon = _tips$icon === void 0 ? "material-symbols:help" : _tips$icon,
@@ -164,15 +161,7 @@ var ItemContainer = function ItemContainer(props) {
164
161
  if (!permitted) {
165
162
  return null;
166
163
  }
167
-
168
- // 页面层 FormItemProps 的展示控制属性(如 visible)不属于 antd Form.Item,
169
- // 剥离后再透传,避免被 antd 转发到 DOM 触发 React 非法属性警告。
170
- var restFormItemProps = Object.fromEntries(Object.entries(formItemProps).filter(function (_ref) {
171
- var _ref2 = _slicedToArray(_ref, 1),
172
- key = _ref2[0];
173
- return key !== "visible";
174
- }));
175
- return /*#__PURE__*/_jsx(Form.Item, _objectSpread(_objectSpread({}, restFormItemProps), {}, {
164
+ return /*#__PURE__*/_jsx(Form.Item, _objectSpread(_objectSpread({}, formItemProps), {}, {
176
165
  name: name,
177
166
  rules: [{
178
167
  required: required,
@@ -62,6 +62,7 @@
62
62
  align-items: center;
63
63
  justify-content: flex-end;
64
64
  column-gap: 10px;
65
+ margin-left: auto; // title 为空时仍保持靠右
65
66
  }
66
67
  }
67
68
  }
@@ -1,6 +1,10 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
2
  var _excluded = ["modalClassName", "className", "searchProps", "searchMode", "tableProps", "hasPermi", "extraContent"],
3
3
  _excluded2 = ["title", "buttonGroup", "className", "columns", "tabBarProps", "tableTools", "tableContainerClassName", "tips", "otherTool"];
4
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
5
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
6
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
7
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
4
8
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
9
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6
10
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
@@ -17,6 +21,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
17
21
  import React, { useEffect, useMemo, useState } from "react";
18
22
  import Search from "../../../Search";
19
23
  import Table from "../../../Table";
24
+ import { FullscreenExitOutlined, FullscreenOutlined } from "@ant-design/icons";
20
25
  import classNames from "classnames";
21
26
  import { cloneDeep } from "lodash";
22
27
  import styles from "./index.module.scss";
@@ -28,6 +33,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
28
33
  import { jsxs as _jsxs } from "react/jsx-runtime";
29
34
  import { Fragment as _Fragment } from "react/jsx-runtime";
30
35
  var ListModalPanel = function ListModalPanel(props) {
36
+ var _modalConfig$width, _modalConfig$titleBut;
31
37
  var modalClassName = props.modalClassName,
32
38
  className = props.className,
33
39
  searchProps = props.searchProps,
@@ -60,6 +66,15 @@ var ListModalPanel = function ListModalPanel(props) {
60
66
  _useState4 = _slicedToArray(_useState3, 2),
61
67
  showColumnMgt = _useState4[0],
62
68
  setShowColumnMgt = _useState4[1];
69
+ var _useState5 = useState(false),
70
+ _useState6 = _slicedToArray(_useState5, 2),
71
+ isFullscreen = _useState6[0],
72
+ setIsFullscreen = _useState6[1];
73
+ useEffect(function () {
74
+ if (modalConfig.open) {
75
+ setIsFullscreen(false);
76
+ }
77
+ }, [modalConfig.open]);
63
78
  useEffect(function () {
64
79
  if (columnMgt && columns !== null && columns !== void 0 && columns.length) {
65
80
  var _columns2 = columns === null || columns === void 0 ? void 0 : columns.map(function (col) {
@@ -117,10 +132,22 @@ var ListModalPanel = function ListModalPanel(props) {
117
132
  return null;
118
133
  }
119
134
  return /*#__PURE__*/_jsxs(_Fragment, {
120
- children: [/*#__PURE__*/_jsx(Modal, _objectSpread(_objectSpread({
121
- width: 1400,
122
- className: classNames(modalClassName)
123
- }, modalConfig), {}, {
135
+ children: [/*#__PURE__*/_jsx(Modal, _objectSpread(_objectSpread(_objectSpread({}, modalConfig), {}, {
136
+ width: isFullscreen ? "100vw" : (_modalConfig$width = modalConfig.width) !== null && _modalConfig$width !== void 0 ? _modalConfig$width : 1400
137
+ }, isFullscreen ? {
138
+ full: true
139
+ } : {}), {}, {
140
+ className: classNames(styles.modal, modalClassName, _defineProperty({}, styles.fullscreen, isFullscreen)),
141
+ titleButtonGroup: [{
142
+ type: "text",
143
+ icon: isFullscreen ? /*#__PURE__*/_jsx(FullscreenExitOutlined, {}) : /*#__PURE__*/_jsx(FullscreenOutlined, {}),
144
+ title: isFullscreen ? "退出全屏" : "全屏",
145
+ onClick: function onClick() {
146
+ return setIsFullscreen(function (v) {
147
+ return !v;
148
+ });
149
+ }
150
+ }].concat(_toConsumableArray((_modalConfig$titleBut = modalConfig.titleButtonGroup) !== null && _modalConfig$titleBut !== void 0 ? _modalConfig$titleBut : [])),
124
151
  children: /*#__PURE__*/_jsxs("div", {
125
152
  className: classNames(styles.ListModalPanel, className),
126
153
  children: [extraContent, SearchComponent, /*#__PURE__*/_jsxs("div", {
@@ -139,7 +166,8 @@ var ListModalPanel = function ListModalPanel(props) {
139
166
  }, _objectSpread(_objectSpread({
140
167
  scroll: true,
141
168
  serialNumberColumn: true,
142
- bordered: true
169
+ bordered: true,
170
+ fillPanel: true
143
171
  }, tableConfig), {}, {
144
172
  columns: _columns
145
173
  })))]
@@ -1,10 +1,25 @@
1
+ .modal {
2
+ // 定高让内部“height: 100%”链路可解析(antd Modal 默认内容自适应,内层设置 height/max-height 无效)
3
+ height: 700px;
4
+
5
+ &.fullscreen {
6
+ top: 0;
7
+
8
+ width: 100vw !important;
9
+ max-width: 100vw !important;
10
+ height: 100vh !important;
11
+
12
+ margin: 0;
13
+ padding-bottom: 0;
14
+ }
15
+ }
16
+
1
17
  .ListModalPanel {
2
18
  display: flex;
3
19
  flex-direction: column;
4
20
  row-gap: 10px;
5
21
 
6
- height: max-content;
7
- max-height: 70vh;
22
+ height: 100%;
8
23
 
9
24
  .search {
10
25
  padding: 0px;
@@ -87,7 +87,7 @@
87
87
 
88
88
  width: 100%;
89
89
  min-height: 0px;
90
- padding: 14px 16px;
90
+ padding: 10px;
91
91
 
92
92
  background: var(--cf-surface);
93
93
 
@@ -102,23 +102,22 @@
102
102
  align-items: center;
103
103
  justify-content: space-between;
104
104
  column-gap: 10px;
105
+ }
105
106
 
106
- padding: 10px;
107
+ // 页面级页签:无底色容器,页签拆成独立圆角块、块间留空;
108
+ // margin/radius 需 !important 压过 TabBar 内部的连体分段样式(负 margin + 首尾切角)
109
+ .headerTabBar {
110
+ column-gap: 4px;
107
111
 
108
- background: var(--cf-subtle);
112
+ > div {
113
+ margin-left: 0 !important;
114
+ border-radius: 6px !important;
109
115
 
110
- border-radius: 8px 8px 0px 0px;
111
- border: 1px solid var(--cf-border);
116
+ background: var(--cf-surface);
117
+ }
112
118
  }
113
119
 
114
120
  &.hasHeaderTabBar {
115
- .search {
116
- padding: 10px;
117
- margin-top: -10px;
118
-
119
- border-radius: 0px 0px 8px 8px;
120
- }
121
-
122
121
  &:not(:has(.search)) {
123
122
  .headerTabBarContainer {
124
123
  border-radius: 8px;
@@ -1,8 +1,8 @@
1
1
  import React from "react";
2
2
  import type { FormInstance } from "antd";
3
- import { FormItemProps } from "../../../FormItem";
4
- import { DrawerFormProps } from "../../../Form/DrawerForm";
5
- import type useLabelWidth from "../../../../hooks/useLabelWidth";
3
+ import { FormItemProps } from "../../../../FormItem";
4
+ import { DrawerFormProps } from "../../../../Form/DrawerForm";
5
+ import type useLabelWidth from "../../../../../hooks/useLabelWidth";
6
6
  interface AdvancedFiltersDrawerProps {
7
7
  expand: boolean;
8
8
  setExpand: (expand: boolean) => void;
@@ -5,10 +5,10 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
5
5
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
6
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
7
  import React from "react";
8
- import Form from "../../../Form";
8
+ import Form from "../../../../Form";
9
9
  import { FilterFilled } from "@ant-design/icons";
10
- import Icon from "../../../Icon";
11
- import styles from "../../index.module.scss";
10
+ import Icon from "../../../../Icon";
11
+ import styles from "../../../index.module.scss";
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
13
  import { jsxs as _jsxs } from "react/jsx-runtime";
14
14
  export var AdvancedFiltersDrawer = function AdvancedFiltersDrawer(_ref) {
@@ -1,30 +1,18 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ var _excluded = ["className", "advancedFiltersProps", "setFilter", "minLabelWidth"];
2
3
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
4
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
5
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
6
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
7
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
10
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
11
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
12
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
8
+ 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; }
9
+ 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; }
13
10
  import React from "react";
14
- import { Form as AntdForm } from "antd";
15
- import FormItem from "../../FormItem";
16
11
  import classNames from "classnames";
17
12
  import styles from "../index.module.scss";
18
- import { useSearchCommon } from "../_hooks";
19
- import { ButtonGroup } from "../_components/ButtonGroup";
20
- import { SearchButtons } from "../_components/SearchButtons";
21
- import { FilterDropdown } from "../_components/FilterDropdown";
22
- import { ExpandButton } from "../_components/ExpandButton";
23
- import { AdvancedFiltersDrawer } from "../_components/AdvancedFiltersDrawer";
24
- import { createElement as _createElement } from "react";
13
+ import SearchBase from "../_components/SearchBase";
14
+ import { AdvancedFiltersDrawer } from "./_components/AdvancedFiltersDrawer";
25
15
  import { jsx as _jsx } from "react/jsx-runtime";
26
- import { jsxs as _jsxs } from "react/jsx-runtime";
27
- import { Fragment as _Fragment } from "react/jsx-runtime";
28
16
  /**
29
17
  * 高级筛选模式的 Search 组件
30
18
  * - 不显示标签(label)
@@ -32,139 +20,29 @@ import { Fragment as _Fragment } from "react/jsx-runtime";
32
20
  * - 更适合复杂的筛选场景
33
21
  */
34
22
  var SearchAdvanced = function SearchAdvanced(props) {
35
- var _props$searchItems = props.searchItems,
36
- searchItems = _props$searchItems === void 0 ? [] : _props$searchItems,
37
- _props$moreSearchItem = props.moreSearchItems,
38
- moreSearchItems = _props$moreSearchItem === void 0 ? [] : _props$moreSearchItem,
39
- className = props.className,
40
- onSearch = props.onSearch,
41
- onReset = props.onReset,
42
- externalForm = props.externalForm,
43
- hasPermi = props.hasPermi,
44
- _props$columnNum = props.columnNum,
45
- columnNum = _props$columnNum === void 0 ? 4 : _props$columnNum,
46
- beforeButtonGroup = props.beforeButtonGroup,
47
- affterButtonGroup = props.affterButtonGroup,
48
- searchData = props.searchData,
23
+ var className = props.className,
49
24
  advancedFiltersProps = props.advancedFiltersProps,
50
25
  setFilter = props.setFilter,
51
26
  minLabelWidth = props.minLabelWidth,
52
- _props$defaultExpande = props.defaultExpanded,
53
- defaultExpanded = _props$defaultExpande === void 0 ? false : _props$defaultExpande,
54
- onExpandChange = props.onExpandChange,
55
- _props$autoAdaptWidth = props.autoAdaptWidth,
56
- autoAdaptWidth = _props$autoAdaptWidth === void 0 ? true : _props$autoAdaptWidth,
57
- baseWidth = props.baseWidth,
58
- onValuesChange = props.onValuesChange,
59
- _props$searchDisabled = props.searchDisabled,
60
- searchDisabled = _props$searchDisabled === void 0 ? false : _props$searchDisabled,
61
- _props$showAllSearchI = props.showAllSearchItems,
62
- showAllSearchItems = _props$showAllSearchI === void 0 ? false : _props$showAllSearchI,
63
- searchText = props.searchText,
64
- resetText = props.resetText,
65
- onFilterChange = props.onFilterChange,
66
- _props$columnOffsetWi = props.columnOffsetWidth,
67
- columnOffsetWidth = _props$columnOffsetWi === void 0 ? 0 : _props$columnOffsetWi;
68
- var _AntdForm$useForm = AntdForm.useForm(externalForm),
69
- _AntdForm$useForm2 = _slicedToArray(_AntdForm$useForm, 1),
70
- form = _AntdForm$useForm2[0];
71
- var _useSearchCommon = useSearchCommon({
72
- form: form,
73
- searchItems: searchItems,
74
- moreSearchItems: moreSearchItems,
75
- searchData: searchData,
76
- hasPermi: hasPermi,
77
- beforeButtonGroup: beforeButtonGroup,
78
- affterButtonGroup: affterButtonGroup,
79
- columnNum: columnNum,
80
- autoAdaptWidth: autoAdaptWidth,
81
- defaultExpanded: defaultExpanded,
82
- onExpandChange: onExpandChange,
83
- showAllSearchItems: showAllSearchItems,
84
- minLabelWidth: minLabelWidth,
85
- baseWidth: baseWidth,
86
- onSearch: onSearch,
87
- onReset: onReset,
88
- columnOffsetWidth: columnOffsetWidth
89
- }),
90
- containerRef = _useSearchCommon.containerRef,
91
- buttonGroupRef = _useSearchCommon.buttonGroupRef,
92
- cls = _useSearchCommon.cls,
93
- getLabelWidth = _useSearchCommon.getLabelWidth,
94
- processedSearchItems = _useSearchCommon.processedSearchItems,
95
- setSearchItems = _useSearchCommon.setSearchItems,
96
- currentSearchItems = _useSearchCommon.currentSearchItems,
97
- totalColumnNum = _useSearchCommon.totalColumnNum,
98
- expand = _useSearchCommon.expand,
99
- setExpand = _useSearchCommon.setExpand,
100
- toggleExpand = _useSearchCommon.toggleExpand,
101
- showExpandButton = _useSearchCommon.showExpandButton,
102
- onSearchClick = _useSearchCommon.onSearchClick,
103
- onResetClick = _useSearchCommon.onResetClick,
104
- shouldRender = _useSearchCommon.shouldRender,
105
- permitted = _useSearchCommon.permitted;
106
- if (!shouldRender) {
107
- return null;
108
- }
109
- return /*#__PURE__*/_jsxs(_Fragment, {
110
- children: [/*#__PURE__*/_jsx("div", {
111
- ref: containerRef,
112
- className: classNames(styles.Search, className, _defineProperty({}, styles.advancedFilters, true)),
113
- style: {
114
- "--column-number": totalColumnNum,
115
- "--column-offset-width": "".concat(columnOffsetWidth, "px")
116
- },
117
- children: /*#__PURE__*/_jsx("div", {
118
- className: classNames(styles.searchOption, styles[expand.toString()]),
119
- children: /*#__PURE__*/_jsxs(AntdForm, {
120
- form: form,
121
- className: classNames(styles.option, cls),
122
- onValuesChange: onValuesChange,
123
- children: [permitted && (currentSearchItems === null || currentSearchItems === void 0 ? void 0 : currentSearchItems.map(function (item) {
124
- return /*#__PURE__*/_createElement(FormItem, _objectSpread(_objectSpread({}, item), {}, {
125
- key: item.name,
126
- className: classNames(styles.item, item.className, _defineProperty({}, styles.unFill, item.width !== undefined)),
127
- label: undefined,
128
- labelWidth: undefined
129
- }));
130
- })), ((beforeButtonGroup === null || beforeButtonGroup === void 0 ? void 0 : beforeButtonGroup.length) || (affterButtonGroup === null || affterButtonGroup === void 0 ? void 0 : affterButtonGroup.length) || permitted) && /*#__PURE__*/_jsxs(ButtonGroup, {
131
- beforeButtonGroup: beforeButtonGroup,
132
- affterButtonGroup: affterButtonGroup,
133
- expandButton: /*#__PURE__*/_jsx(ExpandButton, {
134
- expand: expand,
135
- toggleExpand: toggleExpand,
136
- advancedFilters: true,
137
- showExpandButton: showExpandButton,
138
- showAllSearchItems: showAllSearchItems || !!(moreSearchItems !== null && moreSearchItems !== void 0 && moreSearchItems.length)
139
- }),
140
- permitted: permitted,
141
- ref: buttonGroupRef,
142
- children: [currentSearchItems.length > 0 && /*#__PURE__*/_jsx(SearchButtons, {
143
- onSearch: onSearchClick,
144
- onReset: onResetClick,
145
- searchDisabled: searchDisabled,
146
- searchText: searchText,
147
- resetText: resetText
148
- }), setFilter && /*#__PURE__*/_jsx(FilterDropdown, {
149
- searchItems: processedSearchItems,
150
- originalSearchItems: searchItems,
151
- setSearchItems: setSearchItems,
152
- onFilterChange: onFilterChange
153
- })]
154
- })]
155
- })
156
- })
157
- }), permitted && setExpand && /*#__PURE__*/_jsx(AdvancedFiltersDrawer, {
158
- expand: expand,
159
- setExpand: setExpand,
160
- searchItems: processedSearchItems,
161
- form: form,
162
- getLabelWidth: getLabelWidth,
163
- minLabelWidth: minLabelWidth,
164
- onSearchClick: onSearchClick,
165
- onResetClick: onResetClick,
166
- advancedFiltersProps: advancedFiltersProps
167
- })]
168
- });
27
+ rest = _objectWithoutProperties(props, _excluded);
28
+ return /*#__PURE__*/_jsx(SearchBase, _objectSpread(_objectSpread({}, rest), {}, {
29
+ minLabelWidth: minLabelWidth,
30
+ advancedFilters: true,
31
+ showFilter: !!setFilter,
32
+ className: classNames(className, styles.advancedFilters),
33
+ renderOutside: function renderOutside(ctx) {
34
+ return ctx.setExpand && /*#__PURE__*/_jsx(AdvancedFiltersDrawer, {
35
+ expand: ctx.expand,
36
+ setExpand: ctx.setExpand,
37
+ searchItems: ctx.processedSearchItems,
38
+ form: ctx.form,
39
+ getLabelWidth: ctx.getLabelWidth,
40
+ minLabelWidth: minLabelWidth,
41
+ onSearchClick: ctx.onSearchClick,
42
+ onResetClick: ctx.onResetClick,
43
+ advancedFiltersProps: advancedFiltersProps
44
+ });
45
+ }
46
+ }));
169
47
  };
170
48
  export default SearchAdvanced;
@@ -66,7 +66,7 @@ var SearchCard = /*#__PURE__*/memo(function (props) {
66
66
  className: classNames(styles.SearchCard, className, _defineProperty(_defineProperty({}, styles.collapse, collapse), styles.legacyHasSearchBox, legacyHasSelector && showSearchBox)),
67
67
  style: {
68
68
  "--searchCard-column-gap": "".concat(gap, "px"),
69
- " --searchCard-padding-left-right": "".concat(padding, "px")
69
+ "--searchCard-padding-left-right": "".concat(padding, "px")
70
70
  },
71
71
  children: [showSearchBox && /*#__PURE__*/_jsx(SearchBox, {
72
72
  value: internalValue,
@@ -3,9 +3,9 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
3
3
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
4
4
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
5
5
  import React from "react";
6
- import Icon from "../../../Icon";
6
+ import Icon from "../../../../Icon";
7
7
  import classNames from "classnames";
8
- import styles from "../../index.module.scss";
8
+ import styles from "../../../index.module.scss";
9
9
  import { jsx as _jsx } from "react/jsx-runtime";
10
10
  export var CollapseToggle = function CollapseToggle(_ref) {
11
11
  var collapse = _ref.collapse,