@carto/meridian-ds 2.7.0-alpha-loader.3 → 2.7.0-alpha-loader.4

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.
@@ -877,15 +877,15 @@ function _ToggleButtonGroup({
877
877
  }
878
878
  const ToggleButtonGroup = React.forwardRef(_ToggleButtonGroup);
879
879
  const Wrapper = material.styled(material.Stack, {
880
- shouldForwardProp: (prop) => prop !== "fullHeight"
881
- })(({ fullHeight, theme }) => ({
880
+ shouldForwardProp: (prop) => prop !== "contentHeight"
881
+ })(({ contentHeight, theme }) => ({
882
882
  alignItems: "center",
883
883
  justifyContent: "center",
884
884
  gap: theme.spacing(1.5),
885
885
  width: "100%",
886
- ...fullHeight && {
886
+ ...contentHeight && {
887
887
  flex: 1,
888
- height: "100%"
888
+ height: contentHeight
889
889
  }
890
890
  }));
891
891
  function _Loader({
@@ -893,7 +893,7 @@ function _Loader({
893
893
  secondLabel,
894
894
  color = "primary",
895
895
  size = 40,
896
- fullHeight,
896
+ contentHeight,
897
897
  labelTypographyProps,
898
898
  secondLabelTypographyProps,
899
899
  sx,
@@ -904,13 +904,13 @@ function _Loader({
904
904
  return /* @__PURE__ */ jsxRuntime.jsxs(
905
905
  Wrapper,
906
906
  {
907
- fullHeight,
907
+ contentHeight,
908
908
  sx,
909
909
  ...otherProps,
910
910
  ref,
911
911
  "aria-busy": true,
912
912
  "data-name": "loader",
913
- "data-full-height": fullHeight,
913
+ "data-content-height": contentHeight,
914
914
  children: [
915
915
  /* @__PURE__ */ jsxRuntime.jsx(
916
916
  material.CircularProgress,
@@ -877,15 +877,15 @@ function _ToggleButtonGroup({
877
877
  }
878
878
  const ToggleButtonGroup = forwardRef(_ToggleButtonGroup);
879
879
  const Wrapper = styled(Stack, {
880
- shouldForwardProp: (prop) => prop !== "fullHeight"
881
- })(({ fullHeight, theme }) => ({
880
+ shouldForwardProp: (prop) => prop !== "contentHeight"
881
+ })(({ contentHeight, theme }) => ({
882
882
  alignItems: "center",
883
883
  justifyContent: "center",
884
884
  gap: theme.spacing(1.5),
885
885
  width: "100%",
886
- ...fullHeight && {
886
+ ...contentHeight && {
887
887
  flex: 1,
888
- height: "100%"
888
+ height: contentHeight
889
889
  }
890
890
  }));
891
891
  function _Loader({
@@ -893,7 +893,7 @@ function _Loader({
893
893
  secondLabel,
894
894
  color = "primary",
895
895
  size = 40,
896
- fullHeight,
896
+ contentHeight,
897
897
  labelTypographyProps,
898
898
  secondLabelTypographyProps,
899
899
  sx,
@@ -904,13 +904,13 @@ function _Loader({
904
904
  return /* @__PURE__ */ jsxs(
905
905
  Wrapper,
906
906
  {
907
- fullHeight,
907
+ contentHeight,
908
908
  sx,
909
909
  ...otherProps,
910
910
  ref,
911
911
  "aria-busy": true,
912
912
  "data-name": "loader",
913
- "data-full-height": fullHeight,
913
+ "data-content-height": contentHeight,
914
914
  children: [
915
915
  /* @__PURE__ */ jsx(
916
916
  CircularProgress,
@@ -34,10 +34,12 @@ export type LoaderProps = {
34
34
  */
35
35
  size?: number | string;
36
36
  /**
37
- * If `true`, the component will take the full height of its container.
38
- * @default false
37
+ * The height of the component.
38
+ * If using a number, the pixel unit is assumed.
39
+ * If using a string, you need to provide the CSS unit, for example '3rem'.
40
+ * @default undefined
39
41
  */
40
- fullHeight?: boolean;
42
+ contentHeight?: number | string;
41
43
  /**
42
44
  * The props to pass to the container element to override the default styles.
43
45
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Loader.d.ts","sourceRoot":"","sources":["../../../../src/components/Loader/Loader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAA4B,MAAM,OAAO,CAAA;AAC3D,OAAO,EAAmC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAC/E,OAAO,EAAc,eAAe,EAAE,MAAM,eAAe,CAAA;AAG3D,MAAM,MAAM,WAAW,GAAG;IACxB;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB;;OAEG;IACH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sB,CAAA;AAClC,eAAe,MAAM,CAAA"}
@@ -24,13 +24,13 @@ declare const options: {
24
24
  secondLabelTypographyProps: {
25
25
  control: "object";
26
26
  };
27
- fullHeight: {
27
+ contentHeight: {
28
28
  table: {
29
29
  defaultValue: {
30
30
  summary: string;
31
31
  };
32
32
  };
33
- control: "boolean";
33
+ control: "text";
34
34
  };
35
35
  };
36
36
  args: {
@@ -65,8 +65,11 @@ export declare const Size: {
65
65
  export declare const LabelAndSecondLabel: {
66
66
  render: (args: LoaderProps) => import("react/jsx-runtime").JSX.Element;
67
67
  };
68
- export declare const FullHeight: {
68
+ export declare const ContentHeight: {
69
69
  render: (args: LoaderProps) => import("react/jsx-runtime").JSX.Element;
70
+ args: {
71
+ contentHeight: number;
72
+ };
70
73
  };
71
74
  export declare const CustomSXStyles: {
72
75
  render: (args: LoaderProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"Loader.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Loader/Loader.stories.tsx"],"names":[],"mappings":"AAEA,OAAe,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAG9C,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6CG,CAAA;AAChB,eAAe,OAAO,CAAA;AAqGtB,eAAO,MAAM,UAAU;mBAnGC,WAAW;;;;;;CAwGlC,CAAA;AAED,eAAO,MAAM,KAAK;mBAxGW,WAAW;CA0GvC,CAAA;AAED,eAAO,MAAM,IAAI;mBA9FW,WAAW;CAgGtC,CAAA;AAED,eAAO,MAAM,mBAAmB;mBA7EH,WAAW;CA+EvC,CAAA;AAED,eAAO,MAAM,UAAU;mBAlCO,WAAW;CAoCxC,CAAA;AAED,eAAO,MAAM,cAAc;mBA1HH,WAAW;;;;;;CA+HlC,CAAA"}
1
+ {"version":3,"file":"Loader.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Loader/Loader.stories.tsx"],"names":[],"mappings":"AAEA,OAAe,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAE9C,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6CG,CAAA;AAChB,eAAe,OAAO,CAAA;AAsFtB,eAAO,MAAM,UAAU;mBApFC,WAAW;;;;;;CAyFlC,CAAA;AAED,eAAO,MAAM,KAAK;mBAzFW,WAAW;CA2FvC,CAAA;AAED,eAAO,MAAM,IAAI;mBA/EW,WAAW;CAiFtC,CAAA;AAED,eAAO,MAAM,mBAAmB;mBA9DH,WAAW;CAgEvC,CAAA;AAED,eAAO,MAAM,aAAa;mBAvGF,WAAW;;;;CA4GlC,CAAA;AAED,eAAO,MAAM,cAAc;mBA9GH,WAAW;;;;;;CAmHlC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carto/meridian-ds",
3
- "version": "2.7.0-alpha-loader.3",
3
+ "version": "2.7.0-alpha-loader.4",
4
4
  "description": "CARTO Meridian Design System",
5
5
  "type": "module",
6
6
  "scripts": {