@rokkit/themes 1.0.0-next.35 → 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.35",
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,16 +12,17 @@
12
12
  "access": "public"
13
13
  },
14
14
  "devDependencies": {
15
- "@sveltejs/vite-plugin-svelte": "^2.4.2",
16
- "@vitest/ui": "~0.32.3",
17
- "c8": "^8.0.0",
15
+ "@sveltejs/vite-plugin-svelte": "^2.4.3",
16
+ "@vitest/coverage-v8": "^0.33.0",
17
+ "@vitest/ui": "~0.33.0",
18
+ "c8": "^8.0.1",
18
19
  "jsdom": "^22.1.0",
19
- "svelte": "^4.0.1",
20
+ "svelte": "^4.1.1",
20
21
  "typescript": "^5.1.6",
21
- "vite": "^4.3.9",
22
- "vitest": "~0.32.3",
23
- "@rokkit/core": "1.0.0-next.35",
24
- "shared-config": "1.0.0-next.35"
22
+ "vite": "^4.4.7",
23
+ "vitest": "~0.33.0",
24
+ "@rokkit/core": "1.0.0-next.37",
25
+ "shared-config": "1.0.0-next.37"
25
26
  },
26
27
  "files": [
27
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
@@ -57,7 +57,6 @@ export function themeColors(modifier = 'none') {
57
57
  (acc, variant) => ({ ...acc, [variant]: shadesOf(variant, modifier) }),
58
58
  colors
59
59
  )
60
- // console.log('colors', colors)
61
60
  colors.skin = {
62
61
  ...colors.skin,
63
62
  contrast: fn(`var(--skin-800)`),
@@ -67,18 +66,6 @@ export function themeColors(modifier = 'none') {
67
66
  return colors
68
67
  }
69
68
 
70
- // export function stateIconsFromNames(names) {
71
- // return names
72
- // .map((k) => [...k.split('-'), k])
73
- // .reduce(
74
- // (acc, [element, state, icon]) => ({
75
- // ...acc,
76
- // [element]: { ...acc[element], [state]: icon }
77
- // }),
78
- // {}
79
- // )
80
- // }
81
-
82
69
  export function iconShortcuts(icons, collection, variants) {
83
70
  const suffix = variants ? `-${variants}` : ''
84
71
  const shortcuts = !collection