@agility/plenum-ui 2.1.10 → 2.1.12

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.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
- "extends": [
3
- "next/core-web-vitals",
4
- "plugin:storybook/recommended"
5
- ]
2
+ "extends": ["next/core-web-vitals", "plugin:storybook/recommended"],
3
+ "globals": {
4
+ "vitest": true
5
+ }
6
6
  }
@@ -0,0 +1,28 @@
1
+ name: Unit tests
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main # Run tests on pushes to the main branch
7
+ pull_request:
8
+ branches:
9
+ - main # Run tests on pull requests to the main branch
10
+
11
+ jobs:
12
+ test:
13
+ runs-on: ubuntu-latest
14
+
15
+ steps:
16
+ - name: Checkout code
17
+ uses: actions/checkout@v3 # Checks out the repository code
18
+
19
+ - name: Set up Node.js
20
+ uses: actions/setup-node@v3
21
+ with:
22
+ node-version: "18" # Specify the Node.js version you want
23
+
24
+ - name: Install dependencies
25
+ run: yarn install # Installs dependencies using Yarn
26
+
27
+ - name: Run tests
28
+ run: yarn test # Runs the tests
@@ -0,0 +1,28 @@
1
+ name: Type Check
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main # Run type checking on pushes to the main branch
7
+ pull_request:
8
+ branches:
9
+ - main # Run type checking on pull requests to the main branch
10
+
11
+ jobs:
12
+ type-check:
13
+ runs-on: ubuntu-latest
14
+
15
+ steps:
16
+ - name: Checkout code
17
+ uses: actions/checkout@v3 # Checks out the repository code
18
+
19
+ - name: Set up Node.js
20
+ uses: actions/setup-node@v3
21
+ with:
22
+ node-version: "18" # Specify the Node.js version you want
23
+
24
+ - name: Install dependencies
25
+ run: yarn install # Or `npm install` if you're using npm
26
+
27
+ - name: Run TypeScript type check
28
+ run: npx tsc --noEmit --skipLibCheck
package/.prettierrc CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
- "singleQuote": false,
3
- "printWidth": 120,
4
- "editor.formatOnSave": true,
5
- "proseWrap": "preserve",
6
- "tabWidth": 4,
7
- "requireConfig": false,
8
- "useTabs": true,
9
- "trailingComma": "none",
10
- "bracketSpacing": true,
11
- "jsxBracketSameLine": false,
12
- "semi": false
2
+ "singleQuote": false,
3
+ "printWidth": 120,
4
+ "editor.formatOnSave": true,
5
+ "proseWrap": "preserve",
6
+ "tabWidth": 4,
7
+ "requireConfig": false,
8
+ "useTabs": true,
9
+ "trailingComma": "none",
10
+ "bracketSpacing": true,
11
+ "jsxBracketSameLine": false,
12
+ "semi": true
13
13
  }
package/dist/index.d.ts CHANGED
@@ -1081,7 +1081,7 @@ declare module '@agility/plenum-ui/stories/organisms/FormInputWithAddons/FormInp
1081
1081
  customIconClass?: string;
1082
1082
  type: AcceptedInputTypes;
1083
1083
  addonBTN?: INestedInputButtonProps;
1084
- inputRef: React.RefObject<HTMLInputElement>;
1084
+ inputRef?: React.RefObject<HTMLInputElement>;
1085
1085
  }
1086
1086
  const FormInputWithAddons: React.FC<IFormInputWithAddonsProps>;
1087
1087
  export default FormInputWithAddons;