@react-ui-org/react-ui 0.44.1 → 0.45.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (139) hide show
  1. package/dist/lib.development.js +138 -258
  2. package/dist/lib.js +1 -1
  3. package/package.json +7 -10
  4. package/src/lib/components/Alert/Alert.jsx +4 -3
  5. package/src/lib/components/Alert/Alert.scss +48 -48
  6. package/src/lib/components/Alert/_settings.scss +4 -4
  7. package/src/lib/components/Alert/_theme.scss +50 -50
  8. package/src/lib/components/Alert/_tools.scss +6 -6
  9. package/src/lib/components/Badge/Badge.jsx +5 -4
  10. package/src/lib/components/Badge/Badge.scss +57 -57
  11. package/src/lib/components/Button/Button.jsx +10 -9
  12. package/src/lib/components/Button/Button.scss +2 -2
  13. package/src/lib/components/Button/README.mdx +6 -1
  14. package/src/lib/components/Button/_base.scss +65 -65
  15. package/src/lib/components/Button/_priorities.scss +49 -49
  16. package/src/lib/components/Button/_settings.scss +10 -10
  17. package/src/lib/components/Button/_theme.scss +18 -15
  18. package/src/lib/components/Button/_tools.scss +98 -100
  19. package/src/lib/components/ButtonGroup/ButtonGroup.jsx +4 -3
  20. package/src/lib/components/ButtonGroup/ButtonGroup.scss +3 -3
  21. package/src/lib/components/Card/Card.jsx +7 -6
  22. package/src/lib/components/Card/Card.scss +28 -28
  23. package/src/lib/components/Card/_theme.scss +50 -50
  24. package/src/lib/components/Card/_tools.scss +6 -6
  25. package/src/lib/components/CheckboxField/CheckboxField.jsx +12 -11
  26. package/src/lib/components/CheckboxField/CheckboxField.scss +20 -20
  27. package/src/lib/components/FileInputField/FileInputField.jsx +13 -12
  28. package/src/lib/components/FileInputField/FileInputField.scss +19 -19
  29. package/src/lib/components/FormLayout/FormLayout.jsx +5 -4
  30. package/src/lib/components/FormLayout/FormLayout.scss +17 -17
  31. package/src/lib/components/FormLayout/FormLayoutCustomField.jsx +9 -8
  32. package/src/lib/components/FormLayout/FormLayoutCustomField.scss +18 -18
  33. package/src/lib/components/FormLayout/README.mdx +16 -36
  34. package/src/lib/components/Grid/Grid.jsx +1 -1
  35. package/src/lib/components/Grid/Grid.scss +28 -30
  36. package/src/lib/components/Grid/GridSpan.jsx +1 -1
  37. package/src/lib/components/Grid/{helpers → _helpers}/generateResponsiveCustomProperties.js +0 -2
  38. package/src/lib/components/Grid/_theme.scss +9 -9
  39. package/src/lib/components/Grid/_tools.scss +20 -20
  40. package/src/lib/components/Link/Link.jsx +1 -1
  41. package/src/lib/components/Link/Link.scss +7 -7
  42. package/src/lib/components/List/List.jsx +11 -10
  43. package/src/lib/components/List/List.scss +21 -21
  44. package/src/lib/components/Media/Media.scss +6 -6
  45. package/src/lib/components/Modal/Modal.jsx +6 -5
  46. package/src/lib/components/Modal/Modal.scss +73 -73
  47. package/src/lib/components/Modal/_settings.scss +5 -5
  48. package/src/lib/components/Modal/_theme.scss +17 -17
  49. package/src/lib/components/Paper/Paper.jsx +5 -4
  50. package/src/lib/components/Paper/Paper.scss +8 -8
  51. package/src/lib/components/Radio/Radio.jsx +12 -11
  52. package/src/lib/components/Radio/Radio.scss +26 -26
  53. package/src/lib/components/ScrollView/ScrollView.jsx +9 -8
  54. package/src/lib/components/ScrollView/ScrollView.scss +113 -113
  55. package/src/lib/{services/elementPositionService.js → components/ScrollView/_helpers/getElementsPositionDifference.js} +0 -2
  56. package/src/lib/{hooks → components/ScrollView/_hooks}/useLoadResizeHook.js +1 -1
  57. package/src/lib/{hooks → components/ScrollView/_hooks}/useScrollPositionHook.js +1 -1
  58. package/src/lib/components/SelectField/SelectField.jsx +14 -13
  59. package/src/lib/components/SelectField/SelectField.scss +30 -30
  60. package/src/lib/components/Table/Table.scss +28 -35
  61. package/src/lib/components/Table/_settings.scss +5 -5
  62. package/src/lib/components/Tabs/Tabs.scss +21 -21
  63. package/src/lib/components/Tabs/TabsItem.jsx +4 -3
  64. package/src/lib/components/Tabs/TabsItem.scss +78 -78
  65. package/src/lib/components/Text/Text.jsx +5 -4
  66. package/src/lib/components/Text/Text.scss +12 -12
  67. package/src/lib/components/Text/{helpers → _helpers}/getRootHyphensClassName.js +1 -1
  68. package/src/lib/components/Text/{helpers → _helpers}/getRootWordWrappingClassName.js +1 -1
  69. package/src/lib/components/TextArea/TextArea.jsx +14 -13
  70. package/src/lib/components/TextArea/TextArea.scss +27 -27
  71. package/src/lib/components/TextField/TextField.jsx +16 -15
  72. package/src/lib/components/TextField/TextField.scss +28 -28
  73. package/src/lib/components/Toggle/Toggle.jsx +12 -11
  74. package/src/lib/components/Toggle/Toggle.scss +20 -20
  75. package/src/lib/components/Toolbar/Toolbar.jsx +5 -4
  76. package/src/lib/components/Toolbar/Toolbar.scss +25 -25
  77. package/src/lib/components/Toolbar/ToolbarGroup.jsx +5 -4
  78. package/src/lib/{helpers → components/_helpers}/getRootColorClassName.js +1 -1
  79. package/src/lib/{helpers → components/_helpers}/getRootSizeClassName.js +1 -1
  80. package/src/lib/{helpers → components/_helpers}/getRootValidationStateClassName.js +1 -1
  81. package/src/lib/{helpers → components/_helpers}/resolveContextOrProp.js +0 -0
  82. package/src/lib/{utils → components/_helpers}/transferProps.js +1 -1
  83. package/src/lib/foundation.scss +11 -11
  84. package/src/lib/helpers.scss +2 -2
  85. package/src/lib/index.js +3 -7
  86. package/src/lib/styles/_utilities.scss +13 -13
  87. package/src/lib/styles/elements/_code.scss +7 -7
  88. package/src/lib/styles/elements/_links.scss +8 -8
  89. package/src/lib/styles/elements/_lists.scss +3 -3
  90. package/src/lib/styles/elements/_page.scss +14 -14
  91. package/src/lib/styles/elements/_rulers.scss +6 -6
  92. package/src/lib/styles/elements/_small.scss +2 -2
  93. package/src/lib/styles/generic/_box-sizing.scss +3 -2
  94. package/src/lib/styles/generic/_forms.scss +3 -3
  95. package/src/lib/styles/generic/_reset.scss +6 -6
  96. package/src/lib/styles/generic/_shared.scss +3 -3
  97. package/src/lib/styles/helpers/_animation.scss +8 -8
  98. package/src/lib/styles/settings/_breakpoints.scss +7 -7
  99. package/src/lib/styles/settings/_escaped-characters.scss +5 -5
  100. package/src/lib/styles/settings/_form-fields.scss +24 -24
  101. package/src/lib/styles/settings/_utilities.scss +112 -100
  102. package/src/lib/styles/theme/_colors.scss +50 -50
  103. package/src/lib/styles/theme/_form-fields.scss +32 -32
  104. package/src/lib/styles/theme/_spacing.scss +11 -11
  105. package/src/lib/styles/theme/_typography.scss +12 -11
  106. package/src/lib/styles/theme-constants/_breakpoints.scss +2 -2
  107. package/src/lib/styles/theme-constants/_colors.scss +2 -2
  108. package/src/lib/styles/theme-constants/_svg.scss +1 -2
  109. package/src/lib/styles/tools/_accessibility.scss +29 -29
  110. package/src/lib/styles/tools/_breakpoint.scss +11 -14
  111. package/src/lib/styles/tools/_caret.scss +8 -8
  112. package/src/lib/styles/tools/_colors.scss +3 -3
  113. package/src/lib/styles/tools/_reset.scss +21 -21
  114. package/src/lib/styles/tools/_scrollbar.scss +4 -4
  115. package/src/lib/styles/tools/_spacing.scss +17 -21
  116. package/src/lib/styles/tools/_string.scss +9 -9
  117. package/src/lib/styles/tools/_svg.scss +13 -16
  118. package/src/lib/styles/tools/_transition.scss +42 -44
  119. package/src/lib/styles/tools/_utilities.scss +19 -19
  120. package/src/lib/styles/tools/form-fields/_box-field-elements.scss +88 -88
  121. package/src/lib/styles/tools/form-fields/_box-field-layout.scss +144 -144
  122. package/src/lib/styles/tools/form-fields/_box-field-sizes.scss +13 -15
  123. package/src/lib/styles/tools/form-fields/_foundation.scss +12 -12
  124. package/src/lib/styles/tools/form-fields/_inline-field-elements.scss +71 -71
  125. package/src/lib/styles/tools/form-fields/_inline-field-layout.scss +44 -44
  126. package/src/lib/styles/tools/form-fields/_variants.scss +104 -106
  127. package/src/lib/theme.scss +958 -954
  128. package/src/lib/utils/classNames.js +8 -0
  129. package/src/lib/components/CTA/CTA.jsx +0 -60
  130. package/src/lib/components/CTA/CTA.scss +0 -71
  131. package/src/lib/components/CTA/CTACenter.jsx +0 -27
  132. package/src/lib/components/CTA/CTAEnd.jsx +0 -27
  133. package/src/lib/components/CTA/CTAStart.jsx +0 -27
  134. package/src/lib/components/CTA/README.mdx +0 -119
  135. package/src/lib/components/CTA/index.js +0 -4
  136. package/src/lib/components/Center/Center.jsx +0 -27
  137. package/src/lib/components/Center/Center.scss +0 -7
  138. package/src/lib/components/Center/README.mdx +0 -52
  139. package/src/lib/components/Center/index.js +0 -1
