widenarrow-ui 0.1.11 → 0.1.13

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.
package/.eslintrc CHANGED
@@ -8,6 +8,10 @@
8
8
  "@typescript-eslint/no-unused-vars": "warn",
9
9
  "no-unused-expressions": ["error", { "allowTernary": true, "allowShortCircuit": true }]
10
10
  },
11
+ "env": {
12
+ "jest": true,
13
+ "browser": true
14
+ },
11
15
  "settings": {
12
16
  "import/resolver": {
13
17
  "node": {
@@ -1,4 +1,4 @@
1
- import { FC, ReactNode, MouseEvent, CSSProperties, HTMLButtonElement } from 'react';
1
+ import { FC, ReactNode, MouseEvent, CSSProperties } from 'react';
2
2
  import { HierarchyTypes, SizeTypes, IconTypes } from 'src/constants';
3
3
  interface Props {
4
4
  text?: string;
@@ -1,4 +1,4 @@
1
- import { FC, ChangeEvent, MouseEvent, HTMLDivElement, HTMLInputElement } from 'react';
1
+ import { FC, ChangeEvent, MouseEvent } from 'react';
2
2
  interface Props {
3
3
  name: string;
4
4
  label: string;
@@ -1,4 +1,4 @@
1
- import { MouseEvent, HTMLButtonElement } from 'react';
1
+ import { MouseEvent } from 'react';
2
2
  import { SizeTypes } from 'src/constants';
3
3
  import { SizeStyleInterface, IconStyleInterface } from 'src/types/styling';
4
4
  import { HierarchyTypes } from 'src/constants';
@@ -9,7 +9,7 @@ interface Props extends IconStyleInterface, SizeStyleInterface {
9
9
  iconClassName?: string;
10
10
  type?: HierarchyTypes.PRIMARY | HierarchyTypes.SECONDARY;
11
11
  onClickCallback?: (e: MouseEvent<HTMLButtonElement>) => void;
12
- iconSize?: keyof typeof SizeTypes;
12
+ iconSize?: `${SizeTypes}`;
13
13
  href?: string;
14
14
  disabled?: boolean;
15
15
  toolTip?: string;
@@ -1,4 +1,4 @@
1
- import { ReactNode, MouseEvent, HTMLButtonElement } from 'react';
1
+ import { ReactNode, MouseEvent } from 'react';
2
2
  import { SizeTypes, IconTypes, HierarchyTypes } from 'src/constants';
3
3
  interface Props {
4
4
  text: string;
@@ -4,4 +4,6 @@ declare const meta: Meta<typeof Separator>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof Separator>;
6
6
  export declare const Default: Story;
7
- export declare const Default2: Story;
7
+ export declare const SizeSmall: Story;
8
+ export declare const SizeMedium: Story;
9
+ export declare const SizeLarge: Story;
@@ -9,9 +9,11 @@ import { FC, ReactNode } from 'react';
9
9
  */
10
10
  interface Props {
11
11
  text?: string;
12
- children?: ReactNode;
12
+ children?: string | number | ReactNode | null;
13
+ component?: ReactNode;
13
14
  disabled?: boolean;
14
15
  withEllipsis?: boolean;
16
+ displayInPortal?: boolean;
15
17
  className?: string;
16
18
  toolTipClassName?: string;
17
19
  id?: string;