@simplybusiness/theme-core 7.3.3 → 7.4.1

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 CHANGED
@@ -1,5 +1,22 @@
1
1
  # Changelog
2
2
 
3
+ ## 7.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - @simplybusiness/mobius@5.20.1
8
+
9
+ ## 7.4.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 80c483e: Add Switch atom
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies [80c483e]
18
+ - @simplybusiness/mobius@5.20.0
19
+
3
20
  ## 7.3.3
4
21
 
5
22
  ### Patch Changes
package/dist/index.css CHANGED
@@ -2006,6 +2006,65 @@ a.mobius-button:focus-visible,
2006
2006
  gap:var(--size-xl);
2007
2007
  }
2008
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
+
2009
2068
  :root,
2010
2069
  :host{
2011
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.3",
3
+ "version": "7.4.1",
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.19.1"
29
+ "@simplybusiness/mobius": "^5.20.1"
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";