@homecode/ui 5.3.4 → 5.3.6

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.
@@ -243,7 +243,7 @@ class Gallery extends Component {
243
243
  }
244
244
  return (jsxs("div", { className: classes, ...props, children: [jsx("div", { className: innerClasses, ref: this.innerRef, children: items.map((item, i) => (jsx(Item, { src: item.src, kind: item.kind, size: size, isActive: isSingle ? i === 0 : i === 1 }, `${i}_${item.src}_${item.kind}`))) }), !isSingle && showArrows && !isDragging && (jsxs(Fragment, { children: [jsx(Arr, { className: S.left, size: size, icon: "chevronLeft", onClick: () => this.move(1) }), jsx(Arr, { className: S.right, size: size, icon: "chevronRight", onClick: () => this.move(-1) })] })), showDots && (jsx(Lazy, { hideSpinner: true, loader: () => import('./Dots/Dots.js'),
245
245
  // @ts-ignore
246
- index: this.index % items.length, count: items.length }))] }));
246
+ index: this.index % this.props.items.length, count: this.props.items.length }))] }));
247
247
  }
248
248
  }
249
249
 
@@ -2,7 +2,7 @@ import type { Editor } from '@tiptap/core';
2
2
  import type { HTMLAttributes } from 'react';
3
3
  import type { SlashCommandItem, SlashOnItemCommand } from '../../tiptap/slash-mention';
4
4
  import type { Props as ScrollProps } from '../Scroll/Scroll.types';
5
- export type Props = HTMLAttributes<HTMLDivElement> & {
5
+ export type Props = Omit<HTMLAttributes<HTMLDivElement>, 'onSubmit' | 'onChange'> & {
6
6
  disabled?: boolean;
7
7
  placeholder?: string;
8
8
  slashCommandItems?: SlashCommandItem[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homecode/ui",
3
- "version": "5.3.4",
3
+ "version": "5.3.6",
4
4
  "description": "React UI components library",
5
5
  "scripts": {
6
6
  "tests": "jest",