dt-shared-front 2.2.129 → 3.0.1
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/dist/components/breadcrumbs/breadcrumbs.d.ts +1 -0
- package/dist/components/button/button.d.ts +1 -2
- package/dist/components/checkbox/checkbox.d.ts +1 -2
- package/dist/components/counter/counter.d.ts +0 -1
- package/dist/components/counter/counter.stories.d.ts +9 -0
- package/dist/components/date-picker/date-picker.d.ts +34 -59
- package/dist/components/date-picker/date-picker.stories.d.ts +9 -0
- package/dist/components/form-control/form-control.d.ts +6 -3
- package/dist/components/form-control/form-control.stories.d.ts +8 -0
- package/dist/components/heading/heading.d.ts +1 -2
- package/dist/components/input/input.d.ts +1 -3
- package/dist/components/link/link.stories.d.ts +8 -0
- package/dist/components/pagination/index.d.ts +1 -0
- package/dist/components/pagination/pagination.d.ts +12 -0
- package/dist/components/radio/radio.d.ts +1 -2
- package/dist/components/select/select.d.ts +2 -1
- package/dist/components/select/select.stories.d.ts +19 -2
- package/dist/components/skeleton/skeleton.d.ts +1 -2
- package/dist/components/slider/slider.d.ts +6 -3
- package/dist/components/spoiler/spoiler.d.ts +0 -1
- package/dist/components/stacked-input/stacked-input.d.ts +0 -1
- package/dist/components/switch/switch.d.ts +1 -2
- package/dist/components/switch/switch.stories.d.ts +1 -2
- package/dist/components/table/index.d.ts +3 -0
- package/dist/components/table/table-row.d.ts +16 -0
- package/dist/components/table/table.d.ts +23 -0
- package/dist/components/table/table.hook.d.ts +33 -0
- package/dist/components/table/table.stories.d.ts +32 -0
- package/dist/components/table/table.types.d.ts +19 -0
- package/dist/components/tag-box/tag-box.stories.d.ts +4 -0
- package/dist/components/tag-button/tag-button.d.ts +1 -2
- package/dist/components/text/text.d.ts +1 -2
- package/dist/components/text-area/text-area.d.ts +1 -2
- package/dist/components/tooltip/tooltip.d.ts +10 -3
- package/dist/components/tooltip/tooltip.stories.d.ts +3 -0
- package/dist/components/tooltip/tooltip.utils.d.ts +10 -2
- package/dist/index.d.ts +3 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/main.css +44 -41
- package/dist/main.css.map +1 -1
- package/dist/providers/shared.provider.d.ts +0 -2
- package/package.json +7 -1
- package/dist/components/range-picker/index.d.ts +0 -1
- package/dist/components/range-picker/range-picker.d.ts +0 -54
- package/dist/components/range-picker/range-picker.stories.d.ts +0 -6
|
@@ -2,11 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { PropsWithChildren } from 'react';
|
|
3
3
|
declare type ISharedContextPrivate = {
|
|
4
4
|
LinkComponent?: any;
|
|
5
|
-
isWbTheme?: boolean;
|
|
6
5
|
};
|
|
7
6
|
interface ISharedProviderProps {
|
|
8
7
|
LinkComponent?: any;
|
|
9
|
-
isWbTheme?: boolean;
|
|
10
8
|
}
|
|
11
9
|
export declare const SharedProvider: ({ children, ...props }: PropsWithChildren<ISharedProviderProps>) => React.JSX.Element;
|
|
12
10
|
export declare const useShared: () => ISharedContextPrivate;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dt-shared-front",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "Shared components",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
"@storybook/react-webpack5": "^8.3.4",
|
|
33
33
|
"@storybook/test": "^8.3.4",
|
|
34
34
|
"@svgr/webpack": "5.5.0",
|
|
35
|
+
"@types/node": "^25.0.1",
|
|
35
36
|
"@types/react": "^18.3.11",
|
|
36
37
|
"@typescript-eslint/eslint-plugin": "5.30.7",
|
|
37
38
|
"@typescript-eslint/parser": "5.30.7",
|
|
@@ -39,7 +40,9 @@
|
|
|
39
40
|
"axios": "0.27.2",
|
|
40
41
|
"babel-loader": "^8.2.5",
|
|
41
42
|
"babel-plugin-inline-react-svg": "^1.1.2",
|
|
43
|
+
"babel-plugin-module-resolver": "^5.0.2",
|
|
42
44
|
"babel-plugin-react-css-modules": "^5.2.6",
|
|
45
|
+
"classnames": "2.5.1",
|
|
43
46
|
"clean-webpack-plugin": "^4.0.0",
|
|
44
47
|
"copy-webpack-plugin": "^6.0.0",
|
|
45
48
|
"crypto": "^1.0.1",
|
|
@@ -78,5 +81,8 @@
|
|
|
78
81
|
"resolutions": {
|
|
79
82
|
"@types/react": "18.3.0",
|
|
80
83
|
"@types/react-dom": "18.3.0"
|
|
84
|
+
},
|
|
85
|
+
"dependencies": {
|
|
86
|
+
"@storybook/addon-webpack5-compiler-babel": "^4.0.0"
|
|
81
87
|
}
|
|
82
88
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { RangePicker } from './range-picker';
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import React, { ComponentProps } from 'react';
|
|
2
|
-
declare const AntDatePicker: import("antd/lib/date-picker/generatePicker/interface").PickerComponentClass<import("antd/lib/date-picker/generatePicker").PickerProps<Date> & {
|
|
3
|
-
status?: "" | "error" | "warning";
|
|
4
|
-
dropdownClassName?: string;
|
|
5
|
-
popupClassName?: string;
|
|
6
|
-
}, unknown> & {
|
|
7
|
-
WeekPicker: import("antd/lib/date-picker/generatePicker/interface").PickerComponentClass<Omit<import("antd/lib/date-picker/generatePicker").PickerProps<Date> & {
|
|
8
|
-
status?: "" | "error" | "warning";
|
|
9
|
-
dropdownClassName?: string;
|
|
10
|
-
popupClassName?: string;
|
|
11
|
-
}, "picker">, unknown>;
|
|
12
|
-
MonthPicker: import("antd/lib/date-picker/generatePicker/interface").PickerComponentClass<Omit<import("antd/lib/date-picker/generatePicker").PickerProps<Date> & {
|
|
13
|
-
status?: "" | "error" | "warning";
|
|
14
|
-
dropdownClassName?: string;
|
|
15
|
-
popupClassName?: string;
|
|
16
|
-
}, "picker">, unknown>;
|
|
17
|
-
YearPicker: import("antd/lib/date-picker/generatePicker/interface").PickerComponentClass<Omit<import("antd/lib/date-picker/generatePicker").PickerProps<Date> & {
|
|
18
|
-
status?: "" | "error" | "warning";
|
|
19
|
-
dropdownClassName?: string;
|
|
20
|
-
popupClassName?: string;
|
|
21
|
-
}, "picker">, unknown>;
|
|
22
|
-
RangePicker: import("antd/lib/date-picker/generatePicker/interface").PickerComponentClass<import("antd/lib/date-picker/generatePicker").RangePickerProps<Date> & {
|
|
23
|
-
dropdownClassName?: string;
|
|
24
|
-
popupClassName?: string;
|
|
25
|
-
}, unknown>;
|
|
26
|
-
TimePicker: import("antd/lib/date-picker/generatePicker/interface").PickerComponentClass<Omit<Omit<import("rc-picker/lib/Picker").PickerTimeProps<Date>, "locale" | "generateConfig" | "hideHeader" | "components"> & {
|
|
27
|
-
locale?: import("antd/lib/date-picker/generatePicker").PickerLocale;
|
|
28
|
-
size?: import("antd/lib/button").ButtonSize;
|
|
29
|
-
placement?: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
|
|
30
|
-
bordered?: boolean;
|
|
31
|
-
status?: "" | "error" | "warning";
|
|
32
|
-
} & {
|
|
33
|
-
status?: "" | "error" | "warning";
|
|
34
|
-
dropdownClassName?: string;
|
|
35
|
-
popupClassName?: string;
|
|
36
|
-
}, "picker">, unknown>;
|
|
37
|
-
QuarterPicker: import("antd/lib/date-picker/generatePicker/interface").PickerComponentClass<Omit<Omit<import("rc-picker/lib/Picker").PickerTimeProps<Date>, "locale" | "generateConfig" | "hideHeader" | "components"> & {
|
|
38
|
-
locale?: import("antd/lib/date-picker/generatePicker").PickerLocale;
|
|
39
|
-
size?: import("antd/lib/button").ButtonSize;
|
|
40
|
-
placement?: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
|
|
41
|
-
bordered?: boolean;
|
|
42
|
-
status?: "" | "error" | "warning";
|
|
43
|
-
} & {
|
|
44
|
-
status?: "" | "error" | "warning";
|
|
45
|
-
dropdownClassName?: string;
|
|
46
|
-
popupClassName?: string;
|
|
47
|
-
}, "picker">, unknown>;
|
|
48
|
-
};
|
|
49
|
-
declare type IRangePickerProps = {
|
|
50
|
-
isFromToday?: boolean;
|
|
51
|
-
onClear?: (e: any) => void;
|
|
52
|
-
} & ComponentProps<typeof AntDatePicker.RangePicker>;
|
|
53
|
-
export declare const RangePicker: React.ForwardRefExoticComponent<IRangePickerProps & React.RefAttributes<unknown>>;
|
|
54
|
-
export {};
|