@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,62 +1,39 @@
1
- ////
2
- /// Select Item component styles
3
- /// @group select-item
4
- ////
5
1
 
6
2
  @use '~@muraldevkit/ds-foundation/src/styles/_mixins' as *;
7
3
  @use '../../forms.global.scss' as *;
8
-
9
4
  @use './MrlSelectItem.variables.scss';
10
-
11
5
  .mrl-select-item {
12
6
  display: block;
13
7
  }
14
-
15
8
  .mrl-selectItem {
16
- // The menu uses the token --mrl-select-item-text-affordance to calculate the
17
- // max height. If you change this mixin, you must also change the token
18
- // within the `../variables.scss` file.
19
9
  @include mrl-text-static($size: 'small', $kind: 'title-secondary');
20
-
21
10
  background: var(--mrl-select-item-background);
22
11
  border-radius: var(--mrl-select-item-border-radius);
23
12
  color: var(--mrl-select-item-color);
24
13
  cursor: pointer;
25
14
  display: flex;
26
-
27
- // @todo - this does not align to any contextual tokens. We need
28
- // to have a better audit of them to understand how things are being designed
29
- // so developers have better luck finding something that works.
30
15
  padding: var(--mrl-select-item-padding-vertical) var(--mrl-select-item-padding-horizontal);
31
16
  position: relative;
32
17
  }
33
-
34
18
  .mrl-selectItem-selectedIcon {
35
19
  position: absolute;
36
20
  right: var(--mrl-select-item-icon-spacing);
37
21
  width: var(--mrl-select-item-icon-size);
38
22
  }
39
-
40
- // State: Selected
41
23
  $spacing: var(--mrl-select-item-icon-spacing);
42
24
  $item: var(var(--mrl-select-item-icon-size));
43
25
  $icon: var(var(-mrl-select-item-icon-spacing));
44
-
45
26
  .mrl-is--selected {
46
27
  padding-right: calc($spacing + $item + $icon);
47
28
  }
48
-
49
29
  .mrl-is--focused {
50
30
  outline: 5px auto Highlight;
51
31
  outline: 5px auto -webkit-focus-ring-color;
52
32
  }
53
-
54
- // State: Disabled
55
33
  .mrl-selectItem[aria-disabled='true'],
56
34
  .mrl-selectItem[aria-disabled='true']:hover {
57
35
  cursor: default;
58
36
  }
59
-
60
37
  .mrl-is--hidden {
61
38
  display: none;
62
39
  }
@@ -1,15 +1,8 @@
1
- ////
2
- /// Select component styles
3
- /// @group select
4
- ////
5
1
 
6
2
  @use '../../forms.variables.scss';
7
-
8
3
  .mrl-selectItem {
9
4
  --mrl-select-item-background: var(--mrl-color-background);
10
5
  --mrl-select-item-color: var(--mrl-color-text-highlight);
11
-
12
- // @todo - v2 - remove --mrl-select-item-padding since it's a duplicate
13
6
  --mrl-select-item-padding: var(--mrl-select-item-padding-vertical)
14
7
  var(--mrl-select-item-padding-horizontal);
15
8
  --mrl-select-item-padding-horizontal: var(--mrl-spacing-04);
@@ -18,17 +11,14 @@
18
11
  --mrl-select-item-icon-size: var(--mrl-spacing-06);
19
12
  --mrl-select-item-icon-spacing: var(--mrl-spacing-03);
20
13
  }
21
-
22
14
  .mrl-selectItem:hover {
23
15
  --mrl-select-item-background: var(--mrl-color-background-highlight-hover);
24
16
  --mrl-select-item-color: var(--mrl-color-text-highlight-hover);
25
17
  }
26
-
27
18
  .mrl-is--selected {
28
19
  --mrl-select-item-background: var(--mrl-color-background-highlight-selected);
29
20
  --mrl-select-item-color: var(--mrl-color-text-highlight-selected);
30
21
  }
31
-
32
22
  .mrl-selectItem[aria-disabled='true'],
