@m4l/base 1.7.1 → 1.7.2-beta-m4lcom-785-data-grids-implementar-la-funcionalidad-de-scroll-infinito.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/base",
3
- "version": "1.7.1",
3
+ "version": "1.7.2-beta-m4lcom-785-data-grids-implementar-la-funcionalidad-de-scroll-infinito.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -8,8 +8,13 @@
8
8
  * silently misses every SVG icon, so both branches must always be declared.
9
9
  */
10
10
  export declare const ICON_SVG_SHAPE_SELECTOR = "& svg, & path, & rect, & circle, & ellipse, & polygon, & polyline, & line, & g, & text, & tspan, & use";
11
- export declare const ORIGINAL_SVG_ICON_PAINT_SELECTOR = "&&&:not(.Mui-disabled) .M4LIcon-root .MuiSvgIcon-root [fill]";
12
- export declare const ORIGINAL_SVG_ICON_ROOT_PAINT_SELECTOR = "&&&:not([aria-disabled=\"true\"]) .MuiSvgIcon-root [fill]";
11
+ /**
12
+ * Nodes whose fill multicolor sources restore. Besides shapes with an authored `fill`,
13
+ * stroke-only shapes (e.g. an illustration card border) and the `g` groups they inherit
14
+ * from must be reverted too, or they keep the icon color and cover the artwork.
15
+ */
16
+ export declare const ORIGINAL_SVG_ICON_PAINT_SELECTOR = "&&&:not(.Mui-disabled) .M4LIcon-root .MuiSvgIcon-root :is([fill], [stroke], g)";
17
+ export declare const ORIGINAL_SVG_ICON_ROOT_PAINT_SELECTOR = "&&&:not([aria-disabled=\"true\"]) .MuiSvgIcon-root :is([fill], [stroke], g)";
13
18
  export interface IconPaintOptions {
14
19
  /**
15
20
  * Selector inserted between the rule root and the icon nodes, for call sites
@@ -46,7 +51,7 @@ export declare function getIconPaintStyles(color: string, options?: IconPaintOpt
46
51
  * Restore presentation fills for enabled multicolor SVG actions.
47
52
  */
48
53
  export declare function getOriginalSvgIconPaintStyles(): {
49
- "&&&:not(.Mui-disabled) .M4LIcon-root .MuiSvgIcon-root [fill]": {
54
+ "&&&:not(.Mui-disabled) .M4LIcon-root .MuiSvgIcon-root :is([fill], [stroke], g)": {
50
55
  fill: string;
51
56
  };
52
57
  };
@@ -54,7 +59,7 @@ export declare function getOriginalSvgIconPaintStyles(): {
54
59
  * Restore presentation fills for enabled multicolor SVG resources rendered directly by Icon.
55
60
  */
56
61
  export declare function getOriginalSvgIconRootPaintStyles(): {
57
- "&&&:not([aria-disabled=\"true\"]) .MuiSvgIcon-root [fill]": {
62
+ "&&&:not([aria-disabled=\"true\"]) .MuiSvgIcon-root :is([fill], [stroke], g)": {
58
63
  fill: string;
59
64
  };
60
65
  };
@@ -1 +1 @@
1
- {"version":3,"file":"getIconPaintStyles.d.ts","sourceRoot":"","sources":["../../../../../../packages/base/src/utils/getIconPaintStyles/getIconPaintStyles.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,eAAO,MAAM,uBAAuB,2GACsE,CAAC;AAC3G,eAAO,MAAM,gCAAgC,iEACmB,CAAC;AACjE,eAAO,MAAM,qCAAqC,8DACS,CAAC;AAE5D,MAAM,WAAW,gBAAgB;IAC/B;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,gBAAgB;;;;;;;;;;;EAgB3E;AAED;;GAEG;AACH,wBAAgB,6BAA6B;;;;EAM5C;AAED;;GAEG;AACH,wBAAgB,iCAAiC;;;;EAMhD"}
1
+ {"version":3,"file":"getIconPaintStyles.d.ts","sourceRoot":"","sources":["../../../../../../packages/base/src/utils/getIconPaintStyles/getIconPaintStyles.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,eAAO,MAAM,uBAAuB,2GACsE,CAAC;AAC3G;;;;GAIG;AACH,eAAO,MAAM,gCAAgC,mFACqC,CAAC;AACnF,eAAO,MAAM,qCAAqC,gFAC2B,CAAC;AAE9E,MAAM,WAAW,gBAAgB;IAC/B;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,gBAAgB;;;;;;;;;;;EAgB3E;AAED;;GAEG;AACH,wBAAgB,6BAA6B;;;;EAM5C;AAED;;GAEG;AACH,wBAAgB,iCAAiC;;;;EAMhD"}
@@ -1,11 +1,11 @@
1
- const l = "& svg, & path, & rect, & circle, & ellipse, & polygon, & polyline, & line, & g, & text, & tspan, & use", c = "&&&:not(.Mui-disabled) .M4LIcon-root .MuiSvgIcon-root [fill]", a = '&&&:not([aria-disabled="true"]) .MuiSvgIcon-root [fill]';
2
- function s(t, i) {
3
- const { scope: n, important: r = !0 } = i ?? {}, o = n ? `& ${n} ` : "& ", e = r ? `${t} !important` : t;
1
+ const l = "& svg, & path, & rect, & circle, & ellipse, & polygon, & polyline, & line, & g, & text, & tspan, & use", c = "&&&:not(.Mui-disabled) .M4LIcon-root .MuiSvgIcon-root :is([fill], [stroke], g)", s = '&&&:not([aria-disabled="true"]) .MuiSvgIcon-root :is([fill], [stroke], g)';
2
+ function a(t, i) {
3
+ const { scope: o, important: r = !0 } = i ?? {}, n = o ? `& ${o} ` : "& ", e = r ? `${t} !important` : t;
4
4
  return {
5
- [`${o}.M4LIcon-icon`]: {
5
+ [`${n}.M4LIcon-icon`]: {
6
6
  backgroundColor: e
7
7
  },
8
- [`${o}.MuiSvgIcon-root`]: {
8
+ [`${n}.MuiSvgIcon-root`]: {
9
9
  [l]: {
10
10
  fill: e,
11
11
  stroke: "none"
@@ -20,9 +20,9 @@ function I() {
20
20
  }
21
21
  };
22
22
  }
23
- function u() {
23
+ function g() {
24
24
  return {
25
- [a]: {
25
+ [s]: {
26
26
  fill: "revert-layer"
27
27
  }
28
28
  };
@@ -30,8 +30,8 @@ function u() {
30
30
  export {
31
31
  l as ICON_SVG_SHAPE_SELECTOR,
32
32
  c as ORIGINAL_SVG_ICON_PAINT_SELECTOR,
33
- a as ORIGINAL_SVG_ICON_ROOT_PAINT_SELECTOR,
34
- s as getIconPaintStyles,
33
+ s as ORIGINAL_SVG_ICON_ROOT_PAINT_SELECTOR,
34
+ a as getIconPaintStyles,
35
35
  I as getOriginalSvgIconPaintStyles,
36
- u as getOriginalSvgIconRootPaintStyles
36
+ g as getOriginalSvgIconRootPaintStyles
37
37
  };