@innovaccer/design-system 2.3.0 → 2.4.0-0
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/CHANGELOG.md +35 -0
- package/core/components/atoms/backdrop/Backdrop.tsx +11 -1
- package/core/components/atoms/button/Button.tsx +60 -44
- package/core/components/atoms/button/__stories__/IconButtonGroup.story.tsx +4 -4
- package/core/components/atoms/button/__stories__/IconButtonSecondary.story.tsx +1 -1
- package/core/components/atoms/button/__tests__/Button.test.tsx +36 -1
- package/core/components/atoms/dropdown/DropdownList.tsx +1 -0
- package/core/components/atoms/dropdown/Loading.tsx +9 -9
- package/core/components/atoms/dropdown/__stories__/Options.tsx +2 -0
- package/core/components/atoms/dropdown/__tests__/Dropdown.test.tsx +12 -1
- package/core/components/atoms/dropdown/__tests__/Loading.test.tsx +66 -0
- package/core/components/atoms/dropdown/__tests__/Option.test.tsx +204 -0
- package/core/components/atoms/dropdown/option/CheckboxOption.tsx +1 -0
- package/core/components/atoms/dropdown/option/IconOption.tsx +3 -1
- package/core/components/atoms/dropdown/option/IconWithMetaOption.tsx +3 -1
- package/core/components/atoms/dropdown/option/index.tsx +7 -1
- package/core/components/molecules/dialog/__tests__/__snapshots__/Dialog.test.tsx.snap +13 -0
- package/core/components/molecules/emptyState/__stories__/assets/pageNotLoaded.png +0 -0
- package/core/components/molecules/emptyState/__stories__/variants/noContentAvailable.story.tsx +26 -0
- package/core/components/molecules/emptyState/__stories__/variants/{smallSizeWithButton.story.tsx → noSearchResults.story.tsx} +2 -2
- package/core/components/molecules/emptyState/__stories__/variants/{largeSize.story.tsx → pageNotLoaded.story.tsx} +3 -3
- package/core/components/molecules/fileList/FileIcon.tsx +10 -2
- package/core/components/molecules/fileList/FileListItem.tsx +7 -3
- package/core/components/molecules/fileList/__stories__/__common__/fileListExample.tsx +1 -0
- package/core/components/molecules/fileList/__tests__/FileList.test.tsx +115 -0
- package/core/components/molecules/fileList/__tests__/__snapshots__/FileList.test.tsx.snap +232 -0
- package/core/components/molecules/inputMask/InputMask.tsx +2 -5
- package/core/components/molecules/inputMask/__tests__/InputMask.test.tsx +128 -0
- package/core/components/molecules/inputMask/__tests__/__snapshots__/InputMask.test.tsx.snap +39 -0
- package/core/components/molecules/modal/Modal.tsx +7 -5
- package/core/components/molecules/modal/__tests__/__snapshots__/Modal.test.tsx.snap +18 -0
- package/core/components/molecules/sidesheet/Sidesheet.tsx +5 -3
- package/core/components/molecules/sidesheet/__tests__/__snapshots__/Sidesheet.test.tsx.snap +2 -0
- package/core/components/organisms/calendar/Calendar.tsx +66 -22
- package/core/components/organisms/calendar/__stories__/variants/withEvents.story.tsx +45 -0
- package/core/components/organisms/calendar/__tests__/Calendar.test.tsx +10 -0
- package/core/components/organisms/calendar/__tests__/__snapshots__/Calendar.test.tsx.snap +1096 -1096
- package/core/components/organisms/calendar/config.ts +2 -2
- package/core/components/organisms/calendar/types.ts +1 -0
- package/core/components/organisms/datePicker/DatePicker.tsx +23 -9
- package/core/components/organisms/datePicker/__tests__/{DatePicker.tsx → DatePicker.test.tsx} +16 -1
- package/core/components/organisms/datePicker/__tests__/__snapshots__/DatePicker.test.tsx.snap +2257 -0
- package/core/components/organisms/dateRangePicker/__tests__/__snapshots__/DateRangePicker.test.tsx.snap +2552 -2550
- package/core/components/organisms/inlineMessage/InlineMessage.tsx +75 -0
- package/core/components/organisms/inlineMessage/__stories__/Default.story.tsx +18 -0
- package/core/components/organisms/inlineMessage/__stories__/Error.story.tsx +19 -0
- package/core/components/organisms/inlineMessage/__stories__/Info.story.tsx +19 -0
- package/core/components/organisms/inlineMessage/__stories__/Success.story.tsx +19 -0
- package/core/components/organisms/inlineMessage/__stories__/Warning.story.tsx +18 -0
- package/core/components/organisms/inlineMessage/__stories__/variants/InlineMessageWithinTable.story.tsx +139 -0
- package/core/components/organisms/inlineMessage/__tests__/InlineMessage.test.tsx +91 -0
- package/core/components/organisms/inlineMessage/__tests__/__snapshots__/InlineMessage.test.tsx.snap +139 -0
- package/core/components/organisms/inlineMessage/index.tsx +1 -0
- package/core/components/organisms/timePicker/__tests__/__snapshots__/TimePicker.test.tsx.snap +8 -0
- package/core/index.tsx +2 -0
- package/core/index.type.tsx +1 -0
- package/core/utils/__tests__/__snapshots__/TS.test.tsx.snap +485 -466
- package/css/dist/index.css +72 -8
- package/css/dist/index.css.map +1 -1
- package/css/src/components/calendar.css +37 -5
- package/css/src/components/card.css +1 -1
- package/css/src/components/chipInput.css +2 -2
- package/css/src/components/editableChipInput.css +2 -1
- package/css/src/components/inlineMessage.css +29 -0
- package/dist/core/components/atoms/backdrop/Backdrop.d.ts +1 -0
- package/dist/core/components/atoms/button/Button.d.ts +1 -0
- package/dist/core/components/atoms/popperWrapper/PopperWrapper.d.ts +28 -27
- package/dist/core/components/organisms/calendar/Calendar.d.ts +6 -1
- package/dist/core/components/organisms/calendar/types.d.ts +3 -0
- package/dist/core/components/organisms/inlineMessage/InlineMessage.d.ts +15 -0
- package/dist/core/components/organisms/inlineMessage/index.d.ts +1 -0
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.type.d.ts +1 -0
- package/dist/index.esm.js +189 -66
- package/dist/index.js +201 -80
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.br +0 -0
- package/dist/index.umd.js.gz +0 -0
- package/dts.config.js +13 -0
- package/package.json +4 -2
- package/types/innovaccer-design-system/index.d.ts +39 -0
- package/types/innovaccer-design-system/innovaccer-design-system-tests.ts +0 -0
- package/types/innovaccer-design-system/tsconfig.json +23 -0
- package/types/innovaccer-design-system/tslint.json +1 -0
- package/core/components/molecules/emptyState/__stories__/variants/smallSizeWithoutButton.story.tsx +0 -21
- package/core/components/organisms/datePicker/__tests__/__snapshots__/DatePicker.tsx.snap +0 -2164
package/dist/index.umd.js.br
CHANGED
|
Binary file
|
package/dist/index.umd.js.gz
CHANGED
|
Binary file
|
package/dts.config.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@innovaccer/design-system",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0-0",
|
|
4
4
|
"description": "React components library project for Innovaccer Design System",
|
|
5
5
|
"main": "dist/index.umd.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -30,7 +30,8 @@
|
|
|
30
30
|
"build-type": "rm -rf .lib && tsc -b tsconfig.type.json",
|
|
31
31
|
"build": "npm run build-css && npm run build-js",
|
|
32
32
|
"version": "./scripts/version.sh",
|
|
33
|
-
"prepare": "husky install"
|
|
33
|
+
"prepare": "husky install",
|
|
34
|
+
"generate-types": "node node_modules/.bin/dts-bundle-generator --config dts.config.js"
|
|
34
35
|
},
|
|
35
36
|
"author": "Innovaccer",
|
|
36
37
|
"license": "MIT",
|
|
@@ -72,6 +73,7 @@
|
|
|
72
73
|
"commitizen": "^4.2.4",
|
|
73
74
|
"concurrently": "^5.1.0",
|
|
74
75
|
"cz-conventional-changelog": "^3.3.0",
|
|
76
|
+
"dts-bundle-generator": "5.9.0",
|
|
75
77
|
"eslint": "^6.8.0",
|
|
76
78
|
"fork-ts-checker-webpack-plugin": "^4.0.0-beta.4",
|
|
77
79
|
"gulp": "^4.0.2",
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// Type definitions for innovaccer-design-system x.x
|
|
2
|
+
// Project: https://github.com/baz/foo (Does not have to be to GitHub, but prefer linking to a source code repository rather than to a project website.)
|
|
3
|
+
// Definitions by: SaniyaGupta <https://github.com/me>
|
|
4
|
+
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
5
|
+
|
|
6
|
+
/*~ If this module is a UMD module that exposes a global variable 'myLib' when
|
|
7
|
+
*~ loaded outside a module loader environment, declare that global here.
|
|
8
|
+
*~ Otherwise, delete this declaration.
|
|
9
|
+
*/
|
|
10
|
+
export as namespace myLib;
|
|
11
|
+
|
|
12
|
+
/*~ If this module has methods, declare them as functions like so.
|
|
13
|
+
*/
|
|
14
|
+
export function myMethod(a: string): string;
|
|
15
|
+
export function myOtherMethod(a: number): number;
|
|
16
|
+
|
|
17
|
+
/*~ You can declare types that are available via importing the module */
|
|
18
|
+
export interface someType {
|
|
19
|
+
name: string;
|
|
20
|
+
length: number;
|
|
21
|
+
extras?: string[];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/*~ You can declare properties of the module using const, let, or var */
|
|
25
|
+
export const myField: number;
|
|
26
|
+
|
|
27
|
+
/*~ If there are types, properties, or methods inside dotted names
|
|
28
|
+
*~ of the module, declare them inside a 'namespace'.
|
|
29
|
+
*/
|
|
30
|
+
export namespace subProp {
|
|
31
|
+
/*~ For example, given this definition, someone could write:
|
|
32
|
+
*~ import { subProp } from 'yourModule';
|
|
33
|
+
*~ subProp.foo();
|
|
34
|
+
*~ or
|
|
35
|
+
*~ import * as yourMod from 'yourModule';
|
|
36
|
+
*~ yourMod.subProp.foo();
|
|
37
|
+
*/
|
|
38
|
+
function foo(): void;
|
|
39
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"module": "commonjs",
|
|
4
|
+
"lib": [
|
|
5
|
+
"es6"
|
|
6
|
+
],
|
|
7
|
+
"noImplicitAny": true,
|
|
8
|
+
"noImplicitThis": true,
|
|
9
|
+
"strictFunctionTypes": true,
|
|
10
|
+
"strictNullChecks": true,
|
|
11
|
+
"baseUrl": "../",
|
|
12
|
+
"typeRoots": [
|
|
13
|
+
"../"
|
|
14
|
+
],
|
|
15
|
+
"types": [],
|
|
16
|
+
"noEmit": true,
|
|
17
|
+
"forceConsistentCasingInFileNames": true
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"index.d.ts",
|
|
21
|
+
"innovaccer-design-system-tests.ts"
|
|
22
|
+
]
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "extends": "dtslint/dt.json" }
|
package/core/components/molecules/emptyState/__stories__/variants/smallSizeWithoutButton.story.tsx
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { EmptyState, Card } from '@/index';
|
|
3
|
-
import noSearch from '../assets/noSearch.png';
|
|
4
|
-
|
|
5
|
-
export const smallSizeWithoutButton = () => {
|
|
6
|
-
return (
|
|
7
|
-
<Card className="py-5">
|
|
8
|
-
<EmptyState
|
|
9
|
-
title="We didn't find a match"
|
|
10
|
-
description="Try adjusting your search to find what you are looking for."
|
|
11
|
-
size="small"
|
|
12
|
-
imageSrc={noSearch}
|
|
13
|
-
/>
|
|
14
|
-
</Card>
|
|
15
|
-
);
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export default {
|
|
19
|
-
title: 'Components/EmptyState/Variants/Small Size Without Button',
|
|
20
|
-
component: EmptyState,
|
|
21
|
-
};
|