@maggioli-design-system/styles 11.7.0 → 13.0.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.
@@ -9,10 +9,13 @@
9
9
  --magma-dropdown-z-index: 4000;
10
10
  --magma-header-z-index: 1000;
11
11
  --magma-modal-z-index: 2000;
12
+ --magma-outline-animation-duration: 1.5s;
12
13
  --magma-outline-blur-offset: 6px;
13
- --magma-outline-blur: 2px solid transparent;
14
+ --magma-outline-blur-color: transparent;
15
+ --magma-outline-blur: 2px solid var(--magma-outline-blur-color);
14
16
  --magma-outline-focus-offset: 2px;
15
- --magma-outline-focus: 2px solid rgb(var(--tone-neutral-05));
17
+ --magma-outline-focus-color: rgb(var(--tone-neutral-05));
18
+ --magma-outline-focus: 2px solid var(--magma-outline-focus-color);
16
19
  --magma-overlay-blur: var(--magma-backdrop-blur);
17
20
  --magma-overlay-color: var(--magma-backdrop-color);
18
21
  --magma-overlay-opacity: 0.5;
@@ -1,29 +1,46 @@
1
1
  @tailwind components;
2
2
 
3
3
  @layer components {
4
- .focus-off,
5
- .focusable,
6
- .focusable-light,
7
- .focusable-light-off {
4
+ .focus-bounce {
5
+ animation-duration: var(--magma-outline-animation-duration, 1s);
6
+ animation-fill-mode: forwards;
7
+ animation-iteration-count: infinite;
8
+ animation-name: focus-bounce;
9
+ animation-play-state: paused;
10
+ animation-timing-function: theme('transitionTimingFunction.out');
11
+ outline: var(--magma-outline-blur);
12
+ transition-duration: 200ms;
13
+ transition-property: background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;
14
+ transition-timing-function: ease-in-out;
15
+ }
16
+
17
+ .focus-bounce--focused,
18
+ .focus-bounce:focus-visible {
19
+
20
+ --magma-outline-blur: var(--magma-outline-focus);
21
+
22
+ animation-play-state: running;
23
+ }
24
+
25
+ .focus-zoom {
8
26
  @apply
9
27
  duration-200
10
28
  ease-out;
11
29
 
12
- outline-offset: var(--magma-outline-blur-offset);
13
30
  outline: var(--magma-outline-blur);
31
+ outline-offset: var(--magma-outline-blur-offset);
14
32
  transition-property: background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;
15
33
  }
16
34
 
17
- .focus-on,
18
- .focusable-light:focus-visible,
19
- .focusable:focus-visible {
35
+ .focus-zoom--focused,
36
+ .focus-zoom:focus-visible {
20
37
 
21
38
  --magma-outline-blur-offset: var(--magma-outline-focus-offset);
22
39
  --magma-outline-blur: var(--magma-outline-focus);
23
40
  }
24
41
 
25
- .focus-light-on,
26
- .focusable-light:focus-visible {
42
+ .focus-zoom--light.focus-zoom--focused,
43
+ .focus-zoom--light:focus-visible {
27
44
 
28
45
  --magma-outline-blur: 2px solid rgb(var(--tone-neutral));
29
46
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maggioli-design-system/styles",
3
- "version": "11.7.0",
3
+ "version": "13.0.0",
4
4
  "description": "This module contains SCSS and CSS styles used by Maggioli Design System, it also makes available a Tailwind config based on Maggioli design tokens.",
5
5
  "main": "./tailwind.config.js",
6
6
  "scripts": {
@@ -41,18 +41,18 @@
41
41
  ],
42
42
  "license": "ISC",
43
43
  "dependencies": {
44
- "@fontsource/karla": "^5.0.11",
45
- "@fontsource/merriweather": "^5.0.8",
46
- "@fontsource/roboto": "^5.0.8",
47
- "@fontsource/roboto-mono": "^5.0.8",
48
- "@maggioli-design-system/design-tokens": "^10.7.0",
49
- "normalize.css": "^8.0.1"
44
+ "@fontsource/karla": "5.0.16",
45
+ "@fontsource/merriweather": "5.0.8",
46
+ "@fontsource/roboto": "5.0.8",
47
+ "@fontsource/roboto-mono": "5.0.14",
48
+ "@maggioli-design-system/design-tokens": "11.0.0",
49
+ "normalize.css": "8.0.1"
50
50
  },
51
51
  "devDependencies": {
52
- "autoprefixer": "^10.4.13",
53
- "postcss-cli": "^10.1.0",
54
- "postcss": "^8.4.19",
55
- "postcss-import": "^15.0.1",
56
- "tailwindcss": "^3.2.4"
52
+ "autoprefixer": "10.4.16",
53
+ "postcss-cli": "10.1.0",
54
+ "postcss": "8.4.31",
55
+ "postcss-import": "15.1.0",
56
+ "tailwindcss": "3.3.3"
57
57
  }
58
- }
58
+ }
@@ -69,10 +69,10 @@ module.exports = {
69
69
  },
70
70
  extend: {
71
71
  boxShadow: {
72
- 'sharp-lg': '0 0 1px 1px rgba(0, 0, 0, 0.06), 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)',
73
- 'sharp-md': '0 0 1px 1px rgba(0, 0, 0, 0.06), 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)',
74
- sharp: '0 0 1px 1px rgba(0, 0, 0, 0.06), 0 1px 3px 0 rgba(0, 0, 0, 0.1)',
75
- 'sharp-sm': '0 0 1px 1px rgba(0, 0, 0, 0.06), 0 1px 2px 0 rgba(0, 0, 0, 0.05)',
72
+ 'sharp-lg': '0 0 1px 1px rgb(0 0 0 / 0.06), 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.05)',
73
+ 'sharp-md': '0 0 1px 1px rgb(0 0 0 / 0.06), 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -1px rgb(0 0 0 / 0.06)',
74
+ sharp: '0 0 1px 1px rgb(0 0 0 / 0.06), 0 1px 3px 0 rgb(0 0 0 / 0.1)',
75
+ 'sharp-sm': '0 0 1px 1px rgb(0 0 0 / 0.06), 0 1px 2px 0 rgb(0 0 0 / 0.05)',
76
76
  },
77
77
  fontSize: {
78
78
  ...fontSize,