@carto/meridian-ds 1.3.0-alpha.2 → 1.3.0-alpha.3

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.
@@ -12698,24 +12698,15 @@ function Rd({
12698
12698
  disabled: n,
12699
12699
  startIcon: r,
12700
12700
  endIcon: a,
12701
- loadingIndicator: s,
12702
- loadingPosition: i,
12703
- ...l
12704
- }, c) {
12705
- const d = /* @__PURE__ */ u(Do, { size: 18, color: "inherit" }), f = () => {
12706
- if (o) {
12707
- if (s)
12708
- return s;
12709
- if (i === void 0)
12710
- return /* @__PURE__ */ U(fe, { sx: { position: "relative" }, children: [
12711
- /* @__PURE__ */ u(Sd, { children: d }),
12712
- /* @__PURE__ */ u(kd, { children: t })
12713
- ] });
12714
- }
12715
- return t;
12716
- }, m = (p) => {
12717
- if (!(o && i === void 0))
12718
- return o && i ? i === p ? d : void 0 : p === "start" ? r : a;
12701
+ loadingPosition: s,
12702
+ ...i
12703
+ }, l) {
12704
+ const c = /* @__PURE__ */ u(Do, { size: 18, color: "inherit" }), d = o && s === void 0, f = () => d ? /* @__PURE__ */ U(fe, { sx: { position: "relative" }, children: [
12705
+ /* @__PURE__ */ u(Sd, { children: c }),
12706
+ /* @__PURE__ */ u(kd, { children: t })
12707
+ ] }) : t, m = (p) => {
12708
+ if (!d)
12709
+ return o && s !== void 0 ? s === p ? c : void 0 : p === "start" ? r : a;
12719
12710
  };
12720
12711
  return /* @__PURE__ */ u(
12721
12712
  Rn,
@@ -12723,8 +12714,8 @@ function Rd({
12723
12714
  disabled: o || n,
12724
12715
  startIcon: m("start"),
12725
12716
  endIcon: m("end"),
12726
- ...l,
12727
- ref: c,
12717
+ ...i,
12718
+ ref: l,
12728
12719
  children: /* @__PURE__ */ u(Re, { variant: "inherit", color: "inherit", noWrap: !0, component: "span", children: f() })
12729
12720
  }
12730
12721
  );
@@ -1,12 +1,7 @@
1
- import { ReactNode } from 'react';
2
1
  import { ButtonProps as MUIButtonProps } from '@mui/material';
3
2
  export type ButtonProps = MUIButtonProps<React.ElementType, {
4
3
  target?: string;
5
4
  loading?: boolean;
6
- /**
7
- * Custom content to display during loading instead of the default spinner
8
- */
9
- loadingIndicator?: ReactNode;
10
5
  /**
11
6
  * Controls where the spinner appears:
12
7
  * - undefined (default): Shows a centered spinner and hides all icons
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA4B,SAAS,EAAE,MAAM,OAAO,CAAA;AAC3D,OAAO,EACL,WAAW,IAAI,cAAc,EAK9B,MAAM,eAAe,CAAA;AAmBtB,MAAM,MAAM,WAAW,GAAG,cAAc,CACtC,KAAK,CAAC,WAAW,EACjB;IACE,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;OAEG;IACH,gBAAgB,CAAC,EAAE,SAAS,CAAA;IAE5B;;;;;OAKG;IACH,eAAe,CAAC,EAAE,OAAO,GAAG,KAAK,CAAA;CAClC,CACF,CAAA;AAwED,QAAA,MAAM,MAAM,wHAAsB,CAAA;AAClC,eAAe,MAAM,CAAA"}
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/Button.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,WAAW,IAAI,cAAc,EAK9B,MAAM,eAAe,CAAA;AAmBtB,MAAM,MAAM,WAAW,GAAG,cAAc,CACtC,KAAK,CAAC,WAAW,EACjB;IACE,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;;;;OAKG;IACH,eAAe,CAAC,EAAE,OAAO,GAAG,KAAK,CAAA;CAClC,CACF,CAAA;AAmED,QAAA,MAAM,MAAM,wHAAsB,CAAA;AAClC,eAAe,MAAM,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carto/meridian-ds",
3
- "version": "1.3.0-alpha.2",
3
+ "version": "1.3.0-alpha.3",
4
4
  "description": "CARTO Meridian Design System",
5
5
  "type": "module",
6
6
  "scripts": {