@rokkit/states 1.0.0-next.110 → 1.0.0-next.112

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/vibe.svelte.js +12 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rokkit/states",
3
- "version": "1.0.0-next.110",
3
+ "version": "1.0.0-next.112",
4
4
  "description": "Contains generic data manipulation functions that can be used in various components.",
5
5
  "author": "Jerry Thomas <me@jerrythomas.name>",
6
6
  "license": "MIT",
@@ -31,7 +31,7 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@lukeed/uuid": "^2.0.1",
34
- "@rokkit/core": "1.0.0-next.109",
34
+ "@rokkit/core": "1.0.0-next.111",
35
35
  "d3-array": "^3.2.4",
36
36
  "d3-collection": "^1.0.7",
37
37
  "ramda": "^0.30.1",
@@ -56,6 +56,10 @@ class Vibe {
56
56
  this.colors = options.colors
57
57
  }
58
58
 
59
+ get allowedStyles() {
60
+ return this.#allowedStyles
61
+ }
62
+
59
63
  set allowedStyles(input) {
60
64
  const styles = (Array.isArray(input) ? input : [input]).filter(Boolean)
61
65
  if (styles.length > 0) {
@@ -63,6 +67,10 @@ class Vibe {
63
67
  }
64
68
  }
65
69
 
70
+ get colorMap() {
71
+ return this.#colorMap
72
+ }
73
+
66
74
  set colorMap(value) {
67
75
  if (value) {
68
76
  const missing = Object.values(value).filter((key) => !has(key, this.#colors))
@@ -73,6 +81,10 @@ class Vibe {
73
81
  }
74
82
  }
75
83
 
84
+ get colors() {
85
+ return this.#colors
86
+ }
87
+
76
88
  set colors(value) {
77
89
  if (value) {
78
90
  this.#colors = { ...defaultColors, ...value }