@veeqo/ui 8.0.0-beta-2 → 8.0.0-beta-3
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/Calendars/components/subcomponents/CalendarStyles/index.d.ts +2 -0
- package/dist/components/Calendars/components/subcomponents/CalendarStyles/index.d.ts.map +1 -0
- package/dist/components/DataTable/utils/getColumnWidth.d.ts +3 -0
- package/dist/components/DataTable/utils/getColumnWidth.d.ts.map +1 -0
- package/dist/components/UploadFile/mocks/files.d.ts +3 -0
- package/dist/components/UploadFile/mocks/files.d.ts.map +1 -0
- package/dist/components/UploadFile/mocks/utils.d.ts +10 -0
- package/dist/components/UploadFile/mocks/utils.d.ts.map +1 -0
- package/dist/components/VideoModal/VideoModalDemo.d.ts +3 -0
- package/dist/components/VideoModal/VideoModalDemo.d.ts.map +1 -0
- package/dist/components/ViewsContainer/hooks/mockUseRef.d.ts +11 -0
- package/dist/components/ViewsContainer/hooks/mockUseRef.d.ts.map +1 -0
- package/dist/tempIcons/DoubleArrowIcon.d.ts +3 -0
- package/dist/tempIcons/DoubleArrowIcon.d.ts.map +1 -0
- package/dist/theme/storybook/components.d.ts +3 -0
- package/dist/theme/storybook/components.d.ts.map +1 -0
- package/dist/utils/paginationList.d.ts +5 -0
- package/dist/utils/paginationList.d.ts.map +1 -0
- package/dist/utils/setupIntersectionObserverMock.d.ts +19 -0
- package/dist/utils/setupIntersectionObserverMock.d.ts.map +1 -0
- package/package.json +3 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Calendars/components/subcomponents/CalendarStyles/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ColumnConfigs, ColumnId, ColumnWidthsType } from '../types';
|
|
2
|
+
export declare function getColumnWidth(columnId: ColumnId, columnWidths: ColumnWidthsType, columns: ColumnConfigs): string | number | import("../types").ColumnWidthBounded | undefined;
|
|
3
|
+
//# sourceMappingURL=getColumnWidth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getColumnWidth.d.ts","sourceRoot":"","sources":["../../../../src/components/DataTable/utils/getColumnWidth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAErE,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,QAAQ,EAClB,YAAY,EAAE,gBAAgB,EAC9B,OAAO,EAAE,aAAa,uEAOvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../../../src/components/UploadFile/mocks/files.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,MAA0D,CAAC;AACrF,eAAO,MAAM,WAAW,MAAwD,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type MockHelperProps = {
|
|
2
|
+
file: File;
|
|
3
|
+
label?: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const mockDrop: ({ file, label }: MockHelperProps) => void;
|
|
6
|
+
export declare const mockDragOver: ({ file, label }: MockHelperProps) => void;
|
|
7
|
+
export declare const getDefaultInput: () => HTMLElement;
|
|
8
|
+
export declare const getUploadGraphic: () => HTMLElement;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/UploadFile/mocks/utils.ts"],"names":[],"mappings":"AAGA,KAAK,eAAe,GAAG;IAAE,IAAI,EAAE,IAAI,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEtD,eAAO,MAAM,QAAQ,oBAAqB,eAAe,SAQxD,CAAC;AAEF,eAAO,MAAM,YAAY,oBAAqB,eAAe,SAQ5D,CAAC;AAEF,eAAO,MAAM,eAAe,mBAA+D,CAAC;AAE5F,eAAO,MAAM,gBAAgB,mBAG5B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VideoModalDemo.d.ts","sourceRoot":"","sources":["../../../src/components/VideoModal/VideoModalDemo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAIxC,eAAO,MAAM,cAAc,yBAc1B,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type NodeWidth = Partial<HTMLElement>;
|
|
2
|
+
/**
|
|
3
|
+
* Mocks ref for testing properties such as client width of a container
|
|
4
|
+
*
|
|
5
|
+
* @param node parameters
|
|
6
|
+
*
|
|
7
|
+
* @example mockClientWidth({ clientWidth: 200 })
|
|
8
|
+
*/
|
|
9
|
+
export declare const mockUseRef: (node: NodeWidth) => void;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=mockUseRef.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mockUseRef.d.ts","sourceRoot":"","sources":["../../../../src/components/ViewsContainer/hooks/mockUseRef.ts"],"names":[],"mappings":"AAEA,KAAK,SAAS,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;AAEtC;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,SAAU,SAAS,KAAG,IAW5C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DoubleArrowIcon.d.ts","sourceRoot":"","sources":["../../src/tempIcons/DoubleArrowIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,eAAO,MAAM,eAAe,UAAW,GAAG,sBAKzC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/theme/storybook/components.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,eAAO,MAAM,MAAM,cAAe,GAAG,sBAepC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paginationList.d.ts","sourceRoot":"","sources":["../../src/utils/paginationList.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B;;;GAKtC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* https://stackoverflow.com/a/58651649
|
|
3
|
+
*
|
|
4
|
+
* Utility function that mocks the `IntersectionObserver` API. Necessary for components that rely
|
|
5
|
+
* on it, otherwise the tests will crash. Recommended to execute inside `beforeEach`.
|
|
6
|
+
* @param intersectionObserverMock - Parameter that is sent to the `Object.defineProperty`
|
|
7
|
+
* overwrite method. `jest.fn()` mock functions can be passed here if the goal is to not only
|
|
8
|
+
* mock the intersection observer, but its methods.
|
|
9
|
+
*/
|
|
10
|
+
export declare function setupIntersectionObserverMock({ root, rootMargin, thresholds, disconnect, observe, takeRecords, unobserve, }?: {
|
|
11
|
+
root?: null | undefined;
|
|
12
|
+
rootMargin?: string | undefined;
|
|
13
|
+
thresholds?: never[] | undefined;
|
|
14
|
+
disconnect?: (() => null) | undefined;
|
|
15
|
+
observe?: (() => null) | undefined;
|
|
16
|
+
takeRecords?: (() => never[]) | undefined;
|
|
17
|
+
unobserve?: (() => null) | undefined;
|
|
18
|
+
}): void;
|
|
19
|
+
//# sourceMappingURL=setupIntersectionObserverMock.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setupIntersectionObserverMock.d.ts","sourceRoot":"","sources":["../../src/utils/setupIntersectionObserverMock.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,wBAAgB,6BAA6B,CAAC,EAC5C,IAAW,EACX,UAAe,EACf,UAAe,EACf,UAAuB,EACvB,OAAoB,EACpB,WAAsB,EACtB,SAAsB,GACvB;;;;;;;;CAAK,GAAG,IAAI,CA4BZ"}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veeqo/ui",
|
|
3
|
-
"version": "8.0.0-beta-
|
|
3
|
+
"version": "8.0.0-beta-3",
|
|
4
4
|
"description": "New optimised component library for Veeqo.",
|
|
5
5
|
"author": "Robert Wealthall",
|
|
6
6
|
"license": "ISC",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "./dist/index.js",
|
|
9
9
|
"module": "./dist/index.js",
|
|
10
|
-
"types": "./dist/
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
11
|
"exports": {
|
|
12
12
|
".": {
|
|
13
13
|
"import": "./dist/index.js",
|
|
@@ -139,4 +139,4 @@
|
|
|
139
139
|
"react": "$react"
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
|
-
}
|
|
142
|
+
}
|