@@ -1,9 +1,9 @@
1
- @use 'sass:map';
2
- @use '../theme/borders';
3
- @use '../theme/colors';
1
+ @use "sass:map";
2
+ @use "../theme/borders";
3
+ @use "../theme/colors";
4
4
 
5
5
  hr {
6
- border: 0;
7
- border-top: borders.$width solid map.get(colors.$grays, gray-200);
8
- background: none;
6
+ border: 0;
7
+ border-top: borders.$width solid map.get(colors.$grays, gray-200);
8
+ background: none;
9
9
  }
@@ -1,5 +1,5 @@
1
- @use '../theme/typography';
1
+ @use "../theme/typography";
2
2
 
3
3
  small {
4
- font-size: typography.$size-small;
4
+ font-size: typography.$size-small;
5
5
  }
@@ -2,12 +2,13 @@
2
2
  // https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/
3
3
 
4
4
  html {
5
- box-sizing: border-box;
5
+ box-sizing: border-box;
6
6
  }
7
7
 
8
8
  // stylelint-disable selector-max-universal
9
9
  *,
10
10
  *::before,
11
11
  *::after {
12
- box-sizing: inherit;
12
+ box-sizing: inherit;
13
13
  }
14
+ // stylelint-enable selector-max-universal
@@ -3,11 +3,11 @@ button:focus,
3
3
  input:focus,
