sass-cms-template-common 0.0.23 → 0.0.25

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
@@ -777,6 +777,7 @@ export declare const cmsColors: {
777
777
  readonly searchHoverBg: string;
778
778
  readonly searchFocusBg: string;
779
779
  readonly searchClearHoverBg: string;
780
+ readonly chipDeleteHoverBg: string;
780
781
  readonly whiteBtnBorder: string;
781
782
  readonly whiteBtnText: string;
782
783
  readonly iconButtonHoverBg: string;
@@ -3341,7 +3342,7 @@ export declare type DropdownOption = {
3341
3342
 
3342
3343
  export declare type EditorialOpportunityColors = typeof editorialOpportunityColors;
3343
3344
 
3344
- export declare const editorialOpportunityColors: Record<"accent" | "text" | "topicBg" | "topicHoverBg" | "topicBorder" | "trending", string>;
3345
+ export declare const editorialOpportunityColors: Record<"accent" | "text" | "topicBg" | "topicHoverBg" | "topicBorder" | "trending" | "listRowHover" | "assignBtnHover" | "generateBtn" | "generateBtnHover", string>;
3345
3346
 
3346
3347
  export declare const enMessages: {
3347
3348
  readonly navigation: {
@@ -7037,6 +7038,8 @@ export declare const SelectStyles: {
7037
7038
  export declare const shadows: {
7038
7039
  /** Botones (CTA y blancos). */
7039
7040
  readonly button: "0 1px 2px rgba(0, 0, 0, 0.10)";
7041
+ /** Botón con elevación apenas perceptible (píldoras compactas, split-pill). */
7042
+ readonly buttonSoft: "0 1px 2px rgba(0, 0, 0, 0.06)";
7040
7043
  /** Menús con elevación M3 nivel 2 (perfil, selector de sitios). */
7041
7044
  readonly menu: "0px 1px 3px 0px rgba(0, 0, 0, 0.30), 0px 4px 8px 3px rgba(0, 0, 0, 0.15)";
7042
7045
  /** Paper suave y difuso (dropdowns genéricos). */
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as e, A as t, B as n, C as r, Ct as i, D as a, E as o, Et as s, F as c, G as l, H as u, I as d, J as f, K as p, L as m, M as h, N as g, O as _, P as v, Q as y, R as b, S as x, St as S, T as C, Tt as w, U as T, V as E, W as D, X as O, Y as ee, Z as te, _ as ne, _t as k, a as re, at as ie, b as ae, bt as oe, c as se, ct as ce, d as le, dt as ue, et as de, f as fe, ft as pe, g as me, gt as he, h as ge, ht as _e, i as ve, it as ye, j as be, k as xe, l as Se, lt as Ce, m as we, mt as Te, n as Ee, nt as De, o as Oe, ot as ke, p as Ae, pt as A, q as je, r as Me, rt as Ne, s as Pe, st as Fe, t as Ie, tt as Le, u as Re, ut as ze, v as Be, vt as j, w as Ve, wt as He, x as Ue, xt as M, y as We, yt as Ge, z as Ke } from "./services-CBf1oWSA.js";
1
+ import { $ as e, A as t, B as n, C as r, Ct as i, D as a, E as o, Et as s, F as c, G as l, H as u, I as d, J as f, K as p, L as m, M as h, N as g, O as _, P as v, Q as y, R as b, S as x, St as S, T as C, Tt as w, U as T, V as E, W as D, X as O, Y as ee, Z as te, _ as ne, _t as k, a as re, at as ie, b as ae, bt as oe, c as se, ct as ce, d as le, dt as ue, et as de, f as fe, ft as pe, g as me, gt as he, h as ge, ht as _e, i as ve, it as ye, j as be, k as xe, l as Se, lt as Ce, m as we, mt as Te, n as Ee, nt as De, o as Oe, ot as ke, p as Ae, pt as A, q as je, r as Me, rt as Ne, s as Pe, st as Fe, t as Ie, tt as Le, u as Re, ut as ze, v as Be, vt as j, w as Ve, wt as He, x as Ue, xt as M, y as We, yt as Ge, z as Ke } from "./services-DoVB2Gol.js";
2
2
  import { ThemeProvider as qe, alpha as N, createTheme as Je, useColorScheme as Ye } from "@mui/material/styles";
3
3
  import { Fragment as Xe, cloneElement as Ze, createContext as Qe, forwardRef as $e, isValidElement as et, useCallback as tt, useContext as nt, useEffect as P, useId as rt, useMemo as F, useRef as it, useState as I } from "react";
4
4
  import { Fragment as L, jsx as R, jsxs as z } from "react/jsx-runtime";
@@ -4243,7 +4243,7 @@ var X = {
4243
4243
  gap: .25,
4244
4244
  fontSize: 11,
4245
4245
  fontWeight: 700,
4246
- color: _e.trending
4246
+ color: A.primary
4247
4247
  },
4248
4248
  sxOpportunityTrendingIcon: { fontSize: 16 },
4249
4249
  sxOpportunityTopicTitle: {
@@ -4488,12 +4488,12 @@ function Ji({ item: e, open: t, onToggle: n, onRemindLater: r, onSeeMore: i, see
4488
4488
  component: a ? "a" : "div",
4489
4489
  ...f,
4490
4490
  "data-testid": `link-opportunity-${y(c.id || c.code || "top")}`,
4491
- sx: X.sxOpportunityTopic(!!c.unread, !!a),
4491
+ sx: X.sxOpportunityTopic(!0, !!a),
4492
4492
  children: [
4493
4493
  /* @__PURE__ */ z(U, {
4494
4494
  component: "div",
4495
4495
  variant: "caption",
4496
- sx: X.sxOpportunityMeta(!!c.unread),
4496
+ sx: X.sxOpportunityMeta(!0),
4497
4497
  children: [/* @__PURE__ */ z(B, {
4498
4498
  component: "span",
4499
4499
  sx: X.sxOpportunityTrending,
@@ -4528,12 +4528,12 @@ function Ji({ item: e, open: t, onToggle: n, onRemindLater: r, onSeeMore: i, see
4528
4528
  component: a ? "a" : "div",
4529
4529
  ...f,
4530
4530
  "data-testid": `link-opportunity-${y(t.id || t.code || String(n + 1))}`,
4531
- sx: X.sxOpportunityTopic(!!t.unread, !!a),
4531
+ sx: X.sxOpportunityTopic(!1, !!a),
4532
4532
  children: [
4533
4533
  /* @__PURE__ */ R(U, {
4534
4534
  component: "div",
4535
4535
  variant: "caption",
4536
- sx: X.sxOpportunityMeta(!!t.unread),
4536
+ sx: X.sxOpportunityMeta(!1),
4537
4537
  children: /* @__PURE__ */ z("span", { children: [
4538
4538
  t.matchPercent,
4539
4539
  "% ",
@@ -5198,8 +5198,7 @@ function Sa({ profile: e, avatarOptions: t, legacyBaseUrl: n, cmsBaseUrl: r, leg
5198
5198
  isCurrentUser: !0,
5199
5199
  neutralFallback: !0,
5200
5200
  transparentFallbackBg: !0,
5201
- cmsOrigin: t?.cmsOrigin,
5202
- crossOrigin: "anonymous"
5201
+ cmsOrigin: t?.cmsOrigin
5203
5202
  })
5204
5203
  })
5205
5204
  }), /* @__PURE__ */ z(vt, {
@@ -5242,8 +5241,7 @@ function Sa({ profile: e, avatarOptions: t, legacyBaseUrl: n, cmsBaseUrl: r, leg
5242
5241
  showTooltip: !1,
5243
5242
  isCurrentUser: !0,
5244
5243
  neutralFallback: !0,
5245
- cmsOrigin: t?.cmsOrigin,
5246
- crossOrigin: "anonymous"
5244
+ cmsOrigin: t?.cmsOrigin
5247
5245
  }), /* @__PURE__ */ z(B, {
5248
5246
  sx: { minWidth: 0 },
5249
5247
  children: [/* @__PURE__ */ R(U, {
@@ -6528,18 +6526,17 @@ var uo = {
6528
6526
  minHeight: i.searchHeight,
6529
6527
  pl: "16px",
6530
6528
  pr: "6px",
6531
- border: "2px solid transparent",
6532
6529
  borderRadius: M.md,
6533
6530
  bgcolor: "m3.surfaceContainerHigh",
6534
6531
  color: "m3.onSurfaceVariant",
6535
- transition: "width 0.16s cubic-bezier(0.4, 0, 0.2, 1), flex-basis 0.16s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.12s, border-color 0.12s",
6532
+ transition: "width 0.16s cubic-bezier(0.4, 0, 0.2, 1), flex-basis 0.16s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.12s, box-shadow 0.12s",
6536
6533
  overflow: "hidden",
6537
6534
  cursor: e.collapsed ? "pointer" : "text",
6538
6535
  "&:hover": { bgcolor: A.searchHoverBg },
6539
6536
  ...e.collapsed ? { width: i.buttonHeight } : {},
6540
6537
  ...e.focused && !e.collapsed ? {
6541
6538
  bgcolor: A.searchFocusBg,
6542
- borderColor: A.primary,
6539
+ boxShadow: `inset 0 0 0 2px ${A.primary}`,
6543
6540
  "&:hover": { bgcolor: A.searchFocusBg }
6544
6541
  } : {}
6545
6542
  }),
@@ -6564,9 +6561,12 @@ var uo = {
6564
6561
  fontSize: 16,
6565
6562
  color: A.onSecondaryContainer,
6566
6563
  opacity: .7,
6564
+ borderRadius: M.pill,
6565
+ transition: "background-color 0.12s, opacity 0.12s",
6567
6566
  "&:hover": {
6568
6567
  opacity: 1,
6569
- color: A.onSecondaryContainer
6568
+ color: A.onSecondaryContainer,
6569
+ bgcolor: A.chipDeleteHoverBg
6570
6570
  }
6571
6571
  }
6572
6572
  },
@@ -6637,36 +6637,36 @@ var uo = {
6637
6637
  }
6638
6638
  }, fo = "0.16s cubic-bezier(0.4, 0, 0.2, 1)", po = 2400;
6639
6639
  function mo({ value: e, onChange: t, onSearch: n, onClear: r, placeholder: i, chips: a, onChipsChange: o, chipSeparator: s = ";", addPlaceholder: c, removeChipAriaLabel: l, showIcon: u = !0, showAdvanced: d = !1, advancedActive: f = !1, onAdvancedClick: p, collapsible: m = !1, width: h = 320, grow: g = !1, maxWidth: _, endGap: v = 40, startGap: b, advancedAriaLabel: x, clearAriaLabel: S, ariaLabel: C, testId: w }) {
6640
- let { t: T } = G(), E = T.messages.search, D = C ?? E.inputAriaLabel, O = S ?? E.clearAriaLabel, ee = x ?? E.advancedAriaLabel, te = l ?? E.removeChipAriaLabel, ne = a !== void 0, k = a ?? [], re = ne && k.length > 0 ? c ?? E.addPlaceholder : i ?? E.placeholder, ie = it(null), [ae, oe] = I(!1), se = m && !ae && e.trim() === "" && k.length === 0, ce = e.length > 0 || k.length > 0, le = () => {
6640
+ let { t: T } = G(), E = T.messages.search, D = C ?? E.inputAriaLabel, O = S ?? E.clearAriaLabel, ee = x ?? E.advancedAriaLabel, te = l ?? E.removeChipAriaLabel, ne = a !== void 0, k = a ?? [], re = ne && k.length > 0 ? c ?? E.addPlaceholder : i ?? E.placeholder, ie = it(null), [ae, oe] = I(!1), se = m && !ae && e.trim() === "" && k.length === 0, ce = ae || k.length > 0, le = e.length > 0 || k.length > 0, ue = () => {
6641
6641
  let n = e.trim(), r = n && !k.includes(n) ? [...k, n] : k;
6642
6642
  return r !== k && o?.(r), n && t(""), r;
6643
- }, ue = (e) => {
6643
+ }, de = (e) => {
6644
6644
  let t = k.filter((t) => t !== e);
6645
- o?.(t), n?.(t), ie.current?.focus();
6646
- }, de = (t) => {
6645
+ o?.(t), n?.(t), t.length > 0 ? ie.current?.focus() : ie.current?.blur();
6646
+ }, fe = (t) => {
6647
6647
  if (!ne) {
6648
6648
  t.key === "Enter" && n?.(e);
6649
6649
  return;
6650
6650
  }
6651
- if (t.key === s) t.preventDefault(), le();
6652
- else if (t.key === "Enter") t.preventDefault(), n?.(le());
6651
+ if (t.key === s) t.preventDefault(), ue();
6652
+ else if (t.key === "Enter") t.preventDefault(), n?.(ue()), ie.current?.blur();
6653
6653
  else if (t.key === "Backspace" && e === "" && k.length > 0) {
6654
6654
  t.preventDefault();
6655
6655
  let e = k.slice(0, -1);
6656
6656
  o?.(e), n?.(e);
6657
6657
  }
6658
- }, fe = () => {
6659
- r ? r() : t(""), ne && (o?.([]), n?.([])), ie.current?.blur();
6660
6658
  }, pe = () => {
6659
+ r ? r() : t(""), ne && (o?.([]), n?.([])), ie.current?.blur();
6660
+ }, me = () => {
6661
6661
  se && ie.current?.focus();
6662
- }, me;
6663
- return me = se ? void 0 : g ? {
6662
+ }, he;
6663
+ return he = se ? void 0 : g ? {
6664
6664
  flexGrow: 1,
6665
6665
  flexShrink: 1,
6666
6666
  flexBasis: 0,
6667
6667
  minWidth: 0,
6668
- maxWidth: ae ? _ ?? po : h,
6669
- marginLeft: ae && b != null ? b : "auto",
6668
+ maxWidth: ce ? _ ?? po : h,
6669
+ marginLeft: ce && b != null ? b : "auto",
6670
6670
  marginRight: v,
6671
6671
  transition: `max-width ${fo}`
6672
6672
  } : {
@@ -6677,8 +6677,8 @@ function mo({ value: e, onChange: t, onSearch: n, onClear: r, placeholder: i, ch
6677
6677
  collapsed: se,
6678
6678
  focused: ae
6679
6679
  }),
6680
- style: me,
6681
- onClick: pe,
6680
+ style: he,
6681
+ onClick: me,
6682
6682
  "data-testid": w,
6683
6683
  children: [
6684
6684
  u && /* @__PURE__ */ R(Ft, { sx: uo.sxLeadIcon(ae) }),
@@ -6687,7 +6687,7 @@ function mo({ value: e, onChange: t, onSearch: n, onClear: r, placeholder: i, ch
6687
6687
  children: [ne && k.map((e) => /* @__PURE__ */ R(zn, {
6688
6688
  label: e,
6689
6689
  size: "small",
6690
- onDelete: () => ue(e),
6690
+ onDelete: () => de(e),
6691
6691
  deleteIcon: /* @__PURE__ */ R(Ln, {
6692
6692
  "aria-label": te,
6693
6693
  "data-testid": w ? `${w}-chip-${y(e)}-remove` : void 0
@@ -6703,17 +6703,17 @@ function mo({ value: e, onChange: t, onSearch: n, onClear: r, placeholder: i, ch
6703
6703
  placeholder: re,
6704
6704
  value: e,
6705
6705
  onChange: (e) => t(e.target.value),
6706
- onKeyDown: de,
6706
+ onKeyDown: fe,
6707
6707
  onFocus: () => oe(!0),
6708
6708
  onBlur: () => oe(!1),
6709
6709
  sx: uo.sxInput,
6710
6710
  "data-testid": w ? `${w}-input` : void 0
6711
6711
  })]
6712
6712
  }),
6713
- !se && ce && /* @__PURE__ */ R(V, {
6713
+ !se && le && /* @__PURE__ */ R(V, {
6714
6714
  size: "small",
6715
6715
  "aria-label": O,
6716
- onClick: fe,
6716
+ onClick: pe,
6717
6717
  sx: uo.sxClearBtn(ae),
6718
6718
  "data-testid": w ? `${w}-icon-btn-clear` : void 0,
6719
6719
  children: /* @__PURE__ */ R(Ln, {})
@@ -6754,15 +6754,16 @@ var ho = {
6754
6754
  },
6755
6755
  sxIcon: {
6756
6756
  color: A.actionIcon,
6757
+ opacity: .5,
6757
6758
  mb: "2px",
6758
6759
  "& .MuiSvgIcon-root": {
6759
- fontSize: 40,
6760
+ fontSize: 46,
6760
6761
  color: A.actionIcon
6761
6762
  }
6762
6763
  },
6763
6764
  sxTitle: {
6764
6765
  fontFamily: j.googleSans,
6765
- fontWeight: 600,
6766
+ fontWeight: 500,
6766
6767
  fontSize: 16,
6767
6768
  color: A.textStrong
6768
6769
  },
@@ -6770,7 +6771,7 @@ var ho = {
6770
6771
  fontFamily: j.googleSans,
6771
6772
  fontWeight: 400,
6772
6773
  fontSize: 14,
6773
- color: A.textNav
6774
+ color: A.actionIcon
6774
6775
  }
6775
6776
  };
6776
6777
  //#endregion