@ultraviolet/plus 0.15.1 → 0.15.3

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.
Files changed (96) hide show
  1. package/dist/components/CodeEditor/CodeEditor.cjs +39 -0
  2. package/dist/components/CodeEditor/CodeEditor.js +17 -24
  3. package/dist/components/ContentCard/Skeleton.cjs +43 -0
  4. package/dist/components/ContentCard/Skeleton.js +28 -21
  5. package/dist/components/ContentCard/index.cjs +154 -0
  6. package/dist/components/ContentCard/index.js +143 -149
  7. package/dist/components/ContentCardGroup/Card.cjs +93 -0
  8. package/dist/components/ContentCardGroup/Card.js +84 -76
  9. package/dist/components/ContentCardGroup/SkeletonCard.cjs +34 -0
  10. package/dist/components/ContentCardGroup/SkeletonCard.js +19 -13
  11. package/dist/components/ContentCardGroup/index.cjs +33 -0
  12. package/dist/components/ContentCardGroup/index.js +17 -8
  13. package/dist/components/Conversation/index.cjs +128 -0
  14. package/dist/components/Conversation/index.js +100 -42
  15. package/dist/components/CustomerSatisfaction/assets/1-5.svg.cjs +3 -0
  16. package/dist/components/CustomerSatisfaction/assets/1-5NB.svg.cjs +3 -0
  17. package/dist/components/CustomerSatisfaction/assets/2-5.svg.cjs +3 -0
  18. package/dist/components/CustomerSatisfaction/assets/2-5NB.svg.cjs +3 -0
  19. package/dist/components/CustomerSatisfaction/assets/3-5.svg.cjs +3 -0
  20. package/dist/components/CustomerSatisfaction/assets/3-5NB.svg.cjs +3 -0
  21. package/dist/components/CustomerSatisfaction/assets/4-5.svg.cjs +3 -0
  22. package/dist/components/CustomerSatisfaction/assets/4-5NB.svg.cjs +3 -0
  23. package/dist/components/CustomerSatisfaction/assets/5-5.svg.cjs +3 -0
  24. package/dist/components/CustomerSatisfaction/assets/5-5NB.svg.cjs +3 -0
  25. package/dist/components/CustomerSatisfaction/index.cjs +123 -0
  26. package/dist/components/CustomerSatisfaction/index.js +58 -81
  27. package/dist/components/EstimateCost/Components/CustomUnitInput.cjs +33 -0
  28. package/dist/components/EstimateCost/Components/CustomUnitInput.js +19 -34
  29. package/dist/components/EstimateCost/Components/Item.cjs +303 -0
  30. package/dist/components/EstimateCost/Components/Item.js +182 -199
  31. package/dist/components/EstimateCost/Components/LineThrough.cjs +18 -0
  32. package/dist/components/EstimateCost/Components/LineThrough.js +12 -9
  33. package/dist/components/EstimateCost/Components/NumberInput.cjs +29 -0
  34. package/dist/components/EstimateCost/Components/NumberInput.js +8 -15
  35. package/dist/components/EstimateCost/Components/Region.cjs +41 -0
  36. package/dist/components/EstimateCost/Components/Region.js +16 -27
  37. package/dist/components/EstimateCost/Components/Regular.cjs +35 -0
  38. package/dist/components/EstimateCost/Components/Regular.js +20 -28
  39. package/dist/components/EstimateCost/Components/Strong.cjs +28 -0
  40. package/dist/components/EstimateCost/Components/Strong.js +15 -12
  41. package/dist/components/EstimateCost/Components/Unit.cjs +50 -0
  42. package/dist/components/EstimateCost/Components/Unit.js +27 -33
  43. package/dist/components/EstimateCost/Components/UnitInput.cjs +90 -0
  44. package/dist/components/EstimateCost/Components/UnitInput.js +39 -87
  45. package/dist/components/EstimateCost/Components/Zone.cjs +40 -0
  46. package/dist/components/EstimateCost/Components/Zone.js +16 -26
  47. package/dist/components/EstimateCost/EstimateCost.cjs +88 -0
  48. package/dist/components/EstimateCost/EstimateCost.js +24 -63
  49. package/dist/components/EstimateCost/EstimateCostContent.cjs +245 -0
  50. package/dist/components/EstimateCost/EstimateCostContent.js +148 -208
  51. package/dist/components/EstimateCost/EstimateCostProvider.cjs +36 -0
  52. package/dist/components/EstimateCost/EstimateCostProvider.js +20 -23
  53. package/dist/components/EstimateCost/OverlayComponent.cjs +122 -0
  54. package/dist/components/EstimateCost/OverlayComponent.js +79 -73
  55. package/dist/components/EstimateCost/OverlayContext.cjs +14 -0
  56. package/dist/components/EstimateCost/OverlayContext.js +3 -1
  57. package/dist/components/EstimateCost/componentStyle.cjs +230 -0
  58. package/dist/components/EstimateCost/componentStyle.js +206 -148
  59. package/dist/components/EstimateCost/constants.cjs +30 -0
  60. package/dist/components/EstimateCost/helper.cjs +19 -0
  61. package/dist/components/EstimateCost/locales/en.cjs +23 -0
  62. package/dist/components/FAQ/index.cjs +36 -0
  63. package/dist/components/FAQ/index.js +9 -5
  64. package/dist/components/Navigation/Navigation.cjs +20 -0
  65. package/dist/components/Navigation/Navigation.d.ts +4 -3
  66. package/dist/components/Navigation/Navigation.js +1 -10
  67. package/dist/components/Navigation/NavigationContent.cjs +216 -0
  68. package/dist/components/Navigation/NavigationContent.js +96 -146
  69. package/dist/components/Navigation/NavigationProvider.cjs +111 -0
  70. package/dist/components/Navigation/NavigationProvider.d.ts +7 -18
  71. package/dist/components/Navigation/NavigationProvider.js +67 -98
  72. package/dist/components/Navigation/components/Group.cjs +57 -0
  73. package/dist/components/Navigation/components/Group.js +37 -41
  74. package/dist/components/Navigation/components/Item.cjs +438 -0
  75. package/dist/components/Navigation/components/Item.d.ts +4 -3
  76. package/dist/components/Navigation/components/Item.js +296 -555
  77. package/dist/components/Navigation/components/PinnedItems.cjs +108 -0
  78. package/dist/components/Navigation/components/PinnedItems.d.ts +5 -1
  79. package/dist/components/Navigation/components/PinnedItems.js +81 -119
  80. package/dist/components/Navigation/components/Separator.cjs +17 -0
  81. package/dist/components/Navigation/components/Separator.js +9 -4
  82. package/dist/components/Navigation/constants.cjs +37 -0
  83. package/dist/components/Navigation/constants.d.ts +14 -0
  84. package/dist/components/Navigation/index.d.ts +1 -0
  85. package/dist/components/Navigation/locales/en.cjs +11 -0
  86. package/dist/components/SteppedListCard/Step.cjs +37 -0
  87. package/dist/components/SteppedListCard/Step.js +19 -38
  88. package/dist/components/SteppedListCard/SteppedListContainer.cjs +80 -0
  89. package/dist/components/SteppedListCard/SteppedListContainer.js +39 -48
  90. package/dist/components/SteppedListCard/SteppedListContent.cjs +67 -0
  91. package/dist/components/SteppedListCard/SteppedListContent.js +46 -24
  92. package/dist/components/SteppedListCard/helper.cjs +37 -0
  93. package/dist/components/SteppedListCard/helper.js +1 -3
  94. package/dist/components/index.d.ts +1 -0
  95. package/dist/index.cjs +25 -0
  96. package/package.json +24 -9
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const APPROXIMATE_HOURS_IN_MONTH = 730;
4
+ const multiplier = {
5
+ seconds: 1 / 60 / 60,
6
+ minutes: 1 / 60,
7
+ hours: 1,
8
+ days: 24,
9
+ months: APPROXIMATE_HOURS_IN_MONTH
10
+ };
11
+ const maximumFractionDigits = {
12
+ seconds: 10,
13
+ minutes: 8,
14
+ hours: 5,
15
+ days: 3,
16
+ months: 2
17
+ };
18
+ const maximumFractionDigitsLong = {
19
+ seconds: 12,
20
+ minutes: 10,
21
+ hours: 8,
22
+ days: 4,
23
+ months: 2
24
+ };
25
+ const MAX_CELL_WIDTH = "530px";
26
+ exports.APPROXIMATE_HOURS_IN_MONTH = APPROXIMATE_HOURS_IN_MONTH;
27
+ exports.MAX_CELL_WIDTH = MAX_CELL_WIDTH;
28
+ exports.maximumFractionDigits = maximumFractionDigits;
29
+ exports.maximumFractionDigitsLong = maximumFractionDigitsLong;
30
+ exports.multiplier = multiplier;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const constants = require("./constants.cjs");
4
+ const calculatePrice = ({
5
+ price,
6
+ amount,
7
+ amountFree = 0,
8
+ timeUnit,
9
+ timeAmount,
10
+ discount = 0
11
+ }) => {
12
+ const nonNanTimeAmount = Number.isNaN(timeAmount) ? 0 : timeAmount;
13
+ const value = (price - price * discount) * (nonNanTimeAmount * constants.multiplier[`${timeUnit}`]) * Math.max(amount - amountFree, 0);
14
+ if (value < 0) {
15
+ return 0;
16
+ }
17
+ return value;
18
+ };
19
+ exports.calculatePrice = calculatePrice;
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ const EstimateCostLocales = {
3
+ "estimate.cost.description": "This summary provides a cost estimation based on your configuration, the amount of time you expect to use the resource for, and the scale of your expected usage. For the purposes of this calculation, we consider that 1 month equals to 730 hours.",
4
+ "estimate.cost.label": "Estimated cost",
5
+ "estimate.cost.beta.free": "Free During Beta",
6
+ "estimate.cost.beta.discount": "% off during Beta",
7
+ "estimate.cost.beta.badge": "Beta Version",
8
+ "estimate.cost.units.seconds.label": "Second(s)",
9
+ "estimate.cost.units.minutes.label": "Minute(s)",
10
+ "estimate.cost.units.hours.label": "Hour(s)",
11
+ "estimate.cost.units.days.label": "Day(s)",
12
+ "estimate.cost.units.months.label": "Month(s)",
13
+ "estimate.cost.units.years.label": "Year(s)",
14
+ "estimate.cost.fees.oneTime.title": "One time fees",
15
+ "estimate.cost.fees.monthly.title": "Each month",
16
+ "estimate.cost.fees.commitment": "Commitment Fees",
17
+ "estimate.cost.units.gb.label": "GB",
18
+ "estimate.cost.notDefined": "Not defined",
19
+ "estimate.cost.submit.label": "Create",
20
+ "estimate.cost.region.label": "Region",
21
+ "estimate.cost.az.label": "Availability Zone"
22
+ };
23
+ module.exports = EstimateCostLocales;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const jsxRuntime = require("@emotion/react/jsx-runtime");
4
+ const _styled = require("@emotion/styled/base");
5
+ const icons = require("@ultraviolet/icons");
6
+ const ui = require("@ultraviolet/ui");
7
+ const _interopDefaultCompat = (e) => e && typeof e === "object" && "default" in e ? e : { default: e };
8
+ const _styled__default = /* @__PURE__ */ _interopDefaultCompat(_styled);
9
+ const StyledCard = /* @__PURE__ */ _styled__default.default(ui.Card, process.env.NODE_ENV === "production" ? {
10
+ target: "ebaosvo0"
11
+ } : {
12
+ target: "ebaosvo0",
13
+ label: "StyledCard"
14
+ })("padding:", ({
15
+ theme
16
+ }) => theme.space["2"], ";text-align:left;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3Vy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GVzY3JpcHRpb24sXG4gIG5vdGVzLFxufTogRkFRUHJvcHMpID0+IChcbiAgPFN0eWxlZENhcmQ+XG4gICAgPFN0YWNrIGdhcD17Mn0gZGlyZWN0aW9uPVwicm93XCI+XG4gICAgICA8ZGl2PlxuICAgICAgICB7IXByb2R1Y3RJY29uTmFtZSAmJiBpbGx1c3RyYXRpb25UZXh0ID8gKFxuICAgICAgICAgIDxCdWxsZXQgc2VudGltZW50PVwicHJpbWFyeVwiIHRleHQ9e2lsbHVzdHJhdGlvblRleHQudG9TdHJpbmcoKX0gLz5cbiAgICAgICAgKSA6IG51bGx9XG4gICAgICAgIHtwcm9kdWN0SWNvbk5hbWUgPyAoXG4gICAgICAgICAgPFByb2R1Y3RJY29uIG5hbWU9e3Byb2R1Y3RJY29uTmFtZX0gc2l6ZT1cInhsYXJnZVwiIC8+XG4gICAgICAgICkgOiBudWxsfVxuICAgICAgPC9kaXY+XG4gICAgICA8ZGl2PlxuICAgICAgICA8VGV4dCBhcz1cInBcIiB2YXJpYW50PVwiYm9keVN0cm9uZ2VyXCIgcHJvbWluZW5jZT1cInN0cm9uZ1wiPlxuICAgICAgICAgIHt0aXRsZX1cbiAgICAgICAgPC9UZXh0PlxuICAgICAgICA8VGV4dCBhcz1cImRpdlwiIHZhcmlhbnQ9XCJib2R5U21hbGxcIj5cbiAgICAgICAgICB7ZGVzY3JpcHRpb259XG4gICAgICAgICAge25vdGVzID8gKFxuICAgICAgICAgICAgPFRleHQgdmFyaWFudD1cImNhcHRpb25cIiBhcz1cInNtYWxsXCIgaXRhbGljPlxuICAgICAgICAgICAgICB7bm90ZXN9XG4gICAgICAgICAgICA8L1RleHQ+XG4gICAgICAgICAgKSA6IG51bGx9XG4gICAgICAgIDwvVGV4dD5cbiAgICAgIDwvZGl2PlxuICAgIDwvU3RhY2s+XG4gIDwvU3R5bGVkQ2FyZD5cbilcbiJdfQ== */"));
17
+ const FAQ = ({
18
+ productIconName,
19
+ illustrationText,
20
+ title,
21
+ description,
22
+ notes
23
+ }) => /* @__PURE__ */ jsxRuntime.jsx(StyledCard, { children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Stack, { gap: 2, direction: "row", children: [
24
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
25
+ !productIconName && illustrationText ? /* @__PURE__ */ jsxRuntime.jsx(ui.Bullet, { sentiment: "primary", text: illustrationText.toString() }) : null,
26
+ productIconName ? /* @__PURE__ */ jsxRuntime.jsx(icons.ProductIcon, { name: productIconName, size: "xlarge" }) : null
27
+ ] }),
28
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
29
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { as: "p", variant: "bodyStronger", prominence: "strong", children: title }),
30
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Text, { as: "div", variant: "bodySmall", children: [
31
+ description,
32
+ notes ? /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { variant: "caption", as: "small", italic: true, children: notes }) : null
33
+ ] })
34
+ ] })
35
+ ] }) });
36
+ exports.FAQ = FAQ;
@@ -1,11 +1,15 @@
1
1
  import { jsx, jsxs } from "@emotion/react/jsx-runtime";