4
4
  select:focus,
5
5
  textarea:focus {
6
- outline: 0;
6
+ outline: 0;
7
7
  }
8
8
 
9
9
  // Reset Chrome and Firefox behaviour which sets a `min-width: min-content;` on fieldsets.
10
10
  fieldset {
11
- min-width: 0;
12
- border: 0;
11
+ min-width: 0;
12
+ border: 0;
13
13
  }
@@ -16,8 +16,8 @@ figure,
16
16
  hr,
17
17
  fieldset,
18
18
  legend {
19
- padding: 0;
20
- margin: 0;
19
+ padding: 0;
20
+ margin: 0;
21
21
  }
22
22
 
23
23
  h1,
@@ -26,15 +26,15 @@ h3,
26
26
  h4,
27
27
  h5,
28
28
  h6 {
29
- font-size: 1rem;
29
+ font-size: 1rem;
30
30
  }
31
31
 
32
32
  li > ol,
33
33
  li > ul {
34
- margin-bottom: 0;
34
+ margin-bottom: 0;
35
35
  }
36
36
 
37
37
  table {
38
- border-collapse: collapse;
39
- border-spacing: 0;
38
+ border-collapse: collapse;
39
+ border-spacing: 0;
40
40
  }
@@ -1,4 +1,4 @@
1
- @use '../tools/spacing';
1
+ @use "../tools/spacing";
2
2
 
3
3
  // Always declare margins in the same direction.
4
4
  address,
@@ -12,7 +12,7 @@ figure,
12
12
  hr,
13
13
  table,
14
14
  fieldset {
15
- @include spacing.bottom();
15
+ @include spacing.bottom();
16
16
  }
17
17
 
18
18
  h1,
