@rokkit/themes 1.0.0-next.36 → 1.0.0-next.37

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": "@rokkit/themes",
3
- "version": "1.0.0-next.36",
3
+ "version": "1.0.0-next.37",
4
4
  "description": "Themes for use with rokkit components.",
5
5
  "author": "Jerry Thomas <me@jerrythomas.name>",
6
6
  "license": "MIT",
@@ -12,17 +12,17 @@
12
12
  "access": "public"
13
13
  },
14
14
  "devDependencies": {
15
- "@sveltejs/vite-plugin-svelte": "^2.4.2",
15
+ "@sveltejs/vite-plugin-svelte": "^2.4.3",
16
16
  "@vitest/coverage-v8": "^0.33.0",
17
17
  "@vitest/ui": "~0.33.0",
18
- "c8": "^8.0.0",
18
+ "c8": "^8.0.1",
19
19
  "jsdom": "^22.1.0",
20
- "svelte": "^4.0.5",
20
+ "svelte": "^4.1.1",
21
21
  "typescript": "^5.1.6",
22
- "vite": "^4.4.4",
22
+ "vite": "^4.4.7",
23
23
  "vitest": "~0.33.0",
24
- "@rokkit/core": "1.0.0-next.36",
25
- "shared-config": "1.0.0-next.36"
24
+ "@rokkit/core": "1.0.0-next.37",
25
+ "shared-config": "1.0.0-next.37"
26
26
  },
27
27
  "files": [
28
28
  "src/**/*.js",
package/src/constants.js CHANGED
@@ -1,3 +1,3 @@
1
- import { themeColors } from './utils'
1
+ import { themeColors } from '@rokkit/core'
2
2
  export { defaultStateIcons, defaultIcons } from '@rokkit/core'
3
3
  export const defaultThemeColors = themeColors()
package/src/index.js CHANGED
@@ -1,2 +1,3 @@
1
- export * from './utils'
1
+ // export * from './utils'
2
+ export { iconShortcuts, themeColors } from '@rokkit/core'
2
3
  export * from './constants'
package/src/utils.js CHANGED
@@ -66,18 +66,6 @@ export function themeColors(modifier = 'none') {
66
66
  return colors
67
67
  }
68
68
 
69
- // export function stateIconsFromNames(names) {
70
- // return names
71
- // .map((k) => [...k.split('-'), k])
72
- // .reduce(
73
- // (acc, [element, state, icon]) => ({
74
- // ...acc,
75
- // [element]: { ...acc[element], [state]: icon }
76
- // }),
77
- // {}
78
- // )
79
- // }
80
-
81
69
  export function iconShortcuts(icons, collection, variants) {
82
70
  const suffix = variants ? `-${variants}` : ''
83
71
  const shortcuts = !collection