@react-ui-org/react-ui 0.44.0 → 0.46.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (174) hide show
  1. package/CONTRIBUTING.md +7 -0
  2. package/dist/lib.development.js +209 -305
  3. package/dist/lib.js +1 -1
  4. package/package.json +10 -13
  5. package/src/lib/components/Alert/Alert.jsx +4 -3
  6. package/src/lib/components/Alert/Alert.scss +48 -48
  7. package/src/lib/components/Alert/_settings.scss +4 -4
  8. package/src/lib/components/Alert/_theme.scss +50 -50
  9. package/src/lib/components/Alert/_tools.scss +6 -6
  10. package/src/lib/components/Badge/Badge.jsx +6 -8
  11. package/src/lib/components/Badge/Badge.scss +57 -57
  12. package/src/lib/components/Button/Button.jsx +10 -9
  13. package/src/lib/components/Button/Button.scss +2 -2
  14. package/src/lib/components/Button/README.mdx +8 -3
  15. package/src/lib/components/Button/_base.scss +65 -65
  16. package/src/lib/components/Button/_priorities.scss +49 -49
  17. package/src/lib/components/Button/_settings.scss +10 -10
  18. package/src/lib/components/Button/_theme.scss +18 -15
  19. package/src/lib/components/Button/_tools.scss +98 -100
  20. package/src/lib/components/ButtonGroup/ButtonGroup.jsx +31 -22
  21. package/src/lib/components/ButtonGroup/ButtonGroup.scss +3 -3
  22. package/src/lib/components/ButtonGroup/README.mdx +4 -4
  23. package/src/lib/components/Card/Card.jsx +7 -6
  24. package/src/lib/components/Card/Card.scss +28 -28
  25. package/src/lib/components/Card/CardBody.jsx +5 -11
  26. package/src/lib/components/Card/CardFooter.jsx +10 -5
  27. package/src/lib/components/Card/README.mdx +2 -2
  28. package/src/lib/components/Card/_theme.scss +50 -50
  29. package/src/lib/components/Card/_tools.scss +6 -6
  30. package/src/lib/components/CheckboxField/CheckboxField.jsx +18 -17
  31. package/src/lib/components/CheckboxField/CheckboxField.scss +20 -20
  32. package/src/lib/components/CheckboxField/README.mdx +3 -3
  33. package/src/lib/components/FileInputField/FileInputField.jsx +13 -12
  34. package/src/lib/components/FileInputField/FileInputField.scss +19 -19
  35. package/src/lib/components/FileInputField/README.mdx +1 -1
  36. package/src/lib/components/FormLayout/FormLayout.jsx +16 -14
  37. package/src/lib/components/FormLayout/FormLayout.scss +17 -17
  38. package/src/lib/components/FormLayout/FormLayoutCustomField.jsx +15 -9
  39. package/src/lib/components/FormLayout/FormLayoutCustomField.scss +18 -18
  40. package/src/lib/components/FormLayout/README.mdx +27 -49
  41. package/src/lib/components/Grid/Grid.jsx +4 -3
  42. package/src/lib/components/Grid/Grid.scss +32 -23
  43. package/src/lib/components/Grid/GridSpan.jsx +4 -3
  44. package/src/lib/components/Grid/{helpers → _helpers}/generateResponsiveCustomProperties.js +0 -2
  45. package/src/lib/components/Grid/_theme.scss +9 -9
  46. package/src/lib/components/Grid/_tools.scss +20 -20
  47. package/src/lib/components/List/List.jsx +14 -12
  48. package/src/lib/components/List/List.scss +21 -21
  49. package/src/lib/components/List/ListItem.jsx +3 -2
  50. package/src/lib/components/List/README.mdx +1 -1
  51. package/src/lib/components/Media/Media.jsx +12 -5
  52. package/src/lib/components/Media/Media.scss +6 -6
  53. package/src/lib/components/Media/MediaBody.jsx +18 -7
  54. package/src/lib/components/Media/MediaObject.jsx +18 -7
  55. package/src/lib/components/Modal/Modal.jsx +8 -6
  56. package/src/lib/components/Modal/Modal.scss +73 -73
  57. package/src/lib/components/Modal/README.mdx +2 -2
  58. package/src/lib/components/Modal/_settings.scss +5 -5
  59. package/src/lib/components/Modal/_theme.scss +17 -17
  60. package/src/lib/components/Paper/Paper.jsx +6 -6
  61. package/src/lib/components/Paper/Paper.scss +8 -8
  62. package/src/lib/components/Paper/README.mdx +1 -1
  63. package/src/lib/components/Radio/README.mdx +4 -4
  64. package/src/lib/components/Radio/Radio.jsx +12 -11
  65. package/src/lib/components/Radio/Radio.scss +26 -26
  66. package/src/lib/components/ScrollView/README.mdx +4 -1
  67. package/src/lib/components/ScrollView/ScrollView.jsx +11 -9
  68. package/src/lib/components/ScrollView/ScrollView.scss +113 -113
  69. package/src/lib/{services/elementPositionService.js → components/ScrollView/_helpers/getElementsPositionDifference.js} +0 -2
  70. package/src/lib/{hooks → components/ScrollView/_hooks}/useLoadResizeHook.js +1 -1
  71. package/src/lib/{hooks → components/ScrollView/_hooks}/useScrollPositionHook.js +1 -1
  72. package/src/lib/components/SelectField/README.mdx +4 -4
  73. package/src/lib/components/SelectField/SelectField.jsx +14 -13
  74. package/src/lib/components/SelectField/SelectField.scss +30 -30
  75. package/src/lib/components/Table/README.mdx +3 -3
  76. package/src/lib/components/Table/Table.scss +28 -35
  77. package/src/lib/components/Table/_settings.scss +5 -5
  78. package/src/lib/components/Tabs/README.mdx +1 -1
  79. package/src/lib/components/Tabs/Tabs.jsx +1 -2
  80. package/src/lib/components/Tabs/Tabs.scss +21 -21
  81. package/src/lib/components/Tabs/TabsItem.jsx +4 -3
  82. package/src/lib/components/Tabs/TabsItem.scss +78 -78
  83. package/src/lib/components/Text/README.mdx +1 -1
  84. package/src/lib/components/Text/Text.jsx +13 -6
  85. package/src/lib/components/Text/Text.scss +23 -13
  86. package/src/lib/components/Text/_helpers/getRootClampClassName.js +11 -0
  87. package/src/lib/components/Text/{helpers → _helpers}/getRootHyphensClassName.js +1 -1
  88. package/src/lib/components/Text/{helpers → _helpers}/getRootWordWrappingClassName.js +1 -1
  89. package/src/lib/components/TextArea/README.mdx +1 -1
  90. package/src/lib/components/TextArea/TextArea.jsx +18 -14
  91. package/src/lib/components/TextArea/TextArea.scss +27 -27
  92. package/src/lib/components/TextField/README.mdx +1 -1
  93. package/src/lib/components/TextField/TextField.jsx +16 -14
  94. package/src/lib/components/TextField/TextField.scss +28 -28
  95. package/src/lib/components/TextLink/README.mdx +77 -0
  96. package/src/lib/components/{Link/Link.jsx → TextLink/TextLink.jsx} +12 -13
  97. package/src/lib/components/TextLink/TextLink.scss +11 -0
  98. package/src/lib/components/TextLink/_theme.scss +4 -0
  99. package/src/lib/components/TextLink/index.js +1 -0
  100. package/src/lib/components/Toggle/README.mdx +3 -3
  101. package/src/lib/components/Toggle/Toggle.jsx +18 -17
  102. package/src/lib/components/Toggle/Toggle.scss +20 -20
  103. package/src/lib/components/Toolbar/README.mdx +19 -3
  104. package/src/lib/components/Toolbar/Toolbar.jsx +23 -14
  105. package/src/lib/components/Toolbar/Toolbar.scss +35 -30
  106. package/src/lib/components/Toolbar/ToolbarGroup.jsx +18 -13
  107. package/src/lib/components/Toolbar/ToolbarItem.jsx +26 -7
  108. package/src/lib/{helpers → components/_helpers}/getRootColorClassName.js +1 -1
  109. package/src/lib/{helpers → components/_helpers}/getRootSizeClassName.js +1 -1
  110. package/src/lib/{helpers → components/_helpers}/getRootValidationStateClassName.js +1 -1
  111. package/src/lib/components/_helpers/isChildrenEmpty.js +3 -0
  112. package/src/lib/{helpers → components/_helpers}/resolveContextOrProp.js +0 -0
  113. package/src/lib/{utils → components/_helpers}/transferProps.js +1 -1
  114. package/src/lib/foundation.scss +11 -11
  115. package/src/lib/helpers.scss +2 -2
  116. package/src/lib/index.js +4 -8
  117. package/src/lib/styles/_utilities.scss +13 -13
  118. package/src/lib/styles/elements/_code.scss +7 -7
  119. package/src/lib/styles/elements/_links.scss +8 -8
  120. package/src/lib/styles/elements/_lists.scss +3 -3
  121. package/src/lib/styles/elements/_page.scss +14 -14
  122. package/src/lib/styles/elements/_rulers.scss +6 -6
  123. package/src/lib/styles/elements/_small.scss +2 -2
  124. package/src/lib/styles/generic/_box-sizing.scss +3 -2
  125. package/src/lib/styles/generic/_forms.scss +3 -3
  126. package/src/lib/styles/generic/_reset.scss +6 -6
  127. package/src/lib/styles/generic/_shared.scss +3 -3
  128. package/src/lib/styles/helpers/_animation.scss +8 -8
  129. package/src/lib/styles/settings/_breakpoints.scss +7 -7
  130. package/src/lib/styles/settings/_escaped-characters.scss +5 -5
  131. package/src/lib/styles/settings/_form-fields.scss +24 -24
  132. package/src/lib/styles/settings/_utilities.scss +112 -100
  133. package/src/lib/styles/theme/_colors.scss +50 -50
  134. package/src/lib/styles/theme/_form-fields.scss +32 -32
  135. package/src/lib/styles/theme/_spacing.scss +11 -11
  136. package/src/lib/styles/theme/_typography.scss +12 -11
  137. package/src/lib/styles/theme-constants/_breakpoints.scss +2 -2
  138. package/src/lib/styles/theme-constants/_colors.scss +2 -2
  139. package/src/lib/styles/theme-constants/_svg.scss +1 -2
  140. package/src/lib/styles/tools/_accessibility.scss +29 -29
  141. package/src/lib/styles/tools/_breakpoint.scss +11 -14
  142. package/src/lib/styles/tools/_caret.scss +8 -8
  143. package/src/lib/styles/tools/_colors.scss +3 -3
  144. package/src/lib/styles/tools/_reset.scss +24 -21
  145. package/src/lib/styles/tools/_scrollbar.scss +4 -4
  146. package/src/lib/styles/tools/_spacing.scss +17 -21
  147. package/src/lib/styles/tools/_string.scss +9 -9
  148. package/src/lib/styles/tools/_svg.scss +13 -16
  149. package/src/lib/styles/tools/_transition.scss +42 -44
  150. package/src/lib/styles/tools/_utilities.scss +19 -19
  151. package/src/lib/styles/tools/form-fields/_box-field-elements.scss +88 -88
  152. package/src/lib/styles/tools/form-fields/_box-field-layout.scss +147 -147
  153. package/src/lib/styles/tools/form-fields/_box-field-sizes.scss +13 -15
  154. package/src/lib/styles/tools/form-fields/_foundation.scss +12 -12
  155. package/src/lib/styles/tools/form-fields/_inline-field-elements.scss +82 -71
  156. package/src/lib/styles/tools/form-fields/_inline-field-layout.scss +88 -47
  157. package/src/lib/styles/tools/form-fields/_variants.scss +104 -106
  158. package/src/lib/theme.scss +958 -954
  159. package/src/lib/utils/classNames.js +8 -0
  160. package/src/lib/components/CTA/CTA.jsx +0 -60
  161. package/src/lib/components/CTA/CTA.scss +0 -71
  162. package/src/lib/components/CTA/CTACenter.jsx +0 -27
  163. package/src/lib/components/CTA/CTAEnd.jsx +0 -27
  164. package/src/lib/components/CTA/CTAStart.jsx +0 -27
  165. package/src/lib/components/CTA/README.mdx +0 -119
  166. package/src/lib/components/CTA/index.js +0 -4
  167. package/src/lib/components/Center/Center.jsx +0 -27
  168. package/src/lib/components/Center/Center.scss +0 -7
  169. package/src/lib/components/Center/README.mdx +0 -52
  170. package/src/lib/components/Center/index.js +0 -1
  171. package/src/lib/components/Link/Link.scss +0 -11
  172. package/src/lib/components/Link/README.mdx +0 -85
  173. package/src/lib/components/Link/_theme.scss +0 -4
  174. package/src/lib/components/Link/index.js +0 -1
@@ -1,20 +1,20 @@
1
- @use '../theme/page';
2
- @use '../theme/typography';
1
+ @use "../theme/page";
2
+ @use "../theme/typography";
3
3
 
4
4
  html {
5
- width: 100%;
6
- height: 100%;
7
- -moz-osx-font-smoothing: grayscale;
8
- -webkit-font-smoothing: antialiased;
9
- font-size: typography.$font-size-base;
10
- line-height: typography.$line-height-base;
11
- font-family: typography.$font-family-base;
5
+ width: 100%;
6
+ height: 100%;
7
+ -moz-osx-font-smoothing: grayscale;
8
+ -webkit-font-smoothing: antialiased;
9
+ font-size: typography.$font-size-base;
10
+ line-height: typography.$line-height-base;
11
+ font-family: typography.$font-family-base;
12
12
  }
13
13
 
14
14
  body {
15
- width: 100%;
16
- min-height: 100%;
17
- font-size: 1em;
18
- color: page.$color;
19
- background-color: page.$background;
15
+ width: 100%;
16
+ min-height: 100%;
17
+ font-size: 1em;
18
+ color: page.$color;
19
+ background-color: page.$background;
20
20
  }
@@ -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);