@mezzanine-ui/react 1.0.0-rc.5 → 1.0.0-rc.7

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 (213) hide show
  1. package/Accordion/Accordion.d.ts +36 -0
  2. package/Accordion/Accordion.js +37 -1
  3. package/AlertBanner/AlertBanner.d.ts +30 -1
  4. package/AlertBanner/AlertBanner.js +56 -12
  5. package/AutoComplete/AutoComplete.d.ts +75 -11
  6. package/AutoComplete/AutoComplete.js +145 -25
  7. package/AutoComplete/AutoCompleteInside.d.ts +54 -0
  8. package/AutoComplete/AutoCompleteInside.js +17 -0
  9. package/AutoComplete/useAutoCompleteKeyboard.d.ts +2 -1
  10. package/AutoComplete/useAutoCompleteKeyboard.js +4 -1
  11. package/Backdrop/Backdrop.d.ts +33 -1
  12. package/Backdrop/Backdrop.js +33 -1
  13. package/Badge/Badge.d.ts +26 -1
  14. package/Badge/Badge.js +26 -1
  15. package/Badge/typings.d.ts +15 -0
  16. package/Breadcrumb/BreadcrumbDropdown.d.ts +1 -1
  17. package/Breadcrumb/BreadcrumbOverflowMenuDropdown.d.ts +1 -1
  18. package/Breadcrumb/typings.d.ts +1 -1
  19. package/Button/Button.d.ts +26 -1
  20. package/Button/Button.js +33 -5
  21. package/COMPONENTS.md +267 -0
  22. package/Calendar/useCalendarControls.d.ts +18 -0
  23. package/Calendar/useCalendarControls.js +18 -0
  24. package/Card/FourThumbnailCard.js +1 -1
  25. package/Card/SingleThumbnailCard.js +1 -1
  26. package/Checkbox/Checkbox.d.ts +30 -1
  27. package/Checkbox/Checkbox.js +54 -4
  28. package/Checkbox/CheckboxGroup.d.ts +39 -1
  29. package/Checkbox/CheckboxGroup.js +49 -3
  30. package/Cropper/Cropper.d.ts +2 -2
  31. package/Cropper/Cropper.js +2 -3
  32. package/Cropper/CropperElement.js +1 -1
  33. package/Cropper/utils/cropper-calculations.d.ts +1 -1
  34. package/Cropper/utils/cropper-calculations.js +16 -14
  35. package/DatePicker/DatePicker.d.ts +36 -2
  36. package/DatePicker/DatePicker.js +36 -2
  37. package/DateRangePicker/useDateRangePickerValue.d.ts +24 -0
  38. package/DateRangePicker/useDateRangePickerValue.js +24 -0
  39. package/Description/Description.d.ts +1 -1
  40. package/Description/Description.js +1 -1
  41. package/Description/DescriptionTitle.d.ts +6 -1
  42. package/Description/DescriptionTitle.js +2 -2
  43. package/Drawer/Drawer.d.ts +78 -33
  44. package/Drawer/Drawer.js +72 -34
  45. package/Dropdown/Dropdown.d.ts +63 -1
  46. package/Dropdown/Dropdown.js +203 -9
  47. package/Dropdown/DropdownItem.d.ts +26 -2
  48. package/Dropdown/DropdownItem.js +91 -43
  49. package/Dropdown/DropdownItemCard.d.ts +3 -2
  50. package/Dropdown/DropdownItemCard.js +8 -5
  51. package/Dropdown/DropdownStatus.d.ts +2 -2
  52. package/Dropdown/DropdownStatus.js +3 -2
  53. package/Dropdown/dropdownKeydownHandler.d.ts +6 -0
  54. package/Dropdown/dropdownKeydownHandler.js +14 -7
  55. package/Empty/icons/EmptyMainInitialDataIcon.js +1 -1
  56. package/Empty/icons/EmptyMainNotificationIcon.js +1 -1
  57. package/Empty/icons/EmptyMainResultIcon.js +1 -1
  58. package/Empty/icons/EmptyMainSystemIcon.js +1 -1
  59. package/FilterArea/Filter.d.ts +25 -2
  60. package/FilterArea/Filter.js +43 -2
  61. package/FilterArea/FilterArea.d.ts +43 -4
  62. package/FilterArea/FilterArea.js +39 -4
  63. package/FilterArea/FilterAreaContext.d.ts +6 -0
  64. package/FilterArea/FilterAreaContext.js +6 -0
  65. package/FilterArea/FilterLine.d.ts +19 -0
  66. package/FilterArea/FilterLine.js +19 -0
  67. package/FilterArea/index.d.ts +2 -2
  68. package/FilterArea/index.js +1 -1
  69. package/Form/FormField.d.ts +43 -2
  70. package/Form/FormField.js +40 -3
  71. package/Form/typings.d.ts +2 -0
  72. package/Form/useAutoCompleteValueControl.d.ts +20 -0
  73. package/Form/useAutoCompleteValueControl.js +20 -0
  74. package/Form/useCheckboxControlValue.d.ts +19 -0
  75. package/Form/useCheckboxControlValue.js +19 -0
  76. package/Form/useControlValueState.d.ts +16 -0
  77. package/Form/useControlValueState.js +16 -0
  78. package/Form/useCustomControlValue.d.ts +17 -0
  79. package/Form/useCustomControlValue.js +17 -0
  80. package/Form/useInputControlValue.d.ts +19 -0
  81. package/Form/useInputControlValue.js +19 -0
  82. package/Form/useInputWithClearControlValue.d.ts +20 -0
  83. package/Form/useInputWithClearControlValue.js +20 -0
  84. package/Form/useRadioControlValue.d.ts +19 -0
  85. package/Form/useRadioControlValue.js +19 -0
  86. package/Form/useSelectValueControl.d.ts +19 -0
  87. package/Form/useSelectValueControl.js +19 -0
  88. package/Form/useSwitchControlValue.d.ts +18 -0
  89. package/Form/useSwitchControlValue.js +18 -0
  90. package/Icon/Icon.d.ts +23 -1
  91. package/Icon/Icon.js +23 -1
  92. package/Input/Input.d.ts +31 -1
  93. package/Input/Input.js +31 -1
  94. package/Input/SpinnerButton/SpinnerButton.js +1 -1
  95. package/Message/Message.d.ts +56 -6
  96. package/Message/Message.js +59 -52
  97. package/Modal/Modal.d.ts +76 -4
  98. package/Modal/Modal.js +117 -6
  99. package/Modal/ModalBodyForVerification.js +3 -1
  100. package/Modal/ModalFooter.d.ts +21 -6
  101. package/Modal/ModalHeader.d.ts +50 -11
  102. package/Modal/ModalHeader.js +1 -1
  103. package/Modal/index.d.ts +1 -1
  104. package/Navigation/Navigation.js +20 -11
  105. package/Navigation/NavigationHeader.js +2 -1
  106. package/Navigation/NavigationIconButton.d.ts +8 -0
  107. package/Navigation/NavigationIconButton.js +2 -2
  108. package/Navigation/NavigationOption.js +6 -3
  109. package/Navigation/NavigationOverflowMenu.js +9 -6
  110. package/Navigation/NavigationUserMenu.js +3 -1
  111. package/Navigation/context.d.ts +1 -0
  112. package/NotificationCenter/NotificationCenter.d.ts +59 -9
  113. package/NotificationCenter/NotificationCenter.js +150 -54
  114. package/NotificationCenter/NotificationCenterDrawer.d.ts +56 -6
  115. package/NotificationCenter/NotificationCenterDrawer.js +6 -8
  116. package/NotificationCenter/index.d.ts +1 -1
  117. package/OverflowTooltip/OverflowTooltip.js +46 -5
  118. package/PageFooter/PageFooter.d.ts +1 -1
  119. package/PageFooter/PageFooter.js +8 -16
  120. package/Pagination/Pagination.d.ts +38 -1
  121. package/Pagination/Pagination.js +38 -1
  122. package/Pagination/PaginationPageSize.js +1 -1
  123. package/Pagination/usePagination.d.ts +20 -0
  124. package/Pagination/usePagination.js +20 -0
  125. package/Progress/Progress.d.ts +24 -1
  126. package/Progress/Progress.js +24 -1
  127. package/README.md +82 -0
  128. package/Radio/Radio.d.ts +35 -1
  129. package/Radio/Radio.js +50 -12
  130. package/Radio/RadioGroup.d.ts +2 -2
  131. package/Radio/RadioGroupContext.d.ts +3 -2
  132. package/Section/SectionGroup.d.ts +20 -0
  133. package/Section/SectionGroup.js +16 -0
  134. package/Section/index.d.ts +2 -0
  135. package/Section/index.js +1 -0
  136. package/Select/Select.d.ts +55 -1
  137. package/Select/Select.js +37 -2
  138. package/Select/typings.d.ts +9 -0
  139. package/{Selection/Selection.d.ts → SelectionCard/SelectionCard.d.ts} +23 -11
  140. package/{Selection/Selection.js → SelectionCard/SelectionCard.js} +14 -14
  141. package/SelectionCard/SelectionCardGroup.d.ts +28 -0
  142. package/SelectionCard/index.d.ts +12 -0
  143. package/SelectionCard/index.js +5 -0
  144. package/Separator/Separator.d.ts +19 -1
  145. package/Separator/Separator.js +19 -1
  146. package/Slider/Slider.d.ts +11 -0
  147. package/Slider/useSlider.d.ts +21 -0
  148. package/Spin/Spin.d.ts +14 -5
  149. package/Spin/Spin.js +6 -8
  150. package/Stepper/Stepper.d.ts +34 -1
  151. package/Stepper/Stepper.js +34 -1
  152. package/Stepper/useStepper.d.ts +18 -0
  153. package/Stepper/useStepper.js +18 -0
  154. package/Tab/Tab.d.ts +33 -1
  155. package/Tab/Tab.js +33 -1
  156. package/Table/Table.d.ts +51 -3
  157. package/Table/Table.js +52 -4
  158. package/Table/hooks/useTableDataSource.d.ts +4 -4
  159. package/Table/hooks/useTableDataSource.js +1 -1
  160. package/Tag/Tag.d.ts +27 -1
  161. package/Tag/Tag.js +27 -1
  162. package/Tag/typings.d.ts +28 -0
  163. package/Textarea/Textarea.d.ts +28 -1
  164. package/Textarea/Textarea.js +25 -1
  165. package/TimePicker/TimePicker.js +1 -1
  166. package/TimeRangePicker/TimeRangePicker.js +1 -1
  167. package/Toggle/Toggle.d.ts +34 -1
  168. package/Toggle/Toggle.js +34 -1
  169. package/Tooltip/Tooltip.d.ts +39 -1
  170. package/Tooltip/Tooltip.js +39 -1
  171. package/Tooltip/useDelayMouseEnterLeave.d.ts +17 -0
  172. package/Tooltip/useDelayMouseEnterLeave.js +17 -0
  173. package/Typography/Typography.d.ts +23 -1
  174. package/Typography/Typography.js +23 -1
  175. package/Upload/Upload.d.ts +13 -7
  176. package/Upload/Upload.js +55 -20
  177. package/Upload/UploadItem.d.ts +3 -3
  178. package/Upload/UploadItem.js +11 -8
  179. package/Upload/UploadPictureCard.d.ts +5 -0
  180. package/Upload/UploadPictureCard.js +10 -6
  181. package/Upload/Uploader.d.ts +32 -31
  182. package/Upload/Uploader.js +10 -9
  183. package/hooks/useClickAway.d.ts +16 -0
  184. package/hooks/useClickAway.js +16 -0
  185. package/hooks/useComposeRefs.d.ts +15 -0
  186. package/hooks/useComposeRefs.js +15 -0
  187. package/hooks/useDocumentEscapeKeyDown.d.ts +15 -0
  188. package/hooks/useDocumentEscapeKeyDown.js +15 -0
  189. package/hooks/useDocumentEvents.d.ts +16 -0
  190. package/hooks/useDocumentEvents.js +16 -0
  191. package/hooks/useDocumentTabKeyDown.d.ts +15 -0
  192. package/hooks/useDocumentTabKeyDown.js +15 -0
  193. package/hooks/useIsomorphicLayoutEffect.d.ts +16 -0
  194. package/hooks/useIsomorphicLayoutEffect.js +16 -0
  195. package/hooks/useLastCallback.d.ts +15 -0
  196. package/hooks/useLastCallback.js +15 -0
  197. package/hooks/useLastValue.d.ts +18 -0
  198. package/hooks/useLastValue.js +18 -0
  199. package/hooks/usePreviousValue.d.ts +14 -0
  200. package/hooks/usePreviousValue.js +14 -0
  201. package/hooks/useScrollLock.d.ts +6 -4
  202. package/hooks/useScrollLock.js +6 -4
  203. package/hooks/useTopStack.d.ts +17 -0
  204. package/hooks/useTopStack.js +17 -0
  205. package/hooks/useWindowWidth.d.ts +14 -0
  206. package/hooks/useWindowWidth.js +14 -0
  207. package/index.d.ts +6 -4
  208. package/index.js +3 -2
  209. package/llms.txt +200 -0
  210. package/package.json +5 -4
  211. package/Selection/SelectionGroup.d.ts +0 -28
  212. package/Selection/index.d.ts +0 -12
  213. package/Selection/index.js +0 -5
