widenarrow-ui 1.0.8 → 1.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.
package/.eslintrc CHANGED
@@ -1,88 +1,9 @@
1
1
  {
2
- "parser": "@typescript-eslint/parser",
3
- "plugins": ["react", "import", "@typescript-eslint"],
4
- "extends": ["react-app", "airbnb-base", "plugin:@typescript-eslint/eslint-recommended", "plugin:@typescript-eslint/recommended"],
5
- "rules": {
6
- "@typescript-eslint/explicit-module-boundary-types": 0,
7
- "@typescript-eslint/no-unused-vars": "warn",
8
- "@typescript-eslint/no-use-before-define": "warn",
9
- "@typescript-eslint/no-var-requires": 0,
10
- "@typescript-eslint/rule-name": 0,
11
- "arrow-parens": 0,
12
- "class-methods-use-this": 0,
13
- "comma-dangle": ["error", "never"],
14
- "consistent-return": 0,
15
- "default-param-last": 0,
16
- "func-names": 0,
17
- "function-paren-newline": 0,
18
- "generator-star-spacing": 0,
19
- "implicit-arrow-linebreak": 0,
20
- "import/extensions": 0,
21
- "import/no-extraneous-dependencies": 0,
22
- "import/no-mutable-exports": "warn",
23
- "import/prefer-default-export": 0,
24
- "indent": 0,
25
- "linebreak-style": 0,
26
- "no-confusing-arrow": 0,
27
- "no-console": "warn",
28
- "no-continue": 0,
29
- "no-mixed-spaces-and-tabs": 0,
30
- "no-nested-ternary": 0,
31
- "no-param-reassign": 0,
32
- "no-plusplus": 0,
33
- "no-restricted-globals": 0,
34
- "no-restricted-syntax": 0,
35
- "no-return-assign": ["error", "except-parens"],
36
- "no-shadow": 0,
37
- "no-tabs": ["warn", { "allowIndentationTabs": true }],
38
- "no-undef": ["warn", { "typeof": true }],
39
- "no-underscore-dangle": 0,
40
- "no-unused-expressions": ["error", { "allowTernary": true, "allowShortCircuit": true }],
41
- "no-use-before-define": "warn",
42
- "object-curly-newline": 0,
43
- "operator-linebreak": 0,
44
- "prefer-destructuring": 0,
45
- "prefer-regex-literals": 0,
46
- "react/display-name": 0,
47
- "react/forbid-prop-types": 0,
48
- "react/no-deprecated": "warn",
49
- "react/react-in-jsx-scope": 0,
50
- "space-before-function-paren": 0,
51
- "spaced-comment": "warn",
52
- "template-curly-spacing": 0,
53
- "max-len": [
54
- "error",
55
- {
56
- "code": 140,
57
- "tabWidth": 2,
58
- "ignoreComments": true,
59
- "ignoreUrls": true,
60
- "ignoreStrings": true,
61
- "ignoreTemplateLiterals": true,
62
- "ignoreRegExpLiterals": true
63
- }
64
- ],
65
- "import/no-unresolved": [
66
- "error",
67
- {
68
- "ignore": [
69
- "components/*",
70
- "constants/*",
71
- "types/*",
72
- "utils/*",
73
- "assets/*"
74
- ]
75
- }
76
- ]
77
- },
78
- "env": {
79
- "jest": true,
80
- "browser": true
81
- },
2
+ "extends": ["plugin:storybook/recommended", "plugin:@typescript-eslint/recommended"],
82
3
  "settings": {
83
4
  "import/resolver": {
84
5
  "node": {
85
- "extensions": [".js", ".jsx", ".ts", ".tsx"]
6
+ "extensions": [".js",".jsx",".ts",".tsx"]
86
7
  }
87
8
  }
88
9
  }
@@ -1,6 +1,6 @@
1
1
  import { ChangeEvent, MouseEvent } from 'react';
2
2
  export interface CheckboxProps {
3
- name: string;
3
+ name?: string;
4
4
  label?: string;
5
5
  onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
6
6
  onChangeFake?: (event: MouseEvent<HTMLDivElement>) => void;
@@ -1,2 +1,3 @@
1
- export declare const Iconography: () => import("react/jsx-runtime").JSX.Element;
1
+ /// <reference types="react" />
2
+ export declare const Iconography: () => JSX.Element;
2
3
  export default Iconography;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IconTypes } from 'src/constants';
2
- declare const getIconFromConstant: (icon: Partial<IconTypes>, getIconClassName: (additionalClassName?: string) => string) => import("react/jsx-runtime").JSX.Element | null;
3
+ declare const getIconFromConstant: (icon: Partial<IconTypes>, getIconClassName: (additionalClassName?: string) => string) => JSX.Element | null;
3
4
  export default getIconFromConstant;
@@ -1,6 +1,6 @@
1
1
  export interface SwitchButtonProps {
2
2
  checked: boolean;
3
- name: string;
3
+ name?: string;
4
4
  label?: string;
5
5
  disabled?: boolean;
6
6
  alignCenter?: boolean;