Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@rescui/toggle

Package Overview
Dependencies
Maintainers
3
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rescui/toggle - npm Package Compare versions

Comparing version
0.4.5
to
0.4.6-RUI-280-Update-select-component-026338d06.52
+22
-22
lib/index.css

@@ -1,8 +0,8 @@

._themeLight_163fjqy_6{
._themeLight_19sif2i_6{
--rs-theme-dark:0;
}
._themeDark_163fjqy_9{
._themeDark_19sif2i_9{
--rs-theme-dark:1;
}
._sizeS_163fjqy_13{
._sizeS_19sif2i_13{
--_rs-toggle-width:20px;

@@ -12,3 +12,3 @@ --_rs-toggle-height:12px;

}
._sizeM_163fjqy_16{
._sizeM_19sif2i_16{
--_rs-toggle-width:28px;

@@ -18,3 +18,3 @@ --_rs-toggle-height:16px;

}
._sizeL_163fjqy_19{
._sizeL_19sif2i_19{
--_rs-toggle-width:32px;

@@ -24,11 +24,11 @@ --_rs-toggle-height:18px;

}
._classic_163fjqy_23{
._classic_19sif2i_23{
--_rs-toggle-hover-slider-box-shadow-color:var(--_rs-color-primary-t-fog);
--_rs-toggle-checked-slider-background-color:var(--_rs-color-primary);
}
._rock_163fjqy_26{
._rock_19sif2i_26{
--_rs-toggle-hover-slider-box-shadow-color:rgba(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227), 0.2);
--_rs-toggle-checked-slider-background-color:rgb(calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(25 + var(--_rs-theme-dark-coefficient, 0)*230), calc(28 + var(--_rs-theme-dark-coefficient, 0)*227));
}
._main_163fjqy_30{
._main_19sif2i_30{
--_rs-toggle-circle-border:2px;

@@ -48,3 +48,3 @@

@supports (color: color-mix(in srgb, #fff 50%, #000 50%)){
._main_163fjqy_30{
._main_19sif2i_30{
--_rs-color-primary:color-mix(in srgb, var(--rs-color-primary-light-theme, #6B57FF) calc(100%*var(--_rs-theme-light-coefficient, 1)), var(--rs-color-primary-dark-theme, #8473FF) calc(100%*var(--_rs-theme-dark-coefficient, 0)));

@@ -58,3 +58,3 @@ --_rs-color-primary-dim:color-mix(in srgb, var(--rs-color-primary-dim-light-theme, #8979ff) calc(100%*var(--_rs-theme-light-coefficient, 1)), var(--rs-color-primary-dim-dark-theme, #6f61d2) calc(100%*var(--_rs-theme-dark-coefficient, 0)));

@supports not (color: color-mix(in srgb, #fff 50%, #000 50%)){
._main_163fjqy_30{
._main_19sif2i_30{
--_rs-color-primary:rgb(calc(var(--_rs-theme-light-coefficient, 1)*107 + var(--_rs-theme-dark-coefficient, 0)*132), calc(var(--_rs-theme-light-coefficient, 1)*87 + var(--_rs-theme-dark-coefficient, 0)*115), 255);

@@ -67,3 +67,3 @@ --_rs-color-primary-dim:rgb(calc(var(--_rs-theme-light-coefficient, 1)*137 + var(--_rs-theme-dark-coefficient, 0)*111), calc(var(--_rs-theme-light-coefficient, 1)*121 + var(--_rs-theme-dark-coefficient, 0)*97), calc(var(--_rs-theme-light-coefficient, 1)*255 + var(--_rs-theme-dark-coefficient, 0)*210));

}
._main_163fjqy_30 {
._main_19sif2i_30 {

@@ -80,3 +80,3 @@ position:relative;

}
._main_163fjqy_30 input{
._main_19sif2i_30 input{
position:absolute;

@@ -91,7 +91,7 @@ z-index:-1;

}
._main_163fjqy_30._disabled_163fjqy_57{
._main_19sif2i_30._disabled_19sif2i_57{
cursor:default;
pointer-events:none;
}
._slider_163fjqy_63{
._slider_19sif2i_63{
position:absolute;

@@ -110,3 +110,3 @@ top:var(--_rs-toggle-shadow);

}
._slider_163fjqy_63:after{
._slider_19sif2i_63:after{
position:absolute;

@@ -130,6 +130,6 @@ top:0;

}
._disabled_163fjqy_57 ._slider_163fjqy_63{
._disabled_19sif2i_57 ._slider_19sif2i_63{
background:rgb(calc(209 - var(--_rs-theme-dark-coefficient, 0)*138), calc(209 - var(--_rs-theme-dark-coefficient, 0)*138), calc(210 - var(--_rs-theme-dark-coefficient, 0)*137));
}
._disabled_163fjqy_57 ._slider_163fjqy_63:after{
._disabled_19sif2i_57 ._slider_19sif2i_63:after{
border-color:rgb(calc(209 - var(--_rs-theme-dark-coefficient, 0)*138), calc(209 - var(--_rs-theme-dark-coefficient, 0)*138), calc(210 - var(--_rs-theme-dark-coefficient, 0)*137));

@@ -139,3 +139,3 @@

}
input:checked + ._slider_163fjqy_63:after{
input:checked + ._slider_19sif2i_63:after{
width:calc(var(--_rs-toggle-height) + var(--_rs-toggle-circle-border));

@@ -149,13 +149,13 @@ height:calc(var(--_rs-toggle-height) + var(--_rs-toggle-circle-border));

}
._main_163fjqy_30:not(._disabled_163fjqy_57) input:hover + ._slider_163fjqy_63{
._main_19sif2i_30:not(._disabled_19sif2i_57) input:hover + ._slider_19sif2i_63{
box-shadow:var(--_rs-toggle-hover-slider-box-shadow-color) 0 0 0 var(--_rs-toggle-shadow);
}
._main_163fjqy_30:not(._disabled_163fjqy_57) input:checked + ._slider_163fjqy_63{
._main_19sif2i_30:not(._disabled_19sif2i_57) input:checked + ._slider_19sif2i_63{
background-color:var(--_rs-toggle-checked-slider-background-color);
}
._main_163fjqy_30:not(._disabled_163fjqy_57) input:checked + ._slider_163fjqy_63:after{
._main_19sif2i_30:not(._disabled_19sif2i_57) input:checked + ._slider_19sif2i_63:after{
border-color:var(--_rs-toggle-checked-slider-background-color);
}
._main_163fjqy_30:not(._disabled_163fjqy_57) input:focus[data-focus-method='key'] + ._slider_163fjqy_63{
._main_19sif2i_30:not(._disabled_19sif2i_57) input:focus[data-focus-method='key'] + ._slider_19sif2i_63{
box-shadow:0 0 0 var(--_rs-toggle-shadow) var(--_rs-color-primary-t-dim);
}

@@ -38,4 +38,5 @@ @define-mixin rs-toggle-size-s{

--_rs-typography-text-auto-offset:8px;
--_rs-typography-ul-list-li-padding-left:28px;
--_rs-typography-ol-list-li-padding-left:21px;
--_rs-typography-ul-bullet-offset:2px;
--_rs-typography-list-li-compact-left-offset:15px;
--_rs-typography-list-li-default-left-offset:19px;
--_rs-typography-list-li-margin-top-from-text:8px;

@@ -84,4 +85,5 @@ --_rs-typography-link-standalone-border-offset-from-text-base:1.15em;

--_rs-typography-text-auto-offset:16px;
--_rs-typography-ul-list-li-padding-left:22px;
--_rs-typography-ol-list-li-padding-left:26px;
--_rs-typography-ul-bullet-offset:2px;
--_rs-typography-list-li-compact-left-offset:18px;
--_rs-typography-list-li-default-left-offset:24px;
--_rs-typography-list-li-margin-top-from-text:var(

@@ -138,4 +140,5 @@ --_rs-typography-text-2-sm-list-li-margin-top-from-text,

--_rs-typography-text-auto-offset:32px;
--_rs-typography-ul-list-li-padding-left:26px;
--_rs-typography-ol-list-li-padding-left:32px;
--_rs-typography-ul-bullet-offset:2px;
--_rs-typography-list-li-compact-left-offset:22px;
--_rs-typography-list-li-default-left-offset:28px;
--_rs-typography-list-li-margin-top-from-text:var(

@@ -142,0 +145,0 @@ --_rs-typography-text-1-sm-list-li-margin-top-from-text,

var styles = {
"themeLight": "_themeLight_163fjqy_6",
"themeDark": "_themeDark_163fjqy_9",
"sizeS": "_sizeS_163fjqy_13",
"sizeM": "_sizeM_163fjqy_16",
"sizeL": "_sizeL_163fjqy_19",
"classic": "_classic_163fjqy_23",
"rock": "_rock_163fjqy_26",
"main": "_main_163fjqy_30",
"disabled": "_disabled_163fjqy_57",
"slider": "_slider_163fjqy_63"
"themeLight": "_themeLight_19sif2i_6",
"themeDark": "_themeDark_19sif2i_9",
"sizeS": "_sizeS_19sif2i_13",
"sizeM": "_sizeM_19sif2i_16",
"sizeL": "_sizeL_19sif2i_19",
"classic": "_classic_19sif2i_23",
"rock": "_rock_19sif2i_26",
"main": "_main_19sif2i_30",
"disabled": "_disabled_19sif2i_57",
"slider": "_slider_19sif2i_63"
};
export { styles as default };
{
"name": "@rescui/toggle",
"version": "0.4.5",
"version": "0.4.6-RUI-280-Update-select-component-026338d06.52+026338d06",
"description": "Toggle is a control that allows you to turn elements on and off instantly",

@@ -19,3 +19,3 @@ "license": "Apache-2.0",

"@babel/runtime-corejs3": "^7.26.0",
"@rescui/menu": "^0.13.2",
"@rescui/menu": "0.13.3-RUI-280-Update-select-component-026338d06.52+026338d06",
"classnames": "^2.2.6"

@@ -29,5 +29,5 @@ },

"devDependencies": {
"@rescui/colors": "^0.3.0",
"@rescui/scripts": "^0.5.1",
"@rescui/visual-regression": "^0.1.4",
"@rescui/colors": "0.3.1-RUI-280-Update-select-component-026338d06.52+026338d06",
"@rescui/scripts": "0.5.1",
"@rescui/visual-regression": "0.1.4",
"@types/classnames": "^2.2.11"

@@ -40,3 +40,3 @@ },

"nx": {},
"gitHead": "1c29c8940bcec78d637ea6070ee8a63c258c8e89"
"gitHead": "026338d06dba5f4f8b42762b25aca5fb1f28fffb"
}

Sorry, the diff of this file is not supported yet