@kumori/aurora-wui-components 0.0.334 → 0.0.335

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.
@@ -1 +1 @@
1
- {"version":3,"file":"axebow-limits-counter.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-limits-counter/axebow-limits-counter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAa,MAAM,KAAK,CAAC;AAKvD,qBACa,mBAAoB,SAAQ,UAAU;IACrB,KAAK,SAAM;IACX,OAAO,SAAM;IACb,KAAK,SAAM;IACX,IAAI,SAAM;IAEtC,MAAM,CAAC,MAAM,4BAQX;IAEF,OAAO,CAAC,OAAO;IAKf,MAAM;CASP"}
1
+ {"version":3,"file":"axebow-limits-counter.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-limits-counter/axebow-limits-counter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAa,MAAM,KAAK,CAAC;AAKvD,qBACa,mBAAoB,SAAQ,UAAU;IACrB,KAAK,SAAM;IACX,OAAO,SAAM;IACb,KAAK,SAAM;IACX,IAAI,SAAM;IAEtC,MAAM,CAAC,MAAM,4BAQX;IAEF,OAAO,CAAC,OAAO;IAQf,MAAM;CASP"}
package/dist/index.js CHANGED
@@ -5539,7 +5539,10 @@ var AxebowLimitsCounter = class AxebowLimitsCounter extends LitElement {
5539
5539
  }
5540
5540
  _format(value) {
5541
5541
  const n = Number(value);
5542
- return isNaN(n) ? value : n.toFixed(2);
5542
+ if (isNaN(n) || n < 0) return value;
5543
+ if (n === 0) return "0.0";
5544
+ const rounded = Math.round(Number((n * 10).toPrecision(12))) / 10;
5545
+ return (rounded === 0 ? .1 : rounded).toFixed(1);
5543
5546
  }
5544
5547
  render() {
5545
5548
  return html`
@@ -9009,10 +9012,10 @@ var AxebowResourceCard = class AxebowResourceCard extends LitElement {
9009
9012
  </div>
9010
9013
 
9011
9014
  <button
9012
- class="w-26.25 h-8 box-border flex items-center justify-center gap-1 bg-transparent border-none cursor-pointer rounded whitespace-nowrap font-semibold text-(--axebow-gray) hover:bg-(--axebow-anti-flash-white) shrink-0"
9015
+ class="w-26.25 h-8 box-border flex items-center justify-center gap-1 bg-transparent border-none cursor-pointer rounded whitespace-nowrap text-base font-semibold text-(--axebow-gray) hover:bg-(--axebow-anti-flash-white) shrink-0"
9013
9016
  @click=${() => row.onSeeInNewTab?.()}
9014
9017
  >
9015
- ${this.seeInNewTabLabel}
9018
+ <span class="text-base">${this.seeInNewTabLabel}</span>
9016
9019
  <axebow-icon iconName="open_in_new" iconColor="var(--axebow-gray)" size="md"></axebow-icon>
9017
9020
  </button>
9018
9021