@muraldevkit/ui-toolkit 2.51.0 → 2.52.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/form/constants.d.ts +6 -0
- package/dist/components/form/index.d.ts +1 -0
- package/dist/components/form/text-input/MrlEditableTextInput/MrlEditableTextInput.d.ts +30 -0
- package/dist/components/form/text-input/MrlEditableTextInput/MrlEditableTextInputRightIcon.d.ts +25 -0
- package/dist/components/form/text-input/MrlEditableTextInput/index.d.ts +1 -0
- package/dist/components/form/text-input/MrlEditableTextInput/useIsEditable.d.ts +30 -0
- package/dist/components/notification/MrlBlockNotification/MrlBlockNotification.d.ts +5 -5
- package/dist/index.js +1 -1
- package/dist/styles/MrlEditableTextInput/module.scss +76 -0
- package/dist/styles/MrlEditableTextInput/variables.scss +5 -0
- package/package.json +1 -1
- /package/dist/components/form/text-input/{MrlTextInput → hooks}/useActiveColor.d.ts +0 -0
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
@use '~@muraldevkit/ds-foundation/src/styles/_mixins' as *;
|
|
2
|
+
@use '~@muraldevkit/ds-foundation/src/styles/contextual-variables/z-index' as *;
|
|
3
|
+
@use '../../forms.global.scss' as *;
|
|
4
|
+
@use './MrlEditableTextInput.variables.scss';
|
|
5
|
+
.MrlEditableTextInput {
|
|
6
|
+
@include mrl-text-inputs;
|
|
7
|
+
@include mrl-text-inputs-read-only;
|
|
8
|
+
@include mrl-focus($is-inline-element: 'true');
|
|
9
|
+
&:not(:disabled):read-only {
|
|
10
|
+
color: var(--mrl-text-input-color-read-only);
|
|
11
|
+
pointer-events: auto;
|
|
12
|
+
--mrl-text-input-background: none;
|
|
13
|
+
}
|
|
14
|
+
&.mrl-u-focus-wrapper {
|
|
15
|
+
height: 100%;
|
|
16
|
+
}
|
|
17
|
+
&::-ms-clear,
|
|
18
|
+
&::-ms-reveal {
|
|
19
|
+
display: none;
|
|
20
|
+
height: 0;
|
|
21
|
+
width: 0;
|
|
22
|
+
}
|
|
23
|
+
&::-webkit-search-decoration,
|
|
24
|
+
&::-webkit-search-cancel-button,
|
|
25
|
+
&::-webkit-search-results-button,
|
|
26
|
+
&::-webkit-search-results-decoration {
|
|
27
|
+
display: none;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
.MrlEditableTextInput--allowOnClick {
|
|
31
|
+
&:not(:disabled):read-only {
|
|
32
|
+
pointer-events: auto;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
.MrlEditableTextInput-dynamicIcon {
|
|
36
|
+
color: var(--mrl-text-input-border-color);
|
|
37
|
+
padding-right: calc(
|
|
38
|
+
var(--mrl-text-input-inset-horizontal) + var(--mrl-text-input-icon-size) +
|
|
39
|
+
var(--mrl-text-input-icon-offset)
|
|
40
|
+
);
|
|
41
|
+
position: absolute;
|
|
42
|
+
right: var(--mrl-text-input-inset-horizontal);
|
|
43
|
+
top: calc(var(--mrl-text-input-inset-vertical) + var(--mrl-line-width-border));
|
|
44
|
+
transition: color var(--mrl-duration-03) var(--mrl-timing-m2);
|
|
45
|
+
z-index: $mrl-zIndex-focus + 1;
|
|
46
|
+
&--disabled {
|
|
47
|
+
color: var(--mrl-text-input-border-color-disabled);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
.MrlEditableTextInput--active {
|
|
51
|
+
border-color: var(--mrl-text-input-border-color-hover);
|
|
52
|
+
}
|
|
53
|
+
.MrlEditableTextInput-dynamicIcon--active {
|
|
54
|
+
color: var(--mrl-text-input-border-color-hover);
|
|
55
|
+
}
|
|
56
|
+
.MrlEditableTextInput-dynamicIcon > button {
|
|
57
|
+
@include mrl-focus;
|
|
58
|
+
background: none;
|
|
59
|
+
border: none;
|
|
60
|
+
color: inherit;
|
|
61
|
+
cursor: pointer;
|
|
62
|
+
height: 20px;
|
|
63
|
+
outline: none;
|
|
64
|
+
padding: 0;
|
|
65
|
+
}
|
|
66
|
+
.MrlEditableTextInput-errorMessage {
|
|
67
|
+
color: var(--mrl-color-background-error);
|
|
68
|
+
font-size: var(--mrl-type-size-text-small);
|
|
69
|
+
}
|
|
70
|
+
.MrlEditableTextInput-errorIcon {
|
|
71
|
+
margin-right: var(--mrl-spacing-02);
|
|
72
|
+
vertical-align: middle;
|
|
73
|
+
}
|
|
74
|
+
.MrlEditableTextInput-focus-wrapper {
|
|
75
|
+
font-size: var(--mrl-type-size-text-small);
|
|
76
|
+
}
|
package/package.json
CHANGED
|
File without changes
|