2
- import styled from "@emotion/styled";
2
+ import _styled from "@emotion/styled/base";
3
3
  import { ProductIcon } from "@ultraviolet/icons";
4
4
  import { Card, Stack, Bullet, Text } from "@ultraviolet/ui";
5
- const StyledCard = styled(Card)`
6
- padding: ${({ theme }) => theme.space["2"]};
7
- text-align: left;
8
- `;
5
+ const StyledCard = /* @__PURE__ */ _styled(Card, process.env.NODE_ENV === "production" ? {
6
+ target: "ebaosvo0"
7
+ } : {
8
+ target: "ebaosvo0",
9
+ label: "StyledCard"
10
+ })("padding:", ({
11
+ theme
12
+ }) => theme.space["2"], ";text-align:left;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbG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pID0+IChcbiAgPFN0eWxlZENhcmQ+XG4gICAgPFN0YWNrIGdhcD17Mn0gZGlyZWN0aW9uPVwicm93XCI+XG4gICAgICA8ZGl2PlxuICAgICAgICB7IXByb2R1Y3RJY29uTmFtZSAmJiBpbGx1c3RyYXRpb25UZXh0ID8gKFxuICAgICAgICAgIDxCdWxsZXQgc2VudGltZW50PVwicHJpbWFyeVwiIHRleHQ9e2lsbHVzdHJhdGlvblRleHQudG9TdHJpbmcoKX0gLz5cbiAgICAgICAgKSA6IG51bGx9XG4gICAgICAgIHtwcm9kdWN0SWNvbk5hbWUgPyAoXG4gICAgICAgICAgPFByb2R1Y3RJY29uIG5hbWU9e3Byb2R1Y3RJY29uTmFtZX0gc2l6ZT1cInhsYXJnZVwiIC8+XG4gICAgICAgICkgOiBudWxsfVxuICAgICAgPC9kaXY+XG4gICAgICA8ZGl2PlxuICAgICAgICA8VGV4dCBhcz1cInBcIiB2YXJpYW50PVwiYm9keVN0cm9uZ2VyXCIgcHJvbWluZW5jZT1cInN0cm9uZ1wiPlxuICAgICAgICAgIHt0aXRsZX1cbiAgICAgICAgPC9UZXh0PlxuICAgICAgICA8VGV4dCBhcz1cImRpdlwiIHZhcmlhbnQ9XCJib2R5U21hbGxcIj5cbiAgICAgICAgICB7ZGVzY3JpcHRpb259XG4gICAgICAgICAge25vdGVzID8gKFxuICAgICAgICAgICAgPFRleHQgdmFyaWFudD1cImNhcHRpb25cIiBhcz1cInNtYWxsXCIgaXRhbGljPlxuICAgICAgICAgICAgICB7bm90ZXN9XG4gICAgICAgICAgICA8L1RleHQ+XG4gICAgICAgICAgKSA6IG51bGx9XG4gICAgICAgIDwvVGV4dD5cbiAgICAgIDwvZGl2PlxuICAgIDwvU3RhY2s+XG4gIDwvU3R5bGVkQ2FyZD5cbilcbiJdfQ== */"));
9
13
  const FAQ = ({
10
14
  productIconName,
11
15
  illustrationText,
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const jsxRuntime = require("@emotion/react/jsx-runtime");
4
+ const NavigationContent = require("./NavigationContent.cjs");
5
+ const Group = require("./components/Group.cjs");
6
+ const Item = require("./components/Item.cjs");
7
+ const PinnedItems = require("./components/PinnedItems.cjs");
8
+ const Separator = require("./components/Separator.cjs");
9
+ const Navigation = ({
10
+ children,
11
+ logo,
12
+ onWidthResize,
13
+ className,
14
+ id
15
+ }) => /* @__PURE__ */ jsxRuntime.jsx(NavigationContent.NavigationContent, { logo, className, onWidthResize, id, children });
16
+ Navigation.Group = Group.Group;
17
+ Navigation.Item = Item.Item;
18
+ Navigation.PinnedItems = PinnedItems.PinnedItems;
19
+ Navigation.Separator = Separator.Separator;
20
+ exports.Navigation = Navigation;
@@ -31,7 +31,7 @@ export declare const Navigation: {
31
31
  * some part of your logo
32
32
  */
33
33
  }) => import("@emotion/react/jsx-runtime").JSX.Element | null;
34
- Item: ({ children, categoryIcon, categoryIconVariant, label, subLabel, badgeText, badgeSentiment, href, onClick, onPinUnpinClick, toggle, active, noPinButton, type, hasParents, as, disabled, noExpand, index, id, }: {
34
+ Item: ({ children, categoryIcon, categoryIconVariant, label, subLabel, badgeText, badgeSentiment, href, onClick, onClickPinUnpin, toggle, active, noPinButton, type, hasParents, as, disabled, noExpand, index, id, }: {
35
35
  children?: ReactNode;
36
36
  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
37
  categoryIconVariant?: "neutral" | "primary" | undefined;
@@ -42,7 +42,7 @@ export declare const Navigation: {
42
42
  badgeSentiment?: import("node_modules/@ultraviolet/ui/dist/theme").Color | undefined;
43
43
  href?: string | undefined;
44
44
  onClick?: ((toggle?: boolean | undefined) => void) | undefined;
45
- onPinUnpinClick?: ((event: import("react").MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefined;
45
+ onClickPinUnpin?: ((parameters: import("./constants").PinUnPinType) => void) | undefined;
46
46
  toggle?: boolean | undefined;
47
47
  active?: boolean | undefined;
48
48
  noPinButton?: boolean | undefined;
@@ -53,8 +53,9 @@ export declare const Navigation: {
53
53
  noExpand?: boolean | undefined;
54
54
  disabled?: boolean | undefined;
55
55
  }) => import("@emotion/react/jsx-runtime").JSX.Element | null;
56
- PinnedItems: ({ toggle }: {
56
+ PinnedItems: ({ toggle, onReorder }: {
57
57
  toggle?: boolean | undefined;
58
+ onReorder?: ((pinnedItems: string[]) => void) | undefined;
58
59
  }) => import("@emotion/react/jsx-runtime").JSX.Element | null;
59
60
  Separator: () => import("@emotion/react/jsx-runtime").JSX.Element;
60
61
  };
@@ -10,16 +10,7 @@ const Navigation = ({
10
10
  onWidthResize,
11
11
  className,
12
12
  id
13
- }) => /* @__PURE__ */ jsx(
14
- NavigationContent,
15
- {
16
- logo,
17
- className,
18
- onWidthResize,
19
- id,
20
- children
21
- }
22
- );
13
+ }) => /* @__PURE__ */ jsx(NavigationContent, { logo, className, onWidthResize, id, children });
23
14
  Navigation.Group = Group;
24
15
  Navigation.Item = Item;
25
16
  Navigation.PinnedItems = PinnedItems;