@simplybusiness/mobius 9.3.4 → 10.1.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/CHANGELOG.md +30 -0
- package/dist/cjs/components/AddressLookup/AddressLookup.js +9 -4
- package/dist/cjs/components/AddressLookup/AddressLookup.js.map +2 -2
- package/dist/cjs/components/AddressLookup/index.js +9 -4
- package/dist/cjs/components/AddressLookup/index.js.map +2 -2
- package/dist/cjs/components/Checkbox/Checkbox.js +9 -4
- package/dist/cjs/components/Checkbox/Checkbox.js.map +2 -2
- package/dist/cjs/components/Checkbox/CheckboxGroup.js +9 -4
- package/dist/cjs/components/Checkbox/CheckboxGroup.js.map +2 -2
- package/dist/cjs/components/Checkbox/index.js +9 -4
- package/dist/cjs/components/Checkbox/index.js.map +2 -2
- package/dist/cjs/components/Combobox/Combobox.js +9 -4
- package/dist/cjs/components/Combobox/Combobox.js.map +2 -2
- package/dist/cjs/components/Combobox/index.js +9 -4
- package/dist/cjs/components/Combobox/index.js.map +2 -2
- package/dist/cjs/components/DateField/DateField.js +9 -4
- package/dist/cjs/components/DateField/DateField.js.map +2 -2
- package/dist/cjs/components/DateField/index.js +9 -4
- package/dist/cjs/components/DateField/index.js.map +2 -2
- package/dist/cjs/components/ErrorMessage/ErrorMessage.js +9 -4
- package/dist/cjs/components/ErrorMessage/ErrorMessage.js.map +2 -2
- package/dist/cjs/components/ErrorMessage/index.js +9 -4
- package/dist/cjs/components/ErrorMessage/index.js.map +2 -2
- package/dist/cjs/components/ExpandableText/ExpandableText.js +9 -4
- package/dist/cjs/components/ExpandableText/ExpandableText.js.map +2 -2
- package/dist/cjs/components/ExpandableText/index.js +9 -4
- package/dist/cjs/components/ExpandableText/index.js.map +2 -2
- package/dist/cjs/components/MaskedField/MaskedField.js +9 -4
- package/dist/cjs/components/MaskedField/MaskedField.js.map +2 -2
- package/dist/cjs/components/MaskedField/index.js +9 -4
- package/dist/cjs/components/MaskedField/index.js.map +2 -2
- package/dist/cjs/components/NumberField/NumberField.js +9 -4
- package/dist/cjs/components/NumberField/NumberField.js.map +2 -2
- package/dist/cjs/components/NumberField/index.js +9 -4
- package/dist/cjs/components/NumberField/index.js.map +2 -2
- package/dist/cjs/components/PasswordField/PasswordField.js +9 -4
- package/dist/cjs/components/PasswordField/PasswordField.js.map +2 -2
- package/dist/cjs/components/PasswordField/ShowHideButton.js +9 -4
- package/dist/cjs/components/PasswordField/ShowHideButton.js.map +2 -2
- package/dist/cjs/components/PasswordField/index.js +9 -4
- package/dist/cjs/components/PasswordField/index.js.map +2 -2
- package/dist/cjs/components/Radio/Radio.js +9 -4
- package/dist/cjs/components/Radio/Radio.js.map +2 -2
- package/dist/cjs/components/Radio/RadioGroup.js +9 -4
- package/dist/cjs/components/Radio/RadioGroup.js.map +2 -2
- package/dist/cjs/components/Radio/index.js +9 -4
- package/dist/cjs/components/Radio/index.js.map +2 -2
- package/dist/cjs/components/Select/Select.js +9 -4
- package/dist/cjs/components/Select/Select.js.map +2 -2
- package/dist/cjs/components/Select/index.js +9 -4
- package/dist/cjs/components/Select/index.js.map +2 -2
- package/dist/cjs/components/TextArea/TextArea.js +9 -4
- package/dist/cjs/components/TextArea/TextArea.js.map +2 -2
- package/dist/cjs/components/TextArea/index.js +9 -4
- package/dist/cjs/components/TextArea/index.js.map +2 -2
- package/dist/cjs/components/TextField/TextField.js +9 -4
- package/dist/cjs/components/TextField/TextField.js.map +2 -2
- package/dist/cjs/components/TextField/index.js +9 -4
- package/dist/cjs/components/TextField/index.js.map +2 -2
- package/dist/cjs/components/TextOrHTML/TextOrHTML.js +8 -3
- package/dist/cjs/components/TextOrHTML/TextOrHTML.js.map +2 -2
- package/dist/cjs/components/TextOrHTML/index.js +8 -3
- package/dist/cjs/components/TextOrHTML/index.js.map +2 -2
- package/dist/cjs/components/index.js +9 -4
- package/dist/cjs/components/index.js.map +2 -2
- package/dist/cjs/index.js +9 -4
- package/dist/cjs/index.js.map +2 -2
- package/dist/cjs/meta.json +100 -100
- package/dist/esm/{chunk-ZU3XMAWQ.js → chunk-C4BILMFX.js} +2 -2
- package/dist/esm/{chunk-HHJ4Y5JQ.js → chunk-QRHDVVRK.js} +9 -4
- package/dist/esm/chunk-QRHDVVRK.js.map +7 -0
- package/dist/esm/components/AddressLookup/AddressLookup.js +2 -2
- package/dist/esm/components/AddressLookup/index.js +2 -2
- package/dist/esm/components/Checkbox/Checkbox.js +2 -2
- package/dist/esm/components/Checkbox/CheckboxGroup.js +2 -2
- package/dist/esm/components/Checkbox/index.js +2 -2
- package/dist/esm/components/Combobox/Combobox.js +2 -2
- package/dist/esm/components/Combobox/index.js +2 -2
- package/dist/esm/components/DateField/DateField.js +2 -2
- package/dist/esm/components/DateField/index.js +2 -2
- package/dist/esm/components/ErrorMessage/ErrorMessage.js +2 -2
- package/dist/esm/components/ErrorMessage/index.js +2 -2
- package/dist/esm/components/ExpandableText/ExpandableText.js +2 -2
- package/dist/esm/components/ExpandableText/index.js +2 -2
- package/dist/esm/components/MaskedField/MaskedField.js +2 -2
- package/dist/esm/components/MaskedField/index.js +2 -2
- package/dist/esm/components/NumberField/NumberField.js +2 -2
- package/dist/esm/components/NumberField/index.js +2 -2
- package/dist/esm/components/PasswordField/PasswordField.js +2 -2
- package/dist/esm/components/PasswordField/ShowHideButton.js +2 -2
- package/dist/esm/components/PasswordField/index.js +2 -2
- package/dist/esm/components/Radio/Radio.js +2 -2
- package/dist/esm/components/Radio/RadioGroup.js +2 -2
- package/dist/esm/components/Radio/index.js +2 -2
- package/dist/esm/components/Select/Select.js +2 -2
- package/dist/esm/components/Select/index.js +2 -2
- package/dist/esm/components/TextArea/TextArea.js +2 -2
- package/dist/esm/components/TextArea/index.js +2 -2
- package/dist/esm/components/TextField/TextField.js +2 -2
- package/dist/esm/components/TextField/index.js +2 -2
- package/dist/esm/components/TextOrHTML/TextOrHTML.js +1 -1
- package/dist/esm/components/TextOrHTML/index.js +1 -1
- package/dist/esm/components/index.js +2 -2
- package/dist/esm/index.js +2 -2
- package/dist/esm/meta.json +73 -73
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/components/TextOrHTML/TextOrHTML.d.ts +3 -1
- package/package.json +2 -2
- package/src/components/Accordion/Accordion.css +79 -71
- package/src/components/Accordion/AccordionList.css +25 -23
- package/src/components/Alert/Alert.css +46 -44
- package/src/components/Box/Box.css +4 -2
- package/src/components/Breadcrumbs/Breadcrumbs.css +25 -23
- package/src/components/Button/Button.css +227 -219
- package/src/components/Button/Button.story.styles.css +9 -7
- package/src/components/Checkbox/Checkbox.css +106 -104
- package/src/components/Checkbox/CheckboxGroup.css +22 -20
- package/src/components/Combobox/Combobox.css +96 -94
- package/src/components/Container/Container.css +11 -9
- package/src/components/Divider/Divider.css +14 -12
- package/src/components/Drawer/Drawer.css +157 -155
- package/src/components/DropdownMenu/DropdownMenu.css +54 -52
- package/src/components/DropdownMenu/DropdownMenu.story.styles.css +11 -9
- package/src/components/ErrorMessage/ErrorMessage.css +30 -28
- package/src/components/ExpandableText/ExpandableText.css +11 -9
- package/src/components/Fieldset/Fieldset.css +13 -11
- package/src/components/Flex/Flex.css +5 -3
- package/src/components/Grid/Grid.story.styles.css +18 -16
- package/src/components/Icon/Icon.css +37 -35
- package/src/components/Label/Label.css +13 -11
- package/src/components/Link/Link.css +29 -27
- package/src/components/List/List.css +47 -45
- package/src/components/LoadingIndicator/LoadingIndicator.css +4 -2
- package/src/components/Modal/Modal.css +122 -120
- package/src/components/NumberField/NumberField.css +58 -56
- package/src/components/PasswordField/PasswordField.css +27 -25
- package/src/components/Popover/Popover.css +32 -30
- package/src/components/Popover/Popover.story.styles.css +24 -22
- package/src/components/Progress/Progress.css +25 -23
- package/src/components/Radio/Radio.css +167 -163
- package/src/components/Segment/Segment.css +163 -161
- package/src/components/Select/Select.css +82 -80
- package/src/components/Slider/Slider.css +113 -111
- package/src/components/Stack/Stack.css +24 -22
- package/src/components/Switch/Switch.css +58 -56
- package/src/components/Table/Table.css +52 -50
- package/src/components/Text/Text.css +92 -90
- package/src/components/TextArea/TextArea.css +41 -39
- package/src/components/TextField/TextField.css +132 -130
- package/src/components/TextOrHTML/TextOrHTML.test.tsx +95 -0
- package/src/components/TextOrHTML/TextOrHTML.tsx +13 -3
- package/src/components/Title/Title.css +32 -30
- package/src/components/Toast/Toast.css +234 -232
- package/dist/esm/chunk-HHJ4Y5JQ.js.map +0 -7
- /package/dist/esm/{chunk-ZU3XMAWQ.js.map → chunk-C4BILMFX.js.map} +0 -0
|
@@ -1,108 +1,110 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
font-family: var(--font-family);
|
|
4
|
-
font-size: var(--font-size-regular);
|
|
5
|
-
font-weight: var(--font-weight-normal);
|
|
6
|
-
line-height: var(--line-height-normal);
|
|
7
|
-
|
|
8
|
-
&:where(.--is-p) {
|
|
1
|
+
@layer atoms {
|
|
2
|
+
.mobius-text {
|
|
9
3
|
box-sizing: border-box;
|
|
10
4
|
font-family: var(--font-family);
|
|
11
5
|
font-size: var(--font-size-regular);
|
|
12
6
|
font-weight: var(--font-weight-normal);
|
|
13
7
|
line-height: var(--line-height-normal);
|
|
14
|
-
text-wrap: pretty;
|
|
15
|
-
}
|
|
16
8
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
9
|
+
&:where(.--is-p) {
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
font-family: var(--font-family);
|
|
12
|
+
font-size: var(--font-size-regular);
|
|
13
|
+
font-weight: var(--font-weight-normal);
|
|
14
|
+
line-height: var(--line-height-normal);
|
|
15
|
+
text-wrap: pretty;
|
|
16
|
+
}
|
|
26
17
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
18
|
+
&:where(.--is-h1) {
|
|
19
|
+
box-sizing: border-box;
|
|
20
|
+
font-family: var(--font-family);
|
|
21
|
+
font-size: var(--font-size-title); /* 32px */
|
|
22
|
+
font-weight: var(--font-weight-bold);
|
|
23
|
+
line-height: 1.25; /* 40px */
|
|
24
|
+
margin: 0.35em 0;
|
|
25
|
+
text-wrap: balance;
|
|
26
|
+
}
|
|
36
27
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
28
|
+
&:where(.--is-h2) {
|
|
29
|
+
box-sizing: border-box;
|
|
30
|
+
font-family: var(--font-family);
|
|
31
|
+
font-size: var(--font-size-small-title); /* 24px */
|
|
32
|
+
font-weight: var(--font-weight-bold);
|
|
33
|
+
line-height: var(--line-height-tight); /* 1.333, 32px */
|
|
34
|
+
margin: 0.45em 0;
|
|
35
|
+
text-wrap: balance;
|
|
36
|
+
}
|
|
46
37
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
38
|
+
&:where(.--is-h3) {
|
|
39
|
+
box-sizing: border-box;
|
|
40
|
+
font-family: var(--font-family);
|
|
41
|
+
font-size: var(--font-size-lead); /* 20px */
|
|
42
|
+
font-weight: var(--font-weight-bold);
|
|
43
|
+
line-height: 1.2; /* 24px */
|
|
44
|
+
margin: 0.5em 0;
|
|
45
|
+
text-wrap: balance;
|
|
46
|
+
}
|
|
56
47
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
48
|
+
&:where(.--is-h4) {
|
|
49
|
+
box-sizing: border-box;
|
|
50
|
+
font-family: var(--font-family);
|
|
51
|
+
font-size: var(--font-size-regular); /* 16px */
|
|
52
|
+
font-weight: var(--font-weight-bold);
|
|
53
|
+
line-height: var(--line-height-normal); /* 1.5, 24px */
|
|
54
|
+
margin: 0.55em 0;
|
|
55
|
+
text-wrap: balance;
|
|
56
|
+
}
|
|
63
57
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
color: var(--color-text-medium);
|
|
71
|
-
}
|
|
58
|
+
&:where(.--is-span) {
|
|
59
|
+
box-sizing: border-box;
|
|
60
|
+
font-size: var(--font-size-regular);
|
|
61
|
+
font-weight: var(--font-weight-normal);
|
|
62
|
+
line-height: var(--line-height-normal);
|
|
63
|
+
}
|
|
72
64
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
65
|
+
&:where(.--is-body) {
|
|
66
|
+
box-sizing: border-box;
|
|
67
|
+
font-family: var(--font-family);
|
|
68
|
+
font-size: var(--font-size-regular); /* 16px */
|
|
69
|
+
font-weight: var(--font-weight-normal);
|
|
70
|
+
line-height: var(--line-height-normal); /* 1.5, 24px */
|
|
71
|
+
color: var(--color-text-medium);
|
|
72
|
+
}
|
|
81
73
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
74
|
+
&:where(.--is-small) {
|
|
75
|
+
box-sizing: border-box;
|
|
76
|
+
font-family: var(--font-family);
|
|
77
|
+
font-size: var(--font-size-small-paragraph); /* 14px */
|
|
78
|
+
font-weight: var(--font-weight-normal);
|
|
79
|
+
line-height: 1.428; /* 20px */
|
|
80
|
+
color: var(--color-text-medium);
|
|
81
|
+
}
|
|
90
82
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
83
|
+
&:where(.--is-legal) {
|
|
84
|
+
box-sizing: border-box;
|
|
85
|
+
font-family: var(--font-family);
|
|
86
|
+
font-size: var(--font-size-small-print); /* 12px */
|
|
87
|
+
font-weight: var(--font-weight-normal);
|
|
88
|
+
line-height: var(--line-height-tight); /* 1.333, 16px */
|
|
89
|
+
color: var(--color-text-medium);
|
|
90
|
+
}
|
|
99
91
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
92
|
+
/* Title variant */
|
|
93
|
+
&:where(.--is-title) {
|
|
94
|
+
color: var(--color-text);
|
|
95
|
+
font-size: var(--font-size-small-title);
|
|
96
|
+
font-weight: var(--font-weight-bold);
|
|
97
|
+
line-height: var(--line-height-tight);
|
|
98
|
+
margin: var(--size-md) 0;
|
|
99
|
+
}
|
|
104
100
|
|
|
105
|
-
|
|
106
|
-
|
|
101
|
+
/* Compact text */
|
|
102
|
+
&:where(.--has-line-height-tight) {
|
|
103
|
+
line-height: var(--line-height-tight);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&:where(.--has-line-height-loose) {
|
|
107
|
+
line-height: var(--line-height-normal);
|
|
108
|
+
}
|
|
107
109
|
}
|
|
108
110
|
}
|
|
@@ -1,46 +1,48 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
@layer atoms {
|
|
2
|
+
.mobius-text-area__input {
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
flex: 1 1 0%;
|
|
5
|
+
border: var(--border-default);
|
|
6
|
+
border-radius: var(--input-border-radius);
|
|
7
|
+
padding: var(--size-xs) var(--size-sm);
|
|
8
|
+
margin: 0px;
|
|
9
|
+
font-family: var(--font-family);
|
|
10
|
+
font-size: var(--font-size-regular);
|
|
11
|
+
color: var(--color-text);
|
|
12
|
+
outline: 0px;
|
|
13
|
+
background-color: var(--color-background-input);
|
|
13
14
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
/* Focused */
|
|
16
|
+
&:focus-visible {
|
|
17
|
+
border-color: var(--color-primary);
|
|
18
|
+
background-color: var(--color-background-input-active);
|
|
19
|
+
box-shadow: var(--box-shadow-default);
|
|
20
|
+
}
|
|
20
21
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
/* Hovered */
|
|
23
|
+
&:hover:not(.--is-disabled):not(&.--is-invalid) {
|
|
24
|
+
border-color: var(--color-primary);
|
|
25
|
+
background-color: var(--color-background-input-active);
|
|
26
|
+
}
|
|
26
27
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
28
|
+
/* Disabled */
|
|
29
|
+
&.--is-disabled {
|
|
30
|
+
background-color: var(--color-background-light);
|
|
31
|
+
border-color: var(--color-border-medium);
|
|
32
|
+
color: var(--color-text-light);
|
|
33
|
+
cursor: not-allowed;
|
|
34
|
+
}
|
|
34
35
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
/* Invalid */
|
|
37
|
+
&:not(.--is-disabled).--is-invalid {
|
|
38
|
+
border-color: var(--color-error);
|
|
39
|
+
background-color: var(--color-error-background);
|
|
40
|
+
color: var(--color-error);
|
|
41
|
+
}
|
|
40
42
|
}
|
|
41
|
-
}
|
|
42
43
|
|
|
43
|
-
.mobius-text-area {
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
.mobius-text-area {
|
|
45
|
+
box-sizing: border-box;
|
|
46
|
+
width: 100%;
|
|
47
|
+
}
|
|
46
48
|
}
|
|
@@ -1,168 +1,170 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
@layer atoms {
|
|
2
|
+
/* stylelint-disable no-descending-specificity -- complex component with many state combinations */
|
|
3
|
+
.mobius-text-field {
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
width: 100%;
|
|
6
|
+
|
|
7
|
+
&:where(.--is-optional) > :where(.mobius-label)::after {
|
|
8
|
+
content: " (optional)";
|
|
9
|
+
}
|
|
5
10
|
|
|
6
|
-
|
|
7
|
-
|
|
11
|
+
& .mobius-label {
|
|
12
|
+
display: block;
|
|
13
|
+
}
|
|
8
14
|
}
|
|
9
15
|
|
|
10
|
-
|
|
11
|
-
display:
|
|
16
|
+
.mobius-text-field__inner-container {
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-wrap: wrap;
|
|
19
|
+
align-items: stretch;
|
|
12
20
|
}
|
|
13
|
-
}
|
|
14
21
|
|
|
15
|
-
.mobius-text-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
22
|
+
.mobius-text-field__input-wrapper {
|
|
23
|
+
display: flex;
|
|
24
|
+
flex: 1 1 0;
|
|
25
|
+
align-items: center;
|
|
26
|
+
border-radius: var(--input-border-radius);
|
|
27
|
+
color: var(--color-text);
|
|
28
|
+
overflow: hidden; /* Prevents border-radius from clipping children */
|
|
29
|
+
background-color: var(--color-background-input);
|
|
20
30
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
align-items: center;
|
|
25
|
-
border-radius: var(--input-border-radius);
|
|
26
|
-
color: var(--color-text);
|
|
27
|
-
overflow: hidden; /* Prevents border-radius from clipping children */
|
|
28
|
-
background-color: var(--color-background-input);
|
|
29
|
-
|
|
30
|
-
&:not(.--is-hidden) {
|
|
31
|
-
border: var(--border-default);
|
|
32
|
-
}
|
|
31
|
+
&:not(.--is-hidden) {
|
|
32
|
+
border: var(--border-default);
|
|
33
|
+
}
|
|
33
34
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
35
|
+
/* If component has Button as suffixOutside */
|
|
36
|
+
&:has(+ .mobius-button) {
|
|
37
|
+
border-radius: var(--input-border-radius);
|
|
38
|
+
border-top-right-radius: 0;
|
|
39
|
+
border-bottom-right-radius: 0;
|
|
40
|
+
}
|
|
40
41
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
/* Focused */
|
|
43
|
+
&:focus-within {
|
|
44
|
+
border-color: var(--color-primary);
|
|
45
|
+
background-color: var(--color-background-input-active);
|
|
46
|
+
box-shadow: var(--box-shadow-default);
|
|
46
47
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
& .mobius-text-field__prefix-inside,
|
|
49
|
+
& .mobius-text-field__suffix-inside {
|
|
50
|
+
color: var(--color-primary);
|
|
51
|
+
}
|
|
50
52
|
}
|
|
51
|
-
}
|
|
52
53
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
/* Hovered */
|
|
55
|
+
&:hover:not(.--is-disabled):not(&.--is-invalid) {
|
|
56
|
+
border-color: var(--color-primary);
|
|
57
|
+
background-color: var(--color-background-input-active);
|
|
57
58
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
& .mobius-text-field__prefix-inside,
|
|
60
|
+
& .mobius-text-field__suffix-inside {
|
|
61
|
+
color: var(--color-primary);
|
|
62
|
+
}
|
|
61
63
|
}
|
|
62
|
-
}
|
|
63
64
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
65
|
+
/* Disabled */
|
|
66
|
+
&.--is-disabled {
|
|
67
|
+
background-color: var(--color-background-light);
|
|
68
|
+
border-color: var(--color-border-medium);
|
|
69
|
+
color: var(--color-text-light);
|
|
70
|
+
cursor: not-allowed;
|
|
71
|
+
}
|
|
71
72
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
73
|
+
/* Invalid */
|
|
74
|
+
&.--is-invalid:not(.--is-disabled) {
|
|
75
|
+
border-color: var(--color-error);
|
|
76
|
+
background-color: var(--color-error-background);
|
|
77
|
+
color: var(--color-error);
|
|
78
|
+
}
|
|
77
79
|
}
|
|
78
|
-
}
|
|
79
80
|
|
|
80
|
-
.mobius-text-field__prefix-outside,
|
|
81
|
-
.mobius-text-field__suffix-outside {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
81
|
+
.mobius-text-field__prefix-outside,
|
|
82
|
+
.mobius-text-field__suffix-outside {
|
|
83
|
+
&.mobius-text {
|
|
84
|
+
margin-top: 0;
|
|
85
|
+
margin-bottom: 0;
|
|
86
|
+
align-self: center;
|
|
87
|
+
}
|
|
86
88
|
}
|
|
87
|
-
}
|
|
88
89
|
|
|
89
|
-
.mobius-text-field__prefix-outside {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
90
|
+
.mobius-text-field__prefix-outside {
|
|
91
|
+
&.mobius-button {
|
|
92
|
+
border-radius: var(--input-border-radius);
|
|
93
|
+
border-top-right-radius: 0;
|
|
94
|
+
border-bottom-right-radius: 0;
|
|
94
95
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
96
|
+
/* When Button is prefixOutside, input */
|
|
97
|
+
/* container should flatten left borders */
|
|
98
|
+
& + .mobius-text-field__input-wrapper {
|
|
99
|
+
border-top-left-radius: 0;
|
|
100
|
+
border-bottom-left-radius: 0;
|
|
101
|
+
}
|
|
100
102
|
}
|
|
101
|
-
}
|
|
102
103
|
|
|
103
|
-
|
|
104
|
-
|
|
104
|
+
&.mobius-text {
|
|
105
|
+
padding-right: var(--size-sm);
|
|
106
|
+
}
|
|
105
107
|
}
|
|
106
|
-
}
|
|
107
108
|
|
|
108
|
-
.mobius-text-field__suffix-outside {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
109
|
+
.mobius-text-field__suffix-outside {
|
|
110
|
+
&.mobius-button {
|
|
111
|
+
border-radius: var(--input-border-radius);
|
|
112
|
+
border-top-left-radius: 0;
|
|
113
|
+
border-bottom-left-radius: 0;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
&.mobius-text {
|
|
117
|
+
padding-left: var(--size-sm);
|
|
118
|
+
}
|
|
113
119
|
}
|
|
114
120
|
|
|
115
|
-
|
|
121
|
+
.mobius-text-field__prefix-inside {
|
|
116
122
|
padding-left: var(--size-sm);
|
|
117
123
|
}
|
|
118
|
-
}
|
|
119
124
|
|
|
120
|
-
.mobius-text-
|
|
121
|
-
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.mobius-text-field__suffix-inside {
|
|
125
|
-
padding-right: var(--size-sm);
|
|
126
|
-
}
|
|
125
|
+
.mobius-text-field__suffix-inside {
|
|
126
|
+
padding-right: var(--size-sm);
|
|
127
|
+
}
|
|
127
128
|
|
|
128
|
-
.mobius-text-field__prefix-inside,
|
|
129
|
-
.mobius-text-field__suffix-inside {
|
|
130
|
-
|
|
129
|
+
.mobius-text-field__prefix-inside,
|
|
130
|
+
.mobius-text-field__suffix-inside {
|
|
131
|
+
display: flex;
|
|
131
132
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
133
|
+
&:not(.--is-invalid):not(.--is-disabled) {
|
|
134
|
+
color: var(--color-primary);
|
|
135
|
+
}
|
|
135
136
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
137
|
+
&.mobius-button {
|
|
138
|
+
min-height: 100%;
|
|
139
|
+
border-radius: 0;
|
|
140
|
+
align-self: stretch;
|
|
141
|
+
}
|
|
141
142
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
143
|
+
&.mobius-text {
|
|
144
|
+
margin-top: 0;
|
|
145
|
+
margin-bottom: 0;
|
|
146
|
+
}
|
|
145
147
|
}
|
|
146
|
-
}
|
|
147
148
|
|
|
148
|
-
.mobius-text-field__input {
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
149
|
+
.mobius-text-field__input {
|
|
150
|
+
flex: 1 1 0;
|
|
151
|
+
padding: var(--input-field-padding);
|
|
152
|
+
border: none;
|
|
153
|
+
background-color: transparent;
|
|
154
|
+
box-sizing: border-box;
|
|
155
|
+
font-family: var(--font-family);
|
|
156
|
+
font-size: var(--font-size-regular);
|
|
157
|
+
color: currentColor;
|
|
158
|
+
outline: 0;
|
|
159
|
+
margin: 0;
|
|
160
|
+
max-width: var(--text-input-max-width);
|
|
161
|
+
|
|
162
|
+
&::placeholder {
|
|
163
|
+
color: var(--color-text-medium);
|
|
164
|
+
}
|
|
164
165
|
|
|
165
|
-
|
|
166
|
-
|
|
166
|
+
&.--is-disabled {
|
|
167
|
+
cursor: not-allowed;
|
|
168
|
+
}
|
|
167
169
|
}
|
|
168
170
|
}
|