@ultraviolet/plus 3.4.5 → 3.5.0
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/.vite/license.md +3 -0
- package/dist/_virtual/_@oxc-project_runtime@0.113.0/helpers/defineProperty.js +15 -0
- package/dist/_virtual/_@oxc-project_runtime@0.113.0/helpers/objectSpread2.js +28 -0
- package/dist/_virtual/_@oxc-project_runtime@0.113.0/helpers/objectWithoutProperties.js +18 -0
- package/dist/_virtual/_@oxc-project_runtime@0.113.0/helpers/objectWithoutPropertiesLoose.js +15 -0
- package/dist/_virtual/_@oxc-project_runtime@0.113.0/helpers/toPrimitive.js +17 -0
- package/dist/_virtual/_@oxc-project_runtime@0.113.0/helpers/toPropertyKey.js +12 -0
- package/dist/_virtual/_@oxc-project_runtime@0.113.0/helpers/typeof.js +14 -0
- package/dist/_virtual/_rolldown/runtime.js +9 -0
- package/dist/components/CodeEditor/CodeEditor.d.ts +1 -1
- package/dist/components/CodeEditor/CodeEditor.d.ts.map +1 -1
- package/dist/components/CodeEditor/CodeEditor.js +111 -137
- package/dist/components/CodeEditor/styles.css.js +18 -15
- package/dist/components/ContentCard/Skeleton.d.ts.map +1 -1
- package/dist/components/ContentCard/Skeleton.js +31 -27
- package/dist/components/ContentCard/index.js +107 -140
- package/dist/components/ContentCard/styles.css.d.ts +1 -1
- package/dist/components/ContentCard/styles.css.js +24 -19
- package/dist/components/ContentCardGroup/Card.js +55 -69
- package/dist/components/ContentCardGroup/SkeletonCard.js +28 -14
- package/dist/components/ContentCardGroup/index.d.ts +7 -7
- package/dist/components/ContentCardGroup/index.js +20 -25
- package/dist/components/ContentCardGroup/styles.css.js +6 -11
- package/dist/components/Conversation/index.d.ts +29 -23
- package/dist/components/Conversation/index.d.ts.map +1 -1
- package/dist/components/Conversation/index.js +46 -48
- package/dist/components/Conversation/styles.css.js +18 -13
- package/dist/components/CustomerSatisfaction/assets/1-5.js +5 -0
- package/dist/components/CustomerSatisfaction/assets/1-5NB.js +5 -0
- package/dist/components/CustomerSatisfaction/assets/2-5.js +5 -0
- package/dist/components/CustomerSatisfaction/assets/2-5NB.js +5 -0
- package/dist/components/CustomerSatisfaction/assets/3-5.js +5 -0
- package/dist/components/CustomerSatisfaction/assets/3-5NB.js +5 -0
- package/dist/components/CustomerSatisfaction/assets/4-5.js +5 -0
- package/dist/components/CustomerSatisfaction/assets/4-5NB.js +5 -0
- package/dist/components/CustomerSatisfaction/assets/5-5.js +5 -0
- package/dist/components/CustomerSatisfaction/assets/5-5NB.js +5 -0
- package/dist/components/CustomerSatisfaction/index.d.ts +1 -1
- package/dist/components/CustomerSatisfaction/index.d.ts.map +1 -1
- package/dist/components/CustomerSatisfaction/index.js +85 -100
- package/dist/components/CustomerSatisfaction/styles.css.js +18 -6
- package/dist/components/EstimateCost/Components/CustomUnitInput.d.ts.map +1 -1
- package/dist/components/EstimateCost/Components/CustomUnitInput.js +39 -52
- package/dist/components/EstimateCost/Components/Item.d.ts.map +1 -1
- package/dist/components/EstimateCost/Components/Item.js +223 -323
- package/dist/components/EstimateCost/Components/LineThrough.d.ts.map +1 -1
- package/dist/components/EstimateCost/Components/LineThrough.js +16 -16
- package/dist/components/EstimateCost/Components/NumberInput.d.ts.map +1 -1
- package/dist/components/EstimateCost/Components/NumberInput.js +33 -37
- package/dist/components/EstimateCost/Components/Region.d.ts.map +1 -1
- package/dist/components/EstimateCost/Components/Region.js +34 -57
- package/dist/components/EstimateCost/Components/Regular.d.ts.map +1 -1
- package/dist/components/EstimateCost/Components/Regular.js +21 -26
- package/dist/components/EstimateCost/Components/Strong.d.ts.map +1 -1
- package/dist/components/EstimateCost/Components/Strong.js +14 -19
- package/dist/components/EstimateCost/Components/Unit.d.ts.map +1 -1
- package/dist/components/EstimateCost/Components/Unit.js +47 -40
- package/dist/components/EstimateCost/Components/Zone.d.ts.map +1 -1
- package/dist/components/EstimateCost/Components/Zone.js +33 -55
- package/dist/components/EstimateCost/Components/components.css.js +122 -86
- package/dist/components/EstimateCost/EstimateCost.d.ts +138 -121
- package/dist/components/EstimateCost/EstimateCost.d.ts.map +1 -1
- package/dist/components/EstimateCost/EstimateCost.js +79 -124
- package/dist/components/EstimateCost/EstimateCostContent.d.ts.map +1 -1
- package/dist/components/EstimateCost/EstimateCostContent.js +284 -394
- package/dist/components/EstimateCost/EstimateCostProvider.d.ts +1 -1
- package/dist/components/EstimateCost/EstimateCostProvider.d.ts.map +1 -1
- package/dist/components/EstimateCost/EstimateCostProvider.js +30 -37
- package/dist/components/EstimateCost/OverlayComponent.d.ts.map +1 -1
- package/dist/components/EstimateCost/OverlayComponent.js +95 -93
- package/dist/components/EstimateCost/OverlayContext.d.ts.map +1 -1
- package/dist/components/EstimateCost/OverlayContext.js +12 -10
- package/dist/components/EstimateCost/constants.js +19 -21
- package/dist/components/EstimateCost/helper.d.ts +2 -2
- package/dist/components/EstimateCost/helper.d.ts.map +1 -1
- package/dist/components/EstimateCost/helper.js +9 -14
- package/dist/components/EstimateCost/locales/en.js +24 -23
- package/dist/components/EstimateCost/styles.css.d.ts +2 -2
- package/dist/components/EstimateCost/styles.css.js +50 -36
- package/dist/components/EstimateCost/types.d.ts +1 -1
- package/dist/components/EstimateCost/types.d.ts.map +1 -1
- package/dist/components/FAQ/index.d.ts.map +1 -1
- package/dist/components/FAQ/index.js +37 -31
- package/dist/components/FAQ/styles.css.js +6 -4
- package/dist/components/InfoTable/InfoTable.d.ts +10 -13
- package/dist/components/InfoTable/InfoTable.d.ts.map +1 -1
- package/dist/components/InfoTable/InfoTable.js +24 -15
- package/dist/components/InfoTable/components/Cell.d.ts.map +1 -1
- package/dist/components/InfoTable/components/Cell.js +37 -45
- package/dist/components/InfoTable/components/Row.d.ts.map +1 -1
- package/dist/components/InfoTable/components/Row.js +19 -27
- package/dist/components/InfoTable/context.d.ts +1 -1
- package/dist/components/InfoTable/context.d.ts.map +1 -1
- package/dist/components/InfoTable/context.js +5 -3
- package/dist/components/InfoTable/styles.css.js +6 -10
- package/dist/components/Navigation/Footer.d.ts.map +1 -1
- package/dist/components/Navigation/Footer.js +59 -75
- package/dist/components/Navigation/Header.d.ts.map +1 -1
- package/dist/components/Navigation/Header.js +20 -17
- package/dist/components/Navigation/Navigation.d.ts +46 -43
- package/dist/components/Navigation/Navigation.d.ts.map +1 -1
- package/dist/components/Navigation/Navigation.js +23 -27
- package/dist/components/Navigation/NavigationContent.d.ts +1 -1
- package/dist/components/Navigation/NavigationContent.d.ts.map +1 -1
- package/dist/components/Navigation/NavigationContent.js +100 -138
- package/dist/components/Navigation/NavigationProvider.d.ts.map +1 -1
- package/dist/components/Navigation/NavigationProvider.js +116 -165
- package/dist/components/Navigation/components/Group.d.ts.map +1 -1
- package/dist/components/Navigation/components/Group.js +36 -43
- package/dist/components/Navigation/components/Item.d.ts +1 -1
- package/dist/components/Navigation/components/Item.d.ts.map +1 -1
- package/dist/components/Navigation/components/Item.js +440 -607
- package/dist/components/Navigation/components/ItemProvider.d.ts.map +1 -1
- package/dist/components/Navigation/components/ItemProvider.js +13 -8
- package/dist/components/Navigation/components/PinnedItems.d.ts.map +1 -1
- package/dist/components/Navigation/components/PinnedItems.js +101 -132
- package/dist/components/Navigation/components/Separator.js +10 -7
- package/dist/components/Navigation/components/ShowHide.d.ts +1 -1
- package/dist/components/Navigation/components/ShowHide.d.ts.map +1 -1
- package/dist/components/Navigation/components/ShowHide.js +51 -75
- package/dist/components/Navigation/components/items.css.js +72 -30
- package/dist/components/Navigation/components/styles.css.js +23 -13
- package/dist/components/Navigation/locales/en.js +12 -11
- package/dist/components/Navigation/styles.css.js +29 -14
- package/dist/components/Navigation/variables.css.js +4 -4
- package/dist/components/OfferList/OfferList.d.ts +5 -51
- package/dist/components/OfferList/OfferList.d.ts.map +1 -1
- package/dist/components/OfferList/OfferList.js +11 -78
- package/dist/components/OrderSummary/index.d.ts +5 -2
- package/dist/components/OrderSummary/index.d.ts.map +1 -1
- package/dist/components/OrderSummary/index.js +11 -204
- package/dist/components/Plans/index.d.ts +5 -21
- package/dist/components/Plans/index.d.ts.map +1 -1
- package/dist/components/Plans/index.js +11 -214
- package/dist/components/SteppedListCard/index.d.ts +5 -1
- package/dist/components/SteppedListCard/index.d.ts.map +1 -1
- package/dist/components/SteppedListCard/index.js +11 -0
- package/dist/index.js +5 -21
- package/dist/plus.css +2 -1
- package/package.json +8 -7
- package/LICENSE +0 -189
- package/dist/components/CustomerSatisfaction/assets/1-5.svg.js +0 -4
- package/dist/components/CustomerSatisfaction/assets/1-5NB.svg.js +0 -4
- package/dist/components/CustomerSatisfaction/assets/2-5.svg.js +0 -4
- package/dist/components/CustomerSatisfaction/assets/2-5NB.svg.js +0 -4
- package/dist/components/CustomerSatisfaction/assets/3-5.svg.js +0 -4
- package/dist/components/CustomerSatisfaction/assets/3-5NB.svg.js +0 -4
- package/dist/components/CustomerSatisfaction/assets/4-5.svg.js +0 -4
- package/dist/components/CustomerSatisfaction/assets/4-5NB.svg.js +0 -4
- package/dist/components/CustomerSatisfaction/assets/5-5.svg.js +0 -4
- package/dist/components/CustomerSatisfaction/assets/5-5NB.svg.js +0 -4
- package/dist/components/Navigation/constants.js +0 -10
- package/dist/components/OfferList/OfferListProvider.d.ts +0 -30
- package/dist/components/OfferList/OfferListProvider.d.ts.map +0 -1
- package/dist/components/OfferList/OfferListProvider.js +0 -48
- package/dist/components/OfferList/components/Banner.d.ts +0 -13
- package/dist/components/OfferList/components/Banner.d.ts.map +0 -1
- package/dist/components/OfferList/components/Banner.js +0 -43
- package/dist/components/OfferList/components/Cell.d.ts +0 -4
- package/dist/components/OfferList/components/Cell.d.ts.map +0 -1
- package/dist/components/OfferList/components/Cell.js +0 -35
- package/dist/components/OfferList/components/OfferListRowProvider.d.ts +0 -9
- package/dist/components/OfferList/components/OfferListRowProvider.d.ts.map +0 -1
- package/dist/components/OfferList/components/OfferListRowProvider.js +0 -10
- package/dist/components/OfferList/components/Row.d.ts +0 -18
- package/dist/components/OfferList/components/Row.d.ts.map +0 -1
- package/dist/components/OfferList/components/Row.js +0 -258
- package/dist/components/OfferList/styles.css.d.ts +0 -44
- package/dist/components/OfferList/styles.css.d.ts.map +0 -1
- package/dist/components/OfferList/styles.css.js +0 -40
- package/dist/components/OrderSummary/NonScrollableContent.d.ts +0 -20
- package/dist/components/OrderSummary/NonScrollableContent.d.ts.map +0 -1
- package/dist/components/OrderSummary/NonScrollableContent.js +0 -136
- package/dist/components/OrderSummary/Provider.d.ts +0 -15
- package/dist/components/OrderSummary/Provider.d.ts.map +0 -1
- package/dist/components/OrderSummary/Provider.js +0 -15
- package/dist/components/OrderSummary/ScrollableContent.d.ts +0 -2
- package/dist/components/OrderSummary/ScrollableContent.d.ts.map +0 -1
- package/dist/components/OrderSummary/ScrollableContent.js +0 -314
- package/dist/components/OrderSummary/constants.d.ts +0 -3
- package/dist/components/OrderSummary/constants.d.ts.map +0 -1
- package/dist/components/OrderSummary/constants.js +0 -18
- package/dist/components/OrderSummary/helpers.d.ts +0 -28
- package/dist/components/OrderSummary/helpers.d.ts.map +0 -1
- package/dist/components/OrderSummary/helpers.js +0 -156
- package/dist/components/OrderSummary/locales/en.d.ts +0 -11
- package/dist/components/OrderSummary/locales/en.d.ts.map +0 -1
- package/dist/components/OrderSummary/locales/en.js +0 -12
- package/dist/components/OrderSummary/styles.css.d.ts +0 -21
- package/dist/components/OrderSummary/styles.css.d.ts.map +0 -1
- package/dist/components/OrderSummary/styles.css.js +0 -26
- package/dist/components/OrderSummary/types.d.ts +0 -125
- package/dist/components/OrderSummary/types.d.ts.map +0 -1
- package/dist/components/Plans/FeatureHint.d.ts +0 -7
- package/dist/components/Plans/FeatureHint.d.ts.map +0 -1
- package/dist/components/Plans/FeatureHint.js +0 -42
- package/dist/components/Plans/PlanHeader.d.ts +0 -14
- package/dist/components/Plans/PlanHeader.d.ts.map +0 -1
- package/dist/components/Plans/PlanHeader.js +0 -96
- package/dist/components/Plans/locales/en.d.ts +0 -7
- package/dist/components/Plans/locales/en.d.ts.map +0 -1
- package/dist/components/Plans/locales/en.js +0 -8
- package/dist/components/Plans/styles.css.d.ts +0 -67
- package/dist/components/Plans/styles.css.d.ts.map +0 -1
- package/dist/components/Plans/styles.css.js +0 -26
- package/dist/components/Plans/types.d.ts +0 -38
- package/dist/components/Plans/types.d.ts.map +0 -1
- package/dist/components/SteppedListCard/Step.d.ts +0 -23
- package/dist/components/SteppedListCard/Step.d.ts.map +0 -1
- package/dist/components/SteppedListCard/Step.js +0 -61
- package/dist/components/SteppedListCard/SteppedListCard.d.ts +0 -69
- package/dist/components/SteppedListCard/SteppedListCard.d.ts.map +0 -1
- package/dist/components/SteppedListCard/SteppedListCard.js +0 -105
- package/dist/components/SteppedListCard/SteppedListContent.d.ts +0 -12
- package/dist/components/SteppedListCard/SteppedListContent.d.ts.map +0 -1
- package/dist/components/SteppedListCard/SteppedListContent.js +0 -53
- package/dist/components/SteppedListCard/helper.d.ts +0 -27
- package/dist/components/SteppedListCard/helper.d.ts.map +0 -1
- package/dist/components/SteppedListCard/helper.js +0 -41
- package/dist/components/SteppedListCard/styles.css.d.ts +0 -9
- package/dist/components/SteppedListCard/styles.css.d.ts.map +0 -1
- package/dist/components/SteppedListCard/styles.css.js +0 -19
|
@@ -1,34 +1,40 @@
|
|
|
1
|
-
|
|
1
|
+
'use client';
|
|
2
|
+
import { __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { faq } from "./styles.css.js";
|
|
4
|
+
import { Bullet, Card, Stack, Text } from "@ultraviolet/ui";
|
|
2
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
6
|
import * as ProductIcon from "@ultraviolet/icons/product";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const FAQ = ({
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
|
|
7
|
+
|
|
8
|
+
//#region src/components/FAQ/index.tsx
|
|
9
|
+
const FAQ = ({ productIconName, illustrationText, title, description, notes, style }) => {
|
|
10
|
+
const ProductIconUsed = productIconName ? ProductIcon[`${productIconName.charAt(0).toUpperCase() + productIconName.slice(1)}ProductIcon`] : null;
|
|
11
|
+
return /* @__PURE__ */ jsx(Card, {
|
|
12
|
+
className: faq,
|
|
13
|
+
style,
|
|
14
|
+
children: /* @__PURE__ */ jsxs(Stack, {
|
|
15
|
+
direction: "row",
|
|
16
|
+
gap: 2,
|
|
17
|
+
children: [/* @__PURE__ */ jsxs("div", { children: [!productIconName && illustrationText ? /* @__PURE__ */ jsx(Bullet, {
|
|
18
|
+
sentiment: "primary",
|
|
19
|
+
children: illustrationText.toString()
|
|
20
|
+
}) : null, ProductIconUsed ? /* @__PURE__ */ jsx(ProductIconUsed, { size: "xlarge" }) : null] }), /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx(Text, {
|
|
21
|
+
as: "p",
|
|
22
|
+
prominence: "strong",
|
|
23
|
+
variant: "bodyStronger",
|
|
24
|
+
children: title
|
|
25
|
+
}), /* @__PURE__ */ jsxs(Text, {
|
|
26
|
+
as: "div",
|
|
27
|
+
variant: "bodySmall",
|
|
28
|
+
children: [description, notes ? /* @__PURE__ */ jsx(Text, {
|
|
29
|
+
as: "small",
|
|
30
|
+
italic: true,
|
|
31
|
+
variant: "caption",
|
|
32
|
+
children: notes
|
|
33
|
+
}) : null]
|
|
34
|
+
})] })]
|
|
35
|
+
})
|
|
36
|
+
});
|
|
34
37
|
};
|
|
38
|
+
|
|
39
|
+
//#endregion
|
|
40
|
+
export { FAQ };
|
|
@@ -6,23 +6,20 @@ type InfoTableProps = {
|
|
|
6
6
|
'data-testid'?: string;
|
|
7
7
|
style?: CSSProperties;
|
|
8
8
|
};
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
*/
|
|
13
|
-
export declare const InfoTable: {
|
|
14
|
-
({ children, width, className, style, "data-testid": dataTestId, }: InfoTableProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
Row: ({ children, templateColumns, style, }: {
|
|
9
|
+
export declare function InfoTable({ children, width, className, style, 'data-testid': dataTestId }: InfoTableProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare namespace InfoTable {
|
|
11
|
+
var Row: ({ children, templateColumns, style, }: {
|
|
16
12
|
children: ReactNode;
|
|
17
13
|
templateColumns: string;
|
|
18
|
-
style?: CSSProperties;
|
|
14
|
+
style?: CSSProperties | undefined;
|
|
19
15
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
-
|
|
16
|
+
}
|
|
17
|
+
export declare namespace InfoTable {
|
|
18
|
+
var Cell: ({ children, title, multiline, style, }: {
|
|
21
19
|
children: ReactNode;
|
|
22
20
|
title: ReactNode;
|
|
23
|
-
multiline?: boolean;
|
|
24
|
-
style?: CSSProperties;
|
|
21
|
+
multiline?: boolean | undefined;
|
|
22
|
+
style?: CSSProperties | undefined;
|
|
25
23
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
-
}
|
|
27
|
-
export {};
|
|
24
|
+
}
|
|
28
25
|
//# sourceMappingURL=InfoTable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InfoTable.d.ts","sourceRoot":"","sources":["../../../src/components/InfoTable/InfoTable.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAMrD,KAAK,cAAc,GAAG;IACpB,QAAQ,EAAE,SAAS,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,CAAA;
|
|
1
|
+
{"version":3,"file":"InfoTable.d.ts","sourceRoot":"","sources":["../../../src/components/InfoTable/InfoTable.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAMrD,KAAK,cAAc,GAAG;IACpB,QAAQ,EAAE,SAAS,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,CAAA;kCAMyB,EACxB,QAAQ,EACR,KAAK,EACL,SAAS,EACT,KAAK,EACL,aAAa,EAAE,UAAU,EAC1B,EAAE,cAAc"}
|
|
@@ -1,19 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
'use client';
|
|
2
|
+
import { __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { dl } from "./styles.css.js";
|
|
4
4
|
import { InfoTableCell } from "./components/Cell.js";
|
|
5
|
-
import { InfoTableRow } from "./components/Row.js";
|
|
6
5
|
import { InfoTableContext } from "./context.js";
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
6
|
+
import { InfoTableRow } from "./components/Row.js";
|
|
7
|
+
import { cn } from "@ultraviolet/utils";
|
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
|
+
|
|
10
|
+
//#region src/components/InfoTable/InfoTable.tsx
|
|
11
|
+
/**
|
|
12
|
+
* Use this component to display offers.
|
|
13
|
+
* Create rows with `InfoTable.Row` and place cells within each row using `InfoTable.Cell`.
|
|
14
|
+
*/
|
|
15
|
+
const InfoTable = ({ children, width, className, style, "data-testid": dataTestId }) => /* @__PURE__ */ jsx(InfoTableContext.Provider, {
|
|
16
|
+
value: { width },
|
|
17
|
+
children: /* @__PURE__ */ jsx("dl", {
|
|
18
|
+
className: cn(className, dl),
|
|
19
|
+
"data-testid": dataTestId,
|
|
20
|
+
style,
|
|
21
|
+
children
|
|
22
|
+
})
|
|
23
|
+
});
|
|
15
24
|
InfoTable.Row = InfoTableRow;
|
|
16
25
|
InfoTable.Cell = InfoTableCell;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
};
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
export { InfoTable };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Cell.d.ts","sourceRoot":"","sources":["../../../../src/components/InfoTable/components/Cell.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGrD,KAAK,SAAS,GAAG;IACf,QAAQ,EAAE,SAAS,CAAA;IACnB,KAAK,EAAE,SAAS,CAAA;IAChB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"Cell.d.ts","sourceRoot":"","sources":["../../../../src/components/InfoTable/components/Cell.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGrD,KAAK,SAAS,GAAG;IACf,QAAQ,EAAE,SAAS,CAAA;IACnB,KAAK,EAAE,SAAS,CAAA;IAChB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,aAAa,gGAoCzB,CAAA"}
|
|
@@ -1,46 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
1
|
+
'use client';
|
|
2
|
+
import { __name } from "../../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { cellText, desc, infoTableCell, term } from "../styles.css.js";
|
|
3
4
|
import { Stack, Text } from "@ultraviolet/ui";
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
children
|
|
39
|
-
}
|
|
40
|
-
) })
|
|
41
|
-
]
|
|
42
|
-
}
|
|
43
|
-
);
|
|
44
|
-
export {
|
|
45
|
-
InfoTableCell
|
|
46
|
-
};
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
|
|
7
|
+
//#region src/components/InfoTable/components/Cell.tsx
|
|
8
|
+
const InfoTableCell = ({ children, title, multiline = false, style }) => /* @__PURE__ */ jsxs(Stack, {
|
|
9
|
+
className: infoTableCell,
|
|
10
|
+
gap: "0.5",
|
|
11
|
+
minWidth: "0",
|
|
12
|
+
style,
|
|
13
|
+
width: "100%",
|
|
14
|
+
children: [/* @__PURE__ */ jsx("dt", {
|
|
15
|
+
className: term,
|
|
16
|
+
children: /* @__PURE__ */ jsx(Text, {
|
|
17
|
+
as: "div",
|
|
18
|
+
prominence: "weak",
|
|
19
|
+
sentiment: "neutral",
|
|
20
|
+
variant: "bodySmallStrong",
|
|
21
|
+
children: title
|
|
22
|
+
})
|
|
23
|
+
}), /* @__PURE__ */ jsx("dd", {
|
|
24
|
+
className: desc,
|
|
25
|
+
children: /* @__PURE__ */ jsx(Text, {
|
|
26
|
+
as: "div",
|
|
27
|
+
className: cellText,
|
|
28
|
+
oneLine: !multiline,
|
|
29
|
+
prominence: "default",
|
|
30
|
+
sentiment: "neutral",
|
|
31
|
+
variant: "body",
|
|
32
|
+
children
|
|
33
|
+
})
|
|
34
|
+
})]
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
//#endregion
|
|
38
|
+
export { InfoTableCell };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Row.d.ts","sourceRoot":"","sources":["../../../../src/components/InfoTable/components/Row.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKrD,KAAK,QAAQ,GAAG;IACd,QAAQ,EAAE,SAAS,CAAA;IACnB,eAAe,EAAE,MAAM,CAAA;IACvB,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"Row.d.ts","sourceRoot":"","sources":["../../../../src/components/InfoTable/components/Row.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKrD,KAAK,QAAQ,GAAG;IACd,QAAQ,EAAE,SAAS,CAAA;IACnB,eAAe,EAAE,MAAM,CAAA;IACvB,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,YAAY,8FAqBxB,CAAA"}
|
|
@@ -1,31 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
1
|
+
'use client';
|
|
2
|
+
import { __name } from "../../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { _objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.113.0/helpers/objectSpread2.js";
|
|
4
|
+
import { infoTableRow, rowWidth } from "../styles.css.js";
|
|
5
|
+
import { InfoTableContext } from "../context.js";
|
|
3
6
|
import { Row } from "@ultraviolet/ui";
|
|
4
7
|
import { assignInlineVars } from "@vanilla-extract/dynamic";
|
|
5
8
|
import { useContext } from "react";
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
className: infoTableRow,
|
|
18
|
-
style: {
|
|
19
|
-
...assignInlineVars({
|
|
20
|
-
[rowWidth]: width ?? "100%"
|
|
21
|
-
}),
|
|
22
|
-
...style
|
|
23
|
-
},
|
|
24
|
-
templateColumns,
|
|
25
|
-
children
|
|
26
|
-
}
|
|
27
|
-
);
|
|
28
|
-
};
|
|
29
|
-
export {
|
|
30
|
-
InfoTableRow
|
|
9
|
+
import { jsx } from "react/jsx-runtime";
|
|
10
|
+
|
|
11
|
+
//#region src/components/InfoTable/components/Row.tsx
|
|
12
|
+
const InfoTableRow = ({ children, templateColumns, style }) => {
|
|
13
|
+
const { width } = useContext(InfoTableContext);
|
|
14
|
+
return /* @__PURE__ */ jsx(Row, {
|
|
15
|
+
className: infoTableRow,
|
|
16
|
+
style: _objectSpread2(_objectSpread2({}, assignInlineVars({ [rowWidth]: width !== null && width !== void 0 ? width : "100%" })), style),
|
|
17
|
+
templateColumns,
|
|
18
|
+
children
|
|
19
|
+
});
|
|
31
20
|
};
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
export { InfoTableRow };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/components/InfoTable/context.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/components/InfoTable/context.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB;;EAAwC,CAAA"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
/* empty css
|
|
1
|
+
/* empty css */
|
|
2
|
+
|
|
3
|
+
//#region src/components/InfoTable/styles.css.ts
|
|
2
4
|
var rowWidth = "var(--uv_plus_h6pvpm0)";
|
|
3
5
|
var dl = "uv_plus_h6pvpm1";
|
|
4
6
|
var infoTableRow = "uv_plus_h6pvpm2";
|
|
@@ -6,12 +8,6 @@ var infoTableCell = "uv_plus_h6pvpm3";
|
|
|
6
8
|
var term = "uv_plus_h6pvpm4";
|
|
7
9
|
var desc = "uv_plus_h6pvpm5";
|
|
8
10
|
var cellText = "uv_plus_h6pvpm6";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
dl,
|
|
13
|
-
infoTableCell,
|
|
14
|
-
infoTableRow,
|
|
15
|
-
rowWidth,
|
|
16
|
-
term
|
|
17
|
-
};
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
export { cellText, desc, dl, infoTableCell, infoTableRow, rowWidth, term };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Footer.d.ts","sourceRoot":"","sources":["../../../src/components/Navigation/Footer.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAItC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE9C,KAAK,WAAW,GAAG;IACjB,cAAc,EAAE,eAAe,CAAC,gBAAgB,CAAC,CAAA;IACjD,UAAU,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;CAC7C,CAAA;AAED,eAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"Footer.d.ts","sourceRoot":"","sources":["../../../src/components/Navigation/Footer.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAItC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE9C,KAAK,WAAW,GAAG;IACjB,cAAc,EAAE,eAAe,CAAC,gBAAgB,CAAC,CAAA;IACjD,UAAU,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;CAC7C,CAAA;AAED,eAAO,MAAM,MAAM,0FAqFlB,CAAA"}
|
|
@@ -1,80 +1,64 @@
|
|
|
1
|
-
|
|
1
|
+
'use client';
|
|
2
|
+
import { __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { useNavigation } from "./NavigationProvider.js";
|
|
4
|
+
import { navigationStickyFooter } from "./styles.css.js";
|
|
5
|
+
import { Button, Tooltip } from "@ultraviolet/ui";
|
|
6
|
+
import { useCallback, useLayoutEffect, useMemo, useState } from "react";
|
|
2
7
|
import { jsx } from "react/jsx-runtime";
|
|
3
8
|
import { ArrowLeftDoubleIcon } from "@ultraviolet/icons/ArrowLeftDoubleIcon";
|
|
4
9
|
import { ArrowRightDoubleIcon } from "@ultraviolet/icons/ArrowRightDoubleIcon";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import { useNavigation } from "./NavigationProvider.js";
|
|
8
|
-
import { navigationStickyFooter } from "./styles.css.js";
|
|
10
|
+
|
|
11
|
+
//#region src/components/Navigation/Footer.tsx
|
|
9
12
|
const Footer = ({ onToggleExpand, contentRef }) => {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
text: label,
|
|
59
|
-
children: /* @__PURE__ */ jsx(
|
|
60
|
-
Button,
|
|
61
|
-
{
|
|
62
|
-
"aria-label": label,
|
|
63
|
-
onClick: () => {
|
|
64
|
-
toggleExpand();
|
|
65
|
-
onToggleExpand?.(!expanded);
|
|
66
|
-
},
|
|
67
|
-
sentiment: "neutral",
|
|
68
|
-
size: "small",
|
|
69
|
-
variant: "ghost",
|
|
70
|
-
children: /* @__PURE__ */ jsx(Icon, {})
|
|
71
|
-
}
|
|
72
|
-
)
|
|
73
|
-
}
|
|
74
|
-
)
|
|
75
|
-
}
|
|
76
|
-
);
|
|
77
|
-
};
|
|
78
|
-
export {
|
|
79
|
-
Footer
|
|
13
|
+
const { expanded, toggleExpand, locales, animation } = useNavigation();
|
|
14
|
+
const isScrollAtBottom = useCallback(() => {
|
|
15
|
+
if (contentRef.current) {
|
|
16
|
+
if (contentRef.current.scrollTop + contentRef.current.offsetHeight >= contentRef.current.scrollHeight) return false;
|
|
17
|
+
return true;
|
|
18
|
+
}
|
|
19
|
+
return true;
|
|
20
|
+
}, [contentRef]);
|
|
21
|
+
const [footerHasOverflowStyle, setFooterHasOverflowStyle] = useState(isScrollAtBottom());
|
|
22
|
+
useLayoutEffect(() => {
|
|
23
|
+
const currentContentRef = contentRef.current;
|
|
24
|
+
const scroll = () => {
|
|
25
|
+
const hasOverflow = isScrollAtBottom();
|
|
26
|
+
if (footerHasOverflowStyle !== hasOverflow) setFooterHasOverflowStyle(hasOverflow);
|
|
27
|
+
};
|
|
28
|
+
if (currentContentRef) currentContentRef.addEventListener("scroll", scroll);
|
|
29
|
+
return () => {
|
|
30
|
+
currentContentRef === null || currentContentRef === void 0 || currentContentRef.removeEventListener("scroll", scroll);
|
|
31
|
+
};
|
|
32
|
+
}, [
|
|
33
|
+
footerHasOverflowStyle,
|
|
34
|
+
isScrollAtBottom,
|
|
35
|
+
contentRef
|
|
36
|
+
]);
|
|
37
|
+
useLayoutEffect(() => {
|
|
38
|
+
setFooterHasOverflowStyle(isScrollAtBottom());
|
|
39
|
+
}, [isScrollAtBottom]);
|
|
40
|
+
const Icon = useMemo(() => expanded ? ArrowLeftDoubleIcon : ArrowRightDoubleIcon, [expanded]);
|
|
41
|
+
const label = useMemo(() => expanded ? locales["navigation.collapse.button"] : locales["navigation.expand.button"], [expanded, locales]);
|
|
42
|
+
return /* @__PURE__ */ jsx("div", {
|
|
43
|
+
className: navigationStickyFooter({ overflow: footerHasOverflowStyle }),
|
|
44
|
+
children: /* @__PURE__ */ jsx(Tooltip, {
|
|
45
|
+
disableAnimation: animation === false,
|
|
46
|
+
placement: "right",
|
|
47
|
+
text: label,
|
|
48
|
+
children: /* @__PURE__ */ jsx(Button, {
|
|
49
|
+
"aria-label": label,
|
|
50
|
+
onClick: () => {
|
|
51
|
+
toggleExpand();
|
|
52
|
+
onToggleExpand === null || onToggleExpand === void 0 || onToggleExpand(!expanded);
|
|
53
|
+
},
|
|
54
|
+
sentiment: "neutral",
|
|
55
|
+
size: "small",
|
|
56
|
+
variant: "ghost",
|
|
57
|
+
children: /* @__PURE__ */ jsx(Icon, {})
|
|
58
|
+
})
|
|
59
|
+
})
|
|
60
|
+
});
|
|
80
61
|
};
|
|
62
|
+
|
|
63
|
+
//#endregion
|
|
64
|
+
export { Footer };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../src/components/Navigation/Header.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE9C,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,eAAe,CAAC,MAAM,CAAC,CAAA;CAC9B,CAAA;AAED,eAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../src/components/Navigation/Header.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE9C,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,eAAe,CAAC,MAAM,CAAC,CAAA;CAC9B,CAAA;AAED,eAAO,MAAM,MAAM,yGAcjB,CAAA"}
|
|
@@ -1,21 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import { Stack } from "@ultraviolet/ui";
|
|
4
|
-
import { memo } from "react";
|
|
1
|
+
'use client';
|
|
2
|
+
import { __name } from "../../_virtual/_rolldown/runtime.js";
|
|
5
3
|
import { useNavigation } from "./NavigationProvider.js";
|
|
6
4
|
import { navigationHeader, navigationLogoContainer } from "./styles.css.js";
|
|
5
|
+
import { Stack } from "@ultraviolet/ui";
|
|
6
|
+
import { memo } from "react";
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
|
+
|
|
9
|
+
//#region src/components/Navigation/Header.tsx
|
|
7
10
|
const Header = memo(({ logo }) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
const { animation, expanded } = useNavigation();
|
|
12
|
+
return /* @__PURE__ */ jsx("div", {
|
|
13
|
+
className: navigationHeader,
|
|
14
|
+
children: /* @__PURE__ */ jsx(Stack, {
|
|
15
|
+
alignItems: "flex-start",
|
|
16
|
+
className: navigationLogoContainer,
|
|
17
|
+
justifyContent: expanded ? void 0 : "center",
|
|
18
|
+
children: typeof logo === "function" ? logo(animation ? false : expanded) : logo
|
|
19
|
+
})
|
|
20
|
+
});
|
|
18
21
|
});
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
};
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { Header };
|