willba-component-library 0.0.40 → 0.0.41

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "willba-component-library",
3
- "version": "0.0.40",
3
+ "version": "0.0.41",
4
4
  "description": "A stroybook 6 with TypeScript demo",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.esm.js",
package/rollup.config.mjs CHANGED
@@ -27,11 +27,13 @@ export default [
27
27
  file: packageJson.main,
28
28
  format: 'cjs',
29
29
  sourcemap: true,
30
+ inlineDynamicImports: true,
30
31
  },
31
32
  {
32
33
  file: packageJson.module,
33
34
  format: 'esm',
34
35
  sourcemap: true,
36
+ inlineDynamicImports: true,
35
37
  },
36
38
  {
37
39
  name: 'WillbaComponentLibrary',
@@ -39,6 +41,7 @@ export default [
39
41
  format: 'umd',
40
42
  sourcemap: true,
41
43
  globals,
44
+ inlineDynamicImports: true,
42
45
  },
43
46
  ],
44
47
  plugins: [
@@ -21,7 +21,7 @@ type FilterBarProps = {
21
21
  }
22
22
 
23
23
  export default function FilterBar({ vendor, language }: FilterBarProps) {
24
- // useTheme({ vendor })
24
+ useTheme({ vendor })
25
25
 
26
26
  const [rerenderKey, setRerenderKey] = useState(0)
27
27
 
@@ -34,8 +34,6 @@ export default function FilterBar({ vendor, language }: FilterBarProps) {
34
34
 
35
35
  const { t } = useTranslation('filterBar')
36
36
 
37
- console.log(language, t('calendar.startDate'))
38
-
39
37
  const {
40
38
  selectedFilter,
41
39
  guestsAdults,
@@ -21,11 +21,6 @@ export default function useTheme({ vendor }: ThemeProps) {
21
21
  }
22
22
 
23
23
  importCss()
24
-
25
- // Clear the CSS module when the 'vendor' changes
26
- return () => {
27
- setCssModule(null)
28
- }
29
24
  }, [vendor])
30
25
 
31
26
  return cssModule