@@ -21,5 +21,5 @@ h3,
21
21
  h4,
22
22
  h5,
23
23
  h6 {
24
- @include spacing.bottom(headings);
24
+ @include spacing.bottom(headings);
25
25
  }
@@ -3,19 +3,19 @@ $_spin-duration: 2.2s;
3
3
  $_spin-easing: cubic-bezier(0.31, 0.3, 0.34, -0.17);
4
4
 
5
5
  @keyframes spin {
6
- 0% {
7
- transform: rotate(0 * 360deg);
8
- }
6
+ 0% {
7
+ transform: rotate(0 * 360deg);
8
+ }
9
9
 
10
- 100% {
11
- transform: rotate($_spin-count * 360deg);
12
- }
10
+ 100% {
11
+ transform: rotate($_spin-count * 360deg);
12
+ }
13
13
  }
14
14
 
15
15
  :global(.animation-spin-clockwise) {
16
- animation: spin $_spin-duration $_spin-easing infinite;
16
+ animation: spin $_spin-duration $_spin-easing infinite;
17
17
  }
18
18
 
19
19
  :global(.animation-spin-counterclockwise) {
20
- animation: spin $_spin-duration $_spin-easing infinite reverse;
20
+ animation: spin $_spin-duration $_spin-easing infinite reverse;
21
21
  }
@@ -1,9 +1,9 @@
1
1
  $values: (
2
- xs: 0,
3
- sm: 36em,
4
- md: 48em,
5
- lg: 66em,
6
- xl: 84em,
7
- xxl: 100em,
8
- xxxl: 120em,
2
+ xs: 0,
3
+ sm: 36em,
4
+ md: 48em,
5
+ lg: 66em,
6
+ xl: 84em,
7
+ xxl: 100em,
8
+ xxxl: 120em,
9
9
  );
@@ -1,7 +1,7 @@
1
1
  $map: (
2
- ('<', '%3c'),
3
- ('>', '%3e'),
4
- ('#', '%23'),
5
- ('(', '%28'),
6
- (')', '%29'),
2
+ ("<", "%3c"),
3
+ (">", "%3e"),
4
+ ("#", "%23"),
5
+ ("(", "%28"),
6
+ (")", "%29"),
7
7
  );
@@ -1,9 +1,9 @@
1
1
  // 1. Input `line-height` is specified in `rem` so inputs do not break when their font size gets
2
2
  // changed later.
3
3
 
4
- @use 'sass:map';
5
- @use '../theme/typography';
6
- @use '../tools/spacing';
4
+ @use "sass:map";
5
+ @use "../theme/typography";
6
+ @use "../tools/spacing";
7
7
 
8
8
  $help-text-line-height: 1.2rem;
9
9
 
@@ -24,28 +24,28 @@ $box-field-bottom-line-height: 2px;
24
24
  $inline-field-inner-gap: spacing.of(2);
25
25
 
26
26
  $themeable-variant-states: (
27
- box: (
28
- filled: (default, hover, focus, disabled),
29
- outline: (default, hover, focus, disabled),
30
- ),
31
- check: (
32
- default: (default, checked, disabled, checked-disabled),
33
- ),
34
- custom: (
35
- default: (default, disabled),
36
- ),
37
- validation: (
38
- invalid: (default, checked, disabled, checked-disabled),
39
- valid: (default, checked, disabled, checked-disabled),
40
- warning: (default, checked, disabled, checked-disabled),
41
- ),
27
+ box: (
28
+ filled: (default, hover, focus, disabled),
29
+ outline: (default, hover, focus, disabled),
30
+ ),
31
+ check: (
32
+ default: (default, checked, disabled, checked-disabled),
33
+ ),
34
+ custom: (
35
+ default: (default, disabled),
36
+ ),
37
+ validation: (
38
+ invalid: (default, checked, disabled, checked-disabled),
39
+ valid: (default, checked, disabled, checked-disabled),
40
+ warning: (default, checked, disabled, checked-disabled),
41
+ ),
42
42
  );
43
43
 
44
44
  $themeable-state-properties: (
45
- default: (color, border-color, background, check-background-color, box-shadow, surrounding-text-color),
46
- hover: (color, border-color, background, box-shadow),
47
- focus: (color, border-color, background, check-background-color, box-shadow),
48
- checked: (border-color, check-background-color),
49
- disabled: (color, border-color, background, check-background-color, box-shadow, surrounding-text-color),
50
- checked-disabled: (border-color, check-background-color),
45
+ default: (color, border-color, background, check-background-color, box-shadow, surrounding-text-color),
46
+ hover: (color, border-color, background, box-shadow),
47
+ focus: (color, border-color, background, check-background-color, box-shadow),
48
+ checked: (border-color, check-background-color),
49
+ disabled: (color, border-color, background, check-background-color, box-shadow, surrounding-text-color),
50
+ checked-disabled: (border-color, check-background-color),
51
51
  );
