@ultraviolet/plus 0.15.5 → 0.17.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/components/EstimateCost/EstimateCost.cjs +5 -4
- package/dist/components/EstimateCost/EstimateCost.d.ts +1 -1
- package/dist/components/EstimateCost/EstimateCost.js +5 -4
- package/dist/components/EstimateCost/EstimateCostContent.cjs +20 -13
- package/dist/components/EstimateCost/EstimateCostContent.d.ts +1 -1
- package/dist/components/EstimateCost/EstimateCostContent.js +20 -13
- package/dist/components/EstimateCost/types.d.ts +10 -0
- package/dist/components/Navigation/Navigation.cjs +2 -5
- package/dist/components/Navigation/Navigation.d.ts +7 -28
- package/dist/components/Navigation/Navigation.js +2 -5
- package/dist/components/Navigation/NavigationContent.cjs +20 -14
- package/dist/components/Navigation/NavigationContent.d.ts +2 -10
- package/dist/components/Navigation/NavigationContent.js +20 -14
- package/dist/components/Navigation/NavigationProvider.cjs +13 -6
- package/dist/components/Navigation/NavigationProvider.d.ts +10 -6
- package/dist/components/Navigation/NavigationProvider.js +13 -6
- package/dist/components/Navigation/components/Item.cjs +15 -15
- package/dist/components/Navigation/components/Item.d.ts +1 -1
- package/dist/components/Navigation/components/Item.js +15 -15
- package/dist/components/Navigation/components/PinnedItems.cjs +5 -5
- package/dist/components/Navigation/components/PinnedItems.js +5 -5
- package/dist/components/Navigation/constants.d.ts +0 -18
- package/dist/components/Navigation/types.d.ts +39 -0
- package/package.json +6 -6
|
@@ -111,6 +111,16 @@ export type EstimateCostProps = {
|
|
|
111
111
|
*/
|
|
112
112
|
numberLocales?: string;
|
|
113
113
|
overlayMargin?: string;
|
|
114
|
+
onTotalPriceChange?: ({ total, totalMax, }: {
|
|
115
|
+
/**
|
|
116
|
+
* The total price of the estimate cost.
|
|
117
|
+
*/
|
|
118
|
+
total: number;
|
|
119
|
+
/**
|
|
120
|
+
* If the price has a range (ex: 10-20), this is the maximum value.
|
|
121
|
+
*/
|
|
122
|
+
totalMax?: number;
|
|
123
|
+
}) => void;
|
|
114
124
|
};
|
|
115
125
|
export type Units = 'seconds' | 'minutes' | 'hours' | 'days' | 'months';
|
|
116
126
|
export type Iteration = {
|
|
@@ -8,11 +8,8 @@ const PinnedItems = require("./components/PinnedItems.cjs");
|
|
|
8
8
|
const Separator = require("./components/Separator.cjs");
|
|
9
9
|
const Navigation = ({
|
|
10
10
|
children,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
className,
|
|
14
|
-
id
|
|
15
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx(NavigationContent.NavigationContent, { logo, className, onWidthResize, id, children });
|
|
11
|
+
...props
|
|
12
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(NavigationContent.NavigationContent, { ...props, children });
|
|
16
13
|
Navigation.Group = Group.Group;
|
|
17
14
|
Navigation.Item = Item.Item;
|
|
18
15
|
Navigation.PinnedItems = PinnedItems.PinnedItems;
|
|
@@ -1,38 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
type NavigationProps
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
/**
|
|
5
|
-
* The logo to be displayed in header of the navigation
|
|
6
|
-
* It can be a component or a function. The function will retrun you
|
|
7
|
-
* expanded state of the navigation so you can decide to show/hide
|
|
8
|
-
* some part of your logo
|
|
9
|
-
*/
|
|
10
|
-
logo?: ReactNode | ((expanded: boolean) => ReactNode);
|
|
11
|
-
/**
|
|
12
|
-
* This function is called when resize occur using the vertical bar on the left of the navigation.
|
|
13
|
-
*/
|
|
14
|
-
onWidthResize?: (width: number) => void;
|
|
15
|
-
id?: string;
|
|
16
|
-
className?: string;
|
|
17
|
-
};
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { NavigationProps } from './types';
|
|
18
3
|
/**
|
|
19
4
|
* Navigation is a component that allows you to create a sidebar navigation.
|
|
20
5
|
* You can wrap your navigation items like `<Navigation.Item>` with your router
|
|
21
6
|
* to make it work in your application.
|
|
22
7
|
*/
|
|
23
8
|
export declare const Navigation: {
|
|
24
|
-
({ children,
|
|
9
|
+
({ children, ...props }: NavigationProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
25
10
|
Group: ({ children, label }: {
|
|
26
|
-
children: ReactNode;
|
|
27
|
-
label: string;
|
|
28
|
-
* The logo to be displayed in header of the navigation
|
|
29
|
-
* It can be a component or a function. The function will retrun you
|
|
30
|
-
* expanded state of the navigation so you can decide to show/hide
|
|
31
|
-
* some part of your logo
|
|
32
|
-
*/
|
|
11
|
+
children: import("react").ReactNode;
|
|
12
|
+
label: string;
|
|
33
13
|
}) => import("@emotion/react/jsx-runtime").JSX.Element | null;
|
|
34
14
|
Item: ({ children, categoryIcon, categoryIconVariant, label, subLabel, badgeText, badgeSentiment, href, onClick, onClickPinUnpin, toggle, active, noPinButton, type, hasParents, as, disabled, noExpand, index, id, }: {
|
|
35
|
-
children?: ReactNode;
|
|
15
|
+
children?: import("react").ReactNode;
|
|
36
16
|
categoryIcon?: "security" | "console" | "database" | "pin" | "billing" | "storage" | "baremetal" | "webHosting" | "vpc" | "useCase" | "toolsServices" | "serverless" | "observability" | "network" | "managedServices" | "iot" | "documentation" | "dedicatedServer" | "datacenter" | "containers" | "compute" | "ai" | "labs" | "devTools" | "applicationIntegration" | undefined;
|
|
37
17
|
categoryIconVariant?: "neutral" | "primary" | undefined;
|
|
38
18
|
label: string;
|
|
@@ -42,7 +22,7 @@ export declare const Navigation: {
|
|
|
42
22
|
badgeSentiment?: import("node_modules/@ultraviolet/ui/dist/theme").Color | undefined;
|
|
43
23
|
href?: string | undefined;
|
|
44
24
|
onClick?: ((toggle?: boolean | undefined) => void) | undefined;
|
|
45
|
-
onClickPinUnpin?: ((parameters: import("./
|
|
25
|
+
onClickPinUnpin?: ((parameters: import("./types").PinUnPinType) => void) | undefined;
|
|
46
26
|
toggle?: boolean | undefined;
|
|
47
27
|
active?: boolean | undefined;
|
|
48
28
|
noPinButton?: boolean | undefined;
|
|
@@ -59,4 +39,3 @@ export declare const Navigation: {
|
|
|
59
39
|
}) => import("@emotion/react/jsx-runtime").JSX.Element | null;
|
|
60
40
|
Separator: () => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
61
41
|
};
|
|
62
|
-
export {};
|
|
@@ -6,11 +6,8 @@ import { PinnedItems } from "./components/PinnedItems.js";
|
|
|
6
6
|
import { Separator } from "./components/Separator.js";
|
|
7
7
|
const Navigation = ({
|
|
8
8
|
children,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
className,
|
|
12
|
-
id
|
|
13
|
-
}) => /* @__PURE__ */ jsx(NavigationContent, { logo, className, onWidthResize, id, children });
|
|
9
|
+
...props
|
|
10
|
+
}) => /* @__PURE__ */ jsx(NavigationContent, { ...props, children });
|
|
14
11
|
Navigation.Group = Group;
|
|
15
12
|
Navigation.Item = Item;
|
|
16
13
|
Navigation.PinnedItems = PinnedItems;
|