@steroidsjs/core 3.0.90 → 3.0.91

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.
@@ -19628,6 +19628,15 @@
19628
19628
  "example": null,
19629
19629
  "defaultValue": null
19630
19630
  },
19631
+ {
19632
+ "name": "itemViewProps",
19633
+ "decorators": [],
19634
+ "description": "Пропсы для отображения элемента",
19635
+ "required": false,
19636
+ "type": "any",
19637
+ "example": null,
19638
+ "defaultValue": null
19639
+ },
19631
19640
  {
19632
19641
  "name": "items",
19633
19642
  "decorators": [],
@@ -20162,6 +20171,14 @@
20162
20171
  "type": "React.ReactNode | {}",
20163
20172
  "example": null
20164
20173
  },
20174
+ {
20175
+ "name": "itemViewProps",
20176
+ "decorators": [],
20177
+ "description": "Пропсы для отображения элемента",
20178
+ "required": false,
20179
+ "type": "any",
20180
+ "example": null
20181
+ },
20165
20182
  {
20166
20183
  "name": "items",
20167
20184
  "decorators": [],
@@ -33553,6 +33570,15 @@
33553
33570
  "type": "ITooltipStylePosition",
33554
33571
  "example": null,
33555
33572
  "defaultValue": null
33573
+ },
33574
+ {
33575
+ "name": "viewProps",
33576
+ "decorators": [],
33577
+ "description": "Пропсы для отображения элемента",
33578
+ "required": false,
33579
+ "type": "any",
33580
+ "example": null,
33581
+ "defaultValue": null
33556
33582
  }
33557
33583
  ],
33558
33584
  "methods": [
@@ -33710,6 +33736,14 @@
33710
33736
  "required": true,
33711
33737
  "type": "ITooltipStylePosition",
33712
33738
  "example": null
33739
+ },
33740
+ {
33741
+ "name": "viewProps",
33742
+ "decorators": [],
33743
+ "description": "Пропсы для отображения элемента",
33744
+ "required": false,
33745
+ "type": "any",
33746
+ "example": null
33713
33747
  }
33714
33748
  ],
33715
33749
  "methods": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steroidsjs/core",
3
- "version": "3.0.90",
3
+ "version": "3.0.91",
4
4
  "description": "",
5
5
  "author": "Vladimir Kozhin <hello@kozhindev.com>",
6
6
  "repository": {
@@ -174,6 +174,10 @@ export interface IDropDownFieldProps extends IFieldWrapperInputProps, Omit<IData
174
174
  * Сигнал, запрещающий отправку запроса на получение данных
175
175
  */
176
176
  isFetchDisabled?: boolean;
177
+ /**
178
+ * Пропсы для отображения элемента
179
+ */
180
+ itemViewProps?: CustomViewProps;
177
181
  [key: string]: any;
178
182
  }
179
183
  export interface IDropDownFieldViewProps extends IDropDownFieldProps {
@@ -228,7 +228,8 @@ function DropDownField(props) {
228
228
  childIndex: item.id,
229
229
  toggleCollapse: toggleCollapse,
230
230
  isItemToSelectAll: item.id === (normalizedItemToSelectAll === null || normalizedItemToSelectAll === void 0 ? void 0 : normalizedItemToSelectAll.id),
231
- isSelectedAll: isSelectedAll
231
+ isSelectedAll: isSelectedAll,
232
+ itemViewProps: props.itemViewProps
232
233
  }); };
233
234
  var renderItem = (0, react_1.useCallback)(function (item) {
234
235
  if (hasGroup && Array.isArray(item[props.groupAttribute])) {
@@ -87,6 +87,10 @@ export interface ITooltipProps {
87
87
  * Дополнительный CSS-класс для элемента отображения
88
88
  */
89
89
  className?: CssClassName;
90
+ /**
91
+ * Пропсы для отображения элемента
92
+ */
93
+ viewProps?: CustomViewProps;
90
94
  [key: string]: any;
91
95
  }
92
96
  export interface ITooltipViewProps extends ITooltipProps {
@@ -77,7 +77,7 @@ function Tooltip(props) {
77
77
  })
78
78
  : (React.createElement("span", { ref: childRef, onFocus: onShow, onMouseOver: onShow, onBlur: onHide, onMouseOut: onHide }, props.children)),
79
79
  isComponentExist && (React.createElement(TooltipPortalInner_1["default"], null,
80
- React.createElement(TooltipView, { isTooltipVisible: isComponentVisible, content: props.content, position: position, style: style, arrowPosition: arrowPosition, calculatePosition: calculatePosition, className: props.className })))));
80
+ React.createElement(TooltipView, { isTooltipVisible: isComponentVisible, content: props.content, position: position, style: style, arrowPosition: arrowPosition, calculatePosition: calculatePosition, className: props.className, viewProps: props.viewProps })))));
81
81
  }
82
82
  Tooltip.defaultProps = {
83
83
  content: '',