@@ -1,103 +1,115 @@
1
- @use 'sass:map';
2
- @use '../theme/colors';
3
- @use '../theme/spacing';
4
- @use '../theme/typography';
1
+ @use "sass:map";
2
+ @use "../theme/colors";
3
+ @use "../theme/spacing";
4
+ @use "../theme/typography";
5
5
 
6
6
  $map: (
7
- 'display': (
8
- responsive: true,
9
- property: display,
10
- class: d,
11
- values: (block, flex, inline, inline-block, inline-flex, none),
12
- ),
13
- 'align-items': (
14
- responsive: true,
15
- property: align-items,
16
- class: align-items,
17
- values: (baseline, center, flex-start, flex-end),
18
- ),
19
- 'justify-content': (
20
- responsive: true,
21
- property: justify-content,
22
- class: justify-content,
23
- values: (start, flex-start, end, flex-end, center, space-between),
24
- ),
25
- 'margin-top': (
26
- responsive: true,
27
- property: margin-top,
28
- class: mt,
29
- values: map.merge(spacing.$values, (auto: auto)),
30
- ),
31
- 'margin-right': (
32
- responsive: true,
33
- property: margin-right,
34
- class: mr,
35
- values: map.merge(spacing.$values, (auto: auto)),
36
- ),
37
- 'margin-bottom': (
38
- responsive: true,
39
- property: margin-bottom,
40
- class: mb,
41
- values: map.merge(spacing.$values, (auto: auto)),
42
- ),
43
- 'margin-left': (
44
- responsive: true,
45
- property: margin-left,
46
- class: ml,
47
- values: map.merge(spacing.$values, (auto: auto)),
48
- ),
49
- 'padding-top': (
50
- responsive: true,
51
- property: padding-top,
52
- class: pt,
53
- values: spacing.$values,
54
- ),
55
- 'padding-right': (
56
- responsive: true,
57
- property: padding-right,
58
- class: pr,
59
- values: spacing.$values,
60
- ),
61
- 'padding-bottom': (
62
- responsive: true,
63
- property: padding-bottom,
64
- class: pb,
65
- values: spacing.$values,
66
- ),
67
- 'padding-left': (
68
- responsive: true,
69
- property: padding-left,
70
- class: pl,
71
- values: spacing.$values,
72
- ),
73
- 'font-size': (
74
- responsive: false,
75
- property: font-size,
76
- class: typography-size,
77
- values: typography.$size-values,
78
- ),
79
- 'text-align': (
80
- responsive: true,
81
- property: text-align,
82
- class: text,
83
- values: left right center justify,
84
- ),
85
- 'text-color': (
86
- responsive: false,
87
- property: color,
88
- class: text,
89
- values: (
90
- primary: map.get(colors.$brand, primary),
91
- secondary: map.get(colors.$brand, secondary),
92
- success: map.get(colors.$ui, success),
93
- warning: map.get(colors.$ui, warning),
94
- danger: map.get(colors.$ui, danger),
95
- help: map.get(colors.$ui, help),
96
- info: map.get(colors.$ui, info),
97
- note: map.get(colors.$ui, note),
98
- light: colors.$light,
99
- dark: colors.$dark,
100
- muted: colors.$muted,
101
- ),
102
- ),
7
+ "display": (
8
+ responsive: true,
9
+ property: display,
10
+ class: d,
11
+ values: (block, flex, inline, inline-block, inline-flex, none),
12
+ ),
13
+ "align-items": (
14
+ responsive: true,
15
+ property: align-items,
16
+ class: align-items,
17
+ values: (center, start, flex-start, end, flex-end, baseline, stretch),
18
+ ),
19
+ "align-self": (
20
+ responsive: true,
21
+ property: align-self,
22
+ class: align-self,
23
+ values: (center, start, flex-start, end, flex-end, baseline, stretch),
24
+ ),
25
+ "justify-content": (
26
+ responsive: true,
27
+ property: justify-content,
28
+ class: justify-content,
29
+ values: (center, start, flex-start, end, flex-end, space-between),
30
+ ),
31
+ "justify-self": (
32
+ responsive: true,
33
+ property: justify-self,
34
+ class: justify-self,
35
+ values: (center, start, end, baseline, stretch),
36
+ ),
37
+ "margin-top": (
38
+ responsive: true,
39
+ property: margin-top,
40
+ class: mt,
41
+ values: map.merge(spacing.$values, (auto: auto)),
42
+ ),
43
+ "margin-right": (
44
+ responsive: true,
45
+ property: margin-right,
46
+ class: mr,
47
+ values: map.merge(spacing.$values, (auto: auto)),
48
+ ),
49
+ "margin-bottom": (
50
+ responsive: true,
51
+ property: margin-bottom,
52
+ class: mb,
53
+ values: map.merge(spacing.$values, (auto: auto)),
54
+ ),
55
+ "margin-left": (
56
+ responsive: true,
57
+ property: margin-left,
58
+ class: ml,
59
+ values: map.merge(spacing.$values, (auto: auto)),
60
+ ),
61
+ "padding-top": (
62
+ responsive: true,
63
+ property: padding-top,
64
+ class: pt,
65
+ values: spacing.$values,
66
+ ),
67
+ "padding-right": (
68
+ responsive: true,
69
+ property: padding-right,
70
+ class: pr,
71
+ values: spacing.$values,
72
+ ),
73
+ "padding-bottom": (
74
+ responsive: true,
75
+ property: padding-bottom,
76
+ class: pb,
77
+ values: spacing.$values,
78
+ ),
79
+ "padding-left": (
80
+ responsive: true,
81
+ property: padding-left,
82
+ class: pl,
83
+ values: spacing.$values,
84
+ ),
85
+ "font-size": (
86
+ responsive: false,
87
+ property: font-size,
88
+ class: typography-size,
89
+ values: typography.$size-values,
90
+ ),
91
+ "text-align": (
92
+ responsive: true,
93
+ property: text-align,
94
+ class: text,
95
+ values: left right center justify,
96
+ ),
97
+ "text-color": (
98
+ responsive: false,
99
+ property: color,
100
+ class: text,
101
+ values: (
102
+ primary: map.get(colors.$brand, primary),
103
+ secondary: map.get(colors.$brand, secondary),
104
+ success: map.get(colors.$ui, success),
105
+ warning: map.get(colors.$ui, warning),
106
+ danger: map.get(colors.$ui, danger),
107
+ help: map.get(colors.$ui, help),
108
+ info: map.get(colors.$ui, info),
109
+ note: map.get(colors.$ui, note),
110
+ light: colors.$light,
111
+ dark: colors.$dark,
112
+ muted: colors.$muted,
113
+ ),
114
+ ),
103
115
  );
