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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (192) hide show
  1. package/CONTRIBUTING.md +7 -0
  2. package/README.md +15 -16
  3. package/dist/lib.development.js +271 -415
  4. package/dist/lib.js +1 -1
  5. package/package.json +11 -13
  6. package/src/lib/components/Alert/Alert.jsx +45 -44
  7. package/src/lib/components/Alert/Alert.scss +48 -48
  8. package/src/lib/components/Alert/README.mdx +2 -5
  9. package/src/lib/components/Alert/_settings.scss +4 -4
  10. package/src/lib/components/Alert/_theme.scss +50 -50
  11. package/src/lib/components/Alert/_tools.scss +6 -6
  12. package/src/lib/components/Badge/Badge.jsx +9 -11
  13. package/src/lib/components/Badge/Badge.scss +57 -57
  14. package/src/lib/components/Button/Button.jsx +14 -13
  15. package/src/lib/components/Button/Button.scss +2 -2
  16. package/src/lib/components/Button/README.mdx +11 -6
  17. package/src/lib/components/Button/_base.scss +69 -69
  18. package/src/lib/components/Button/_priorities.scss +49 -49
  19. package/src/lib/components/Button/_settings.scss +10 -10
  20. package/src/lib/components/Button/_theme.scss +18 -15
  21. package/src/lib/components/Button/_tools.scss +98 -100
  22. package/src/lib/components/Button/helpers/getRootLabelVisibilityClassName.js +4 -4
  23. package/src/lib/components/ButtonGroup/ButtonGroup.jsx +41 -25
  24. package/src/lib/components/ButtonGroup/ButtonGroup.scss +3 -3
  25. package/src/lib/components/ButtonGroup/README.mdx +1 -1
  26. package/src/lib/components/Card/Card.jsx +10 -9
  27. package/src/lib/components/Card/Card.scss +28 -28
  28. package/src/lib/components/Card/CardBody.jsx +17 -12
  29. package/src/lib/components/Card/CardFooter.jsx +22 -9
  30. package/src/lib/components/Card/_theme.scss +50 -50
  31. package/src/lib/components/Card/_tools.scss +6 -6
  32. package/src/lib/components/CheckboxField/CheckboxField.jsx +21 -20
  33. package/src/lib/components/CheckboxField/CheckboxField.scss +20 -20
  34. package/src/lib/components/CheckboxField/README.mdx +1 -1
  35. package/src/lib/components/FileInputField/FileInputField.jsx +16 -15
  36. package/src/lib/components/FileInputField/FileInputField.scss +19 -19
  37. package/src/lib/components/FileInputField/README.mdx +1 -1
  38. package/src/lib/components/FormLayout/FormLayout.jsx +19 -17
  39. package/src/lib/components/FormLayout/FormLayout.scss +17 -17
  40. package/src/lib/components/FormLayout/FormLayoutCustomField.jsx +18 -12
  41. package/src/lib/components/FormLayout/FormLayoutCustomField.scss +18 -18
  42. package/src/lib/components/FormLayout/README.mdx +26 -49
  43. package/src/lib/components/Grid/Grid.jsx +25 -24
  44. package/src/lib/components/Grid/Grid.scss +33 -29
  45. package/src/lib/components/Grid/GridSpan.jsx +11 -10
  46. package/src/lib/components/Grid/README.mdx +46 -20
  47. package/src/lib/components/Grid/{helpers → _helpers}/generateResponsiveCustomProperties.js +0 -2
  48. package/src/lib/components/Grid/_theme.scss +9 -9
  49. package/src/lib/components/Grid/_tools.scss +20 -20
  50. package/src/lib/components/Modal/Modal.jsx +38 -32
  51. package/src/lib/components/Modal/Modal.scss +73 -73
  52. package/src/lib/components/Modal/README.mdx +2 -5
  53. package/src/lib/components/Modal/_settings.scss +5 -5
  54. package/src/lib/components/Modal/_theme.scss +17 -17
  55. package/src/lib/components/Paper/Paper.jsx +9 -9
  56. package/src/lib/components/Paper/Paper.scss +8 -8
  57. package/src/lib/components/Popover/Popover.jsx +94 -0
  58. package/src/lib/components/Popover/Popover.scss +235 -0
  59. package/src/lib/components/Popover/PopoverWrapper.jsx +46 -0
  60. package/src/lib/components/Popover/README.mdx +333 -0
  61. package/src/lib/components/Popover/_helpers/getRootAlignmentClassName.js +13 -0
  62. package/src/lib/components/Popover/_helpers/getRootSideClassName.js +17 -0
  63. package/src/lib/components/Popover/_theme.scss +16 -0
  64. package/src/lib/components/Popover/index.js +2 -0
  65. package/src/lib/components/Radio/README.mdx +1 -1
  66. package/src/lib/components/Radio/Radio.jsx +15 -14
  67. package/src/lib/components/Radio/Radio.scss +26 -26
  68. package/src/lib/components/ScrollView/README.mdx +5 -5
  69. package/src/lib/components/ScrollView/ScrollView.jsx +22 -22
  70. package/src/lib/components/ScrollView/ScrollView.scss +113 -113
  71. package/src/lib/{services/elementPositionService.js → components/ScrollView/_helpers/getElementsPositionDifference.js} +0 -2
  72. package/src/lib/{hooks → components/ScrollView/_hooks}/useLoadResizeHook.js +1 -1
  73. package/src/lib/{hooks → components/ScrollView/_hooks}/useScrollPositionHook.js +1 -1
  74. package/src/lib/components/SelectField/README.mdx +1 -1
  75. package/src/lib/components/SelectField/SelectField.jsx +17 -16
  76. package/src/lib/components/SelectField/SelectField.scss +30 -30
  77. package/src/lib/components/Table/README.mdx +1 -1
  78. package/src/lib/components/Table/Table.jsx +3 -3
  79. package/src/lib/components/Table/Table.scss +28 -35
  80. package/src/lib/components/Table/_settings.scss +5 -5
  81. package/src/lib/components/Tabs/Tabs.jsx +4 -5
  82. package/src/lib/components/Tabs/Tabs.scss +21 -21
  83. package/src/lib/components/Tabs/TabsItem.jsx +7 -6
  84. package/src/lib/components/Tabs/TabsItem.scss +78 -78
  85. package/src/lib/components/Text/README.mdx +3 -3
  86. package/src/lib/components/Text/Text.jsx +16 -9
  87. package/src/lib/components/Text/Text.scss +23 -13
  88. package/src/lib/components/Text/_helpers/getRootClampClassName.js +11 -0
  89. package/src/lib/components/Text/{helpers → _helpers}/getRootHyphensClassName.js +1 -1
  90. package/src/lib/components/Text/{helpers → _helpers}/getRootWordWrappingClassName.js +1 -1
  91. package/src/lib/components/TextArea/README.mdx +1 -1
  92. package/src/lib/components/TextArea/TextArea.jsx +21 -17
  93. package/src/lib/components/TextArea/TextArea.scss +27 -27
  94. package/src/lib/components/TextField/README.mdx +1 -1
  95. package/src/lib/components/TextField/TextField.jsx +19 -18
  96. package/src/lib/components/TextField/TextField.scss +28 -28
  97. package/src/lib/components/TextLink/README.mdx +77 -0
  98. package/src/lib/components/TextLink/TextLink.jsx +44 -0
  99. package/src/lib/components/TextLink/TextLink.scss +11 -0
  100. package/src/lib/components/TextLink/_theme.scss +4 -0
  101. package/src/lib/components/TextLink/index.js +1 -0
  102. package/src/lib/components/Toggle/README.mdx +1 -1
  103. package/src/lib/components/Toggle/Toggle.jsx +21 -20
  104. package/src/lib/components/Toggle/Toggle.scss +20 -20
  105. package/src/lib/components/Toolbar/README.mdx +33 -5
  106. package/src/lib/components/Toolbar/Toolbar.jsx +33 -17
  107. package/src/lib/components/Toolbar/Toolbar.scss +29 -42
  108. package/src/lib/components/Toolbar/ToolbarGroup.jsx +28 -16
  109. package/src/lib/components/Toolbar/ToolbarItem.jsx +36 -10
  110. package/src/lib/{helpers → components/_helpers}/getRootColorClassName.js +1 -1
  111. package/src/lib/{helpers → components/_helpers}/getRootSizeClassName.js +1 -1
  112. package/src/lib/{helpers → components/_helpers}/getRootValidationStateClassName.js +1 -1
  113. package/src/lib/components/_helpers/isChildrenEmpty.js +3 -0
  114. package/src/lib/{helpers → components/_helpers}/resolveContextOrProp.js +0 -0
  115. package/src/lib/{utils → components/_helpers}/transferProps.js +1 -1
  116. package/src/lib/foundation.scss +11 -11
  117. package/src/lib/helpers.scss +2 -2
  118. package/src/lib/index.js +8 -17
  119. package/src/lib/provider/index.js +2 -1
  120. package/src/lib/provider/withGlobalProps.jsx +21 -0
  121. package/src/lib/styles/_utilities.scss +13 -13
  122. package/src/lib/styles/elements/_code.scss +7 -7
  123. package/src/lib/styles/elements/_links.scss +8 -8
  124. package/src/lib/styles/elements/_lists.scss +3 -3
  125. package/src/lib/styles/elements/_page.scss +14 -14
  126. package/src/lib/styles/elements/_rulers.scss +6 -6
  127. package/src/lib/styles/elements/_small.scss +2 -2
  128. package/src/lib/styles/generic/_box-sizing.scss +3 -2
  129. package/src/lib/styles/generic/_forms.scss +3 -3
  130. package/src/lib/styles/generic/_reset.scss +6 -6
  131. package/src/lib/styles/generic/_shared.scss +3 -3
  132. package/src/lib/styles/helpers/_animation.scss +8 -8
  133. package/src/lib/styles/settings/_breakpoints.scss +7 -7
  134. package/src/lib/styles/settings/_escaped-characters.scss +5 -5
  135. package/src/lib/styles/settings/_form-fields.scss +24 -24
  136. package/src/lib/styles/settings/_utilities.scss +112 -100
  137. package/src/lib/styles/theme/_colors.scss +50 -50
  138. package/src/lib/styles/theme/_form-fields.scss +32 -32
  139. package/src/lib/styles/theme/_spacing.scss +11 -11
  140. package/src/lib/styles/theme/_typography.scss +12 -11
  141. package/src/lib/styles/theme-constants/_breakpoints.scss +4 -4
  142. package/src/lib/styles/theme-constants/_colors.scss +2 -2
  143. package/src/lib/styles/theme-constants/_svg.scss +1 -2
  144. package/src/lib/styles/tools/_accessibility.scss +29 -29
  145. package/src/lib/styles/tools/_breakpoint.scss +11 -14
  146. package/src/lib/styles/tools/_caret.scss +8 -8
  147. package/src/lib/styles/tools/_colors.scss +3 -3
  148. package/src/lib/styles/tools/_reset.scss +24 -21
  149. package/src/lib/styles/tools/_scrollbar.scss +4 -4
  150. package/src/lib/styles/tools/_spacing.scss +14 -22
  151. package/src/lib/styles/tools/_string.scss +9 -9
  152. package/src/lib/styles/tools/_svg.scss +13 -16
  153. package/src/lib/styles/tools/_transition.scss +42 -44
  154. package/src/lib/styles/tools/_utilities.scss +19 -19
  155. package/src/lib/styles/tools/form-fields/_box-field-elements.scss +88 -88
  156. package/src/lib/styles/tools/form-fields/_box-field-layout.scss +147 -147
  157. package/src/lib/styles/tools/form-fields/_box-field-sizes.scss +13 -15
  158. package/src/lib/styles/tools/form-fields/_foundation.scss +12 -12
  159. package/src/lib/styles/tools/form-fields/_inline-field-elements.scss +82 -71
  160. package/src/lib/styles/tools/form-fields/_inline-field-layout.scss +88 -47
  161. package/src/lib/styles/tools/form-fields/_variants.scss +104 -106
  162. package/src/lib/theme.scss +959 -954
  163. package/src/lib/utils/classNames.js +8 -0
  164. package/src/lib/components/CTA/CTA.jsx +0 -60
  165. package/src/lib/components/CTA/CTA.scss +0 -71
  166. package/src/lib/components/CTA/CTACenter.jsx +0 -27
  167. package/src/lib/components/CTA/CTAEnd.jsx +0 -27
  168. package/src/lib/components/CTA/CTAStart.jsx +0 -27
  169. package/src/lib/components/CTA/README.mdx +0 -119
  170. package/src/lib/components/CTA/index.js +0 -4
  171. package/src/lib/components/Center/Center.jsx +0 -27
  172. package/src/lib/components/Center/Center.scss +0 -7
  173. package/src/lib/components/Center/README.mdx +0 -52
  174. package/src/lib/components/Center/index.js +0 -1
  175. package/src/lib/components/Link/Link.jsx +0 -45
  176. package/src/lib/components/Link/Link.scss +0 -11
  177. package/src/lib/components/Link/README.mdx +0 -85
  178. package/src/lib/components/Link/_theme.scss +0 -4
  179. package/src/lib/components/Link/index.js +0 -1
  180. package/src/lib/components/List/List.jsx +0 -71
  181. package/src/lib/components/List/List.scss +0 -53
  182. package/src/lib/components/List/ListItem.jsx +0 -31
  183. package/src/lib/components/List/README.mdx +0 -114
  184. package/src/lib/components/List/_theme.scss +0 -1
  185. package/src/lib/components/List/index.js +0 -2
  186. package/src/lib/components/Media/Media.jsx +0 -29
  187. package/src/lib/components/Media/Media.scss +0 -16
  188. package/src/lib/components/Media/MediaBody.jsx +0 -21
  189. package/src/lib/components/Media/MediaObject.jsx +0 -21
  190. package/src/lib/components/Media/README.mdx +0 -63
  191. package/src/lib/components/Media/index.js +0 -3
  192. package/src/lib/provider/withProviderContext.jsx +0 -32
