@webitel/styleguide 24.12.54 → 24.12.56

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/styleguide",
3
- "version": "24.12.54",
3
+ "version": "24.12.56",
4
4
  "main": "",
5
5
  "exports": {
6
6
  ".": "./src/lib/main.scss",
@@ -0,0 +1,23 @@
1
+ const darkColors = {
2
+ root: {
3
+ background: '{transparent}',
4
+ },
5
+ item: {
6
+ color: '{text.color}',
7
+ hoverColor: '{text.hoverColor}',
8
+ icon: {
9
+ color: '{navigation.item.icon.color}',
10
+ hoverColor: '{navigation.item.icon.focus.color}'
11
+ },
12
+ focusRing: {
13
+ color: '{focus.ring.color}',
14
+ shadow: '{focus.ring.shadow}'
15
+ }
16
+ },
17
+ separator: {
18
+ color: '{form.field.color}',
19
+ lastItemColor: '{primary.color}'
20
+ }
21
+ }
22
+
23
+ export default darkColors
@@ -0,0 +1,9 @@
1
+ import darkColors from './dark';
2
+ import lightColors from './light';
3
+
4
+ const colorScheme = {
5
+ light: lightColors,
6
+ dark: darkColors
7
+ }
8
+
9
+ export default colorScheme;
@@ -0,0 +1,23 @@
1
+ const lightColors = {
2
+ root: {
3
+ background: '{transparent}',
4
+ },
5
+ item: {
6
+ color: '{text.color}',
7
+ hoverColor: '{text.hoverColor}',
8
+ icon: {
9
+ color: '{navigation.item.icon.color}',
10
+ hoverColor: '{navigation.item.icon.focus.color}'
11
+ },
12
+ focusRing: {
13
+ color: '{focus.ring.color}',
14
+ shadow: '{focus.ring.shadow}'
15
+ }
16
+ },
17
+ separator: {
18
+ color: '{form.field.color}',
19
+ lastItemColor: '{primary.color}'
20
+ }
21
+ }
22
+
23
+ export default lightColors
@@ -0,0 +1,9 @@
1
+ import colorScheme from './colors';
2
+ import sizes from './sizes';
3
+
4
+ const BreadcrumbScheme = {
5
+ colorScheme,
6
+ sizes,
7
+ }
8
+
9
+ export default BreadcrumbScheme
@@ -0,0 +1,21 @@
1
+ const sizes = {
2
+ root: {
3
+ padding: '0rem',
4
+ gap: '0.5rem',
5
+ transitionDuration: '{transition.duration}'
6
+ },
7
+ item: {
8
+ borderRadius: '{content.border.radius}',
9
+ gap: '{navigation.item.gap}',
10
+ focusRing: {
11
+ width: '{focus.ring.width}',
12
+ style: '{focus.ring.style}',
13
+ offset: '{focus.ring.offset}',
14
+ }
15
+ },
16
+ separator: {
17
+ size: '1rem'
18
+ }
19
+ }
20
+
21
+ export default sizes
@@ -7,6 +7,8 @@ import ToolbarScheme from './toolbar';
7
7
  import ChipScheme from "./chip";
8
8
  import CheckboxScheme from "./checkbox";
9
9
  import TableScheme from "./table";
10
+ import SliderScheme from "./slider";
11
+ import BreadcrumbScheme from "./breadcrumb";
10
12
  import RadioScheme from "./radio";
11
13
 
12
14
  export {
@@ -19,5 +21,7 @@ export {
19
21
  ChipScheme,
20
22
  CheckboxScheme,
21
23
  TableScheme,
24
+ SliderScheme,
25
+ BreadcrumbScheme,
22
26
  RadioScheme,
23
27
  }
@@ -0,0 +1,23 @@
1
+ const darkColors = {
2
+ track: {
3
+ background: '{content.border.color}',
4
+ },
5
+ range: {
6
+ background: '{primary.color}'
7
+ },
8
+ handle: {
9
+ background: '{content.border.color}',
10
+ hoverBackground: '{content.border.color}',
11
+ content: {
12
+ background: '{content.background}',
13
+ hoverBackground: '{content.hoverBackground}',
14
+ shadow: '0px 0.5px 0px 0px rgba(0, 0, 0, 0.08), 0px 1px 1px 0px rgba(0, 0, 0, 0.14)'
15
+ },
16
+ focusRing: {
17
+ color: '{focus.ring.color}',
18
+ shadow: '{focus.ring.shadow}'
19
+ }
20
+ },
21
+ }
22
+
23
+ export default darkColors
@@ -0,0 +1,9 @@
1
+ import darkColors from './dark';
2
+ import lightColors from './light';
3
+
4
+ const colorScheme = {
5
+ light: lightColors,
6
+ dark: darkColors
7
+ }
8
+
9
+ export default colorScheme;
@@ -0,0 +1,23 @@
1
+ const lightColors = {
2
+ track: {
3
+ background: '{content.border.color}',
4
+ },
5
+ range: {
6
+ background: '{primary.color}'
7
+ },
8
+ handle: {
9
+ background: '{content.border.color}',
10
+ hoverBackground: '{content.border.color}',
11
+ content: {
12
+ background: '{content.background}',
13
+ hoverBackground: '{content.hoverBackground}',
14
+ shadow: '0px 0.5px 0px 0px rgba(0, 0, 0, 0.08), 0px 1px 1px 0px rgba(0, 0, 0, 0.14)'
15
+ },
16
+ focusRing: {
17
+ color: '{focus.ring.color}',
18
+ shadow: '{focus.ring.shadow}'
19
+ }
20
+ },
21
+ }
22
+
23
+ export default lightColors
@@ -0,0 +1,9 @@
1
+ import colorScheme from './colors';
2
+ import sizes from './sizes';
3
+
4
+ const SliderScheme = {
5
+ colorScheme,
6
+ sizes,
7
+ }
8
+
9
+ export default SliderScheme
@@ -0,0 +1,26 @@
1
+ const sizes = {
2
+ root: {
3
+ transitionDuration: '{transition.duration}'
4
+ },
5
+ track: {
6
+ borderRadius: '{content.border.radius}',
7
+ size: '4px'
8
+ },
9
+ handle: {
10
+ width: '16px',
11
+ height: '16px',
12
+ borderRadius: '50%',
13
+ content: {
14
+ borderRadius: '50%',
15
+ width: '12px',
16
+ height: '12px',
17
+ },
18
+ focusRing: {
19
+ width: '{focus.ring.width}',
20
+ style: '{focus.ring.style}',
21
+ offset: '{focus.ring.offset}',
22
+ }
23
+ }
24
+ }
25
+
26
+ export default sizes
@@ -4,6 +4,7 @@ export default {
4
4
  hoverBackground: '{surface.800}',
5
5
  borderColor: '{surface.700}',
6
6
  color: '{text.color}',
7
- hoverColor: '{text.hover.color}'
7
+ hoverColor: '{text.hoverColor}',
8
+ hoverMutedColor: '{text.hoverMutedColor}'
8
9
  }
9
10
  }
@@ -4,6 +4,7 @@ export default {
4
4
  hoverBackground: '{surface.100}',
5
5
  borderColor: '{surface.200}',
6
6
  color: '{text.color}',
7
- hoverColor: '{text.hover.color}'
7
+ hoverColor: '{text.hoverColor}',
8
+ hoverMutedColor: '{text.hoverMutedColor}'
8
9
  }
9
10
  }