33
23
  .mrl-selectItem[aria-disabled='true']:hover {
34
24
  --mrl-select-item-background: transparent;
@@ -1,26 +1,14 @@
1
- ////
2
- /// Select Menu component styles
3
- /// @group select-menu
4
- ////
5
- ///
6
- @use '~@muraldevkit/ds-foundation/src/styles/contextual-variables/z-index' as *;
7
1
 
2
+ @use '~@muraldevkit/ds-foundation/src/styles/contextual-variables/z-index' as *;
8
3
  @use './MrlSelectMenu.variables.scss';
9
-
10
4
  $affordance: var(--mrl-select-item-text-affordance);
11
5
  $item-padding: var(--mrl-select-item-padding-vertical);
12
6
  $space: var(--mrl-select-item-spacing-stack);
13
-
14
7
  .mrl-selectMenu {
15
- // sass-lint:disable-block border-zero
16
8
  $mrl-selectItem-height: calc($affordance + ($item-padding * 2) + $space);
17
-
18
9
  background: var(--mrl-color-background);
19
10
  border-radius: var(--mrl-radii-03);
20
11
  box-shadow: var(--mrl-shadow-01);
21
-
22
- // Since the aria updates happen at the Select component level
23
- // The show/hide feature of the menu resides in those files
24
12
  display: none;
25
13
  left: 0;
26
14
  max-height: calc($mrl-selectItem-height * 6);
@@ -30,16 +18,12 @@ $space: var(--mrl-select-item-spacing-stack);
30
18
  right: 0;
31
19
  z-index: $mrl-zIndex-menus-contextual;
32
20
  }
33
-
34
- // Menu positions
35
21
  .mrl-selectMenu--bottom {
36
22
  top: calc(100% + var(--mrl-spacing-02));
37
23
  }
38
-
39
24
  .mrl-selectMenu-bottom--top {
40
25
  bottom: calc(100% + var(--mrl-spacing-02));
41
26
  }
42
-
43
27
  .mrl-selectMenu--open {
44
28
  display: block;
45
29
  }
@@ -1,8 +1,3 @@
1
- ////
2
- /// Select Menu component styles
3
- /// @group select-menu
4
- ////
5
1
 
6
2
  .mrl-selectMenu {
7
- // Add the component CSS variables to this file
8
3
  }
@@ -1,23 +1,7 @@
1
- ////
2
- /// Table component styles
3
- /// @group Table
4
- ////
5
1
 
6
- // IMPORTANT!
7
- // Please DO NOT add visual styling to the MrlSmartTable component. As
8
- // a smart component, it should only compose other existing components and handle
9
- // data and interactivity concerns. By adding styling unique to the smart component,
10
- // it tightly couples the composed component to the smart component and makes it
11
- // much more likely to have styling regressions.
12
- // IMPORTANT!
13
-
14
- .MrlSortToggleWrapperButton {
15
- // Because sorting is performed by clicking the table header, which itself
16
- // is not meant to be an interactive element, the sort controls are wrapped
17
- // in a visually hidden button to allow for accessible interaction.
2
+ .MrlSmartTable--accessible-visually-hidden-button {
18
3
  all: unset;
19
4
  cursor: pointer;
20
-
21
5
  &:focus {
22
6
  outline: revert;
23
7
  }
@@ -1,35 +1,24 @@
1
1
  @use '../svg.variables.scss';
2
-
3
2
  .MrlSvgContainer {
4
3
  color: inherit;
5
4
  display: inline-flex;
6
-
7
- // We set static height & width so the icon doesn't shrink when it's
8
- // within a flex parent that has competing content. We want the icon
9
- // to maintain its intended size. If the user needs the icon to scale
10
- // they should use size="auto"
11
5
  height: var(--mrl-svg-size);
12
6
  width: var(--mrl-svg-size);
13
7
  }
14
-
15
8
  .MrlSvgContainer--auto {
16
9
  height: 100%;
17
10
  width: 100%;
18
11
  }
19
-
20
12
  .MrlSvg {
21
13
  display: inline-block;
22
14
  fill: currentcolor;
23
15
  height: auto;
24
16
  width: var(--mrl-svg-size);
25
-
26
17
  * {
27
18
  pointer-events: none;
28
19
  }
29
20
  }
30
-
31
21
  .MrlSvg--auto {
32
- // inline-flex was not filling the container unless specified
33
22
  height: 100%;
34
23
  width: 100%;
35
24
  }
@@ -1,22 +1,13 @@
1
1
  @use '../svg.variables.scss';
2
-
3
2
  .MrlSvgAnimate {
4
3
  display: inline-block;
5
4
  fill: currentcolor;
6
-
7
- // We set static height & width so the icon doesn't shrink when it's
8
- // within a flex parent that has competing content. We want the icon
9
- // to maintain its intended size. If the user needs the icon to scale
10
- // they should use size="auto"
11
5
  height: var(--mrl-svg-size);
12
6
  width: var(--mrl-svg-size);
13
-
14
7
  * {
15
8
  pointer-events: none;
16
9
  }
17
10
  }
18
-
19
11
  .MrlSvgAnimate--auto {
20
- // inline-flex was not filling the container unless specified
21
12
  width: 100%;
22
13
  }
@@ -1,10 +1,5 @@
1
- ////
2
- /// Table component styles
3
- /// @group Table
4
- ////
5
1
 
6
2
  @use '../table.variables.scss';
7
-
8
3
  .MrlTable {
9
4
  width: 100%;
10
5
  }
@@ -1,8 +1,2 @@
1
- ////
2
- /// Table component styles
3
- /// @group Table
4
- ////
5
1
 
6
2
  @use '../table.variables.scss';
7
-
8
- // .MrlTableBody {}
@@ -1,11 +1,6 @@
1
- ////
2
- /// Table component styles
3
- /// @group Table
4
- ////
5
1
 
6
2
  @use '../table.variables.scss';
7
3
  @use '../table.global.scss' as *;
8
-
9
4
  .MrlTableCell {
10
5
  @include mrl-cell-layout;
11
6
  }
@@ -1,27 +1,17 @@
1
- ////
2
- /// Table component styles
3
- /// @group Table
4
- ////
5
1
 
6
2
  @use '../table.variables.scss';
7
3
  @use '../table.global.scss' as *;
8
-
9
4
  .MrlTableColumn {
10
5
  @include mrl-cell-layout;
11
-
12
6
  color: var(--mrl-color-text);
13
7
  font-size: var(--mrl-type-size-text);
14
8
  font-weight: var(--mrl-type-weight-title);
15
-
16
9
  &.clickable:hover {
17
10
  background-color: var(--mrl-table-column-background-hover);
18
11
  cursor: pointer;
19
12
  user-select: none;
20
13
  }
21
-
22
- // This ensures alignment of the sort indicator icons in the
23
- // table header. Please suggest/replace if there are better solutions!
24
- :global(.MrlSvgContainer.header-sort-indicator) {
14
+ :global(.MrlTableColumn--sort-indicator) {
25
15
  vertical-align: text-top;
26
16
  }
27
17
  }
@@ -1,10 +1,5 @@
1
- ////
2
- /// Table component styles
3
- /// @group Table
4
- ////
5
1
 
6
2
  @use '../table.variables.scss';
7
-
8
3
  .MrlTableEmptyState {
9
4
  align-items: center;
10
5
  color: var(--mrl-color-text-secondary);
@@ -1,11 +1,6 @@
1
- ////
2
- /// Table component styles
3
- /// @group Table
4
- ////
5
1
 
6
2
  @use '~@muraldevkit/ds-foundation/src/styles/contextual-variables/z-index' as *;
7
3
  @use '../table.variables.scss';
8
-
9
4
  .MrlTableHeader {
10
5
  background-color: var(--mrl-color-background);
11
6
  border-bottom: var(--mrl-table-header-row-border-bottom);
@@ -1,17 +1,11 @@
1
- ////
2
- /// Table component styles
3
- /// @group Table
4
- ////
5
1
 
6
2
  @use '../table.variables.scss';
7
-
8
3
  .MrlTableRow {
9
4
  border-bottom: var(--mrl-table-row-border-bottom);
10
5
  font-size: var(--mrl-type-size-text-small);
11
6
  font-weight: var(--mrl-type-weight-text);
12
7
  height: var(--mrl-table-row-height);
13
8
  outline: none;
14
-
15
9
  &:hover {
16
10
  background-color: var(--mrl-table-row-background-hover);
17
11
  }
@@ -1,10 +1,4 @@
1
1
  @use './MrlText.variables.scss';
2
-
3
- ////
4
- /// Text component styles
5
- /// @group Text
6
- ////
7
-
8
2
  .MrlText {
9
3
  font-family: var(--mrl-body-font);
10
4
  font-size: var(--mrl-text-size);
@@ -1,18 +1,10 @@
1
- ////
2
- /// Text component variables
3
- /// @group Text
4
- ////
5
1
 
6
2
  .MrlText {
7
3
  --mrl-text-size: var(--mrl-type-size-text);
8
4
  --mrl-text-weight: var(--mrl-type-weight-text);
9
5
  --mrl-text-spacing: var(--mrl-type-spacing-text);
10
6
  --mrl-text-height: var(--mrl-type-line-height-text);
11
-
12
- // There are 5 sizes: xxsmall, xsmall, small, medium, and large.
13
- // Medium is the default
14
7
  $mrl-title-sizes: 'large', 'small', 'xsmall', 'xxsmall';
15
-
16
8
  @each $size in $mrl-title-sizes {
17
9
  &.MrlText--#{$size} {
18
10
  --mrl-text-size: var(--mrl-type-size-text-#{$size});
@@ -1,18 +1,6 @@
1
1
  @use './MrlTextHeading.variables.scss';
2
-
3
- ////
4
- /// Text/Heading component styles
5
- /// @group Heading
6
- ////
7
-
8
- // ---- Poster, Display, and Headline Classes ----
9
- // There are also title use-cases but they follow a different scale/structure
10
2
  $mrl-heading-use-cases: 'display', 'headline';
11
-
12
- // There are 3 sizes: small, medium, and large.
13
- // Medium is the default
14
3
  $mrl-heading-sizes: 'large', 'small';
15
-
16
4
  @each $use-case in $mrl-heading-use-cases {
17
5
  .MrlTextHeading-#{$use-case} {
18
6
  display: block;
@@ -23,8 +11,6 @@ $mrl-heading-sizes: 'large', 'small';
23
11
  line-height: var(--mrl-heading-height);
24
12
  }
25
13
  }
26
-
27
- // ---- Title Classes ----
28
14
  .MrlTextHeading-title {
29
15
  display: block;
30
16
  font-family: var(--mrl-heading-family);
@@ -1,16 +1,6 @@
1
- ////
2
- /// Text/Heading component variables
3
- /// @group Heading
4
- ////
5
1
 
6
- // ---- Poster, Display, and Headline Classes ----
7
- // There are also title use-cases but they follow a different scale/structure
8
2
  $mrl-heading-use-cases: 'display', 'headline';
9
-
10
- // There are 3 sizes: small, medium, and large.
11
- // Medium is the default
12
3
  $mrl-heading-sizes: 'large', 'small';
13
-
14
4
  @each $use-case in $mrl-heading-use-cases {
15
5
  .MrlTextHeading-#{$use-case} {
16
6
  @if $use-case == 'display' {
@@ -18,13 +8,11 @@ $mrl-heading-sizes: 'large', 'small';
18
8
  } @else {
19
9
  --mrl-heading-family: var(--mrl-heading-font);
20
10
  }
21
-
22
11
  --mrl-heading-size: var(--mrl-type-size-#{$use-case});
23
12
  --mrl-heading-weight: var(--mrl-type-weight-#{$use-case});
24
13
  --mrl-heading-spacing: var(--mrl-type-spacing-#{$use-case});
25
14
  --mrl-heading-height: var(--mrl-type-line-height-#{$use-case});
26
15
  }
27
-
28
16
  @each $size in $mrl-heading-sizes {
29
17
  .MrlTextHeading-#{$use-case}--#{$size} {
30
18
  --mrl-heading-size: var(--mrl-type-size-#{$use-case}-#{$size});
@@ -33,8 +21,6 @@ $mrl-heading-sizes: 'large', 'small';
33
21
  }
34
22
  }
35
23
  }
36
-
37
- // ---- Title Classes ----
38
24
  .MrlTextHeading-title {
39
25
  --mrl-heading-family: var(--mrl-heading-font);
40
26
  --mrl-heading-size: var(--mrl-type-size-text);
@@ -42,18 +28,13 @@ $mrl-heading-sizes: 'large', 'small';
42
28
  --mrl-heading-spacing: var(--mrl-type-spacing-text);
43
29
  --mrl-heading-height: var(--mrl-type-line-height-text);
44
30
  }
45
-
46
- // There are 5 sizes: xxsmall, xsmall, small, medium, and large.
47
- // Medium is the default
48
31
  $mrl-title-sizes: 'large', 'small', 'xsmall', 'xxsmall';
49
-
50
32
  @each $size in $mrl-title-sizes {
51
33
  .MrlTextHeading-title--#{$size} {
52
34
  --mrl-heading-size: var(--mrl-type-size-text-#{$size});
53
35
  --mrl-heading-height: var(--mrl-type-line-height-title-#{$size});
54
36
  }
55
37
  }
56
-
57
38
  .MrlTextHeading-title--secondary {
58
39
  --mrl-heading-weight: var(--mrl-type-weight-title-secondary);
59
40
  }
@@ -2,33 +2,18 @@
2
2
  @use '~@muraldevkit/ds-foundation/src/styles/contextual-variables/z-index' as *;
3
3
  @use '../../forms.global.scss' as *;
4
4
  @use './MrlTextInput.variables.scss';
5
-
6
- /* stylelint-disable scss/operator-no-newline-after */
7
-
8
5
  .MrlTextInput {
9
6
  @include mrl-text-inputs;
10
7
  @include mrl-focus($is-inline-element: 'true');
11
-
12
- // Focus state
13
8
  &.mrl-u-focus-wrapper {
14
- // When used within a grid layout not setting an
15
- // explicit height can create rendering issues with
16
- // the focus indicator.
17
9
  height: 100%;
18
10
  }
19
-
20
- /*
21
- * Since we have built a custom clearable functionality,
22
- * we should hide the default search clear from certain browsers
23
- */
24
11
  &::-ms-clear,
25
12
  &::-ms-reveal {
26
13
  display: none;
27
14
  height: 0;
28
15
  width: 0;
29
16
  }
30
-
31
- /* clears the ‘X’ from Chrome */
32
17
  &::-webkit-search-decoration,
33
18
  &::-webkit-search-cancel-button,
34
19
  &::-webkit-search-results-button,
@@ -36,57 +21,43 @@
36
21
  display: none;
37
22
  }
38
23
  }
39
-
40
- // Icon support
41
24
  .MrlTextInput--dynamicIcon {
42
25
  padding-right: calc(
43
26
  var(--mrl-text-input-inset-horizontal) + var(--mrl-text-input-icon-size) +
44
27
  var(--mrl-text-input-icon-offset)
45
28
  );
46
29
  }
47
-
48
30
  .MrlTextInput--persistIcon {
49
31
  padding-left: calc(
50
32
  var(--mrl-text-input-inset-horizontal) + var(--mrl-text-input-icon-size) +
51
33
  var(--mrl-text-input-icon-offset)
52
34
  );
53
35
  }
54
-
55
- // This class is used when we hover over icons within the input
56
- // and can't directly target it via CSS
57
36
  .MrlTextInput--active {
58
37
  border-color: var(--mrl-text-input-border-color-hover);
59
38
  }
60
-
61
39
  .MrlTextInput-dynamicIcon,
62
40
  .MrlTextInput-persistIcon {
63
41
  color: var(--mrl-text-input-border-color);
64
42
  position: absolute;
65
43
  top: calc(var(--mrl-text-input-inset-vertical) + var(--mrl-line-width-border));
66
44
  z-index: $mrl-zIndex-focus + 1;
67
-
68
45
  &--disabled {
69
46
  color: var(--mrl-text-input-border-color-disabled);
70
47
  }
71
48
  }
72
-
73
49
  .MrlTextInput-dynamicIcon {
74
50
  right: var(--mrl-text-input-inset-horizontal);
75
51
  }
76
-
77
52
  .MrlTextInput-persistIcon {
78
53
  left: var(--mrl-text-input-inset-horizontal);
79
54
  }
80
-
81
55
  .MrlTextInput-persistIcon--active,
82
56
  .MrlTextInput-dynamicIcon--active {
83
57
  color: var(--mrl-text-input-border-color-hover);
84
58
  }
85
-
86
- // @todo this needs replaced with a "nested" size button once available
87
59
  .MrlTextInput-dynamicIcon > button {
88
60
  @include mrl-focus;
89
-
90
61
  background: none;
91
62
  border: none;
92
63
  color: inherit;
@@ -1,5 +1,4 @@
1
1
  @use '../../forms.variables.scss';
2
-
3
2
  .MrlTextInput {
4
3
  --mrl-text-input-icon-size: var(--mrl-spacing-06);
5
4
  --mrl-text-input-icon-offset: var(--mrl-input-icon-offset);
@@ -1,18 +1,11 @@
1
- ////
2
- /// textarea component global styles
3
- /// @group textarea
4
- ////
1
+
5
2
  @use '~@muraldevkit/ds-foundation/src/styles/_mixins' as *;
6
3
  @use '../../forms.global.scss' as *;
7
4
  @use '../../forms.variables.scss';
8
-
9
5
  .MrlTextarea {
10
6
  @include mrl-focus($is-inline-element: 'true');
11
7
  }
12
-
13
8
  .MrlTextarea-focus-wrapper {
14
- // These styles remove an undefined space between the textarea
15
- // and counter span
16
9
  display: flex;
17
10
  flex-direction: column;
18
11
  }
@@ -1,20 +1,13 @@
1
- ////
2
- /// textarea component scope styles
3
- /// @group textarea
4
- ////
1
+
5
2
  @use '~@muraldevkit/ds-foundation/src/styles/_mixins' as *;
6
3
  @use '../../forms.global.scss' as *;
7
4
  @use '../../forms.variables.scss';
8
-
9
5
  .MrlTextarea {
10
6
  @include mrl-text-inputs;
11
-
12
7
  resize: vertical;
13
8
  }
14
-
15
9
  .MrlTextarea-counter {
16
10
  @include mrl-text-static('xxsmall');
17
-
18
11
  color: rgba(var(--mrl-gray-80), 1);
19
12
  display: block;
20
13
  margin-top: var(--mrl-spacing-02);