@ttn-shared/ui 1.2.7 → 1.3.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/index.cjs +9 -5
- package/dist/index.css +0 -1
- package/dist/index.js +9 -5
- package/package.json +1 -1
- package/styles.css +0 -1
package/dist/index.cjs
CHANGED
|
@@ -2444,13 +2444,14 @@ var HelpModal = ({ opened, onClose }) => {
|
|
|
2444
2444
|
var MC2 = __toESM(require("@mantine/core"), 1);
|
|
2445
2445
|
var TI3 = __toESM(require("@tabler/icons-react"), 1);
|
|
2446
2446
|
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
2447
|
+
var cloudImage = `data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 72'><path d='M-77.4698 71.426C-77.4698 71.426 -102.699 40.2305 -82.8905 21.109C-53.4064 -7.35147 -33.3402 33.0955 -21.9827 16.3565C-3.19499 -11.3325 58.2673 -4.22647 39.4625 30.2055C29.5967 48.27 62.6052 45.5705 49.1486 71.462L-77.4698 71.426Z' fill='%23EBF3FA'/></svg>`;
|
|
2447
2448
|
var ChangeAccountModal = ({
|
|
2448
2449
|
opened,
|
|
2449
2450
|
onClose,
|
|
2450
2451
|
accounts,
|
|
2451
2452
|
onChangeAccount
|
|
2452
2453
|
}) => {
|
|
2453
|
-
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(MC2.Modal, { opened, onClose, size: 1200, title: "
|
|
2454
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(MC2.Modal, { opened, onClose, size: 1200, title: "Seleccionar cuenta", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(MC2.Grid, { px: "lg", children: accounts.map((account, accountIndex) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(MC2.Grid.Col, { span: 6, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(MC2.Menu, { position: "right", width: 210, children: [
|
|
2454
2455
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(MC2.Menu.Target, { "data-testid": `change-account-account-option-${accountIndex}`, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
|
|
2455
2456
|
MC2.Group,
|
|
2456
2457
|
{
|
|
@@ -2462,7 +2463,10 @@ var ChangeAccountModal = ({
|
|
|
2462
2463
|
border: `1px solid ${theme.colors.gray[3]}`,
|
|
2463
2464
|
borderRadius: theme.radius.md,
|
|
2464
2465
|
padding: "8px",
|
|
2465
|
-
cursor: "pointer"
|
|
2466
|
+
cursor: "pointer",
|
|
2467
|
+
backgroundImage: `url("${cloudImage}")`,
|
|
2468
|
+
backgroundSize: "contain",
|
|
2469
|
+
backgroundRepeat: "no-repeat"
|
|
2466
2470
|
}),
|
|
2467
2471
|
children: [
|
|
2468
2472
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", {}),
|
|
@@ -2626,10 +2630,10 @@ var MC5 = __toESM(require("@mantine/core"), 1);
|
|
|
2626
2630
|
var TI6 = __toESM(require("@tabler/icons-react"), 1);
|
|
2627
2631
|
|
|
2628
2632
|
// src/components/sidebar/SidebarMenu.tsx
|
|
2629
|
-
var MC4 = __toESM(require("@mantine/core"), 1);
|
|
2630
|
-
var TI5 = __toESM(require("@tabler/icons-react"), 1);
|
|
2631
2633
|
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
2632
2634
|
var import_react_router_dom = require("react-router-dom");
|
|
2635
|
+
var MC4 = __toESM(require("@mantine/core"), 1);
|
|
2636
|
+
var TI5 = __toESM(require("@tabler/icons-react"), 1);
|
|
2633
2637
|
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
2634
2638
|
var SidebarMenu = ({
|
|
2635
2639
|
id,
|
|
@@ -2650,7 +2654,7 @@ var SidebarMenu = ({
|
|
|
2650
2654
|
"data-testid": `sidebar-menu-${label}`,
|
|
2651
2655
|
children: [
|
|
2652
2656
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(MC4.Flex, { align: "center", flex: 1, children: [
|
|
2653
|
-
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(MC4.Center, {
|
|
2657
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(MC4.Center, { miw: 40, mih: 40, me: 10, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
2654
2658
|
MC4.Box,
|
|
2655
2659
|
{
|
|
2656
2660
|
className: "ttn-sidebar-menu-icon",
|
package/dist/index.css
CHANGED
package/dist/index.js
CHANGED
|
@@ -2456,13 +2456,14 @@ var HelpModal = ({ opened, onClose }) => {
|
|
|
2456
2456
|
import * as MC2 from "@mantine/core";
|
|
2457
2457
|
import * as TI3 from "@tabler/icons-react";
|
|
2458
2458
|
import { jsx as jsx11, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
2459
|
+
var cloudImage = `data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 72'><path d='M-77.4698 71.426C-77.4698 71.426 -102.699 40.2305 -82.8905 21.109C-53.4064 -7.35147 -33.3402 33.0955 -21.9827 16.3565C-3.19499 -11.3325 58.2673 -4.22647 39.4625 30.2055C29.5967 48.27 62.6052 45.5705 49.1486 71.462L-77.4698 71.426Z' fill='%23EBF3FA'/></svg>`;
|
|
2459
2460
|
var ChangeAccountModal = ({
|
|
2460
2461
|
opened,
|
|
2461
2462
|
onClose,
|
|
2462
2463
|
accounts,
|
|
2463
2464
|
onChangeAccount
|
|
2464
2465
|
}) => {
|
|
2465
|
-
return /* @__PURE__ */ jsx11(MC2.Modal, { opened, onClose, size: 1200, title: "
|
|
2466
|
+
return /* @__PURE__ */ jsx11(MC2.Modal, { opened, onClose, size: 1200, title: "Seleccionar cuenta", children: /* @__PURE__ */ jsx11(MC2.Grid, { px: "lg", children: accounts.map((account, accountIndex) => /* @__PURE__ */ jsx11(MC2.Grid.Col, { span: 6, children: /* @__PURE__ */ jsxs10(MC2.Menu, { position: "right", width: 210, children: [
|
|
2466
2467
|
/* @__PURE__ */ jsx11(MC2.Menu.Target, { "data-testid": `change-account-account-option-${accountIndex}`, children: /* @__PURE__ */ jsxs10(
|
|
2467
2468
|
MC2.Group,
|
|
2468
2469
|
{
|
|
@@ -2474,7 +2475,10 @@ var ChangeAccountModal = ({
|
|
|
2474
2475
|
border: `1px solid ${theme.colors.gray[3]}`,
|
|
2475
2476
|
borderRadius: theme.radius.md,
|
|
2476
2477
|
padding: "8px",
|
|
2477
|
-
cursor: "pointer"
|
|
2478
|
+
cursor: "pointer",
|
|
2479
|
+
backgroundImage: `url("${cloudImage}")`,
|
|
2480
|
+
backgroundSize: "contain",
|
|
2481
|
+
backgroundRepeat: "no-repeat"
|
|
2478
2482
|
}),
|
|
2479
2483
|
children: [
|
|
2480
2484
|
/* @__PURE__ */ jsx11("div", {}),
|
|
@@ -2638,10 +2642,10 @@ import * as MC5 from "@mantine/core";
|
|
|
2638
2642
|
import * as TI6 from "@tabler/icons-react";
|
|
2639
2643
|
|
|
2640
2644
|
// src/components/sidebar/SidebarMenu.tsx
|
|
2641
|
-
import * as MC4 from "@mantine/core";
|
|
2642
|
-
import * as TI5 from "@tabler/icons-react";
|
|
2643
2645
|
import { Fragment as Fragment4 } from "react/jsx-runtime";
|
|
2644
2646
|
import { NavLink } from "react-router-dom";
|
|
2647
|
+
import * as MC4 from "@mantine/core";
|
|
2648
|
+
import * as TI5 from "@tabler/icons-react";
|
|
2645
2649
|
import { Fragment as Fragment5, jsx as jsx13, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
2646
2650
|
var SidebarMenu = ({
|
|
2647
2651
|
id,
|
|
@@ -2662,7 +2666,7 @@ var SidebarMenu = ({
|
|
|
2662
2666
|
"data-testid": `sidebar-menu-${label}`,
|
|
2663
2667
|
children: [
|
|
2664
2668
|
/* @__PURE__ */ jsxs12(MC4.Flex, { align: "center", flex: 1, children: [
|
|
2665
|
-
/* @__PURE__ */ jsx13(MC4.Center, {
|
|
2669
|
+
/* @__PURE__ */ jsx13(MC4.Center, { miw: 40, mih: 40, me: 10, children: /* @__PURE__ */ jsx13(
|
|
2666
2670
|
MC4.Box,
|
|
2667
2671
|
{
|
|
2668
2672
|
className: "ttn-sidebar-menu-icon",
|
package/package.json
CHANGED