@genexus/mercury 0.10.0 → 0.11.0
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/dist/bundles/css/all.css +1 -1
- package/dist/bundles/css/components/combo-box.css +1 -1
- package/dist/bundles/css/components/flexible-layout.css +1 -1
- package/dist/bundles/css/components/layout-splitter.css +1 -0
- package/dist/bundles/css/components/navigation-list.css +1 -1
- package/dist/bundles/css/components/slider.css +1 -1
- package/dist/bundles/css/components/tab.css +1 -1
- package/dist/bundles/css/components/toggle.css +1 -0
- package/dist/bundles/css/utils/form--full.css +1 -1
- package/dist/bundles/scss/components/layout-splitter.scss +3 -0
- package/dist/bundles/scss/components/toggle.scss +3 -0
- package/dist/bundles.d.ts +18 -2
- package/dist/bundles.js +2 -0
- package/dist/mercury.scss +331 -62
- package/package.json +1 -1
package/dist/mercury.scss
CHANGED
|
@@ -5131,11 +5131,68 @@
|
|
|
5131
5131
|
@include control-font-size-regular();
|
|
5132
5132
|
@include control-padding-inline-block();
|
|
5133
5133
|
|
|
5134
|
-
|
|
5134
|
+
&--hover {
|
|
5135
5135
|
@include control-colors-hover();
|
|
5136
5136
|
}
|
|
5137
5137
|
|
|
5138
|
+
&--focus {
|
|
5139
|
+
@include focus-border();
|
|
5140
|
+
}
|
|
5141
|
+
|
|
5142
|
+
&--disabled {
|
|
5143
|
+
@include control-colors-disabled();
|
|
5144
|
+
}
|
|
5145
|
+
|
|
5146
|
+
&--error {
|
|
5147
|
+
@include control-colors-error();
|
|
5148
|
+
}
|
|
5149
|
+
|
|
5150
|
+
&__window {
|
|
5151
|
+
@include items-container-border();
|
|
5152
|
+
@include items-container-border-radius();
|
|
5153
|
+
@include items-container-colors();
|
|
5154
|
+
@include items-container-padding();
|
|
5155
|
+
@include items-container-gap();
|
|
5156
|
+
@include items-container-max-height();
|
|
5157
|
+
@include items-container-dropdown();
|
|
5158
|
+
}
|
|
5159
|
+
|
|
5160
|
+
&-group__header {
|
|
5161
|
+
@include item-colors-enabled();
|
|
5162
|
+
@include item-font-header();
|
|
5163
|
+
@include item-padding();
|
|
5164
|
+
|
|
5165
|
+
&--expandable {
|
|
5166
|
+
@include item-colors-enabled();
|
|
5167
|
+
@include item-font-header();
|
|
5168
|
+
@include item-padding();
|
|
5169
|
+
@include item-border-radius();
|
|
5170
|
+
|
|
5171
|
+
&-hover {
|
|
5172
|
+
@include item-colors-hover();
|
|
5173
|
+
}
|
|
5174
|
+
}
|
|
5175
|
+
|
|
5176
|
+
&--disabled {
|
|
5177
|
+
@include item-colors-disabled();
|
|
5178
|
+
}
|
|
5179
|
+
}
|
|
5180
|
+
|
|
5181
|
+
&-group {
|
|
5182
|
+
@include items-container-gap();
|
|
5183
|
+
|
|
5184
|
+
&__content {
|
|
5185
|
+
@include items-container-gap();
|
|
5186
|
+
}
|
|
5187
|
+
}
|
|
5188
|
+
|
|
5138
5189
|
&__item {
|
|
5190
|
+
@include item-colors-enabled();
|
|
5191
|
+
@include item-border();
|
|
5192
|
+
@include item-border-radius();
|
|
5193
|
+
@include item-font();
|
|
5194
|
+
@include item-padding();
|
|
5195
|
+
|
|
5139
5196
|
&--nested {
|
|
5140
5197
|
padding-inline-start: calc(
|
|
5141
5198
|
var(--ch-combo-box-item-gap) +
|
|
@@ -5143,6 +5200,14 @@
|
|
|
5143
5200
|
var(--mer-spacing--2xs)
|
|
5144
5201
|
);
|
|
5145
5202
|
}
|
|
5203
|
+
|
|
5204
|
+
&--selected {
|
|
5205
|
+
@include item-colors-selected();
|
|
5206
|
+
}
|
|
5207
|
+
|
|
5208
|
+
&--disabled {
|
|
5209
|
+
@include item-colors-disabled();
|
|
5210
|
+
}
|
|
5146
5211
|
}
|
|
5147
5212
|
}
|
|
5148
5213
|
|
|
@@ -5163,13 +5228,13 @@
|
|
|
5163
5228
|
/// @param {String} $item--selected-selector [".combo-box::part(item selected)"] -
|
|
5164
5229
|
/// @param {Boolean} $add--disabled [true] -
|
|
5165
5230
|
/// @param {Boolean} $add--placeholder [true] -
|
|
5166
|
-
/// @param {Boolean} $add--placeholder-var [true] -
|
|
5167
5231
|
/// @param {Boolean} $add--error [true] -
|
|
5168
5232
|
@mixin combo-box(
|
|
5169
5233
|
$combo-box-selector: ".combo-box",
|
|
5170
5234
|
$combo-box--disabled-selector: ".combo-box[disabled]",
|
|
5171
5235
|
$combo-box--error-selector: ".combo-box-error",
|
|
5172
|
-
$combo-box__placeholder-selector:
|
|
5236
|
+
$combo-box__placeholder-selector:
|
|
5237
|
+
".combo-box[part='ch-combo-box--empty-value']",
|
|
5173
5238
|
$window-selector: ".combo-box::part(window)",
|
|
5174
5239
|
$group-selector: ".combo-box::part(group)",
|
|
5175
5240
|
$group__content-selector: ".combo-box::part(group__content)",
|
|
@@ -5183,17 +5248,17 @@
|
|
|
5183
5248
|
$item--selected-selector: ".combo-box::part(item selected)",
|
|
5184
5249
|
$add--disabled: true,
|
|
5185
5250
|
$add--placeholder: true,
|
|
5186
|
-
$add--placeholder-var: true,
|
|
5187
5251
|
$add--error: true
|
|
5188
5252
|
) {
|
|
5189
5253
|
#{$combo-box-selector} {
|
|
5190
5254
|
@extend %combo-box;
|
|
5191
5255
|
|
|
5192
|
-
&:
|
|
5193
|
-
@
|
|
5256
|
+
&:hover {
|
|
5257
|
+
@extend %combo-box--hover;
|
|
5194
5258
|
}
|
|
5195
5259
|
|
|
5196
|
-
|
|
5260
|
+
&:focus {
|
|
5261
|
+
@extend %combo-box--focus;
|
|
5197
5262
|
}
|
|
5198
5263
|
}
|
|
5199
5264
|
|
|
@@ -5203,74 +5268,41 @@
|
|
|
5203
5268
|
}
|
|
5204
5269
|
}
|
|
5205
5270
|
|
|
5206
|
-
@if $add--disabled {
|
|
5207
|
-
#{$combo-box--disabled-selector} {
|
|
5208
|
-
@include control-colors-disabled();
|
|
5209
|
-
}
|
|
5210
|
-
|
|
5211
|
-
#{$group__header--disabled-selector} {
|
|
5212
|
-
@include item-colors-disabled();
|
|
5213
|
-
}
|
|
5214
|
-
|
|
5215
|
-
#{$item--disabled-selector} {
|
|
5216
|
-
@include item-colors-disabled();
|
|
5217
|
-
}
|
|
5218
|
-
}
|
|
5219
|
-
|
|
5220
|
-
@if $add--error {
|
|
5221
|
-
#{$combo-box--error-selector} {
|
|
5222
|
-
@include control-colors-error();
|
|
5223
|
-
}
|
|
5224
|
-
}
|
|
5225
|
-
|
|
5226
5271
|
// - - - - - - - - - - - - - - - - - - - -
|
|
5227
5272
|
// Window
|
|
5228
5273
|
// - - - - - - - - - - - - - - - - - - - -
|
|
5229
5274
|
#{$window-selector} {
|
|
5230
|
-
@
|
|
5231
|
-
@include items-container-border-radius();
|
|
5232
|
-
@include items-container-colors();
|
|
5233
|
-
@include items-container-padding();
|
|
5234
|
-
@include items-container-gap();
|
|
5235
|
-
@include items-container-max-height();
|
|
5236
|
-
@include items-container-dropdown();
|
|
5275
|
+
@extend %combo-box__window;
|
|
5237
5276
|
}
|
|
5238
5277
|
|
|
5239
5278
|
// - - - - - - - - - - - - - - - - - - - -
|
|
5240
5279
|
// Group
|
|
5241
5280
|
// - - - - - - - - - - - - - - - - - - - -
|
|
5242
5281
|
#{$group__header-selector} {
|
|
5243
|
-
@
|
|
5244
|
-
@include item-font-header();
|
|
5245
|
-
@include item-padding();
|
|
5282
|
+
@extend %combo-box-group__header;
|
|
5246
5283
|
}
|
|
5247
5284
|
|
|
5248
5285
|
#{$group__header--expandable-selector} {
|
|
5249
|
-
@
|
|
5250
|
-
@include item-font-header();
|
|
5251
|
-
@include item-padding();
|
|
5252
|
-
@include item-border-radius();
|
|
5286
|
+
@extend %combo-box-group__header--expandable;
|
|
5253
5287
|
|
|
5254
5288
|
&:hover {
|
|
5255
|
-
@
|
|
5289
|
+
@extend %combo-box-group__header--expandable-hover;
|
|
5256
5290
|
}
|
|
5257
5291
|
}
|
|
5292
|
+
|
|
5258
5293
|
#{$group-selector} {
|
|
5259
|
-
@
|
|
5294
|
+
@extend %combo-box-group;
|
|
5260
5295
|
}
|
|
5296
|
+
|
|
5261
5297
|
#{$group__content-selector} {
|
|
5262
|
-
@
|
|
5298
|
+
@extend %combo-box-group__content;
|
|
5263
5299
|
}
|
|
5264
5300
|
|
|
5265
5301
|
// - - - - - - - - - - - - - - - - - - - -
|
|
5266
5302
|
// Item
|
|
5267
5303
|
// - - - - - - - - - - - - - - - - - - - -
|
|
5268
5304
|
#{$item-selector} {
|
|
5269
|
-
@
|
|
5270
|
-
@include item-border();
|
|
5271
|
-
@include item-border-radius();
|
|
5272
|
-
@include item-font();
|
|
5273
|
-
@include item-padding();
|
|
5305
|
+
@extend %combo-box__item;
|
|
5274
5306
|
}
|
|
5275
5307
|
|
|
5276
5308
|
#{$item--nested-selector} {
|
|
@@ -5278,7 +5310,30 @@
|
|
|
5278
5310
|
}
|
|
5279
5311
|
|
|
5280
5312
|
#{$item--selected-selector} {
|
|
5281
|
-
@
|
|
5313
|
+
@extend %combo-box__item--selected;
|
|
5314
|
+
}
|
|
5315
|
+
|
|
5316
|
+
// - - - - - - - - - - - - - - - - - - - -
|
|
5317
|
+
// Disabled
|
|
5318
|
+
// - - - - - - - - - - - - - - - - - - - -
|
|
5319
|
+
@if $add--disabled {
|
|
5320
|
+
#{$combo-box--disabled-selector} {
|
|
5321
|
+
@extend %combo-box--disabled;
|
|
5322
|
+
}
|
|
5323
|
+
|
|
5324
|
+
#{$group__header--disabled-selector} {
|
|
5325
|
+
@extend %combo-box-group__header--disabled;
|
|
5326
|
+
}
|
|
5327
|
+
|
|
5328
|
+
#{$item--disabled-selector} {
|
|
5329
|
+
@extend %combo-box__item--disabled;
|
|
5330
|
+
}
|
|
5331
|
+
}
|
|
5332
|
+
|
|
5333
|
+
@if $add--error {
|
|
5334
|
+
#{$combo-box--error-selector} {
|
|
5335
|
+
@extend %combo-box--error;
|
|
5336
|
+
}
|
|
5282
5337
|
}
|
|
5283
5338
|
}
|
|
5284
5339
|
|
|
@@ -5493,7 +5548,8 @@
|
|
|
5493
5548
|
|
|
5494
5549
|
&-tab {
|
|
5495
5550
|
--ch-tab-close-button__background-image-size: var(--mer-icon__size--md);
|
|
5496
|
-
--ch-tab-close-button__image-size:
|
|
5551
|
+
--ch-tab-close-button__image-size: var(--mer-spacing--md);
|
|
5552
|
+
--ch-tab-image-size: var(--mer-icon__box--md);
|
|
5497
5553
|
|
|
5498
5554
|
--spacing-body-block-start: var(--mer-spacing--md);
|
|
5499
5555
|
--spacing-body-block-end: var(--mer-spacing--md);
|
|
@@ -5527,6 +5583,11 @@
|
|
|
5527
5583
|
border-inline: 1px solid transparent;
|
|
5528
5584
|
}
|
|
5529
5585
|
|
|
5586
|
+
// Style for the button of the selected tab
|
|
5587
|
+
&-tab-button--selected-before {
|
|
5588
|
+
color: var(--mer-accent__primary);
|
|
5589
|
+
}
|
|
5590
|
+
|
|
5530
5591
|
// Block Start
|
|
5531
5592
|
&-tab-button-block-start {
|
|
5532
5593
|
background-color: var(
|
|
@@ -5734,6 +5795,10 @@
|
|
|
5734
5795
|
|
|
5735
5796
|
#{$tab-button-block-start--selected-selector} {
|
|
5736
5797
|
@extend %flexible-layout-tab-button-block-start--selected;
|
|
5798
|
+
|
|
5799
|
+
&::before {
|
|
5800
|
+
@extend %flexible-layout-tab-button--selected-before;
|
|
5801
|
+
}
|
|
5737
5802
|
}
|
|
5738
5803
|
|
|
5739
5804
|
@if $add--disabled {
|
|
@@ -5766,6 +5831,10 @@
|
|
|
5766
5831
|
|
|
5767
5832
|
#{$tab-button-block-end--selected-selector} {
|
|
5768
5833
|
@extend %flexible-layout-tab-button-block-end--selected;
|
|
5834
|
+
|
|
5835
|
+
&::before {
|
|
5836
|
+
@extend %flexible-layout-tab-button--selected-before;
|
|
5837
|
+
}
|
|
5769
5838
|
}
|
|
5770
5839
|
|
|
5771
5840
|
@if $add--disabled {
|
|
@@ -5953,6 +6022,18 @@
|
|
|
5953
6022
|
}
|
|
5954
6023
|
}
|
|
5955
6024
|
|
|
6025
|
+
%layout-splitter {
|
|
6026
|
+
&-bar {
|
|
6027
|
+
color: var(--mer-border-color__on-surface);
|
|
6028
|
+
}
|
|
6029
|
+
}
|
|
6030
|
+
|
|
6031
|
+
@mixin layout-splitter($bar-selector: ".layout-splitter::part(bar)") {
|
|
6032
|
+
#{$bar-selector} {
|
|
6033
|
+
@extend %layout-splitter-bar;
|
|
6034
|
+
}
|
|
6035
|
+
}
|
|
6036
|
+
|
|
5956
6037
|
%list-box {
|
|
5957
6038
|
--ch-action-list-group__expandable-button-image-size: var(
|
|
5958
6039
|
--mer-icon__box--md
|
|
@@ -6418,18 +6499,20 @@
|
|
|
6418
6499
|
--ch-navigation-list-item__tooltip-separation-x: var(--mer-spacing--2xs);
|
|
6419
6500
|
|
|
6420
6501
|
--ch-navigation-list-item-custom-padding-inline-start: calc(
|
|
6421
|
-
var(--mer-spacing--xs)
|
|
6502
|
+
var(--mer-spacing--xs) - 1px
|
|
6422
6503
|
);
|
|
6423
6504
|
--ch-navigation-list-item-gap: var(--mer-spacing--xs);
|
|
6424
6505
|
--ch-navigation-list-item-expand-collapse-duration: 200ms;
|
|
6425
6506
|
|
|
6426
|
-
--ch-navigation-list-item__image-size:
|
|
6507
|
+
--ch-navigation-list-item__image-size: var(--mer-spacing--md);
|
|
6427
6508
|
--ch-navigation-list-item__expandable-button-size: 20px;
|
|
6428
6509
|
--ch-navigation-list-item__expandable-button-image-size: calc(
|
|
6429
6510
|
var(--mer-spacing--md) - var(--mer-spacing--3xs)
|
|
6430
6511
|
);
|
|
6431
6512
|
|
|
6432
6513
|
color: var(--item__color);
|
|
6514
|
+
line-height: var(--mer-spacing--md);
|
|
6515
|
+
gap: var(--mer-spacing--sm);
|
|
6433
6516
|
|
|
6434
6517
|
&-item-action {
|
|
6435
6518
|
padding-block: var(--mer-spacing--xs);
|
|
@@ -6439,8 +6522,9 @@
|
|
|
6439
6522
|
&-item-tooltip {
|
|
6440
6523
|
padding-block: var(--mer-spacing--2xs);
|
|
6441
6524
|
padding-inline: var(--mer-spacing--xs);
|
|
6442
|
-
background-color: var(--mer-color__neutral-gray--
|
|
6525
|
+
background-color: var(--mer-color__neutral-gray--1000);
|
|
6443
6526
|
border-radius: var(--mer-border__radius--sm);
|
|
6527
|
+
box-shadow: 4px 4px 12px 0px #00000033;
|
|
6444
6528
|
color: var(--mer-color__neutral-gray--300);
|
|
6445
6529
|
font-size: var(--mer-font__size--xs);
|
|
6446
6530
|
}
|
|
@@ -6459,12 +6543,19 @@
|
|
|
6459
6543
|
}
|
|
6460
6544
|
|
|
6461
6545
|
&-item-link {
|
|
6546
|
+
padding-inline-end: calc(var(--mer-spacing--xs) - 1px);
|
|
6547
|
+
padding-block: calc(var(--mer-spacing--xs) - 1px);
|
|
6548
|
+
border: 1px solid transparent;
|
|
6549
|
+
border-radius: 4px;
|
|
6550
|
+
|
|
6462
6551
|
&--selected {
|
|
6463
|
-
background-color: var(--item__bg-color--selected
|
|
6552
|
+
background-color: var(--item__bg-color--selected);
|
|
6553
|
+
border-color: var(--item__border-color--selected);
|
|
6554
|
+
color: var(--mer-accent__primary);
|
|
6464
6555
|
}
|
|
6465
6556
|
|
|
6466
6557
|
&--hover-not-selected {
|
|
6467
|
-
|
|
6558
|
+
color: var(--mer-accent__primary);
|
|
6468
6559
|
}
|
|
6469
6560
|
}
|
|
6470
6561
|
}
|
|
@@ -6473,6 +6564,7 @@
|
|
|
6473
6564
|
$navigation-list-selector: ".navigation-list",
|
|
6474
6565
|
$item-action-selector: ".navigation-list::part(item__action)",
|
|
6475
6566
|
$item-button-selector: ".navigation-list::part(item__button)",
|
|
6567
|
+
$item-link-selector: ".navigation-list::part(item__link)",
|
|
6476
6568
|
$item-link-not-selected-selector:
|
|
6477
6569
|
".navigation-list::part(item__link not-selected)",
|
|
6478
6570
|
$item-link-selected-selector: ".navigation-list::part(item__link selected)",
|
|
@@ -6498,6 +6590,10 @@
|
|
|
6498
6590
|
@extend %navigation-list-item-link--selected;
|
|
6499
6591
|
}
|
|
6500
6592
|
|
|
6593
|
+
#{$item-link-selector} {
|
|
6594
|
+
@extend %navigation-list-item-link;
|
|
6595
|
+
}
|
|
6596
|
+
|
|
6501
6597
|
#{$item-link-not-selected-selector}:hover {
|
|
6502
6598
|
@extend %navigation-list-item-link--hover-not-selected;
|
|
6503
6599
|
}
|
|
@@ -8461,6 +8557,7 @@
|
|
|
8461
8557
|
) / 2
|
|
8462
8558
|
);
|
|
8463
8559
|
|
|
8560
|
+
// TODO: Remove this background-color. The elevation must determine the color
|
|
8464
8561
|
background-color: var(--mer-color__neutral-gray--800);
|
|
8465
8562
|
overflow: hidden;
|
|
8466
8563
|
|
|
@@ -8634,6 +8731,14 @@
|
|
|
8634
8731
|
}
|
|
8635
8732
|
|
|
8636
8733
|
%slider__thumb {
|
|
8734
|
+
&--hover {
|
|
8735
|
+
--ch-slider-thumb-background-color: var(--mer-color__primary--600);
|
|
8736
|
+
}
|
|
8737
|
+
|
|
8738
|
+
&--active-focus {
|
|
8739
|
+
--ch-slider-thumb-background-color: var(--mer-color__primary--600);
|
|
8740
|
+
@include focus-outline();
|
|
8741
|
+
}
|
|
8637
8742
|
}
|
|
8638
8743
|
|
|
8639
8744
|
/// @group Slider
|
|
@@ -8671,12 +8776,18 @@
|
|
|
8671
8776
|
@mixin slider(
|
|
8672
8777
|
$slider-selector: ".slider",
|
|
8673
8778
|
$track-selector: ".slider::part(track)",
|
|
8674
|
-
$thumb-selector: ".slider::part(thumb)",
|
|
8675
|
-
$thumb-focus-selector: ".slider:focus
|
|
8779
|
+
$thumb-active-selector: ".slider:active::part(thumb)",
|
|
8780
|
+
$thumb-focus-selector: ".slider:focus::part(thumb)"
|
|
8676
8781
|
) {
|
|
8677
8782
|
#{$slider-selector} {
|
|
8678
8783
|
@extend %slider__slider;
|
|
8784
|
+
|
|
8785
|
+
&:hover {
|
|
8786
|
+
@extend %slider__thumb--hover;
|
|
8787
|
+
}
|
|
8679
8788
|
}
|
|
8789
|
+
|
|
8790
|
+
// TODO: TEST THIS
|
|
8680
8791
|
#{$slider-selector}:disabled {
|
|
8681
8792
|
@extend %slider__slider--disabled;
|
|
8682
8793
|
}
|
|
@@ -8685,18 +8796,19 @@
|
|
|
8685
8796
|
@extend %slider__track;
|
|
8686
8797
|
}
|
|
8687
8798
|
|
|
8688
|
-
#{$thumb-selector} {
|
|
8689
|
-
@extend %slider__thumb;
|
|
8799
|
+
#{$thumb-active-selector} {
|
|
8800
|
+
@extend %slider__thumb--active-focus;
|
|
8690
8801
|
}
|
|
8691
8802
|
|
|
8692
8803
|
#{$thumb-focus-selector} {
|
|
8693
|
-
@
|
|
8804
|
+
@extend %slider__thumb--active-focus;
|
|
8694
8805
|
}
|
|
8695
8806
|
}
|
|
8696
8807
|
|
|
8697
8808
|
%tab {
|
|
8698
8809
|
--ch-tab-close-button__background-image-size: var(--mer-icon__size--md);
|
|
8699
|
-
--ch-tab-close-button__image-size:
|
|
8810
|
+
--ch-tab-close-button__image-size: var(--mer-spacing--md);
|
|
8811
|
+
--ch-tab-image-size: var(--mer-icon__box--md);
|
|
8700
8812
|
|
|
8701
8813
|
--spacing-body-block-start: var(--mer-spacing--md);
|
|
8702
8814
|
--spacing-body-block-end: var(--mer-spacing--md);
|
|
@@ -10283,6 +10395,148 @@
|
|
|
10283
10395
|
}
|
|
10284
10396
|
}
|
|
10285
10397
|
|
|
10398
|
+
%toggle-basic {
|
|
10399
|
+
--ch-switch-track__unchecked-background-color: var(
|
|
10400
|
+
--mer-color__neutral-gray--650
|
|
10401
|
+
);
|
|
10402
|
+
--ch-switch-track__checked-background-color: var(
|
|
10403
|
+
--mer-color__tinted-primary--50
|
|
10404
|
+
);
|
|
10405
|
+
--ch-switch-thumb__unchecked-background-color: var(--mer-icon__neutral);
|
|
10406
|
+
--ch-switch-thumb__checked-background-color: var(--mer-icon__neutral);
|
|
10407
|
+
--ch-switch-thumb__state-transition-duration: 150ms;
|
|
10408
|
+
|
|
10409
|
+
&__track {
|
|
10410
|
+
border-radius: var(--ch-switch-track-block-size);
|
|
10411
|
+
margin-inline-end: var(--mer-spacing--xs);
|
|
10412
|
+
|
|
10413
|
+
&--disabled {
|
|
10414
|
+
--ch-switch-track__unchecked-background-color: var(
|
|
10415
|
+
--mer-accent__primary--disabled
|
|
10416
|
+
);
|
|
10417
|
+
--ch-switch-track__checked-background-color: var(
|
|
10418
|
+
--mer-accent__primary--disabled
|
|
10419
|
+
);
|
|
10420
|
+
--ch-switch-thumb__unchecked-background-color: var(
|
|
10421
|
+
--mer-icon__on-disabled
|
|
10422
|
+
);
|
|
10423
|
+
--ch-switch-thumb__checked-background-color: var(--mer-icon__on-disabled);
|
|
10424
|
+
}
|
|
10425
|
+
}
|
|
10426
|
+
|
|
10427
|
+
&__caption {
|
|
10428
|
+
&--checked {
|
|
10429
|
+
font-weight: 600;
|
|
10430
|
+
}
|
|
10431
|
+
}
|
|
10432
|
+
}
|
|
10433
|
+
|
|
10434
|
+
%toggle-small {
|
|
10435
|
+
--ch-switch-track-block-size: 16px;
|
|
10436
|
+
--ch-switch-track-inline-size: 31px;
|
|
10437
|
+
--ch-switch-thumb-size: 9px;
|
|
10438
|
+
|
|
10439
|
+
&__thumb {
|
|
10440
|
+
&--unchecked {
|
|
10441
|
+
inset-inline-start: 4px;
|
|
10442
|
+
}
|
|
10443
|
+
|
|
10444
|
+
&--checked {
|
|
10445
|
+
inset-inline-start: calc(100% - var(--ch-switch-thumb-size) - 4px);
|
|
10446
|
+
}
|
|
10447
|
+
}
|
|
10448
|
+
}
|
|
10449
|
+
|
|
10450
|
+
%toggle-large {
|
|
10451
|
+
--ch-switch-track-block-size: 26px;
|
|
10452
|
+
--ch-switch-track-inline-size: 50px;
|
|
10453
|
+
--ch-switch-thumb-size: 16px;
|
|
10454
|
+
|
|
10455
|
+
&__thumb {
|
|
10456
|
+
&--unchecked {
|
|
10457
|
+
inset-inline-start: 6px;
|
|
10458
|
+
}
|
|
10459
|
+
|
|
10460
|
+
&--checked {
|
|
10461
|
+
inset-inline-start: calc(100% - var(--ch-switch-thumb-size) - 6px);
|
|
10462
|
+
}
|
|
10463
|
+
}
|
|
10464
|
+
}
|
|
10465
|
+
|
|
10466
|
+
@mixin toggle-small(
|
|
10467
|
+
$toggle-selector: ".toggle-small",
|
|
10468
|
+
$track-selector: ".toggle-small::part(track)",
|
|
10469
|
+
$track--disabled-selector: ".toggle-small::part(track disabled)",
|
|
10470
|
+
$thumb--unchecked-selector: ".toggle-small::part(thumb unchecked)",
|
|
10471
|
+
$thumb--checked-selector: ".toggle-small::part(thumb checked)",
|
|
10472
|
+
$caption--checked-selector: ".toggle-small::part(caption checked)",
|
|
10473
|
+
$add--disabled: true
|
|
10474
|
+
) {
|
|
10475
|
+
#{$toggle-selector} {
|
|
10476
|
+
@extend %toggle-basic;
|
|
10477
|
+
@extend %toggle-small;
|
|
10478
|
+
}
|
|
10479
|
+
|
|
10480
|
+
#{$track-selector} {
|
|
10481
|
+
@extend %toggle-basic__track;
|
|
10482
|
+
}
|
|
10483
|
+
|
|
10484
|
+
@if $add--disabled {
|
|
10485
|
+
#{$track--disabled-selector} {
|
|
10486
|
+
@extend %toggle-basic__track--disabled;
|
|
10487
|
+
}
|
|
10488
|
+
}
|
|
10489
|
+
|
|
10490
|
+
#{$thumb--unchecked-selector} {
|
|
10491
|
+
@extend %toggle-small__thumb--unchecked;
|
|
10492
|
+
}
|
|
10493
|
+
|
|
10494
|
+
#{$thumb--checked-selector} {
|
|
10495
|
+
@extend %toggle-small__thumb--checked;
|
|
10496
|
+
}
|
|
10497
|
+
|
|
10498
|
+
#{$caption--checked-selector} {
|
|
10499
|
+
@extend %toggle-basic__caption--checked;
|
|
10500
|
+
}
|
|
10501
|
+
}
|
|
10502
|
+
|
|
10503
|
+
@mixin toggle-large(
|
|
10504
|
+
$toggle-selector: ".toggle-large",
|
|
10505
|
+
$track-selector: ".toggle-large::part(track)",
|
|
10506
|
+
$track--disabled-selector: ".toggle-large::part(track disabled)",
|
|
10507
|
+
$thumb--unchecked-selector: ".toggle-large::part(thumb unchecked)",
|
|
10508
|
+
$thumb--checked-selector: ".toggle-large::part(thumb checked)",
|
|
10509
|
+
$caption--checked-selector: ".toggle-large::part(caption checked)",
|
|
10510
|
+
$add--disabled: true
|
|
10511
|
+
) {
|
|
10512
|
+
#{$toggle-selector} {
|
|
10513
|
+
@extend %toggle-basic;
|
|
10514
|
+
@extend %toggle-large;
|
|
10515
|
+
}
|
|
10516
|
+
|
|
10517
|
+
#{$track-selector} {
|
|
10518
|
+
@extend %toggle-basic__track;
|
|
10519
|
+
}
|
|
10520
|
+
|
|
10521
|
+
@if $add--disabled {
|
|
10522
|
+
#{$track--disabled-selector} {
|
|
10523
|
+
@extend %toggle-basic__track--disabled;
|
|
10524
|
+
}
|
|
10525
|
+
}
|
|
10526
|
+
|
|
10527
|
+
#{$thumb--unchecked-selector} {
|
|
10528
|
+
@extend %toggle-large__thumb--unchecked;
|
|
10529
|
+
}
|
|
10530
|
+
|
|
10531
|
+
#{$thumb--checked-selector} {
|
|
10532
|
+
@extend %toggle-large__thumb--checked;
|
|
10533
|
+
}
|
|
10534
|
+
|
|
10535
|
+
#{$caption--checked-selector} {
|
|
10536
|
+
@extend %toggle-basic__caption--checked;
|
|
10537
|
+
}
|
|
10538
|
+
}
|
|
10539
|
+
|
|
10286
10540
|
@mixin tooltip-tokens() {
|
|
10287
10541
|
--tooltip__background-color: var(--mer-color__neutral-gray--1000);
|
|
10288
10542
|
--tooltip__border-radius: var(--mer-border__radius--sm);
|
|
@@ -10710,6 +10964,7 @@
|
|
|
10710
10964
|
$edit: true,
|
|
10711
10965
|
$flexible-layout: true,
|
|
10712
10966
|
$icon: true,
|
|
10967
|
+
$layout-splitter: true,
|
|
10713
10968
|
$list-box: true,
|
|
10714
10969
|
$markdown-viewer: true,
|
|
10715
10970
|
$navigation-list: true,
|
|
@@ -10721,6 +10976,7 @@
|
|
|
10721
10976
|
$tab: true,
|
|
10722
10977
|
$tabular-grid: true,
|
|
10723
10978
|
$ticket-list: true,
|
|
10979
|
+
$toggle: true,
|
|
10724
10980
|
$tooltip: true,
|
|
10725
10981
|
$tree-view: true,
|
|
10726
10982
|
$widget: true
|
|
@@ -19037,6 +19293,10 @@
|
|
|
19037
19293
|
@include icon();
|
|
19038
19294
|
}
|
|
19039
19295
|
|
|
19296
|
+
@if $layout-splitter {
|
|
19297
|
+
@include layout-splitter();
|
|
19298
|
+
}
|
|
19299
|
+
|
|
19040
19300
|
@if $list-box {
|
|
19041
19301
|
@include list-box();
|
|
19042
19302
|
}
|
|
@@ -19083,6 +19343,11 @@
|
|
|
19083
19343
|
@include ticket-list();
|
|
19084
19344
|
}
|
|
19085
19345
|
|
|
19346
|
+
@if $toggle {
|
|
19347
|
+
@include toggle-small();
|
|
19348
|
+
@include toggle-large();
|
|
19349
|
+
}
|
|
19350
|
+
|
|
19086
19351
|
@if $tooltip {
|
|
19087
19352
|
@include tooltip();
|
|
19088
19353
|
}
|
|
@@ -19153,6 +19418,7 @@
|
|
|
19153
19418
|
$edit: false,
|
|
19154
19419
|
$flexible-layout: false,
|
|
19155
19420
|
$icon: false,
|
|
19421
|
+
$layout-splitter: false,
|
|
19156
19422
|
$list-box: false,
|
|
19157
19423
|
$markdown-viewer: false,
|
|
19158
19424
|
$navigation-list: false,
|
|
@@ -19164,6 +19430,7 @@
|
|
|
19164
19430
|
$tab: false,
|
|
19165
19431
|
$tabular-grid: false,
|
|
19166
19432
|
$ticket-list: false,
|
|
19433
|
+
$toggle: false,
|
|
19167
19434
|
$tooltip: false,
|
|
19168
19435
|
$tree-view: false,
|
|
19169
19436
|
$widget: false
|
|
@@ -19225,6 +19492,7 @@
|
|
|
19225
19492
|
$edit: $edit,
|
|
19226
19493
|
$flexible-layout: $flexible-layout,
|
|
19227
19494
|
$icon: $icon,
|
|
19495
|
+
$layout-splitter: $layout-splitter,
|
|
19228
19496
|
$list-box: $list-box,
|
|
19229
19497
|
$markdown-viewer: $markdown-viewer,
|
|
19230
19498
|
$navigation-list: $navigation-list,
|
|
@@ -19236,6 +19504,7 @@
|
|
|
19236
19504
|
$tab: $tab,
|
|
19237
19505
|
$tabular-grid: $tabular-grid,
|
|
19238
19506
|
$ticket-list: $ticket-list,
|
|
19507
|
+
$toggle: $toggle,
|
|
19239
19508
|
$tooltip: $tooltip,
|
|
19240
19509
|
$tree-view: $tree-view,
|
|
19241
19510
|
$widget: $widget
|
package/package.json
CHANGED