flowbite-svelte 0.47.3 → 0.47.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.
@@ -1,6 +1,7 @@
1
1
  <script>import { onMount } from "svelte";
2
2
  export let options;
3
- let chart;
3
+ export let chart = void 0;
4
+ let chartElement;
4
5
  function initChart(node, options2) {
5
6
  async function asyncInitChart() {
6
7
  const ApexChartsModule = await import("apexcharts");
@@ -25,11 +26,12 @@ onMount(() => {
25
26
  });
26
27
  </script>
27
28
 
28
- <div use:initChart={options} class={$$props.class}></div>
29
+ <div use:initChart={options} bind:this={chartElement} class={$$props.class}></div>
29
30
 
30
31
  <!--
31
32
  @component
32
33
  [Go to docs](https://flowbite-svelte.com/)
33
34
  ## Props
34
35
  @prop export let options: ApexOptions;
36
+ @prop export let chart: ApexCharts | undefined = undefined;
35
37
  -->
@@ -1,9 +1,11 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
2
  import type { ApexOptions } from 'apexcharts';
3
+ import type ApexCharts from 'apexcharts';
3
4
  declare const __propDef: {
4
5
  props: {
5
6
  options: ApexOptions;
6
7
  class?: string;
8
+ chart?: ApexCharts;
7
9
  };
8
10
  events: {
9
11
  [evt: string]: CustomEvent<any>;
@@ -17,6 +19,7 @@ export type ChartSlots = typeof __propDef.slots;
17
19
  * [Go to docs](https://flowbite-svelte.com/)
18
20
  * ## Props
19
21
  * @prop export let options: ApexOptions;
22
+ * @prop export let chart: ApexCharts | undefined = undefined;
20
23
  */
21
24
  export default class Chart extends SvelteComponentTyped<ChartProps, ChartEvents, ChartSlots> {
22
25
  }
@@ -80,7 +80,7 @@ function getDaysInMonth(date) {
80
80
  let start = firstDay.getDay() - firstDayOfWeek;
81
81
  if (start < 0) start += 7;
82
82
  for (let i = 0; i < start; i++) {
83
- daysArray.push(new Date(year, month, -i));
83
+ daysArray.unshift(new Date(year, month, -i));
84
84
  }
85
85
  for (let i = 1; i <= lastDay.getDate(); i++) {
86
86
  daysArray.push(new Date(year, month, i));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowbite-svelte",
3
- "version": "0.47.3",
3
+ "version": "0.47.4",
4
4
  "description": "Flowbite components for Svelte",
5
5
  "main": "dist/index.js",
6
6
  "author": {
@@ -12,7 +12,7 @@
12
12
  "homepage": "https://flowbite-svelte.com/",
13
13
  "license": "MIT",
14
14
  "devDependencies": {
15
- "@changesets/cli": "2.27.9",
15
+ "@changesets/cli": "2.27.10",
16
16
  "@docsearch/css": "^3.6.2",
17
17
  "@docsearch/js": "^3.6.2",
18
18
  "@playwright/test": "^1.48.2",
@@ -47,7 +47,7 @@
47
47
  "tailwindcss": "^3.4.14",
48
48
  "tslib": "^2.8.0",
49
49
  "typescript": "^5.6.3",
50
- "typescript-eslint": "8.11.0",
50
+ "typescript-eslint": "8.16.0",
51
51
  "vite": "^5.4.10",
52
52
  "vitest": "^2.1.4"
53
53
  },
@@ -95,7 +95,7 @@
95
95
  ],
96
96
  "repository": {
97
97
  "type": "git",
98
- "url": "https://github.com/themesberg/flowbite-svelte"
98
+ "url": "git+https://github.com/themesberg/flowbite-svelte.git"
99
99
  },
100
100
  "dependencies": {
101
101
  "@floating-ui/dom": "^1.6.11",
@@ -103,10 +103,6 @@
103
103
  "flowbite": "^2.5.2",
104
104
  "tailwind-merge": "^2.5.4"
105
105
  },
106
- "engines": {
107
- "pnpm": ">=8.0.0",
108
- "node": ">=18.0.0"
109
- },
110
106
  "files": [
111
107
  "dist",
112
108
  "!dist/**/*.test.*",
@@ -752,6 +748,9 @@
752
748
  "gen:componentData": "svelte-lib-helpers component-data",
753
749
  "copy:package": "svelte-lib-helpers package",
754
750
  "lib-helpers": "pnpm format && pnpm gen:docs && pnpm gen:componentData && pnpm package && pnpm gen:exports && pnpm copy:package",
755
- "package:publish": "standard-version && git push --follow-tags origin main && npm publish"
751
+ "package:publish": "standard-version && git push --follow-tags origin main && npm publish",
752
+ "ch": "npx changeset",
753
+ "cv": "npx changeset version",
754
+ "cp": "npx changeset publish"
756
755
  }
757
756
  }