@kaio-xyz/design-system 1.1.11 → 1.1.13

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/index.d.ts CHANGED
@@ -19,6 +19,6 @@ export { Modal } from "@/components/atoms/modal";
19
19
  export { InfoModal, OtpModal, ConfirmModal, ConfirmModalProps } from "@/components/molecules/modal";
20
20
  export { DropdownMenu } from "@/components/atoms/dropdown-menu";
21
21
  export { Tooltip } from "@/components/atoms/tooltip";
22
- export { InvestmentGraph, TimeFrame, Timeframes, DataPoint } from "@/components/molecules/investments-graph";
22
+ export { InvestmentGraph, TimeFrame, periodOptions, Timeframes, DataPoint } from "@/components/molecules/investments-graph";
23
23
  export { InvestmentsHeader } from "@/components/molecules/investments-header";
24
24
  export { Table, TableColumn } from "@/components/atoms/table";
package/dist/index.esm.js CHANGED
@@ -668,12 +668,6 @@ var Tooltip = function (_a) {
668
668
  return (jsx(RTooltip.Provider, { children: jsxs(RTooltip.Root, { children: [jsx(RTooltip.Trigger, { className: style$3.trigger, asChild: true, children: children }), jsx(RTooltip.Portal, { children: jsxs(RTooltip.Content, { className: style$3.content, sideOffset: 2, children: [jsx(SvgInfo, { className: style$3.icon, width: 20, height: 20 }), jsxs("div", { className: style$3.body, children: [jsx("span", { className: style$3.title, children: title }), description && jsx("span", { className: style$3.description, children: description })] }), jsx(RTooltip.Arrow, { className: style$3.arrow })] }) })] }) }));
669
669
  };
670
670
 
671
- var Timeframes$1 = {
672
- month: "month",
673
- quarter: "quarter",
674
- halfYear: "half-year",
675
- year: "year",
676
- };
677
671
  var isEnter = function (e) { return e.key === "Enter"; };
678
672
  var dateFormatOptions = {
679
673
  year: "numeric",
@@ -716,12 +710,6 @@ var formatNumberWithCurrency = function (amount, currency) {
716
710
  if (currency === void 0) { currency = "$"; }
717
711
  return "".concat(currency, " ").concat(formatNumber(amount, isDollarCurrency(currency) ? 2 : 6));
718
712
  };
719
- var periodOptions = [
720
- { value: Timeframes$1.month, label: "1M" },
721
- { value: Timeframes$1.quarter, label: "3M" },
722
- { value: Timeframes$1.halfYear, label: "6M" },
723
- { value: Timeframes$1.year, label: "1Y" },
724
- ];
725
713
 
726
714
  var style$2 = {"root":"investments-graph-module__root__-BKux","paddedWrapper":"investments-graph-module__paddedWrapper__afkOR","timeframeSelector":"investments-graph-module__timeframeSelector__7TkDU","timeFrameValue":"investments-graph-module__timeFrameValue__CQRqG"};
727
715
 
@@ -731,6 +719,12 @@ var Timeframes = {
731
719
  halfYear: "half-year",
732
720
  year: "year",
733
721
  };
722
+ var periodOptions = [
723
+ { value: Timeframes.month, label: "1M" },
724
+ { value: Timeframes.quarter, label: "3M" },
725
+ { value: Timeframes.halfYear, label: "6M" },
726
+ { value: Timeframes.year, label: "1Y" },
727
+ ];
734
728
  var getOffset = function (dataPoints) {
735
729
  var dataMax = Math.max.apply(Math, dataPoints.map(function (i) { return i.value; }));
736
730
  var dataMin = Math.min.apply(Math, dataPoints.map(function (i) { return i.value; }));
@@ -863,5 +857,5 @@ var Table = function (_a) {
863
857
  : (jsx("div", { "data-test": dataTest, className: style.tableWrapper, "data-is-row-clickable": !!onRowClicked, children: jsx(DataTable, __assign({ columns: columns, data: data, customStyles: tableCustomStyles, onRowClicked: onRowClicked }, rest)) }));
864
858
  };
865
859
 
866
- export { Accordion, Badge, Button, Checkbox, Clipboard, ConfirmModal, Container, DropdownMenu, FormSelect, InfoModal, InvestmentGraph, InvestmentsHeader, List, ListItem, Loader, Modal, OtpModal, PasswordField, Select, SpinnedIcon, Stack, Step, Stepper, Table, TextField, Timeframes, Tooltip, ValidatePasswordField };
860
+ export { Accordion, Badge, Button, Checkbox, Clipboard, ConfirmModal, Container, DropdownMenu, FormSelect, InfoModal, InvestmentGraph, InvestmentsHeader, List, ListItem, Loader, Modal, OtpModal, PasswordField, Select, SpinnedIcon, Stack, Step, Stepper, Table, TextField, Timeframes, Tooltip, ValidatePasswordField, periodOptions };
867
861
  //# sourceMappingURL=index.esm.js.map