@likable-hair/svelte 3.2.6 → 3.2.8

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.
@@ -25,14 +25,11 @@ ChartJS.register(
25
25
  export let data = {
26
26
  labels: [],
27
27
  datasets: []
28
- }, horizontal = false, responsive = true, maintainAspectRatio = true, showLegend = true, showYTicks = false, showXTicks = false, displayYGrid = true, lineWidth = 1, enableZoom = true, resetZoom = false, tooltipLabel = void 0, yTickLabel = void 0, xTickLabel = void 0, xTickStepSize = void 0, yTickStepSize = void 0, xMax = void 0, yMax = void 0;
28
+ }, horizontal = false, responsive = true, maintainAspectRatio = true, showLegend = true, showYTicks = false, showXTicks = false, displayYGrid = true, lineWidth = 1, enableZoom = true, resetZoom = false, tooltipLabel = void 0, yTickLabel = void 0, xTickLabel = void 0, xTickStepSize = void 0, yTickStepSize = void 0, xMax = void 0, yMax = void 0, rgbTooltipColor = void 0, rgbTooltipBackgroundColor = void 0, rgbBackgroundColor = void 0, width = void 0, height = void 0;
29
29
  let mounted = false, zoomMounted = false;
30
30
  onMount(() => {
31
31
  mounted = true;
32
32
  });
33
- export let rgbTooltipColor = void 0;
34
- export let rgbTooltipBackgroundColor = void 0;
35
- export let rgbBackgroundColor = void 0;
36
33
  $:
37
34
  if (!rgbTooltipColor && !!$theme.colors?.[$theme.active]["dark"]["primary"]["300"])
38
35
  rgbTooltipColor = $theme.colors?.[$theme.active]["dark"]["primary"]["300"];
@@ -43,7 +40,7 @@ $:
43
40
  if (!rgbBackgroundColor && !!$theme.colors?.[$theme.active]["dark"]["background"]["200"])
44
41
  rgbBackgroundColor = $theme.colors?.[$theme.active]["dark"]["background"]["200"];
45
42
  $:
46
- finalTooltipColor = !!rgbTooltipColor ? `rgb(${rgbTooltipColor}, .8)` : void 0;
43
+ finalTooltipColor = !!rgbTooltipColor ? `rgb(${rgbTooltipColor})` : void 0;
47
44
  $:
48
45
  finalTooltipBackgroundColor = !!rgbTooltipBackgroundColor ? `rgb(${rgbTooltipBackgroundColor})` : void 0;
49
46
  $:
@@ -151,4 +148,6 @@ $:
151
148
  bind:data={data}
152
149
  options={chartOptions}
153
150
  bind:chart={chart}
151
+ bind:width={width}
152
+ bind:height={height}
154
153
  ></Bar>
@@ -32,6 +32,8 @@ declare const __propDef: {
32
32
  rgbTooltipColor?: string | undefined;
33
33
  rgbTooltipBackgroundColor?: string | undefined;
34
34
  rgbBackgroundColor?: string | undefined;
35
+ width?: string | number | undefined;
36
+ height?: string | number | undefined;
35
37
  };
36
38
  events: {
37
39
  [evt: string]: CustomEvent<any>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@likable-hair/svelte",
3
3
  "description": "A Svelte component for likablehair and others",
4
- "version": "3.2.6",
4
+ "version": "3.2.8",
5
5
  "scripts": {
6
6
  "host": "vite --host",
7
7
  "dev": "vite dev",