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