@@ -1,63 +1,63 @@
1
1
  $brand: (
2
- primary: var(--rui-color-primary),
3
- primary-light: var(--rui-color-primary-light),
4
- primary-dark: var(--rui-color-primary-dark),
5
- primary-darker: var(--rui-color-primary-darker),
6
- on-primary: var(--rui-color-on-primary),
7
- secondary: var(--rui-color-secondary),
8
- secondary-light: var(--rui-color-secondary-light),
9
- secondary-dark: var(--rui-color-secondary-dark),
10
- secondary-darker: var(--rui-color-secondary-darker),
11
- on-secondary: var(--rui-color-on-secondary),
2
+ primary: var(--rui-color-primary),
3
+ primary-light: var(--rui-color-primary-light),
4
+ primary-dark: var(--rui-color-primary-dark),
5
+ primary-darker: var(--rui-color-primary-darker),
6
+ on-primary: var(--rui-color-on-primary),
7
+ secondary: var(--rui-color-secondary),
8
+ secondary-light: var(--rui-color-secondary-light),
9
+ secondary-dark: var(--rui-color-secondary-dark),
10
+ secondary-darker: var(--rui-color-secondary-darker),
11
+ on-secondary: var(--rui-color-on-secondary),
12
12
  );
13
13
 
14
14
  $ui: (
15
- success: var(--rui-color-success),
16
- success-light: var(--rui-color-success-light),
17
- success-dark: var(--rui-color-success-dark),
18
- success-darker: var(--rui-color-success-darker),
19
- on-success: var(--rui-color-on-success),
20
- warning: var(--rui-color-warning),
21
- warning-light: var(--rui-color-warning-light),
22
- warning-dark: var(--rui-color-warning-dark),
23
- warning-darker: var(--rui-color-warning-darker),
24
- on-warning: var(--rui-color-on-warning),
25
- danger: var(--rui-color-danger),
26
- danger-light: var(--rui-color-danger-light),
27
- danger-dark: var(--rui-color-danger-dark),
28
- danger-darker: var(--rui-color-danger-darker),
29
- on-danger: var(--rui-color-on-danger),
30
- help: var(--rui-color-help),
31
- help-light: var(--rui-color-help-light),
32
- help-dark: var(--rui-color-help-dark),
33
- help-darker: var(--rui-color-help-darker),
34
- on-help: var(--rui-color-on-help),
35
- info: var(--rui-color-info),
36
- info-light: var(--rui-color-info-light),
37
- info-dark: var(--rui-color-info-dark),
38
- info-darker: var(--rui-color-info-darker),
39
- on-info: var(--rui-color-on-info),
40
- note: var(--rui-color-note),
41
- note-light: var(--rui-color-note-light),
42
- note-dark: var(--rui-color-note-dark),
43
- note-darker: var(--rui-color-note-darker),
44
- on-note: var(--rui-color-on-note),
15
+ success: var(--rui-color-success),
16
+ success-light: var(--rui-color-success-light),
17
+ success-dark: var(--rui-color-success-dark),
18
+ success-darker: var(--rui-color-success-darker),
19
+ on-success: var(--rui-color-on-success),
20
+ warning: var(--rui-color-warning),
21
+ warning-light: var(--rui-color-warning-light),
22
+ warning-dark: var(--rui-color-warning-dark),
23
+ warning-darker: var(--rui-color-warning-darker),
24
+ on-warning: var(--rui-color-on-warning),
25
+ danger: var(--rui-color-danger),
26
+ danger-light: var(--rui-color-danger-light),
27
+ danger-dark: var(--rui-color-danger-dark),
28
+ danger-darker: var(--rui-color-danger-darker),
29
+ on-danger: var(--rui-color-on-danger),
30
+ help: var(--rui-color-help),
31
+ help-light: var(--rui-color-help-light),
32
+ help-dark: var(--rui-color-help-dark),
33
+ help-darker: var(--rui-color-help-darker),
34
+ on-help: var(--rui-color-on-help),
35
+ info: var(--rui-color-info),
36
+ info-light: var(--rui-color-info-light),
37
+ info-dark: var(--rui-color-info-dark),
38
+ info-darker: var(--rui-color-info-darker),
39
+ on-info: var(--rui-color-on-info),
40
+ note: var(--rui-color-note),
41
+ note-light: var(--rui-color-note-light),
42
+ note-dark: var(--rui-color-note-dark),
43
+ note-darker: var(--rui-color-note-darker),
44
+ on-note: var(--rui-color-on-note),
45
45
  );
