@breadstone/mosaik-elements-svelte 0.1.71 → 0.1.73
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/CHANGELOG.md +10 -0
- package/index.mjs +368 -84
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
## 0.1.73 (2026-08-09)
|
|
2
|
+
|
|
3
|
+
This was a version bump only for mosaik-elements-svelte to align it with other projects, there were no code changes.
|
|
4
|
+
|
|
5
|
+
## 0.1.72 (2026-08-09)
|
|
6
|
+
|
|
7
|
+
### 🚀 Features
|
|
8
|
+
|
|
9
|
+
- **combo:** enhance styles and functionality across themes ([de2162bd87](https://github.com/RueDeRennes/mosaik/commit/de2162bd87))
|
|
10
|
+
|
|
1
11
|
## 0.1.71 (2026-08-06)
|
|
2
12
|
|
|
3
13
|
### 🚀 Features
|
package/index.mjs
CHANGED
|
@@ -37192,7 +37192,7 @@ var GD = (e) => {
|
|
|
37192
37192
|
(this.host.shadowRoot?.querySelector("[part=\"label\"]"))?.classList.toggle("floating", this.shouldFloat());
|
|
37193
37193
|
}
|
|
37194
37194
|
hasValue() {
|
|
37195
|
-
return this._valueProperties.some((e) => !this.isEmpty(Reflect.get(this.host, e)));
|
|
37195
|
+
return this.host.hasSlotContent?.("value") === !0 || this._valueProperties.some((e) => !this.isEmpty(Reflect.get(this.host, e)));
|
|
37196
37196
|
}
|
|
37197
37197
|
isEmpty(e) {
|
|
37198
37198
|
return e == null || e === "" || Array.isArray(e) && e.length === 0;
|
|
@@ -40660,11 +40660,12 @@ var NO = function(e, t, n, r) {
|
|
|
40660
40660
|
return this._slottedControl ?? this.control;
|
|
40661
40661
|
}
|
|
40662
40662
|
get isFloatingActive() {
|
|
40663
|
-
return this.isOpen && this._anchorReady && this.anchorElement !== null;
|
|
40663
|
+
return !this.disabled && this.isOpen && this._anchorReady && this.anchorElement !== null;
|
|
40664
40664
|
}
|
|
40665
40665
|
async open() {
|
|
40666
|
+
if (this.disabled) return;
|
|
40666
40667
|
let e = this._connectionRevision;
|
|
40667
|
-
await super.open(), this.isCurrentConnection(e) && (this.isOpen = !0);
|
|
40668
|
+
await super.open(), this.isCurrentConnection(e) && !this.disabled && (this.isOpen = !0);
|
|
40668
40669
|
}
|
|
40669
40670
|
async close() {
|
|
40670
40671
|
if (this._staysOpen) return Promise.resolve(!1);
|
|
@@ -40745,7 +40746,7 @@ var NO = function(e, t, n, r) {
|
|
|
40745
40746
|
});
|
|
40746
40747
|
}
|
|
40747
40748
|
onDisabledPropertyChange() {
|
|
40748
|
-
this.disabled && this.isOpen
|
|
40749
|
+
this.disabled && (this.clearHoverTimeout(), this.isOpen &&= !1);
|
|
40749
40750
|
}
|
|
40750
40751
|
onForPropertyChange() {
|
|
40751
40752
|
this.scheduleControlRebinding(!0);
|
|
@@ -116121,9 +116122,9 @@ function zK(e) {
|
|
|
116121
116122
|
<slot name="prefix" slot="prefix"></slot>
|
|
116122
116123
|
${R(e.hasCustomTrigger, () => I`
|
|
116123
116124
|
<slot name="trigger" slot="value"></slot>
|
|
116124
|
-
`, () => I`
|
|
116125
|
+
`, () => R(e.hasSelectionPresentation, () => I`
|
|
116125
116126
|
<span part="selection-visuals" slot="value"></span>
|
|
116126
|
-
`)}
|
|
116127
|
+
`))}
|
|
116127
116128
|
<slot name="suffix" slot="suffix"></slot>
|
|
116128
116129
|
<mosaik-button part="caret"
|
|
116129
116130
|
slot="suffix"
|
|
@@ -201263,13 +201264,14 @@ function bxe(e) {
|
|
|
201263
201264
|
.textAlign="${e.textAlign}"
|
|
201264
201265
|
?disabled="${e.disabled}"
|
|
201265
201266
|
@click="${() => e.open()}"
|
|
201266
|
-
@input="${(t) => e.onEditorInput(t)}"
|
|
201267
|
+
@input="${(t) => e.onEditorInput(t)}"
|
|
201268
|
+
@cleared="${() => e.clear()}">
|
|
201267
201269
|
<slot name="prefix" slot="prefix"></slot>
|
|
201268
201270
|
${R(e.hasCustomTrigger, () => I`
|
|
201269
201271
|
<slot name="trigger" slot="value"></slot>
|
|
201270
|
-
`, () => I`
|
|
201272
|
+
`, () => R(e.hasSelectionPresentation, () => I`
|
|
201271
201273
|
<span part="selection-visuals" slot="value"></span>
|
|
201272
|
-
`)}
|
|
201274
|
+
`))}
|
|
201273
201275
|
<slot name="suffix" slot="suffix"></slot>
|
|
201274
201276
|
<mosaik-button part="icon"
|
|
201275
201277
|
slot="suffix"
|
|
@@ -201341,22 +201343,14 @@ function xxe(e) {
|
|
|
201341
201343
|
`)}
|
|
201342
201344
|
</slot>
|
|
201343
201345
|
<slot name="checkmark">
|
|
201344
|
-
${cb(e.parent.selectionMode, [
|
|
201345
|
-
["none", () => I`
|
|
201346
|
-
`],
|
|
201347
|
-
["single", () => I`
|
|
201348
|
-
`],
|
|
201349
|
-
["multiple", () => I`
|
|
201350
201346
|
${R(e.isChecked, () => I`
|
|
201351
|
-
|
|
201347
|
+
<mosaik-checkmark part="checkmark"
|
|
201352
201348
|
.appearance="${"plain"}"
|
|
201353
201349
|
.variant="${e.variant}"
|
|
201354
201350
|
.type="${"hook"}"
|
|
201355
201351
|
?checked="${e.isChecked}"
|
|
201356
201352
|
?disabled="${e.disabled}"></mosaik-checkmark>
|
|
201357
201353
|
`)}
|
|
201358
|
-
`]
|
|
201359
|
-
])}
|
|
201360
201354
|
</slot>
|
|
201361
201355
|
<slot name="end"></slot>
|
|
201362
201356
|
`;
|
|
@@ -201375,19 +201369,19 @@ function Sxe() {
|
|
|
201375
201369
|
--combo-item-focus-ring-color: var(--cosmopolitan-color-light-secondary-400);
|
|
201376
201370
|
--combo-item-focus-ring-inward-offset: 2px;
|
|
201377
201371
|
--combo-item-focus-ring-outward-offset: 2px;
|
|
201378
|
-
--combo-item-font-family:
|
|
201379
|
-
--combo-item-font-letter-spacing:
|
|
201380
|
-
--combo-item-font-line-height:
|
|
201381
|
-
--combo-item-font-size:
|
|
201382
|
-
--combo-item-font-text-decoration:
|
|
201383
|
-
--combo-item-font-text-transform:
|
|
201384
|
-
--combo-item-font-weight:
|
|
201372
|
+
--combo-item-font-family: var(--cosmopolitan-font-family);
|
|
201373
|
+
--combo-item-font-letter-spacing: var(--cosmopolitan-typography-body2-letter-spacing);
|
|
201374
|
+
--combo-item-font-line-height: var(--cosmopolitan-typography-body2-line-height);
|
|
201375
|
+
--combo-item-font-size: 16px;
|
|
201376
|
+
--combo-item-font-text-decoration: var(--cosmopolitan-typography-body2-text-decoration);
|
|
201377
|
+
--combo-item-font-text-transform: var(--cosmopolitan-typography-body2-text-transform);
|
|
201378
|
+
--combo-item-font-weight: normal;
|
|
201385
201379
|
--combo-item-foreground-color: unset;
|
|
201386
|
-
--combo-item-gap:
|
|
201387
|
-
--combo-item-padding-bottom:
|
|
201388
|
-
--combo-item-padding-left:
|
|
201389
|
-
--combo-item-padding-right:
|
|
201390
|
-
--combo-item-padding-top:
|
|
201380
|
+
--combo-item-gap: 8px;
|
|
201381
|
+
--combo-item-padding-bottom: 8px;
|
|
201382
|
+
--combo-item-padding-left: 16px;
|
|
201383
|
+
--combo-item-padding-right: 16px;
|
|
201384
|
+
--combo-item-padding-top: 8px;
|
|
201391
201385
|
--combo-item-ripple-color: var(--cosmopolitan-color-light-secondary-200);
|
|
201392
201386
|
--combo-item-ripple-duration: .2s;
|
|
201393
201387
|
--combo-item-shadow: unset unset unset unset unset;
|
|
@@ -201396,9 +201390,9 @@ function Sxe() {
|
|
|
201396
201390
|
--combo-item-shadow-offset-x: unset;
|
|
201397
201391
|
--combo-item-shadow-offset-y: unset;
|
|
201398
201392
|
--combo-item-shadow-spread: unset;
|
|
201399
|
-
--combo-item-transition-duration:
|
|
201400
|
-
--combo-item-transition-mode:
|
|
201401
|
-
--combo-item-transition-property:
|
|
201393
|
+
--combo-item-transition-duration: var(--mosaik-duration-short);
|
|
201394
|
+
--combo-item-transition-mode: ease;
|
|
201395
|
+
--combo-item-transition-property: all;
|
|
201402
201396
|
--combo-item-translate: none;
|
|
201403
201397
|
}
|
|
201404
201398
|
|
|
@@ -201445,9 +201439,10 @@ function Sxe() {
|
|
|
201445
201439
|
transition-duration: var(--combo-item-transition-duration);
|
|
201446
201440
|
transition-timing-function: var(--combo-item-transition-mode);
|
|
201447
201441
|
transition-property: var(--combo-item-transition-property);
|
|
201448
|
-
|
|
201449
|
-
|
|
201442
|
+
translate: var(--combo-item-translate);
|
|
201443
|
+
background: var(--combo-item-background-color);
|
|
201450
201444
|
color: var(--combo-item-foreground-color);
|
|
201445
|
+
border-color: var(--combo-item-border-color);
|
|
201451
201446
|
border-width: var(--combo-item-border-width);
|
|
201452
201447
|
border-radius: var(--combo-item-border-radius);
|
|
201453
201448
|
border-style: var(--combo-item-border-style);
|
|
@@ -201458,7 +201453,21 @@ function Sxe() {
|
|
|
201458
201453
|
display: flex;
|
|
201459
201454
|
}
|
|
201460
201455
|
|
|
201461
|
-
:host
|
|
201456
|
+
:host mosaik-text, :host mosaik-icon {
|
|
201457
|
+
color: inherit;
|
|
201458
|
+
font-size: inherit;
|
|
201459
|
+
}
|
|
201460
|
+
|
|
201461
|
+
:host mosaik-icon {
|
|
201462
|
+
flex-shrink: 0;
|
|
201463
|
+
}
|
|
201464
|
+
|
|
201465
|
+
:host slot[name="label"] {
|
|
201466
|
+
flex: 1;
|
|
201467
|
+
display: block;
|
|
201468
|
+
}
|
|
201469
|
+
|
|
201470
|
+
:host(:not([disabled]:not([disabled="false"])):hover:not(:active)) {
|
|
201462
201471
|
cursor: pointer;
|
|
201463
201472
|
}
|
|
201464
201473
|
|
|
@@ -201479,17 +201488,17 @@ function Cxe() {
|
|
|
201479
201488
|
--combo-item-focus-ring-inward-offset: 2px;
|
|
201480
201489
|
--combo-item-focus-ring-outward-offset: 2px;
|
|
201481
201490
|
--combo-item-font-family: var(--joy-font-family);
|
|
201482
|
-
--combo-item-font-letter-spacing: var(--joy-typography-
|
|
201483
|
-
--combo-item-font-line-height: var(--joy-typography-
|
|
201484
|
-
--combo-item-font-size: var(--joy-typography-
|
|
201485
|
-
--combo-item-font-text-decoration: var(--joy-typography-
|
|
201486
|
-
--combo-item-font-text-transform: var(--joy-typography-
|
|
201487
|
-
--combo-item-font-weight:
|
|
201491
|
+
--combo-item-font-letter-spacing: var(--joy-typography-body2-letter-spacing);
|
|
201492
|
+
--combo-item-font-line-height: var(--joy-typography-body2-line-height);
|
|
201493
|
+
--combo-item-font-size: var(--joy-typography-body2-font-size);
|
|
201494
|
+
--combo-item-font-text-decoration: var(--joy-typography-body2-text-decoration);
|
|
201495
|
+
--combo-item-font-text-transform: var(--joy-typography-body2-text-transform);
|
|
201496
|
+
--combo-item-font-weight: normal;
|
|
201488
201497
|
--combo-item-foreground-color: var(--joy-scheme-foreground);
|
|
201489
201498
|
--combo-item-gap: calc(var(--joy-layout-space) * 3);
|
|
201490
201499
|
--combo-item-padding-bottom: var(--joy-layout-space);
|
|
201491
|
-
--combo-item-padding-left: var(--joy-layout-space);
|
|
201492
|
-
--combo-item-padding-right: var(--joy-layout-space);
|
|
201500
|
+
--combo-item-padding-left: calc(var(--joy-layout-space) * 2);
|
|
201501
|
+
--combo-item-padding-right: calc(var(--joy-layout-space) * 2);
|
|
201493
201502
|
--combo-item-padding-top: var(--joy-layout-space);
|
|
201494
201503
|
--combo-item-ripple-color: var(--joy-color-light-secondary-200);
|
|
201495
201504
|
--combo-item-ripple-duration: .2s;
|
|
@@ -201501,7 +201510,7 @@ function Cxe() {
|
|
|
201501
201510
|
--combo-item-shadow-spread: unset;
|
|
201502
201511
|
--combo-item-transition-duration: var(--mosaik-duration-short);
|
|
201503
201512
|
--combo-item-transition-mode: ease;
|
|
201504
|
-
--combo-item-transition-property:
|
|
201513
|
+
--combo-item-transition-property: all;
|
|
201505
201514
|
--combo-item-translate: none;
|
|
201506
201515
|
}
|
|
201507
201516
|
|
|
@@ -201548,9 +201557,10 @@ function Cxe() {
|
|
|
201548
201557
|
transition-duration: var(--combo-item-transition-duration);
|
|
201549
201558
|
transition-timing-function: var(--combo-item-transition-mode);
|
|
201550
201559
|
transition-property: var(--combo-item-transition-property);
|
|
201551
|
-
|
|
201552
|
-
|
|
201560
|
+
translate: var(--combo-item-translate);
|
|
201561
|
+
background: var(--combo-item-background-color);
|
|
201553
201562
|
color: var(--combo-item-foreground-color);
|
|
201563
|
+
border-color: var(--combo-item-border-color);
|
|
201554
201564
|
border-width: var(--combo-item-border-width);
|
|
201555
201565
|
border-radius: var(--combo-item-border-radius);
|
|
201556
201566
|
border-style: var(--combo-item-border-style);
|
|
@@ -201561,8 +201571,29 @@ function Cxe() {
|
|
|
201561
201571
|
display: flex;
|
|
201562
201572
|
}
|
|
201563
201573
|
|
|
201564
|
-
:host
|
|
201574
|
+
:host mosaik-text, :host mosaik-icon {
|
|
201575
|
+
color: inherit;
|
|
201576
|
+
font-size: inherit;
|
|
201577
|
+
}
|
|
201578
|
+
|
|
201579
|
+
:host mosaik-icon {
|
|
201580
|
+
flex-shrink: 0;
|
|
201581
|
+
}
|
|
201582
|
+
|
|
201583
|
+
:host slot[name="label"] {
|
|
201584
|
+
flex: 1;
|
|
201585
|
+
display: block;
|
|
201586
|
+
}
|
|
201587
|
+
|
|
201588
|
+
:host(:not([disabled]:not([disabled="false"])):hover:not(:active)) {
|
|
201565
201589
|
cursor: pointer;
|
|
201590
|
+
}
|
|
201591
|
+
|
|
201592
|
+
:host([disabled]:not([disabled="false"])) {
|
|
201593
|
+
--combo-item-foreground-color: var(--joy-scheme-disabled);
|
|
201594
|
+
}
|
|
201595
|
+
|
|
201596
|
+
:host(:not([disabled]:not([disabled="false"])):hover) {
|
|
201566
201597
|
--combo-item-background-color: var(--joy-scheme-highlight);
|
|
201567
201598
|
}
|
|
201568
201599
|
|
|
@@ -201652,9 +201683,10 @@ function wxe() {
|
|
|
201652
201683
|
transition-duration: var(--combo-item-transition-duration);
|
|
201653
201684
|
transition-timing-function: var(--combo-item-transition-mode);
|
|
201654
201685
|
transition-property: var(--combo-item-transition-property);
|
|
201655
|
-
|
|
201656
|
-
|
|
201686
|
+
translate: var(--combo-item-translate);
|
|
201687
|
+
background: var(--combo-item-background-color);
|
|
201657
201688
|
color: var(--combo-item-foreground-color);
|
|
201689
|
+
border-color: var(--combo-item-border-color);
|
|
201658
201690
|
border-width: var(--combo-item-border-width);
|
|
201659
201691
|
border-radius: var(--combo-item-border-radius);
|
|
201660
201692
|
border-style: var(--combo-item-border-style);
|
|
@@ -201665,7 +201697,21 @@ function wxe() {
|
|
|
201665
201697
|
display: flex;
|
|
201666
201698
|
}
|
|
201667
201699
|
|
|
201668
|
-
:host
|
|
201700
|
+
:host mosaik-text, :host mosaik-icon {
|
|
201701
|
+
color: inherit;
|
|
201702
|
+
font-size: inherit;
|
|
201703
|
+
}
|
|
201704
|
+
|
|
201705
|
+
:host mosaik-icon {
|
|
201706
|
+
flex-shrink: 0;
|
|
201707
|
+
}
|
|
201708
|
+
|
|
201709
|
+
:host slot[name="label"] {
|
|
201710
|
+
flex: 1;
|
|
201711
|
+
display: block;
|
|
201712
|
+
}
|
|
201713
|
+
|
|
201714
|
+
:host(:not([disabled]:not([disabled="false"])):hover:not(:active)) {
|
|
201669
201715
|
cursor: pointer;
|
|
201670
201716
|
}
|
|
201671
201717
|
|
|
@@ -202028,7 +202074,7 @@ function Axe() {
|
|
|
202028
202074
|
--combo-background-color: unset;
|
|
202029
202075
|
--combo-border-color: unset;
|
|
202030
202076
|
--combo-border-radius: unset;
|
|
202031
|
-
--combo-border-style:
|
|
202077
|
+
--combo-border-style: unset;
|
|
202032
202078
|
--combo-border-width: unset;
|
|
202033
202079
|
--combo-focus-ring-active-width: 8px;
|
|
202034
202080
|
--combo-focus-ring-color: var(--cosmopolitan-color-light-secondary-400);
|
|
@@ -202037,12 +202083,12 @@ function Axe() {
|
|
|
202037
202083
|
--combo-font-family: var(--cosmopolitan-font-family);
|
|
202038
202084
|
--combo-font-letter-spacing: var(--cosmopolitan-typography-body2-letter-spacing);
|
|
202039
202085
|
--combo-font-line-height: var(--cosmopolitan-typography-body2-line-height);
|
|
202040
|
-
--combo-font-size:
|
|
202086
|
+
--combo-font-size: 16px;
|
|
202041
202087
|
--combo-font-text-decoration: var(--cosmopolitan-typography-body2-text-decoration);
|
|
202042
202088
|
--combo-font-text-transform: var(--cosmopolitan-typography-body2-text-transform);
|
|
202043
|
-
--combo-font-weight:
|
|
202044
|
-
--combo-foreground-color:
|
|
202045
|
-
--combo-gap:
|
|
202089
|
+
--combo-font-weight: normal;
|
|
202090
|
+
--combo-foreground-color: unset;
|
|
202091
|
+
--combo-gap: var(--cosmopolitan-layout-space);
|
|
202046
202092
|
--combo-padding-bottom: calc(var(--cosmopolitan-layout-space) / 2);
|
|
202047
202093
|
--combo-padding-left: calc(var(--cosmopolitan-layout-space) * 1.5);
|
|
202048
202094
|
--combo-padding-right: calc(var(--cosmopolitan-layout-space) * 1.5);
|
|
@@ -202055,7 +202101,7 @@ function Axe() {
|
|
|
202055
202101
|
--combo-shadow-spread: unset;
|
|
202056
202102
|
--combo-transition-duration: var(--mosaik-duration-short);
|
|
202057
202103
|
--combo-transition-mode: ease;
|
|
202058
|
-
--combo-transition-property:
|
|
202104
|
+
--combo-transition-property: all;
|
|
202059
202105
|
--combo-translate: none;
|
|
202060
202106
|
}
|
|
202061
202107
|
|
|
@@ -202086,6 +202132,23 @@ function Axe() {
|
|
|
202086
202132
|
}
|
|
202087
202133
|
|
|
202088
202134
|
:host {
|
|
202135
|
+
font-family: var(--combo-font-family);
|
|
202136
|
+
font-size: var(--combo-font-size);
|
|
202137
|
+
line-height: var(--combo-font-line-height);
|
|
202138
|
+
font-weight: var(--combo-font-weight);
|
|
202139
|
+
letter-spacing: var(--combo-font-letter-spacing);
|
|
202140
|
+
-webkit-text-decoration: var(--combo-font-text-decoration);
|
|
202141
|
+
text-decoration: var(--combo-font-text-decoration);
|
|
202142
|
+
text-transform: var(--combo-font-text-transform);
|
|
202143
|
+
transition-duration: var(--combo-transition-duration);
|
|
202144
|
+
transition-timing-function: var(--combo-transition-mode);
|
|
202145
|
+
transition-property: var(--combo-transition-property);
|
|
202146
|
+
translate: var(--combo-translate);
|
|
202147
|
+
background: var(--combo-background-color);
|
|
202148
|
+
color: var(--combo-foreground-color);
|
|
202149
|
+
box-shadow: var(--combo-shadow);
|
|
202150
|
+
border-color: var(--combo-border-color);
|
|
202151
|
+
border-radius: var(--combo-border-radius);
|
|
202089
202152
|
cursor: pointer;
|
|
202090
202153
|
}
|
|
202091
202154
|
|
|
@@ -202214,6 +202277,23 @@ function jxe() {
|
|
|
202214
202277
|
}
|
|
202215
202278
|
|
|
202216
202279
|
:host {
|
|
202280
|
+
font-family: var(--combo-font-family);
|
|
202281
|
+
font-size: var(--combo-font-size);
|
|
202282
|
+
line-height: var(--combo-font-line-height);
|
|
202283
|
+
font-weight: var(--combo-font-weight);
|
|
202284
|
+
letter-spacing: var(--combo-font-letter-spacing);
|
|
202285
|
+
-webkit-text-decoration: var(--combo-font-text-decoration);
|
|
202286
|
+
text-decoration: var(--combo-font-text-decoration);
|
|
202287
|
+
text-transform: var(--combo-font-text-transform);
|
|
202288
|
+
transition-duration: var(--combo-transition-duration);
|
|
202289
|
+
transition-timing-function: var(--combo-transition-mode);
|
|
202290
|
+
transition-property: var(--combo-transition-property);
|
|
202291
|
+
translate: var(--combo-translate);
|
|
202292
|
+
background: var(--combo-background-color);
|
|
202293
|
+
color: var(--combo-foreground-color);
|
|
202294
|
+
box-shadow: var(--combo-shadow);
|
|
202295
|
+
border-color: var(--combo-border-color);
|
|
202296
|
+
border-radius: var(--combo-border-radius);
|
|
202217
202297
|
cursor: pointer;
|
|
202218
202298
|
}
|
|
202219
202299
|
|
|
@@ -202273,6 +202353,179 @@ function jxe() {
|
|
|
202273
202353
|
transform: rotate(180deg);
|
|
202274
202354
|
}
|
|
202275
202355
|
|
|
202356
|
+
:host([appearance="plain"]) {
|
|
202357
|
+
--combo-border-width: 0;
|
|
202358
|
+
--combo-background-color: var(--joy-scheme-transparent);
|
|
202359
|
+
--combo-focus-ring-inward-offset: 0px;
|
|
202360
|
+
--combo-focus-ring-outward-offset: 0px;
|
|
202361
|
+
}
|
|
202362
|
+
|
|
202363
|
+
:host([appearance="plain"]) [part="focusRing"] {
|
|
202364
|
+
--focus-ring-outward-offset: 0px;
|
|
202365
|
+
}
|
|
202366
|
+
|
|
202367
|
+
:host([variant="primary"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) {
|
|
202368
|
+
--combo-border-color: var(--joy-color-primary-500);
|
|
202369
|
+
--combo-focus-ring-color: var(--joy-color-primary-500);
|
|
202370
|
+
}
|
|
202371
|
+
|
|
202372
|
+
:host([variant="primary"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) [part="popup"] {
|
|
202373
|
+
--combo-border-color: var(--joy-color-primary-500);
|
|
202374
|
+
}
|
|
202375
|
+
|
|
202376
|
+
:host([variant="primary"]:not([disabled]:not([disabled="false"])):not([invalid]):hover) {
|
|
202377
|
+
--combo-border-color: var(--joy-color-primary-500);
|
|
202378
|
+
--combo-focus-ring-color: var(--joy-color-primary-500);
|
|
202379
|
+
}
|
|
202380
|
+
|
|
202381
|
+
:host([variant="primary"]:not([disabled]:not([disabled="false"])):not([invalid]):hover) [part="popup"] {
|
|
202382
|
+
--combo-border-color: var(--joy-color-primary-500);
|
|
202383
|
+
}
|
|
202384
|
+
|
|
202385
|
+
:host([variant="secondary"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) {
|
|
202386
|
+
--combo-border-color: var(--joy-color-secondary-500);
|
|
202387
|
+
--combo-focus-ring-color: var(--joy-color-secondary-500);
|
|
202388
|
+
}
|
|
202389
|
+
|
|
202390
|
+
:host([variant="secondary"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) [part="popup"] {
|
|
202391
|
+
--combo-border-color: var(--joy-color-secondary-500);
|
|
202392
|
+
}
|
|
202393
|
+
|
|
202394
|
+
:host([variant="secondary"]:not([disabled]:not([disabled="false"])):not([invalid]):hover) {
|
|
202395
|
+
--combo-border-color: var(--joy-color-secondary-500);
|
|
202396
|
+
--combo-focus-ring-color: var(--joy-color-secondary-500);
|
|
202397
|
+
}
|
|
202398
|
+
|
|
202399
|
+
:host([variant="secondary"]:not([disabled]:not([disabled="false"])):not([invalid]):hover) [part="popup"] {
|
|
202400
|
+
--combo-border-color: var(--joy-color-secondary-500);
|
|
202401
|
+
}
|
|
202402
|
+
|
|
202403
|
+
:host([variant="tertiary"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) {
|
|
202404
|
+
--combo-border-color: var(--joy-color-tertiary-500);
|
|
202405
|
+
--combo-focus-ring-color: var(--joy-color-tertiary-500);
|
|
202406
|
+
}
|
|
202407
|
+
|
|
202408
|
+
:host([variant="tertiary"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) [part="popup"] {
|
|
202409
|
+
--combo-border-color: var(--joy-color-tertiary-500);
|
|
202410
|
+
}
|
|
202411
|
+
|
|
202412
|
+
:host([variant="tertiary"]:not([disabled]:not([disabled="false"])):not([invalid]):hover) {
|
|
202413
|
+
--combo-border-color: var(--joy-color-tertiary-500);
|
|
202414
|
+
--combo-focus-ring-color: var(--joy-color-tertiary-500);
|
|
202415
|
+
}
|
|
202416
|
+
|
|
202417
|
+
:host([variant="tertiary"]:not([disabled]:not([disabled="false"])):not([invalid]):hover) [part="popup"] {
|
|
202418
|
+
--combo-border-color: var(--joy-color-tertiary-500);
|
|
202419
|
+
}
|
|
202420
|
+
|
|
202421
|
+
:host([variant="danger"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) {
|
|
202422
|
+
--combo-border-color: var(--joy-color-danger-500);
|
|
202423
|
+
--combo-focus-ring-color: var(--joy-color-danger-500);
|
|
202424
|
+
}
|
|
202425
|
+
|
|
202426
|
+
:host([variant="danger"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) [part="popup"] {
|
|
202427
|
+
--combo-border-color: var(--joy-color-danger-500);
|
|
202428
|
+
}
|
|
202429
|
+
|
|
202430
|
+
:host([variant="danger"]:not([disabled]:not([disabled="false"])):not([invalid]):hover) {
|
|
202431
|
+
--combo-border-color: var(--joy-color-danger-500);
|
|
202432
|
+
--combo-focus-ring-color: var(--joy-color-danger-500);
|
|
202433
|
+
}
|
|
202434
|
+
|
|
202435
|
+
:host([variant="danger"]:not([disabled]:not([disabled="false"])):not([invalid]):hover) [part="popup"] {
|
|
202436
|
+
--combo-border-color: var(--joy-color-danger-500);
|
|
202437
|
+
}
|
|
202438
|
+
|
|
202439
|
+
:host([variant="warning"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) {
|
|
202440
|
+
--combo-border-color: var(--joy-color-warning-500);
|
|
202441
|
+
--combo-focus-ring-color: var(--joy-color-warning-500);
|
|
202442
|
+
}
|
|
202443
|
+
|
|
202444
|
+
:host([variant="warning"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) [part="popup"] {
|
|
202445
|
+
--combo-border-color: var(--joy-color-warning-500);
|
|
202446
|
+
}
|
|
202447
|
+
|
|
202448
|
+
:host([variant="warning"]:not([disabled]:not([disabled="false"])):not([invalid]):hover) {
|
|
202449
|
+
--combo-border-color: var(--joy-color-warning-500);
|
|
202450
|
+
--combo-focus-ring-color: var(--joy-color-warning-500);
|
|
202451
|
+
}
|
|
202452
|
+
|
|
202453
|
+
:host([variant="warning"]:not([disabled]:not([disabled="false"])):not([invalid]):hover) [part="popup"] {
|
|
202454
|
+
--combo-border-color: var(--joy-color-warning-500);
|
|
202455
|
+
}
|
|
202456
|
+
|
|
202457
|
+
:host([variant="success"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) {
|
|
202458
|
+
--combo-border-color: var(--joy-color-success-500);
|
|
202459
|
+
--combo-focus-ring-color: var(--joy-color-success-500);
|
|
202460
|
+
}
|
|
202461
|
+
|
|
202462
|
+
:host([variant="success"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) [part="popup"] {
|
|
202463
|
+
--combo-border-color: var(--joy-color-success-500);
|
|
202464
|
+
}
|
|
202465
|
+
|
|
202466
|
+
:host([variant="success"]:not([disabled]:not([disabled="false"])):not([invalid]):hover) {
|
|
202467
|
+
--combo-border-color: var(--joy-color-success-500);
|
|
202468
|
+
--combo-focus-ring-color: var(--joy-color-success-500);
|
|
202469
|
+
}
|
|
202470
|
+
|
|
202471
|
+
:host([variant="success"]:not([disabled]:not([disabled="false"])):not([invalid]):hover) [part="popup"] {
|
|
202472
|
+
--combo-border-color: var(--joy-color-success-500);
|
|
202473
|
+
}
|
|
202474
|
+
|
|
202475
|
+
:host([variant="info"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) {
|
|
202476
|
+
--combo-border-color: var(--joy-color-info-500);
|
|
202477
|
+
--combo-focus-ring-color: var(--joy-color-info-500);
|
|
202478
|
+
}
|
|
202479
|
+
|
|
202480
|
+
:host([variant="info"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) [part="popup"] {
|
|
202481
|
+
--combo-border-color: var(--joy-color-info-500);
|
|
202482
|
+
}
|
|
202483
|
+
|
|
202484
|
+
:host([variant="info"]:not([disabled]:not([disabled="false"])):not([invalid]):hover) {
|
|
202485
|
+
--combo-border-color: var(--joy-color-info-500);
|
|
202486
|
+
--combo-focus-ring-color: var(--joy-color-info-500);
|
|
202487
|
+
}
|
|
202488
|
+
|
|
202489
|
+
:host([variant="info"]:not([disabled]:not([disabled="false"])):not([invalid]):hover) [part="popup"] {
|
|
202490
|
+
--combo-border-color: var(--joy-color-info-500);
|
|
202491
|
+
}
|
|
202492
|
+
|
|
202493
|
+
:host([variant="highlight"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) {
|
|
202494
|
+
--combo-border-color: var(--joy-color-highlight-500);
|
|
202495
|
+
--combo-focus-ring-color: var(--joy-color-highlight-500);
|
|
202496
|
+
}
|
|
202497
|
+
|
|
202498
|
+
:host([variant="highlight"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) [part="popup"] {
|
|
202499
|
+
--combo-border-color: var(--joy-color-highlight-500);
|
|
202500
|
+
}
|
|
202501
|
+
|
|
202502
|
+
:host([variant="highlight"]:not([disabled]:not([disabled="false"])):not([invalid]):hover) {
|
|
202503
|
+
--combo-border-color: var(--joy-color-highlight-500);
|
|
202504
|
+
--combo-focus-ring-color: var(--joy-color-highlight-500);
|
|
202505
|
+
}
|
|
202506
|
+
|
|
202507
|
+
:host([variant="highlight"]:not([disabled]:not([disabled="false"])):not([invalid]):hover) [part="popup"] {
|
|
202508
|
+
--combo-border-color: var(--joy-color-highlight-500);
|
|
202509
|
+
}
|
|
202510
|
+
|
|
202511
|
+
:host([variant="neutral"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) {
|
|
202512
|
+
--combo-border-color: var(--joy-color-neutral-500);
|
|
202513
|
+
--combo-focus-ring-color: var(--joy-color-neutral-500);
|
|
202514
|
+
}
|
|
202515
|
+
|
|
202516
|
+
:host([variant="neutral"]:not([disabled]:not([disabled="false"])):not([invalid]):focus) [part="popup"] {
|
|
202517
|
+
--combo-border-color: var(--joy-color-neutral-500);
|
|
202518
|
+
}
|
|
202519
|
+
|
|
202520
|
+
:host([variant="neutral"]:not([disabled]:not([disabled="false"])):not([invalid]):hover) {
|
|
202521
|
+
--combo-border-color: var(--joy-color-neutral-500);
|
|
202522
|
+
--combo-focus-ring-color: var(--joy-color-neutral-500);
|
|
202523
|
+
}
|
|
202524
|
+
|
|
202525
|
+
:host([variant="neutral"]:not([disabled]:not([disabled="false"])):not([invalid]):hover) [part="popup"] {
|
|
202526
|
+
--combo-border-color: var(--joy-color-neutral-500);
|
|
202527
|
+
}
|
|
202528
|
+
|
|
202276
202529
|
`;
|
|
202277
202530
|
}
|
|
202278
202531
|
//#endregion
|
|
@@ -202280,11 +202533,11 @@ function jxe() {
|
|
|
202280
202533
|
function Mxe() {
|
|
202281
202534
|
return F`
|
|
202282
202535
|
:host {
|
|
202283
|
-
--combo-background-color:
|
|
202284
|
-
--combo-border-color:
|
|
202285
|
-
--combo-border-radius:
|
|
202536
|
+
--combo-background-color: var(--memphis-scheme-background);
|
|
202537
|
+
--combo-border-color: var(--memphis-color-light-secondary-400);
|
|
202538
|
+
--combo-border-radius: calc(var(--memphis-layout-radius) * 1.5);
|
|
202286
202539
|
--combo-border-style: solid;
|
|
202287
|
-
--combo-border-width:
|
|
202540
|
+
--combo-border-width: var(--memphis-layout-thickness);
|
|
202288
202541
|
--combo-focus-ring-active-width: 8px;
|
|
202289
202542
|
--combo-focus-ring-color: var(--memphis-color-light-secondary-400);
|
|
202290
202543
|
--combo-focus-ring-inward-offset: 2px;
|
|
@@ -202297,7 +202550,7 @@ function Mxe() {
|
|
|
202297
202550
|
--combo-font-text-transform: var(--memphis-typography-body2-text-transform);
|
|
202298
202551
|
--combo-font-weight: var(--memphis-typography-body2-font-weight);
|
|
202299
202552
|
--combo-foreground-color: var(--memphis-scheme-foreground);
|
|
202300
|
-
--combo-gap: var(--memphis-layout-space);
|
|
202553
|
+
--combo-gap: calc(var(--memphis-layout-space) / 2);
|
|
202301
202554
|
--combo-padding-bottom: calc(var(--memphis-layout-space) / 2);
|
|
202302
202555
|
--combo-padding-left: calc(var(--memphis-layout-space) * 1.5);
|
|
202303
202556
|
--combo-padding-right: calc(var(--memphis-layout-space) * 1.5);
|
|
@@ -202310,7 +202563,7 @@ function Mxe() {
|
|
|
202310
202563
|
--combo-shadow-spread: unset;
|
|
202311
202564
|
--combo-transition-duration: var(--mosaik-duration-short);
|
|
202312
202565
|
--combo-transition-mode: ease;
|
|
202313
|
-
--combo-transition-property: transform;
|
|
202566
|
+
--combo-transition-property: background-color, color, border-color, box-shadow, transform;
|
|
202314
202567
|
--combo-translate: none;
|
|
202315
202568
|
}
|
|
202316
202569
|
|
|
@@ -202341,6 +202594,23 @@ function Mxe() {
|
|
|
202341
202594
|
}
|
|
202342
202595
|
|
|
202343
202596
|
:host {
|
|
202597
|
+
font-family: var(--combo-font-family);
|
|
202598
|
+
font-size: var(--combo-font-size);
|
|
202599
|
+
line-height: var(--combo-font-line-height);
|
|
202600
|
+
font-weight: var(--combo-font-weight);
|
|
202601
|
+
letter-spacing: var(--combo-font-letter-spacing);
|
|
202602
|
+
-webkit-text-decoration: var(--combo-font-text-decoration);
|
|
202603
|
+
text-decoration: var(--combo-font-text-decoration);
|
|
202604
|
+
text-transform: var(--combo-font-text-transform);
|
|
202605
|
+
transition-duration: var(--combo-transition-duration);
|
|
202606
|
+
transition-timing-function: var(--combo-transition-mode);
|
|
202607
|
+
transition-property: var(--combo-transition-property);
|
|
202608
|
+
translate: var(--combo-translate);
|
|
202609
|
+
background: var(--combo-background-color);
|
|
202610
|
+
color: var(--combo-foreground-color);
|
|
202611
|
+
box-shadow: var(--combo-shadow);
|
|
202612
|
+
border-color: var(--combo-border-color);
|
|
202613
|
+
border-radius: var(--combo-border-radius);
|
|
202344
202614
|
cursor: pointer;
|
|
202345
202615
|
}
|
|
202346
202616
|
|
|
@@ -202400,34 +202670,45 @@ function Mxe() {
|
|
|
202400
202670
|
transform: rotate(180deg);
|
|
202401
202671
|
}
|
|
202402
202672
|
|
|
202403
|
-
:host {
|
|
202404
|
-
font-family: var(--combo-font-family);
|
|
202405
|
-
font-size: var(--combo-font-size);
|
|
202406
|
-
line-height: var(--combo-font-line-height);
|
|
202407
|
-
font-weight: var(--combo-font-weight);
|
|
202408
|
-
letter-spacing: var(--combo-font-letter-spacing);
|
|
202409
|
-
-webkit-text-decoration: var(--combo-font-text-decoration);
|
|
202410
|
-
text-decoration: var(--combo-font-text-decoration);
|
|
202411
|
-
text-transform: var(--combo-font-text-transform);
|
|
202412
|
-
padding-top: var(--combo-padding-top);
|
|
202413
|
-
padding-right: var(--combo-padding-right);
|
|
202414
|
-
padding-bottom: var(--combo-padding-bottom);
|
|
202415
|
-
padding-left: var(--combo-padding-left);
|
|
202416
|
-
color: var(--combo-foreground-color);
|
|
202417
|
-
transition-duration: var(--combo-transition-duration);
|
|
202418
|
-
transition-timing-function: var(--combo-transition-mode);
|
|
202419
|
-
transition-property: var(--combo-transition-property);
|
|
202420
|
-
translate: var(--combo-translate);
|
|
202421
|
-
}
|
|
202422
|
-
|
|
202423
202673
|
:host [part="focusRing"] {
|
|
202424
202674
|
--focus-ring-inward-offset: var(--combo-focus-ring-inward-offset);
|
|
202425
202675
|
--focus-ring-outward-offset: var(--combo-focus-ring-outward-offset);
|
|
202426
202676
|
--focus-ring-border-color: var(--combo-focus-ring-color);
|
|
202427
202677
|
}
|
|
202428
202678
|
|
|
202679
|
+
:host([appearance="plain"]) {
|
|
202680
|
+
--combo-border-width: 0;
|
|
202681
|
+
--combo-background-color: var(--memphis-scheme-transparent);
|
|
202682
|
+
}
|
|
202683
|
+
|
|
202684
|
+
:host([appearance="plain"]) [part="focusRing"] {
|
|
202685
|
+
--focus-ring-inward-offset: 0px;
|
|
202686
|
+
--focus-ring-outward-offset: 0px;
|
|
202687
|
+
}
|
|
202688
|
+
|
|
202429
202689
|
:host(:not([disabled]:not([disabled="false"])):hover) {
|
|
202430
|
-
--combo-
|
|
202690
|
+
--combo-border-color: var(--memphis-color-secondary-300);
|
|
202691
|
+
}
|
|
202692
|
+
|
|
202693
|
+
:host(:not([disabled]:not([disabled="false"])):focus-within) {
|
|
202694
|
+
--combo-border-color: var(--memphis-color-secondary-400);
|
|
202695
|
+
}
|
|
202696
|
+
|
|
202697
|
+
:host([is-drop-down-open]) {
|
|
202698
|
+
--combo-border-color: var(--memphis-color-secondary-500);
|
|
202699
|
+
}
|
|
202700
|
+
|
|
202701
|
+
:host([invalid]:not([disabled]:not([disabled="false"]))) {
|
|
202702
|
+
--combo-border-color: var(--memphis-color-danger-500);
|
|
202703
|
+
--combo-foreground-color: var(--memphis-color-danger-500);
|
|
202704
|
+
}
|
|
202705
|
+
|
|
202706
|
+
:host([invalid]:not([disabled]:not([disabled="false"]))) [part="focusRing"] {
|
|
202707
|
+
--focus-ring-border-color: var(--memphis-color-danger-500);
|
|
202708
|
+
}
|
|
202709
|
+
|
|
202710
|
+
:host([invalid]:not([disabled]:not([disabled="false"]))) [part="popup"] {
|
|
202711
|
+
--combo-border-color: var(--memphis-color-danger-500);
|
|
202431
202712
|
}
|
|
202432
202713
|
|
|
202433
202714
|
`;
|
|
@@ -202526,6 +202807,9 @@ var F8 = function(e, t, n, r) {
|
|
|
202526
202807
|
get hasCustomTrigger() {
|
|
202527
202808
|
return this.hasSlotContent("trigger");
|
|
202528
202809
|
}
|
|
202810
|
+
get hasSelectionPresentation() {
|
|
202811
|
+
return this.hasCustomTrigger || this.selectedItems.length > 0;
|
|
202812
|
+
}
|
|
202529
202813
|
get isEmpty() {
|
|
202530
202814
|
return this.items.length === 0 || !this.items.some((e) => !e.hidden);
|
|
202531
202815
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@breadstone/mosaik-elements-svelte",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.73",
|
|
4
4
|
"description": "Mosaik elements for Svelte.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "andre.wehlert <awehlert@breadstone.de> (https://www.breadstone.de)",
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"url": "git+ssh://git@github.com/RueDeRennes/mosaik.git"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@breadstone/mosaik-elements": "0.1.
|
|
15
|
-
"@breadstone/mosaik-elements-foundation": "0.1.
|
|
14
|
+
"@breadstone/mosaik-elements": "0.1.73",
|
|
15
|
+
"@breadstone/mosaik-elements-foundation": "0.1.73",
|
|
16
16
|
"tslib": "2.8.1"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|