@kumori/aurora-wui-components 0.0.269-dev4119.2 → 0.0.269-dev4124.1

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.
@@ -31,8 +31,6 @@ export declare class AxebowButton extends LitElement {
31
31
  private _syncPaddingVar;
32
32
  private _guardDisabledClick;
33
33
  static styles: import('lit').CSSResult[];
34
- private _handlePrefixChange;
35
- private _handleSuffixChange;
36
34
  render(): import('lit-html').TemplateResult<1>;
37
35
  }
38
36
  //# sourceMappingURL=axebow-button.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"axebow-button.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-button/axebow-button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,UAAU,EAAkB,MAAM,KAAK,CAAC;AAIvD,OAAO,2DAA2D,CAAC;AAEnE,qBACa,YAAa,SAAQ,UAAU;IACC,OAAO,EAC9C,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,QAAQ,GACR,MAAM,CAAa;IAEoB,IAAI,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAY;IAC7C,OAAO,UAAS;IAChB,IAAI,UAAS;IACb,MAAM,UAAS;IACZ,QAAQ,UAAS;IACpB,OAAO,UAAS;IAChB,KAAK,UAAS;IAC9B,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAY;IAC/C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MA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G,QAAQ,CAAY;;IAOvE,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC;IAerC,OAAO,CAAC,eAAe;IAOvB,OAAO,CAAC,mBAAmB,CAKzB;IAEF,MAAM,CAAC,MAAM,4BAsLX;IAEF,MAAM;CAyBP"}
@@ -1 +1 @@
1
- {"version":3,"file":"axebow-deploy-card.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-deploy-card/axebow-deploy-card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAa,MAAM,KAAK,CAAC;AAEvD,OAAO,+BAA+B,CAAC;AACvC,OAAO,mCAAmC,CAAC;AAG3C;;;;GAIG;AACH,qBACa,gBAAiB,SAAQ,UAAU;IAClB,KAAK,SAAM;IACX,IAAI,SAAM;IACV,WAAW,SAAM;IACb,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,KAAK,SAAgB;IACrB,MAAM,SAAc;IAEvC,OAAO,CAAC,cAAc,CAAS;IAExC,MAAM,CAAC,MAAM,4BAcX;IAEF,MAAM;CAkCP"}
1
+ {"version":3,"file":"axebow-deploy-card.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-deploy-card/axebow-deploy-card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAa,MAAM,KAAK,CAAC;AAEvD,OAAO,+BAA+B,CAAC;AACvC,OAAO,mCAAmC,CAAC;AAG3C;;;;GAIG;AACH,qBACa,gBAAiB,SAAQ,UAAU;IAClB,KAAK,SAAM;IACX,IAAI,SAAM;IACV,WAAW,SAAM;IACb,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,KAAK,SAAgB;IACrB,MAAM,SAAc;IAEvC,OAAO,CAAC,cAAc,CAAS;IAExC,MAAM,CAAC,MAAM,4BAgBX;IAEF,MAAM;CAkCP"}
package/dist/index.js CHANGED
@@ -396,7 +396,35 @@ var AxebowButton = class AxebowButton extends LitElement {
396
396
  line-height: calc(var(--axebow-button-height, 2.5rem) - var(--sl-input-border-width) * 2);
397
397
  width: var(--axebow-button-width, auto);
398
398
  min-width: var(--axebow-button-width, 9.375rem);
399
- gap: 1rem;
399
+ }
400
+
401
+ /**
402
+ * The label part carries sl-button's own internal left/right spacing
403
+ * via a higher-specificity internal rule
404
+ * (.button--has-label.button--{size} .button__label), which an
405
+ * external ::part() override of equal-or-lower specificity cannot
406
+ * beat on its own - !important is required here, not optional
407
+ * styling preference. Each size's fallback points at shoelace's own
408
+ * token for that size, so unconfigured buttons render byte-for-byte
409
+ * as before - only an explicit padding* property changes anything.
410
+ */
411
+ sl-button[size='small']::part(label) {
412
+ padding-top: var(--axebow-button-padding-top, 0) !important;
413
+ padding-right: var(--axebow-button-padding-right, var(--sl-spacing-small)) !important;
414
+ padding-bottom: var(--axebow-button-padding-bottom, 0) !important;
415
+ padding-left: var(--axebow-button-padding-left, var(--sl-spacing-small)) !important;
416
+ }
417
+ sl-button[size='medium']::part(label) {
418
+ padding-top: var(--axebow-button-padding-top, 0) !important;
419
+ padding-right: var(--axebow-button-padding-right, var(--sl-spacing-medium)) !important;
420
+ padding-bottom: var(--axebow-button-padding-bottom, 0) !important;
421
+ padding-left: var(--axebow-button-padding-left, var(--sl-spacing-medium)) !important;
422
+ }
423
+ sl-button[size='large']::part(label) {
424
+ padding-top: var(--axebow-button-padding-top, 0) !important;
425
+ padding-right: var(--axebow-button-padding-right, var(--sl-spacing-large)) !important;
426
+ padding-bottom: var(--axebow-button-padding-bottom, 0) !important;
427
+ padding-left: var(--axebow-button-padding-left, var(--sl-spacing-large)) !important;
400
428
  }
