@kwantis-id3/frontend-library 1.0.0-rc.41 → 1.0.0-rc.42
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.
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Interpolation } from "@emotion/react";
|
|
2
|
-
import { Theme } from "@emotion/react/dist/declarations/src";
|
|
1
|
+
import { Interpolation, Theme } from "@emotion/react";
|
|
3
2
|
export type TButtonVariants = "contained" | "outlined" | "text";
|
|
4
3
|
export type TButtonProps = {
|
|
5
4
|
/** Color of the button */
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
|
|
2
2
|
import * as _emotion_react from '@emotion/react';
|
|
3
|
-
import { Interpolation, Theme
|
|
4
|
-
import { Theme } from '@emotion/react/dist/declarations/src';
|
|
3
|
+
import { Interpolation, Theme } from '@emotion/react';
|
|
5
4
|
import * as react from 'react';
|
|
6
5
|
import { PropsWithChildren, ReactElement, FC, ReactNode } from 'react';
|
|
7
6
|
import * as _emotion_styled from '@emotion/styled';
|
|
@@ -192,7 +191,7 @@ type TTextFieldProps = React.InputHTMLAttributes<HTMLInputElement> & {
|
|
|
192
191
|
/** The color of the input */
|
|
193
192
|
color?: string;
|
|
194
193
|
/** Change the styles of the input field */
|
|
195
|
-
sx?: Interpolation<Theme
|
|
194
|
+
sx?: Interpolation<Theme>;
|
|
196
195
|
};
|
|
197
196
|
|
|
198
197
|
interface SingleSelectProps<Option = {
|
|
@@ -433,7 +432,7 @@ type TTagProps = {
|
|
|
433
432
|
declare const Tag: FC<TTagProps>;
|
|
434
433
|
|
|
435
434
|
type TCardSectionProps = PropsWithChildren & {
|
|
436
|
-
sx?: Interpolation<Theme
|
|
435
|
+
sx?: Interpolation<Theme>;
|
|
437
436
|
onClick?: (e: React.MouseEvent<HTMLElement>) => void;
|
|
438
437
|
};
|
|
439
438
|
|
|
@@ -490,14 +489,14 @@ type TMultiViewListProps<Cell extends TCellValues, Row extends TTableRow<Cell>>
|
|
|
490
489
|
cardComponent: (item: Row, index: number) => React.ReactNode;
|
|
491
490
|
cardsWidth?: string;
|
|
492
491
|
cardsHeight?: string;
|
|
493
|
-
sx?: Interpolation<Theme
|
|
492
|
+
sx?: Interpolation<Theme>;
|
|
494
493
|
};
|
|
495
494
|
type TMultiViewGridProps<Cell extends TCellValues, Row extends TDataGridRow<Cell>> = TDataGridProps<Cell, Row> & {
|
|
496
495
|
mode: "table" | "cards";
|
|
497
496
|
cardComponent: (item: Row, index: number) => React.ReactNode;
|
|
498
497
|
cardsWidth?: string;
|
|
499
498
|
cardsHeight?: string;
|
|
500
|
-
sx?: Interpolation<Theme
|
|
499
|
+
sx?: Interpolation<Theme>;
|
|
501
500
|
};
|
|
502
501
|
|
|
503
502
|
declare const MultiViewList: <Cell extends TCellValues, Row extends TTableRow<Cell>>(props: TMultiViewListProps<Cell, Row>) => _emotion_react_jsx_runtime.JSX.Element;
|
|
@@ -548,7 +547,7 @@ type TTreeViewProps = TTreeItemFunctions & {
|
|
|
548
547
|
/** Disable multi-selection possibility */
|
|
549
548
|
isMultiSelectionDisabled?: boolean;
|
|
550
549
|
/** Custom styles */
|
|
551
|
-
sx?: Interpolation<Theme
|
|
550
|
+
sx?: Interpolation<Theme>;
|
|
552
551
|
};
|
|
553
552
|
type TUncontrolledTreeViewProps = TTreeViewProps & {
|
|
554
553
|
items: TTreeViewItem[];
|
|
@@ -583,7 +582,7 @@ type TTreeViewItem = TTreeItemFunctions & {
|
|
|
583
582
|
/** A callback to fetch children asynchronously */
|
|
584
583
|
childrenAsync?: () => Promise<TTreeViewItem[]>;
|
|
585
584
|
/** Custom styles */
|
|
586
|
-
sx?: Interpolation<Theme
|
|
585
|
+
sx?: Interpolation<Theme>;
|
|
587
586
|
};
|
|
588
587
|
|
|
589
588
|
/** @jsxImportSource @emotion/react */
|
|
@@ -621,7 +620,7 @@ type TDrawerProps = {
|
|
|
621
620
|
keepMounted?: boolean;
|
|
622
621
|
/** Set a custom z-index */
|
|
623
622
|
zIndex?: number;
|
|
624
|
-
sx?: Interpolation<Theme
|
|
623
|
+
sx?: Interpolation<Theme>;
|
|
625
624
|
onOpen?: () => void;
|
|
626
625
|
onClose?: () => void;
|
|
627
626
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kwantis-id3/frontend-library",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.42",
|
|
4
4
|
"description": "Kwantis frontend components collection",
|
|
5
5
|
"scriptsComments": {
|
|
6
6
|
"storybook": "Starts storybook in development mode",
|
|
@@ -41,19 +41,16 @@
|
|
|
41
41
|
},
|
|
42
42
|
"license": "apache-2.0",
|
|
43
43
|
"devDependencies": {
|
|
44
|
+
"@emotion/jest": "^11.11.0",
|
|
44
45
|
"@rollup/plugin-commonjs": "^24.0.1",
|
|
45
46
|
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
46
47
|
"@rollup/plugin-terser": "^0.4.4",
|
|
47
48
|
"@rollup/plugin-typescript": "^11.0.0",
|
|
48
|
-
"@storybook/addon-
|
|
49
|
-
"@storybook/addon-
|
|
50
|
-
"@storybook/addon-
|
|
51
|
-
"@storybook/
|
|
52
|
-
"@storybook/
|
|
53
|
-
"@storybook/react": "^8.6.4",
|
|
54
|
-
"@storybook/react-webpack5": "^8.6.4",
|
|
55
|
-
"@storybook/test": "^8.6.4",
|
|
56
|
-
"@storybook/types": "^8.6.4",
|
|
49
|
+
"@storybook/addon-docs": "^10.1.10",
|
|
50
|
+
"@storybook/addon-links": "^10.1.10",
|
|
51
|
+
"@storybook/addon-webpack5-compiler-swc": "^4.0.2",
|
|
52
|
+
"@storybook/react": "^10.1.10",
|
|
53
|
+
"@storybook/react-webpack5": "^10.1.10",
|
|
57
54
|
"@testing-library/jest-dom": "^5.16.5",
|
|
58
55
|
"@testing-library/react": "^16.2.0",
|
|
59
56
|
"@testing-library/user-event": "^14.6.1",
|
|
@@ -63,33 +60,33 @@
|
|
|
63
60
|
"@types/tinycolor2": "^1.4.3",
|
|
64
61
|
"@typescript-eslint/eslint-plugin": "^5.58.0",
|
|
65
62
|
"@typescript-eslint/parser": "^5.58.0",
|
|
66
|
-
"@
|
|
63
|
+
"@vitejs/plugin-react": "^5.1.2",
|
|
64
|
+
"@vitest/coverage-v8": "3.0.5",
|
|
67
65
|
"chromatic": "^11.0.4",
|
|
68
|
-
"eslint": "^8.
|
|
66
|
+
"eslint": "^8.57.1",
|
|
69
67
|
"eslint-config-prettier": "^8.8.0",
|
|
70
68
|
"eslint-plugin-react": "^7.32.2",
|
|
71
69
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
72
|
-
"eslint-plugin-storybook": "^
|
|
73
|
-
"jsdom": "^23.0
|
|
70
|
+
"eslint-plugin-storybook": "^10.1.10",
|
|
71
|
+
"jsdom": "^23.2.0",
|
|
74
72
|
"lucide-react": "^0.545.0",
|
|
75
73
|
"prop-types": "15.8.1",
|
|
76
74
|
"rollup": "^3.20.2",
|
|
77
75
|
"rollup-plugin-dts": "^5.3.0",
|
|
78
76
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
79
|
-
"storybook": "^
|
|
77
|
+
"storybook": "^10.1.10",
|
|
80
78
|
"ts-node": "^10.9.1",
|
|
81
79
|
"tslib": "^2.5.0",
|
|
82
80
|
"typescript": "^5.7.3",
|
|
83
|
-
"vitest": "^3.0.5"
|
|
84
|
-
"@emotion/jest": "^11.11.0"
|
|
81
|
+
"vitest": "^3.0.5"
|
|
85
82
|
},
|
|
86
83
|
"peerDependencies": {
|
|
84
|
+
"@emotion/react": "^11.0.0",
|
|
85
|
+
"@emotion/styled": "^11.0.0",
|
|
87
86
|
"@tanstack/react-table": "^8.0.0",
|
|
88
87
|
"lucide-react": "^0.545.0",
|
|
89
88
|
"react": "^18.0.0 || ^19.0.0",
|
|
90
|
-
"react-dom": "^18.0.0 || ^19.0.0"
|
|
91
|
-
"@emotion/react": "^11.0.0",
|
|
92
|
-
"@emotion/styled": "^11.0.0"
|
|
89
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
93
90
|
},
|
|
94
91
|
"main": "dist/cjs/index.js",
|
|
95
92
|
"module": "dist/esm/index.js",
|
|
@@ -112,7 +109,12 @@
|
|
|
112
109
|
"semver@>=7.0.0 <7.5.2": ">=7.5.2",
|
|
113
110
|
"tough-cookie@<4.1.3": ">=4.1.3",
|
|
114
111
|
"word-wrap@<1.2.4": ">=1.2.4",
|
|
115
|
-
"@babel/traverse@<7.23.2": ">=7.23.2"
|
|
112
|
+
"@babel/traverse@<7.23.2": ">=7.23.2",
|
|
113
|
+
"brace-expansion@>=1.0.0 <=1.1.11": ">=1.1.12",
|
|
114
|
+
"brace-expansion@>=2.0.0 <=2.0.1": ">=2.0.2",
|
|
115
|
+
"form-data@>=4.0.0 <4.0.4": ">=4.0.4",
|
|
116
|
+
"js-yaml@>=4.0.0 <4.1.1": ">=4.1.1",
|
|
117
|
+
"glob@>=10.2.0 <10.5.0": ">=10.5.0"
|
|
116
118
|
}
|
|
117
119
|
},
|
|
118
120
|
"engines": {
|