@muraldevkit/ui-toolkit 2.4.0 → 2.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/dist/components/button/MrlAnimatedIconButton/MrlAnimatedIconButton.d.ts +1 -1
  2. package/dist/components/button/MrlButton/MrlButton.d.ts +1 -1
  3. package/dist/components/button/MrlIconButton/MrlIconButton.d.ts +1 -1
  4. package/dist/components/table/MrlSmartTable/MrlSmartTable.d.ts +30 -0
  5. package/dist/components/table/utils.d.ts +3 -3
  6. package/dist/index.js +1 -1
  7. package/dist/styles/MrlBlockNotification/global.scss +0 -11
  8. package/dist/styles/MrlBlockNotification/mixins.scss +0 -28
  9. package/dist/styles/MrlBlockNotification/module.scss +0 -25
  10. package/dist/styles/MrlBlockNotification/variables.scss +0 -10
  11. package/dist/styles/MrlButton/global.scss +0 -20
  12. package/dist/styles/MrlCheckbox/global.scss +0 -7
  13. package/dist/styles/MrlCheckbox/module.scss +0 -6
  14. package/dist/styles/MrlCheckbox/variables.scss +1 -7
  15. package/dist/styles/MrlCheckboxStandalone/global.scss +0 -13
  16. package/dist/styles/MrlCheckboxStandalone/module.scss +0 -14
  17. package/dist/styles/MrlCheckboxStandalone/variables.scss +1 -15
  18. package/dist/styles/MrlDivider/module.scss +0 -13
  19. package/dist/styles/MrlFieldset/module.scss +0 -5
  20. package/dist/styles/MrlLabel/module.scss +0 -11
  21. package/dist/styles/MrlLabel/variables.scss +0 -9
  22. package/dist/styles/MrlLabelWithDescription/module.scss +0 -17
  23. package/dist/styles/MrlLabelWithDescription/variables.scss +0 -7
  24. package/dist/styles/MrlLink/module.scss +0 -26
  25. package/dist/styles/MrlModal/global.scss +0 -8
  26. package/dist/styles/MrlModal/mixins.scss +0 -23
  27. package/dist/styles/MrlModal/module.scss +0 -17
  28. package/dist/styles/MrlModal/variables.scss +0 -10
  29. package/dist/styles/MrlModalContent/module.scss +0 -5
  30. package/dist/styles/MrlModalFooter/global.scss +0 -2
  31. package/dist/styles/MrlModalFooter/module.scss +0 -11
  32. package/dist/styles/MrlModalFooter/variables.scss +0 -5
  33. package/dist/styles/MrlModalHeader/module.scss +0 -7
  34. package/dist/styles/MrlModalHeaderNative/module.scss +0 -10
  35. package/dist/styles/MrlRadioButtonStandalone/global.scss +0 -6
  36. package/dist/styles/MrlRadioButtonStandalone/module.scss +0 -9
  37. package/dist/styles/MrlRadioButtonStandalone/variables.scss +0 -8
  38. package/dist/styles/MrlSelect/module.scss +0 -43
  39. package/dist/styles/MrlSelect/variables.scss +1 -6
  40. package/dist/styles/MrlSelectItem/module.scss +0 -23
  41. package/dist/styles/MrlSelectItem/variables.scss +0 -10
  42. package/dist/styles/MrlSelectMenu/module.scss +1 -17
  43. package/dist/styles/MrlSelectMenu/variables.scss +0 -5
  44. package/dist/styles/MrlSmartTable/module.scss +1 -17
  45. package/dist/styles/MrlSvg/module.scss +0 -11
  46. package/dist/styles/MrlSvgAnimate/module.scss +0 -9
  47. package/dist/styles/MrlTable/module.scss +0 -5
  48. package/dist/styles/MrlTableBody/module.scss +0 -6
  49. package/dist/styles/MrlTableCell/module.scss +0 -5
  50. package/dist/styles/MrlTableColumn/module.scss +1 -11
  51. package/dist/styles/MrlTableEmptyState/module.scss +0 -5
  52. package/dist/styles/MrlTableHeader/module.scss +0 -5
  53. package/dist/styles/MrlTableRow/module.scss +0 -6
  54. package/dist/styles/MrlText/module.scss +0 -6
  55. package/dist/styles/MrlText/variables.scss +0 -8
  56. package/dist/styles/MrlTextHeading/module.scss +0 -14
  57. package/dist/styles/MrlTextHeading/variables.scss +0 -19
  58. package/dist/styles/MrlTextInput/module.scss +0 -29
  59. package/dist/styles/MrlTextInput/variables.scss +0 -1
  60. package/dist/styles/MrlTextarea/global.scss +1 -8
  61. package/dist/styles/MrlTextarea/module.scss +1 -8
  62. package/dist/styles/MrlTooltipContent/global.scss +1 -33
  63. package/dist/styles/MrlTooltipContent/variables.scss +0 -5
  64. package/dist/styles/button/global.scss +0 -29
  65. package/dist/styles/button/mixins.scss +0 -31
  66. package/dist/styles/button/variables.scss +2 -61
  67. package/dist/styles/divider/mixins.scss +0 -41
  68. package/dist/styles/divider/variables.scss +0 -12
  69. package/dist/styles/form/global.scss +0 -56
  70. package/dist/styles/form/variables.scss +0 -22
  71. package/dist/styles/grid/variables.scss +0 -11
  72. package/dist/styles/modal/variables.scss +0 -14
  73. package/dist/styles/svg/variables.scss +0 -8
  74. package/dist/styles/table/global.scss +0 -9
  75. package/dist/styles/table/variables.scss +0 -8
  76. package/dist/styles/tooltip/mixins.scss +0 -11
  77. package/package.json +1 -1
