lilact 0.16.2 → 0.16.3

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.
@@ -2431,7 +2431,7 @@ var ComponentCore = class {
2431
2431
  }
2432
2432
  }
2433
2433
  updateElementProps(patch, force = false) {
2434
- var _a, _b, _c, _d, _e, _f;
2434
+ var _a, _b, _c, _d, _e, _f, _g;
2435
2435
  if (this.entity === "input") {
2436
2436
  if (!(patch == null ? void 0 : patch.type)) patch.type = "text";
2437
2437
  if (patch.type !== this.element.type) {
@@ -2473,18 +2473,29 @@ var ComponentCore = class {
2473
2473
  (_d = this.event_detachers) != null ? _d : this.event_detachers = {};
2474
2474
  (_f = (_e = this.event_detachers)[al]) == null ? void 0 : _f.call(_e);
2475
2475
  this.event_detachers[al] = lilact_default.addWrappedEventListener(this.element, alc.substring(2), patch[a], { capture: true });
2476
- } else if (al === "style") {
2477
- if (typeof patch[a] === "string") {
2478
- this.element.style = patch[a];
2476
+ } else if (a === "style") {
2477
+ if (typeof patch.style === "string") {
2478
+ this.element.style = patch.style;
2479
2479
  } else {
2480
- for (const x in patch[a]) {
2480
+ if ((_g = this.props) == null ? void 0 : _g.style) {
2481
+ if (typeof this.props.style === "string") {
2482
+ this.element.style = "";
2483
+ } else {
2484
+ for (let p in this.props.style) {
2485
+ if (!patch.style.hasOwnProperty(p)) {
2486
+ this.element.style[p] = "";
2487
+ }
2488
+ }
2489
+ }
2490
+ }
2491
+ for (const x in patch.style) {
2481
2492
  if (length_css_attributes_set.has(x)) {
2482
- if (isFinite(patch[a][x])) {
2483
- patch[a][x] += "px";
2493
+ if (isFinite(patch.style[x])) {
2494
+ patch.style[x] += "px";
2484
2495
  }
2485
2496
  }
2486
2497
  }
2487
- Object.assign(this.element.style, patch[a]);
2498
+ Object.assign(this.element.style, patch.style);
2488
2499
  }
2489
2500
  } else if (boolean_html_attributes_set.has(a)) {
2490
2501
  this.element[a] = toBool(patch[a]);
@@ -4510,8 +4521,8 @@ function Spinner({
4510
4521
  animation: "ddSpinnerSpin 0.9s linear infinite",
4511
4522
  boxSizing: "border-box"
4512
4523
  } }), createComponent("style", {}, `
4513
- @keyframes ddSpinnerSpin { to { transform: rotate(360deg); } }
4514
- `));
4524
+ @keyframes ddSpinnerSpin { to { transform: rotate(360deg); } }
4525
+ `));
4515
4526
  }
4516
4527
  var ErrorBoundary = class extends Component {
4517
4528
  constructor() {
@@ -4803,7 +4814,7 @@ var SplitPane = forwardRef(function SplitPane2({
4803
4814
  };
4804
4815
  const splitterBase = {
4805
4816
  background: "rgba(0,0,0,0.08)",
4806
- boxShadow: "inset 0 0 0 1px rgba(0,0,0,0.15)",
4817
+ boxShadow: "inset 0 0 2px rgba(0,0,0,0.25)",
4807
4818
  zIndex: 10
4808
4819
  };
4809
4820
  const splitterAbsStyle = internalMode === "horizontal" ? {
@@ -4837,7 +4848,7 @@ var SplitPane = forwardRef(function SplitPane2({
4837
4848
  height: "100%",
4838
4849
  overflow: "hidden",
4839
4850
  ...style || {}
4840
- } }, createComponent("div", { "style": pane1StyleAbs }, firstChild), createComponent("div", { "style": pane2StyleAbs }, secondChild), createComponent(DragHandle, { "onStart": handleStart, "onDelta": handleDelta, "onEnd": handleEnd, "style": splitterAbsStyle }));
4851
+ } }, createComponent("div", { "style": pane1StyleAbs }, firstChild), createComponent("div", { "style": pane2StyleAbs }, secondChild), createComponent(DragHandle, { "onStart": handleStart, "onDelta": handleDelta, "onEnd": handleEnd, "style": splitterAbsStyle, "className": "splitter" }));
4841
4852
  });
4842
4853
  var clamp = (v, min, max) => Math.max(min, Math.min(max, v));
4843
4854