@simplybusiness/theme-core 7.3.2 → 7.4.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/CHANGELOG.md +18 -0
- package/dist/index.css +60 -3
- package/package.json +2 -2
- package/src/index.css +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 7.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 80c483e: Add Switch atom
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [80c483e]
|
|
12
|
+
- @simplybusiness/mobius@5.20.0
|
|
13
|
+
|
|
14
|
+
## 7.3.3
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies [f0b6a77]
|
|
19
|
+
- @simplybusiness/mobius@5.19.1
|
|
20
|
+
|
|
3
21
|
## 7.3.2
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/dist/index.css
CHANGED
|
@@ -366,8 +366,7 @@ h6.mobius-accordion__link-text,
|
|
|
366
366
|
.mobius-button:where(.--variant-link){
|
|
367
367
|
--button-content-color:var(--color-secondary);
|
|
368
368
|
appearance:none;
|
|
369
|
-
|
|
370
|
-
padding:0;
|
|
369
|
+
padding:var(--size-xxs);
|
|
371
370
|
background-color:transparent;
|
|
372
371
|
font-weight:normal;
|
|
373
372
|
}
|
|
@@ -384,7 +383,6 @@ h6.mobius-accordion__link-text,
|
|
|
384
383
|
|
|
385
384
|
.mobius-button:where(.--variant-link):focus-visible{
|
|
386
385
|
box-shadow:0 0 0 var(--size-focus-ring) var(--color-focus);
|
|
387
|
-
padding:3px 0;
|
|
388
386
|
}
|
|
389
387
|
|
|
390
388
|
.mobius-button.--is-disabled:where(.--variant-link){
|
|
@@ -2008,6 +2006,65 @@ a.mobius-button:focus-visible,
|
|
|
2008
2006
|
gap:var(--size-xl);
|
|
2009
2007
|
}
|
|
2010
2008
|
|
|
2009
|
+
:root,
|
|
2010
|
+
:host{
|
|
2011
|
+
--transition-duration:0.15s;
|
|
2012
|
+
}
|
|
2013
|
+
|
|
2014
|
+
.mobius-switch{
|
|
2015
|
+
position:relative;
|
|
2016
|
+
display:inline-block;
|
|
2017
|
+
border-radius:30px;
|
|
2018
|
+
width:55px;
|
|
2019
|
+
height:30px;
|
|
2020
|
+
}
|
|
2021
|
+
|
|
2022
|
+
.mobius-switch input{
|
|
2023
|
+
opacity:0;
|
|
2024
|
+
width:0;
|
|
2025
|
+
height:0;
|
|
2026
|
+
}
|
|
2027
|
+
|
|
2028
|
+
:is(.mobius-switch input):focus-visible + .mobius-switch__slider{
|
|
2029
|
+
box-shadow:var(--box-shadow-default);
|
|
2030
|
+
}
|
|
2031
|
+
|
|
2032
|
+
.mobius-switch__slider{
|
|
2033
|
+
position:absolute;
|
|
2034
|
+
cursor:pointer;
|
|
2035
|
+
border-radius:30px;
|
|
2036
|
+
top:0;
|
|
2037
|
+
left:0;
|
|
2038
|
+
right:0;
|
|
2039
|
+
bottom:0;
|
|
2040
|
+
background-color:var(--color-border);
|
|
2041
|
+
transition:var(--transition-duration);
|
|
2042
|
+
}
|
|
2043
|
+
|
|
2044
|
+
.mobius-switch__slider:before{
|
|
2045
|
+
position:absolute;
|
|
2046
|
+
content:"";
|
|
2047
|
+
border-radius:50%;
|
|
2048
|
+
height:26px;
|
|
2049
|
+
width:26px;
|
|
2050
|
+
left:3px;
|
|
2051
|
+
bottom:2px;
|
|
2052
|
+
background-color:var(--color-background);
|
|
2053
|
+
transition:var(--transition-duration);
|
|
2054
|
+
}
|
|
2055
|
+
|
|
2056
|
+
.mobius-switch--checked .mobius-switch__slider{
|
|
2057
|
+
background-color:var(--color-primary);
|
|
2058
|
+
}
|
|
2059
|
+
|
|
2060
|
+
:is(.mobius-switch--checked .mobius-switch__slider):hover{
|
|
2061
|
+
background-color:var(--color-primary-hover);
|
|
2062
|
+
}
|
|
2063
|
+
|
|
2064
|
+
.mobius-switch--checked .mobius-switch__slider:before{
|
|
2065
|
+
transform:translateX(23px);
|
|
2066
|
+
}
|
|
2067
|
+
|
|
2011
2068
|
:root,
|
|
2012
2069
|
:host{
|
|
2013
2070
|
--table-border-width:1px;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simplybusiness/theme-core",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.4.0",
|
|
4
4
|
"main": "dist/index.css",
|
|
5
5
|
"simplyBusiness": {
|
|
6
6
|
"publishToPublicNpm": true
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"./fonts": "./dist/fonts.css"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@simplybusiness/mobius": "^5.
|
|
29
|
+
"@simplybusiness/mobius": "^5.20.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"css-loader": "^7.1.2",
|
package/src/index.css
CHANGED
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
@import "@simplybusiness/mobius/src/components/Select/Select.css";
|
|
29
29
|
@import "@simplybusiness/mobius/src/components/Slider/Slider.css";
|
|
30
30
|
@import "@simplybusiness/mobius/src/components/Stack/Stack.css";
|
|
31
|
+
@import "@simplybusiness/mobius/src/components/Switch/Switch.css";
|
|
31
32
|
@import "@simplybusiness/mobius/src/components/Table/Table.css";
|
|
32
33
|
@import "@simplybusiness/mobius/src/components/Text/Text.css";
|
|
33
34
|
@import "@simplybusiness/mobius/src/components/TextArea/TextArea.css";
|