@kumori/aurora-wui-components 0.0.337-dev4696.11 → 0.0.337-dev4696.12
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-selector-card.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-selector-card/axebow-selector-card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAa,MAAM,KAAK,CAAC;AAIvD,OAAO,+BAA+B,CAAC;AAEvC,qBACa,kBAAmB,SAAQ,UAAU;IAChD,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"axebow-selector-card.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-selector-card/axebow-selector-card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAa,MAAM,KAAK,CAAC;AAIvD,OAAO,+BAA+B,CAAC;AAEvC,qBACa,kBAAmB,SAAQ,UAAU;IAChD,MAAM,CAAC,MAAM,4BA+CX;IAE0B,MAAM,SAAM;IACZ,OAAO,SAAM;IACb,SAAS,SAAc;IACtB,QAAQ,UAAS;IACjB,QAAQ,UAAS;IAE9C,MAAM;CAwBP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,sBAAsB,EAAE,kBAAkB,CAAC;KAC5C;CACF"}
|
package/dist/index.js
CHANGED
|
@@ -3282,6 +3282,7 @@ var AxebowSelectorCard = class AxebowSelectorCard extends LitElement {
|
|
|
3282
3282
|
super(..._args);
|
|
3283
3283
|
this.cardId = "";
|
|
3284
3284
|
this.logoSrc = "";
|
|
3285
|
+
this.logoWidth = "1.125rem";
|
|
3285
3286
|
this.selected = false;
|
|
3286
3287
|
this.disabled = false;
|
|
3287
3288
|
}
|
|
@@ -3322,16 +3323,10 @@ var AxebowSelectorCard = class AxebowSelectorCard extends LitElement {
|
|
|
3322
3323
|
background-color: var(--axebow-white);
|
|
3323
3324
|
}
|
|
3324
3325
|
.registry-logo {
|
|
3325
|
-
height:
|
|
3326
|
-
aspect-ratio: 1 / 1;
|
|
3326
|
+
height: 1.125rem;
|
|
3327
3327
|
object-fit: contain;
|
|
3328
3328
|
flex-shrink: 0;
|
|
3329
3329
|
}
|
|
3330
|
-
@media (min-width: 64rem) {
|
|
3331
|
-
.registry-logo {
|
|
3332
|
-
height: calc(var(--spacing) * 6);
|
|
3333
|
-
}
|
|
3334
|
-
}
|
|
3335
3330
|
p {
|
|
3336
3331
|
margin: 0;
|
|
3337
3332
|
white-space: nowrap;
|
|
@@ -3346,7 +3341,12 @@ var AxebowSelectorCard = class AxebowSelectorCard extends LitElement {
|
|
|
3346
3341
|
<div
|
|
3347
3342
|
class="card-wrapper rounded-lg border border-solid p-2 text-center transition-all duration-300 ease-in-out flex items-center justify-center ${this.selected ? "selected" : ""} ${this.disabled ? "opacity-60 pointer-events-none" : "cursor-pointer"}"
|
|
3348
3343
|
>
|
|
3349
|
-
<img
|
|
3344
|
+
<img
|
|
3345
|
+
class="registry-logo"
|
|
3346
|
+
style="width: ${this.logoWidth || "1.125rem"};"
|
|
3347
|
+
src="${this.logoSrc}"
|
|
3348
|
+
alt="${this.cardId}"
|
|
3349
|
+
/>
|
|
3350
3350
|
<p class="m-0">${this.cardId}</p>
|
|
3351
3351
|
${this.selected ? html`
|
|
3352
3352
|
<div
|
|
@@ -3361,6 +3361,7 @@ var AxebowSelectorCard = class AxebowSelectorCard extends LitElement {
|
|
|
3361
3361
|
};
|
|
3362
3362
|
__decorate([property({ type: String })], AxebowSelectorCard.prototype, "cardId", void 0);
|
|
3363
3363
|
__decorate([property({ type: String })], AxebowSelectorCard.prototype, "logoSrc", void 0);
|
|
3364
|
+
__decorate([property({ type: String })], AxebowSelectorCard.prototype, "logoWidth", void 0);
|
|
3364
3365
|
__decorate([property({ type: Boolean })], AxebowSelectorCard.prototype, "selected", void 0);
|
|
3365
3366
|
__decorate([property({ type: Boolean })], AxebowSelectorCard.prototype, "disabled", void 0);
|
|
3366
3367
|
AxebowSelectorCard = __decorate([customElement("axebow-selector-card")], AxebowSelectorCard);
|