@@ -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
+ );
@@ -1,16 +1,16 @@
1
1
  $values: (
2
- 0: var(--rui-spacing-0),
3
- 1: var(--rui-spacing-1),
4
- 2: var(--rui-spacing-2),
5
- 3: var(--rui-spacing-3),
6
- 4: var(--rui-spacing-4),
7
- 5: var(--rui-spacing-5),
8
- 6: var(--rui-spacing-6),
9
- 7: var(--rui-spacing-7),
2
+ 0: var(--rui-spacing-0),
3
+ 1: var(--rui-spacing-1),
4
+ 2: var(--rui-spacing-2),
5
+ 3: var(--rui-spacing-3),
6
+ 4: var(--rui-spacing-4),
7
+ 5: var(--rui-spacing-5),
8
+ 6: var(--rui-spacing-6),
9
+ 7: var(--rui-spacing-7),
10
10
  );
11
11
 
12
12
  $bottom: (
13
- default: var(--rui-spacing-bottom-default),
14
- headings: var(--rui-spacing-bottom-headings),
15
- layouts: var(--rui-spacing-bottom-layouts),
13
+ default: var(--rui-spacing-bottom-default),
14
+ headings: var(--rui-spacing-bottom-headings),
15
+ layouts: var(--rui-spacing-bottom-layouts),
16
16
  );
