@prijsvrijtechsupport/ui 0.0.38 → 0.0.40
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/dist/index.css +13 -5
- package/dist/dist/index.css.map +1 -1
- package/dist/globals.css +8 -0
- package/dist/index.cjs +92 -73
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +92 -74
- package/dist/index.js.map +1 -1
- package/dist/src/components/resultPageFilterBox/index.d.ts +2 -1
- package/dist/src/components/searchBlock/SearchBlock.stories.d.ts +2 -0
- package/dist/src/components/searchBlock/index.d.ts +2 -1
- package/dist/src/components/toggle/index.d.ts +5 -3
- package/dist/src/components/withPvUi.d.ts +1 -1
- package/dist/src/index.d.ts +2 -1
- package/dist/styles/variables.css +5 -5
- package/package.json +4 -3
|
@@ -34,6 +34,7 @@ interface ResultPageFilterBoxProps {
|
|
|
34
34
|
"data-testid"?: string;
|
|
35
35
|
className?: string;
|
|
36
36
|
filters: Filter[];
|
|
37
|
+
clickFunction: (val: string) => void;
|
|
37
38
|
}
|
|
38
|
-
export declare const ResultPageFilterBox: ({ className, filters, ...props }: ResultPageFilterBoxProps) => import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
export declare const ResultPageFilterBox: ({ className, filters, clickFunction, ...props }: ResultPageFilterBoxProps) => import("react/jsx-runtime").JSX.Element;
|
|
39
40
|
export {};
|
|
@@ -7,10 +7,12 @@ export declare const Default: import("@storybook/react").ReactStory<import("@sto
|
|
|
7
7
|
} & {
|
|
8
8
|
args: {
|
|
9
9
|
className: unknown;
|
|
10
|
+
loading: unknown;
|
|
10
11
|
};
|
|
11
12
|
}, {
|
|
12
13
|
args: {
|
|
13
14
|
className: string;
|
|
14
15
|
searchBlockTitle: string;
|
|
16
|
+
loading: boolean;
|
|
15
17
|
};
|
|
16
18
|
}>;
|
|
@@ -3,6 +3,7 @@ interface SearchBlockProps {
|
|
|
3
3
|
className?: string;
|
|
4
4
|
searchBlockTitle?: string;
|
|
5
5
|
searchBlockForm?: React.ReactNode;
|
|
6
|
+
loading: boolean;
|
|
6
7
|
onClickFn?: () => void;
|
|
7
8
|
}
|
|
8
9
|
interface SearchBlockButtonProps {
|
|
@@ -16,5 +17,5 @@ interface SearchBlockButtonProps {
|
|
|
16
17
|
secondarySelectedValue?: string;
|
|
17
18
|
}
|
|
18
19
|
export declare const SearchBlockButton: ({ className, label, labelOutside, icon, downIcon, onClick, selectedValue, secondarySelectedValue, ...props }: SearchBlockButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
export declare const SearchBlock: ({ className, searchBlockTitle, searchBlockForm, onClickFn, "data-testid": dataTestId, ...props }: SearchBlockProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare const SearchBlock: ({ className, searchBlockTitle, searchBlockForm, loading, onClickFn, "data-testid": dataTestId, ...props }: SearchBlockProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
21
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
interface TransportOption {
|
|
2
3
|
id: string;
|
|
3
4
|
label: string;
|
|
@@ -15,6 +16,7 @@ interface TransportToggleProps {
|
|
|
15
16
|
loading?: boolean;
|
|
16
17
|
orientation?: "vertical" | "horizontal";
|
|
17
18
|
}
|
|
18
|
-
export declare const TransportToggle:
|
|
19
|
-
export declare const Toggle:
|
|
20
|
-
export {};
|
|
19
|
+
export declare const TransportToggle: React.FC<TransportToggleProps>;
|
|
20
|
+
export declare const Toggle: React.FC<TransportToggleProps>;
|
|
21
|
+
export type { TransportOption, TransportToggleProps };
|
|
22
|
+
export type ToggleProps = TransportToggleProps;
|
|
@@ -3,4 +3,4 @@ import React from "react";
|
|
|
3
3
|
* Higher-Order Component that adds data-pv-ui attribute to any component
|
|
4
4
|
* This prevents global style conflicts when the UI package is imported.
|
|
5
5
|
*/
|
|
6
|
-
export declare function withPvUi<
|
|
6
|
+
export declare function withPvUi<T extends React.ComponentType<any>>(Component: T): React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<T> & React.RefAttributes<React.ElementRef<T>>>;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -14,7 +14,8 @@ export { PriceCheck } from "./components/priceCheck";
|
|
|
14
14
|
export { Rating } from "./components/rating";
|
|
15
15
|
export { SearchBox } from "./components/searchBox";
|
|
16
16
|
export { SearchBoxResults } from "./components/searchBoxResults";
|
|
17
|
-
export { Toggle } from "./components/toggle";
|
|
17
|
+
export { TransportToggle, Toggle } from "./components/toggle";
|
|
18
|
+
export type { TransportOption, TransportToggleProps, ToggleProps } from "./components/toggle";
|
|
18
19
|
export { TopHeaderMenu } from "./components/topHeaderMenu";
|
|
19
20
|
export { TopMenu, BrandTopMenu } from "./components/topMenu";
|
|
20
21
|
export { Usp } from "./components/usp";
|
|
@@ -397,7 +397,7 @@
|
|
|
397
397
|
--price-price-margin-top: 0;
|
|
398
398
|
|
|
399
399
|
--toggle-active-background-color: var(--prijsvrij-primary);
|
|
400
|
-
--toggle-inactive-background-color:
|
|
400
|
+
--toggle-inactive-background-color: #EFF8FE;
|
|
401
401
|
--toggle-active-color: white;
|
|
402
402
|
--toggle-inactive-color: var(--prijsvrij-dark-600);
|
|
403
403
|
--toggle-font-family: var(--font-open-sans), sans-serif;
|
|
@@ -619,7 +619,7 @@
|
|
|
619
619
|
--price-price-margin-top: -8px;
|
|
620
620
|
|
|
621
621
|
--toggle-active-background-color: var(--dreizen-secondary);
|
|
622
|
-
--toggle-inactive-background-color:
|
|
622
|
+
--toggle-inactive-background-color: #ff780133;
|
|
623
623
|
--toggle-active-color: white;
|
|
624
624
|
--toggle-inactive-color: var(--dreizen-dark-600);
|
|
625
625
|
--toggle-font-family: var(--font-lato), sans-serif;
|
|
@@ -731,9 +731,9 @@
|
|
|
731
731
|
--matrix-table-cell-active-text-color: var(--color-white);
|
|
732
732
|
|
|
733
733
|
--popup-title-font-family: var(--font-lato), sans-serif;
|
|
734
|
-
}
|
|
735
|
-
|
|
734
|
+
}
|
|
735
|
+
|
|
736
736
|
|
|
737
737
|
/* Change this path to be relative to where this CSS file ends up after packaging this library. */
|
|
738
738
|
@source "../../dist";
|
|
739
|
-
|
|
739
|
+
|
package/package.json
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prijsvrijtechsupport/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.40",
|
|
4
4
|
"description": "A UI component library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
7
7
|
"module": "dist/index.js",
|
|
8
|
-
"types": "dist/index.d.ts",
|
|
8
|
+
"types": "dist/src/index.d.ts",
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
11
11
|
"import": "./dist/index.js",
|
|
12
12
|
"require": "./dist/index.cjs",
|
|
13
|
-
"default": "./dist/index.js"
|
|
13
|
+
"default": "./dist/index.js",
|
|
14
|
+
"types": "./dist/src/index.d.ts"
|
|
14
15
|
},
|
|
15
16
|
"./styles": {
|
|
16
17
|
"import": "./dist/styles/index.js",
|