401
429
 
402
430
  /**
@@ -487,6 +515,7 @@ var AxebowButton = class AxebowButton extends LitElement {
487
515
  outline-color: var(--axebow-error);
488
516
  }
489
517
  sl-button[variant='danger'][outline]:not([disabled]):hover::part(base) {
518
+ background: color-mix(in srgb, var(--axebow-gray) 15%, transparent);
490
519
  color: var(--axebow-gray);
491
520
  border-color: var(--axebow-gray);
492
521
  outline-color: var(--axebow-gray);
@@ -533,37 +562,8 @@ var AxebowButton = class AxebowButton extends LitElement {
533
562
  sl-button[hoverstyle='border']:not([disabled]):hover::part(label) {
534
563
  color: var(--axebow-gray) !important;
535
564
  }
536
-
537
- sl-button::part(label) {
538
- padding: 0 !important;
539
- }
540
-
541
- sl-button::part(prefix),
542
- sl-button::part(suffix) {
543
- display: none !important;
544
- }
545
-
546
- :host([has-prefix]) sl-button::part(prefix) {
547
- display: flex !important;
548
- }
549
-
550
- :host([has-suffix]) sl-button::part(suffix) {
551
- display: flex !important;
552
- }
553
565
  `];
554
566
  }
555
- _handlePrefixChange(e) {
556
- if (e.target.assignedNodes().some((node) => {
557
- return node.nodeType === Node.ELEMENT_NODE || node.nodeType === Node.TEXT_NODE && node.textContent?.trim() !== "";
558
- })) this.setAttribute("has-prefix", "");
559
- else this.removeAttribute("has-prefix");
560
- }
561
- _handleSuffixChange(e) {
562
- if (e.target.assignedNodes().some((node) => {
563
- return node.nodeType === Node.ELEMENT_NODE || node.nodeType === Node.TEXT_NODE && node.textContent?.trim() !== "";
564
- })) this.setAttribute("has-suffix", "");
565
- else this.removeAttribute("has-suffix");
566
- }
567
567
  render() {
568
568
  return html`
569
569
  <sl-button
@@ -583,9 +583,9 @@ var AxebowButton = class AxebowButton extends LitElement {
583
583
  name=${ifDefined(this.name)}
584
584
  value=${ifDefined(this.value)}
585
585
  >
586
- <slot name="prefix" slot="prefix" @slotchange=${this._handlePrefixChange}></slot>
586
+ <slot name="prefix" slot="prefix"></slot>
587
587
  <slot></slot>
588
- <slot name="suffix" slot="suffix" @slotchange=${this._handleSuffixChange}></slot>
588
+ <slot name="suffix" slot="suffix"></slot>
589
589
  </sl-button>
590
590
  `;
591
591
  }
@@ -7096,6 +7096,8 @@ var AxebowDeployCard = class AxebowDeployCard extends LitElement {
7096
7096
  }
7097
7097
  axebow-button[variant='text']:hover::part(base) {
7098
7098
  background-color: var(--axebow-base);
7099
+ width: 6.875rem;
7100
+ min-width: 6.875rem;
7099
7101
  }
7100
7102
  axebow-button[variant='text']:hover::part(label) {
7101
7103
  color: var(--axebow-gray);
@@ -7120,7 +7122,7 @@ var AxebowDeployCard = class AxebowDeployCard extends LitElement {
7120
7122
  <axebow-button
7121
7123
  variant="text"
7122
7124
  class="ml-auto"
7123
- fixedWidth="6.875rem"
7125
+ fixedWidth="5.75rem"
7124
7126
  fixedHeight="2rem"
7125
7127
  @click=${() => this.onClick?.()}
7126
7128
  @mouseenter=${() => this._deployHovered = true}