@@ -1,18 +1,18 @@
1
1
  $font-weight-values: (
2
- thin: var(--rui-typography-font-weight-thin),
3
- light: var(--rui-typography-font-weight-light),
4
- regular: var(--rui-typography-font-weight-regular),
5
- medium: var(--rui-typography-font-weight-medium),
6
- bold: var(--rui-typography-font-weight-bold),
2
+ thin: var(--rui-typography-font-weight-thin),
3
+ light: var(--rui-typography-font-weight-light),
4
+ regular: var(--rui-typography-font-weight-regular),
5
+ medium: var(--rui-typography-font-weight-medium),
6
+ bold: var(--rui-typography-font-weight-bold),
7
7
  );
8
8
 
9
9
  $size-values: (
10
- 0: var(--rui-typography-size-0),
11
- 1: var(--rui-typography-size-1),
12
- 2: var(--rui-typography-size-2),
13
- 3: var(--rui-typography-size-3),
14
- 4: var(--rui-typography-size-4),
15
- 5: var(--rui-typography-size-5),
10
+ 0: var(--rui-typography-size-0),
11
+ 1: var(--rui-typography-size-1),
12
+ 2: var(--rui-typography-size-2),
13
+ 3: var(--rui-typography-size-3),
14
+ 4: var(--rui-typography-size-4),
15
+ 5: var(--rui-typography-size-5),
16
16
  );
