@genexus/mercury 0.12.7 → 0.12.9
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/switch.css +1 -0
- package/dist/bundles/css/components/tree-view.css +1 -1
- package/dist/bundles/scss/components/switch.scss +3 -0
- package/dist/bundles.d.ts +2 -2
- package/dist/bundles.js +1 -1
- package/dist/mercury.scss +43 -41
- package/dist/types.d.ts +1 -1
- package/package.json +1 -1
- package/dist/bundles/css/components/toggle.css +0 -1
- package/dist/bundles/scss/components/toggle.scss +0 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.switch-large,.switch-small{--ch-switch-track__unchecked-background-color: var( --mer-color__neutral-gray--650 );--ch-switch-track__checked-background-color: var( --mer-color__tinted-primary--50 );--ch-switch-thumb__unchecked-background-color: var(--mer-icon__neutral);--ch-switch-thumb__checked-background-color: var(--mer-icon__neutral);--ch-switch-thumb__state-transition-duration: 150ms;font-weight:var(--mer-font__weight--regular);line-height:var(--mer-line-height--regular)}.switch-large::part(track),.switch-small::part(track){border-radius:var(--ch-switch-track-block-size);margin-inline-end:var(--mer-spacing--xs)}.switch-large::part(track disabled),.switch-small::part(track disabled){--ch-switch-track__unchecked-background-color: var( --mer-accent__primary--disabled );--ch-switch-track__checked-background-color: var( --mer-accent__primary--disabled );--ch-switch-thumb__unchecked-background-color: var( --mer-icon__on-disabled );--ch-switch-thumb__checked-background-color: var(--mer-icon__on-disabled)}.switch-small{--ch-switch-track-block-size: 16px;--ch-switch-track-inline-size: 31px;--ch-switch-thumb-size: 9px}.switch-small::part(thumb unchecked){inset-inline-start:4px}.switch-small::part(thumb checked){inset-inline-start:calc(100% - var(--ch-switch-thumb-size) - 4px)}.switch-large{--ch-switch-track-block-size: 26px;--ch-switch-track-inline-size: 50px;--ch-switch-thumb-size: 16px}.switch-large::part(thumb unchecked){inset-inline-start:6px}.switch-large::part(thumb checked){inset-inline-start:calc(100% - var(--ch-switch-thumb-size) - 6px)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.tree-view::part(item__checkbox){--ch-checkbox__container-size: var(--control-tiny__size);--ch-checkbox__option-size: calc(var(--control-tiny__size) / 2);--ch-checkbox__image-size: var(--mer-icon__box--md);gap:var(--label__gap--inline)}.tree-view::part(item__checkbox):hover{--control__border-color: var(--control__border-color--hover)}.tree-view::part(item__checkbox-input){border-width:var(--control__border-width);border-style:var(--control__border-style);border-color:var(--control__border-color);border-radius:var(--control__border-radius)}.tree-view::part(item__checkbox-input):focus{outline:var(--focus__outline-width) var(--focus__outline-style) var(--focus__outline-color);outline-offset:var(--focus__outline-offset)}.tree-view::part(item__checkbox-option indeterminate){block-size:var(--mer-spacing--3xs)}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.tree-view{--tree-view-item__line-height: var(--mer-line-height--spaced);--ch-tree-view-item-custom-padding-inline-start: var(--mer-spacing--xs);--ch-tree-view-item-gap: var(--mer-spacing--xs);--ch-tree-view-item__checkbox-size: var(--mer-spacing--md);--ch-tree-view-item__expandable-button-size: var(--mer-spacing--md);--ch-tree-view-item__image-size: var(--mer-spacing--md);--ch-tree-view-item__background-image-size: var(--mer-icon__box--md);--ch-tree-view-item__line--inset-inline-end: 4px;--tree-view__min-inline-size: max-content;--tree-view-item-custom__padding-inline-end: var(--mer-spacing--2xs);--tree-view-item-dashed-line__border-color: var(--mer-text__on-surface);--tree-view-item-dashed-line__opacity: 0.3;--tree-view-item-header__padding-block: calc(var(--mer-spacing--3xs));--tree-view-item-downloading__inline-size: var(--mer-spacing--sm);--tree-view-item-downloading__block-size: var(--mer-spacing--sm);--tree-view-item-downloading__border: var(--mer-border__width--md) solid var(--mer-accent__primary--active);line-height:var(--item__line-height);font-size:var(--item__font-size);font-weight:var(--item__font-weight);--item__font-size: var(--item__font-size--small);line-height:var(--tree-view-item__line-height);min-inline-size:var(--tree-view__min-inline-size)}.tree-view::part(drag-preview){padding-inline:8px;background-color:var(--mer-surface__elevation--01);border-radius:10px;box-shadow:var(--mer-elevation__box-shadow--03);font-size:8px}.tree-view::part(item drag-enter){background-color:var(--tree-view-item__bg-color--hover);outline:var(--focus__outline-width) var(--focus__outline-style) var(--focus__outline-color);outline-offset:var(--focus__outline-offset)}.tree-view::part(drop)::after{background-color:var(--mer-color__primary--200)}.tree-view::part(item__header){background-color:var(--item__bg-color);border-color:var(--item__border-color);color:var(--item__color);border-radius:var(--item__border-radius);border:var(--item__border-width) var(--item__border-style) var(--item__border-color)}.tree-view::part(item__header):focus-visible{outline:var(--focus__outline-width) var(--focus__outline-style) var(--focus__outline-color);outline-offset:var(--focus__outline-offset)}.tree-view::part(item__header not-selected):hover{--item__bg-color: var(--item__bg-color--hover);--item__border-color: var(--item__border-color--hover);--item__color: var(--item__color--hover)}.tree-view::part(item__header selected){--item__bg-color: var(--item__bg-color--selected);--item__border-color: var(--item__border-color--selected);--item__color: var(--item__color--selected)}.tree-view::part(item__header selected):hover{--item__bg-color: var(--item__bg-color--selected-hover);--item__border-color: var(--item__border-color--selected-hover);--item__color: var(--item__color--selected-hover)}.tree-view::part(item__action){padding-block:var(--tree-view-item-header__padding-block)}.tree-view::part(item__line){border-color:var(--tree-view-item-dashed-line__border-color);opacity:var(--tree-view-item-dashed-line__opacity)}.tree-view::part(item__downloading){inline-size:var(--tree-view-item-downloading__inline-size);block-size:var(--tree-view-item-downloading__block-size);border:var(--tree-view-item-downloading__border);border-inline-start-color:rgba(0,0,0,0)}.tree-view{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb__bg-color) var(--scrollbar-track__bg-color)}.tree-view::-webkit-scrollbar{width:var(--scrollbar__size);height:var(--scrollbar__size)}.tree-view::-webkit-scrollbar-track{background-color:var(--scrollbar-track__bg-color);border-radius:var(--scrollbar-track__border-radius)}.tree-view::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb__bg-color);border-radius:var(--scrollbar-thumb__border-radius)}.tree-view::-webkit-scrollbar-corner{background:var(--scrollbar-corner__bg)}.tree-view::part(item__checkbox-input disabled){--control__border-color: var(--control__border-color--disabled)}.tree-view::part(item__checkbox-option disabled){--control__border-color: var(--control__border-color--disabled)}
|
|
1
|
+
.tree-view::part(item__checkbox){--ch-checkbox__container-size: var(--control-tiny__size);--ch-checkbox__option-size: calc(var(--control-tiny__size) / 2);--ch-checkbox__image-size: var(--mer-icon__box--md);gap:var(--label__gap--inline)}.tree-view::part(item__checkbox):hover{--control__border-color: var(--control__border-color--hover)}.tree-view::part(item__checkbox-input){border-width:var(--control__border-width);border-style:var(--control__border-style);border-color:var(--control__border-color);border-radius:var(--control__border-radius)}.tree-view::part(item__checkbox-input):focus{outline:var(--focus__outline-width) var(--focus__outline-style) var(--focus__outline-color);outline-offset:var(--focus__outline-offset)}.tree-view::part(item__checkbox-option indeterminate){block-size:var(--mer-spacing--3xs)}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.tree-view{--tree-view-item__line-height: var(--mer-line-height--spaced);--ch-tree-view-item-custom-padding-inline-start: var(--mer-spacing--xs);--ch-tree-view-item-gap: var(--mer-spacing--xs);--ch-tree-view-item__checkbox-size: var(--mer-spacing--md);--ch-tree-view-item__expandable-button-size: var(--mer-spacing--md);--ch-tree-view-item__image-size: var(--mer-spacing--md);--ch-tree-view-item__background-image-size: var(--mer-icon__box--md);--ch-tree-view-item__line--inset-inline-end: 4px;--tree-view__min-inline-size: max-content;--tree-view-item-custom__padding-inline-end: var(--mer-spacing--2xs);--tree-view-item-dashed-line__border-color: var(--mer-text__on-surface);--tree-view-item-dashed-line__opacity: 0.3;--tree-view-item-header__padding-block: calc(var(--mer-spacing--3xs));--tree-view-item-downloading__inline-size: var(--mer-spacing--sm);--tree-view-item-downloading__block-size: var(--mer-spacing--sm);--tree-view-item-downloading__border: var(--mer-border__width--md) solid var(--mer-accent__primary--active);line-height:var(--item__line-height);font-size:var(--item__font-size);font-weight:var(--item__font-weight);--item__font-size: var(--item__font-size--small);line-height:var(--tree-view-item__line-height);min-inline-size:var(--tree-view__min-inline-size)}.tree-view::part(drag-preview){padding-inline:8px;background-color:var(--mer-surface__elevation--01);border-radius:10px;box-shadow:var(--mer-elevation__box-shadow--03);font-size:8px}.tree-view::part(item drag-enter){background-color:var(--tree-view-item__bg-color--hover);outline:var(--focus__outline-width) var(--focus__outline-style) var(--focus__outline-color);outline-offset:var(--focus__outline-offset)}.tree-view::part(drop)::after{background-color:var(--mer-color__primary--200)}.tree-view::part(item__header){min-inline-size:var(--tree-view__min-inline-size);background-color:var(--item__bg-color);border-color:var(--item__border-color);color:var(--item__color);border-radius:var(--item__border-radius);border:var(--item__border-width) var(--item__border-style) var(--item__border-color)}.tree-view::part(item__header):focus-visible{outline:var(--focus__outline-width) var(--focus__outline-style) var(--focus__outline-color);outline-offset:var(--focus__outline-offset)}.tree-view::part(item__header not-selected):hover{--item__bg-color: var(--item__bg-color--hover);--item__border-color: var(--item__border-color--hover);--item__color: var(--item__color--hover)}.tree-view::part(item__header selected){--item__bg-color: var(--item__bg-color--selected);--item__border-color: var(--item__border-color--selected);--item__color: var(--item__color--selected)}.tree-view::part(item__header selected):hover{--item__bg-color: var(--item__bg-color--selected-hover);--item__border-color: var(--item__border-color--selected-hover);--item__color: var(--item__color--selected-hover)}.tree-view::part(item__action){padding-block:var(--tree-view-item-header__padding-block)}.tree-view::part(item__line){border-color:var(--tree-view-item-dashed-line__border-color);opacity:var(--tree-view-item-dashed-line__opacity)}.tree-view::part(item__downloading){inline-size:var(--tree-view-item-downloading__inline-size);block-size:var(--tree-view-item-downloading__block-size);border:var(--tree-view-item-downloading__border);border-inline-start-color:rgba(0,0,0,0)}.tree-view{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb__bg-color) var(--scrollbar-track__bg-color)}.tree-view::-webkit-scrollbar{width:var(--scrollbar__size);height:var(--scrollbar__size)}.tree-view::-webkit-scrollbar-track{background-color:var(--scrollbar-track__bg-color);border-radius:var(--scrollbar-track__border-radius)}.tree-view::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb__bg-color);border-radius:var(--scrollbar-thumb__border-radius)}.tree-view::-webkit-scrollbar-corner{background:var(--scrollbar-corner__bg)}.tree-view::part(item__checkbox-input disabled){--control__border-color: var(--control__border-color--disabled)}.tree-view::part(item__checkbox-option disabled){--control__border-color: var(--control__border-color--disabled)}
|
package/dist/bundles.d.ts
CHANGED
|
@@ -203,11 +203,11 @@ export declare const getThemeBundles: (basePath: string) => [{
|
|
|
203
203
|
readonly attachStyleSheet: boolean;
|
|
204
204
|
}, {
|
|
205
205
|
readonly name: BundleNames;
|
|
206
|
-
readonly url: `${string}components/
|
|
206
|
+
readonly url: `${string}components/switch.css`;
|
|
207
207
|
readonly attachStyleSheet?: undefined;
|
|
208
208
|
} | {
|
|
209
209
|
readonly name: BundleNames;
|
|
210
|
-
readonly url: `${string}components/
|
|
210
|
+
readonly url: `${string}components/switch.css`;
|
|
211
211
|
readonly attachStyleSheet: boolean;
|
|
212
212
|
}, {
|
|
213
213
|
readonly name: BundleNames;
|
package/dist/bundles.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const n=(o,c,p=void 0)=>p===void 0?{name:c,url:`${o}${c}.css`}:{name:c,url:`${o}${c}.css`,attachStyleSheet:p};export const getThemeBundles=o=>[n(o,"components/accordion"),n(o,"components/button"),n(o,"components/chat"),n(o,"components/checkbox"),n(o,"components/code"),n(o,"components/combo-box"),n(o,"components/flexible-layout"),n(o,"components/dialog"),n(o,"components/dropdown"),n(o,"components/icon"),n(o,"components/edit"),n(o,"components/layout-splitter"),n(o,"components/list-box"),n(o,"components/markdown-viewer",!1),n(o,"components/navigation-list"),n(o,"components/pills"),n(o,"components/radio-group"),n(o,"components/segmented-control"),n(o,"components/sidebar"),n(o,"components/slider"),n(o,"components/tab"),n(o,"components/tabular-grid"),n(o,"components/ticket-list"),n(o,"components/
|
|
1
|
+
"use strict";const n=(o,c,p=void 0)=>p===void 0?{name:c,url:`${o}${c}.css`}:{name:c,url:`${o}${c}.css`,attachStyleSheet:p};export const getThemeBundles=o=>[n(o,"components/accordion"),n(o,"components/button"),n(o,"components/chat"),n(o,"components/checkbox"),n(o,"components/code"),n(o,"components/combo-box"),n(o,"components/flexible-layout"),n(o,"components/dialog"),n(o,"components/dropdown"),n(o,"components/icon"),n(o,"components/edit"),n(o,"components/layout-splitter"),n(o,"components/list-box"),n(o,"components/markdown-viewer",!1),n(o,"components/navigation-list"),n(o,"components/pills"),n(o,"components/radio-group"),n(o,"components/segmented-control"),n(o,"components/sidebar"),n(o,"components/slider"),n(o,"components/tab"),n(o,"components/tabular-grid"),n(o,"components/ticket-list"),n(o,"components/switch"),n(o,"components/tooltip"),n(o,"components/tree-view"),n(o,"components/widget"),n(o,"resets/box-sizing"),n(o,"utils/form"),n(o,"utils/elevation"),n(o,"utils/form--full"),n(o,"utils/layout"),n(o,"utils/spacing"),n(o,"utils/typography"),n(o,"chameleon/scrollbar")],getBundles=(o,c)=>c?o.map(p=>n(c,p)):o;
|
package/dist/mercury.scss
CHANGED
|
@@ -10611,7 +10611,7 @@
|
|
|
10611
10611
|
}
|
|
10612
10612
|
}
|
|
10613
10613
|
|
|
10614
|
-
%
|
|
10614
|
+
%switch-basic {
|
|
10615
10615
|
--ch-switch-track__unchecked-background-color: var(
|
|
10616
10616
|
--mer-color__neutral-gray--650
|
|
10617
10617
|
);
|
|
@@ -10621,7 +10621,8 @@
|
|
|
10621
10621
|
--ch-switch-thumb__unchecked-background-color: var(--mer-icon__neutral);
|
|
10622
10622
|
--ch-switch-thumb__checked-background-color: var(--mer-icon__neutral);
|
|
10623
10623
|
--ch-switch-thumb__state-transition-duration: 150ms;
|
|
10624
|
-
font-weight:
|
|
10624
|
+
font-weight: var(--mer-font__weight--regular);
|
|
10625
|
+
line-height: var(--mer-line-height--regular);
|
|
10625
10626
|
|
|
10626
10627
|
&__track {
|
|
10627
10628
|
border-radius: var(--ch-switch-track-block-size);
|
|
@@ -10643,12 +10644,12 @@
|
|
|
10643
10644
|
|
|
10644
10645
|
&__caption {
|
|
10645
10646
|
&--checked {
|
|
10646
|
-
|
|
10647
|
+
// Font weight shouldn't change, since it causes a subtle inline-size shift, moving surrounding elements.
|
|
10647
10648
|
}
|
|
10648
10649
|
}
|
|
10649
10650
|
}
|
|
10650
10651
|
|
|
10651
|
-
%
|
|
10652
|
+
%switch-small {
|
|
10652
10653
|
--ch-switch-track-block-size: 16px;
|
|
10653
10654
|
--ch-switch-track-inline-size: 31px;
|
|
10654
10655
|
--ch-switch-thumb-size: 9px;
|
|
@@ -10664,7 +10665,7 @@
|
|
|
10664
10665
|
}
|
|
10665
10666
|
}
|
|
10666
10667
|
|
|
10667
|
-
%
|
|
10668
|
+
%switch-large {
|
|
10668
10669
|
--ch-switch-track-block-size: 26px;
|
|
10669
10670
|
--ch-switch-track-inline-size: 50px;
|
|
10670
10671
|
--ch-switch-thumb-size: 16px;
|
|
@@ -10680,77 +10681,77 @@
|
|
|
10680
10681
|
}
|
|
10681
10682
|
}
|
|
10682
10683
|
|
|
10683
|
-
@mixin
|
|
10684
|
-
$
|
|
10685
|
-
$track-selector: ".
|
|
10686
|
-
$track--disabled-selector: ".
|
|
10687
|
-
$thumb--unchecked-selector: ".
|
|
10688
|
-
$thumb--checked-selector: ".
|
|
10689
|
-
$caption--checked-selector: ".
|
|
10684
|
+
@mixin switch-small(
|
|
10685
|
+
$switch-selector: ".switch-small",
|
|
10686
|
+
$track-selector: ".switch-small::part(track)",
|
|
10687
|
+
$track--disabled-selector: ".switch-small::part(track disabled)",
|
|
10688
|
+
$thumb--unchecked-selector: ".switch-small::part(thumb unchecked)",
|
|
10689
|
+
$thumb--checked-selector: ".switch-small::part(thumb checked)",
|
|
10690
|
+
$caption--checked-selector: ".switch-small::part(caption checked)",
|
|
10690
10691
|
$add--disabled: true
|
|
10691
10692
|
) {
|
|
10692
|
-
#{$
|
|
10693
|
-
@extend %
|
|
10694
|
-
@extend %
|
|
10693
|
+
#{$switch-selector} {
|
|
10694
|
+
@extend %switch-basic;
|
|
10695
|
+
@extend %switch-small;
|
|
10695
10696
|
}
|
|
10696
10697
|
|
|
10697
10698
|
#{$track-selector} {
|
|
10698
|
-
@extend %
|
|
10699
|
+
@extend %switch-basic__track;
|
|
10699
10700
|
}
|
|
10700
10701
|
|
|
10701
10702
|
@if $add--disabled {
|
|
10702
10703
|
#{$track--disabled-selector} {
|
|
10703
|
-
@extend %
|
|
10704
|
+
@extend %switch-basic__track--disabled;
|
|
10704
10705
|
}
|
|
10705
10706
|
}
|
|
10706
10707
|
|
|
10707
10708
|
#{$thumb--unchecked-selector} {
|
|
10708
|
-
@extend %
|
|
10709
|
+
@extend %switch-small__thumb--unchecked;
|
|
10709
10710
|
}
|
|
10710
10711
|
|
|
10711
10712
|
#{$thumb--checked-selector} {
|
|
10712
|
-
@extend %
|
|
10713
|
+
@extend %switch-small__thumb--checked;
|
|
10713
10714
|
}
|
|
10714
10715
|
|
|
10715
10716
|
#{$caption--checked-selector} {
|
|
10716
|
-
@extend %
|
|
10717
|
+
@extend %switch-basic__caption--checked;
|
|
10717
10718
|
}
|
|
10718
10719
|
}
|
|
10719
10720
|
|
|
10720
|
-
@mixin
|
|
10721
|
-
$
|
|
10722
|
-
$track-selector: ".
|
|
10723
|
-
$track--disabled-selector: ".
|
|
10724
|
-
$thumb--unchecked-selector: ".
|
|
10725
|
-
$thumb--checked-selector: ".
|
|
10726
|
-
$caption--checked-selector: ".
|
|
10721
|
+
@mixin switch-large(
|
|
10722
|
+
$switch-selector: ".switch-large",
|
|
10723
|
+
$track-selector: ".switch-large::part(track)",
|
|
10724
|
+
$track--disabled-selector: ".switch-large::part(track disabled)",
|
|
10725
|
+
$thumb--unchecked-selector: ".switch-large::part(thumb unchecked)",
|
|
10726
|
+
$thumb--checked-selector: ".switch-large::part(thumb checked)",
|
|
10727
|
+
$caption--checked-selector: ".switch-large::part(caption checked)",
|
|
10727
10728
|
$add--disabled: true
|
|
10728
10729
|
) {
|
|
10729
|
-
#{$
|
|
10730
|
-
@extend %
|
|
10731
|
-
@extend %
|
|
10730
|
+
#{$switch-selector} {
|
|
10731
|
+
@extend %switch-basic;
|
|
10732
|
+
@extend %switch-large;
|
|
10732
10733
|
}
|
|
10733
10734
|
|
|
10734
10735
|
#{$track-selector} {
|
|
10735
|
-
@extend %
|
|
10736
|
+
@extend %switch-basic__track;
|
|
10736
10737
|
}
|
|
10737
10738
|
|
|
10738
10739
|
@if $add--disabled {
|
|
10739
10740
|
#{$track--disabled-selector} {
|
|
10740
|
-
@extend %
|
|
10741
|
+
@extend %switch-basic__track--disabled;
|
|
10741
10742
|
}
|
|
10742
10743
|
}
|
|
10743
10744
|
|
|
10744
10745
|
#{$thumb--unchecked-selector} {
|
|
10745
|
-
@extend %
|
|
10746
|
+
@extend %switch-large__thumb--unchecked;
|
|
10746
10747
|
}
|
|
10747
10748
|
|
|
10748
10749
|
#{$thumb--checked-selector} {
|
|
10749
|
-
@extend %
|
|
10750
|
+
@extend %switch-large__thumb--checked;
|
|
10750
10751
|
}
|
|
10751
10752
|
|
|
10752
10753
|
#{$caption--checked-selector} {
|
|
10753
|
-
@extend %
|
|
10754
|
+
@extend %switch-basic__caption--checked;
|
|
10754
10755
|
}
|
|
10755
10756
|
}
|
|
10756
10757
|
|
|
@@ -10880,6 +10881,7 @@
|
|
|
10880
10881
|
}
|
|
10881
10882
|
|
|
10882
10883
|
%tree-view-item__header {
|
|
10884
|
+
min-inline-size: var(--tree-view__min-inline-size);
|
|
10883
10885
|
@include item-colors-enabled();
|
|
10884
10886
|
@include item-border-radius();
|
|
10885
10887
|
@include item-border();
|
|
@@ -11194,7 +11196,7 @@
|
|
|
11194
11196
|
$tab: true,
|
|
11195
11197
|
$tabular-grid: true,
|
|
11196
11198
|
$ticket-list: true,
|
|
11197
|
-
$
|
|
11199
|
+
$switch: true,
|
|
11198
11200
|
$tooltip: true,
|
|
11199
11201
|
$tree-view: true,
|
|
11200
11202
|
$widget: true
|
|
@@ -22973,9 +22975,9 @@
|
|
|
22973
22975
|
@include ticket-list();
|
|
22974
22976
|
}
|
|
22975
22977
|
|
|
22976
|
-
@if $
|
|
22977
|
-
@include
|
|
22978
|
-
@include
|
|
22978
|
+
@if $switch {
|
|
22979
|
+
@include switch-small();
|
|
22980
|
+
@include switch-large();
|
|
22979
22981
|
}
|
|
22980
22982
|
|
|
22981
22983
|
@if $tooltip {
|
|
@@ -23061,7 +23063,7 @@
|
|
|
23061
23063
|
$tab: false,
|
|
23062
23064
|
$tabular-grid: false,
|
|
23063
23065
|
$ticket-list: false,
|
|
23064
|
-
$
|
|
23066
|
+
$switch: false,
|
|
23065
23067
|
$tooltip: false,
|
|
23066
23068
|
$tree-view: false,
|
|
23067
23069
|
$widget: false
|
|
@@ -23136,7 +23138,7 @@
|
|
|
23136
23138
|
$tab: $tab,
|
|
23137
23139
|
$tabular-grid: $tabular-grid,
|
|
23138
23140
|
$ticket-list: $ticket-list,
|
|
23139
|
-
$
|
|
23141
|
+
$switch: $switch,
|
|
23140
23142
|
$tooltip: $tooltip,
|
|
23141
23143
|
$tree-view: $tree-view,
|
|
23142
23144
|
$widget: $widget
|
package/dist/types.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export type MercuryBundleOptimized = MercuryBundleComponent | MercuryBundleCompo
|
|
|
3
3
|
export type MercuryBundleFull = MercuryBundleComponent | MercuryBundleUtil | MercuryBundleUtilFormFull;
|
|
4
4
|
export type MercuryBundleBase = "base/base" | "base/icons";
|
|
5
5
|
export type MercuryBundleComponent = "components/accordion" | "components/chat" | "components/code" | "components/dialog" | "components/dropdown" | "components/flexible-layout" | "components/layout-splitter" | "components/list-box" | "components/markdown-viewer" | "components/navigation-list" | "components/pills" | "components/segmented-control" | "components/sidebar" | "components/tab" | "components/tabular-grid" | "components/ticket-list" | "components/tooltip" | "components/tree-view" | "components/widget";
|
|
6
|
-
export type MercuryBundleComponentForm = "components/button" | "components/checkbox" | "components/combo-box" | "components/edit" | "components/icon" | "components/radio-group" | "components/slider" | "components/
|
|
6
|
+
export type MercuryBundleComponentForm = "components/button" | "components/checkbox" | "components/combo-box" | "components/edit" | "components/icon" | "components/radio-group" | "components/slider" | "components/switch";
|
|
7
7
|
export type MercuryBundleReset = "resets/box-sizing";
|
|
8
8
|
export type MercuryBundleUtil = "utils/elevation" | "utils/form" | "utils/layout" | "utils/spacing" | "utils/typography" | "chameleon/scrollbar";
|
|
9
9
|
export type MercuryBundleUtilFormFull = "utils/form--full";
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.toggle-large,.toggle-small{--ch-switch-track__unchecked-background-color: var( --mer-color__neutral-gray--650 );--ch-switch-track__checked-background-color: var( --mer-color__tinted-primary--50 );--ch-switch-thumb__unchecked-background-color: var(--mer-icon__neutral);--ch-switch-thumb__checked-background-color: var(--mer-icon__neutral);--ch-switch-thumb__state-transition-duration: 150ms;font-weight:400}.toggle-large::part(track),.toggle-small::part(track){border-radius:var(--ch-switch-track-block-size);margin-inline-end:var(--mer-spacing--xs)}.toggle-large::part(track disabled),.toggle-small::part(track disabled){--ch-switch-track__unchecked-background-color: var( --mer-accent__primary--disabled );--ch-switch-track__checked-background-color: var( --mer-accent__primary--disabled );--ch-switch-thumb__unchecked-background-color: var( --mer-icon__on-disabled );--ch-switch-thumb__checked-background-color: var(--mer-icon__on-disabled)}.toggle-large::part(caption checked),.toggle-small::part(caption checked){font-weight:600}.toggle-small{--ch-switch-track-block-size: 16px;--ch-switch-track-inline-size: 31px;--ch-switch-thumb-size: 9px}.toggle-small::part(thumb unchecked){inset-inline-start:4px}.toggle-small::part(thumb checked){inset-inline-start:calc(100% - var(--ch-switch-thumb-size) - 4px)}.toggle-large{--ch-switch-track-block-size: 26px;--ch-switch-track-inline-size: 50px;--ch-switch-thumb-size: 16px}.toggle-large::part(thumb unchecked){inset-inline-start:6px}.toggle-large::part(thumb checked){inset-inline-start:calc(100% - var(--ch-switch-thumb-size) - 6px)}
|