willba-component-library 0.0.43 → 0.0.44

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.
@@ -0,0 +1,13 @@
1
+ :root {
2
+ --primary-color: #3498db;
3
+ --font-size: 16px;
4
+ --box-shadow: 0px 6px 11px 0px #a7a4a480
5
+ }
6
+
7
+ * {
8
+ box-sizing: border-box;
9
+ }
10
+
11
+ html {
12
+ background-color: aqua;
13
+ }
@@ -0,0 +1,3 @@
1
+ html {
2
+ background-color: blue;
3
+ }
@@ -0,0 +1,3 @@
1
+ html {
2
+ background-color: red;
3
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "willba-component-library",
3
- "version": "0.0.43",
3
+ "version": "0.0.44",
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
@@ -41,7 +41,6 @@ export default [
41
41
  format: 'umd',
42
42
  sourcemap: true,
43
43
  globals,
44
- inlineDynamicImports: true,
45
44
  },
46
45
  ],
47
46
  plugins: [
@@ -7,11 +7,17 @@ type ThemeProps = {
7
7
  export default function useTheme({ vendor }: ThemeProps) {
8
8
  useEffect(() => {
9
9
  if (vendor === 'Kisakallio') {
10
- addCSSFile('../src/themes/Kisakallio.css')
10
+ addCSSFile(
11
+ 'https://cdn.jsdelivr.net/npm/willba-component-library@0.0.43/lib/themes/Kisakallio.css'
12
+ )
11
13
  } else if (vendor === 'Pajulahti') {
12
- addCSSFile('../src/themes/Pajulahti.css')
14
+ addCSSFile(
15
+ 'https://cdn.jsdelivr.net/npm/willba-component-library@0.0.43/lib/themes/Pajulahti.css'
16
+ )
13
17
  } else {
14
- addCSSFile('../src/themes/Default.css')
18
+ addCSSFile(
19
+ 'https://cdn.jsdelivr.net/npm/willba-component-library@0.0.43/lib/themes/Default.css'
20
+ )
15
21
  }
16
22
  }, [vendor])
17
23
 
@@ -1,5 +0,0 @@
1
- // cssModules.d.ts
2
- declare module '*.css' {
3
- const classes: { [key: string]: string }
4
- export default classes
5
- }
@@ -1,13 +0,0 @@
1
- /* styles.module.css */
2
-
3
- .default {
4
- /* Default styles */
5
- }
6
-
7
- .kisakallio {
8
- /* Styles for Kisakallio theme */
9
- }
10
-
11
- .pajulahti {
12
- /* Styles for Pajulahti theme */
13
- }