@tmf_ciclica/ciclicastorybook 1.2.148 → 1.2.149
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.js +8 -8
- package/dist/index.es.js +71 -63
- package/package.json +12 -13
package/dist/index.es.js
CHANGED
|
@@ -896,11 +896,11 @@ const La = "_buttonsContainer_1ks7x_2", Ma = "_vertical_1ks7x_6", Ra = "_horizon
|
|
|
896
896
|
top: Ba,
|
|
897
897
|
bottom: Fa,
|
|
898
898
|
right: za
|
|
899
|
-
},
|
|
899
|
+
}, ct = ({ text: e, position: t, styleCustom: n = null }) => {
|
|
900
900
|
const { t: r } = ce();
|
|
901
901
|
return /* @__PURE__ */ u("div", { className: `tooltip ${ja[t]}`, style: n, children: r(e) });
|
|
902
902
|
};
|
|
903
|
-
|
|
903
|
+
ct.propTypes = {
|
|
904
904
|
text: i.string.isRequired,
|
|
905
905
|
position: i.oneOf(["top", "bottom", "left", "right"]).isRequired,
|
|
906
906
|
styleCustom: i.object
|
|
@@ -943,7 +943,7 @@ const qa = ({
|
|
|
943
943
|
children: f
|
|
944
944
|
}
|
|
945
945
|
),
|
|
946
|
-
o && /* @__PURE__ */ u(
|
|
946
|
+
o && /* @__PURE__ */ u(ct, { text: y, position: s })
|
|
947
947
|
] }, c);
|
|
948
948
|
})
|
|
949
949
|
}
|
|
@@ -2408,7 +2408,7 @@ const Sl = "_indicatorsCategory_arwy3_2", kl = "_title_arwy3_5", Tl = "_list_arw
|
|
|
2408
2408
|
indicatorsCategory: Sl,
|
|
2409
2409
|
title: kl,
|
|
2410
2410
|
list: Tl
|
|
2411
|
-
}, $l = "data:image/svg+xml,%3csvg%20width='8'%20height='8'%20viewBox='0%200%208%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.32549%200H4.65882V3.40392H8V4.61176H4.65882V8H3.32549V4.61176H0V3.40392H3.32549V0Z'%20fill='%23605B56'/%3e%3c/svg%3e", Nl = "data:image/svg+xml,%3csvg%20width='8'%20height='8'%20viewBox='0%200%208%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.32549%200H4.65882V3.40392H8V4.61176H4.65882V8H3.32549V4.61176H0V3.40392H3.32549V0Z'%20fill='%23ffffff'/%3e%3c/svg%3e",
|
|
2411
|
+
}, $l = "data:image/svg+xml,%3csvg%20width='8'%20height='8'%20viewBox='0%200%208%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.32549%200H4.65882V3.40392H8V4.61176H4.65882V8H3.32549V4.61176H0V3.40392H3.32549V0Z'%20fill='%23605B56'/%3e%3c/svg%3e", Nl = "data:image/svg+xml,%3csvg%20width='8'%20height='8'%20viewBox='0%200%208%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.32549%200H4.65882V3.40392H8V4.61176H4.65882V8H3.32549V4.61176H0V3.40392H3.32549V0Z'%20fill='%23ffffff'/%3e%3c/svg%3e", ot = Jr((e) => ({
|
|
2412
2412
|
activeColor: null,
|
|
2413
2413
|
defaultColor: "#92898A",
|
|
2414
2414
|
multiple: !1,
|
|
@@ -2454,7 +2454,7 @@ const Sl = "_indicatorsCategory_arwy3_2", kl = "_title_arwy3_5", Tl = "_list_arw
|
|
|
2454
2454
|
defaultColor: h,
|
|
2455
2455
|
multiple: b,
|
|
2456
2456
|
activeIndicatorSubcategory: f
|
|
2457
|
-
} =
|
|
2457
|
+
} = ot((C) => C), [x, w] = le(!1);
|
|
2458
2458
|
ee(() => {
|
|
2459
2459
|
n && w(
|
|
2460
2460
|
b ? n.some(
|
|
@@ -2468,7 +2468,7 @@ const Sl = "_indicatorsCategory_arwy3_2", kl = "_title_arwy3_5", Tl = "_list_arw
|
|
|
2468
2468
|
{
|
|
2469
2469
|
className: xe.optionContainer,
|
|
2470
2470
|
onClick: () => {
|
|
2471
|
-
|
|
2471
|
+
ot.setState((C) => ({ ...C, activeIndicatorType: "cat" })), o("cat");
|
|
2472
2472
|
},
|
|
2473
2473
|
children: [
|
|
2474
2474
|
/* @__PURE__ */ u(
|
|
@@ -2499,7 +2499,7 @@ const Sl = "_indicatorsCategory_arwy3_2", kl = "_title_arwy3_5", Tl = "_list_arw
|
|
|
2499
2499
|
{
|
|
2500
2500
|
className: xe.optionContainer,
|
|
2501
2501
|
onClick: () => {
|
|
2502
|
-
|
|
2502
|
+
ot.setState((C) => ({ ...C, activeIndicatorType: "abs" })), o("abs");
|
|
2503
2503
|
},
|
|
2504
2504
|
children: [
|
|
2505
2505
|
/* @__PURE__ */ u(
|
|
@@ -2530,7 +2530,7 @@ const Sl = "_indicatorsCategory_arwy3_2", kl = "_title_arwy3_5", Tl = "_list_arw
|
|
|
2530
2530
|
{
|
|
2531
2531
|
className: xe.optionContainer,
|
|
2532
2532
|
onClick: () => {
|
|
2533
|
-
|
|
2533
|
+
ot.setState((O) => ({ ...O, activeIndicatorSubcategory: C.title }));
|
|
2534
2534
|
let N = Qi({
|
|
2535
2535
|
indicator: e,
|
|
2536
2536
|
subcatIndex: _,
|
|
@@ -2659,7 +2659,7 @@ const Bl = "_indicatorsSubCategory_1nuug_2", Fl = "_list_1nuug_11", Eo = {
|
|
|
2659
2659
|
defaultColor: b,
|
|
2660
2660
|
multiple: f,
|
|
2661
2661
|
activeIndicatorSubcategory: x
|
|
2662
|
-
} =
|
|
2662
|
+
} = ot((w) => w);
|
|
2663
2663
|
return /* @__PURE__ */ k(
|
|
2664
2664
|
Qr.div,
|
|
2665
2665
|
{
|
|
@@ -2712,7 +2712,7 @@ const es = ({
|
|
|
2712
2712
|
onChangeIndicatorSubcategory: d
|
|
2713
2713
|
}) => {
|
|
2714
2714
|
var w;
|
|
2715
|
-
const { t: m } = ce(), { activeIndicatorType: g, activeColor: y, defaultColor: h, multiple: b } =
|
|
2715
|
+
const { t: m } = ce(), { activeIndicatorType: g, activeColor: y, defaultColor: h, multiple: b } = ot((S) => S), [f, x] = le(!1);
|
|
2716
2716
|
return ee(() => {
|
|
2717
2717
|
x(r === t);
|
|
2718
2718
|
}, [r, t]), /* @__PURE__ */ k(
|
|
@@ -2805,7 +2805,7 @@ const zl = "_indicatorsList_13b3m_2", jl = "_title_13b3m_6", Oo = {
|
|
|
2805
2805
|
}) => {
|
|
2806
2806
|
const { t: d } = ce(), [m, g] = le(), [y, h] = le(), [b, f] = le();
|
|
2807
2807
|
ee(() => {
|
|
2808
|
-
|
|
2808
|
+
ot.setState({
|
|
2809
2809
|
activeColor: t || "",
|
|
2810
2810
|
defaultColor: n || "",
|
|
2811
2811
|
multiple: o || !1,
|
|
@@ -2823,11 +2823,11 @@ const zl = "_indicatorsList_13b3m_2", jl = "_title_13b3m_6", Oo = {
|
|
|
2823
2823
|
subcatIndex: 0,
|
|
2824
2824
|
indicatorSubcategory: N.title
|
|
2825
2825
|
});
|
|
2826
|
-
|
|
2826
|
+
ot.setState({
|
|
2827
2827
|
activeIndicatorSubcategory: N.title
|
|
2828
2828
|
}), v(O, !0), c && c({ indicator: O });
|
|
2829
2829
|
} else
|
|
2830
|
-
|
|
2830
|
+
ot.setState({ activeIndicatorSubcategory: null }), v(_);
|
|
2831
2831
|
}, $ = ({ indicator: _ }) => {
|
|
2832
2832
|
v(_, !0), c && c({ indicator: _ });
|
|
2833
2833
|
}, v = (_, N = !1) => {
|
|
@@ -2853,12 +2853,20 @@ const zl = "_indicatorsList_13b3m_2", jl = "_title_13b3m_6", Oo = {
|
|
|
2853
2853
|
} else
|
|
2854
2854
|
v(s), C(s.name);
|
|
2855
2855
|
}, []), ee(() => {
|
|
2856
|
-
if (s != b)
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2856
|
+
if (s != b) {
|
|
2857
|
+
console.log(
|
|
2858
|
+
"onchangeDefaultValue in indicatorsList: ",
|
|
2859
|
+
s,
|
|
2860
|
+
"activeIndicator: ",
|
|
2861
|
+
b
|
|
2862
|
+
);
|
|
2863
|
+
const { activeIndicatorSubcategory: _ } = s;
|
|
2864
|
+
if (_ && ot.setState({ activeIndicatorSubcategory: _ }), o && s && Array.isArray(s)) {
|
|
2865
|
+
let N = b && b.length > 0 ? [...b] : [];
|
|
2866
|
+
f([...N, ...s]), C(s[0].name);
|
|
2860
2867
|
} else
|
|
2861
2868
|
v(s), C(s.name);
|
|
2869
|
+
}
|
|
2862
2870
|
}, [s]);
|
|
2863
2871
|
const C = (_) => {
|
|
2864
2872
|
const N = e.find((O) => {
|
|
@@ -5097,14 +5105,14 @@ function O0() {
|
|
|
5097
5105
|
return Go || (Go = 1, process.env.NODE_ENV === "production" ? Rn.exports = /* @__PURE__ */ N0() : Rn.exports = /* @__PURE__ */ E0()), Rn.exports;
|
|
5098
5106
|
}
|
|
5099
5107
|
var Kn = /* @__PURE__ */ O0();
|
|
5100
|
-
function
|
|
5108
|
+
function ut(e) {
|
|
5101
5109
|
if (typeof e != "object" || e === null)
|
|
5102
5110
|
return !1;
|
|
5103
5111
|
const t = Object.getPrototypeOf(e);
|
|
5104
5112
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
5105
5113
|
}
|
|
5106
5114
|
function us(e) {
|
|
5107
|
-
if (/* @__PURE__ */ Q.isValidElement(e) || Kn.isValidElementType(e) || !
|
|
5115
|
+
if (/* @__PURE__ */ Q.isValidElement(e) || Kn.isValidElementType(e) || !ut(e))
|
|
5108
5116
|
return e;
|
|
5109
5117
|
const t = {};
|
|
5110
5118
|
return Object.keys(e).forEach((n) => {
|
|
@@ -5117,9 +5125,9 @@ function He(e, t, n = {
|
|
|
5117
5125
|
const r = n.clone ? {
|
|
5118
5126
|
...e
|
|
5119
5127
|
} : e;
|
|
5120
|
-
return
|
|
5121
|
-
/* @__PURE__ */ Q.isValidElement(t[o]) || Kn.isValidElementType(t[o]) ? r[o] = t[o] :
|
|
5122
|
-
Object.prototype.hasOwnProperty.call(e, o) &&
|
|
5128
|
+
return ut(e) && ut(t) && Object.keys(t).forEach((o) => {
|
|
5129
|
+
/* @__PURE__ */ Q.isValidElement(t[o]) || Kn.isValidElementType(t[o]) ? r[o] = t[o] : ut(t[o]) && // Avoid prototype pollution
|
|
5130
|
+
Object.prototype.hasOwnProperty.call(e, o) && ut(e[o]) ? r[o] = He(e[o], t[o], n) : n.clone ? r[o] = ut(t[o]) ? us(t[o]) : t[o] : r[o] = t[o];
|
|
5123
5131
|
}), r;
|
|
5124
5132
|
}
|
|
5125
5133
|
function pn(e, t) {
|
|
@@ -6375,7 +6383,7 @@ function q2(e = {}) {
|
|
|
6375
6383
|
return function(O) {
|
|
6376
6384
|
return jn(O, _, O.theme.modularCssLayers ? f : void 0);
|
|
6377
6385
|
};
|
|
6378
|
-
if (
|
|
6386
|
+
if (ut(_)) {
|
|
6379
6387
|
const N = gs(_);
|
|
6380
6388
|
return function(E) {
|
|
6381
6389
|
return N.variants ? jn(E, N, E.theme.modularCssLayers ? f : void 0) : E.theme.modularCssLayers ? Nt(N.style, f) : N.style;
|
|
@@ -7286,7 +7294,7 @@ const Tu = {
|
|
|
7286
7294
|
tooltip: 1500
|
|
7287
7295
|
};
|
|
7288
7296
|
function $u(e) {
|
|
7289
|
-
return
|
|
7297
|
+
return ut(e) || typeof e > "u" || typeof e == "string" || typeof e == "boolean" || typeof e == "number" || Array.isArray(e);
|
|
7290
7298
|
}
|
|
7291
7299
|
function Ss(e = {}) {
|
|
7292
7300
|
const t = {
|
|
@@ -7296,7 +7304,7 @@ function Ss(e = {}) {
|
|
|
7296
7304
|
const o = Object.entries(r);
|
|
7297
7305
|
for (let s = 0; s < o.length; s++) {
|
|
7298
7306
|
const [a, l] = o[s];
|
|
7299
|
-
!$u(l) || a.startsWith("unstable_") ? delete r[a] :
|
|
7307
|
+
!$u(l) || a.startsWith("unstable_") ? delete r[a] : ut(l) && (r[a] = {
|
|
7300
7308
|
...l
|
|
7301
7309
|
}, n(r[a]));
|
|
7302
7310
|
}
|
|
@@ -7503,7 +7511,7 @@ function L(e, t, n) {
|
|
|
7503
7511
|
function un(e) {
|
|
7504
7512
|
return typeof e != "string" || !e.startsWith("hsl") ? e : vs(e);
|
|
7505
7513
|
}
|
|
7506
|
-
function
|
|
7514
|
+
function st(e, t) {
|
|
7507
7515
|
`${t}Channel` in e || (e[`${t}Channel`] = cn(un(e[t]), `MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
7508
7516
|
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`));
|
|
7509
7517
|
}
|
|
@@ -7618,9 +7626,9 @@ function Bu(e = {}, ...t) {
|
|
|
7618
7626
|
const z = v ? T(he, a ? h("palette-background-default") : p.background.default, 0.985) : Dn(p.background.default, 0.98);
|
|
7619
7627
|
L(p.SnackbarContent, "bg", z), L(p.SnackbarContent, "color", nt(() => v ? xs.text.primary : p.getContrastText(z))), L(p.SpeedDialAction, "fabHoverBg", Dn(p.background.paper, 0.15)), L(p.StepConnector, "border", A("palette-grey-600")), L(p.StepContent, "border", A("palette-grey-600")), L(p.Switch, "defaultColor", A("palette-grey-300")), L(p.Switch, "defaultDisabledColor", A("palette-grey-600")), L(p.Switch, "primaryDisabledColor", T(me, a ? h("palette-primary-main") : p.primary.main, 0.55)), L(p.Switch, "secondaryDisabledColor", T(me, a ? h("palette-secondary-main") : p.secondary.main, 0.55)), L(p.Switch, "errorDisabledColor", T(me, a ? h("palette-error-main") : p.error.main, 0.55)), L(p.Switch, "infoDisabledColor", T(me, a ? h("palette-info-main") : p.info.main, 0.55)), L(p.Switch, "successDisabledColor", T(me, a ? h("palette-success-main") : p.success.main, 0.55)), L(p.Switch, "warningDisabledColor", T(me, a ? h("palette-warning-light") : p.warning.main, 0.55)), L(p.TableCell, "border", T(me, kt(a ? h("palette-divider") : p.divider, 1), 0.68)), L(p.Tooltip, "bg", T(kt, a ? h("palette-grey-700") : p.grey[700], 0.92));
|
|
7620
7628
|
}
|
|
7621
|
-
a || (
|
|
7629
|
+
a || (st(p.background, "default"), st(p.background, "paper"), st(p.common, "background"), st(p.common, "onBackground"), st(p, "divider")), Object.keys(p).forEach((z) => {
|
|
7622
7630
|
const j = p[z];
|
|
7623
|
-
z !== "tonalOffset" && !a && j && typeof j == "object" && (j.main && L(p[z], "mainChannel", cn(un(j.main))), j.light && L(p[z], "lightChannel", cn(un(j.light))), j.dark && L(p[z], "darkChannel", cn(un(j.dark))), j.contrastText && L(p[z], "contrastTextChannel", cn(un(j.contrastText))), z === "text" && (
|
|
7631
|
+
z !== "tonalOffset" && !a && j && typeof j == "object" && (j.main && L(p[z], "mainChannel", cn(un(j.main))), j.light && L(p[z], "lightChannel", cn(un(j.light))), j.dark && L(p[z], "darkChannel", cn(un(j.dark))), j.contrastText && L(p[z], "contrastTextChannel", cn(un(j.contrastText))), z === "text" && (st(p[z], "primary"), st(p[z], "secondary")), z === "action" && (j.active && st(p[z], "active"), j.selected && st(p[z], "selected")));
|
|
7624
7632
|
});
|
|
7625
7633
|
}), _ = t.reduce((I, p) => He(I, p), _);
|
|
7626
7634
|
const N = {
|
|
@@ -8438,40 +8446,40 @@ const e1 = Dt("span", {
|
|
|
8438
8446
|
...zs
|
|
8439
8447
|
}), V.filter((Ee) => Ee.value >= v && Ee.value <= $).map((Ee, De) => {
|
|
8440
8448
|
const hr = Hn(Ee.value, v, $), xn = J[U].offset(hr);
|
|
8441
|
-
let
|
|
8442
|
-
return j === !1 ?
|
|
8449
|
+
let it;
|
|
8450
|
+
return j === !1 ? it = se.includes(Ee.value) : it = j === "normal" && (te ? Ee.value >= se[0] && Ee.value <= se[se.length - 1] : Ee.value <= se[0]) || j === "inverted" && (te ? Ee.value <= se[0] || Ee.value >= se[se.length - 1] : Ee.value >= se[0]), /* @__PURE__ */ k(Q.Fragment, {
|
|
8443
8451
|
children: [/* @__PURE__ */ u(_e, {
|
|
8444
8452
|
"data-index": De,
|
|
8445
8453
|
...pr,
|
|
8446
8454
|
...!fn(_e) && {
|
|
8447
|
-
markActive:
|
|
8455
|
+
markActive: it
|
|
8448
8456
|
},
|
|
8449
8457
|
style: {
|
|
8450
8458
|
...xn,
|
|
8451
8459
|
...pr.style
|
|
8452
8460
|
},
|
|
8453
|
-
className: vt(pr.className,
|
|
8461
|
+
className: vt(pr.className, it && re.markActive)
|
|
8454
8462
|
}), Ee.label != null ? /* @__PURE__ */ u(We, {
|
|
8455
8463
|
"aria-hidden": !0,
|
|
8456
8464
|
"data-index": De,
|
|
8457
8465
|
...mr,
|
|
8458
8466
|
...!fn(We) && {
|
|
8459
|
-
markLabelActive:
|
|
8467
|
+
markLabelActive: it
|
|
8460
8468
|
},
|
|
8461
8469
|
style: {
|
|
8462
8470
|
...xn,
|
|
8463
8471
|
...mr.style
|
|
8464
8472
|
},
|
|
8465
|
-
className: vt(re.markLabel, mr.className,
|
|
8473
|
+
className: vt(re.markLabel, mr.className, it && re.markLabelActive),
|
|
8466
8474
|
children: Ee.label
|
|
8467
8475
|
}) : null]
|
|
8468
8476
|
}, De);
|
|
8469
8477
|
}), se.map((Ee, De) => {
|
|
8470
|
-
const hr = Hn(Ee, v, $), xn = J[U].offset(hr),
|
|
8478
|
+
const hr = Hn(Ee, v, $), xn = J[U].offset(hr), it = W === "off" ? r1 : Je;
|
|
8471
8479
|
return (
|
|
8472
8480
|
/* TODO v6: Change component structure. It will help in avoiding the complicated React.cloneElement API added in SliderValueLabel component. Should be: Thumb -> Input, ValueLabel. Follow Joy UI's Slider structure. */
|
|
8473
|
-
/* @__PURE__ */ u(
|
|
8474
|
-
...!fn(
|
|
8481
|
+
/* @__PURE__ */ u(it, {
|
|
8482
|
+
...!fn(it) && {
|
|
8475
8483
|
valueLabelFormat: ue,
|
|
8476
8484
|
valueLabelDisplay: W,
|
|
8477
8485
|
value: typeof ue == "function" ? ue(p(Ee), De) : ue,
|
|
@@ -8977,7 +8985,7 @@ h1.propTypes = {
|
|
|
8977
8985
|
userName: i.string,
|
|
8978
8986
|
isLoggedIn: i.bool
|
|
8979
8987
|
};
|
|
8980
|
-
const g1 = "_elementSelector_1ox68_2", y1 = "_header_1ox68_14", b1 = "_nameDateContainer_1ox68_24", v1 = "_elementName_1ox68_40", C1 = "_elementDate_1ox68_54", _1 = "_buttonsContainer_1ox68_68", x1 = "_elementListContainer_1ox68_77", w1 = "_newElementButtonContainer_1ox68_81",
|
|
8988
|
+
const g1 = "_elementSelector_1ox68_2", y1 = "_header_1ox68_14", b1 = "_nameDateContainer_1ox68_24", v1 = "_elementName_1ox68_40", C1 = "_elementDate_1ox68_54", _1 = "_buttonsContainer_1ox68_68", x1 = "_elementListContainer_1ox68_77", w1 = "_newElementButtonContainer_1ox68_81", at = {
|
|
8981
8989
|
elementSelector: g1,
|
|
8982
8990
|
header: y1,
|
|
8983
8991
|
nameDateContainer: b1,
|
|
@@ -9067,7 +9075,7 @@ const z1 = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
|
|
|
9067
9075
|
/* @__PURE__ */ k("div", { className: Ge.elementButtons, children: [
|
|
9068
9076
|
e.processing && /* @__PURE__ */ k("div", { className: "tooltip-parent", children: [
|
|
9069
9077
|
/* @__PURE__ */ u("img", { src: I1 }),
|
|
9070
|
-
/* @__PURE__ */ u(
|
|
9078
|
+
/* @__PURE__ */ u(ct, { text: c, position: "left" })
|
|
9071
9079
|
] }),
|
|
9072
9080
|
l.filter && !e.is_default && /* @__PURE__ */ k("div", { className: "tooltip-parent", children: [
|
|
9073
9081
|
/* @__PURE__ */ u(
|
|
@@ -9079,7 +9087,7 @@ const z1 = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
|
|
|
9079
9087
|
}
|
|
9080
9088
|
),
|
|
9081
9089
|
/* @__PURE__ */ u(
|
|
9082
|
-
|
|
9090
|
+
ct,
|
|
9083
9091
|
{
|
|
9084
9092
|
text: l.filter.tooltiptext,
|
|
9085
9093
|
position: "left"
|
|
@@ -9095,7 +9103,7 @@ const z1 = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
|
|
|
9095
9103
|
children: /* @__PURE__ */ u("img", { src: R1 })
|
|
9096
9104
|
}
|
|
9097
9105
|
),
|
|
9098
|
-
/* @__PURE__ */ u(
|
|
9106
|
+
/* @__PURE__ */ u(ct, { text: l.copy.tooltiptext, position: "left" })
|
|
9099
9107
|
] }),
|
|
9100
9108
|
S && /* @__PURE__ */ k("div", { className: "tooltip-parent", children: [
|
|
9101
9109
|
/* @__PURE__ */ u(
|
|
@@ -9106,7 +9114,7 @@ const z1 = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
|
|
|
9106
9114
|
children: /* @__PURE__ */ u("img", { src: V1 })
|
|
9107
9115
|
}
|
|
9108
9116
|
),
|
|
9109
|
-
/* @__PURE__ */ u(
|
|
9117
|
+
/* @__PURE__ */ u(ct, { text: l.edit.tooltiptext, position: "left" })
|
|
9110
9118
|
] }),
|
|
9111
9119
|
l.info && e.is_default && /* @__PURE__ */ k("div", { className: "tooltip-parent", children: [
|
|
9112
9120
|
/* @__PURE__ */ u(
|
|
@@ -9117,7 +9125,7 @@ const z1 = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
|
|
|
9117
9125
|
children: /* @__PURE__ */ u("img", { src: B1 })
|
|
9118
9126
|
}
|
|
9119
9127
|
),
|
|
9120
|
-
/* @__PURE__ */ u(
|
|
9128
|
+
/* @__PURE__ */ u(ct, { text: l.info.tooltiptext, position: "left" })
|
|
9121
9129
|
] }),
|
|
9122
9130
|
$ && /* @__PURE__ */ k("div", { className: "tooltip-parent", children: [
|
|
9123
9131
|
/* @__PURE__ */ u(
|
|
@@ -9129,7 +9137,7 @@ const z1 = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
|
|
|
9129
9137
|
}
|
|
9130
9138
|
),
|
|
9131
9139
|
/* @__PURE__ */ u(
|
|
9132
|
-
|
|
9140
|
+
ct,
|
|
9133
9141
|
{
|
|
9134
9142
|
text: l.trash.tooltiptext,
|
|
9135
9143
|
position: "left"
|
|
@@ -9138,7 +9146,7 @@ const z1 = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
|
|
|
9138
9146
|
] }),
|
|
9139
9147
|
e.is_default && /* @__PURE__ */ k("div", { className: "tooltip-parent", children: [
|
|
9140
9148
|
/* @__PURE__ */ u("img", { src: P1 }),
|
|
9141
|
-
/* @__PURE__ */ u(
|
|
9149
|
+
/* @__PURE__ */ u(ct, { text: d, position: "left" })
|
|
9142
9150
|
] })
|
|
9143
9151
|
] }),
|
|
9144
9152
|
s && /* @__PURE__ */ u("div", { className: Ge.break }),
|
|
@@ -9251,27 +9259,27 @@ const bi = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
9251
9259
|
return /* @__PURE__ */ k(
|
|
9252
9260
|
"div",
|
|
9253
9261
|
{
|
|
9254
|
-
className:
|
|
9262
|
+
className: at.elementSelector,
|
|
9255
9263
|
style: { color: n, ...s },
|
|
9256
9264
|
children: [
|
|
9257
9265
|
/* @__PURE__ */ k(
|
|
9258
9266
|
"div",
|
|
9259
9267
|
{
|
|
9260
|
-
className:
|
|
9268
|
+
className: at.header,
|
|
9261
9269
|
style: { borderBottom: `1px solid ${n}` },
|
|
9262
9270
|
children: [
|
|
9263
|
-
/* @__PURE__ */ u("div", { className:
|
|
9271
|
+
/* @__PURE__ */ u("div", { className: at.nameDateContainer, children: Object.keys(c).map((v) => v === "name" ? /* @__PURE__ */ u("div", { className: at.elementName, children: /* @__PURE__ */ k("button", { onClick: () => $("name"), children: [
|
|
9264
9272
|
/* @__PURE__ */ u("span", { children: b(c.name) }),
|
|
9265
9273
|
/* @__PURE__ */ u("img", { src: bi, alt: "order arrow" })
|
|
9266
|
-
] }) }, v) : v === "data" ? /* @__PURE__ */ u("div", { className:
|
|
9274
|
+
] }) }, v) : v === "data" ? /* @__PURE__ */ u("div", { className: at.elementDate, children: /* @__PURE__ */ k("button", { onClick: () => $("created_at"), children: [
|
|
9267
9275
|
/* @__PURE__ */ u("span", { children: b(c.data) }),
|
|
9268
9276
|
/* @__PURE__ */ u("img", { src: bi, alt: "order arrow" })
|
|
9269
|
-
] }) }, v) : /* @__PURE__ */ u("div", { className:
|
|
9270
|
-
/* @__PURE__ */ u("div", { className:
|
|
9277
|
+
] }) }, v) : /* @__PURE__ */ u("div", { className: at.elementDate, children: /* @__PURE__ */ u("span", { children: b(c[v]) }) }, v)) }),
|
|
9278
|
+
/* @__PURE__ */ u("div", { className: at.buttonsContainer })
|
|
9271
9279
|
]
|
|
9272
9280
|
}
|
|
9273
9281
|
),
|
|
9274
|
-
/* @__PURE__ */ u("div", { className:
|
|
9282
|
+
/* @__PURE__ */ u("div", { className: at.elementListContainer, children: f && f.length > 0 && f.map((v) => /* @__PURE__ */ u(
|
|
9275
9283
|
Os,
|
|
9276
9284
|
{
|
|
9277
9285
|
isActive: t == v.id,
|
|
@@ -9288,7 +9296,7 @@ const bi = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
9288
9296
|
},
|
|
9289
9297
|
`elementKey${v.id}`
|
|
9290
9298
|
)) }),
|
|
9291
|
-
a && /* @__PURE__ */ u("div", { className:
|
|
9299
|
+
a && /* @__PURE__ */ u("div", { className: at.newElementButtonContainer, children: /* @__PURE__ */ u(
|
|
9292
9300
|
Qn,
|
|
9293
9301
|
{
|
|
9294
9302
|
style: { ...o },
|
|
@@ -10520,7 +10528,7 @@ Jd.propTypes = {
|
|
|
10520
10528
|
/** Anchura máxima del modal (por defecto 400px) */
|
|
10521
10529
|
maxWidth: i.string
|
|
10522
10530
|
};
|
|
10523
|
-
const ef = "_stepsContainer_1cyua_3", tf = "_stepWrapper_1cyua_9", nf = "_circleContainer_1cyua_19", rf = "_circle_1cyua_19", of = "_active_1cyua_39", sf = "_completed_1cyua_44", af = "_label_1cyua_50", lf = "_labelActive_1cyua_56", cf = "_connector_1cyua_61",
|
|
10531
|
+
const ef = "_stepsContainer_1cyua_3", tf = "_stepWrapper_1cyua_9", nf = "_circleContainer_1cyua_19", rf = "_circle_1cyua_19", of = "_active_1cyua_39", sf = "_completed_1cyua_44", af = "_label_1cyua_50", lf = "_labelActive_1cyua_56", cf = "_connector_1cyua_61", lt = {
|
|
10524
10532
|
stepsContainer: ef,
|
|
10525
10533
|
stepWrapper: tf,
|
|
10526
10534
|
circleContainer: nf,
|
|
@@ -10530,27 +10538,27 @@ const ef = "_stepsContainer_1cyua_3", tf = "_stepWrapper_1cyua_9", nf = "_circle
|
|
|
10530
10538
|
label: af,
|
|
10531
10539
|
labelActive: lf,
|
|
10532
10540
|
connector: cf
|
|
10533
|
-
}, Vs = ({ steps: e, activeColor: t }) => /* @__PURE__ */ u("div", { className:
|
|
10541
|
+
}, Vs = ({ steps: e, activeColor: t }) => /* @__PURE__ */ u("div", { className: lt.stepsContainer, children: e.map((n, r) => {
|
|
10534
10542
|
const o = n.status === "active", s = n.status === "completed";
|
|
10535
|
-
return /* @__PURE__ */ k("div", { className:
|
|
10536
|
-
/* @__PURE__ */ k("div", { className:
|
|
10543
|
+
return /* @__PURE__ */ k("div", { className: lt.stepWrapper, children: [
|
|
10544
|
+
/* @__PURE__ */ k("div", { className: lt.circleContainer, children: [
|
|
10537
10545
|
/* @__PURE__ */ u(
|
|
10538
10546
|
"div",
|
|
10539
10547
|
{
|
|
10540
|
-
className: `${
|
|
10541
|
-
${o ?
|
|
10542
|
-
${s ?
|
|
10548
|
+
className: `${lt.circle}
|
|
10549
|
+
${o ? lt.active : ""}
|
|
10550
|
+
${s ? lt.completed : ""}`,
|
|
10543
10551
|
style: o ? { backgroundColor: t } : {},
|
|
10544
10552
|
onClick: n.onClick,
|
|
10545
10553
|
children: r + 1
|
|
10546
10554
|
}
|
|
10547
10555
|
),
|
|
10548
|
-
r < e.length - 1 && /* @__PURE__ */ u("div", { className:
|
|
10556
|
+
r < e.length - 1 && /* @__PURE__ */ u("div", { className: lt.connector })
|
|
10549
10557
|
] }),
|
|
10550
10558
|
/* @__PURE__ */ u(
|
|
10551
10559
|
"div",
|
|
10552
10560
|
{
|
|
10553
|
-
className: `${
|
|
10561
|
+
className: `${lt.label} ${o ? lt.labelActive : ""}`,
|
|
10554
10562
|
children: n.name
|
|
10555
10563
|
}
|
|
10556
10564
|
)
|
|
@@ -12443,7 +12451,7 @@ export {
|
|
|
12443
12451
|
_f as Switch,
|
|
12444
12452
|
Si as TextInput,
|
|
12445
12453
|
l1 as TimeSlider,
|
|
12446
|
-
|
|
12454
|
+
ct as Tooltip,
|
|
12447
12455
|
f1 as TopNavMenu,
|
|
12448
12456
|
cp as VerticalBarChart
|
|
12449
12457
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tmf_ciclica/ciclicastorybook",
|
|
3
|
-
"version": "1.2.
|
|
4
|
-
"packageManager": "pnpm@11.1.1",
|
|
3
|
+
"version": "1.2.149",
|
|
5
4
|
"main": "dist/index.cjs.js",
|
|
6
5
|
"module": "dist/index.es.js",
|
|
7
6
|
"types": "dist/index.d.ts",
|
|
@@ -20,16 +19,6 @@
|
|
|
20
19
|
"files": [
|
|
21
20
|
"dist"
|
|
22
21
|
],
|
|
23
|
-
"scripts": {
|
|
24
|
-
"dev": "vite",
|
|
25
|
-
"build": "vite build",
|
|
26
|
-
"lint": "eslint .",
|
|
27
|
-
"preview": "vite preview",
|
|
28
|
-
"storybook": "storybook dev -p 6006",
|
|
29
|
-
"build-storybook": "storybook build",
|
|
30
|
-
"init-msw": "msw init public/",
|
|
31
|
-
"test-storybook": "test-storybook"
|
|
32
|
-
},
|
|
33
22
|
"peerDependencies": {
|
|
34
23
|
"@emotion/react": "^11",
|
|
35
24
|
"@emotion/styled": "^11",
|
|
@@ -85,5 +74,15 @@
|
|
|
85
74
|
"@vitejs/plugin-react": "^4.5.2",
|
|
86
75
|
"prop-types": "^15.8.1",
|
|
87
76
|
"react-slider": "^2.0.6"
|
|
77
|
+
},
|
|
78
|
+
"scripts": {
|
|
79
|
+
"dev": "vite",
|
|
80
|
+
"build": "vite build",
|
|
81
|
+
"lint": "eslint .",
|
|
82
|
+
"preview": "vite preview",
|
|
83
|
+
"storybook": "storybook dev -p 6006",
|
|
84
|
+
"build-storybook": "storybook build",
|
|
85
|
+
"init-msw": "msw init public/",
|
|
86
|
+
"test-storybook": "test-storybook"
|
|
88
87
|
}
|
|
89
|
-
}
|
|
88
|
+
}
|