streetui 2.6.0 → 2.8.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/dist/server.d.cts CHANGED
@@ -1,2 +1,2 @@
1
- export { c as RenderToStringOptions, S as STATE_MARKER_ATTR, d as ServerDOMAdapter, r as readState, f as renderHead, g as renderToString, s as serializeState } from './server-LJGg4GyH.cjs';
2
- export { V as VERSION } from './hydration-diagnostics-D1GlzulR.cjs';
1
+ export { c as RenderToStringOptions, S as STATE_MARKER_ATTR, d as ServerDOMAdapter, r as readState, f as renderHead, g as renderToString, s as serializeState } from './server-C2Wje065.cjs';
2
+ export { V as VERSION } from './hydration-diagnostics-CvttL7mx.cjs';
package/dist/server.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { c as RenderToStringOptions, S as STATE_MARKER_ATTR, d as ServerDOMAdapter, r as readState, f as renderHead, g as renderToString, s as serializeState } from './server-BP651UK6.js';
2
- export { V as VERSION } from './hydration-diagnostics-D1GlzulR.js';
1
+ export { c as RenderToStringOptions, S as STATE_MARKER_ATTR, d as ServerDOMAdapter, r as readState, f as renderHead, g as renderToString, s as serializeState } from './server-B94YjpnN.js';
2
+ export { V as VERSION } from './hydration-diagnostics-CvttL7mx.js';
package/dist/server.js CHANGED
@@ -119,6 +119,13 @@ function applyProp(dom, element, name, value) {
119
119
  }
120
120
  return;
121
121
  }
122
+ if (name.startsWith("style.")) {
123
+ const el = element;
124
+ const prop = name.slice("style.".length);
125
+ if (value === null || value === void 0) el.style.removeProperty(prop);
126
+ else el.style.setProperty(prop, String(value));
127
+ return;
128
+ }
122
129
  if (value === null || value === void 0 || value === false) {
123
130
  dom.removeAttribute(element, name);
124
131
  return;
@@ -1909,7 +1916,7 @@ function renderToString(compiled, options = {}) {
1909
1916
  }
1910
1917
 
1911
1918
  // src/version.ts
1912
- var VERSION = "2.6.0";
1919
+ var VERSION = "2.8.0";
1913
1920
  export {
1914
1921
  STATE_MARKER_ATTR,
1915
1922
  ServerDOMAdapter,