46
46
 
47
47
  $white: var(--rui-color-white);
48
48
  $black: var(--rui-color-black);
49
49
 
50
50
  $grays: (
51
- gray-50: var(--rui-color-gray-50),
52
- gray-100: var(--rui-color-gray-100),
53
- gray-200: var(--rui-color-gray-200),
54
- gray-300: var(--rui-color-gray-300),
55
- gray-400: var(--rui-color-gray-400),
56
- gray-500: var(--rui-color-gray-500),
57
- gray-600: var(--rui-color-gray-600),
58
- gray-700: var(--rui-color-gray-700),
59
- gray-800: var(--rui-color-gray-800),
60
- gray-900: var(--rui-color-gray-900),
51
+ gray-50: var(--rui-color-gray-50),
52
+ gray-100: var(--rui-color-gray-100),
53
+ gray-200: var(--rui-color-gray-200),
54
+ gray-300: var(--rui-color-gray-300),
55
+ gray-400: var(--rui-color-gray-400),
56
+ gray-500: var(--rui-color-gray-500),
57
+ gray-600: var(--rui-color-gray-600),
58
+ gray-700: var(--rui-color-gray-700),
59
+ gray-800: var(--rui-color-gray-800),
60
+ gray-900: var(--rui-color-gray-900),
61
61
  );
62
62
 
63
63
  $light: var(--rui-color-light);