@@ -1,27 +1,16 @@
1
- ////
2
- /// Block Notification component styles
3
- /// @group block-notification
4
- ////
5
1
 
6
2
  @use '~@muraldevkit/ds-foundation/src/styles/_mixins' as *;
7
3
  @use '~@muraldevkit/ds-foundation/src/styles/contextual-variables/z-index' as *;
8
-
9
4
  @use './MrlBlockNotification.mixins.scss' as *;
10
-
11
- // Transition states were not working as expected when migrated to
12
- // modules, so we are using global styles for now.
13
5
  .mrl-blockNotification {
14
6
  border-radius: var(--mrl-blockNotification-radius);
15
-
16
7
  &.mrl-is--transitioning {
17
8
  @include mrl-block-notification-fade-out;
18
9
  }
19
-
20
10
  .mrl-is--closed {
21
11
  display: none;
22
12
  }
23
13
  }
24
-
25
14
  @media (prefers-reduced-motion: no-preference) {
26
15
  .mrl-blockNotification.mrl-is--transitioning {
27
16
  @include mrl-block-notification-slide-out;
@@ -1,12 +1,4 @@
1
- ////
2
- /// Block notification component mixins
3
- /// @group block-notification
4
- ////
5
1
 
6
- /// CSS transition setup for block notification animations.
7
- /// There are no configurations for this mixin
8
- ///
9
- /// @example @include mrl-block-notification-animate-in;
10
2
  @mixin mrl-block-notification-animate-in() {
11
3
  margin-top: 0;
12
4
  opacity: 1;
@@ -14,35 +6,15 @@
14
6
  transition-property: margin opacity;
15
7
  transition-timing-function: var(--mrl-timing-m1);
16
8
  }
17
-
18
- /// CSS to fade the block notification out.
19
- /// There are no configurations for this mixin
20
- ///
21
- /// @example @include mrl-block-notification-fade-out;
22
9
  @mixin mrl-block-notification-fade-in() {
23
10
  opacity: 0;
24
11
  }
25
-
26
- /// CSS to slide block notification out
27
- /// There are no configurations for this mixin
28
- ///
29
- /// @example @include mrl-block-notification-slide-out;
30
12
  @mixin mrl-block-notification-slide-in() {
31
13
  margin-top: calc(var(--mrl-blockNotification-height));
32
14
  }
33
-
34
- /// CSS to fade the block notification out.
35
- /// There are no configurations for this mixin
36
- ///
37
- /// @example @include mrl-block-notification-fade-out;
38
15
  @mixin mrl-block-notification-fade-out() {
39
16
  opacity: 0;
40
17
  }
41
-
42
- /// CSS to slide block notification out
43
- /// There are no configurations for this mixin
44
- ///
45
- /// @example @include mrl-block-notification-slide-out;
46
18
  @mixin mrl-block-notification-slide-out() {
47
19
  margin-top: calc(var(--mrl-blockNotification-height) * -1);
48
20
  }
@@ -1,20 +1,12 @@
1
- ////
2
- /// Block Notification component styles
3
- /// @group block-notification
4
- ////
5
1
 
6
2
  @use '~@muraldevkit/ds-foundation/src/styles/_mixins' as *;
7
3
  @use '~@muraldevkit/ds-foundation/src/styles/contextual-variables/z-index' as *;
8
4
  @use '~@muraldevkit/ds-foundation/src/styles/skeletons/button' as *;
9
-
10
5
  @use './MrlBlockNotification.variables.scss';
11
6
  @use './MrlBlockNotification.mixins.scss' as *;
12
-
13
7
  $mrl-notification-close-inset: var(--mrl-spacing-02);
14
-
15
8
  .mrl-blockNotification {
16
9
  @include mrl-block-notification-animate-in;
17
-
18
10
  align-items: center;
19
11
  background: var(--mrl-blockNotification-background);
20
12
  color: var(--mrl-blockNotification-color);
@@ -26,58 +18,41 @@ $mrl-notification-close-inset: var(--mrl-spacing-02);
26
18
  padding: var(--mrl-blockNotification-inset-spacing);
27
19
  position: relative;
28
20
  width: 100%;
29
-
30
21
  svg {
31
22
  color: var(--mrl-blockNotification-color);
32
23
  }
33
24
  }
34
-
35
25
  .mrl-blockNotification--dismissible {
36
26
  padding-right: calc(
37
27
  #{$mrl-notification-close-inset} + var(--mrl-blockNotification-inline-spacing) + var(--mrl-spacing-08)
38
28
  );
39
29
  position: relative;
40
30
  }
41
-
42
31
  .mrl-blockNotification-close-wrapper {
43
32
  position: absolute;
44
33
  right: $mrl-notification-close-inset;
45
34
  top: 50%;
46
35
  transform: translateY(-50%);
47
36
  }
48
-
49
37
  .mrl-blockNotification-message {
50
38
  align-items: center;
51
-
52
39
  h2,
53
40
  p {
54
41
  display: contents;
55
42
  }
56
-
57
43
  h2::after {
58
- // Adds a space after the header. display: contents allows text to flow naturally but you cannot apply margin or padding
59
- // that would normally be needed on the element. So this will ensure proper spacing for the text after the header.
60
44
  content: '\00a0';
61
45
  display: contents;
62
46
  }
63
-
64
47
  p {
65
48
  @include mrl-text-static('small');
66
49
  }
67
50
  }
68
-
69
51
  .mrl-blockNotification-heading {
70
52
  color: var(--mrl-blockNotification-heading-color);
71
53
  display: inline;
72
54
  margin-right: var(--mrl-blockNotification-inline-spacing-message);
73
55
  }
74
-
75
- /**
76
- * @todo v2 - we should apply a class to the mrl-svg element instead
77
- * of targeting the element. However, the class should be `mrl-blockNotification-icon`
78
- * so we would want to rename the existing class to `mrl-blockNotification-iconWrapper`
79
- * which is a breaking change. Also we could explore if we need this div at all?
80
- **/
81
56
  .mrl-blockNotification-icon {
82
57
  display: flex;
83
58
  min-width: fit-content;
@@ -1,7 +1,3 @@
1
- ////
2
- /// Block Notification component styles
3
- /// @group block-notification
4
- ////
5
1
 
6
2
  .mrl-blockNotification {
7
3
  --mrl-blockNotification-background: var(--mrl-color-background-info);
@@ -15,27 +11,21 @@
15
11
  --mrl-blockNotification-radius: 0;
16
12
  --mrl-blockNotification-svg-color: var(--mrl-color-text-inverse);
17
13
  }
18
-
19
- // Kind variants
20
14
  .mrl-blockNotification[data-kind='error'] {
21
15
  --mrl-blockNotification-background: var(--mrl-color-background-error);
22
16
  }
23
-
24
17
  .mrl-blockNotification[data-kind='success'] {
25
18
  --mrl-blockNotification-background: var(--mrl-color-background-success);
26
19
  }
27
-
28
20
  .mrl-blockNotification[data-kind='warning'] {
29
21
  --mrl-blockNotification-background: var(--mrl-color-background-warning);
30
22
  --mrl-blockNotification-color: rgba(var(--mrl-gray-90), 1);
31
23
  --mrl-blockNotification-heading-color: rgba(var(--mrl-black), 1);
32
24
  }
33
-
34
25
  .mrl-blockNotification[data-kind='general'],
35
26
  .mrl-blockNotification[data-kind='private'] {
36
27
  --mrl-blockNotification-background: var(--mrl-blockNotification-background-general);
37
28
  }
38
-
39
29
  .mrl-blockNotification[data-scope='component'] {
40
30
  --mrl-blockNotification-radius: var(--mrl-radii-01);
41
31
  }
@@ -1,17 +1,11 @@
1
- ////
2
- /// Shadow Button component styles
3
- /// @group button
4
- ////
5
1
 
6
2
  @use '~@muraldevkit/ds-foundation/src/styles/_mixins' as *;
7
3
  @use '~@muraldevkit/ds-foundation/src/styles/skeletons/button' as *;
8
4
  @use '../button.global.scss' as *;
9
5
  @use '../button.variables.scss' as *;
10
-
11
6
  .mrlButton {
12
7
  @include mrl-text-interactive('small');
13
8
  @include mrl-button-size;
14
-
15
9
  align-items: center;
16
10
  display: inline-flex;
17
11
  min-width: auto;
@@ -19,35 +13,21 @@
19
13
  text-align: center;
20
14
  vertical-align: middle;
21
15
  white-space: nowrap;
22
-
23
- // Size variants
24
16
  &.mrlButton--small {
25
17
  @include mrl-text-interactive('xsmall');
26
18
  @include mrl-button-size('small');
27
19
  }
28
-
29
20
  &.mrlButton--large {
30
21
  @include mrl-text-interactive;
31
22
  @include mrl-button-size('large');
32
23
  }
33
-
34
24
  .MrlSvgContainer {
35
25
  margin-right: var(--mrl-button-icon-margin-right);
36
-
37
- // Due to the nested nature of the icon we have limited ways to overwrite
38
- // the mrl-svg's CSS. There is not a way to simply apply more weight to the
39
- // selector so we can use "important" or we can use completely different CSS
40
- // properties. I opted to go with the latter and using min/max to overwrite
41
- // "width: 100%". As the design system matures and the wild-west of Classic
42
- // is removed, we may not need this level of flexibility.
43
26
  max-width: var(--mrl-button-icon-size);
44
27
  min-width: var(--mrl-button-icon-size);
45
28
  }
46
-
47
- // Icon position
48
29
  &.mrlButton--icon-after {
49
30
  flex-direction: row-reverse;
50
-
51
31
  .MrlSvgContainer {
52
32
  margin-left: var(--mrl-button-icon-margin-right);
53
33
  margin-right: 0;
@@ -1,23 +1,16 @@
1
- ////
2
- /// Checkbox component global styles
3
- /// @group checkbox
4
- ////
5
1
 
6
2
  @use '../../forms.global.scss' as *;
7
3
  @use './MrlCheckbox.variables.scss';
8
-
9
4
  .MrlCheckbox-input:disabled {
10
5
  ~ .MrlCheckbox-inputDisplay {
11
6
  --mrl-checkbox-input-border-color: var(--mrl-color-background-disabled);
12
7
  }
13
8
  }
14
-
15
9
  .MrlCheckbox-input:checked:disabled {
16
10
  ~ .MrlCheckbox-inputDisplay {
17
11
  --mrl-checkbox-input-background: var(--mrl-color-background-disabled);
18
12
  }
19
13
  }
20
-
21
14
  .MrlCheckbox-input:checked[aria-invalid='true'] {
22
15
  ~ .MrlCheckbox-inputDisplay {
23
16
  --mrl-checkbox-input-background: var(--mrl-color-background-error);
@@ -1,18 +1,12 @@
1
- ////
2
- /// Checkbox component scoped styles
3
- /// @group checkbox
4
- ////
5
1
 
6
2
  @use '~@muraldevkit/ds-foundation/src/styles/_mixins' as *;
7
3
  @use '../../forms.global.scss' as *;
8
4
  @use './MrlCheckbox.variables.scss';
9
-
10
5
  .MrlCheckbox {
11
6
  align-items: center;
12
7
  display: flex;
13
8
  min-height: var(--mrl-checkbox-height);
14
9
  position: relative;
15
-
16
10
  :first-child {
17
11
  align-self: flex-start;
18
12
  }
@@ -1,16 +1,10 @@
1
- ////
2
- /// Checkbox component styles
3
- /// @group checkbox
4
- ////
5
- @use '../../forms.variables.scss';
6
1
 
2
+ @use '../../forms.variables.scss';
7
3
  .MrlCheckbox-input[aria-invalid='true'] {
8
4
  ~ .mrl-checkbox-inputDisplay {
9
5
  --mrl-checkbox-input-border-color: var(--mrl-color-background-error);
10
6
  }
11
7
  }
12
-
13
- // State: hover
14
8
  .MrlCheckbox:hover {
15
9
  --mrl-checkbox-input-border-color: rgba(var(--mrl-gray-90), 1);
16
10
  }
@@ -1,30 +1,17 @@
1
- ////
2
- /// Standalone checkbox global styles
3
- /// @group checkbox-standalone
4
- ////
5
1
 
6
2
  @use '~@muraldevkit/ds-foundation/src/styles/_mixins' as *;
7
3
  @use '../../forms.global.scss' as *;
8
4
  @use './MrlCheckboxStandalone.variables.scss';
9
-
10
5
  .MrlCheckboxStandalone-input {
11
6
  @include mrl-focus(
12
7
  $is-inline-element: 'true',
13
8
  $element-radius: 'var(--mrl-border-radius-content)'
14
9
  );
15
-
16
- // overrides position: relative from the focus mixin
17
- /* stylelint-disable order/properties-alphabetical-order */
18
10
  position: absolute;
19
-
20
11
  & + .mrl-u-focus-indicator {
21
12
  position: absolute;
22
-
23
- // Fixes FF display issue
24
13
  left: 0;
25
14
  top: auto;
26
-
27
- // Safari needs to have defined dimensions
28
15
  height: var(--mrl-checkbox-input-size);
29
16
  width: var(--mrl-checkbox-input-size);
30
17
  }
@@ -1,22 +1,13 @@
1
- ////
2
- /// Standalone checkbox component styles
3
- /// @group checkbox-standalone
4
- ////
5
1
 
6
2
  @use '../../forms.global.scss' as *;
7
3
  @use './MrlCheckboxStandalone.variables.scss';
8
-
9
- /// @todo v2 - move mrl-checkbox-standalone styles in shared file back to this file
10
-
11
4
  .MrlCheckboxStandalone {
12
5
  @include mrl-checkbox-wrapper;
13
-
14
6
  align-items: center;
15
7
  display: flex;
16
8
  min-height: var(--mrl-checkbox-height);
17
9
  position: relative;
18
10
  }
19
-
20
11
  .MrlCheckboxStandalone-inputDisplay {
21
12
  background: var(--mrl-checkbox-input-background);
22
13
  border-color: var(--mrl-checkbox-input-border-color);
@@ -29,27 +20,22 @@
29
20
  width: var(--mrl-checkbox-input-size);
30
21
  z-index: 1;
31
22
  }
32
-
33
23
  .MrlCheckboxStandalone-inputDisplay-icon {
34
24
  display: none;
35
25
  }
36
-
37
26
  .MrlCheckboxStandalone-input {
38
27
  @include mrl-checkbox-input;
39
-
40
28
  &:checked ~ .MrlCheckboxStandalone-inputDisplay {
41
29
  .MrlCheckboxStandalone-inputDisplay-icon {
42
30
  display: block;
43
31
  }
44
32
  }
45
-
46
33
  &:indeterminate ~ .MrlCheckboxStandalone-inputDisplay {
47
34
  .MrlCheckboxStandalone-inputDisplay-icon {
48
35
  display: block;
49
36
  }
50
37
  }
51
38
  }
52
-
53
39
  .MrlCheckboxStandalone .MrlCheckboxStandalone-input {
54
40
  position: absolute;
55
41
  }
@@ -1,41 +1,27 @@
1
- ////
2
- /// Checkbox component styles
3
- /// @group checkbox
4
- ////
5
- @use '../../forms.variables.scss';
6
1
 
7
- // State: error
2
+ @use '../../forms.variables.scss';
8
3
  .MrlCheckboxStandalone-input[aria-invalid='true'] {
9
4
  ~ .MrlCheckboxStandalone-inputDisplay {
10
5
  --mrl-checkbox-input-border-color: var(--mrl-color-background-error);
11
6
  }
12
7
  }
13
-
14
8
  .MrlCheckboxStandalone-input:checked[aria-invalid='true'] {
15
9
  ~ .MrlCheckboxStandalone-inputDisplay {
16
10
  --mrl-checkbox-input-border-color: var(--mrl-color-background-error);
17
11
  --mrl-checkbox-input-background: var(--mrl-color-background-error);
18
12
  }
19
13
  }
20
-
21
- // State: disabled
22
- /* stylelint-disable no-descending-specificity */
23
- // We want to be able to group all related-state styles together
24
14
  .MrlCheckboxStandalone-input:disabled {
25
15
  ~ .MrlCheckboxStandalone-inputDisplay {
26
16
  --mrl-checkbox-input-border-color: var(--mrl-color-background-disabled);
27
17
  }
28
18
  }
29
-
30
19
  .MrlCheckboxStandalone-input:checked:disabled {
31
20
  ~ .MrlCheckboxStandalone-inputDisplay {
32
21
  --mrl-checkbox-input-border-color: var(--mrl-color-background-disabled);
33
22
  --mrl-checkbox-input-background: var(--mrl-color-background-disabled);
34
23
  }
35
24
  }
36
- /* stylelint-enable no-descending-specificity */
37
-
38
- // State: hover
39
25
  .MrlCheckboxStandalone:hover {
40
26
  --mrl-checkbox-input-border-color: rgba(var(--mrl-gray-90), 1);
41
27
  }
@@ -1,34 +1,21 @@
1
- ////
2
- /// Divider component styles
3
- /// @group divider
4
- ////
5
1
 
6
2
  @use '../divider.variables.scss';
7
-
8
- // Horizontal divider
9
3
  .MrlDivider--horizontal {
10
4
  background-color: var(--mrl-divider-color);
11
5
  display: block;
12
6
  height: var(--mrl-divider-size);
13
7
  margin: var(--mrl-divider-spacing) 0;
14
8
  width: 100%;
15
-
16
9
  .MrlDivider--center {
17
10
  margin: var(--mrl-divider-spacing) auto;
18
11
  }
19
12
  }
20
-
21
- // Vertical divider
22
13
  .MrlDivider--vertical {
23
- // A display: flex parent will give the most consistent and expected results
24
- // but we add display: inline-block just in case so the user can at least see
25
- // the divider and then tweak positioning as needed.
26
14
  align-self: stretch;
27
15
  background-color: var(--mrl-divider-color);
28
16
  display: inline-block;
29
17
  margin: 0 var(--mrl-divider-spacing);
30
18
  width: var(--mrl-divider-size);
31
-
32
19
  .MrlDivider--center {
33
20
  align-self: center;
34
21
  }
@@ -1,7 +1,2 @@
1
- ////
2
- /// fieldset component styles
3
- /// @group fieldset
4
- ////
5
1
 
6
- // The legend element uses the same styles as the label
7
2
  @use '../../label/MrlLabel/MrlLabel.module.scss';
@@ -1,11 +1,5 @@
1
1
  @use '../../text-input/MrlTextInput/MrlTextInput.variables.scss' as textInput;
2
2
  @use './MrlLabel.variables.scss';
3
-
4
- ////
5
- /// label component styles
6
- /// @group label
7
- ////
8
-
9
3
  .MrlLabel {
10
4
  color: var(--mrl-label-text-color);
11
5
  display: block;
@@ -13,19 +7,14 @@
13
7
  font-weight: var(--mrl-label-font-weight);
14
8
  line-height: var(--mrl-label-line-height);
15
9
  margin-bottom: var(--mrl-label-offset-vertical);
16
-
17
- // The label has a slight padding to create visual alignment since
18
- // the element has a border
19
10
  padding-left: var(--mrl-text-input-border-width);
20
11
  }
21
-
22
12
  .MrlLabel--inline {
23
13
  align-items: center;
24
14
  display: inline-flex;
25
15
  margin-left: var(--mrl-label-offset-inline);
26
16
  padding-left: 0;
27
17
  }
28
-
29
18
  .MrlLabel-icon {
30
19
  height: var(--mrl-label-icon-size);
31
20
  margin: var(--mrl-label-icon-inset)
@@ -1,7 +1,3 @@
1
- ////
2
- /// label component variables
3
- /// @group label
4
- ////
5
1
 
6
2
  .MrlLabel {
7
3
  --mrl-label-text-color: var(--mrl-color-text-label);
@@ -10,17 +6,12 @@
10
6
  --mrl-label-font-weight: var(--mrl-type-weight-title-secondary);
11
7
  --mrl-label-offset-vertical: var(--mrl-space-stack-related-small);
12
8
  }
13
-
14
9
  .MrlLabel--inline {
15
- // Overwrite
16
10
  --mrl-label-offset-vertical: 0;
17
-
18
- // Custom for this variant
19
11
  --mrl-label-offset-inline: var(--mrl-space-inline-sibling-xsmall);
20
12
  --mrl-label-icon-inset: calc(var(--mrl-spacing-01) + var(--mrl-spacing-02));
21
13
  --mrl-label-icon-size: var(--mrl-spacing-06);
22
14
  }
23
-
24
15
  .MrlLabel.mrl-is--disabled {
25
16
  --mrl-label-text-color: var(--mrl-color-text-disabled);
26
17
  }
@@ -1,61 +1,44 @@
1
- ////
2
- /// LabelWithDescription component scoped styles
3
- /// @group label-with-description
4
- ////
5
1
 
6
2
  @use './MrlLabelWithDescription.variables.scss';
7
-
8
3
  .MrlLabelWithDescription {
9
4
  --mrl-label-text-padding-top: calc(var(--mrl-spacing-02) + var(--mrl-spacing-01));
10
5
  --mrl-description-margin-left: calc(var(--mrl-spacing-08) + var(--mrl-spacing-03));
11
6
  --mrl-description-margin-top: calc(-1 * calc(var(--mrl-spacing-02) + var(--mrl-spacing-01)));
12
-
13
7
  min-height: var(--mrl-spacing-09);
14
-
15
- // keep the same size of the icon when we have a multiline label
16
8
  :global(.MrlSvgContainer) {
17
9
  flex-shrink: 0;
18
10
  }
19
11
  }
20
-
21
12
  .MrlLabelWithDescription-label {
22
13
  color: var(--mrl-label-with-description-color);
23
14
  vertical-align: middle;
24
-
25
15
  :global(.MrlLabel-text) {
26
16
  padding-top: var(--mrl-label-text-padding-top);
27
17
  }
28
-
29
18
  &.has-icon {
30
19
  :global(.MrlLabel-text) {
31
20
  padding-top: 0;
32
21
  }
33
22
  }
34
-
35
23
  &.has-multiline-label {
36
24
  :global(.MrlLabel-text) {
37
25
  padding-top: var(--mrl-label-text-padding-top);
38
26
  }
39
27
  }
40
28
  }
41
-
42
29
  .MrlLabelWithDescription-description {
43
30
  color: var(--mrl-label-with-description-color);
44
31
  margin-left: var(--mrl-spacing-02);
45
-
46
32
  .MrlLabelWithDescription-text {
47
33
  --mrl-text-weight: var(--mrl-type-weight-text-secondary);
48
34
  }
49
-
50
35
  &.has-icon,
51
36
  &.has-multiline-label {
52
37
  margin-left: var(--mrl-description-margin-left);
53
38
  }
54
-
55
39
  &.has-icon {
56
40
  margin-top: var(--mrl-description-margin-top);
57
41
  }
58
-
59
42
  &.has-multiline-label {
60
43
  margin-top: 0;
61
44
  }
@@ -1,20 +1,13 @@
1
- ////
2
- /// LabelWithDescription component styles
3
- /// @group label-with-description
4
- ////
5
1
 
6
2
  .MrlLabelWithDescription {
7
3
  --mrl-label-with-description-color: rgba(var(--mrl-gray-80), 1);
8
-
9
4
  &.mrl-is--selected,
10
5
  &.mrl-is--indeterminate {
11
6
  --mrl-label-with-description-color: rgba(var(--mrl-gray-100), 1);
12
7
  }
13
-
14
8
  &.mrl-is--disabled {
15
9
  --mrl-label-with-description-color: var(--mrl-color-text-disabled);
16
10
  }
17
-
18
11
  &:not(.mrl-is--disabled):hover {
19
12
  --mrl-label-with-description-color: rgba(var(--mrl-gray-90), 1);
20
13
  }