@webitel/styleguide 24.12.44 → 24.12.46

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.44",
3
+ "version": "24.12.46",
4
4
  "main": "",
5
5
  "exports": {
6
6
  ".": "./src/lib/main.scss",
@@ -0,0 +1,31 @@
1
+ const darkColors = {
2
+ root: {
3
+ background: '{form.field.background}',
4
+ checkedBackground: '{primary.color}',
5
+ checkedHoverBackground: '{primary.hover.color}',
6
+ disabledBackground: '{form.field.disabled.background}',
7
+ filledBackground: '{form.field.filled.background}',
8
+ borderColor: '{form.field.border.color}',
9
+ hoverBorderColor: '{form.field.hover.border.color}',
10
+ focusBorderColor: '{form.field.border.color}',
11
+ checkedBorderColor: '{primary.color}',
12
+ checkedHoverBorderColor: '{primary.hover.color}',
13
+ checkedFocusBorderColor: '{primary.color}',
14
+ checkedDisabledBorderColor: '{form.field.border.color}',
15
+ invalidBorderColor: '{form.field.invalid.border.color}',
16
+ shadow: '{form.field.shadow}',
17
+ focusRing: {
18
+ color: '{focus.ring.color}',
19
+ shadow: '{focus.ring.shadow}'
20
+ },
21
+ transitionDuration: '{form.field.transition.duration}',
22
+ },
23
+ icon: {
24
+ color: '{form.field.color}',
25
+ checkedColor: '{primary.contrast.color}',
26
+ checkedHoverColor: '{primary.contrast.color}',
27
+ disabledColor: '{form.field.disabled.color}',
28
+ }
29
+ }
30
+
31
+ 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,31 @@
1
+ const lightColors = {
2
+ root: {
3
+ background: '{form.field.background}',
4
+ checkedBackground: '{primary.color}',
5
+ checkedHoverBackground: '{primary.hover.color}',
6
+ disabledBackground: '{form.field.disabled.background}',
7
+ filledBackground: '{form.field.filled.background}',
8
+ borderColor: '{form.field.border.color}',
9
+ hoverBorderColor: '{form.field.hover.border.color}',
10
+ focusBorderColor: '{form.field.border.color}',
11
+ checkedBorderColor: '{primary.color}',
12
+ checkedHoverBorderColor: '{primary.hover.color}',
13
+ checkedFocusBorderColor: '{primary.color}',
14
+ checkedDisabledBorderColor: '{form.field.border.color}',
15
+ invalidBorderColor: '{form.field.invalid.border.color}',
16
+ shadow: '{form.field.shadow}',
17
+ focusRing: {
18
+ color: '{focus.ring.color}',
19
+ shadow: '{focus.ring.shadow}'
20
+ },
21
+ transitionDuration: '{form.field.transition.duration}',
22
+ },
23
+ icon: {
24
+ color: '{form.field.color}',
25
+ checkedColor: '{primary.contrast.color}',
26
+ checkedHoverColor: '{primary.contrast.color}',
27
+ disabledColor: '{form.field.disabled.color}',
28
+ }
29
+ }
30
+
31
+ export default lightColors
@@ -0,0 +1,9 @@
1
+ import colorScheme from './colors';
2
+ import sizes from './sizes';
3
+
4
+ const CheckboxScheme = {
5
+ colorScheme,
6
+ sizes,
7
+ }
8
+
9
+ export default CheckboxScheme
@@ -0,0 +1,31 @@
1
+ const sizes = {
2
+ root: {
3
+ borderRadius: '{border.radius.sm}',
4
+ width: '1.25rem',
5
+ height: '1.25rem',
6
+ sm: {
7
+ width: '1rem',
8
+ height: '1rem'
9
+ },
10
+ lg: {
11
+ width: '1.5rem',
12
+ height: '1.5rem'
13
+ },
14
+ focusRing: {
15
+ width: '{focus.ring.width}',
16
+ style: '{focus.ring.style}',
17
+ offset: '{focus.ring.offset}',
18
+ }
19
+ },
20
+ icon: {
21
+ size: '0.875rem',
22
+ sm: {
23
+ size: '0.75rem'
24
+ },
25
+ lg: {
26
+ size: '1rem'
27
+ }
28
+ }
29
+ }
30
+
31
+ export default sizes
@@ -0,0 +1,46 @@
1
+ const darkColors = {
2
+ background: '{surface.100}',
3
+ color: '{surface.800}',
4
+ /**
5
+ * @author Yehor Hlukhov
6
+ *
7
+ * referred to Evgeniy Trahtenberg
8
+ * need to add colors for main
9
+ * */
10
+ main: {
11
+ background: '{red.400}',
12
+ color: '{red.50}'
13
+ },
14
+ primary: {
15
+ background: '{primary.color}',
16
+ color: '{primary.foreground}'
17
+ },
18
+ secondary: {
19
+ background: '{secondary.color}',
20
+ color: '{secondary.foreground}'
21
+ },
22
+ success: {
23
+ background: '{success.color}',
24
+ color: '{success.foreground}'
25
+ },
26
+ warning: {
27
+ background: '{warn.color}',
28
+ color: '{warn.foreground}'
29
+ },
30
+ error: {
31
+ background: '{error.color}',
32
+ color: '{error.foreground}'
33
+ },
34
+ transfer: {
35
+ background: '{transfer.color}',
36
+ color: '{transfer.foreground}'
37
+ },
38
+ removeIcon: {
39
+ focusRing: {
40
+ color: '{focus.ring.color}',
41
+ shadow: '{form.field.focus.ring.shadow}'
42
+ }
43
+ }
44
+ }
45
+
46
+ 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,46 @@
1
+ const lightColors = {
2
+ background: '{surface.100}',
3
+ color: '{surface.800}',
4
+ /**
5
+ * @author Yehor Hlukhov
6
+ *
7
+ * referred to Evgeniy Trahtenberg
8
+ * need to add colors for main
9
+ * */
10
+ main: {
11
+ background: '{red.400}',
12
+ color: '{red.50}'
13
+ },
14
+ primary: {
15
+ background: '{primary.color}',
16
+ color: '{primary.foreground}'
17
+ },
18
+ secondary: {
19
+ background: '{secondary.color}',
20
+ color: '{secondary.foreground}'
21
+ },
22
+ success: {
23
+ background: '{success.color}',
24
+ color: '{success.foreground}'
25
+ },
26
+ warning: {
27
+ background: '{warn.color}',
28
+ color: '{warn.foreground}'
29
+ },
30
+ error: {
31
+ background: '{error.color}',
32
+ color: '{error.foreground}'
33
+ },
34
+ transfer: {
35
+ background: '{transfer.color}',
36
+ color: '{transfer.foreground}'
37
+ },
38
+ removeIcon: {
39
+ focusRing: {
40
+ color: '{focus.ring.color}',
41
+ shadow: '{form.field.focus.ring.shadow}'
42
+ }
43
+ }
44
+ }
45
+
46
+ export default lightColors
@@ -0,0 +1,9 @@
1
+ import colorScheme from './colors';
2
+ import sizes from './sizes';
3
+
4
+ const ChipScheme = {
5
+ colorScheme,
6
+ sizes,
7
+ }
8
+
9
+ export default ChipScheme
@@ -0,0 +1,17 @@
1
+ const sizes = {
2
+ borderRadius: '16px',
3
+ paddingX: '0.75rem',
4
+ paddingY: '0.5rem',
5
+ gap: '0.5rem',
6
+ transitionDuration: '{transition.duration}',
7
+ removeIcon: {
8
+ size: '1rem',
9
+ focusRing: {
10
+ width: '{focus.ring.width}',
11
+ style: '{focus.ring.style}',
12
+ offset: '{focus.ring.offset}',
13
+ }
14
+ }
15
+ }
16
+
17
+ export default sizes
@@ -4,6 +4,8 @@ import PopoverScheme from './popover';
4
4
  import TooltipScheme from './tooltip';
5
5
  import MenubarScheme from './menubar';
6
6
  import ToolbarScheme from './toolbar';
7
+ import ChipScheme from "./chip";
8
+ import CheckboxScheme from "./checkbox";
7
9
 
8
10
  export {
9
11
  AvatarScheme,
@@ -12,4 +14,6 @@ export {
12
14
  TooltipScheme,
13
15
  MenubarScheme,
14
16
  ToolbarScheme,
17
+ ChipScheme,
18
+ CheckboxScheme,
15
19
  }