17
17
 
18
18
  $size-small: var(--rui-typography-size-small);
@@ -21,3 +21,4 @@ $size-smaller: var(--rui-typography-size-smaller);
21
21
  $font-family-base: var(--rui-typography-font-family-base);
22
22
  $font-size-base: var(--rui-typography-font-size-base);
23
23
  $line-height-base: var(--rui-typography-line-height-base);
24
+ $line-height-small: var(--rui-typography-line-height-small);
@@ -1,12 +1,12 @@
1
1
  // ⚠️ For `theme.scss` purposes only, do not use anywhere else.
2
2
 
3
- @use 'sass:map';
4
- @use '../settings/breakpoints';
3
+ @use "sass:map";
4
+ @use "../settings/breakpoints";
5
5
 
6
6
  $xs: map.get(breakpoints.$values, xs);
7
7
  $sm: map.get(breakpoints.$values, sm);
8
8
  $md: map.get(breakpoints.$values, md);
9
9
  $lg: map.get(breakpoints.$values, lg);
10
10
  $xl: map.get(breakpoints.$values, xl);
11
- $xxl: map.get(breakpoints.$values, xxl);
12
- $xxxl: map.get(breakpoints.$values, xxxl);
11
+ $x2l: map.get(breakpoints.$values, x2l);
12
+ $x3l: map.get(breakpoints.$values, x3l);
@@ -1,7 +1,7 @@
1
1
  // ⚠️ For `theme.scss` purposes only, do not use anywhere else.
