@muraldevkit/ui-toolkit 1.17.0 → 1.18.0
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.
- package/dist/components/button/MrlAnimatedIconButton/MrlAnimatedIconButton.d.ts +1 -1
- package/dist/components/button/MrlButton/MrlButton.d.ts +1 -1
- package/dist/components/button/MrlIconButton/MrlIconButton.d.ts +1 -1
- package/dist/components/form/index.d.ts +1 -0
- package/dist/components/form/label/MrlLabel/MrlLabel.d.ts +3 -2
- package/dist/components/form/textarea/MrlTextarea/MrlTextarea.d.ts +36 -0
- package/dist/components/form/textarea/MrlTextarea/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/styles/MrlSvg/module.scss +12 -5
- package/dist/styles/MrlTextarea/global.scss +18 -0
- package/dist/styles/MrlTextarea/module.scss +23 -0
- package/dist/styles/svg/variables.scss +5 -1
- package/package.json +1 -1
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
@use '../svg.variables.scss';
|
|
2
2
|
|
|
3
3
|
.MrlSvgContainer {
|
|
4
|
+
color: inherit;
|
|
4
5
|
display: inline-flex;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.MrlSvg {
|
|
8
|
-
display: inline-block;
|
|
9
|
-
fill: currentcolor;
|
|
10
6
|
|
|
11
7
|
// We set static height & width so the icon doesn't shrink when it's
|
|
12
8
|
// within a flex parent that has competing content. We want the icon
|
|
@@ -14,6 +10,17 @@
|
|
|
14
10
|
// they should use size="auto"
|
|
15
11
|
height: var(--mrl-svg-size);
|
|
16
12
|
width: var(--mrl-svg-size);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.MrlSvgContainer--auto {
|
|
16
|
+
height: auto;
|
|
17
|
+
width: 100%;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.MrlSvg {
|
|
21
|
+
display: inline-block;
|
|
22
|
+
fill: currentcolor;
|
|
23
|
+
width: var(--mrl-svg-size);
|
|
17
24
|
|
|
18
25
|
* {
|
|
19
26
|
pointer-events: none;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
////
|
|
2
|
+
/// textarea component global styles
|
|
3
|
+
/// @group textarea
|
|
4
|
+
////
|
|
5
|
+
@use '~@muraldevkit/ds-foundation/src/styles/_mixins' as *;
|
|
6
|
+
@use '../../forms.global.scss' as *;
|
|
7
|
+
@use '../../forms.variables.scss';
|
|
8
|
+
|
|
9
|
+
.MrlTextarea {
|
|
10
|
+
@include mrl-focus($is-inline-element: 'true');
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.mrl-u-focus-wrapper {
|
|
14
|
+
// These styles remove an undefined space between the textarea
|
|
15
|
+
// and counter span
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
////
|
|
2
|
+
/// textarea component scope styles
|
|
3
|
+
/// @group textarea
|
|
4
|
+
////
|
|
5
|
+
@use '~@muraldevkit/ds-foundation/src/styles/_mixins' as *;
|
|
6
|
+
@use '../../forms.global.scss' as *;
|
|
7
|
+
@use '../../forms.variables.scss';
|
|
8
|
+
|
|
9
|
+
.MrlTextarea {
|
|
10
|
+
@include mrl-text-inputs;
|
|
11
|
+
|
|
12
|
+
resize: vertical;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.MrlTextarea-counter {
|
|
16
|
+
@include mrl-text-static('xxsmall');
|
|
17
|
+
|
|
18
|
+
color: rgba(var(--mrl-gray-80), 1);
|
|
19
|
+
display: block;
|
|
20
|
+
margin-top: var(--mrl-spacing-02);
|
|
21
|
+
text-align: right;
|
|
22
|
+
width: 100%;
|
|
23
|
+
}
|
|
@@ -3,19 +3,23 @@
|
|
|
3
3
|
/// @group svg
|
|
4
4
|
////
|
|
5
5
|
|
|
6
|
+
.MrlSvgContainer,
|
|
6
7
|
.MrlSvg {
|
|
7
8
|
// default to `medium` size
|
|
8
9
|
--mrl-svg-size: var(--mrl-spacing-07);
|
|
9
10
|
}
|
|
10
11
|
|
|
12
|
+
.MrlSvgContainer--small,
|
|
11
13
|
.MrlSvg--small {
|
|
12
14
|
--mrl-svg-size: var(--mrl-spacing-06);
|
|
13
15
|
}
|
|
14
16
|
|
|
17
|
+
.MrlSvgContainer--large,
|
|
15
18
|
.MrlSvg--large {
|
|
16
19
|
--mrl-svg-size: var(--mrl-spacing-10);
|
|
17
20
|
}
|
|
18
21
|
|
|
22
|
+
.MrlSvgContainer--auto,
|
|
19
23
|
.MrlSvg--auto {
|
|
20
24
|
--mrl-svg-size: 100%;
|
|
21
|
-
}
|
|
25
|
+
}
|