flowbite-svelte 1.14.0 → 1.14.1

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,8 +1,6 @@
1
1
  import {} from "..";
2
2
  import { getContext } from "svelte";
3
- // import { dev } from "$app/environment";
4
- // for svelte users not using sveltekit substitute the above line with the following line
5
- const dev = import.meta.env.MODE === "development";
3
+ import { DEV } from "esm-env";
6
4
  export function getTheme(componentKey) {
7
5
  const theme = getContext("theme");
8
6
  return theme?.[componentKey];
@@ -17,7 +15,7 @@ export function getTheme(componentKey) {
17
15
  * @param replacements - Optional map of deprecated keys to their replacements (e.g., "divClass" → "div").
18
16
  */
19
17
  export function warnThemeDeprecation(component, names, replacements) {
20
- if (!dev)
18
+ if (!DEV)
21
19
  return;
22
20
  const nonEmptyNames = Object.keys(names).filter((name) => names[name]);
23
21
  if (nonEmptyNames.length === 0)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowbite-svelte",
3
- "version": "1.14.0",
3
+ "version": "1.14.1",
4
4
  "description": "Flowbite components for Svelte",
5
5
  "main": "dist/index.js",
6
6
  "author": {
@@ -129,6 +129,7 @@
129
129
  "apexcharts": "^5.3.5",
130
130
  "clsx": "^2.1.1",
131
131
  "date-fns": "^4.1.0",
132
+ "esm-env": "^1.2.2",
132
133
  "flowbite": "^3.1.2",
133
134
  "tailwind-merge": "^3.3.1",
134
135
  "tailwind-variants": "^3.1.1"