@@ -33,7 +33,7 @@ function truncateArrayDepth(input, maxDepth = 3, warn = true) {
33
33
  // Stop going deeper once maximum depth is reached, remove children
34
34
  return options.map(({ children: _children, ...option }) => option);
35
35
  }
36
- return options.map(option => {
36
+ return options.map((option) => {
37
37
  if (!option.children)
38
38
  return option;
39
39
  return {
@@ -65,13 +65,15 @@ function truncateArrayDepth(input, maxDepth = 3, warn = true) {
65
65
  return truncate(input);
66
66
  }
67
67
  function DropdownItem(props) {
68
- const { activeIndex, disabled = false, listboxId, listboxLabel, mode = 'single', options, toggleCheckedOnClick, value, type, maxHeight, actionConfig, onHover, onSelect, followText, headerContent, status, loadingText, emptyText, emptyIcon, loadingPosition = 'full', onReachBottom, onLeaveBottom, onScroll, scrollbarDefer = true, scrollbarDisabled = false, scrollbarMaxWidth, scrollbarOptions, } = props;
68
+ const { activeIndex, keyboardActiveIndex, disabled = false, listboxId, listboxLabel, mode = 'single', options, toggleCheckedOnClick, value, type, maxHeight, minWidth, actionConfig, onHover, onSelect, followText, headerContent, status, loadingText, emptyText, emptyIcon, loadingPosition = 'full', onReachBottom, onLeaveBottom, onScroll, scrollbarDefer = true, scrollbarDisabled = false, scrollbarMaxWidth, scrollbarOptions, } = props;
69
+ const { expandedNodes: expandedNodesProp, onToggleExpand: onToggleExpandProp, } = props;
69
70
  const optionsContent = truncateArrayDepth(options, 3);
70
71
  const listRef = useRef(null);
71
72
  const listWrapperRef = useRef(null);
72
73
  const viewportRef = useRef(null);
73
74
  const wasAtBottomRef = useRef(false);
74
- const [expandedNodes, setExpandedNodes] = useState(new Set());
75
+ const [internalExpandedNodes, setInternalExpandedNodes] = useState(new Set());
76
+ const expandedNodes = expandedNodesProp !== null && expandedNodesProp !== void 0 ? expandedNodesProp : internalExpandedNodes;
75
77
  const hasActions = Boolean(actionConfig === null || actionConfig === void 0 ? void 0 : actionConfig.showActions);
76
78
  const hasHeader = Boolean(headerContent);
77
79
  const shouldUseScrollbar = maxHeight && !scrollbarDisabled;
@@ -79,7 +81,11 @@ function DropdownItem(props) {
79
81
  const [actionRef, actionHeight] = useElementHeight(hasActions && !!maxHeight);
80
82
  const [headerRef, headerHeight] = useElementHeight(hasHeader && !!maxHeight);
81
83
  const toggleExpand = useCallback((optionId) => {
82
- setExpandedNodes((prev) => {
84
+ if (onToggleExpandProp) {
85
+ onToggleExpandProp(optionId);
86
+ return;
87
+ }
88
+ setInternalExpandedNodes((prev) => {
83
89
  const next = new Set(prev);
84
90
  if (next.has(optionId)) {
85
91
  next.delete(optionId);
@@ -89,7 +95,7 @@ function DropdownItem(props) {
89
95
  }
90
96
  return next;
91
97
  });
92
- }, []);
98
+ }, [onToggleExpandProp]);
93
99
  const visibleShortcutOptions = useMemo(() => {
94
100
  const result = [];
95
101
  const collectDefault = (optionList) => {
@@ -164,10 +170,10 @@ function DropdownItem(props) {
164
170
  });
165
171
  if (!mainToken)
166
172
  return false;
167
- if (requireMeta !== event.metaKey
168
- || requireCtrl !== event.ctrlKey
169
- || requireAlt !== event.altKey
170
- || requireShift !== event.shiftKey) {
173
+ if (requireMeta !== event.metaKey ||
174
+ requireCtrl !== event.ctrlKey ||
175
+ requireAlt !== event.altKey ||
176
+ requireShift !== event.shiftKey) {
171
177
  return false;
172
178
  }
173
179
  const mainCode = keycode(mainToken);
@@ -179,7 +185,8 @@ function DropdownItem(props) {
179
185
  return true;
180
186
  }
181
187
  const eventKeyName = keycode(eventCode);
182
- return typeof eventKeyName === 'string' && eventKeyName.toLowerCase() === mainToken;
188
+ return (typeof eventKeyName === 'string' &&
189
+ eventKeyName.toLowerCase() === mainToken);
183
190
  }, []);
184
191
  const renderGroupedOptions = (optionList, startIndex) => {
185
192
  let currentIndex = startIndex;
@@ -190,10 +197,13 @@ function DropdownItem(props) {
190
197
  if (hasChildren) {
191
198
  groupElements.push(jsx(Typography, { variant: "body", className: dropdownClasses.groupLabel, children: groupOption.name }, groupOption.id));
192
199
  (_a = groupOption.children) === null || _a === void 0 ? void 0 : _a.forEach((option) => {
193
- var _a, _b, _c;
200
+ var _a, _b, _c, _d;
194
201
  currentIndex += 1;
195
202
  const optionIndex = currentIndex;
196
- const isActive = optionIndex === activeIndex;
203
+ const isActive = optionIndex ===
204
+ (keyboardActiveIndex !== undefined
205
+ ? keyboardActiveIndex
206
+ : activeIndex);
197
207
  const isSelected = Array.isArray(value)
198
208
  ? value.includes(option.id)
199
209
  : value === option.id;
@@ -204,7 +214,7 @@ function DropdownItem(props) {
204
214
  if (disabled)
205
215
  return;
206
216
  onSelect === null || onSelect === void 0 ? void 0 : onSelect(option);
207
- }, checkSite: "none", validate: (_b = option.validate) !== null && _b !== void 0 ? _b : 'default', onMouseEnter: () => onHover === null || onHover === void 0 ? void 0 : onHover(optionIndex), showUnderline: (_c = option.showUnderline) !== null && _c !== void 0 ? _c : false, appendContent: shortcutText }, option.id));
217
+ }, checkSite: (_b = option === null || option === void 0 ? void 0 : option.checkSite) !== null && _b !== void 0 ? _b : 'suffix', validate: (_c = option.validate) !== null && _c !== void 0 ? _c : 'default', onMouseEnter: () => onHover === null || onHover === void 0 ? void 0 : onHover(optionIndex), showUnderline: (_d = option.showUnderline) !== null && _d !== void 0 ? _d : false, appendContent: shortcutText }, option.id));
208
218
  });
209
219
  }
210
220
  return groupElements;
@@ -230,37 +240,49 @@ function DropdownItem(props) {
230
240
  }, []);
231
241
  const renderTreeOptions = (optionList, depth, startIndex) => {
232
242
  let currentIndex = startIndex;
233
- const selectedIds = Array.isArray(value) ? value.map((id) => String(id)) : value ? [String(value)] : [];
243
+ const selectedIds = Array.isArray(value)
244
+ ? value.map((id) => String(id))
245
+ : value
246
+ ? [String(value)]
247
+ : [];
234
248
  const elements = (optionList !== null && optionList !== void 0 ? optionList : []).flatMap((option) => {
235
- var _a, _b, _c;
249
+ var _a, _b, _c, _d;
236
250
  currentIndex += 1;
237
251
  const optionIndex = currentIndex;
238
252
  const level = Math.min(depth, 2);
239
- const isActive = optionIndex === activeIndex;
253
+ const isActive = optionIndex ===
254
+ (keyboardActiveIndex !== undefined ? keyboardActiveIndex : activeIndex);
240
255
  const hasChildren = Boolean(option.children && option.children.length > 0);
241
256
  const isExpanded = hasChildren && expandedNodes.has(option.id);
242
257
  let prependIcon = undefined;
243
258
  if (hasChildren && level !== 2) {
244
259
  prependIcon = isExpanded ? CaretDownIcon : CaretRightIcon;
245
260
  }
246
- const checkSite = option.showCheckbox ? 'prefix' : 'none';
261
+ const checkSite = option.showCheckbox
262
+ ? 'prefix'
263
+ : ((_a = option.checkSite) !== null && _a !== void 0 ? _a : (mode === 'single' ? 'suffix' : 'none'));
247
264
  const shortcutText = option.shortcutText
248
265
  ? option.shortcutText
249
- : shortcutTextHandler((_a = option.shortcutKeys) !== null && _a !== void 0 ? _a : []);
266
+ : shortcutTextHandler((_b = option.shortcutKeys) !== null && _b !== void 0 ? _b : []);
250
267
  const selectionState = hasChildren && mode === 'multiple'
251
268
  ? calculateNodeSelectionState(option, selectedIds)
252
269
  : {
253
270
  checked: selectedIds.includes(String(option.id)),
254
271
  indeterminate: false,
255
272
  };
256
- const resolvedToggleCheckedOnClick = toggleCheckedOnClick !== null && toggleCheckedOnClick !== void 0 ? toggleCheckedOnClick : !(hasChildren
257
- && type === 'tree'
258
- && mode === 'multiple'
259
- && option.showCheckbox);
260
- const card = (jsx(DropdownItemCard, { active: isActive, checked: selectionState.checked, indeterminate: selectionState.indeterminate, disabled: disabled, id: `${listboxId}-option-${optionIndex}`, label: option.name, level: level, mode: mode, name: option.name, toggleCheckedOnClick: resolvedToggleCheckedOnClick, onClick: () => {
273
+ const resolvedToggleCheckedOnClick = toggleCheckedOnClick !== null && toggleCheckedOnClick !== void 0 ? toggleCheckedOnClick : !(hasChildren &&
274
+ type === 'tree' &&
275
+ mode === 'multiple' &&
276
+ option.showCheckbox);
277
+ const card = (jsx(DropdownItemCard, { active: isActive, checked: selectionState.checked, className: !hasChildren && level === 1
278
+ ? dropdownClasses.cardLeafLevel1
279
+ : undefined, indeterminate: selectionState.indeterminate, disabled: disabled, id: `${listboxId}-option-${optionIndex}`, label: option.name, level: level, mode: mode, name: option.name, toggleCheckedOnClick: resolvedToggleCheckedOnClick, onClick: () => {
261
280
  if (disabled)
262
281
  return;
263
- if (hasChildren && type === 'tree' && mode === 'multiple' && option.showCheckbox) {
282
+ if (hasChildren &&
283
+ type === 'tree' &&
284
+ mode === 'multiple' &&
285
+ option.showCheckbox) {
264
286
  toggleExpand(option.id);
265
287
  }
266
288
  else if (hasChildren && type === 'tree') {
@@ -270,7 +292,10 @@ function DropdownItem(props) {
270
292
  // In `tree` + `multiple` mode, `DropdownItemCard` already triggers selection via
271
293
  // `onCheckedChange` when row is clicked (it toggles checked first, then calls `onClick`),
272
294
  // so calling `onSelect` here would cause it to fire twice for leaf nodes.
273
- if (!(type === 'tree' && mode === 'multiple')) {
295
+ // In `multiple` mode, row click also triggers `onCheckedChange` when
296
+ // `toggleCheckedOnClick` is enabled, so avoid firing `onSelect` twice.
297
+ if (!(type === 'tree' && mode === 'multiple') &&
298
+ !(mode === 'multiple' && resolvedToggleCheckedOnClick)) {
274
299
  onSelect === null || onSelect === void 0 ? void 0 : onSelect(option);
275
300
  }
276
301
  }
@@ -278,7 +303,7 @@ function DropdownItem(props) {
278
303
  if (!disabled) {
279
304
  onSelect === null || onSelect === void 0 ? void 0 : onSelect(option);
280
305
  }
281
- }, followText: followText, checkSite: checkSite, onMouseEnter: () => onHover === null || onHover === void 0 ? void 0 : onHover(optionIndex), prependIcon: prependIcon, showUnderline: (_b = option.showUnderline) !== null && _b !== void 0 ? _b : false, validate: (_c = option.validate) !== null && _c !== void 0 ? _c : 'default', appendContent: shortcutText }, option.id));
306
+ }, followText: followText, checkSite: checkSite, onMouseEnter: () => onHover === null || onHover === void 0 ? void 0 : onHover(optionIndex), prependIcon: prependIcon, showUnderline: (_c = option.showUnderline) !== null && _c !== void 0 ? _c : false, validate: (_d = option.validate) !== null && _d !== void 0 ? _d : 'default', appendContent: shortcutText }, option.id));
282
307
  if (hasChildren && isExpanded && type === 'tree') {
283
308
  const childResult = renderTreeOptions(option.children, depth + 1, currentIndex);
284
309
  currentIndex = childResult.nextIndex;
@@ -297,11 +322,12 @@ function DropdownItem(props) {
297
322
  const isSelected = Array.isArray(value)
298
323
  ? value.includes(option.id)
299
324
  : value === option.id;
300
- const isActive = optionIndex === activeIndex;
325
+ const isActive = optionIndex ===
326
+ (keyboardActiveIndex !== undefined ? keyboardActiveIndex : activeIndex);
301
327
  const shortcutText = option.shortcutText
302
328
  ? option.shortcutText
303
329
  : shortcutTextHandler((_a = option.shortcutKeys) !== null && _a !== void 0 ? _a : []);
304
- const checkSite = (_b = option === null || option === void 0 ? void 0 : option.checkSite) !== null && _b !== void 0 ? _b : 'none';
330
+ const checkSite = (_b = option === null || option === void 0 ? void 0 : option.checkSite) !== null && _b !== void 0 ? _b : 'suffix';
305
331
  return (jsx(DropdownItemCard, { followText: followText, active: isActive, checked: isSelected, disabled: disabled, id: `${listboxId}-option-${optionIndex}`, label: option.name, mode: mode, name: option.name, toggleCheckedOnClick: toggleCheckedOnClick, onClick: () => {
306
332
  if (disabled)
307
333
  return;
@@ -328,13 +354,17 @@ function DropdownItem(props) {
328
354
  // Show bottom loading when status is loading and loadingPosition is bottom
329
355
  const shouldShowBottomLoading = status === 'loading' && loadingPosition === 'bottom';
330
356
  const listStyle = useMemo(() => {
331
- if (!maxHeight) {
332
- return undefined;
357
+ const styles = {};
358
+ if (maxHeight) {
359
+ styles.maxHeight =
360
+ typeof maxHeight === 'number' ? `${maxHeight}px` : maxHeight;
333
361
  }
334
- return {
335
- maxHeight: typeof maxHeight === 'number' ? `${maxHeight}px` : maxHeight,
336
- };
337
- }, [maxHeight]);
362
+ if (minWidth !== undefined) {
363
+ styles['--mzn-dropdown-list-min-width'] =
364
+ typeof minWidth === 'number' ? `${minWidth}px` : minWidth;
365
+ }
366
+ return Object.keys(styles).length > 0 ? styles : undefined;
367
+ }, [maxHeight, minWidth]);
338
368
  const listWrapperStyle = useMemo(() => {
339
369
  if (!maxHeight) {
340
370
  return undefined;
@@ -358,7 +388,8 @@ function DropdownItem(props) {
358
388
  if (event.repeat)
359
389
  return;
360
390
  const targetOption = visibleShortcutOptions.find((option) => {
361
- if (!Array.isArray(option.shortcutKeys) || option.shortcutKeys.length === 0) {
391
+ if (!Array.isArray(option.shortcutKeys) ||
392
+ option.shortcutKeys.length === 0) {
362
393
  return false;
363
394
  }
364
395
  return option.shortcutKeys.some((shortcut) => matchShortcut(event, shortcut));
@@ -367,7 +398,9 @@ function DropdownItem(props) {
367
398
  return;
368
399
  event.preventDefault();
369
400
  event.stopPropagation();
370
- if (type === 'tree' && targetOption.children && targetOption.children.length > 0) {
401
+ if (type === 'tree' &&
402
+ targetOption.children &&
403
+ targetOption.children.length > 0) {
371
404
  toggleExpand(targetOption.id);
372
405
  return;
373
406
  }
@@ -377,7 +410,14 @@ function DropdownItem(props) {
377
410
  return () => {
378
411
  listElement.removeEventListener('keydown', handleKeyDown);
379
412
  };
380
- }, [disabled, matchShortcut, onSelect, type, toggleExpand, visibleShortcutOptions]);
413
+ }, [
414
+ disabled,
415
+ matchShortcut,
416
+ onSelect,
417
+ type,
418
+ toggleExpand,
419
+ visibleShortcutOptions,
420
+ ]);
381
421
  const handleViewportReady = useCallback((viewport) => {
382
422
  viewportRef.current = viewport;
383
423
  listWrapperRef.current = viewport;
@@ -416,7 +456,9 @@ function DropdownItem(props) {
416
456
  return;
417
457
  }
418
458
  const listWrapperElement = listWrapperRef.current;
419
- if (!listWrapperElement || !maxHeight || (!onReachBottom && !onLeaveBottom && !onScroll)) {
459
+ if (!listWrapperElement ||
460
+ !maxHeight ||
461
+ (!onReachBottom && !onLeaveBottom && !onScroll)) {
420
462
  return;
421
463
  }
422
464
  // Initialize wasAtBottom state by checking current position
@@ -453,7 +495,8 @@ function DropdownItem(props) {
453
495
  };
454
496
  }, [maxHeight, onReachBottom, onLeaveBottom, onScroll, shouldUseScrollbar]);
455
497
  const scrollbarEvents = useMemo(() => {
456
- if (!shouldUseScrollbar || (!onReachBottom && !onLeaveBottom && !onScroll)) {
498
+ if (!shouldUseScrollbar ||
499
+ (!onReachBottom && !onLeaveBottom && !onScroll)) {
457
500
  return undefined;
458
501
  }
459
502
  return {
@@ -479,10 +522,15 @@ function DropdownItem(props) {
479
522
  wasAtBottomRef.current = isAtBottom;
480
523
  },
481
524
  };
482
- }, [getIsAtBottom, shouldUseScrollbar, onReachBottom, onLeaveBottom, onScroll]);
483
- return (jsxs("ul", { "aria-label": listboxLabel || (optionsContent.length === 0 ? 'Dropdown options' : undefined), className: dropdownClasses.list, id: listboxId, ref: listRef, role: "listbox", style: listStyle, tabIndex: -1, children: [hasHeader && (jsx("li", { className: dropdownClasses.listHeader, role: "presentation", ref: headerRef, children: jsx("div", { className: dropdownClasses.listHeaderInner, children: headerContent }) })), maxHeight
484
- ? (shouldUseScrollbar ? (jsx(Scrollbar, { className: dropdownClasses.listWrapper, defer: scrollbarDefer, disabled: false, events: scrollbarEvents, maxHeight: listWrapperStyle === null || listWrapperStyle === void 0 ? void 0 : listWrapperStyle.maxHeight, maxWidth: scrollbarMaxWidth, onViewportReady: handleViewportReady, options: scrollbarOptions, children: shouldShowFullStatus ? (jsx(DropdownStatus, { status: status, loadingText: loadingText, emptyText: emptyText, emptyIcon: emptyIcon })) : (jsxs(Fragment, { children: [renderedOptions, shouldShowBottomLoading && (jsx("li", { className: dropdownClasses.loadingMore, "aria-live": "polite", role: "status", children: jsx(DropdownStatus, { status: "loading", loadingText: loadingText }) }))] })) })) : (jsx("div", { ref: listWrapperRef, className: dropdownClasses.listWrapper, style: listWrapperStyle, children: shouldShowFullStatus ? (jsx(DropdownStatus, { status: status, loadingText: loadingText, emptyText: emptyText, emptyIcon: emptyIcon })) : (jsxs(Fragment, { children: [renderedOptions, shouldShowBottomLoading && (jsx("li", { className: dropdownClasses.loadingMore, "aria-live": "polite", role: "status", children: jsx(DropdownStatus, { status: "loading", loadingText: loadingText }) }))] })) })))
485
- : shouldShowFullStatus ? (jsx(DropdownStatus, { status: status, loadingText: loadingText, emptyText: emptyText, emptyIcon: emptyIcon })) : (jsxs(Fragment, { children: [renderedOptions, shouldShowBottomLoading && (jsx("li", { className: dropdownClasses.loadingMore, "aria-live": "polite", role: "status", children: jsx(DropdownStatus, { status: "loading", loadingText: loadingText }) }))] })), hasActions && (jsx("div", { ref: actionRef, children: jsx(DropdownAction, { ...actionConfig }) }))] }));
525
+ }, [
526
+ getIsAtBottom,
527
+ shouldUseScrollbar,
528
+ onReachBottom,
529
+ onLeaveBottom,
530
+ onScroll,
531
+ ]);
532
+ return (jsxs("ul", { "aria-label": listboxLabel ||
533
+ (optionsContent.length === 0 ? 'Dropdown options' : undefined), className: dropdownClasses.list, id: listboxId, ref: listRef, role: "listbox", style: listStyle, tabIndex: -1, children: [hasHeader && (jsx("li", { className: dropdownClasses.listHeader, role: "presentation", ref: headerRef, children: jsx("div", { className: dropdownClasses.listHeaderInner, children: headerContent }) })), maxHeight ? (shouldUseScrollbar ? (jsx(Scrollbar, { className: dropdownClasses.listWrapper, defer: scrollbarDefer, disabled: false, events: scrollbarEvents, maxHeight: listWrapperStyle === null || listWrapperStyle === void 0 ? void 0 : listWrapperStyle.maxHeight, maxWidth: scrollbarMaxWidth, onViewportReady: handleViewportReady, options: scrollbarOptions, children: shouldShowFullStatus ? (jsx(DropdownStatus, { status: status, loadingText: loadingText, emptyText: emptyText, emptyIcon: emptyIcon })) : (jsxs(Fragment, { children: [renderedOptions, shouldShowBottomLoading && (jsx("li", { className: dropdownClasses.loadingMore, "aria-live": "polite", role: "status", children: jsx(DropdownStatus, { status: "loading", loadingText: loadingText }) }))] })) })) : (jsx("div", { ref: listWrapperRef, className: dropdownClasses.listWrapper, style: listWrapperStyle, children: shouldShowFullStatus ? (jsx(DropdownStatus, { status: status, loadingText: loadingText, emptyText: emptyText, emptyIcon: emptyIcon })) : (jsxs(Fragment, { children: [renderedOptions, shouldShowBottomLoading && (jsx("li", { className: dropdownClasses.loadingMore, "aria-live": "polite", role: "status", children: jsx(DropdownStatus, { status: "loading", loadingText: loadingText }) }))] })) }))) : shouldShowFullStatus ? (jsx(DropdownStatus, { status: status, loadingText: loadingText, emptyText: emptyText, emptyIcon: emptyIcon })) : (jsxs(Fragment, { children: [renderedOptions, shouldShowBottomLoading && (jsx("li", { className: dropdownClasses.loadingMore, "aria-live": "polite", role: "status", children: jsx(DropdownStatus, { status: "loading", loadingText: loadingText }) }))] })), hasActions && (jsx("div", { ref: actionRef, children: jsx(DropdownAction, { ...actionConfig }) }))] }));
486
534
  }
487
535
 
488
536
  export { DropdownItem as default };
@@ -3,8 +3,9 @@ import { type IconDefinition } from '@mezzanine-ui/icons';
3
3
  export interface DropdownItemCardProps {
4
4
  /**
5
5
  * Whether the option is currently active (highlighted by keyboard navigation).
6
- * This controls the aria-selected attribute according to W3C ARIA spec.
7
- * When an option is referenced by aria-activedescendant, it should have aria-selected="true".
6
+ * Used to apply visual highlight and drive the `--active` CSS modifier.
7
+ * Note: keyboard focus position is communicated to screen readers via `aria-activedescendant`
8
+ * on the trigger element, not via `aria-selected` on the option itself.
8
9
  */
9
10
  active?: boolean;
10
11
  /**
@@ -57,8 +57,10 @@ function DropdownItemCard(props) {
57
57
  ];
58
58
  }, [cardLabel, followText]);
59
59
  const showPrependContent = useMemo(() => {
60
- return prependIcon || (checkSite === 'prefix' && mode === 'multiple');
61
- }, [prependIcon, checkSite, mode]);
60
+ return (prependIcon ||
61
+ (checkSite === 'prefix' && mode === 'multiple') ||
62
+ (checkSite === 'prefix' && mode === 'single' && isChecked));
63
+ }, [prependIcon, checkSite, mode, isChecked]);
62
64
  const showAppendContent = useMemo(() => {
63
65
  return appendContent || appendIcon || (checkSite === 'suffix' && isChecked);
64
66
  }, [appendContent, appendIcon, checkSite, isChecked]);
@@ -105,11 +107,12 @@ function DropdownItemCard(props) {
105
107
  return;
106
108
  if (event.key === 'Enter' || event.key === ' ') {
107
109
  event.preventDefault();
108
- onClick === null || onClick === void 0 ? void 0 : onClick();
110
+ handleClick();
109
111
  }
110
112
  };
111
- return (jsxs(Fragment, { children: [jsx("li", { ...(labelId ? { 'aria-labelledby': labelId } : {}), ...(ariaLabel ? { 'aria-label': ariaLabel } : {}), "aria-selected": active, className: cx(dropdownClasses.card, dropdownClasses.cardLevel(level), {
113
+ return (jsxs(Fragment, { children: [jsx("li", { ...(labelId ? { 'aria-labelledby': labelId } : {}), ...(ariaLabel ? { 'aria-label': ariaLabel } : {}), "aria-selected": isChecked, className: cx(dropdownClasses.card, dropdownClasses.cardLevel(level), {
112
114
  [dropdownClasses.cardActive]: active || isChecked,
115
+ [dropdownClasses.cardKeyboardActive]: active,
113
116
  [dropdownClasses.cardDisabled]: disabled,
114
117
  [dropdownClasses.cardDanger]: validate === 'danger',
115
118
  }, className), id: id, role: "option", tabIndex: -1, onMouseEnter: onMouseEnter, onClick: handleClick, onKeyDown: handleKeyDown, children: jsxs("div", { className: dropdownClasses.cardContainer, children: [showPrependContent && (jsxs("div", { className: dropdownClasses.cardPrependContent, children: [prependIcon && jsx(Icon, { icon: prependIcon, color: iconColor }), checkSite === 'prefix' && mode === 'multiple' && (jsx(Checkbox, { checked: isChecked, disabled: disabled, indeterminate: indeterminate, onChange: handleCheckboxChange, ...(onCheckedChange
@@ -117,7 +120,7 @@ function DropdownItemCard(props) {
117
120
  onClick: (event) => event.stopPropagation(),
118
121
  onMouseDown: (event) => event.stopPropagation(),
119
122
  }
120
- : {}) }))] })), jsxs("div", { className: dropdownClasses.cardBody, children: [cardLabel &&
123
+ : {}) })), checkSite === 'prefix' && mode === 'single' && isChecked && (jsx(Icon, { icon: CheckedIcon, color: appendIconColor, size: 16 }))] })), jsxs("div", { className: dropdownClasses.cardBody, children: [cardLabel &&
121
124
  renderHighlightedText(labelParts, dropdownClasses.cardTitle, labelId), subTitleParts.length > 0 &&
122
125
  renderHighlightedText(subTitleParts, dropdownClasses.cardDescription)] }), showAppendContent && (jsxs("div", { className: dropdownClasses.cardAppendContent, children: [appendContent && (jsx(Typography, { color: "text-neutral-light", children: appendContent })), appendIcon && jsx(Icon, { icon: appendIcon, color: iconColor }), checkSite === 'suffix' && isChecked && (jsx(Icon, { icon: CheckedIcon, color: appendIconColor, size: 16 }))] }))] }) }), showUnderline && (jsx("li", { role: "presentation", "aria-hidden": "true", children: jsx(Separator, { orientation: "horizontal", className: dropdownClasses.cardUnderline }) }))] }));
123
126
  }
@@ -1,5 +1,5 @@
1
- import { DropdownStatus as DropdownStatusType } from "@mezzanine-ui/core/dropdown/dropdown";
2
- import { IconDefinition } from "@mezzanine-ui/icons";
1
+ import { DropdownStatus as DropdownStatusType } from '@mezzanine-ui/core/dropdown/dropdown';
2
+ import { IconDefinition } from '@mezzanine-ui/icons';
3
3
  export interface DropdownStatusProps {
4
4
  /**
5
5
  * The status of the dropdown.
@@ -2,8 +2,9 @@
2
2
  import { jsx, jsxs } from 'react/jsx-runtime';
3
3
  import { useMemo } from 'react';
4
4
  import { dropdownClasses } from '@mezzanine-ui/core/dropdown/dropdown';
5
- import { SpinnerIcon, FolderOpenIcon } from '@mezzanine-ui/icons';
5
+ import { FolderOpenIcon } from '@mezzanine-ui/icons';
6
6
  import Typography from '../Typography/Typography.js';
7
+ import Spin from '../Spin/Spin.js';
7
8
  import Icon from '../Icon/Icon.js';
8
9
 
9
10
  function DropdownStatus(props) {
@@ -19,7 +20,7 @@ function DropdownStatus(props) {
19
20
  }, [status, loadingText, emptyText]);
20
21
  const IconElement = useMemo(() => {
21
22
  if (status === 'loading') {
22
- return jsx(Icon, { icon: SpinnerIcon, size: 16, spin: true, color: "brand" });
23
+ return jsx(Spin, { loading: true, size: "minor" });
23
24
  }
24
25
  return jsx(Icon, { icon: emptyIcon !== null && emptyIcon !== void 0 ? emptyIcon : FolderOpenIcon, size: 16 });
25
26
  }, [status, emptyIcon]);
@@ -11,6 +11,12 @@ export declare function createDropdownKeydownHandler(params: {
11
11
  open: boolean;
12
12
  options: DropdownOption[];
13
13
  setActiveIndex: Dispatch<SetStateAction<number | null>>;
14
+ /**
15
+ * Optional setter for keyboard-only active index.
16
+ * When provided, it is updated alongside `setActiveIndex` on arrow key navigation,
17
+ * and cleared on Escape / directional keys that exit the list.
18
+ */
19
+ setKeyboardActiveIndex?: Dispatch<SetStateAction<number | null>>;
14
20
  setListboxHasVisualFocus: (focus: boolean) => void;
15
21
  setOpen: (open: boolean) => void;
16
22
  }): (e: React.KeyboardEvent<HTMLInputElement>) => void;
@@ -3,7 +3,7 @@
3
3
  * Keeps logic centralized in DropdownItem for easy reuse.
4
4
  */
5
5
  function createDropdownKeydownHandler(params) {
6
- const { activeIndex, onEnterSelect, onEscape, open, options, setActiveIndex, setListboxHasVisualFocus, setOpen, } = params;
6
+ const { activeIndex, onEnterSelect, onEscape, open, options, setActiveIndex, setKeyboardActiveIndex, setListboxHasVisualFocus, setOpen, } = params;
7
7
  return (e) => {
8
8
  if (options.length === 0)
9
9
  return;
@@ -15,13 +15,14 @@ function createDropdownKeydownHandler(params) {
15
15
  setOpen(true);
16
16
  setListboxHasVisualFocus(true);
17
17
  setActiveIndex(() => 0);
18
+ setKeyboardActiveIndex === null || setKeyboardActiveIndex === void 0 ? void 0 : setKeyboardActiveIndex(() => 0);
18
19
  return;
19
20
  }
20
21
  setListboxHasVisualFocus(true);
21
22
  setActiveIndex((prev) => {
22
- if (prev === null)
23
- return 0;
24
- return prev >= options.length - 1 ? 0 : prev + 1;
23
+ const next = prev === null ? 0 : prev >= options.length - 1 ? 0 : prev + 1;
24
+ setKeyboardActiveIndex === null || setKeyboardActiveIndex === void 0 ? void 0 : setKeyboardActiveIndex(() => next);
25
+ return next;
25
26
  });
26
27
  break;
27
28
  }
@@ -32,13 +33,18 @@ function createDropdownKeydownHandler(params) {
32
33
  setOpen(true);
33
34
  setListboxHasVisualFocus(true);
34
35
  setActiveIndex(() => options.length - 1);
36
+ setKeyboardActiveIndex === null || setKeyboardActiveIndex === void 0 ? void 0 : setKeyboardActiveIndex(() => options.length - 1);
35
37
  return;
36
38
  }
37
39
  setListboxHasVisualFocus(true);
38
40
  setActiveIndex((prev) => {
39
- if (prev === null)
40
- return options.length - 1;
41
- return prev <= 0 ? options.length - 1 : prev - 1;
41
+ const next = prev === null
42
+ ? options.length - 1
43
+ : prev <= 0
44
+ ? options.length - 1
45
+ : prev - 1;
46
+ setKeyboardActiveIndex === null || setKeyboardActiveIndex === void 0 ? void 0 : setKeyboardActiveIndex(() => next);
47
+ return next;
42
48
  });
43
49
  break;
44
50
  }
@@ -64,6 +70,7 @@ function createDropdownKeydownHandler(params) {
64
70
  case 'ArrowRight': {
65
71
  setListboxHasVisualFocus(false);
66
72
  setActiveIndex(() => null);
73
+ setKeyboardActiveIndex === null || setKeyboardActiveIndex === void 0 ? void 0 : setKeyboardActiveIndex(() => null);
67
74
  break;
68
75
  }
69
76
  }
@@ -3,7 +3,7 @@ import { forwardRef } from 'react';
3
3
 
4
4
  const EmptyMainInitialDataIcon = forwardRef(function EmptyInitialDataIcon(props, ref) {
5
5
  const { className, size = 64, ...rest } = props;
6
- return (jsxs("svg", { ...rest, className: className, fill: "none", height: size, ref: ref, viewBox: "0 0 64 64", width: size, xmlns: "http://www.w3.org/2000/svg", children: [jsxs("defs", { children: [jsxs("linearGradient", { gradientUnits: "userSpaceOnUse", id: "paint0_linear_15033_10920", x1: "27.52", x2: "5.12", y1: "11.7333", y2: "52.6933", children: [jsx("stop", { stopColor: "#E5E7EB" }), jsx("stop", { offset: "1", stopColor: "#9DA4AE" })] }), jsxs("linearGradient", { gradientUnits: "userSpaceOnUse", id: "paint1_linear_15033_10920", x1: "43.2", x2: "38.2673", y1: "11.7333", y2: "52.0904", children: [jsx("stop", { stopColor: "#E5E7EB" }), jsx("stop", { offset: "1", stopColor: "#9DA4AE" })] }), jsx("clipPath", { id: "clip0_15033_10920", children: jsx("rect", { fill: "white", height: "64", width: "64" }) })] }), jsxs("g", { clipPath: "url(#clip0_15033_10920)", children: [jsx("path", { d: "M5.12 11.7333H27.52V52.6933H6.11999C5.56771 52.6933 5.12 52.2456 5.12 51.6933V11.7333Z", fill: "url(#paint0_linear_15033_10920)" }), jsx("path", { d: "M5.10416 11.7333H27.4282L22.3184 27.5737C22.1852 27.9867 21.8007 28.2667 21.3667 28.2667H1.14414C0.465656 28.2667 -0.0158672 27.6054 0.192428 26.9597L5.10416 11.7333Z", fill: "#E5E7EB" }), jsx("path", { d: "M27.52 11.7333H58.88V51.6933C58.88 52.2456 58.4323 52.6933 57.88 52.6933H27.52V11.7333Z", fill: "url(#paint1_linear_15033_10920)" }), jsx("path", { d: "M27.4282 11.7333H58.8871L63.7988 26.9597C64.0071 27.6054 63.5255 28.2667 62.8471 28.2667H33.4897C33.0557 28.2667 32.6712 27.9867 32.5379 27.5737L27.4282 11.7333Z", fill: "#E5E7EB" })] })] }));
6
+ return (jsxs("svg", { ...rest, className: className, fill: "none", height: size, ref: ref, viewBox: "0 0 64 64", width: size, xmlns: "http://www.w3.org/2000/svg", children: [jsxs("defs", { children: [jsxs("linearGradient", { gradientUnits: "userSpaceOnUse", id: "paint0_linear_15033_10920", x1: "27.52", x2: "5.12", y1: "11.7333", y2: "52.6933", children: [jsx("stop", { stopColor: "var(--mzn-color-background-neutral-subtle)" }), jsx("stop", { offset: "1", stopColor: "var(--mzn-color-background-neutral)" })] }), jsxs("linearGradient", { gradientUnits: "userSpaceOnUse", id: "paint1_linear_15033_10920", x1: "43.2", x2: "38.2673", y1: "11.7333", y2: "52.0904", children: [jsx("stop", { stopColor: "var(--mzn-color-background-neutral-subtle)" }), jsx("stop", { offset: "1", stopColor: "var(--mzn-color-background-neutral)" })] }), jsx("clipPath", { id: "clip0_15033_10920", children: jsx("rect", { fill: "white", height: "64", width: "64" }) })] }), jsxs("g", { clipPath: "url(#clip0_15033_10920)", children: [jsx("path", { d: "M5.12 11.7333H27.52V52.6933H6.11999C5.56771 52.6933 5.12 52.2456 5.12 51.6933V11.7333Z", fill: "url(#paint0_linear_15033_10920)" }), jsx("path", { d: "M5.10416 11.7333H27.4282L22.3184 27.5737C22.1852 27.9867 21.8007 28.2667 21.3667 28.2667H1.14414C0.465656 28.2667 -0.0158672 27.6054 0.192428 26.9597L5.10416 11.7333Z", fill: "#E5E7EB" }), jsx("path", { d: "M27.52 11.7333H58.88V51.6933C58.88 52.2456 58.4323 52.6933 57.88 52.6933H27.52V11.7333Z", fill: "url(#paint1_linear_15033_10920)" }), jsx("path", { d: "M27.4282 11.7333H58.8871L63.7988 26.9597C64.0071 27.6054 63.5255 28.2667 62.8471 28.2667H33.4897C33.0557 28.2667 32.6712 27.9867 32.5379 27.5737L27.4282 11.7333Z", fill: "#E5E7EB" })] })] }));
7
7
  });
8
8
 
9
9
  export { EmptyMainInitialDataIcon };
@@ -3,7 +3,7 @@ import { forwardRef } from 'react';
3
3
 
4
4
  const EmptyMainNotificationIcon = forwardRef(function EmptyMainNotificationIcon(props, ref) {
5
5
  const { className, size = 64, ...rest } = props;
6
- return (jsxs("svg", { ...rest, className: className, fill: "none", height: size, ref: ref, viewBox: "0 0 44 47", width: size, xmlns: "http://www.w3.org/2000/svg", children: [jsxs("defs", { children: [jsxs("linearGradient", { gradientUnits: "userSpaceOnUse", id: "paint0_linear_8482_10235", x1: "22", x2: "20.7012", y1: "33", y2: "46.8785", children: [jsx("stop", { stopColor: "#9DA4AE" }), jsx("stop", { offset: "1", stopColor: "#E5E7EB" })] }), jsxs("linearGradient", { gradientUnits: "userSpaceOnUse", id: "paint1_linear_8482_10235", x1: "44", x2: "-3.06232", y1: "-1.43647e-06", y2: "35.9963", children: [jsx("stop", { stopColor: "#E5E7EB" }), jsx("stop", { offset: "1", stopColor: "#9DA4AE" })] })] }), jsx("circle", { cx: "22", cy: "40", fill: "url(#paint0_linear_8482_10235)", r: "7" }), jsx("path", { d: "M6.69446 15.305C6.69446 6.85228 13.5467 0 21.9995 0C30.4522 0 37.3045 6.85228 37.3045 15.305V26.5731C37.3045 26.6145 37.3141 26.6552 37.3326 26.6922L43.2746 38.5521C43.6077 39.217 43.1242 40 42.3805 40H1.61938C0.875674 40 0.392197 39.2171 0.725289 38.5521L6.66632 26.6922C6.68483 26.6552 6.69446 26.6145 6.69446 26.5731V15.305Z", fill: "url(#paint1_linear_8482_10235)" })] }));
6
+ return (jsxs("svg", { ...rest, className: className, fill: "none", height: size, ref: ref, viewBox: "0 0 44 47", width: size, xmlns: "http://www.w3.org/2000/svg", children: [jsxs("defs", { children: [jsxs("linearGradient", { gradientUnits: "userSpaceOnUse", id: "paint0_linear_8482_10235", x1: "22", x2: "20.7012", y1: "33", y2: "46.8785", children: [jsx("stop", { stopColor: "var(--mzn-color-background-neutral)" }), jsx("stop", { offset: "1", stopColor: "var(--mzn-color-background-neutral-subtle)" })] }), jsxs("linearGradient", { gradientUnits: "userSpaceOnUse", id: "paint1_linear_8482_10235", x1: "44", x2: "-3.06232", y1: "-1.43647e-06", y2: "35.9963", children: [jsx("stop", { stopColor: "var(--mzn-color-background-neutral-subtle)" }), jsx("stop", { offset: "1", stopColor: "var(--mzn-color-background-neutral)" })] })] }), jsx("circle", { cx: "22", cy: "40", fill: "url(#paint0_linear_8482_10235)", r: "7" }), jsx("path", { d: "M6.69446 15.305C6.69446 6.85228 13.5467 0 21.9995 0C30.4522 0 37.3045 6.85228 37.3045 15.305V26.5731C37.3045 26.6145 37.3141 26.6552 37.3326 26.6922L43.2746 38.5521C43.6077 39.217 43.1242 40 42.3805 40H1.61938C0.875674 40 0.392197 39.2171 0.725289 38.5521L6.66632 26.6922C6.68483 26.6552 6.69446 26.6145 6.69446 26.5731V15.305Z", fill: "url(#paint1_linear_8482_10235)" })] }));
7
7
  });
8
8
 
9
9
  export { EmptyMainNotificationIcon };
@@ -3,7 +3,7 @@ import { forwardRef } from 'react';
3
3
 
4
4
  const EmptyMainResultIcon = forwardRef(function EmptyResultIcon(props, ref) {
5
5
  const { className, size = 64, ...rest } = props;
6
- return (jsxs("svg", { ...rest, className: className, fill: "none", height: size, ref: ref, viewBox: "0 0 64 64", width: size, xmlns: "http://www.w3.org/2000/svg", children: [jsxs("defs", { children: [jsxs("linearGradient", { gradientUnits: "userSpaceOnUse", id: "paint0_linear_14988_13929", x1: "28.9684", x2: "24.6011", y1: "-4.50146", y2: "54.5206", children: [jsx("stop", { stopColor: "#E5E7EB" }), jsx("stop", { offset: "1", stopColor: "#9DA4AE" })] }), jsxs("linearGradient", { gradientUnits: "userSpaceOnUse", id: "paint1_linear_14988_13929", x1: "32", x2: "30.1462", y1: "23.8542", y2: "64.7656", children: [jsx("stop", { stopColor: "#E5E7EB" }), jsx("stop", { offset: "1", stopColor: "#9DA4AE" })] }), jsx("clipPath", { id: "clip0_14988_13929", children: jsx("rect", { fill: "white", height: "64", width: "64" }) })] }), jsxs("g", { clipPath: "url(#clip0_14988_13929)", children: [jsx("path", { d: "M0 10.0332V53.8437C0 54.396 0.447713 54.8437 0.999998 54.8437L56.9368 54.8437C57.4891 54.8437 57.9368 54.396 57.9368 53.8437V14.8554C57.9368 14.3031 57.4891 13.8554 56.9368 13.8554H30.1099C29.8426 13.8554 29.5864 13.7483 29.3985 13.5582L25.2219 9.33041C25.034 9.14024 24.7778 9.0332 24.5105 9.0332H1C0.447715 9.0332 0 9.48092 0 10.0332Z", fill: "url(#paint0_linear_14988_13929)" }), jsx("path", { d: "M5.90507 24.6622C5.9969 24.1929 6.40821 23.8542 6.88646 23.8542H62.7854C63.4147 23.8542 63.8876 24.4286 63.7668 25.0463L58.0949 54.0357C58.0031 54.5051 57.5918 54.8437 57.1135 54.8437H1.21461C0.58527 54.8437 0.112379 54.2693 0.23322 53.6517L5.90507 24.6622Z", fill: "url(#paint1_linear_14988_13929)" })] })] }));
6
+ return (jsxs("svg", { ...rest, className: className, fill: "none", height: size, ref: ref, viewBox: "0 0 64 64", width: size, xmlns: "http://www.w3.org/2000/svg", children: [jsxs("defs", { children: [jsxs("linearGradient", { gradientUnits: "userSpaceOnUse", id: "paint0_linear_14988_13929", x1: "28.9684", x2: "24.6011", y1: "-4.50146", y2: "54.5206", children: [jsx("stop", { stopColor: "var(--mzn-color-background-neutral-subtle)" }), jsx("stop", { offset: "1", stopColor: "var(--mzn-color-background-neutral)" })] }), jsxs("linearGradient", { gradientUnits: "userSpaceOnUse", id: "paint1_linear_14988_13929", x1: "32", x2: "30.1462", y1: "23.8542", y2: "64.7656", children: [jsx("stop", { stopColor: "var(--mzn-color-background-neutral-subtle)" }), jsx("stop", { offset: "1", stopColor: "var(--mzn-color-background-neutral)" })] }), jsx("clipPath", { id: "clip0_14988_13929", children: jsx("rect", { fill: "white", height: "64", width: "64" }) })] }), jsxs("g", { clipPath: "url(#clip0_14988_13929)", children: [jsx("path", { d: "M0 10.0332V53.8437C0 54.396 0.447713 54.8437 0.999998 54.8437L56.9368 54.8437C57.4891 54.8437 57.9368 54.396 57.9368 53.8437V14.8554C57.9368 14.3031 57.4891 13.8554 56.9368 13.8554H30.1099C29.8426 13.8554 29.5864 13.7483 29.3985 13.5582L25.2219 9.33041C25.034 9.14024 24.7778 9.0332 24.5105 9.0332H1C0.447715 9.0332 0 9.48092 0 10.0332Z", fill: "url(#paint0_linear_14988_13929)" }), jsx("path", { d: "M5.90507 24.6622C5.9969 24.1929 6.40821 23.8542 6.88646 23.8542H62.7854C63.4147 23.8542 63.8876 24.4286 63.7668 25.0463L58.0949 54.0357C58.0031 54.5051 57.5918 54.8437 57.1135 54.8437H1.21461C0.58527 54.8437 0.112379 54.2693 0.23322 53.6517L5.90507 24.6622Z", fill: "url(#paint1_linear_14988_13929)" })] })] }));
7
7
  });
8
8
 
9
9
  export { EmptyMainResultIcon };
@@ -3,7 +3,7 @@ import { forwardRef } from 'react';
3
3
 
4
4
  const EmptyMainSystemIcon = forwardRef(function EmptySystemIcon(props, ref) {
5
5
  const { className, size = 64, ...rest } = props;
6
- return (jsxs("svg", { ...rest, className: className, fill: "none", height: size, ref: ref, viewBox: "0 0 64 64", width: size, xmlns: "http://www.w3.org/2000/svg", children: [jsxs("defs", { children: [jsxs("linearGradient", { gradientUnits: "userSpaceOnUse", id: "paint0_linear_15103_25151", x1: "20.9997", x2: "17.2887", y1: "22.9988", y2: "62.6527", children: [jsx("stop", { stopColor: "#E5E7EB" }), jsx("stop", { offset: "1", stopColor: "#9DA4AE" })] }), jsxs("linearGradient", { gradientUnits: "userSpaceOnUse", id: "paint1_linear_15103_25151", x1: "46.9988", x2: "44.0018", y1: "0.845703", y2: "32.8715", children: [jsx("stop", { stopColor: "#E5E7EB" }), jsx("stop", { offset: "1", stopColor: "#9DA4AE" })] })] }), jsx("path", { d: "M28.5453 24.2114C29.025 24.34 29.3377 24.8011 29.2796 25.2944L28.9089 28.4387C28.8618 28.8389 29.061 29.2259 29.4033 29.4385C30.3233 30.01 31.1807 30.6725 31.9633 31.4135C32.237 31.6727 32.628 31.7729 32.9875 31.6594L36.1757 30.6527C36.623 30.5114 37.1083 30.7001 37.3429 31.1063L39.6193 35.0496C39.8676 35.4796 39.7627 36.0268 39.3729 36.3345L36.8886 38.2954C36.5722 38.5452 36.4395 38.9599 36.5314 39.3524C36.8056 40.5238 36.9512 41.7448 36.9512 42.9998C36.9512 43.1076 37.0086 43.2069 37.1042 43.2566L40.4602 45.0005C40.8765 45.2168 41.0864 45.6935 40.965 46.1467L39.7864 50.545C39.6578 51.0248 39.1967 51.3375 38.7034 51.2793L35.5592 50.9087C35.1589 50.8615 34.7719 51.0608 34.5593 51.4032C33.9876 52.3238 33.3249 53.1817 32.5836 53.9647C32.3243 54.2386 32.224 54.6298 32.3378 54.9894L33.3456 58.1761C33.4871 58.6236 33.2985 59.1092 32.8921 59.3438L28.9482 61.6202C28.5181 61.8684 27.9711 61.7634 27.6634 61.3737L25.7024 58.8893C25.4526 58.5729 25.0379 58.4402 24.6454 58.5322C23.4743 58.8066 22.2536 58.9528 20.999 58.9529C20.8906 58.9529 20.7908 59.0106 20.7408 59.1068L18.9983 62.4608C18.7819 62.8771 18.3053 63.0871 17.852 62.9657L13.4535 61.7871C12.9739 61.6585 12.6612 61.1975 12.7192 60.7043L13.0893 57.5587C13.1364 57.1586 12.9372 56.7717 12.5949 56.5592C11.6746 55.9877 10.8168 55.3254 10.034 54.5843C9.76014 54.325 9.36898 54.2247 9.00937 54.3384L5.82349 55.3455C5.37613 55.487 4.8906 55.2983 4.65603 54.892L2.37963 50.9489C2.13136 50.5188 2.23626 49.9718 2.62599 49.6641L5.10963 47.7031C5.42595 47.4533 5.55855 47.0387 5.46669 46.6463C5.19255 45.4751 5.04691 44.2544 5.04688 42.9998C5.04688 42.8907 4.98784 42.7903 4.89111 42.7401L1.53887 40.998C1.12256 40.7817 0.912625 40.305 1.03405 39.8519L2.21267 35.4533C2.34121 34.9736 2.80227 34.661 3.29546 34.719L6.44003 35.089C6.84019 35.1361 7.22705 34.9369 7.43962 34.5946C8.01115 33.6743 8.67359 32.8164 9.41466 32.0336C9.67386 31.7598 9.77413 31.3688 9.66058 31.0093L8.65395 27.8221C8.51268 27.3748 8.70131 26.8894 9.10755 26.6549L13.0507 24.3785C13.4808 24.1302 14.028 24.2351 14.3357 24.625L16.2957 27.1082C16.5454 27.4246 16.9601 27.5573 17.3527 27.4655C18.5238 27.1916 19.7445 27.0467 20.999 27.0466C21.1074 27.0466 21.2073 26.9879 21.2573 26.8917L23.0007 23.5375C23.2171 23.1213 23.6937 22.9114 24.1468 23.0328L28.5453 24.2114ZM20.999 35.8386C17.0447 35.8389 13.839 39.0452 13.8389 42.9998C13.8391 46.9542 17.0448 50.1596 20.999 50.1599C24.9533 50.1597 28.1599 46.9542 28.1602 42.9998C28.16 39.0452 24.9534 35.8389 20.999 35.8386Z", fill: "url(#paint0_linear_15103_25151)" }), jsx("path", { d: "M51.5436 1.43766C52.0327 1.52392 52.3844 1.95611 52.3695 2.45257L52.3023 4.68433C52.2901 5.0873 52.5229 5.45489 52.8806 5.64086C53.5763 6.00255 54.234 6.42699 54.8475 6.90552C55.1449 7.13744 55.5428 7.20387 55.8912 7.05945L58.1098 6.13956C58.5431 5.95991 59.043 6.10557 59.312 6.48982L61.2159 9.20937C61.5007 9.61623 61.4437 10.1705 61.0822 10.5109L59.4567 12.0414C59.163 12.318 59.0677 12.7429 59.1898 13.1274C59.4235 13.863 59.5926 14.6272 59.69 15.4137C59.7364 15.7884 59.9711 16.1173 60.32 16.2615L62.534 17.1766C62.9676 17.3558 63.2184 17.8124 63.1369 18.2744L62.5604 21.5436C62.4741 22.0327 62.0419 22.3844 61.5455 22.3695L59.3127 22.3023C58.9097 22.2901 58.5422 22.5229 58.3562 22.8806C57.9946 23.5762 57.5703 24.2339 57.0918 24.8474C56.8597 25.1448 56.7933 25.5429 56.9379 25.8914L57.8582 28.1097C58.038 28.5431 57.8924 29.0431 57.5081 29.3122L54.7885 31.216C54.3817 31.5007 53.8276 31.4439 53.4871 31.0824L51.9556 29.4564C51.6791 29.1628 51.2543 29.0676 50.8699 29.1896C50.1346 29.423 49.3706 29.5918 48.5844 29.6891C48.2097 29.7355 47.8807 29.9701 47.7365 30.3191L46.8214 32.5339C46.6422 32.9676 46.1856 33.2183 45.7235 33.1369L42.4542 32.5603C41.9652 32.4741 41.6135 32.0421 41.6283 31.5457L41.695 29.3125C41.707 28.9097 41.4743 28.5422 41.1166 28.3564C40.4207 27.9947 39.7626 27.5704 39.1489 27.0918C38.8513 26.8598 38.4531 26.7934 38.1047 26.938L35.8884 27.858C35.455 28.0379 34.9549 27.8923 34.6858 27.5079L32.782 24.7884C32.4973 24.3817 32.5541 23.8276 32.9154 23.4871L34.5408 21.9556C34.8343 21.6791 34.9295 21.2543 34.8074 20.87C34.5738 20.1346 34.4045 19.3706 34.3071 18.5843C34.2606 18.2096 34.026 17.8807 33.6771 17.7365L31.4639 16.8215C31.0304 16.6423 30.7797 16.1857 30.8612 15.7237L31.4377 12.4542C31.5239 11.9652 31.956 11.6135 32.4523 11.6283L34.6846 11.695C35.0874 11.707 35.4549 11.4743 35.6407 11.1166C36.0024 10.4207 36.4267 9.76253 36.9054 9.14874C37.1373 8.85127 37.2038 8.45317 37.0592 8.10474L36.1397 5.88822C35.96 5.45493 36.1056 4.95495 36.4898 4.68589L39.2086 2.78214C39.6154 2.49733 40.1695 2.55412 40.51 2.91551L42.0414 4.54078C42.318 4.8343 42.7427 4.92944 43.1271 4.80734C43.8625 4.57374 44.6267 4.40454 45.413 4.30706C45.7876 4.26062 46.1164 4.02615 46.2607 3.67739L47.1764 1.46366C47.3558 1.03023 47.8122 0.779666 48.2742 0.861125L51.5436 1.43766ZM46.999 11.2578C43.8288 11.2578 41.258 13.8288 41.2578 16.999C41.258 20.1693 43.8287 22.7392 46.999 22.7393C50.169 22.7389 52.7391 20.1691 52.7393 16.999C52.739 13.829 50.169 11.2582 46.999 11.2578Z", fill: "url(#paint1_linear_15103_25151)" })] }));
6
+ return (jsxs("svg", { ...rest, className: className, fill: "none", height: size, ref: ref, viewBox: "0 0 64 64", width: size, xmlns: "http://www.w3.org/2000/svg", children: [jsxs("defs", { children: [jsxs("linearGradient", { gradientUnits: "userSpaceOnUse", id: "paint0_linear_15103_25151", x1: "20.9997", x2: "17.2887", y1: "22.9988", y2: "62.6527", children: [jsx("stop", { stopColor: "var(--mzn-color-background-neutral-subtle)" }), jsx("stop", { offset: "1", stopColor: "var(--mzn-color-background-neutral)" })] }), jsxs("linearGradient", { gradientUnits: "userSpaceOnUse", id: "paint1_linear_15103_25151", x1: "46.9988", x2: "44.0018", y1: "0.845703", y2: "32.8715", children: [jsx("stop", { stopColor: "var(--mzn-color-background-neutral-subtle)" }), jsx("stop", { offset: "1", stopColor: "var(--mzn-color-background-neutral)" })] })] }), jsx("path", { d: "M28.5453 24.2114C29.025 24.34 29.3377 24.8011 29.2796 25.2944L28.9089 28.4387C28.8618 28.8389 29.061 29.2259 29.4033 29.4385C30.3233 30.01 31.1807 30.6725 31.9633 31.4135C32.237 31.6727 32.628 31.7729 32.9875 31.6594L36.1757 30.6527C36.623 30.5114 37.1083 30.7001 37.3429 31.1063L39.6193 35.0496C39.8676 35.4796 39.7627 36.0268 39.3729 36.3345L36.8886 38.2954C36.5722 38.5452 36.4395 38.9599 36.5314 39.3524C36.8056 40.5238 36.9512 41.7448 36.9512 42.9998C36.9512 43.1076 37.0086 43.2069 37.1042 43.2566L40.4602 45.0005C40.8765 45.2168 41.0864 45.6935 40.965 46.1467L39.7864 50.545C39.6578 51.0248 39.1967 51.3375 38.7034 51.2793L35.5592 50.9087C35.1589 50.8615 34.7719 51.0608 34.5593 51.4032C33.9876 52.3238 33.3249 53.1817 32.5836 53.9647C32.3243 54.2386 32.224 54.6298 32.3378 54.9894L33.3456 58.1761C33.4871 58.6236 33.2985 59.1092 32.8921 59.3438L28.9482 61.6202C28.5181 61.8684 27.9711 61.7634 27.6634 61.3737L25.7024 58.8893C25.4526 58.5729 25.0379 58.4402 24.6454 58.5322C23.4743 58.8066 22.2536 58.9528 20.999 58.9529C20.8906 58.9529 20.7908 59.0106 20.7408 59.1068L18.9983 62.4608C18.7819 62.8771 18.3053 63.0871 17.852 62.9657L13.4535 61.7871C12.9739 61.6585 12.6612 61.1975 12.7192 60.7043L13.0893 57.5587C13.1364 57.1586 12.9372 56.7717 12.5949 56.5592C11.6746 55.9877 10.8168 55.3254 10.034 54.5843C9.76014 54.325 9.36898 54.2247 9.00937 54.3384L5.82349 55.3455C5.37613 55.487 4.8906 55.2983 4.65603 54.892L2.37963 50.9489C2.13136 50.5188 2.23626 49.9718 2.62599 49.6641L5.10963 47.7031C5.42595 47.4533 5.55855 47.0387 5.46669 46.6463C5.19255 45.4751 5.04691 44.2544 5.04688 42.9998C5.04688 42.8907 4.98784 42.7903 4.89111 42.7401L1.53887 40.998C1.12256 40.7817 0.912625 40.305 1.03405 39.8519L2.21267 35.4533C2.34121 34.9736 2.80227 34.661 3.29546 34.719L6.44003 35.089C6.84019 35.1361 7.22705 34.9369 7.43962 34.5946C8.01115 33.6743 8.67359 32.8164 9.41466 32.0336C9.67386 31.7598 9.77413 31.3688 9.66058 31.0093L8.65395 27.8221C8.51268 27.3748 8.70131 26.8894 9.10755 26.6549L13.0507 24.3785C13.4808 24.1302 14.028 24.2351 14.3357 24.625L16.2957 27.1082C16.5454 27.4246 16.9601 27.5573 17.3527 27.4655C18.5238 27.1916 19.7445 27.0467 20.999 27.0466C21.1074 27.0466 21.2073 26.9879 21.2573 26.8917L23.0007 23.5375C23.2171 23.1213 23.6937 22.9114 24.1468 23.0328L28.5453 24.2114ZM20.999 35.8386C17.0447 35.8389 13.839 39.0452 13.8389 42.9998C13.8391 46.9542 17.0448 50.1596 20.999 50.1599C24.9533 50.1597 28.1599 46.9542 28.1602 42.9998C28.16 39.0452 24.9534 35.8389 20.999 35.8386Z", fill: "url(#paint0_linear_15103_25151)" }), jsx("path", { d: "M51.5436 1.43766C52.0327 1.52392 52.3844 1.95611 52.3695 2.45257L52.3023 4.68433C52.2901 5.0873 52.5229 5.45489 52.8806 5.64086C53.5763 6.00255 54.234 6.42699 54.8475 6.90552C55.1449 7.13744 55.5428 7.20387 55.8912 7.05945L58.1098 6.13956C58.5431 5.95991 59.043 6.10557 59.312 6.48982L61.2159 9.20937C61.5007 9.61623 61.4437 10.1705 61.0822 10.5109L59.4567 12.0414C59.163 12.318 59.0677 12.7429 59.1898 13.1274C59.4235 13.863 59.5926 14.6272 59.69 15.4137C59.7364 15.7884 59.9711 16.1173 60.32 16.2615L62.534 17.1766C62.9676 17.3558 63.2184 17.8124 63.1369 18.2744L62.5604 21.5436C62.4741 22.0327 62.0419 22.3844 61.5455 22.3695L59.3127 22.3023C58.9097 22.2901 58.5422 22.5229 58.3562 22.8806C57.9946 23.5762 57.5703 24.2339 57.0918 24.8474C56.8597 25.1448 56.7933 25.5429 56.9379 25.8914L57.8582 28.1097C58.038 28.5431 57.8924 29.0431 57.5081 29.3122L54.7885 31.216C54.3817 31.5007 53.8276 31.4439 53.4871 31.0824L51.9556 29.4564C51.6791 29.1628 51.2543 29.0676 50.8699 29.1896C50.1346 29.423 49.3706 29.5918 48.5844 29.6891C48.2097 29.7355 47.8807 29.9701 47.7365 30.3191L46.8214 32.5339C46.6422 32.9676 46.1856 33.2183 45.7235 33.1369L42.4542 32.5603C41.9652 32.4741 41.6135 32.0421 41.6283 31.5457L41.695 29.3125C41.707 28.9097 41.4743 28.5422 41.1166 28.3564C40.4207 27.9947 39.7626 27.5704 39.1489 27.0918C38.8513 26.8598 38.4531 26.7934 38.1047 26.938L35.8884 27.858C35.455 28.0379 34.9549 27.8923 34.6858 27.5079L32.782 24.7884C32.4973 24.3817 32.5541 23.8276 32.9154 23.4871L34.5408 21.9556C34.8343 21.6791 34.9295 21.2543 34.8074 20.87C34.5738 20.1346 34.4045 19.3706 34.3071 18.5843C34.2606 18.2096 34.026 17.8807 33.6771 17.7365L31.4639 16.8215C31.0304 16.6423 30.7797 16.1857 30.8612 15.7237L31.4377 12.4542C31.5239 11.9652 31.956 11.6135 32.4523 11.6283L34.6846 11.695C35.0874 11.707 35.4549 11.4743 35.6407 11.1166C36.0024 10.4207 36.4267 9.76253 36.9054 9.14874C37.1373 8.85127 37.2038 8.45317 37.0592 8.10474L36.1397 5.88822C35.96 5.45493 36.1056 4.95495 36.4898 4.68589L39.2086 2.78214C39.6154 2.49733 40.1695 2.55412 40.51 2.91551L42.0414 4.54078C42.318 4.8343 42.7427 4.92944 43.1271 4.80734C43.8625 4.57374 44.6267 4.40454 45.413 4.30706C45.7876 4.26062 46.1164 4.02615 46.2607 3.67739L47.1764 1.46366C47.3558 1.03023 47.8122 0.779666 48.2742 0.861125L51.5436 1.43766ZM46.999 11.2578C43.8288 11.2578 41.258 13.8288 41.2578 16.999C41.258 20.1693 43.8287 22.7392 46.999 22.7393C50.169 22.7389 52.7391 20.1691 52.7393 16.999C52.739 13.829 50.169 11.2582 46.999 11.2578Z", fill: "url(#paint1_linear_15103_25151)" })] }));
7
7
  });
8
8
 
9
9
  export { EmptyMainSystemIcon };
@@ -13,7 +13,7 @@ export interface FilterProps extends Omit<NativeElementPropsWithoutKeyAndRef<'di
13
13
  */
14
14
  children: ReactElement<FormFieldProps> | ReactElement<FormFieldProps>[];
15
15
  /**
16
- * Layout control - Whether the field should automatically expand to fill the entire row (equivalent to span={12}).
16
+ * Layout control - Whether the field should automatically expand to fill the entire row (equivalent to span={6}).
17
17
  * @default false
18
18
  */
19
19
  grow?: boolean;
@@ -22,11 +22,34 @@ export interface FilterProps extends Omit<NativeElementPropsWithoutKeyAndRef<'di
22
22
  */
23
23
  minWidth?: string | number;
24
24
  /**
25
- * Layout control - Number of columns the field occupies in the Grid (1-12, Grid has 12 columns total).
25
+ * Layout control - Number of columns the field occupies in the Grid (1-6, Grid has 6 columns total).
26
26
  * This property is ignored when grow is true.
27
27
  * @default 2
28
28
  */
29
29
  span?: FilterSpan;
30
30
  }
31
+ /**
32
+ * 單一篩選條件元件,用於在 FilterLine 中定義欄位的佔位寬度。
33
+ *
34
+ * 使用 6 欄 Grid,`span` 決定欄位佔用幾欄(1–6);
35
+ * `grow` 設為 `true` 時欄位自動填滿整行。
36
+ * 從 FilterAreaContext 繼承 `size`,統一套用至內部的輸入元件。
37
+ *
38
+ * @example
39
+ * ```tsx
40
+ * import { Filter } from '@mezzanine-ui/react';
41
+ * import { FormField } from '@mezzanine-ui/react';
42
+ * import Input from '@mezzanine-ui/react/Input';
43
+ *
44
+ * <Filter span={2}>
45
+ * <FormField label="名稱" name="name" layout="horizontal">
46
+ * <Input placeholder="請輸入" />
47
+ * </FormField>
48
+ * </Filter>
49
+ * ```
50
+ *
51
+ * @see {@link FilterLine} 包含 Filter 的行容器
52
+ * @see {@link FilterArea} 管理整個篩選器的容器
53
+ */
31
54
  declare const Filter: import("react").ForwardRefExoticComponent<FilterProps & import("react").RefAttributes<HTMLDivElement>>;
32
55
  export default Filter;