2
2
 
3
- @use 'sass:color';
4
- @use '../tools/colors';
3
+ @use "sass:color";
4
+ @use "../tools/colors";
5
5
 
6
6
  $_gray-base-color: #fff;
7
7
  $_amount-light: 90%;
@@ -1,8 +1,7 @@
1
1
  // ⚠️ For `theme.scss` purposes only, do not use anywhere else.
2
2
 
3
- @use '../tools/svg';
3
+ @use "../tools/svg";
4
4
 
5
- // stylelint-disable function-url-quotes
6
5
  $checkbox-checked: svg.escape(url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='none' stroke='#ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/></svg>"));
7
6
  $radio-checked: svg.escape(url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><circle r='2' fill='#ffffff'/></svg>"));
8
7
  $toggle: svg.escape(url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><circle r='3' fill='#cccccc'/></svg>"));
@@ -3,49 +3,49 @@
3
3
  //
4
4
  // 2. Make tap target big enough to improve accessibility on touch screens.
5
5
 
6
- @use '../theme/accessibility' as theme;
6
+ @use "../theme/accessibility" as theme;
7
7
 
8
8
  // 1.
9
9
  @mixin hide-text() {
10
- position: absolute;
11
- width: 1px;
12
- height: 1px;
13
- padding: 0;
14
- overflow: hidden;
15
- clip: rect(0, 0, 0, 0);
16
- white-space: nowrap;
17
- border: 0;
10
+ position: absolute;
11
+ width: 1px;
12
+ height: 1px;
13
+ padding: 0;
14
+ overflow: hidden;
15
+ clip: rect(0, 0, 0, 0);
16
+ white-space: nowrap;
17
+ border: 0;
18
18
  }
19
19
 
20
20
  @mixin unhide-text() {
21
- position: unset;
22
- width: unset;
23
- height: unset;
24
- overflow: unset;
25
- clip: unset;
26
- white-space: unset;
21
+ position: unset;
22
+ width: unset;
23
+ height: unset;
24
+ overflow: unset;
25
+ clip: unset;
26
+ white-space: unset;
27
27
  }
28
28
 
29
29
  // 2.
30
30
  @mixin min-tap-target($size: theme.$tap-target-size, $center: true) {
31
- position: relative;
31
+ position: relative;
32
32
 
33
- &::before {
34
- content: '';
35
- position: absolute;
36
- width: $size;
37
- height: $size;
33
+ &::before {
34
+ content: "";
35
+ position: absolute;
36
+ width: $size;
37
+ height: $size;
38
38
 
39
- @if ($center) {
40
- top: 50%;
41
- left: 50%;
42
- transform: translate(-50%, -50%);
39
+ @if $center {
40
+ top: 50%;
41
+ left: 50%;
42
+ transform: translate(-50%, -50%);
43
+ }
43
44
  }
44
- }
45
45
  }
46
46
 
47
47
  @mixin focus-ring() {
48
- &:focus-visible {
49
- box-shadow: theme.$focus-box-shadow;
50
- }
48
+ &:focus-visible {
49
+ box-shadow: theme.$focus-box-shadow;
50
+ }
51
51
  }
@@ -1,18 +1,15 @@
1
- @use 'sass:map';
2
- @use '../settings/breakpoints';
1
+ @use "sass:map";
2
+ @use "../settings/breakpoints";
3
3
 
4
4
  @mixin up($breakpoint) {
5
- @if not map.has-key(breakpoints.$values, $breakpoint) {
6
- @error "Invalid breakpoint specified! #{$breakpoint} doesn't exist. Choose one of #{map.keys(breakpoints.$values)}";
7
- }
8
-
9
- @else if map.get(breakpoints.$values, $breakpoint) == 0 {
10
- @content;
11
- }
12
-
13
- @else {
14
- @media (min-width: map.get(breakpoints.$values, $breakpoint)) {
15
- @content;
5
+ @if not map.has-key(breakpoints.$values, $breakpoint) {
6
+ @error "Invalid breakpoint specified! #{$breakpoint} doesn't exist. "
7
+ + "Choose one of #{map.keys(breakpoints.$values)}";
8
+ } @else if map.get(breakpoints.$values, $breakpoint) == 0 {
9
+ @content;
10
+ } @else {
11
+ @media (min-width: map.get(breakpoints.$values, $breakpoint)) {
12
+ @content;
13
+ }
16
14
  }
17
- }
18
15
  }
@@ -1,14 +1,14 @@
1
1
  @mixin create($rotate: 0) {
2
- @include rotate();
2
+ @include rotate();
3
3
 
4
- display: inline-block;
5
- width: 0.4375rem;
6
- height: 0.4375rem;
7
- border-width: 2px;
8
- border-style: none solid solid none;
9
- border-color: currentColor;
4
+ display: inline-block;
5
+ width: 0.4375rem;
6
+ height: 0.4375rem;
7
+ border-width: 2px;
8
+ border-style: none solid solid none;
9
+ border-color: currentColor;
10
10
  }
11
11
 
12
12
  @mixin rotate($rotate: 0) {
13
- transform: translateY(-0.1rem) rotate($rotate + 45deg);
13
+ transform: translateY(-0.1rem) rotate($rotate + 45deg);
14
14
  }
@@ -1,9 +1,9 @@
1
- @use 'sass:color';
1
+ @use "sass:color";
2
2
 
3
3
  @function lighten-color($color, $weight) {
4
- @return color.mix(white, $color, $weight);
4
+ @return color.mix(white, $color, $weight);
5
5
  }
6
6
 
7
7
  @function darken-color($color, $weight) {
8
- @return color.mix(black, $color, $weight);
8
+ @return color.mix(black, $color, $weight);
9
9
  }
@@ -1,30 +1,33 @@
1
1
  @mixin button() {
2
- appearance: none;
3
- display: inline-flex;
4
- flex: none;
5
- align-items: center;
6
- justify-content: center;
7
- padding: 0;
8
- border: 0;
9
- border-radius: 0;
10
- background: none;
11
- box-shadow: none;
12
- cursor: pointer;
2
+ appearance: none;
3
+ display: inline-flex;
4
+ flex: none;
5
+ align-items: center;
6
+ justify-content: center;
7
+ padding: 0;
8
+ border: 0;
9
+ border-radius: 0;
10
+ background: none;
11
+ box-shadow: none;
12
+ cursor: pointer;
13
13
  }
14
14
 
15
15
  @mixin link() {
16
- text-decoration: none;
17
- color: inherit;
18
-
19
- &:hover,
20
- &:focus {
21
16
  text-decoration: none;
22
- outline: none;
23
- }
17
+ color: inherit;
18
+
19
+ &:hover,
20
+ &:focus {
21
+ text-decoration: none;
22
+ outline: none;
23
+ }
24
24
  }
25
25
 
26
26
  @mixin list() {
27
- padding-left: 0;
28
- margin-bottom: 0;
29
- list-style: none;
27
+ padding-left: 0;
28
+ list-style: none;
29
+
30
+ &:not(:last-child) {
31
+ margin-bottom: 0;
32
+ }
30
33
  }
@@ -1,7 +1,7 @@
1
1
  @mixin hide() {
2
- scrollbar-width: none;
2
+ scrollbar-width: none;
3
3
 
4
- &::-webkit-scrollbar {
5
- display: none;
6
- }
4
+ &::-webkit-scrollbar {
5
+ display: none;
6
+ }
7
7
  }
@@ -1,31 +1,23 @@
1
- @use 'sass:map';
2
- @use '../theme/spacing';
1
+ @use "sass:map";
2
+ @use "../theme/spacing";
3
3
 
4
4
  @function of($value) {
5
- @if ($value % 1 != 0) {
6
- @error 'Only whole numbers can be used for spacing, #{$value} given.';
7
- }
8
-
9
- @else {
10
- @if (map.has-key(spacing.$values, $value)) {
11
- @return map.get(spacing.$values, $value);
5
+ @if $value % 1 != 0 {
6
+ @error "Only whole numbers can be used for spacing, #{$value} given.";
7
+ } @else {
8
+ @if map.has-key(spacing.$values, $value) {
9
+ @return map.get(spacing.$values, $value);
10
+ }
12
11
  }
13
- }
14
12
  }
15
13
 
16
- @mixin bottom($category: default, $compensation: null) {
17
- @if (not map.has-key(spacing.$bottom, $category)) {
18
- @error "Invalid spacing category specified! #{$category} doesn't exist. "
19
- + "Choose one of #{map.keys(spacing.$bottom)}.";
20
- }
21
-
22
- &:not(:last-child) {
23
- @if ($compensation != null) {
24
- margin-bottom: calc(#{map.get(spacing.$bottom, $category)} - #{$compensation});
14
+ @mixin bottom($category: default) {
15
+ @if not map.has-key(spacing.$bottom, $category) {
16
+ @error "Invalid spacing category specified! #{$category} doesn't exist. "
17
+ + "Choose one of #{map.keys(spacing.$bottom)}.";
25
18
  }
26
19
 
27
- @else {
28
- margin-bottom: map.get(spacing.$bottom, $category);
20
+ &:not(:last-child) {
21
+ margin-bottom: map.get(spacing.$bottom, $category);
29
22
  }
30
- }
31
23
  }
@@ -1,15 +1,15 @@
1
1
  // Author: Hugo Giraudel
2
2
 
3
- @use 'sass:string';
3
+ @use "sass:string";
4
4
 
5
- @function replace($string, $search, $replace: '') {
6
- $index: string.index($string, $search);
5
+ @function replace($string, $search, $replace: "") {
6
+ $index: string.index($string, $search);
7
7
 
8
- @if $index {
9
- @return string.slice($string, 1, $index - 1)
10
- + $replace
11
- + replace(string.slice($string, $index + string.length($search)), $search, $replace);
12
- }
8
+ @if $index {
9
+ @return string.slice($string, 1, $index - 1)
10
+ + $replace
11
+ + replace(string.slice($string, $index + string.length($search)), $search, $replace);
12
+ }
13
13
 
14
- @return $string;
14
+ @return $string;
15
15
  }
@@ -2,24 +2,21 @@
2
2
  //
3
3
  // 1. Do not escape the url brackets.
4
4
 
5
- @use 'sass:string';
6
- @use '../settings/escaped-characters';
7
- @use 'string' as rui-string;
5
+ @use "sass:string";
6
+ @use "../settings/escaped-characters";
7
+ @use "string" as rui-string;
8
8
 
9
9
  @function escape($string) {
10
- @if string.index($string, 'data:image/svg+xml') {
11
- @each $char, $encoded in escaped-characters.$map {
12
-
13
- // 1.
14
- @if string.index($string, 'url(') == 1 {
15
- $string: url('#{rui-string.replace(string.slice($string, 6, -3), $char, $encoded)}');
16
- }
17
-
18
- @else {
19
- $string: rui-string.replace($string, $char, $encoded);
20
- }
10
+ @if string.index($string, "data:image/svg+xml") {
11
+ @each $char, $encoded in escaped-characters.$map {
12
+ // 1.
13
+ @if string.index($string, "url(") == 1 {
14
+ $string: url("#{rui-string.replace(string.slice($string, 6, -3), $char, $encoded)}");
15
+ } @else {
16
+ $string: rui-string.replace($string, $char, $encoded);
17
+ }
18
+ }
21
19
  }
22
- }
23
20
 
24
- @return $string;
21
+ @return $string;
25
22
  }