@page-speed/venn-diagram 0.0.6 → 0.0.7

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.
@@ -1 +1 @@
1
- {"version":3,"file":"VennDiagram.d.ts","sourceRoot":"","sources":["../../../src/components/VennDiagram.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAA0B,MAAM,qBAAqB,CAAC;AA6B/E,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA8KlD,CAAC"}
1
+ {"version":3,"file":"VennDiagram.d.ts","sourceRoot":"","sources":["../../../src/components/VennDiagram.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAA0B,MAAM,qBAAqB,CAAC;AA6B/E,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAkLlD,CAAC"}
package/dist/cjs/index.js CHANGED
@@ -3250,7 +3250,7 @@ const isAccessibleContrast = (foreground, background) => {
3250
3250
  return contrastRatio >= 4.5;
3251
3251
  };
3252
3252
 
3253
- var styles = {"vennContainer":"VennDiagram-module_vennContainer__zE5Q4","svg":"VennDiagram-module_svg__8SEMM","circleGroup":"VennDiagram-module_circleGroup__9MTB2","circle":"VennDiagram-module_circle__sXeUM","selected":"VennDiagram-module_selected__U2SLC","labelGroup":"VennDiagram-module_labelGroup__bbeK2","value":"VennDiagram-module_value__0wKIt","label":"VennDiagram-module_label__fsN9f","legend":"VennDiagram-module_legend__ZOQL5","legendItem":"VennDiagram-module_legendItem__G3upl","legendLabel":"VennDiagram-module_legendLabel__yK6aP","legendValue":"VennDiagram-module_legendValue__cuwMv","error":"VennDiagram-module_error__czgBP","loading":"VennDiagram-module_loading__8lTBq"};
3253
+ var styles = {"vennRoot":"VennDiagram-module_vennRoot__iCmDV","vennContainer":"VennDiagram-module_vennContainer__zE5Q4","svg":"VennDiagram-module_svg__8SEMM","circleGroup":"VennDiagram-module_circleGroup__9MTB2","circle":"VennDiagram-module_circle__sXeUM","selected":"VennDiagram-module_selected__U2SLC","labelGroup":"VennDiagram-module_labelGroup__bbeK2","value":"VennDiagram-module_value__0wKIt","label":"VennDiagram-module_label__fsN9f","legend":"VennDiagram-module_legend__ZOQL5","legendItem":"VennDiagram-module_legendItem__G3upl","legendLabel":"VennDiagram-module_legendLabel__yK6aP","legendValue":"VennDiagram-module_legendValue__cuwMv","error":"VennDiagram-module_error__czgBP","loading":"VennDiagram-module_loading__8lTBq"};
3254
3254
 
3255
3255
  const VennDiagramContext = /*#__PURE__*/require$$0.createContext(null);
3256
3256
  VennDiagramContext.displayName = "VennDiagramContext";
@@ -3462,20 +3462,23 @@ const VennDiagram = ({
3462
3462
  return jsxRuntimeExports.jsx(VennDiagramContext.Provider, {
3463
3463
  value: contextValue,
3464
3464
  children: jsxRuntimeExports.jsxs("div", {
3465
- ref: containerRef,
3466
- className: `${styles.vennContainer} ${className || ""}`,
3467
- style: {
3468
- width: responsive ? "100%" : finalWidth,
3469
- height: responsive ? "100%" : finalHeight,
3470
- ...style
3471
- },
3465
+ className: `${styles.vennRoot} ${className || ""}`,
3466
+ style: style,
3472
3467
  "data-testid": testId,
3473
- children: [renderer === "svg" && jsxRuntimeExports.jsx(VennDiagramSVG, {
3474
- layout: layout,
3475
- textPositions: textPositions,
3476
- width: finalWidth,
3477
- height: finalHeight,
3478
- onClick: onClick
3468
+ children: [jsxRuntimeExports.jsx("div", {
3469
+ ref: containerRef,
3470
+ className: styles.vennContainer,
3471
+ style: {
3472
+ width: responsive ? "100%" : finalWidth,
3473
+ height: responsive ? "100%" : finalHeight
3474
+ },
3475
+ children: renderer === "svg" && jsxRuntimeExports.jsx(VennDiagramSVG, {
3476
+ layout: layout,
3477
+ textPositions: textPositions,
3478
+ width: finalWidth,
3479
+ height: finalHeight,
3480
+ onClick: onClick
3481
+ })
3479
3482
  }), showLegend && jsxRuntimeExports.jsx("div", {
3480
3483
  className: styles.legend,
3481
3484
  children: data.sets.map((set, idx) => jsxRuntimeExports.jsxs("div", {