@veeqo/ui 0.0.3 → 0.0.4
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 +9 -1
- package/lib/components/ActionList/styled.d.ts +24 -3
- package/lib/components/Button/Button.d.ts +8 -2
- package/lib/components/Button/types.d.ts +2 -2
- package/lib/components/DimensionsInput/styled.d.ts +8 -1
- package/lib/components/PageHeader/styled.d.ts +8 -1
- package/lib/components/Pagination/styled.d.ts +8 -1
- package/lib/components/VideoModal/styled.d.ts +8 -1
- package/lib/components/WeightInput/styled.d.ts +8 -1
- package/lib/index.d.ts +5 -1702
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/rollup.config.mjs +6 -19
- package/src/components/Button/types.ts +2 -2
- package/tsconfig.json +1 -1
- package/lib/components/Button/components/DropdownIcon.d.ts +0 -2
- package/lib/components/CardHeader/icons/Cross.d.ts +0 -2
- package/lib/components/CardHeader/icons/DownArrow.d.ts +0 -2
- package/lib/components/CardHeader/icons/UpArrow.d.ts +0 -2
- package/lib/components/Choice/components/HelpIcon.d.ts +0 -2
- package/lib/components/DataTable/icons/DoubleArrowAsc.d.ts +0 -2
- package/lib/components/DataTable/icons/DoubleArrowDesc.d.ts +0 -2
- package/lib/components/DataTable/icons/DoubleArrowIcon.d.ts +0 -2
- package/lib/components/DataTableExp/components/icons/ArrowDown.d.ts +0 -2
- package/lib/components/DataTableExp/components/icons/ArrowUp.d.ts +0 -2
- package/lib/components/DataTableExp/components/icons/DoubleArrow.d.ts +0 -2
- package/lib/components/DataTableExp/components/icons/InfoIcon.d.ts +0 -2
- package/lib/components/DataTableExp/components/icons/Reorder.d.ts +0 -2
- package/lib/components/DataTableExp/components/icons/Visibility.d.ts +0 -2
- package/lib/components/DataTableExp/components/icons/VisibilityOff.d.ts +0 -2
- package/lib/components/Pagination/components/EndArrow.d.ts +0 -2
- package/lib/components/Pagination/components/LeftArrow.d.ts +0 -2
- package/lib/components/Pagination/components/RightArrow.d.ts +0 -2
- package/lib/components/Pagination/components/StartArrow.d.ts +0 -2
- package/lib/hoc/withLabels/HelpIcon.d.ts +0 -2
- package/lib/theme/utils/buildClassnames.d.ts +0 -1
- package/lib/theme/utils/color.d.ts +0 -13
- package/lib/theme/utils/generateId.d.ts +0 -1
- package/lib/theme/utils/index.d.ts +0 -3
- package/lib/theme/utils/paginationList.d.ts +0 -4
- package/lib/theme/utils/setupIntersectionObserverMock.d.ts +0 -18
- package/lib/utils/toMap.d.ts +0 -5
package/package.json
CHANGED
package/rollup.config.mjs
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import typescriptEngine from 'typescript';
|
|
2
1
|
import dts from 'rollup-plugin-dts';
|
|
3
2
|
import terser from '@rollup/plugin-terser';
|
|
4
3
|
import peerDepsExternal from 'rollup-plugin-peer-deps-external';
|
|
@@ -9,7 +8,7 @@ import packageJson from './package.json' assert { type: 'json' };
|
|
|
9
8
|
|
|
10
9
|
export default [
|
|
11
10
|
{
|
|
12
|
-
input: 'src/index.ts',
|
|
11
|
+
input: './src/index.ts',
|
|
13
12
|
output: [
|
|
14
13
|
{
|
|
15
14
|
file: packageJson.main,
|
|
@@ -19,31 +18,19 @@ export default [
|
|
|
19
18
|
{
|
|
20
19
|
file: packageJson.module,
|
|
21
20
|
format: 'esm',
|
|
21
|
+
exports: 'named',
|
|
22
22
|
sourcemap: true,
|
|
23
23
|
},
|
|
24
24
|
],
|
|
25
25
|
plugins: [
|
|
26
|
-
peerDepsExternal(), // Don't include peer dependencies, should be given by client.
|
|
27
|
-
resolve(), // Resolve paths
|
|
28
26
|
typescript({
|
|
29
27
|
tsconfig: './tsconfig.json',
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
exclude: [
|
|
33
|
-
'**/__snapshots__/*',
|
|
34
|
-
'**/__tests__',
|
|
35
|
-
'**/*.test.ts+(|x)',
|
|
36
|
-
'**/*.story.ts+(|x)',
|
|
37
|
-
'**/*.stories.ts+(|x)',
|
|
38
|
-
'**/*.mdx',
|
|
39
|
-
],
|
|
28
|
+
sourceMap: false,
|
|
29
|
+
exclude: ['**/__snapshots__/*', '**/*.test.ts+(|x)', '**/*.stories.ts+(|x)', '**/*.mdx'],
|
|
40
30
|
}),
|
|
31
|
+
peerDepsExternal(), // Don't include peer dependencies, should be given by client.
|
|
32
|
+
resolve(), // Resolve paths
|
|
41
33
|
terser(),
|
|
42
34
|
],
|
|
43
35
|
},
|
|
44
|
-
{
|
|
45
|
-
input: 'lib/index.d.ts',
|
|
46
|
-
output: [{ file: 'lib/index.d.ts', format: 'esm' }],
|
|
47
|
-
plugins: [dts()],
|
|
48
|
-
},
|
|
49
36
|
];
|
|
@@ -12,7 +12,7 @@ export type ButtonVariant =
|
|
|
12
12
|
/**
|
|
13
13
|
* Button properties.
|
|
14
14
|
*/
|
|
15
|
-
export
|
|
15
|
+
export type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
16
16
|
children?: ReactNode;
|
|
17
17
|
/** Variant styles */
|
|
18
18
|
variant?: ButtonVariant;
|
|
@@ -24,4 +24,4 @@ export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
24
24
|
dropdown?: boolean;
|
|
25
25
|
/** Renders a loading indicator inside the button */
|
|
26
26
|
loading?: boolean;
|
|
27
|
-
}
|
|
27
|
+
};
|
package/tsconfig.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const buildClassnames: (names: (string | undefined)[]) => string;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A function to convert hex color to rgb.
|
|
3
|
-
*/
|
|
4
|
-
export declare const hexToRgb: (hex: string) => {
|
|
5
|
-
r: number;
|
|
6
|
-
g: number;
|
|
7
|
-
b: number;
|
|
8
|
-
} | null;
|
|
9
|
-
/**
|
|
10
|
-
* A function to get a hex color with opacity, after converting to `rgba`.
|
|
11
|
-
* @param hex color in hex format
|
|
12
|
-
*/
|
|
13
|
-
export declare const getOpaqueHexColor: (hex: string, opacity: number) => string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const generateId: (prefix: string) => string;
|
|
@@ -1,18 +0,0 @@
|
|
|
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;
|