@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,12 +1,10 @@
1
1
  @use '~@muraldevkit/ds-foundation/src/styles/_mixins' as *;
2
2
  @use '../variables.scss';
3
-
4
3
  .mrl-link {
5
4
  @include mrl-focus(
6
5
  $element-radius: 'var(--mrl-radii-02)',
7
6
  $border-width: 'var(--mrl-link-border-width)'
8
7
  );
9
-
10
8
  border-bottom: var(--mrl-link-border-width) var(--mrl-link-border-style) currentcolor;
11
9
  color: var(--mrl-link-color);
12
10
  font-weight: var(--mrl-link-font-weight);
@@ -14,8 +12,6 @@
14
12
  transition: all var(--mrl-duration-03) var(--mrl-timing-m2);
15
13
  transition-property: border-color, color;
16
14
  }
17
-
18
- // Color Scheme modifiers
19
15
  a.mrl-link--inverse {
20
16
  @include mrl-focus(
21
17
  $is-inverse: 'true',
@@ -23,52 +19,30 @@ a.mrl-link--inverse {
23
19
  $border-width: 'var(--mrl-link-border-width)'
24
20
  );
25
21
  }
26
-
27
- // Visited Links
28
- // -----------------------------------------------------------------------
29
- // Due to privacy restrictions the visited pseudo class is very particular about how it is styled
30
- // and is limited in what it supports. We can not have an opacity or even define the color using
31
- // RGBA even if the alpha is set to full opacity.
32
- /* stylelint-disable color-function-notation */
33
22
  a.mrl-link:visited {
34
23
  color: rgb(var(--mrl-red-100));
35
24
  }
36
-
37
25
  a.mrl-link--mono:visited {
38
26
  color: rgb(var(--mrl-gray-80));
39
27
  }
40
-
41
28
  a.mrl-link--inverse:visited {
42
29
  color: rgb(var(--mrl-white));
43
30
  }
44
- /* stylelint-enable color-function-notation */
45
-
46
- // Link styles
47
- // -----------------------------------------------------------------------
48
- // Note the visited styles required the use of `a` within the selector but
49
- // in order to overwrite the visited styles for visited links on hover and
50
- // active following the LVHA rule we need to apply that selector here too
51
31
  a.mrl-link:hover {
52
32
  color: var(--mrl-link-color-hover);
53
33
  }
54
-
55
34
  a.mrl-link:active {
56
35
  color: var(--mrl-link-color-active);
57
36
  }
58
-
59
- // Size Modifiers
60
37
  a.mrl-link--large {
61
38
  @include mrl-text-interactive('large');
62
39
  }
63
-
64
40
  a.mrl-link--medium {
65
41
  @include mrl-text-interactive('medium');
66
42
  }
67
-
68
43
  a.mrl-link--small {
69
44
  @include mrl-text-interactive('small');
70
45
  }
71
-
72
46
  a.mrl-link--xsmall {
73
47
  @include mrl-text-interactive('xsmall');
74
48
  }
@@ -1,9 +1,6 @@
1
1
  @use '~@muraldevkit/ds-foundation/src/styles/global-variables/breakpoints' as *;
2
-
3
2
  @use './MrlModal.variables.scss';
4
3
  @use './MrlModal.mixins.scss' as *;
5
-
6
- // Modifiers: Sizes
7
4
  @media screen and (min-width: $mrl-breakpoint-01) {
8
5
  .mrl-modal {
9
6
  border-radius: var(--mrl-modal-border-radius);
@@ -13,7 +10,6 @@
13
10
  max-height: var(--mrl-modal-max-height);
14
11
  max-width: var(--mrl-modal-size);
15
12
  }
16
-
17
13
  .mrl-native-modal,
18
14
  .mrl-display-modal {
19
15
  height: min(var(--mrl-modal-max-height), 100vh - var(--mrl-spacing-09) - var(--mrl-spacing-08));
@@ -21,22 +17,18 @@
21
17
  max-height: initial;
22
18
  }
23
19
  }
24
-
25
20
  .mrl-native-modal,
26
21
  .mrl-display-modal {
27
22
  border-radius: var(--mrl-modal-border-radius) var(--mrl-modal-border-radius) 0 0;
28
23
  @media screen and (min-width: $mrl-breakpoint-01) {
29
24
  border-radius: var(--mrl-modal-border-radius);
30
25
  }
31
-
32
26
  .mrl-modal-close {
33
27
  display: none;
34
28
  }
35
-
36
29
  .mrl-modal-header {
37
30
  position: relative;
38
31
  text-align: center;
39
-
40
32
  .mrl-text-heading {
41
33
  text-align: center;
42
34
  width: 100%;
@@ -1,44 +1,21 @@
1
- ////
2
- /// Modal component mixins
3
- /// @group modal
4
- ////
5
1
 
6
- /// CSS transition setup for modal backdrop/scrim animating in
7
- /// There are no configurations for this mixin
8
- ///
9
- /// @example @include mrl-modal-scrim-in;
10
2
  @mixin mrl-modal-scrim-in() {
11
3
  opacity: 1;
12
4
  transition-duration: var(--mrl-duration-04);
13
5
  transition-property: opacity;
14
6
  transition-timing-function: var(--mrl-timing-m1);
15
7
  }
16
-
17
- /// CSS transition setup for modal backdrop/scrim animating out
18
- /// There are no configurations for this mixin
19
- ///
20
- /// @example @include mrl-modal-scrim-out;
21
8
  @mixin mrl-modal-scrim-out() {
22
9
  opacity: 0;
23
10
  transition-duration: var(--mrl-duration-03);
24
11
  transition-timing-function: var(--mrl-timing-m3);
25
12
  }
26
-
27
- /// CSS transition setup for modal dialog animating in
28
- /// There are no configurations for this mixin
29
- ///
30
- /// @example @include mrl-modal-dialog-in;
31
13
  @mixin mrl-modal-dialog-in() {
32
14
  transform: translate(0, 0);
33
15
  transition-duration: var(--mrl-duration-04);
34
16
  transition-property: transform;
35
17
  transition-timing-function: var(--mrl-timing-m1);
36
18
  }
37
-
38
- /// CSS transition setup for modal dialog animating out
39
- /// There are no configurations for this mixin
40
- ///
41
- /// @example @include mrl-modal-dialog-out;
42
19
  @mixin mrl-modal-dialog-out() {
43
20
  transform: translate(0, var(--mrl-distance-02));
44
21
  transition-duration: var(--mrl-duration-03);
@@ -1,15 +1,9 @@
1
- ////
2
- /// Modal component styles
3
- /// @group modal
4
- ////
5
1
 
6
2
  @use '~@muraldevkit/ds-foundation/src/styles/global-variables/breakpoints' as *;
7
3
  @use '~@muraldevkit/ds-foundation/src/styles/_mixins' as *;
8
4
  @use '~@muraldevkit/ds-foundation/src/styles/contextual-variables/z-index' as *;
9
-
10
5
  @use './MrlModal.variables.scss';
11
6
  @use './MrlModal.mixins.scss' as *;
12
-
13
7
  .mrl-modal-backdrop {
14
8
  align-items: center;
15
9
  background: var(--mrl-modal-backdrop-background);
@@ -20,29 +14,23 @@
20
14
  position: fixed;
21
15
  transition: opacity 300ms ease-in-out;
22
16
  z-index: $mrl-zIndex-overlays;
23
-
24
17
  &.fade-in {
25
18
  @include mrl-modal-scrim-in;
26
19
  }
27
-
28
20
  &.fade-out {
29
21
  @include mrl-modal-scrim-out;
30
22
  }
31
-
32
23
  &.display {
33
24
  display: fixed;
34
25
  }
35
-
36
26
  &.hide {
37
27
  display: none;
38
28
  }
39
-
40
29
  &--native,
41
30
  &--display {
42
31
  align-items: flex-start;
43
32
  }
44
33
  }
45
-
46
34
  .mrl-modal {
47
35
  background: var(--mrl-modal-background);
48
36
  display: flex;
@@ -53,20 +41,15 @@
53
41
  position: relative;
54
42
  width: 100vw;
55
43
  }
56
-
57
44
  .mrl-modal-close {
58
45
  position: absolute;
59
-
60
- // The close button is in the same location for all modal sizes
61
46
  right: var(--mrl-modal-close-offset);
62
47
  top: var(--mrl-modal-close-offset);
63
48
  }
64
-
65
49
  @media (prefers-reduced-motion: no-preference) {
66
50
  .mrl-modal-backdrop.fade-in .mrl-modal {
67
51
  @include mrl-modal-dialog-in;
68
52
  }
69
-
70
53
  .mrl-modal-backdrop.fade-out .mrl-modal {
71
54
  @include mrl-modal-dialog-out;
72
55
  }
@@ -1,33 +1,23 @@
1
- ////
2
- /// Modal component styles
3
- /// @group modal
4
- ////
5
1
 
6
2
  @use '~@muraldevkit/ds-foundation/src/styles/global-variables/breakpoints' as *;
7
3
  @use '../modal.variables.scss';
8
-
9
4
  .mrl-modal-backdrop {
10
5
  --mrl-modal-backdrop-background: var(--mrl-black-opacity-06);
11
6
  }
12
-
13
7
  .mrl-modal {
14
8
  --mrl-modal-size: 600px;
15
9
  --mrl-modal-border-radius: var(--mrl-radii-05);
16
10
  --mrl-modal-background: var(--mrl-color-background);
17
11
  --mrl-modal-max-height: 95vh;
18
12
  }
19
-
20
- /// Media queries' styles for desktop
21
13
  @media screen and (min-width: $mrl-breakpoint-01) {
22
14
  .mrl-modal--small {
23
15
  --mrl-modal-size: 400px;
24
16
  }
25
-
26
17
  .mrl-modal--large {
27
18
  --mrl-modal-size: 800px;
28
19
  }
29
20
  }
30
-
31
21
  .mrl-native-modal,
32
22
  .mrl-display-modal {
33
23
  --mrl-modal-border-radius: var(--mrl-radii-04);
@@ -1,17 +1,12 @@
1
1
  @use '~@muraldevkit/ds-foundation/src/styles/global-variables/breakpoints' as *;
2
2
  @use '~@muraldevkit/ds-foundation/src/styles/_mixins' as *;
3
-
4
3
  .mrl-modal-content {
5
- // Because this is a non-standard tab-able element, we may have limitations with
6
- // styling options of the focus ring.
7
4
  @include mrl-focus($style: 'outline');
8
-
9
5
  display: flex;
10
6
  flex-direction: column;
11
7
  flex-grow: 1;
12
8
  overflow: auto;
13
9
  padding: 0 var(--mrl-modal-padding-horizontal) 4px;
14
-
15
10
  :global(.mrl-native-modal) &,
16
11
  :global(.mrl-display-modal) & {
17
12
  margin-top: var(--mrl-spacing-03);
@@ -4,14 +4,12 @@
4
4
  button {
5
5
  align-self: flex-start;
6
6
  }
7
-
8
7
  .modal-secondary,
9
8
  .modal-primary,
10
9
  .mrlButton--primary,
11
10
  .mrlButton--secondary {
12
11
  margin-left: auto;
13
12
  }
14
-
15
13
  .mrlButton--primary {
16
14
  margin: 0;
17
15
  }
@@ -1,43 +1,32 @@
1
- ////
2
- /// Modal footer component styles
3
- /// @group modal
4
- ////
5
1
 
6
2
  @use '~@muraldevkit/ds-foundation/src/styles/global-variables/breakpoints' as *;
7
3
  @use '~@muraldevkit/ds-foundation/src/styles/skeletons/button' as *;
8
4
  @use './MrlModalFooter.variables.scss';
9
-
10
5
  .mrl-modal-footer {
11
6
  display: flex;
12
7
  flex-direction: row;
13
8
  gap: var(--mrl-modal-footer-inline-margin);
14
9
  padding: var(--mrl-modal-padding-vertical) var(--mrl-modal-padding-horizontal);
15
10
  }
16
-
17
11
  .mrl-modal-footer-wrapper {
18
12
  display: flex;
19
13
  flex-direction: column;
20
14
  gap: var(--mrl-modal-footer-inline-margin);
21
15
  width: 100%;
22
16
  }
23
-
24
17
  .slotted :global(.mrlButton) {
25
18
  display: block;
26
19
  width: 100%;
27
20
  }
28
-
29
- /// Media queries' styles for desktop
30
21
  @media screen and (min-width: $mrl-breakpoint-01) {
31
22
  .mrl-modal-footer {
32
23
  flex-direction: row;
33
24
  justify-content: space-between;
34
25
  }
35
-
36
26
  .mrl-modal-footer-wrapper {
37
27
  flex-direction: row;
38
28
  justify-content: right;
39
29
  }
40
-
41
30
  .mrl-modal-footer-wrapper .slotted {
42
31
  display: inline-flex;
43
32
  width: auto;
@@ -1,10 +1,5 @@
1
- ////
2
- /// Modal footer component styles
3
- /// @group modal
4
- ////
5
1
 
6
2
  @use '../modal.variables.scss';
7
-
8
3
  .mrl-modal-footer {
9
4
  --mrl-modal-footer-inline-margin: var(--mrl-spacing-03);
10
5
  }
@@ -1,10 +1,5 @@
1
- ////
2
- /// Modal header component styles
3
- /// @group modal
4
- ////
5
1
 
6
2
  @use '../modal.variables.scss' as *;
7
-
8
3
  .mrl-modal-header {
9
4
  color: var(--mrl-modal-header-text-color);
10
5
  display: flex;
@@ -12,8 +7,6 @@
12
7
  var(--mrl-type-size-headline-large) * var(--mrl-type-line-height-headline-large)
13
8
  );
14
9
  padding: var(--mrl-modal-padding-vertical)
15
- // We calculate padding based on the position of the close button
16
- // that is added to the modal container
17
10
  calc(
18
11
  #{$mrl-modal-close-size} + var(--mrl-modal-close-offset) + var(--mrl-modal-close-inline-margin)
19
12
  )
@@ -1,11 +1,6 @@
1
- ////
2
- /// Modal header component styles
3
- /// @group modal
4
- ////
5
1
 
6
2
  @use '../modal.variables.scss' as *;
7
3
  @use './MrlModalHeaderNative.variables.scss' as *;
8
-
9
4
  .mrl-modal-header-native {
10
5
  align-items: center;
11
6
  display: grid;
@@ -14,7 +9,6 @@
14
9
  --mrl-native-modal-header-max-button-size
15
10
  );
16
11
  padding: var(--mrl-native-modal-header-padding) var(--mrl-native-modal-header-padding);
17
-
18
12
  :global(.mrl-text-heading) {
19
13
  color: var(--mrl-modal-header-text-color);
20
14
  display: block;
@@ -25,11 +19,9 @@
25
19
  text-overflow: ellipsis;
26
20
  white-space: nowrap;
27
21
  }
28
-
29
22
  &__primary-content {
30
23
  display: flex;
31
24
  justify-content: flex-end;
32
-
33
25
  :global(.mrlButton--primary-native) {
34
26
  display: block;
35
27
  overflow: hidden;
@@ -37,10 +29,8 @@
37
29
  white-space: nowrap;
38
30
  }
39
31
  }
40
-
41
32
  &__secondary-content {
42
33
  display: flex;
43
-
44
34
  :global(.mrlButton--secondary-native) {
45
35
  display: block;
46
36
  overflow: hidden;
@@ -1,19 +1,13 @@
1
1
  @use '@muraldevkit/ds-foundation/src/styles/_mixins' as *;
2
-
3
2
  .MrlRadioButtonStandalone-input {
4
3
  @include mrl-focus(
5
4
  $is-inline-element: 'true',
6
5
  $element-radius: 'var(--mrl-border-radius-rounded)'
7
6
  );
8
-
9
7
  position: absolute;
10
8
  }
11
-
12
9
  .MrlRadioButtonStandalone-focus-indicator {
13
- // Safari needs to have defined dimensions
14
10
  height: var(--mrl-radio-button-height);
15
-
16
- // Fixes FF display issue
17
11
  left: 0;
18
12
  position: absolute;
19
13
  top: auto;
@@ -1,13 +1,8 @@
1
- ////
2
- /// Standalone radio button component styles
3
- /// @group radio-button-standalone
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 '../../forms.variables.scss';
9
5
  @use './MrlRadioButtonStandalone.variables.scss';
10
-
11
6
  .MrlRadioButtonStandalone {
12
7
  display: inline-block;
13
8
  height: var(--mrl-radio-button-height);
@@ -16,7 +11,6 @@
16
11
  position: relative;
17
12
  width: var(--mrl-radio-button-width);
18
13
  }
19
-
20
14
  .MrlRadioButtonStandalone-input {
21
15
  appearance: none;
22
16
  cursor: pointer;
@@ -30,13 +24,11 @@
30
24
  vertical-align: middle;
31
25
  width: var(--mrl-radio-button-width);
32
26
  z-index: $mrl-zIndex-focus;
33
-
34
27
  &:disabled,
35
28
  & ~ .MrlRadioButtonStandalone-faux-input {
36
29
  cursor: default;
37
30
  pointer-events: none;
38
31
  }
39
-
40
32
  & ~ .MrlRadioButtonStandalone-faux-input {
41
33
  background-color: var(--mrl-radio-button-background);
42
34
  border-color: var(--mrl-radio-button-border-color);
@@ -48,7 +40,6 @@
48
40
  position: absolute;
49
41
  top: 0;
50
42
  width: var(--mrl-radio-button-width);
51
-
52
43
  &::before {
53
44
  background-color: var(--mrl-radio-button-background);
54
45
  border-radius: var(--mrl-border-radius-rounded);
@@ -1,34 +1,26 @@
1
1
  .MrlRadioButtonStandalone-input:focus-within ~ .MrlRadioButtonStandalone-faux-input {
2
2
  --mrl-radio-button-border-color: var(--mrl-color-line-active);
3
3
  }
4
-
5
4
  .MrlRadioButtonStandalone-input:hover ~ .MrlRadioButtonStandalone-faux-input {
6
5
  --mrl-radio-button-border-color: var(--mrl-color-line-hover);
7
6
  }
8
-
9
7
  .MrlRadioButtonStandalone-input:checked ~ .MrlRadioButtonStandalone-faux-input {
10
8
  --mrl-radio-button-border-color: var(--mrl-radio-button-background-selected);
11
-
12
9
  &::before {
13
10
  --mrl-radio-button-background: var(--mrl-radio-button-background-selected);
14
11
  }
15
12
  }
16
-
17
13
  .MrlRadioButtonStandalone-input:disabled ~ .MrlRadioButtonStandalone-faux-input {
18
14
  --mrl-radio-button-border-color: var(--mrl-color-line-disabled);
19
-
20
15
  &::before {
21
16
  --mrl-radio-button-background: var(--mrl-color-background-disabled);
22
17
  }
23
18
  }
24
-
25
- // Error states
26
19
  .MrlRadioButtonStandalone-input.hasError ~ .MrlRadioButtonStandalone-faux-input,
27
20
  .MrlRadioButtonStandalone-input.hasError:checked ~ .MrlRadioButtonStandalone-faux-input,
28
21
  .MrlRadioButtonStandalone-input.hasError:hover ~ .MrlRadioButtonStandalone-faux-input {
29
22
  --mrl-radio-button-border-color: var(--mrl-color-background-error);
30
23
  }
31
-
32
24
  .MrlRadioButtonStandalone-input.hasError:checked ~ .MrlRadioButtonStandalone-faux-input {
33
25
  &::before {
34
26
  --mrl-radio-button-background: var(--mrl-color-background-error);
@@ -1,106 +1,63 @@
1
- ////
2
- /// Select component styles
3
- /// @group select
4
- ////
5
1
 
6
2
  @use '~@muraldevkit/ds-foundation/src/styles/_mixins' as *;
7
3
  @use '../../forms.variables.scss' as selectItem;
8
4
  @use '../../forms.global.scss' as *;
9
-
10
5
  @use './MrlSelect.variables.scss';
11
-
12
6
  .mrl-select {
13
7
  display: block;
14
8
  position: relative;
15
9
  }
16
-
17
10
  .mrl-select-trigger {
18
11
  @include mrl-text-inputs;
19
-
20
12
  align-items: center;
21
13
  box-sizing: border-box;
22
14
  cursor: pointer;
23
15
  display: flex;
24
16
  justify-content: space-between;
25
-
26
- // we can consistently overwrite this in the select component since
27
- // there is always an icon
28
17
  padding-right: var(--mrl-input-icon-offset);
29
18
  position: relative;
30
-
31
- // FYI, This overwrites the width set in mrl-text-inputs
32
19
  width: auto;
33
20
  }
34
-
35
- /// -- Focus State --
36
21
  .mrl-select:focus-within > .mrl-select-trigger {
37
22
  border-color: var(--mrl-text-input-border-color-focus);
38
23
  }
39
-
40
24
  .mrl-select:focus-within > .mrl-select-trigger::after {
41
25
  @include mrl-focus-pseudo-element($border-width: 'var(--mrl-text-input-border-width)');
42
26
  }
43
-
44
27
  .mrl-select:focus-visible {
45
28
  outline: none;
46
29
  }
47
-
48
- /// -- Custom trigger content --
49
- // We don't target classes here because the content in this span
50
- // is a clone copy from the selected selectItem
51
30
  .mrl-select-trigger span {
52
31
  display: flex;
53
32
  }
54
-
55
33
  .mrl-select-trigger span mrl-svg {
56
34
  @include mrl-selectItem-icon;
57
35
  }
58
-
59
- /// -- Select trigger indicator (icon) --
60
36
  .mrl-select-trigger-indicator {
61
37
  color: var(--mrl-trigger-indicator-color);
62
38
  margin-left: var(--mrl-input-icon-offset);
63
39
  }
64
-
65
40
  .mrl-select-trigger-indicator.mrl-is--open {
66
41
  transform: rotate(180deg);
67
42
  }
68
-
69
43
  .mrl-select:focus-within .mrl-select-trigger-indicator {
70
44
  color: var(--mrl-trigger-indicator-color-focus);
71
45
  }
72
-
73
46
  .mrl-select-trigger:hover .mrl-select-trigger-indicator {
74
47
  color: var(--mrl-trigger-indicator-color-hover);
75
48
  }
76
-
77
- /// -- Inline kind --
78
- /// @todo this is just variables but it's currently being overwritten
79
- /// by the mrl-text-inputs mixin earlier in this file.
80
49
  .mrl-select-trigger--inline {
81
50
  @include mrl-inline-input-vars;
82
51
  }
83
-
84
- /// -- Large size --
85
- /// @todo this is just variables but it's currently being overwritten
86
- /// by the mrl-text-inputs mixin earlier in this file.
87
52
  .mrl-select-trigger--large {
88
53
  --mrl-text-input-height: var(--mrl-spacing-09);
89
54
  }
90
-
91
- // -- Disabled state --
92
- // The mixin for text inputs doesn't work in this use case because
93
- // of the nested behavior of the HTML
94
- // -- disabling for better code readability
95
- /* stylelint-disable no-descending-specificity */
96
55
  .mrl-select--disabled {
97
56
  .mrl-select-trigger {
98
57
  border-color: var(--mrl-text-input-border-color-disabled);
99
58
  color: var(--mrl-text-input-color-disabled);
100
59
  pointer-events: none;
101
60
  }
102
-
103
- // when set on the host, the style is not being inherited properly
104
61
  .mrl-select-trigger-indicator {
105
62
  color: var(--mrl-text-input-color-disabled);
106
63
  cursor: default;
@@ -1,15 +1,10 @@
1
- ////
2
- /// Select component styles
3
- /// @group select
4
- ////
5
- @use '../../forms.variables.scss';
6
1
 
2
+ @use '../../forms.variables.scss';
7
3
  .mrl-select {
8
4
  --mrl-select-trigger-indicator-color: var(--mrl-text-input-border-color);
9
5
  --mrl-select-trigger-indicator-color-hover: var(--mrl-text-input-border-color-hover);
10
6
  --mrl-select-trigger-indicator-color-focus: var(--mrl-text-input-border-color-focus);
11
7
  }
12
-
13
8
  .mrl-select:focus-within > .mrl-select-trigger--inline {
14
9
  --mrl-text-input-border-color-focus: transparent;
15
10
  }