@webitel/styleguide 24.12.82 → 24.12.84

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.82",
3
+ "version": "24.12.84",
4
4
  "main": "",
5
5
  "exports": {
6
6
  ".": "./src/lib/main.scss",
@@ -7,6 +7,7 @@ import ToolbarScheme from './toolbar';
7
7
  import ChipScheme from "./chip";
8
8
  import CheckboxScheme from "./checkbox";
9
9
  import TableScheme from "./table";
10
+ import TextareaScheme from "./textarea";
10
11
  import SwitcherScheme from "./switcher";
11
12
  import DividerScheme from "./divider";
12
13
  import SliderScheme from "./slider";
@@ -24,6 +25,7 @@ export {
24
25
  ChipScheme,
25
26
  CheckboxScheme,
26
27
  TableScheme,
28
+ TextareaScheme,
27
29
  SwitcherScheme,
28
30
  DividerScheme,
29
31
  SliderScheme,
@@ -0,0 +1,24 @@
1
+ const darkColors = {
2
+ root: {
3
+ background: '{form.field.background}',
4
+ disabledBackground: '{form.field.disabled.background}',
5
+ filledBackground: '{form.field.filled.background}',
6
+ filledHoverBackground: '{form.field.filled.hover.background}',
7
+ filledFocusBackground: '{form.field.filled.focus.background}',
8
+ borderColor: '{form.field.border.color}',
9
+ hoverBorderColor: '{form.field.hover.border.color}',
10
+ focusBorderColor: '{form.field.focus.border.color}',
11
+ invalidBorderColor: '{form.field.invalid.border.color}',
12
+ color: '{form.field.color}',
13
+ disabledColor: '{form.field.disabled.color}',
14
+ placeholderColor: '{form.field.placeholder.color}',
15
+ invalidPlaceholderColor: '{form.field.invalid.placeholder.color}',
16
+ shadow: '{form.field.shadow}',
17
+ focusRing: {
18
+ color: '{form.field.focus.ring.color}',
19
+ shadow: '{form.field.focus.ring.shadow}'
20
+ },
21
+ }
22
+ }
23
+
24
+ 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,24 @@
1
+ const lightColors = {
2
+ root: {
3
+ background: '{form.field.background}',
4
+ disabledBackground: '{form.field.disabled.background}',
5
+ filledBackground: '{form.field.filled.background}',
6
+ filledHoverBackground: '{form.field.filled.hover.background}',
7
+ filledFocusBackground: '{form.field.filled.focus.background}',
8
+ borderColor: '{form.field.border.color}',
9
+ hoverBorderColor: '{form.field.hover.border.color}',
10
+ focusBorderColor: '{form.field.focus.border.color}',
11
+ invalidBorderColor: '{form.field.invalid.border.color}',
12
+ color: '{form.field.color}',
13
+ disabledColor: '{form.field.disabled.color}',
14
+ placeholderColor: '{form.field.placeholder.color}',
15
+ invalidPlaceholderColor: '{form.field.invalid.placeholder.color}',
16
+ shadow: '{form.field.shadow}',
17
+ focusRing: {
18
+ color: '{form.field.focus.ring.color}',
19
+ shadow: '{form.field.focus.ring.shadow}'
20
+ },
21
+ }
22
+ }
23
+
24
+ export default lightColors
@@ -0,0 +1,9 @@
1
+ import colorScheme from "./colors";
2
+ import sizes from "./sizes";
3
+
4
+ const TextareaScheme = {
5
+ colorScheme,
6
+ sizes,
7
+ };
8
+
9
+ export default TextareaScheme
@@ -0,0 +1,26 @@
1
+ const sizes = {
2
+ root: {
3
+ paddingX: '{form.field.padding.x}',
4
+ paddingY: '{form.field.padding.y}',
5
+ borderRadius: '{form.field.border.radius}',
6
+ minHeight: '6.25rem',
7
+ focusRing: {
8
+ width: '{form.field.focus.ring.width}',
9
+ style: '{form.field.focus.ring.style}',
10
+ offset: '{form.field.focus.ring.offset}',
11
+ },
12
+ transitionDuration: '{form.field.transition.duration}',
13
+ sm: {
14
+ fontSize: '{form.field.sm.font.size}',
15
+ paddingX: '{form.field.sm.padding.x}',
16
+ paddingY: '{form.field.sm.padding.y}'
17
+ },
18
+ lg: {
19
+ fontSize: '{form.field.lg.font.size}',
20
+ paddingX: '{form.field.lg.padding.x}',
21
+ paddingY: '{form.field.lg.padding.y}'
22
+ }
23
+ }
24
+ }
25
+
26
+ export default sizes
@@ -101,8 +101,9 @@ const darkColor = {
101
101
  color: '{surface.200}'
102
102
  },
103
103
 
104
- // Focus colors
105
- 'focus-color': '{black}',
104
+ focus: {
105
+ color: '{white}'
106
+ },
106
107
 
107
108
  // content wrapper
108
109
  'content-wrapper-color': '{dp-surface-color-20}',
@@ -1,7 +1,7 @@
1
1
  export default {
2
2
  formField: {
3
- background: '{surface.950}',
4
- disabledBackground: '{surface.700}',
3
+ background: '{content.background}',
4
+ disabledBackground: '{surface.750}',
5
5
  filledBackground: '{surface.800}',
6
6
  filledHoverBackground: '{surface.800}',
7
7
  filledFocusBackground: '{surface.800}',
@@ -12,12 +12,12 @@ export default {
12
12
  color: '{surface.0}',
13
13
  disabledColor: '{surface.400}',
14
14
  placeholderColor: '{surface.400}',
15
- invalidPlaceholderColor: '{red.400}',
15
+ invalidPlaceholderColor: '{error.color}',
16
16
  floatLabelColor: '{surface.400}',
17
17
  floatLabelFocusColor: '{primary.color}',
18
18
  floatLabelActiveColor: '{surface.400}',
19
19
  floatLabelInvalidColor: '{form.field.invalid.placeholder.color}',
20
- iconColor: '{surface.400}',
20
+ iconColor: '{text.color}',
21
21
  shadow: '0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgba(18, 18, 23, 0.05)'
22
22
  }
23
23
  }
@@ -1,7 +1,7 @@
1
1
  export default {
2
2
  formField: {
3
- background: '{surface.0}',
4
- disabledBackground: '{surface.200}',
3
+ background: '{content.background}',
4
+ disabledBackground: '{surface.100}',
5
5
  filledBackground: '{surface.50}',
6
6
  filledHoverBackground: '{surface.50}',
7
7
  filledFocusBackground: '{surface.50}',
@@ -12,12 +12,12 @@ export default {
12
12
  color: '{surface.700}',
13
13
  disabledColor: '{surface.500}',
14
14
  placeholderColor: '{surface.500}',
15
- invalidPlaceholderColor: '{red.600}',
15
+ invalidPlaceholderColor: '{error.color}',
16
16
  floatLabelColor: '{surface.500}',
17
17
  floatLabelFocusColor: '{primary.600}',
18
18
  floatLabelActiveColor: '{surface.500}',
19
19
  floatLabelInvalidColor: '{form.field.invalid.placeholder.color}',
20
- iconColor: '{surface.400}',
20
+ iconColor: '{text.color}',
21
21
  shadow: '0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgba(18, 18, 23, 0.05)'
22
22
  }
23
23
  }
@@ -103,8 +103,9 @@ const lightColor = {
103
103
  color: '{surface.200}'
104
104
  },
105
105
 
106
- // Focus colors
107
- 'focus-color': '{black}',
106
+ focus: {
107
+ color: '{black}'
108
+ },
108
109
 
109
110
  // content wrapper
110
111
  'content-wrapper-color': '{dp-surface-color-20}',
@@ -11,7 +11,7 @@ export default {
11
11
  paddingX: '0.875rem',
12
12
  paddingY: '0.625rem'
13
13
  },
14
- borderRadius: '{border.radius.md}',
14
+ borderRadius: '{border.radius.lg}',
15
15
  focusRing: {
16
16
  width: '0',
17
17
  style: 'none',
@@ -65,6 +65,7 @@ export default {
65
65
  borderRadius: '{border-radius.lg}',
66
66
  padding: '0.5rem',
67
67
  gap: '0.5rem',
68
+ height: '48px'
68
69
  },
69
70
  md: {
70
71
  borderRadius: '{border-radius.xl}',