@@ -21,10 +21,10 @@ $horizontal-label-text-align: var(--rui-FormField--horizontal__label__text-align
21
21
  $horizontal-label-min-width: var(--rui-FormField--horizontal__label__min-width);
22
22
  $horizontal-label-width: var(--rui-FormField--horizontal__label__width);
23
23
  $horizontal-label-padding-y:
24
- var(
25
- --rui-FormField--horizontal__label__padding-y,
26
- calc(var(--rui-FormField--box__border-width) + var(--rui-local-padding-y))
27
- ); // 1.
24
+ var(
25
+ --rui-FormField--horizontal__label__padding-y,
26
+ calc(var(--rui-FormField--box__border-width) + var(--rui-local-padding-y))
27
+ ); // 1.
28
28
  $horizontal-label-vertical-alignment: var(--rui-FormField--horizontal__label__vertical-alignment);
29
29
  $horizontal-field-vertical-alignment: var(--rui-FormField--horizontal__field__vertical-alignment);
30
30
  $horizontal-full-width-label-width: var(--rui-FormField--horizontal--full-width__label__width);
@@ -47,24 +47,24 @@ $box-select-option-disabled-color: var(--rui-FormField--box--select__option--dis
47
47
 
48
48
  // Form fields: box field sizes
49
49
  $box-sizes: (
50
- small: (
51
- height: var(--rui-FormField--box--small__height),
52
- padding-y: var(--rui-FormField--box--small__padding-y),
53
- padding-x: var(--rui-FormField--box--small__padding-x),
54
- font-size: var(--rui-FormField--box--small__font-size),
55
- ),
56
- medium: (
57
- height: var(--rui-FormField--box--medium__height),
58
- padding-y: var(--rui-FormField--box--medium__padding-y),
59
- padding-x: var(--rui-FormField--box--medium__padding-x),
60
- font-size: var(--rui-FormField--box--medium__font-size),
61
- ),
62
- large: (
63
- height: var(--rui-FormField--box--large__height),
64
- padding-y: var(--rui-FormField--box--large__padding-y),
65
- padding-x: var(--rui-FormField--box--large__padding-x),
66
- font-size: var(--rui-FormField--box--large__font-size),
67
- ),
50
+ small: (
51
+ height: var(--rui-FormField--box--small__height),
52
+ padding-y: var(--rui-FormField--box--small__padding-y),
53
+ padding-x: var(--rui-FormField--box--small__padding-x),
54
+ font-size: var(--rui-FormField--box--small__font-size),
55
+ ),
56
+ medium: (
57
+ height: var(--rui-FormField--box--medium__height),
58
+ padding-y: var(--rui-FormField--box--medium__padding-y),
59
+ padding-x: var(--rui-FormField--box--medium__padding-x),
60
+ font-size: var(--rui-FormField--box--medium__font-size),
61
+ ),
62
+ large: (
63
+ height: var(--rui-FormField--box--large__height),
64
+ padding-y: var(--rui-FormField--box--large__padding-y),
65
+ padding-x: var(--rui-FormField--box--large__padding-x),
66
+ font-size: var(--rui-FormField--box--large__font-size),
67
+ ),
68
68
  );
69
69
 
70
70
  // Form fields: check fields
@@ -75,19 +75,19 @@ $check-tap-target-size: var(--rui-FormField--check__tap-target-size);
75
75
 
76
76
  // Form fields: check fields, component specific
77
77
  $check-input-checkbox-border-radius: var(--rui-FormField--check__input--checkbox__border-radius);
78
- $check-input-checkbox-checked-background-image:
79
- var(--rui-FormField--check__input--checkbox--checked__background-image);
78
+ $check-input-checkbox-checked-background-image: var(--rui-FormField--check__input--checkbox--checked__background-image);
80
79
  $check-input-radio-border-radius: var(--rui-FormField--check__input--radio__border-radius);
81
- $check-input-radio-checked-background-image:
82
- var(--rui-FormField--check__input--radio--checked__background-image);
80
+ $check-input-radio-checked-background-image: var(--rui-FormField--check__input--radio--checked__background-image);
83
81
  $check-input-toggle-width: var(--rui-FormField--check__input--toggle__width);
84
82
  $check-input-toggle-border-radius: var(--rui-FormField--check__input--toggle__border-radius);
85
83
  $check-input-toggle-background-size: var(--rui-FormField--check__input--toggle__background-size);
86
- $check-input-toggle-default-background-image:
87
- var(--rui-FormField--check__input--toggle--default__background-image);
84
+ $check-input-toggle-default-background-image: var(--rui-FormField--check__input--toggle--default__background-image);
88
85
  $check-input-toggle-default-background-position:
89
- var(--rui-FormField--check__input--toggle--default__background-position);
90
- $check-input-toggle-checked-background-image:
91
- var(--rui-FormField--check__input--toggle--checked__background-image);
86
+ var(
87
+ --rui-FormField--check__input--toggle--default__background-position
88
+ );
89
+ $check-input-toggle-checked-background-image: var(--rui-FormField--check__input--toggle--checked__background-image);
92
90
  $check-input-toggle-checked-background-position:
93
- var(--rui-FormField--check__input--toggle--checked__background-position);
91
+ var(
92
+ --rui-FormField--check__input--toggle--checked__background-position
93
+ );