@lukekaalim/act-web 6.0.1 → 6.1.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @lukekaalim/act-web
2
2
 
3
+ ## 6.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 1b7eec1: Allow kebab and camel case inline CSS propreties
8
+
3
9
  ## 6.0.1
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lukekaalim/act-web",
3
- "version": "6.0.1",
3
+ "version": "6.1.0",
4
4
  "type": "module",
5
5
  "main": "mod.ts",
6
6
  "exports": {
package/props.ts CHANGED
@@ -113,8 +113,11 @@ export const setStyleProp = (
113
113
  style: null | Record<keyof CSSStyleDeclaration, string | number>,
114
114
  prevStyle: null | Record<keyof CSSStyleDeclaration, string | number>,
115
115
  ) => {
116
- setPropObject(node as any, style, prevStyle, (name, value) =>
117
- (node.setProperty(name, value as string), true))
116
+ setPropObject(node as any, style, prevStyle, (name, value) => {
117
+ (node as any)[name] = value;
118
+ node.setProperty(name, value as string);
119
+ return true;
120
+ });
118
121
  }
119
122
 
120
123
  const setPropObject = (