@ultraviolet/plus 3.0.0-beta.12 → 3.0.0-beta.14
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/CodeEditor/CodeEditor.cjs +3 -2
- package/dist/components/CodeEditor/CodeEditor.d.ts +3 -2
- package/dist/components/CodeEditor/CodeEditor.js +3 -2
- package/dist/components/ContentCard/index.cjs +3 -2
- package/dist/components/ContentCard/index.d.ts +2 -1
- package/dist/components/ContentCard/index.js +3 -2
- package/dist/components/ContentCard/styles.css.cjs +1 -0
- package/dist/components/ContentCard/styles.css.js +1 -0
- package/dist/components/ContentCardGroup/Card.cjs +3 -2
- package/dist/components/ContentCardGroup/Card.d.ts +2 -1
- package/dist/components/ContentCardGroup/Card.js +3 -2
- package/dist/components/ContentCardGroup/index.cjs +3 -2
- package/dist/components/ContentCardGroup/index.d.ts +3 -1
- package/dist/components/ContentCardGroup/index.js +3 -2
- package/dist/components/Conversation/index.cjs +15 -10
- package/dist/components/Conversation/index.d.ts +18 -10
- package/dist/components/Conversation/index.js +15 -10
- package/dist/components/Conversation/styles.css.cjs +0 -1
- package/dist/components/Conversation/styles.css.js +0 -1
- package/dist/components/CustomerSatisfaction/index.cjs +3 -2
- package/dist/components/CustomerSatisfaction/index.d.ts +3 -1
- package/dist/components/CustomerSatisfaction/index.js +3 -2
- package/dist/components/EstimateCost/Components/Item.cjs +34 -116
- package/dist/components/EstimateCost/Components/Item.d.ts +3 -2
- package/dist/components/EstimateCost/Components/Item.js +36 -116
- package/dist/components/EstimateCost/Components/LineThrough.cjs +6 -14
- package/dist/components/EstimateCost/Components/LineThrough.d.ts +3 -5
- package/dist/components/EstimateCost/Components/LineThrough.js +6 -12
- package/dist/components/EstimateCost/Components/NumberInput.cjs +2 -2
- package/dist/components/EstimateCost/Components/NumberInput.js +2 -2
- package/dist/components/EstimateCost/Components/Region.cjs +5 -14
- package/dist/components/EstimateCost/Components/Region.d.ts +2 -2
- package/dist/components/EstimateCost/Components/Region.js +5 -12
- package/dist/components/EstimateCost/Components/Regular.cjs +7 -21
- package/dist/components/EstimateCost/Components/Regular.d.ts +3 -2
- package/dist/components/EstimateCost/Components/Regular.js +7 -19
- package/dist/components/EstimateCost/Components/Strong.cjs +7 -21
- package/dist/components/EstimateCost/Components/Strong.d.ts +3 -10
- package/dist/components/EstimateCost/Components/Strong.js +8 -20
- package/dist/components/EstimateCost/Components/Unit.cjs +7 -24
- package/dist/components/EstimateCost/Components/Unit.d.ts +3 -1
- package/dist/components/EstimateCost/Components/Unit.js +7 -22
- package/dist/components/EstimateCost/Components/Zone.cjs +5 -14
- package/dist/components/EstimateCost/Components/Zone.d.ts +3 -1
- package/dist/components/EstimateCost/Components/Zone.js +5 -12
- package/dist/components/EstimateCost/Components/components.css.cjs +123 -0
- package/dist/components/EstimateCost/Components/components.css.d.ts +77 -0
- package/dist/components/EstimateCost/Components/components.css.js +123 -0
- package/dist/components/EstimateCost/EstimateCost.cjs +17 -21
- package/dist/components/EstimateCost/EstimateCost.d.ts +22 -22
- package/dist/components/EstimateCost/EstimateCost.js +17 -19
- package/dist/components/EstimateCost/EstimateCostContent.cjs +24 -74
- package/dist/components/EstimateCost/EstimateCostContent.d.ts +1 -1
- package/dist/components/EstimateCost/EstimateCostContent.js +25 -73
- package/dist/components/EstimateCost/OverlayComponent.cjs +13 -51
- package/dist/components/EstimateCost/OverlayComponent.js +14 -50
- package/dist/components/EstimateCost/constants.cjs +0 -4
- package/dist/components/EstimateCost/constants.js +0 -4
- package/dist/components/EstimateCost/styles.css.cjs +50 -0
- package/dist/components/EstimateCost/styles.css.d.ts +76 -0
- package/dist/components/EstimateCost/styles.css.js +50 -0
- package/dist/components/EstimateCost/types.d.ts +2 -1
- package/dist/components/FAQ/index.cjs +3 -2
- package/dist/components/FAQ/index.d.ts +3 -1
- package/dist/components/FAQ/index.js +3 -2
- package/dist/components/InfoTable/InfoTable.cjs +2 -1
- package/dist/components/InfoTable/InfoTable.d.ts +7 -4
- package/dist/components/InfoTable/InfoTable.js +2 -1
- package/dist/components/InfoTable/components/Cell.cjs +3 -2
- package/dist/components/InfoTable/components/Cell.d.ts +3 -2
- package/dist/components/InfoTable/components/Cell.js +3 -2
- package/dist/components/InfoTable/components/Row.cjs +8 -4
- package/dist/components/InfoTable/components/Row.d.ts +3 -2
- package/dist/components/InfoTable/components/Row.js +8 -4
- package/dist/components/Navigation/Footer.cjs +4 -19
- package/dist/components/Navigation/Footer.js +4 -17
- package/dist/components/Navigation/Header.cjs +2 -20
- package/dist/components/Navigation/Header.js +2 -18
- package/dist/components/Navigation/Navigation.d.ts +6 -3
- package/dist/components/Navigation/NavigationContent.cjs +13 -64
- package/dist/components/Navigation/NavigationContent.js +14 -63
- package/dist/components/Navigation/animations.css.d.ts +6 -0
- package/dist/components/Navigation/components/Group.cjs +10 -35
- package/dist/components/Navigation/components/Group.d.ts +3 -2
- package/dist/components/Navigation/components/Group.js +10 -33
- package/dist/components/Navigation/components/Item.cjs +86 -238
- package/dist/components/Navigation/components/Item.d.ts +3 -2
- package/dist/components/Navigation/components/Item.js +87 -237
- package/dist/components/Navigation/components/PinnedItems.cjs +11 -47
- package/dist/components/Navigation/components/PinnedItems.d.ts +3 -2
- package/dist/components/Navigation/components/PinnedItems.js +11 -45
- package/dist/components/Navigation/components/Separator.cjs +2 -12
- package/dist/components/Navigation/components/Separator.js +2 -10
- package/dist/components/Navigation/components/items.css.cjs +47 -0
- package/dist/components/Navigation/components/items.css.d.ts +70 -0
- package/dist/components/Navigation/components/items.css.js +47 -0
- package/dist/components/Navigation/components/styles.css.cjs +17 -0
- package/dist/components/Navigation/components/styles.css.d.ts +23 -0
- package/dist/components/Navigation/components/styles.css.js +17 -0
- package/dist/components/Navigation/constants.cjs +0 -27
- package/dist/components/Navigation/constants.d.ts +0 -12
- package/dist/components/Navigation/constants.js +1 -28
- package/dist/components/Navigation/styles.css.cjs +23 -0
- package/dist/components/Navigation/styles.css.d.ts +33 -0
- package/dist/components/Navigation/styles.css.js +23 -0
- package/dist/components/Navigation/types.d.ts +2 -1
- package/dist/components/Navigation/variables.css.cjs +4 -0
- package/dist/components/Navigation/variables.css.d.ts +1 -0
- package/dist/components/Navigation/variables.css.js +4 -0
- package/dist/components/OfferList/OfferList.cjs +2 -1
- package/dist/components/OfferList/OfferList.d.ts +6 -4
- package/dist/components/OfferList/OfferList.js +2 -1
- package/dist/components/OfferList/components/Cell.cjs +3 -2
- package/dist/components/OfferList/components/Cell.d.ts +1 -1
- package/dist/components/OfferList/components/Cell.js +3 -2
- package/dist/components/OfferList/components/Row.cjs +1 -1
- package/dist/components/OfferList/components/Row.d.ts +2 -1
- package/dist/components/OfferList/components/Row.js +2 -2
- package/dist/components/OfferList/styles.css.cjs +9 -5
- package/dist/components/OfferList/styles.css.d.ts +2 -0
- package/dist/components/OfferList/styles.css.js +10 -6
- package/dist/components/OrderSummary/NonScrollableContent.cjs +2 -14
- package/dist/components/OrderSummary/NonScrollableContent.js +2 -12
- package/dist/components/OrderSummary/ScrollableContent.cjs +5 -41
- package/dist/components/OrderSummary/ScrollableContent.js +5 -39
- package/dist/components/OrderSummary/helpers.cjs +4 -4
- package/dist/components/OrderSummary/helpers.js +4 -4
- package/dist/components/OrderSummary/index.cjs +6 -39
- package/dist/components/OrderSummary/index.d.ts +1 -1
- package/dist/components/OrderSummary/index.js +7 -38
- package/dist/components/OrderSummary/styles.css.cjs +19 -0
- package/dist/components/OrderSummary/styles.css.d.ts +8 -0
- package/dist/components/OrderSummary/styles.css.js +19 -0
- package/dist/components/OrderSummary/types.d.ts +2 -1
- package/dist/components/Plans/FeatureHint.cjs +2 -20
- package/dist/components/Plans/FeatureHint.js +2 -18
- package/dist/components/Plans/PlanHeader.cjs +6 -66
- package/dist/components/Plans/PlanHeader.js +6 -64
- package/dist/components/Plans/index.cjs +42 -92
- package/dist/components/Plans/index.d.ts +3 -1
- package/dist/components/Plans/index.js +46 -94
- package/dist/components/Plans/styles.css.cjs +26 -0
- package/dist/components/Plans/styles.css.d.ts +61 -0
- package/dist/components/Plans/styles.css.js +26 -0
- package/dist/components/SteppedListCard/Step.cjs +2 -33
- package/dist/components/SteppedListCard/Step.js +2 -31
- package/dist/components/SteppedListCard/SteppedListCard.cjs +3 -31
- package/dist/components/SteppedListCard/SteppedListCard.d.ts +2 -1
- package/dist/components/SteppedListCard/SteppedListCard.js +4 -30
- package/dist/components/SteppedListCard/SteppedListContent.cjs +6 -41
- package/dist/components/SteppedListCard/SteppedListContent.d.ts +3 -2
- package/dist/components/SteppedListCard/SteppedListContent.js +7 -40
- package/dist/components/SteppedListCard/styles.css.cjs +17 -0
- package/dist/components/SteppedListCard/styles.css.d.ts +7 -0
- package/dist/components/SteppedListCard/styles.css.js +17 -0
- package/dist/plus.css +1 -1
- package/package.json +7 -7
- package/dist/components/EstimateCost/componentStyle.cjs +0 -221
- package/dist/components/EstimateCost/componentStyle.d.ts +0 -106
- package/dist/components/EstimateCost/componentStyle.js +0 -219
|
@@ -7,15 +7,3 @@ export declare const NAVIGATION_MAX_WIDTH = 320;
|
|
|
7
7
|
* collapse and expand animation duration of the whole nav in ms
|
|
8
8
|
*/
|
|
9
9
|
export declare const ANIMATION_DURATION = 250;
|
|
10
|
-
export declare const shrinkHeight: {
|
|
11
|
-
name: string;
|
|
12
|
-
styles: string;
|
|
13
|
-
anim: 1;
|
|
14
|
-
toString: () => string;
|
|
15
|
-
} & string;
|
|
16
|
-
export declare const groupAnimation: {
|
|
17
|
-
name: string;
|
|
18
|
-
styles: string;
|
|
19
|
-
anim: 1;
|
|
20
|
-
toString: () => string;
|
|
21
|
-
} & string;
|
|
@@ -1,37 +1,10 @@
|
|
|
1
|
-
import { keyframes } from "@emotion/react";
|
|
2
1
|
const NAVIGATION_MIN_WIDTH = 220;
|
|
3
2
|
const NAVIGATION_WIDTH = 280;
|
|
4
3
|
const NAVIGATION_COLLASPED_WIDTH = 67;
|
|
5
|
-
const NAVIGATION_MAX_WIDTH = 320;
|
|
6
4
|
const ANIMATION_DURATION = 250;
|
|
7
|
-
const shrinkHeight = keyframes`
|
|
8
|
-
0% {
|
|
9
|
-
max-height: 50px; // this is on purpose higher than the actual height of the item
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
100% {
|
|
13
|
-
max-height: 32px;
|
|
14
|
-
}
|
|
15
|
-
`;
|
|
16
|
-
const groupAnimation = keyframes`
|
|
17
|
-
0% {
|
|
18
|
-
opacity: 0;
|
|
19
|
-
max-height: 0;
|
|
20
|
-
margin-bottom: -8px;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
100% {
|
|
24
|
-
opacity: 1;
|
|
25
|
-
max-height: 40px;
|
|
26
|
-
margin-bottom: 0;
|
|
27
|
-
}
|
|
28
|
-
`;
|
|
29
5
|
export {
|
|
30
6
|
ANIMATION_DURATION,
|
|
31
7
|
NAVIGATION_COLLASPED_WIDTH,
|
|
32
|
-
NAVIGATION_MAX_WIDTH,
|
|
33
8
|
NAVIGATION_MIN_WIDTH,
|
|
34
|
-
NAVIGATION_WIDTH
|
|
35
|
-
groupAnimation,
|
|
36
|
-
shrinkHeight
|
|
9
|
+
NAVIGATION_WIDTH
|
|
37
10
|
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
;/* empty css */
|
|
4
|
+
;/* empty css */
|
|
5
|
+
const createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
|
|
6
|
+
var navigationStickyFooter = createRuntimeFn.createRuntimeFn({ defaultClassName: "uv_plus_19x50fv0", variantClassNames: { overflow: { false: "uv_plus_19x50fv1" } }, defaultVariants: { overflow: false }, compoundVariants: [] });
|
|
7
|
+
var navigationHeader = "uv_plus_19x50fv2";
|
|
8
|
+
var navigationLogoContainer = "uv_plus_19x50fv3";
|
|
9
|
+
var navigation = "uv_plus_19x50fv4";
|
|
10
|
+
var navigationContainer = createRuntimeFn.createRuntimeFn({ defaultClassName: "uv_plus_19x50fv5", variantClassNames: { expanded: { false: "uv_plus_19x50fv6" }, animation: { collapse: "uv_plus_19x50fv7", expand: "uv_plus_19x50fv8", false: "uv_plus_19x50fv9" } }, defaultVariants: {}, compoundVariants: [[{ expanded: true, animation: false }, "uv_plus_19x50fva"]] });
|
|
11
|
+
var navigationContentContainer = "uv_plus_19x50fvb";
|
|
12
|
+
var navigationContentContainerCollapsed = "uv_plus_19x50fvc";
|
|
13
|
+
var navigationContent = "uv_plus_19x50fvd";
|
|
14
|
+
var navigationSlider = "uv_plus_19x50fve";
|
|
15
|
+
exports.navigation = navigation;
|
|
16
|
+
exports.navigationContainer = navigationContainer;
|
|
17
|
+
exports.navigationContent = navigationContent;
|
|
18
|
+
exports.navigationContentContainer = navigationContentContainer;
|
|
19
|
+
exports.navigationContentContainerCollapsed = navigationContentContainerCollapsed;
|
|
20
|
+
exports.navigationHeader = navigationHeader;
|
|
21
|
+
exports.navigationLogoContainer = navigationLogoContainer;
|
|
22
|
+
exports.navigationSlider = navigationSlider;
|
|
23
|
+
exports.navigationStickyFooter = navigationStickyFooter;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export declare const navigationStickyFooter: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
2
|
+
overflow: {
|
|
3
|
+
false: {
|
|
4
|
+
boxShadow: "none";
|
|
5
|
+
border: "none";
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
}>;
|
|
9
|
+
export declare const navigationHeader: string;
|
|
10
|
+
export declare const navigationLogoContainer: string;
|
|
11
|
+
export declare const navigation: string;
|
|
12
|
+
export declare const navigationContainer: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
13
|
+
expanded: {
|
|
14
|
+
false: {
|
|
15
|
+
width: "67px";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
animation: {
|
|
19
|
+
collapse: {
|
|
20
|
+
transition: "width 250ms ease-in-out";
|
|
21
|
+
width: "67px";
|
|
22
|
+
};
|
|
23
|
+
expand: {
|
|
24
|
+
transition: "width 250ms ease-in-out";
|
|
25
|
+
width: `var(--${string})`;
|
|
26
|
+
};
|
|
27
|
+
false: {};
|
|
28
|
+
};
|
|
29
|
+
}>;
|
|
30
|
+
export declare const navigationContentContainer: string;
|
|
31
|
+
export declare const navigationContentContainerCollapsed: string;
|
|
32
|
+
export declare const navigationContent: string;
|
|
33
|
+
export declare const navigationSlider: string;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
/* empty css */
|
|
3
|
+
import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
4
|
+
var navigationStickyFooter = createRuntimeFn({ defaultClassName: "uv_plus_19x50fv0", variantClassNames: { overflow: { false: "uv_plus_19x50fv1" } }, defaultVariants: { overflow: false }, compoundVariants: [] });
|
|
5
|
+
var navigationHeader = "uv_plus_19x50fv2";
|
|
6
|
+
var navigationLogoContainer = "uv_plus_19x50fv3";
|
|
7
|
+
var navigation = "uv_plus_19x50fv4";
|
|
8
|
+
var navigationContainer = createRuntimeFn({ defaultClassName: "uv_plus_19x50fv5", variantClassNames: { expanded: { false: "uv_plus_19x50fv6" }, animation: { collapse: "uv_plus_19x50fv7", expand: "uv_plus_19x50fv8", false: "uv_plus_19x50fv9" } }, defaultVariants: {}, compoundVariants: [[{ expanded: true, animation: false }, "uv_plus_19x50fva"]] });
|
|
9
|
+
var navigationContentContainer = "uv_plus_19x50fvb";
|
|
10
|
+
var navigationContentContainerCollapsed = "uv_plus_19x50fvc";
|
|
11
|
+
var navigationContent = "uv_plus_19x50fvd";
|
|
12
|
+
var navigationSlider = "uv_plus_19x50fve";
|
|
13
|
+
export {
|
|
14
|
+
navigation,
|
|
15
|
+
navigationContainer,
|
|
16
|
+
navigationContent,
|
|
17
|
+
navigationContentContainer,
|
|
18
|
+
navigationContentContainerCollapsed,
|
|
19
|
+
navigationHeader,
|
|
20
|
+
navigationLogoContainer,
|
|
21
|
+
navigationSlider,
|
|
22
|
+
navigationStickyFooter
|
|
23
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
1
|
+
import type { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
export type DragNDropData = {
|
|
3
3
|
index: number;
|
|
4
4
|
item: string;
|
|
@@ -37,4 +37,5 @@ export type NavigationProps = {
|
|
|
37
37
|
*/
|
|
38
38
|
onToggleExpand?: (expanded: boolean) => void;
|
|
39
39
|
'data-testid'?: string;
|
|
40
|
+
style?: CSSProperties;
|
|
40
41
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const widthNavigationContainer: `var(--${string})`;
|
|
@@ -18,6 +18,7 @@ const OfferList = ({
|
|
|
18
18
|
selected,
|
|
19
19
|
onChangeSelect,
|
|
20
20
|
className,
|
|
21
|
+
style,
|
|
21
22
|
"data-testid": dataTestId
|
|
22
23
|
}) => {
|
|
23
24
|
const [radioSelectedRow, setRadioSelectedRow] = react.useState(typeof selected === "string" ? selected : void 0);
|
|
@@ -37,7 +38,7 @@ const OfferList = ({
|
|
|
37
38
|
}
|
|
38
39
|
}
|
|
39
40
|
}, [type, selected]);
|
|
40
|
-
return /* @__PURE__ */ jsxRuntime.jsx(OfferListProvider.OfferListProvider, { autoCollapse, checkboxSelectedRows, expandable, loading, onChangeSelect, radioSelectedRow, selectable: type, setCheckboxSelectedRows, setRadioSelectedRow, children: /* @__PURE__ */ jsxRuntime.jsx(ui.List, { autoCollapse, className: `${className ? `${className} ` : ""}${styles_css.offerList}`, columns: computedColumns, "data-testid": dataTestId, expandable: false, selectable: false, children }) });
|
|
41
|
+
return /* @__PURE__ */ jsxRuntime.jsx(OfferListProvider.OfferListProvider, { autoCollapse, checkboxSelectedRows, expandable, loading, onChangeSelect, radioSelectedRow, selectable: type, setCheckboxSelectedRows, setRadioSelectedRow, children: /* @__PURE__ */ jsxRuntime.jsx(ui.List, { autoCollapse, className: `${className ? `${className} ` : ""}${styles_css.offerList}`, columns: computedColumns, "data-testid": dataTestId, expandable: false, selectable: false, style, children }) });
|
|
41
42
|
};
|
|
42
43
|
OfferList.Row = Row.Row;
|
|
43
44
|
OfferList.Cell = Cell.Cell;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { List } from '@ultraviolet/ui';
|
|
2
|
-
import type { ComponentProps } from 'react';
|
|
2
|
+
import type { ComponentProps, CSSProperties } from 'react';
|
|
3
3
|
type OfferListProps = Omit<ComponentProps<typeof List>, 'selectable' | 'onSelectedChange'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Make offerList selectable by choosing its type
|
|
@@ -12,9 +12,10 @@ type OfferListProps = Omit<ComponentProps<typeof List>, 'selectable' | 'onSelect
|
|
|
12
12
|
selected?: string | string[];
|
|
13
13
|
['data-testid']?: string;
|
|
14
14
|
className?: string;
|
|
15
|
+
style?: CSSProperties;
|
|
15
16
|
};
|
|
16
17
|
export declare const OfferList: {
|
|
17
|
-
({ expandable, type, columns, children, loading, autoCollapse, selected, onChangeSelect, className, "data-testid": dataTestId, }: OfferListProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
18
|
+
({ expandable, type, columns, children, loading, autoCollapse, selected, onChangeSelect, className, style, "data-testid": dataTestId, }: OfferListProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
18
19
|
Row: ({ children, disabled, id, banner, expandablePadding, offerName, expandable: expandableContent, selectDisabled, highlightAnimation, expanded, className, "data-dragging": dataDragging, "data-testid": dataTestId, style, badge, }: {
|
|
19
20
|
children: import("react").ReactNode;
|
|
20
21
|
id: string;
|
|
@@ -27,7 +28,7 @@ export declare const OfferList: {
|
|
|
27
28
|
expandablePadding?: "0" | "1" | "0.5" | "0.25" | "1.5" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10";
|
|
28
29
|
highlightAnimation?: boolean;
|
|
29
30
|
'data-testid'?: string;
|
|
30
|
-
style?:
|
|
31
|
+
style?: CSSProperties;
|
|
31
32
|
'data-dragging'?: boolean;
|
|
32
33
|
onMouseEnter?: import("react").MouseEventHandler<HTMLTableRowElement>;
|
|
33
34
|
onMouseLeave?: import("react").MouseEventHandler<HTMLTableRowElement>;
|
|
@@ -41,7 +42,8 @@ export declare const OfferList: {
|
|
|
41
42
|
text: string;
|
|
42
43
|
sentiment?: ComponentProps<typeof import("@ultraviolet/ui").Badge>["sentiment"];
|
|
43
44
|
};
|
|
45
|
+
style?: CSSProperties;
|
|
44
46
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
45
|
-
Cell: ({ children, className, "data-testid": dataTestId, colSpan, }: ComponentProps<typeof List.Cell>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
47
|
+
Cell: ({ children, className, "data-testid": dataTestId, colSpan, style, }: ComponentProps<typeof List.Cell>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
46
48
|
};
|
|
47
49
|
export {};
|
|
@@ -16,6 +16,7 @@ const OfferList = ({
|
|
|
16
16
|
selected,
|
|
17
17
|
onChangeSelect,
|
|
18
18
|
className,
|
|
19
|
+
style,
|
|
19
20
|
"data-testid": dataTestId
|
|
20
21
|
}) => {
|
|
21
22
|
const [radioSelectedRow, setRadioSelectedRow] = useState(typeof selected === "string" ? selected : void 0);
|
|
@@ -35,7 +36,7 @@ const OfferList = ({
|
|
|
35
36
|
}
|
|
36
37
|
}
|
|
37
38
|
}, [type, selected]);
|
|
38
|
-
return /* @__PURE__ */ jsx(OfferListProvider, { autoCollapse, checkboxSelectedRows, expandable, loading, onChangeSelect, radioSelectedRow, selectable: type, setCheckboxSelectedRows, setRadioSelectedRow, children: /* @__PURE__ */ jsx(List, { autoCollapse, className: `${className ? `${className} ` : ""}${offerList}`, columns: computedColumns, "data-testid": dataTestId, expandable: false, selectable: false, children }) });
|
|
39
|
+
return /* @__PURE__ */ jsx(OfferListProvider, { autoCollapse, checkboxSelectedRows, expandable, loading, onChangeSelect, radioSelectedRow, selectable: type, setCheckboxSelectedRows, setRadioSelectedRow, children: /* @__PURE__ */ jsx(List, { autoCollapse, className: `${className ? `${className} ` : ""}${offerList}`, columns: computedColumns, "data-testid": dataTestId, expandable: false, selectable: false, style, children }) });
|
|
39
40
|
};
|
|
40
41
|
OfferList.Row = Row;
|
|
41
42
|
OfferList.Cell = Cell;
|
|
@@ -9,11 +9,12 @@ const Cell = ({
|
|
|
9
9
|
children,
|
|
10
10
|
className,
|
|
11
11
|
"data-testid": dataTestId,
|
|
12
|
-
colSpan
|
|
12
|
+
colSpan,
|
|
13
|
+
style
|
|
13
14
|
}) => {
|
|
14
15
|
const {
|
|
15
16
|
loading
|
|
16
17
|
} = OfferListProvider.useOfferListContext();
|
|
17
|
-
return loading ? /* @__PURE__ */ jsxRuntime.jsx(ui.List.Cell, { className: styles_css.offerListLoadingCell, children: /* @__PURE__ */ jsxRuntime.jsx(ui.Skeleton, { "data-state": loading, variant: "line" }) }) : /* @__PURE__ */ jsxRuntime.jsx(ui.List.Cell, { className: `${className ? `${className} ` : ""}${styles_css.offerListCell}`, colSpan, "data-testid": dataTestId, children });
|
|
18
|
+
return loading ? /* @__PURE__ */ jsxRuntime.jsx(ui.List.Cell, { className: styles_css.offerListLoadingCell, style, children: /* @__PURE__ */ jsxRuntime.jsx(ui.Skeleton, { "data-state": loading, variant: "line" }) }) : /* @__PURE__ */ jsxRuntime.jsx(ui.List.Cell, { className: `${className ? `${className} ` : ""}${styles_css.offerListCell}`, colSpan, "data-testid": dataTestId, style, children });
|
|
18
19
|
};
|
|
19
20
|
exports.Cell = Cell;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { List } from '@ultraviolet/ui';
|
|
2
2
|
import type { ComponentProps } from 'react';
|
|
3
|
-
export declare const Cell: ({ children, className, "data-testid": dataTestId, colSpan, }: ComponentProps<typeof List.Cell>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const Cell: ({ children, className, "data-testid": dataTestId, colSpan, style, }: ComponentProps<typeof List.Cell>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -7,12 +7,13 @@ const Cell = ({
|
|
|
7
7
|
children,
|
|
8
8
|
className,
|
|
9
9
|
"data-testid": dataTestId,
|
|
10
|
-
colSpan
|
|
10
|
+
colSpan,
|
|
11
|
+
style
|
|
11
12
|
}) => {
|
|
12
13
|
const {
|
|
13
14
|
loading
|
|
14
15
|
} = useOfferListContext();
|
|
15
|
-
return loading ? /* @__PURE__ */ jsx(List.Cell, { className: offerListLoadingCell, children: /* @__PURE__ */ jsx(Skeleton, { "data-state": loading, variant: "line" }) }) : /* @__PURE__ */ jsx(List.Cell, { className: `${className ? `${className} ` : ""}${offerListCell}`, colSpan, "data-testid": dataTestId, children });
|
|
16
|
+
return loading ? /* @__PURE__ */ jsx(List.Cell, { className: offerListLoadingCell, style, children: /* @__PURE__ */ jsx(Skeleton, { "data-state": loading, variant: "line" }) }) : /* @__PURE__ */ jsx(List.Cell, { className: `${className ? `${className} ` : ""}${offerListCell}`, colSpan, "data-testid": dataTestId, style, children });
|
|
16
17
|
};
|
|
17
18
|
export {
|
|
18
19
|
Cell
|
|
@@ -76,7 +76,7 @@ const Row = ({
|
|
|
76
76
|
}, [offerName, checkboxSelectedRows, radioSelectedRow, selectable]);
|
|
77
77
|
const isSelected = selectable === "radio" ? radioSelectedRow === offerName : checkboxSelectedRows.includes(offerName);
|
|
78
78
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
79
|
-
/* @__PURE__ */ jsxRuntime.jsxs(ui.List.Row, { className: `${className ? `${className} ` : ""}${banner ? styles_css.offerListRowBanner : ""}${isSelected ? `${" "}${styles_css.offerListRowSelected}` : ""}`, "data-dragging": dataDragging, "data-testid": dataTestId, disabled, expandable: computedExpandableContent, expandablePadding: banner ? "0" : void 0, expanded: expanded ?? expandedRowIds[id], highlightAnimation, id, onMouseEnter: () => setHovered(true), onMouseLeave: () => setHovered(false), style, children: [
|
|
79
|
+
/* @__PURE__ */ jsxRuntime.jsxs(ui.List.Row, { className: `${className ? `${className} ` : ""}${banner ? styles_css.offerListRowBanner : ""}${isSelected ? `${" "}${styles_css.offerListRowSelected}` : ""} ${expandable ? styles_css.offerListRowSelectedExpandable : styles_css.offerListRowSelectedNotExpandable}`, "data-dragging": dataDragging, "data-testid": dataTestId, disabled, expandable: computedExpandableContent, expandablePadding: banner ? "0" : void 0, expanded: expanded ?? expandedRowIds[id], highlightAnimation, id, onMouseEnter: () => setHovered(true), onMouseLeave: () => setHovered(false), style, children: [
|
|
80
80
|
/* @__PURE__ */ jsxRuntime.jsxs(ui.List.Cell, { className: styles_css.offerListNoPaddingCell, children: [
|
|
81
81
|
badge ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles_css.offerListBadgeContainer, children: /* @__PURE__ */ jsxRuntime.jsx(ui.Badge, { className: styles_css.offerListBadge, disabled, sentiment: badge.sentiment, size: "small", children: badge.text }) }) : null,
|
|
82
82
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles_css.offerListRowSelectableContainer, children: /* @__PURE__ */ jsxRuntime.jsx(ui.Tooltip, { text: typeof selectDisabled === "string" ? selectDisabled : void 0, children: selectable === "radio" ? /* @__PURE__ */ jsxRuntime.jsx(ui.Radio, { checked: isRowSelected, disabled: disabled || loading || !!selectDisabled, id, name: `radio-offer-list-${id}`, onChange: () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Badge as BadgeUV, List } from '@ultraviolet/ui';
|
|
2
|
-
import type { ComponentProps, ReactNode } from 'react';
|
|
2
|
+
import type { ComponentProps, CSSProperties, ReactNode } from 'react';
|
|
3
3
|
type RowProps = ComponentProps<typeof List.Row> & {
|
|
4
4
|
banner?: {
|
|
5
5
|
text: ReactNode;
|
|
@@ -10,6 +10,7 @@ type RowProps = ComponentProps<typeof List.Row> & {
|
|
|
10
10
|
text: string;
|
|
11
11
|
sentiment?: ComponentProps<typeof BadgeUV>['sentiment'];
|
|
12
12
|
};
|
|
13
|
+
style?: CSSProperties;
|
|
13
14
|
};
|
|
14
15
|
export declare const Row: ({ children, disabled, id, banner, expandablePadding, offerName, expandable: expandableContent, selectDisabled, highlightAnimation, expanded, className, "data-dragging": dataDragging, "data-testid": dataTestId, style, badge, }: RowProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
15
16
|
export {};
|
|
@@ -6,7 +6,7 @@ import { List, Badge, Tooltip, Radio, Checkbox, Button } from "@ultraviolet/ui";
|
|
|
6
6
|
import { assignInlineVars } from "@vanilla-extract/dynamic";
|
|
7
7
|
import { useState, Children, useCallback, useMemo } from "react";
|
|
8
8
|
import { useOfferListContext } from "../OfferListProvider.js";
|
|
9
|
-
import { offerListRowExpandable, expandablePadding, offerListRowBanner, offerListRowSelected, offerListNoPaddingCell, offerListBadgeContainer, offerListBadge, offerListRowSelectableContainer } from "../styles.css.js";
|
|
9
|
+
import { offerListRowExpandable, expandablePadding, offerListRowBanner, offerListRowSelected, offerListRowSelectedExpandable, offerListRowSelectedNotExpandable, offerListNoPaddingCell, offerListBadgeContainer, offerListBadge, offerListRowSelectableContainer } from "../styles.css.js";
|
|
10
10
|
import { Banner } from "./Banner.js";
|
|
11
11
|
const Row = ({
|
|
12
12
|
children,
|
|
@@ -74,7 +74,7 @@ const Row = ({
|
|
|
74
74
|
}, [offerName, checkboxSelectedRows, radioSelectedRow, selectable]);
|
|
75
75
|
const isSelected = selectable === "radio" ? radioSelectedRow === offerName : checkboxSelectedRows.includes(offerName);
|
|
76
76
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
77
|
-
/* @__PURE__ */ jsxs(List.Row, { className: `${className ? `${className} ` : ""}${banner ? offerListRowBanner : ""}${isSelected ? `${" "}${offerListRowSelected}` : ""}`, "data-dragging": dataDragging, "data-testid": dataTestId, disabled, expandable: computedExpandableContent, expandablePadding: banner ? "0" : void 0, expanded: expanded ?? expandedRowIds[id], highlightAnimation, id, onMouseEnter: () => setHovered(true), onMouseLeave: () => setHovered(false), style, children: [
|
|
77
|
+
/* @__PURE__ */ jsxs(List.Row, { className: `${className ? `${className} ` : ""}${banner ? offerListRowBanner : ""}${isSelected ? `${" "}${offerListRowSelected}` : ""} ${expandable ? offerListRowSelectedExpandable : offerListRowSelectedNotExpandable}`, "data-dragging": dataDragging, "data-testid": dataTestId, disabled, expandable: computedExpandableContent, expandablePadding: banner ? "0" : void 0, expanded: expanded ?? expandedRowIds[id], highlightAnimation, id, onMouseEnter: () => setHovered(true), onMouseLeave: () => setHovered(false), style, children: [
|
|
78
78
|
/* @__PURE__ */ jsxs(List.Cell, { className: offerListNoPaddingCell, children: [
|
|
79
79
|
badge ? /* @__PURE__ */ jsx("div", { className: offerListBadgeContainer, children: /* @__PURE__ */ jsx(Badge, { className: offerListBadge, disabled, sentiment: badge.sentiment, size: "small", children: badge.text }) }) : null,
|
|
80
80
|
/* @__PURE__ */ jsx("div", { className: offerListRowSelectableContainer, children: /* @__PURE__ */ jsx(Tooltip, { text: typeof selectDisabled === "string" ? selectDisabled : void 0, children: selectable === "radio" ? /* @__PURE__ */ jsx(Radio, { checked: isRowSelected, disabled: disabled || loading || !!selectDisabled, id, name: `radio-offer-list-${id}`, onChange: () => {
|
|
@@ -12,11 +12,13 @@ var offerListBadge = "uv_plus_1wcpahp12";
|
|
|
12
12
|
var offerListBadgeContainer = "uv_plus_1wcpahp13";
|
|
13
13
|
var offerListNoPaddingCell = "uv_plus_1wcpahp14";
|
|
14
14
|
var offerListRowSelected = "uv_plus_1wcpahp15";
|
|
15
|
-
var
|
|
16
|
-
var
|
|
17
|
-
var
|
|
18
|
-
var
|
|
19
|
-
var
|
|
15
|
+
var offerListRowSelectedNotExpandable = "uv_plus_1wcpahp16";
|
|
16
|
+
var offerListRowSelectedExpandable = "uv_plus_1wcpahp17";
|
|
17
|
+
var offerListRowBanner = "uv_plus_1wcpahp18";
|
|
18
|
+
var offerListRowSelectableContainer = "uv_plus_1wcpahp19";
|
|
19
|
+
var offerListRowExpandable = "uv_plus_1wcpahp1a";
|
|
20
|
+
var offerListCell = "uv_plus_1wcpahp1b";
|
|
21
|
+
var offerListLoadingCell = "uv_plus_1wcpahp1c";
|
|
20
22
|
exports.expandablePadding = expandablePadding;
|
|
21
23
|
exports.offerList = offerList;
|
|
22
24
|
exports.offerListBadge = offerListBadge;
|
|
@@ -32,3 +34,5 @@ exports.offerListRowBanner = offerListRowBanner;
|
|
|
32
34
|
exports.offerListRowExpandable = offerListRowExpandable;
|
|
33
35
|
exports.offerListRowSelectableContainer = offerListRowSelectableContainer;
|
|
34
36
|
exports.offerListRowSelected = offerListRowSelected;
|
|
37
|
+
exports.offerListRowSelectedExpandable = offerListRowSelectedExpandable;
|
|
38
|
+
exports.offerListRowSelectedNotExpandable = offerListRowSelectedNotExpandable;
|
|
@@ -33,6 +33,8 @@ export declare const offerListBadge: string;
|
|
|
33
33
|
export declare const offerListBadgeContainer: string;
|
|
34
34
|
export declare const offerListNoPaddingCell: string;
|
|
35
35
|
export declare const offerListRowSelected: string;
|
|
36
|
+
export declare const offerListRowSelectedNotExpandable: string;
|
|
37
|
+
export declare const offerListRowSelectedExpandable: string;
|
|
36
38
|
export declare const offerListRowBanner: string;
|
|
37
39
|
export declare const offerListRowSelectableContainer: string;
|
|
38
40
|
export declare const offerListRowExpandable: string;
|
|
@@ -10,11 +10,13 @@ var offerListBadge = "uv_plus_1wcpahp12";
|
|
|
10
10
|
var offerListBadgeContainer = "uv_plus_1wcpahp13";
|
|
11
11
|
var offerListNoPaddingCell = "uv_plus_1wcpahp14";
|
|
12
12
|
var offerListRowSelected = "uv_plus_1wcpahp15";
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var
|
|
16
|
-
var
|
|
17
|
-
var
|
|
13
|
+
var offerListRowSelectedNotExpandable = "uv_plus_1wcpahp16";
|
|
14
|
+
var offerListRowSelectedExpandable = "uv_plus_1wcpahp17";
|
|
15
|
+
var offerListRowBanner = "uv_plus_1wcpahp18";
|
|
16
|
+
var offerListRowSelectableContainer = "uv_plus_1wcpahp19";
|
|
17
|
+
var offerListRowExpandable = "uv_plus_1wcpahp1a";
|
|
18
|
+
var offerListCell = "uv_plus_1wcpahp1b";
|
|
19
|
+
var offerListLoadingCell = "uv_plus_1wcpahp1c";
|
|
18
20
|
export {
|
|
19
21
|
expandablePadding,
|
|
20
22
|
offerList,
|
|
@@ -30,5 +32,7 @@ export {
|
|
|
30
32
|
offerListRowBanner,
|
|
31
33
|
offerListRowExpandable,
|
|
32
34
|
offerListRowSelectableContainer,
|
|
33
|
-
offerListRowSelected
|
|
35
|
+
offerListRowSelected,
|
|
36
|
+
offerListRowSelectedExpandable,
|
|
37
|
+
offerListRowSelectedNotExpandable
|
|
34
38
|
};
|
|
@@ -1,23 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
4
|
-
const _styled = require("@emotion/styled/base");
|
|
5
4
|
const ui = require("@ultraviolet/ui");
|
|
6
5
|
const react = require("react");
|
|
7
6
|
const helpers = require("./helpers.cjs");
|
|
8
7
|
const Provider = require("./Provider.cjs");
|
|
9
|
-
const
|
|
10
|
-
const _styled__default = /* @__PURE__ */ _interopDefaultCompat(_styled);
|
|
11
|
-
const NonScrollableContainer = /* @__PURE__ */ _styled__default.default(ui.Stack, process.env.NODE_ENV === "production" ? {
|
|
12
|
-
target: "euzwl2c0"
|
|
13
|
-
} : {
|
|
14
|
-
target: "euzwl2c0",
|
|
15
|
-
label: "NonScrollableContainer"
|
|
16
|
-
})("padding:", ({
|
|
17
|
-
theme
|
|
18
|
-
}) => theme.space[3], ";border-top:1px solid ", ({
|
|
19
|
-
theme
|
|
20
|
-
}) => theme.colors.neutral.border, ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0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udD1cIm5ldXRyYWxcIlxuICAgICAgICAgICAgICAgIHZhcmlhbnQ9XCJib2R5U3Ryb25nXCJcbiAgICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgIHtsb2NhbGVzWydvcmRlci5zdW1tYXJ5LnRvdGFsJ119OlxuICAgICAgICAgICAgICA8L1RleHQ+XG4gICAgICAgICAgICAgIHt0b3RhbFByaWNlRGVzY3JpcHRpb259XG4gICAgICAgICAgICA8L1N0YWNrPlxuICAgICAgICAgICAge3RvdGFsUHJpY2VJbmZvfVxuICAgICAgICAgIDwvU3RhY2s+XG4gICAgICAgICkgOiAoXG4gICAgICAgICAgPFN0YWNrIGFsaWduSXRlbXM9XCJjZW50ZXJcIiBkaXJlY3Rpb249XCJyb3dcIiBnYXA9ezF9PlxuICAgICAgICAgICAgPFRleHRcbiAgICAgICAgICAgICAgYXM9XCJzcGFuXCJcbiAgICAgICAgICAgICAgcHJvbWluZW5jZT1cInN0cm9uZ1wiXG4gICAgICAgICAgICAgIHNlbnRpbWVudD1cIm5ldXRyYWxcIlxuICAgICAgICAgICAgICB2YXJpYW50PVwiYm9keVN0cm9uZ1wiXG4gICAgICAgICAgICA+XG4gICAgICAgICAgICAgIHtsb2NhbGVzWydvcmRlci5zdW1tYXJ5LnRvdGFsJ119XG4gICAgICAgICAgICAgIHthZGRpdGlvbmFsSW5mbyA/IGAgJHthZGRpdGlvbmFsSW5mb31gIDogbnVsbH06XG4gICAgICAgICAgICA8L1RleHQ+XG4gICAgICAgICAgICB7dG90YWxQcmljZURlc2NyaXB0aW9ufVxuICAgICAgICAgIDwvU3RhY2s+XG4gICAgICAgICl9XG4gICAgICAgIHt0b3RhbFByaWNlLnRvdGFsUHJpY2UgPT09IHRvdGFsUHJpY2UudG90YWxQcmljZVdpdGhEaXNjb3VudCA/IChcbiAgICAgICAgICA8VGV4dFxuICAgICAgICAgICAgYXM9XCJzcGFuXCJcbiAgICAgICAgICAgIGRhdGEtdGVzdGlkPVwidG90YWwtcHJpY2VcIlxuICAgICAgICAgICAgcHJvbWluZW5jZT1cInN0cm9uZ1wiXG4gICAgICAgICAgICBzZW50aW1lbnQ9XCJuZXV0cmFsXCJcbiAgICAgICAgICAgIHZhcmlhbnQ9XCJoZWFkaW5nU21hbGxTdHJvbmdcIlxuICAgICAgICAgID5cbiAgICAgICAgICAgIDxEaXNwbGF5UHJpY2UgYmVmb3JlT3JBZnRlcj1cImFmdGVyXCIgcHJpY2U9e3RvdGFsUHJpY2V9IC8+XG4gICAgICAgICAgICB7aGlkZURldGFpbHMgPyBgLyR7dW5pdH1gIDogbnVsbH1cbiAgICAgICAgICA8L1RleHQ+XG4gICAgICAgICkgOiAoXG4gICAgICAgICAgPFN0YWNrIGFsaWduSXRlbXM9XCJjZW50ZXJcIiBkaXJlY3Rpb249XCJyb3dcIiBnYXA9ezF9PlxuICAgICAgICAgICAgPFRleHRcbiAgICAgICAgICAgICAgYXM9XCJzcGFuXCJcbiAgICAgICAgICAgICAgcHJvbWluZW5jZT1cIndlYWtcIlxuICAgICAgICAgICAgICBzZW50aW1lbnQ9XCJuZXV0cmFsXCJcbiAgICAgICAgICAgICAgc3RyaWtlVGhyb3VnaFxuICAgICAgICAgICAgICB2YXJpYW50PVwiYm9keVNtYWxsU3Ryb25nXCJcbiAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgPERpc3BsYXlQcmljZSBiZWZvcmVPckFmdGVyPVwiYmVmb3JlXCIgcHJpY2U9e3RvdGFsUHJpY2V9IC8+XG4gICAgICAgICAgICA8L1RleHQ+XG4gICAgICAgICAgICA8VGV4dFxuICAgICAgICAgICAgICBhcz1cInNwYW5cIlxuICAgICAgICAgICAgICBkYXRhLXRlc3RpZD1cInRvdGFsLXByaWNlXCJcbiAgICAgICAgICAgICAgcHJvbWluZW5jZT1cInN0cm9uZ1wiXG4gICAgICAgICAgICAgIHNlbnRpbWVudD1cIm5ldXRyYWxcIlxuICAgICAgICAgICAgICB2YXJpYW50PVwiaGVhZGluZ1NtYWxsU3Ryb25nXCJcbiAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgPERpc3BsYXlQcmljZSBiZWZvcmVPckFmdGVyPVwiYWZ0ZXJcIiBwcmljZT17dG90YWxQcmljZX0gLz5cbiAgICAgICAgICAgICAge2hpZGVEZXRhaWxzID8gYC8ke3VuaXR9YCA6IG51bGx9XG4gICAgICAgICAgICA8L1RleHQ+XG4gICAgICAgICAgPC9TdGFjaz5cbiAgICAgICAgKX1cbiAgICAgIDwvU3RhY2s+XG4gICAgICB7Zm9vdGVyfVxuICAgIDwvTm9uU2Nyb2xsYWJsZUNvbnRhaW5lcj5cbiAgKVxufVxuIl19 */"));
|
|
8
|
+
const styles_css = require("./styles.css.cjs");
|
|
21
9
|
const NonScrollableContent = ({
|
|
22
10
|
totalPrice,
|
|
23
11
|
footer,
|
|
@@ -31,7 +19,7 @@ const NonScrollableContent = ({
|
|
|
31
19
|
const {
|
|
32
20
|
locales
|
|
33
21
|
} = react.useContext(Provider.OrderSummaryContext);
|
|
34
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
22
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(ui.Stack, { className: styles_css.orderSummaryNonScrollableContainer, gap: 3, children: [
|
|
35
23
|
children,
|
|
36
24
|
/* @__PURE__ */ jsxRuntime.jsxs(ui.Stack, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
37
25
|
totalPriceInfo ? /* @__PURE__ */ jsxRuntime.jsxs(ui.Stack, { children: [
|
|
@@ -1,19 +1,9 @@
|
|
|
1
1
|
import { jsxs, jsx } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import _styled from "@emotion/styled/base";
|
|
3
2
|
import { Stack, Text } from "@ultraviolet/ui";
|
|
4
3
|
import { useContext } from "react";
|
|
5
4
|
import { DisplayPrice } from "./helpers.js";
|
|
6
5
|
import { OrderSummaryContext } from "./Provider.js";
|
|
7
|
-
|
|
8
|
-
target: "euzwl2c0"
|
|
9
|
-
} : {
|
|
10
|
-
target: "euzwl2c0",
|
|
11
|
-
label: "NonScrollableContainer"
|
|
12
|
-
})("padding:", ({
|
|
13
|
-
theme
|
|
14
|
-
}) => theme.space[3], ";border-top:1px solid ", ({
|
|
15
|
-
theme
|
|
16
|
-
}) => theme.colors.neutral.border, ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3BsdXMvc3JjL2NvbXBvbmVudHMvT3JkZXJTdW1tYXJ5L05vblNjcm9sbGFibGVDb250ZW50LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFRNEMiLCJmaWxlIjoiL2hvbWUvcnVubmVyL3dvcmsvdWx0cmF2aW9sZXQvdWx0cmF2aW9sZXQvcGFja2FnZXMvcGx1cy9zcmMvY29tcG9uZW50cy9PcmRlclN1bW1hcnkvTm9uU2Nyb2xsYWJsZUNvbnRlbnQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnXG5pbXBvcnQgeyBTdGFjaywgVGV4dCB9IGZyb20gJ0B1bHRyYXZpb2xldC91aSdcbmltcG9ydCB0eXBlIHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnXG5pbXBvcnQgeyB1c2VDb250ZXh0IH0gZnJvbSAncmVhY3QnXG5pbXBvcnQgeyBEaXNwbGF5UHJpY2UgfSBmcm9tICcuL2hlbHBlcnMnXG5pbXBvcnQgeyBPcmRlclN1bW1hcnlDb250ZXh0IH0gZnJvbSAnLi9Qcm92aWRlcidcbmltcG9ydCB0eXBlIHsgUHJpY2VUeXBlU2luZ2xlLCBUaW1lVW5pdCB9IGZyb20gJy4vdHlwZXMnXG5cbmNvbnN0IE5vblNjcm9sbGFibGVDb250YWluZXIg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ldHdlZW5cIj5cbiAgICAgICAge3RvdGFsUHJpY2VJbmZvID8gKFxuICAgICAgICAgIDxTdGFjaz5cbiAgICAgICAgICAgIDxTdGFjayBhbGlnbkl0ZW1zPVwiY2VudGVyXCIgZGlyZWN0aW9uPVwicm93XCIgZ2FwPXsxfT5cbiAgICAgICAgICAgICAgPFRleHRcbiAgICAgICAgICAgICAgICBhcz1cInNwYW5cIlxuICAgICAgICAgICAgICAgIHByb21pbmVuY2U9XCJzdHJvbmdcIlxuICAgICAgICAgICAgICAgIHNlbnRpbWVudD1cIm5ldXRyYWxcIlxuICAgICAgICAgICAgICAgIHZhcmlhbnQ9XCJib2R5U3Ryb25nXCJcbiAgICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgIHtsb2NhbGVzWydvcmRlci5zdW1tYXJ5LnRvdGFsJ119OlxuICAgICAgICAgICAgICA8L1RleHQ+XG4gICAgICAgICAgICAgIHt0b3RhbFByaWNlRGVzY3JpcHRpb259XG4gICAgICAgICAgICA8L1N0YWNrPlxuICAgICAgICAgICAge3RvdGFsUHJpY2VJbmZvfVxuICAgICAgICAgIDwvU3RhY2s+XG4gICAgICAgICkgOiAoXG4gICAgICAgICAgPFN0YWNrIGFsaWduSXRlbXM9XCJjZW50ZXJcIiBkaXJlY3Rpb249XCJyb3dcIiBnYXA9ezF9PlxuICAgICAgICAgICAgPFRleHRcbiAgICAgICAgICAgICAgYXM9XCJzcGFuXCJcbiAgICAgICAgICAgICAgcHJvbWluZW5jZT1cInN0cm9uZ1wiXG4gICAgICAgICAgICAgIHNlbnRpbWVudD1cIm5ldXRyYWxcIlxuICAgICAgICAgICAgICB2YXJpYW50PVwiYm9keVN0cm9uZ1wiXG4gICAgICAgICAgICA+XG4gICAgICAgICAgICAgIHtsb2NhbGVzWydvcmRlci5zdW1tYXJ5LnRvdGFsJ119XG4gICAgICAgICAgICAgIHthZGRpdGlvbmFsSW5mbyA/IGAgJHthZGRpdGlvbmFsSW5mb31gIDogbnVsbH06XG4gICAgICAgICAgICA8L1RleHQ+XG4gICAgICAgICAgICB7dG90YWxQcmljZURlc2NyaXB0aW9ufVxuICAgICAgICAgIDwvU3RhY2s+XG4gICAgICAgICl9XG4gICAgICAgIHt0b3RhbFByaWNlLnRvdGFsUHJpY2UgPT09IHRvdGFsUHJpY2UudG90YWxQcmljZVdpdGhEaXNjb3VudCA/IChcbiAgICAgICAgICA8VGV4dFxuICAgICAgICAgICAgYXM9XCJzcGFuXCJcbiAgICAgICAgICAgIGRhdGEtdGVzdGlkPVwidG90YWwtcHJpY2VcIlxuICAgICAgICAgICAgcHJvbWluZW5jZT1cInN0cm9uZ1wiXG4gICAgICAgICAgICBzZW50aW1lbnQ9XCJuZXV0cmFsXCJcbiAgICAgICAgICAgIHZhcmlhbnQ9XCJoZWFkaW5nU21hbGxTdHJvbmdcIlxuICAgICAgICAgID5cbiAgICAgICAgICAgIDxEaXNwbGF5UHJpY2UgYmVmb3JlT3JBZnRlcj1cImFmdGVyXCIgcHJpY2U9e3RvdGFsUHJpY2V9IC8+XG4gICAgICAgICAgICB7aGlkZURldGFpbHMgPyBgLyR7dW5pdH1gIDogbnVsbH1cbiAgICAgICAgICA8L1RleHQ+XG4gICAgICAgICkgOiAoXG4gICAgICAgICAgPFN0YWNrIGFsaWduSXRlbXM9XCJjZW50ZXJcIiBkaXJlY3Rpb249XCJyb3dcIiBnYXA9ezF9PlxuICAgICAgICAgICAgPFRleHRcbiAgICAgICAgICAgICAgYXM9XCJzcGFuXCJcbiAgICAgICAgICAgICAgcHJvbWluZW5jZT1cIndlYWtcIlxuICAgICAgICAgICAgICBzZW50aW1lbnQ9XCJuZXV0cmFsXCJcbiAgICAgICAgICAgICAgc3RyaWtlVGhyb3VnaFxuICAgICAgICAgICAgICB2YXJpYW50PVwiYm9keVNtYWxsU3Ryb25nXCJcbiAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgPERpc3BsYXlQcmljZSBiZWZvcmVPckFmdGVyPVwiYmVmb3JlXCIgcHJpY2U9e3RvdGFsUHJpY2V9IC8+XG4gICAgICAgICAgICA8L1RleHQ+XG4gICAgICAgICAgICA8VGV4dFxuICAgICAgICAgICAgICBhcz1cInNwYW5cIlxuICAgICAgICAgICAgICBkYXRhLXRlc3RpZD1cInRvdGFsLXByaWNlXCJcbiAgICAgICAgICAgICAgcHJvbWluZW5jZT1cInN0cm9uZ1wiXG4gICAgICAgICAgICAgIHNlbnRpbWVudD1cIm5ldXRyYWxcIlxuICAgICAgICAgICAgICB2YXJpYW50PVwiaGVhZGluZ1NtYWxsU3Ryb25nXCJcbiAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgPERpc3BsYXlQcmljZSBiZWZvcmVPckFmdGVyPVwiYWZ0ZXJcIiBwcmljZT17dG90YWxQcmljZX0gLz5cbiAgICAgICAgICAgICAge2hpZGVEZXRhaWxzID8gYC8ke3VuaXR9YCA6IG51bGx9XG4gICAgICAgICAgICA8L1RleHQ+XG4gICAgICAgICAgPC9TdGFjaz5cbiAgICAgICAgKX1cbiAgICAgIDwvU3RhY2s+XG4gICAgICB7Zm9vdGVyfVxuICAgIDwvTm9uU2Nyb2xsYWJsZUNvbnRhaW5lcj5cbiAgKVxufVxuIl19 */"));
|
|
6
|
+
import { orderSummaryNonScrollableContainer } from "./styles.css.js";
|
|
17
7
|
const NonScrollableContent = ({
|
|
18
8
|
totalPrice,
|
|
19
9
|
footer,
|
|
@@ -27,7 +17,7 @@ const NonScrollableContent = ({
|
|
|
27
17
|
const {
|
|
28
18
|
locales
|
|
29
19
|
} = useContext(OrderSummaryContext);
|
|
30
|
-
return /* @__PURE__ */ jsxs(
|
|
20
|
+
return /* @__PURE__ */ jsxs(Stack, { className: orderSummaryNonScrollableContainer, gap: 3, children: [
|
|
31
21
|
children,
|
|
32
22
|
/* @__PURE__ */ jsxs(Stack, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
33
23
|
totalPriceInfo ? /* @__PURE__ */ jsxs(Stack, { children: [
|