@servicetitan/design-system 11.4.2 → 11.5.2-beta.1
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/ActionMenu/ActionMenu.css +2 -1
- package/dist/components/ActionMenu/ActionMenu.css.map +1 -1
- package/dist/components/ActionMenu/ActionMenuItem.js +1 -1
- package/dist/components/ActionMenu/ActionMenuItem.js.map +1 -1
- package/dist/components/ActionMenu/index.css +2 -1
- package/dist/components/ActionMenu/index.css.map +1 -1
- package/dist/components/Announcement/Announcement.css.map +1 -1
- package/dist/components/Announcement/index.css.map +1 -1
- package/dist/components/AnvilSelect/AnvilSelect.css +6 -9
- package/dist/components/AnvilSelect/AnvilSelect.css.map +1 -1
- package/dist/components/AnvilSelect/AnvilSelect.d.ts +1 -0
- package/dist/components/AnvilSelect/AnvilSelect.js +6 -3
- package/dist/components/AnvilSelect/AnvilSelect.js.map +1 -1
- package/dist/components/AnvilSelect/components/DrillIn.css.map +1 -1
- package/dist/components/AnvilSelect/components/DrillIn.js +2 -2
- package/dist/components/AnvilSelect/components/DrillIn.js.map +1 -1
- package/dist/components/AnvilSelect/components/Trigger.css +13 -16
- package/dist/components/AnvilSelect/components/Trigger.css.map +1 -1
- package/dist/components/AnvilSelect/index.css +13 -16
- package/dist/components/AnvilSelect/index.css.map +1 -1
- package/dist/components/Avatar/Avatar.css.map +1 -1
- package/dist/components/Avatar/index.css.map +1 -1
- package/dist/components/BackLink/BackLink.css.map +1 -1
- package/dist/components/BackLink/index.css.map +1 -1
- package/dist/components/Banner/Banner.css.map +1 -1
- package/dist/components/Banner/index.css.map +1 -1
- package/dist/components/BodyText/BodyText.css.map +1 -1
- package/dist/components/BodyText/index.css.map +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.css.map +1 -1
- package/dist/components/Breadcrumb/index.css.map +1 -1
- package/dist/components/Button/Button.css.map +1 -1
- package/dist/components/Button/index.css.map +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.css +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.css.map +1 -1
- package/dist/components/ButtonGroup/index.css +1 -1
- package/dist/components/ButtonGroup/index.css.map +1 -1
- package/dist/components/Card/Card.css.map +1 -1
- package/dist/components/Card/CardSection.css.map +1 -1
- package/dist/components/Card/index.css.map +1 -1
- package/dist/components/Checkbox/Checkbox.css +6 -9
- package/dist/components/Checkbox/Checkbox.css.map +1 -1
- package/dist/components/Checkbox/index.css +6 -9
- package/dist/components/Checkbox/index.css.map +1 -1
- package/dist/components/ColorPicker/ColorPicker.css.map +1 -1
- package/dist/components/ColorPicker/index.css.map +1 -1
- package/dist/components/Container/Container.css.map +1 -1
- package/dist/components/Container/index.css.map +1 -1
- package/dist/components/DataList/DataList.css.map +1 -1
- package/dist/components/DataList/index.css.map +1 -1
- package/dist/components/DatePicker/DatePicker.css +6 -9
- package/dist/components/DatePicker/DatePicker.css.map +1 -1
- package/dist/components/DatePicker/index.css +6 -9
- package/dist/components/DatePicker/index.css.map +1 -1
- package/dist/components/DateRangePicker/DateRangePicker.css.map +1 -1
- package/dist/components/DateRangePicker/index.css.map +1 -1
- package/dist/components/Dialog/Dialog.css.map +1 -1
- package/dist/components/Dialog/index.css.map +1 -1
- package/dist/components/Divider/Divider.css.map +1 -1
- package/dist/components/Divider/index.css.map +1 -1
- package/dist/components/Drawer/Drawer.css.map +1 -1
- package/dist/components/Drawer/index.css.map +1 -1
- package/dist/components/Dropdown/DropdownIcon.js +1 -4
- package/dist/components/Dropdown/DropdownIcon.js.map +1 -1
- package/dist/components/Eyebrow/Eyebrow.css.map +1 -1
- package/dist/components/Eyebrow/index.css.map +1 -1
- package/dist/components/FilePicker/FilePicker.css.map +1 -1
- package/dist/components/FilePicker/index.css.map +1 -1
- package/dist/components/FilterButton/FilterButton.css +1 -0
- package/dist/components/FilterButton/FilterButton.css.map +1 -1
- package/dist/components/FilterButton/index.css +1 -0
- package/dist/components/FilterButton/index.css.map +1 -1
- package/dist/components/FlowCard/FlowCardStep.css.map +1 -1
- package/dist/components/FlowCard/index.css.map +1 -1
- package/dist/components/Form/Form.css +6 -9
- package/dist/components/Form/Form.css.map +1 -1
- package/dist/components/Form/index.css +6 -9
- package/dist/components/Form/index.css.map +1 -1
- package/dist/components/FormField/FormField.css +19 -88
- package/dist/components/FormField/FormField.css.map +1 -1
- package/dist/components/FormField/index.css +19 -88
- package/dist/components/FormField/index.css.map +1 -1
- package/dist/components/FormGroup/FormGroup.css.map +1 -1
- package/dist/components/FormGroup/index.css.map +1 -1
- package/dist/components/Frame/Frame.css.map +1 -1
- package/dist/components/Frame/index.css.map +1 -1
- package/dist/components/Grid/GridBreakpoints.css +0 -680
- package/dist/components/Grid/GridBreakpoints.css.map +1 -1
- package/dist/components/Grid/GridColumn.css +0 -152
- package/dist/components/Grid/GridColumn.css.map +1 -1
- package/dist/components/Grid/index.css +0 -832
- package/dist/components/Grid/index.css.map +1 -1
- package/dist/components/Headline/Headline.css.map +1 -1
- package/dist/components/Headline/index.css.map +1 -1
- package/dist/components/Icon/Icon.css.map +1 -1
- package/dist/components/Icon/Icon.js +2 -2
- package/dist/components/Icon/Icon.js.map +1 -1
- package/dist/components/Icon/index.css.map +1 -1
- package/dist/components/InlineEdit/InlineEdit.css +6 -5
- package/dist/components/InlineEdit/InlineEdit.css.map +1 -1
- package/dist/components/InlineEdit/InlineEdit.d.ts +4 -1
- package/dist/components/InlineEdit/InlineEdit.js +43 -25
- package/dist/components/InlineEdit/InlineEdit.js.map +1 -1
- package/dist/components/InlineEdit/index.css +6 -5
- package/dist/components/InlineEdit/index.css.map +1 -1
- package/dist/components/Input/Input.css +52 -117
- package/dist/components/Input/Input.css.map +1 -1
- package/dist/components/Input/Input.test.d.ts +1 -0
- package/dist/components/Input/Input.test.js +53 -0
- package/dist/components/Input/Input.test.js.map +1 -0
- package/dist/components/Input/index.css +52 -117
- package/dist/components/Input/index.css.map +1 -1
- package/dist/components/Label/Label.css.map +1 -1
- package/dist/components/Label/index.css.map +1 -1
- package/dist/components/Mask/Mask.css.map +1 -1
- package/dist/components/Mask/index.css.map +1 -1
- package/dist/components/MoreDetails/MoreDetails.css.map +1 -1
- package/dist/components/MoreDetails/index.css.map +1 -1
- package/dist/components/OptionList/OptionList.css.map +1 -1
- package/dist/components/OptionList/index.css.map +1 -1
- package/dist/components/Page/Page.css.map +1 -1
- package/dist/components/Page/index.css.map +1 -1
- package/dist/components/ProgressTracker/ProgressTracker.css.map +1 -1
- package/dist/components/ProgressTracker/ProgressTrackerStep.css.map +1 -1
- package/dist/components/ProgressTracker/index.css.map +1 -1
- package/dist/components/Radio/Radio.css +6 -9
- package/dist/components/Radio/Radio.css.map +1 -1
- package/dist/components/Radio/index.css +6 -9
- package/dist/components/Radio/index.css.map +1 -1
- package/dist/components/Select/Select.css.map +1 -1
- package/dist/components/Select/index.css.map +1 -1
- package/dist/components/SideNav/SideNav.css.map +1 -1
- package/dist/components/SideNav/SideNavGroup.css.map +1 -1
- package/dist/components/SideNav/SideNavItem.css.map +1 -1
- package/dist/components/SideNav/index.css.map +1 -1
- package/dist/components/Sidebar/SidebarSection.css.map +1 -1
- package/dist/components/Sidebar/index.css.map +1 -1
- package/dist/components/Snackbar/Snackbar.css.map +1 -1
- package/dist/components/Snackbar/index.css.map +1 -1
- package/dist/components/Stack/Stack.css.map +1 -1
- package/dist/components/Stack/index.css.map +1 -1
- package/dist/components/StatusLight/StatusLight.css.map +1 -1
- package/dist/components/StatusLight/index.css.map +1 -1
- package/dist/components/Tab/Tab.css.map +1 -1
- package/dist/components/Tab/index.css.map +1 -1
- package/dist/components/TabGroup/TabGroup.css.map +1 -1
- package/dist/components/TabGroup/index.css.map +1 -1
- package/dist/components/Table/Table.css +34 -27
- package/dist/components/Table/Table.css.map +1 -1
- package/dist/components/Table/index.css +34 -27
- package/dist/components/Table/index.css.map +1 -1
- package/dist/components/Tag/Tag.css +4 -2
- package/dist/components/Tag/Tag.css.map +1 -1
- package/dist/components/Tag/index.css +4 -2
- package/dist/components/Tag/index.css.map +1 -1
- package/dist/components/Takeover/TakeoverFooter.css.map +1 -1
- package/dist/components/Takeover/TakeoverHeader.css.map +1 -1
- package/dist/components/Takeover/TakeoverSection.css.map +1 -1
- package/dist/components/Takeover/index.css.map +1 -1
- package/dist/components/Text/Text.css.map +1 -1
- package/dist/components/Text/index.css.map +1 -1
- package/dist/components/TextArea/TextArea.css +33 -91
- package/dist/components/TextArea/TextArea.css.map +1 -1
- package/dist/components/TextArea/index.css +33 -91
- package/dist/components/TextArea/index.css.map +1 -1
- package/dist/components/Thumbnail/Thumbnail.css.map +1 -1
- package/dist/components/Thumbnail/index.css.map +1 -1
- package/dist/components/TimePicker/TimePicker.css.map +1 -1
- package/dist/components/TimePicker/index.css.map +1 -1
- package/dist/components/Toast/Toast.css.map +1 -1
- package/dist/components/Toast/ToastGroup.css.map +1 -1
- package/dist/components/Toast/index.css.map +1 -1
- package/dist/components/ToggleSwitch/ToggleSwitch.css.map +1 -1
- package/dist/components/ToggleSwitch/index.css.map +1 -1
- package/dist/components/Togglebox/Togglebox.css.map +1 -1
- package/dist/components/Togglebox/index.css.map +1 -1
- package/dist/components/Tooltip/Tooltip.css.map +1 -1
- package/dist/components/Tooltip/index.css.map +1 -1
- package/dist/components/index.css +161 -984
- package/dist/components/index.css.map +1 -1
- package/dist/global/index.css +1 -1
- package/dist/global/version.css +1 -1
- package/dist/internal/Overlay/Overlay.css.map +1 -1
- package/dist/internal/Overlay/index.css.map +1 -1
- package/dist/internal/Popper/Popper.css.map +1 -1
- package/dist/internal/Popper/Popper.js +4 -1
- package/dist/internal/Popper/Popper.js.map +1 -1
- package/dist/internal/Popper/index.css.map +1 -1
- package/dist/internal/Portal/Portal.js +2 -3
- package/dist/internal/Portal/Portal.js.map +1 -1
- package/dist/internal/index.css.map +1 -1
- package/dist/system-light.css +11 -1
- package/dist/system-light.css.map +1 -1
- package/dist/system-light.min.css +1 -1
- package/dist/system.css +229 -1011
- package/dist/system.css.map +1 -1
- package/dist/system.min.css +2 -2
- package/dist/themes/index.css +25 -28
- package/dist/themes/index.css.map +1 -1
- package/dist/themes/kendo/index.css +25 -28
- package/dist/themes/kendo/index.css.map +1 -1
- package/dist/utilities/AnvilProvider.d.ts +3 -0
- package/dist/utilities/AnvilProvider.js +6 -0
- package/dist/utilities/AnvilProvider.js.map +1 -0
- package/dist/utilities/ThemeProvider.d.ts +0 -2
- package/dist/utilities/ThemeProvider.js +17 -26
- package/dist/utilities/ThemeProvider.js.map +1 -1
- package/dist/utilities/index.d.ts +1 -0
- package/dist/utilities/index.js +1 -0
- package/dist/utilities/index.js.map +1 -1
- package/package.json +9 -10
|
@@ -1,68 +1,5 @@
|
|
|
1
1
|
/* Hide element visually, keeping it focusable (with keyboard) and available for screen-readers */
|
|
2
2
|
/* Variables */
|
|
3
|
-
/* Form Sizes */
|
|
4
|
-
.Form--mini {
|
|
5
|
-
font-size: 0.8125rem;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.Form--tiny {
|
|
9
|
-
font-size: 0.875rem;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.Form--small {
|
|
13
|
-
font-size: 0.9375rem;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.Form--medium {
|
|
17
|
-
font-size: 1rem;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.Form--large {
|
|
21
|
-
font-size: 1.125rem;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.Form--big {
|
|
25
|
-
font-size: 1.3125rem;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.Form--huge {
|
|
29
|
-
font-size: 1.4375rem;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.Form--massive {
|
|
33
|
-
font-size: 1.6875rem;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/* Stretching of Input when placed in a Field */
|
|
37
|
-
.Form .FormField .Input,
|
|
38
|
-
.Form .FormGroup .FormField .Input {
|
|
39
|
-
width: 100%;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/* Global variables for Input, TextArea, Select */
|
|
43
|
-
/* FormField error */
|
|
44
|
-
/* Backward compatibility with Semantic.React Fields */
|
|
45
|
-
.Fields.Fields--error .Field .Input > input,
|
|
46
|
-
.Fields.Fields--error .Field .TextArea,
|
|
47
|
-
.Field.Field--error .Input > input,
|
|
48
|
-
.Field.Field--error .TextArea {
|
|
49
|
-
background-color: #ffece9;
|
|
50
|
-
border-color: #e63717;
|
|
51
|
-
color: #e63717;
|
|
52
|
-
box-shadow: none;
|
|
53
|
-
}
|
|
54
|
-
.Fields.Fields--error .Field .Input > input:focus,
|
|
55
|
-
.Fields.Fields--error .Field .TextArea:focus,
|
|
56
|
-
.Field.Field--error .Input > input:focus,
|
|
57
|
-
.Field.Field--error .TextArea:focus {
|
|
58
|
-
background-color: #ffece9;
|
|
59
|
-
border-color: #e63717;
|
|
60
|
-
color: #e63717;
|
|
61
|
-
box-shadow: none;
|
|
62
|
-
-webkit-appearance: none;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/* Input variables are stored in Form.scss */
|
|
66
3
|
/* Paddings are set in em's for internal parts of .Input */
|
|
67
4
|
.Input.Input > .ButtonGroup:first-child > .ButtonGroup__InternalWrapper > .ButtonGroup__Item:first-child > .Button, .Input.Input > .Input__InnerWrapper:first-child,
|
|
68
5
|
.Input.Input > .Dropdown:first-child,
|
|
@@ -101,6 +38,7 @@
|
|
|
101
38
|
border-bottom-right-radius: 0;
|
|
102
39
|
}
|
|
103
40
|
|
|
41
|
+
/* Styling for :autofill pseudo-class */
|
|
104
42
|
/*** Input styles ***/
|
|
105
43
|
.Input {
|
|
106
44
|
/* Set color on root of component. It can be overridden after the @include */
|
|
@@ -111,8 +49,7 @@
|
|
|
111
49
|
-moz-osx-font-smoothing: grayscale;
|
|
112
50
|
position: relative;
|
|
113
51
|
display: inline-flex;
|
|
114
|
-
color: #
|
|
115
|
-
background-color: #ffffff;
|
|
52
|
+
color: var(--colorsTextDefault, #141414);
|
|
116
53
|
/* Sizes */
|
|
117
54
|
/*** States ***/
|
|
118
55
|
/* Readonly */
|
|
@@ -156,9 +93,9 @@
|
|
|
156
93
|
padding: 0;
|
|
157
94
|
max-width: 100%;
|
|
158
95
|
/* ... */
|
|
159
|
-
background-color: #ffffff;
|
|
160
|
-
border: 1px solid #dfe0e1;
|
|
161
|
-
color: #
|
|
96
|
+
background-color: var(--colorsSurfaceDefault, #ffffff);
|
|
97
|
+
border: 1px solid var(--colorsBorderGrey, #dfe0e1);
|
|
98
|
+
color: var(--colorsTextDefault, #141414);
|
|
162
99
|
border-radius: 3px;
|
|
163
100
|
transition: background 0.2s ease-in-out, box-shadow 0.1s ease-in-out, border-color 0.2s ease-in-out;
|
|
164
101
|
box-shadow: none;
|
|
@@ -179,101 +116,99 @@
|
|
|
179
116
|
font-family: inherit;
|
|
180
117
|
font-size: inherit;
|
|
181
118
|
outline: none;
|
|
182
|
-
-webkit-tap-highlight-color: rgba(255, 255, 255, 0);
|
|
183
119
|
text-align: left;
|
|
184
120
|
line-height: 1.5;
|
|
121
|
+
-webkit-tap-highlight-color: rgba(255, 255, 255, 0);
|
|
185
122
|
/* ... */
|
|
186
123
|
background-color: transparent;
|
|
187
124
|
border: none;
|
|
188
|
-
color: #
|
|
125
|
+
color: var(--colorsTextDefault, #141414);
|
|
189
126
|
transition: background 0.2s ease-in-out, box-shadow 0.1s ease-in-out, border-color 0.2s ease-in-out;
|
|
190
127
|
box-shadow: none;
|
|
191
128
|
/* Chrome autofill styling */
|
|
192
129
|
}
|
|
193
130
|
.Input > .Input__InnerWrapper > input[readonly] {
|
|
194
|
-
background-color: #f7f7f7;
|
|
131
|
+
background-color: var(--colorsSurfaceGreySubdued, #f7f7f7);
|
|
195
132
|
}
|
|
196
133
|
.Input > .Input__InnerWrapper > input::placeholder {
|
|
197
|
-
color:
|
|
134
|
+
color: var(--colorsTextDefault, #141414);
|
|
135
|
+
opacity: 0.4;
|
|
136
|
+
}
|
|
137
|
+
.Input > .Input__InnerWrapper > input:autofill {
|
|
138
|
+
box-shadow: 0 0 0 100px rgba(255, 190, 0, 0.08) inset !important;
|
|
139
|
+
}
|
|
140
|
+
.Input > .Input__InnerWrapper > input:autofill + .InputAddon {
|
|
141
|
+
box-shadow: 0 0 0 100px rgba(255, 190, 0, 0.08) inset !important;
|
|
198
142
|
}
|
|
199
|
-
.Input > .Input__InnerWrapper > input
|
|
200
|
-
box-shadow: 0 0 0 100px
|
|
201
|
-
|
|
143
|
+
.Input > .Input__InnerWrapper > input:-webkit-autofill {
|
|
144
|
+
box-shadow: 0 0 0 100px rgba(255, 190, 0, 0.08) inset !important;
|
|
145
|
+
}
|
|
146
|
+
.Input > .Input__InnerWrapper > input:-webkit-autofill + .InputAddon {
|
|
147
|
+
box-shadow: 0 0 0 100px rgba(255, 190, 0, 0.08) inset !important;
|
|
202
148
|
}
|
|
203
149
|
.Input.Input--readonly > .Input__InnerWrapper {
|
|
204
|
-
background-color: #f7f7f7;
|
|
150
|
+
background-color: var(--colorsSurfaceGreySubdued, #f7f7f7);
|
|
205
151
|
}
|
|
206
152
|
.Input.Input--disabled, .Input:not(.Input--disabled) input[disabled] {
|
|
207
153
|
opacity: 0.6;
|
|
208
154
|
}
|
|
209
|
-
.Input.Input--disabled
|
|
210
|
-
|
|
155
|
+
.Input.Input--disabled > .Input__InnerWrapper, .Input:not(.Input--disabled) input[disabled] {
|
|
156
|
+
background-color: var(--colorsSurfaceGreySubdued, #f7f7f7);
|
|
211
157
|
}
|
|
212
|
-
.Input.Input--disabled
|
|
213
|
-
background-color: #f7f7f7;
|
|
158
|
+
.Input.Input--disabled > .Input__InnerWrapper, .Input.Input--disabled > .Input__InnerWrapper *, .Input:not(.Input--disabled) input[disabled], .Input:not(.Input--disabled) input[disabled] * {
|
|
214
159
|
pointer-events: none;
|
|
215
160
|
}
|
|
216
|
-
.Input.Input--disabled
|
|
217
|
-
color:
|
|
161
|
+
.Input.Input--disabled > .Input__InnerWrapper::placeholder, .Input:not(.Input--disabled) input[disabled]::placeholder {
|
|
162
|
+
color: var(--colorsTextDefault, #141414);
|
|
163
|
+
opacity: 0.4;
|
|
218
164
|
}
|
|
219
165
|
.Input:focus-within, .Input.Input--focus {
|
|
220
166
|
box-shadow: 0 0 0 3px var(--colorsFocusRingPrimary, #a9d1ff);
|
|
221
167
|
border-radius: 3px;
|
|
222
168
|
}
|
|
223
169
|
.Input:focus-within > .Input__InnerWrapper, .Input.Input--focus > .Input__InnerWrapper {
|
|
224
|
-
background-color: #ffffff;
|
|
225
|
-
border-color: #2270ee;
|
|
170
|
+
background-color: var(--colorsSurfaceDefault, #ffffff);
|
|
171
|
+
border-color: var(--colorsBorderPrimary, #2270ee);
|
|
226
172
|
}
|
|
227
173
|
.Input:focus-within > .Input__InnerWrapper > input, .Input.Input--focus > .Input__InnerWrapper > input {
|
|
228
|
-
color: #
|
|
229
|
-
}
|
|
230
|
-
.Input:focus-within > .Input__InnerWrapper > input::-webkit-autofill, .Input.Input--focus > .Input__InnerWrapper > input::-webkit-autofill {
|
|
231
|
-
box-shadow: 0 0 0 100px #fffff0 inset !important;
|
|
232
|
-
border-color: #d5c315 !important;
|
|
233
|
-
}
|
|
234
|
-
.Input:focus-within > .Input__InnerWrapper > .InputAddon, .Input.Input--focus > .Input__InnerWrapper > .InputAddon {
|
|
235
|
-
border-color: transparent;
|
|
174
|
+
color: var(--colorsTextDefault, #141414);
|
|
236
175
|
}
|
|
237
176
|
.Input.Input--error {
|
|
238
177
|
/* Error Focus */
|
|
239
178
|
}
|
|
240
179
|
.Input.Input--error > .Input__InnerWrapper {
|
|
241
|
-
background-color: #ffece9;
|
|
242
|
-
border-color: #e63717;
|
|
180
|
+
background-color: var(--colorsSurfaceCriticalSubdued, #ffece9);
|
|
181
|
+
border-color: var(--colorsBorderCritical, #e63717);
|
|
243
182
|
}
|
|
244
183
|
.Input.Input--error > .Input__InnerWrapper > input {
|
|
245
|
-
color: #e63717;
|
|
184
|
+
color: var(--colorsTextCritical, #e63717);
|
|
246
185
|
box-shadow: none;
|
|
247
186
|
/* Error Placeholder */
|
|
248
|
-
/* Error */
|
|
249
187
|
}
|
|
250
|
-
.Input.Input--error > .Input__InnerWrapper > input
|
|
251
|
-
color:
|
|
188
|
+
.Input.Input--error > .Input__InnerWrapper > input::placeholder {
|
|
189
|
+
color: var(--colorsTextCritical, #e63717);
|
|
190
|
+
opacity: 0.4;
|
|
252
191
|
}
|
|
253
|
-
.Input.Input--error > .Input__InnerWrapper > input
|
|
254
|
-
|
|
192
|
+
.Input.Input--error > .Input__InnerWrapper > input:autofill {
|
|
193
|
+
box-shadow: none !important;
|
|
255
194
|
}
|
|
256
|
-
.Input.Input--error > .Input__InnerWrapper > input
|
|
257
|
-
|
|
195
|
+
.Input.Input--error > .Input__InnerWrapper > input:autofill + .InputAddon {
|
|
196
|
+
box-shadow: none !important;
|
|
258
197
|
}
|
|
259
|
-
.Input.Input--error > .Input__InnerWrapper > input
|
|
260
|
-
box-shadow:
|
|
261
|
-
|
|
198
|
+
.Input.Input--error > .Input__InnerWrapper > input:-webkit-autofill {
|
|
199
|
+
box-shadow: none !important;
|
|
200
|
+
}
|
|
201
|
+
.Input.Input--error > .Input__InnerWrapper > input:-webkit-autofill + .InputAddon {
|
|
202
|
+
box-shadow: none !important;
|
|
262
203
|
}
|
|
263
204
|
.Input.Input--error > .Input__InnerWrapper > .InputAddon {
|
|
264
|
-
color: #e63717;
|
|
205
|
+
color: var(--colorsTextCritical, #e63717);
|
|
265
206
|
}
|
|
266
207
|
.Input.Input--error:focus-within, .Input.Input--error.Input--focus {
|
|
267
|
-
box-shadow: 0 0 0 3px #ffb2a0;
|
|
268
|
-
}
|
|
269
|
-
.Input.Input--error:focus-within input, .Input.Input--error.Input--focus input {
|
|
270
|
-
border-color: #e63717;
|
|
271
|
-
}
|
|
272
|
-
.Input.Input--error:focus-within .InputAddon, .Input.Input--error.Input--focus .InputAddon {
|
|
273
|
-
border-color: #e63717;
|
|
208
|
+
box-shadow: 0 0 0 3px var(--colorsFocusRingCritical, #ffb2a0);
|
|
274
209
|
}
|
|
275
|
-
.Input.Input--error .InputAddon
|
|
276
|
-
color: #e63717;
|
|
210
|
+
.Input.Input--error .InputAddon .a-Icon {
|
|
211
|
+
color: var(--colorsTextCritical, #e63717);
|
|
277
212
|
}
|
|
278
213
|
.Input.Input--loading.Input--loading .Spinner {
|
|
279
214
|
line-height: 1;
|
|
@@ -292,7 +227,7 @@
|
|
|
292
227
|
pointer-events: none;
|
|
293
228
|
}
|
|
294
229
|
.Input > .Input__InnerWrapper .a-Icon {
|
|
295
|
-
color: #737475;
|
|
230
|
+
color: var(--colorsTextSubdued, #737475);
|
|
296
231
|
transition: opacity 0.3s ease;
|
|
297
232
|
line-height: inherit;
|
|
298
233
|
}
|
|
@@ -307,7 +242,7 @@
|
|
|
307
242
|
font-size: 16px;
|
|
308
243
|
z-index: 0;
|
|
309
244
|
/* Differ from Semantic UI */
|
|
310
|
-
color: #737475;
|
|
245
|
+
color: var(--colorsTextSubdued, #737475);
|
|
311
246
|
height: auto;
|
|
312
247
|
display: flex;
|
|
313
248
|
align-items: center;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../../../src/utilities/_visually-hidden.scss","../../../src/components/
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../../src/utilities/_visually-hidden.scss","../../../src/components/Input/Input.scss","../../../node_modules/@servicetitan/tokens/dist/tokens.scss","../../../src/utilities/_component-reset.scss","../../../src/utilities/_font-smoothing.scss"],"names":[],"mappings":"AAAA;ACIA;AA2BA;AAmBA;AAAA;AAAA;EACC,wBC3CiB;ED4CjB,2BC5CiB;;;AD+ClB;AAAA;AAAA;EACC,yBChDiB;EDiDjB,4BCjDiB;;;ADoDlB;AAAA;AAAA;EACC;EACA;EACA;EACA;;;AAGD;AAAA;AAAA;EACC;EACA;;;AAGD;AAAA;AAAA;EACC;EACA;;;AAMD;AASA;AACA;AEzFC;EACA;AAEA;EACA;ECHC;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EAmRd,YARiB;EASjB;;AAEA;EACC;EACA;EACA;;AAIF;EACC;EACA;EACA,WCpLY;EDqLZ;AAEA;EACA,OApSc;EAqSd;EACA;EACA;EACA,YACC;;AAMF;EAA+D;;AAC/D;EAA8D;;AAC9D;EAA+D;;AAC/D;EAA8D;;AAE9D;EAAqE;;AACrE;EAAoE;;AACpE;EAAqE;;AACrE;EAAoE;;AAGpE;EAA0E;;AAE1E;EAAoE;;AACpE;EAAmE;;AACnE;EAAoE;;AACpE;EAAmE;;AAGnE;EACC,SAzTD;EA0TC,WCzNY;;AD2Nb;EAAsD,SAzTtD;;AA0TA;EAAuD,SAvTvD;;AAwTA;EAAsD,SArTtD;;AAwTA;EAGC;;AAyBA;AAAA;AAAA;EAGC;EACA;;AAEA;AAAA;AAAA;EAGC;;AAGD;AAAA;AAAA;EAGC;;AAMH;AAAA;EAEC;EACA;EACA;EACA;;AAID;EACC;;AAEA;EAAQ;;AAIT;EAAqE;;AACrE;EAAoE;;;AAGrE;EACC;IAAO;;EACP;IAAK","file":"Input.css"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { render } from '@testing-library/react';
|
|
3
|
+
import userEvent from '@testing-library/user-event';
|
|
4
|
+
import { Icon } from '../Icon/';
|
|
5
|
+
import { Form } from '../Form/';
|
|
6
|
+
import { Input } from '../Input/';
|
|
7
|
+
const FormInputIcon = () => {
|
|
8
|
+
const handleClick = () => console.warn('icon clicked');
|
|
9
|
+
const handleSubmit = () => console.warn('form submitted');
|
|
10
|
+
return (React.createElement(Form, { onSubmit: handleSubmit },
|
|
11
|
+
React.createElement(Input, { className: "i1", placeholder: "Placeholder", icon: React.createElement(Icon, { name: "help", onClick: handleClick }) })));
|
|
12
|
+
};
|
|
13
|
+
describe('test Input with an Icon.onClick inside', () => {
|
|
14
|
+
beforeEach(() => jest.spyOn(console, 'error'));
|
|
15
|
+
jest.spyOn(global.console, 'warn');
|
|
16
|
+
console.warn = jest.fn(); // Prevent actual console.warn from showing up in command line
|
|
17
|
+
const getElements = () => {
|
|
18
|
+
const { container } = render(React.createElement(FormInputIcon, null));
|
|
19
|
+
return [
|
|
20
|
+
container.querySelector('.i1 input'),
|
|
21
|
+
container.querySelector('.i1 .a-Icon'),
|
|
22
|
+
];
|
|
23
|
+
};
|
|
24
|
+
it('it should be focused on Input click', () => {
|
|
25
|
+
const [input, icon] = getElements();
|
|
26
|
+
expect(input).not.toHaveFocus();
|
|
27
|
+
expect(icon).not.toHaveFocus();
|
|
28
|
+
userEvent.click(input);
|
|
29
|
+
expect(input).toHaveFocus();
|
|
30
|
+
expect(icon).not.toHaveFocus();
|
|
31
|
+
console.warn('warn to count first call of console.warn');
|
|
32
|
+
expect(console.warn).toHaveBeenCalledTimes(1);
|
|
33
|
+
});
|
|
34
|
+
it('it should not call handleClick on enter keypress', () => {
|
|
35
|
+
const [input, icon] = getElements();
|
|
36
|
+
userEvent.click(input);
|
|
37
|
+
userEvent.keyboard('hello');
|
|
38
|
+
expect(input).toHaveFocus();
|
|
39
|
+
expect(icon).not.toHaveFocus();
|
|
40
|
+
userEvent.keyboard('{enter}');
|
|
41
|
+
expect(console.warn).toHaveBeenCalledTimes(2);
|
|
42
|
+
expect(console.warn).toBeCalledWith('form submitted');
|
|
43
|
+
});
|
|
44
|
+
it('it should call handleClick when click on Icon', () => {
|
|
45
|
+
const [input, icon] = getElements();
|
|
46
|
+
userEvent.click(icon);
|
|
47
|
+
expect(input).not.toHaveFocus();
|
|
48
|
+
expect(icon).toHaveFocus();
|
|
49
|
+
expect(console.warn).toHaveBeenCalledTimes(3);
|
|
50
|
+
expect(console.warn).toBeCalledWith('icon clicked');
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
//# sourceMappingURL=Input.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Input.test.js","sourceRoot":"","sources":["../../../src/components/Input/Input.test.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,EAAE;QACxD,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,WAAW,EAAE,CAAC;QAEpC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACtB,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC;QAChC,MAAM,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,CAAC;QAC3B,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC;QAC9C,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;IACrD,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,68 +1,5 @@
|
|
|
1
1
|
/* Hide element visually, keeping it focusable (with keyboard) and available for screen-readers */
|
|
2
2
|
/* Variables */
|
|
3
|
-
/* Form Sizes */
|
|
4
|
-
.Form--mini {
|
|
5
|
-
font-size: 0.8125rem;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.Form--tiny {
|
|
9
|
-
font-size: 0.875rem;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.Form--small {
|
|
13
|
-
font-size: 0.9375rem;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.Form--medium {
|
|
17
|
-
font-size: 1rem;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.Form--large {
|
|
21
|
-
font-size: 1.125rem;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.Form--big {
|
|
25
|
-
font-size: 1.3125rem;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.Form--huge {
|
|
29
|
-
font-size: 1.4375rem;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.Form--massive {
|
|
33
|
-
font-size: 1.6875rem;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/* Stretching of Input when placed in a Field */
|
|
37
|
-
.Form .FormField .Input,
|
|
38
|
-
.Form .FormGroup .FormField .Input {
|
|
39
|
-
width: 100%;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/* Global variables for Input, TextArea, Select */
|
|
43
|
-
/* FormField error */
|
|
44
|
-
/* Backward compatibility with Semantic.React Fields */
|
|
45
|
-
.Fields.Fields--error .Field .Input > input,
|
|
46
|
-
.Fields.Fields--error .Field .TextArea,
|
|
47
|
-
.Field.Field--error .Input > input,
|
|
48
|
-
.Field.Field--error .TextArea {
|
|
49
|
-
background-color: #ffece9;
|
|
50
|
-
border-color: #e63717;
|
|
51
|
-
color: #e63717;
|
|
52
|
-
box-shadow: none;
|
|
53
|
-
}
|
|
54
|
-
.Fields.Fields--error .Field .Input > input:focus,
|
|
55
|
-
.Fields.Fields--error .Field .TextArea:focus,
|
|
56
|
-
.Field.Field--error .Input > input:focus,
|
|
57
|
-
.Field.Field--error .TextArea:focus {
|
|
58
|
-
background-color: #ffece9;
|
|
59
|
-
border-color: #e63717;
|
|
60
|
-
color: #e63717;
|
|
61
|
-
box-shadow: none;
|
|
62
|
-
-webkit-appearance: none;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/* Input variables are stored in Form.scss */
|
|
66
3
|
/* Paddings are set in em's for internal parts of .Input */
|
|
67
4
|
.Input.Input > .ButtonGroup:first-child > .ButtonGroup__InternalWrapper > .ButtonGroup__Item:first-child > .Button, .Input.Input > .Input__InnerWrapper:first-child,
|
|
68
5
|
.Input.Input > .Dropdown:first-child,
|
|
@@ -101,6 +38,7 @@
|
|
|
101
38
|
border-bottom-right-radius: 0;
|
|
102
39
|
}
|
|
103
40
|
|
|
41
|
+
/* Styling for :autofill pseudo-class */
|
|
104
42
|
/*** Input styles ***/
|
|
105
43
|
.Input {
|
|
106
44
|
/* Set color on root of component. It can be overridden after the @include */
|
|
@@ -111,8 +49,7 @@
|
|
|
111
49
|
-moz-osx-font-smoothing: grayscale;
|
|
112
50
|
position: relative;
|
|
113
51
|
display: inline-flex;
|
|
114
|
-
color: #
|
|
115
|
-
background-color: #ffffff;
|
|
52
|
+
color: var(--colorsTextDefault, #141414);
|
|
116
53
|
/* Sizes */
|
|
117
54
|
/*** States ***/
|
|
118
55
|
/* Readonly */
|
|
@@ -156,9 +93,9 @@
|
|
|
156
93
|
padding: 0;
|
|
157
94
|
max-width: 100%;
|
|
158
95
|
/* ... */
|
|
159
|
-
background-color: #ffffff;
|
|
160
|
-
border: 1px solid #dfe0e1;
|
|
161
|
-
color: #
|
|
96
|
+
background-color: var(--colorsSurfaceDefault, #ffffff);
|
|
97
|
+
border: 1px solid var(--colorsBorderGrey, #dfe0e1);
|
|
98
|
+
color: var(--colorsTextDefault, #141414);
|
|
162
99
|
border-radius: 3px;
|
|
163
100
|
transition: background 0.2s ease-in-out, box-shadow 0.1s ease-in-out, border-color 0.2s ease-in-out;
|
|
164
101
|
box-shadow: none;
|
|
@@ -179,101 +116,99 @@
|
|
|
179
116
|
font-family: inherit;
|
|
180
117
|
font-size: inherit;
|
|
181
118
|
outline: none;
|
|
182
|
-
-webkit-tap-highlight-color: rgba(255, 255, 255, 0);
|
|
183
119
|
text-align: left;
|
|
184
120
|
line-height: 1.5;
|
|
121
|
+
-webkit-tap-highlight-color: rgba(255, 255, 255, 0);
|
|
185
122
|
/* ... */
|
|
186
123
|
background-color: transparent;
|
|
187
124
|
border: none;
|
|
188
|
-
color: #
|
|
125
|
+
color: var(--colorsTextDefault, #141414);
|
|
189
126
|
transition: background 0.2s ease-in-out, box-shadow 0.1s ease-in-out, border-color 0.2s ease-in-out;
|
|
190
127
|
box-shadow: none;
|
|
191
128
|
/* Chrome autofill styling */
|
|
192
129
|
}
|
|
193
130
|
.Input > .Input__InnerWrapper > input[readonly] {
|
|
194
|
-
background-color: #f7f7f7;
|
|
131
|
+
background-color: var(--colorsSurfaceGreySubdued, #f7f7f7);
|
|
195
132
|
}
|
|
196
133
|
.Input > .Input__InnerWrapper > input::placeholder {
|
|
197
|
-
color:
|
|
134
|
+
color: var(--colorsTextDefault, #141414);
|
|
135
|
+
opacity: 0.4;
|
|
136
|
+
}
|
|
137
|
+
.Input > .Input__InnerWrapper > input:autofill {
|
|
138
|
+
box-shadow: 0 0 0 100px rgba(255, 190, 0, 0.08) inset !important;
|
|
139
|
+
}
|
|
140
|
+
.Input > .Input__InnerWrapper > input:autofill + .InputAddon {
|
|
141
|
+
box-shadow: 0 0 0 100px rgba(255, 190, 0, 0.08) inset !important;
|
|
198
142
|
}
|
|
199
|
-
.Input > .Input__InnerWrapper > input
|
|
200
|
-
box-shadow: 0 0 0 100px
|
|
201
|
-
|
|
143
|
+
.Input > .Input__InnerWrapper > input:-webkit-autofill {
|
|
144
|
+
box-shadow: 0 0 0 100px rgba(255, 190, 0, 0.08) inset !important;
|
|
145
|
+
}
|
|
146
|
+
.Input > .Input__InnerWrapper > input:-webkit-autofill + .InputAddon {
|
|
147
|
+
box-shadow: 0 0 0 100px rgba(255, 190, 0, 0.08) inset !important;
|
|
202
148
|
}
|
|
203
149
|
.Input.Input--readonly > .Input__InnerWrapper {
|
|
204
|
-
background-color: #f7f7f7;
|
|
150
|
+
background-color: var(--colorsSurfaceGreySubdued, #f7f7f7);
|
|
205
151
|
}
|
|
206
152
|
.Input.Input--disabled, .Input:not(.Input--disabled) input[disabled] {
|
|
207
153
|
opacity: 0.6;
|
|
208
154
|
}
|
|
209
|
-
.Input.Input--disabled
|
|
210
|
-
|
|
155
|
+
.Input.Input--disabled > .Input__InnerWrapper, .Input:not(.Input--disabled) input[disabled] {
|
|
156
|
+
background-color: var(--colorsSurfaceGreySubdued, #f7f7f7);
|
|
211
157
|
}
|
|
212
|
-
.Input.Input--disabled
|
|
213
|
-
background-color: #f7f7f7;
|
|
158
|
+
.Input.Input--disabled > .Input__InnerWrapper, .Input.Input--disabled > .Input__InnerWrapper *, .Input:not(.Input--disabled) input[disabled], .Input:not(.Input--disabled) input[disabled] * {
|
|
214
159
|
pointer-events: none;
|
|
215
160
|
}
|
|
216
|
-
.Input.Input--disabled
|
|
217
|
-
color:
|
|
161
|
+
.Input.Input--disabled > .Input__InnerWrapper::placeholder, .Input:not(.Input--disabled) input[disabled]::placeholder {
|
|
162
|
+
color: var(--colorsTextDefault, #141414);
|
|
163
|
+
opacity: 0.4;
|
|
218
164
|
}
|
|
219
165
|
.Input:focus-within, .Input.Input--focus {
|
|
220
166
|
box-shadow: 0 0 0 3px var(--colorsFocusRingPrimary, #a9d1ff);
|
|
221
167
|
border-radius: 3px;
|
|
222
168
|
}
|
|
223
169
|
.Input:focus-within > .Input__InnerWrapper, .Input.Input--focus > .Input__InnerWrapper {
|
|
224
|
-
background-color: #ffffff;
|
|
225
|
-
border-color: #2270ee;
|
|
170
|
+
background-color: var(--colorsSurfaceDefault, #ffffff);
|
|
171
|
+
border-color: var(--colorsBorderPrimary, #2270ee);
|
|
226
172
|
}
|
|
227
173
|
.Input:focus-within > .Input__InnerWrapper > input, .Input.Input--focus > .Input__InnerWrapper > input {
|
|
228
|
-
color: #
|
|
229
|
-
}
|
|
230
|
-
.Input:focus-within > .Input__InnerWrapper > input::-webkit-autofill, .Input.Input--focus > .Input__InnerWrapper > input::-webkit-autofill {
|
|
231
|
-
box-shadow: 0 0 0 100px #fffff0 inset !important;
|
|
232
|
-
border-color: #d5c315 !important;
|
|
233
|
-
}
|
|
234
|
-
.Input:focus-within > .Input__InnerWrapper > .InputAddon, .Input.Input--focus > .Input__InnerWrapper > .InputAddon {
|
|
235
|
-
border-color: transparent;
|
|
174
|
+
color: var(--colorsTextDefault, #141414);
|
|
236
175
|
}
|
|
237
176
|
.Input.Input--error {
|
|
238
177
|
/* Error Focus */
|
|
239
178
|
}
|
|
240
179
|
.Input.Input--error > .Input__InnerWrapper {
|
|
241
|
-
background-color: #ffece9;
|
|
242
|
-
border-color: #e63717;
|
|
180
|
+
background-color: var(--colorsSurfaceCriticalSubdued, #ffece9);
|
|
181
|
+
border-color: var(--colorsBorderCritical, #e63717);
|
|
243
182
|
}
|
|
244
183
|
.Input.Input--error > .Input__InnerWrapper > input {
|
|
245
|
-
color: #e63717;
|
|
184
|
+
color: var(--colorsTextCritical, #e63717);
|
|
246
185
|
box-shadow: none;
|
|
247
186
|
/* Error Placeholder */
|
|
248
|
-
/* Error */
|
|
249
187
|
}
|
|
250
|
-
.Input.Input--error > .Input__InnerWrapper > input
|
|
251
|
-
color:
|
|
188
|
+
.Input.Input--error > .Input__InnerWrapper > input::placeholder {
|
|
189
|
+
color: var(--colorsTextCritical, #e63717);
|
|
190
|
+
opacity: 0.4;
|
|
252
191
|
}
|
|
253
|
-
.Input.Input--error > .Input__InnerWrapper > input
|
|
254
|
-
|
|
192
|
+
.Input.Input--error > .Input__InnerWrapper > input:autofill {
|
|
193
|
+
box-shadow: none !important;
|
|
255
194
|
}
|
|
256
|
-
.Input.Input--error > .Input__InnerWrapper > input
|
|
257
|
-
|
|
195
|
+
.Input.Input--error > .Input__InnerWrapper > input:autofill + .InputAddon {
|
|
196
|
+
box-shadow: none !important;
|
|
258
197
|
}
|
|
259
|
-
.Input.Input--error > .Input__InnerWrapper > input
|
|
260
|
-
box-shadow:
|
|
261
|
-
|
|
198
|
+
.Input.Input--error > .Input__InnerWrapper > input:-webkit-autofill {
|
|
199
|
+
box-shadow: none !important;
|
|
200
|
+
}
|
|
201
|
+
.Input.Input--error > .Input__InnerWrapper > input:-webkit-autofill + .InputAddon {
|
|
202
|
+
box-shadow: none !important;
|
|
262
203
|
}
|
|
263
204
|
.Input.Input--error > .Input__InnerWrapper > .InputAddon {
|
|
264
|
-
color: #e63717;
|
|
205
|
+
color: var(--colorsTextCritical, #e63717);
|
|
265
206
|
}
|
|
266
207
|
.Input.Input--error:focus-within, .Input.Input--error.Input--focus {
|
|
267
|
-
box-shadow: 0 0 0 3px #ffb2a0;
|
|
268
|
-
}
|
|
269
|
-
.Input.Input--error:focus-within input, .Input.Input--error.Input--focus input {
|
|
270
|
-
border-color: #e63717;
|
|
271
|
-
}
|
|
272
|
-
.Input.Input--error:focus-within .InputAddon, .Input.Input--error.Input--focus .InputAddon {
|
|
273
|
-
border-color: #e63717;
|
|
208
|
+
box-shadow: 0 0 0 3px var(--colorsFocusRingCritical, #ffb2a0);
|
|
274
209
|
}
|
|
275
|
-
.Input.Input--error .InputAddon
|
|
276
|
-
color: #e63717;
|
|
210
|
+
.Input.Input--error .InputAddon .a-Icon {
|
|
211
|
+
color: var(--colorsTextCritical, #e63717);
|
|
277
212
|
}
|
|
278
213
|
.Input.Input--loading.Input--loading .Spinner {
|
|
279
214
|
line-height: 1;
|
|
@@ -292,7 +227,7 @@
|
|
|
292
227
|
pointer-events: none;
|
|
293
228
|
}
|
|
294
229
|
.Input > .Input__InnerWrapper .a-Icon {
|
|
295
|
-
color: #737475;
|
|
230
|
+
color: var(--colorsTextSubdued, #737475);
|
|
296
231
|
transition: opacity 0.3s ease;
|
|
297
232
|
line-height: inherit;
|
|
298
233
|
}
|
|
@@ -307,7 +242,7 @@
|
|
|
307
242
|
font-size: 16px;
|
|
308
243
|
z-index: 0;
|
|
309
244
|
/* Differ from Semantic UI */
|
|
310
|
-
color: #737475;
|
|
245
|
+
color: var(--colorsTextSubdued, #737475);
|
|
311
246
|
height: auto;
|
|
312
247
|
display: flex;
|
|
313
248
|
align-items: center;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../../../src/utilities/_visually-hidden.scss","../../../src/components/
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../../src/utilities/_visually-hidden.scss","../../../src/components/Input/Input.scss","../../../node_modules/@servicetitan/tokens/dist/tokens.scss","../../../src/utilities/_component-reset.scss","../../../src/utilities/_font-smoothing.scss"],"names":[],"mappings":"AAAA;ACIA;AA2BA;AAmBA;AAAA;AAAA;EACC,wBC3CiB;ED4CjB,2BC5CiB;;;AD+ClB;AAAA;AAAA;EACC,yBChDiB;EDiDjB,4BCjDiB;;;ADoDlB;AAAA;AAAA;EACC;EACA;EACA;EACA;;;AAGD;AAAA;AAAA;EACC;EACA;;;AAG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,OA5QW;;AAmRb;EACC;EACA;EACA;EACA;EACA;;AASD;EACC;;AAGD;EACC,OAlRc;EAmRd,YARiB;EASjB;;AAEA;EACC;EACA;EACA;;AAIF;EACC;EACA;EACA,WCpLY;EDqLZ;AAEA;EACA,OApSc;EAqSd;EACA;EACA;EACA,YACC;;AAMF;EAA+D;;AAC/D;EAA8D;;AAC9D;EAA+D;;AAC/D;EAA8D;;AAE9D;EAAqE;;AACrE;EAAoE;;AACpE;EAAqE;;AACrE;EAAoE;;AAGpE;EAA0E;;AAE1E;EAAoE;;AACpE;EAAmE;;AACnE;EAAoE;;AACpE;EAAmE;;AAGnE;EACC,SAzTD;EA0TC,WCzNY;;AD2Nb;EAAsD,SAzTtD;;AA0TA;EAAuD,SAvTvD;;AAwTA;EAAsD,SArTtD;;AAwTA;EAGC;;AAyBA;AAAA;AAAA;EAGC;EACA;;AAEA;AAAA;AAAA;EAGC;;AAGD;AAAA;AAAA;EAGC;;AAMH;AAAA;EAEC;EACA;EACA;EACA;;AAID;EACC;;AAEA;EAAQ;;AAIT;EAAqE;;AACrE;EAAoE;;;AAGrE;EACC;IAAO;;EACP;IAAK","file":"index.css"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../../../src/utilities/_visually-hidden.scss","../../../src/components/Label/Label.scss","../../../src/utilities/_component-reset.scss","../../../node_modules/@servicetitan/tokens/dist/tokens.scss"],"names":[],"mappings":"AAAA;ACOA;ACNC;EACA;AAEA;EACA;EDKA,OAPc;EAQd,
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../../src/utilities/_visually-hidden.scss","../../../src/components/Label/Label.scss","../../../src/utilities/_component-reset.scss","../../../node_modules/@servicetitan/tokens/dist/tokens.scss"],"names":[],"mappings":"AAAA;ACOA;ACNC;EACA;AAEA;EACA;EDKA,OAPc;EAQd,WE4Ha;EF3Hb;;AAEA;EAAiB,OAVL;;AAYZ;EACC;;;AAIF;EACC,OAlBY;EAmBZ;;;AAGD;EACC,OAtBc;EAuBd,aE8EqB;EF7ErB;;;AAGD;EACC;EACA,OA7Bc;EA8Bd,aEiGc;EFhGd;;;AAIA;EACC;EACA","file":"Label.css"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../../../src/utilities/_visually-hidden.scss","../../../src/components/Label/Label.scss","../../../src/utilities/_component-reset.scss","../../../node_modules/@servicetitan/tokens/dist/tokens.scss"],"names":[],"mappings":"AAAA;ACOA;ACNC;EACA;AAEA;EACA;EDKA,OAPc;EAQd,
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../../src/utilities/_visually-hidden.scss","../../../src/components/Label/Label.scss","../../../src/utilities/_component-reset.scss","../../../node_modules/@servicetitan/tokens/dist/tokens.scss"],"names":[],"mappings":"AAAA;ACOA;ACNC;EACA;AAEA;EACA;EDKA,OAPc;EAQd,WE4Ha;EF3Hb;;AAEA;EAAiB,OAVL;;AAYZ;EACC;;;AAIF;EACC,OAlBY;EAmBZ;;;AAGD;EACC,OAtBc;EAuBd,aE8EqB;EF7ErB;;;AAGD;EACC;EACA,OA7Bc;EA8Bd,aEiGc;EFhGd;;;AAIA;EACC;EACA","file":"index.css"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../../../src/components/Mask/Mask.scss","../../../node_modules/@servicetitan/tokens/dist/tokens.scss"],"names":[],"mappings":"AAIA;AAEC;EACC;;;AAIF;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EAAoB,eCfH;;ADgBjB;EAAoB,eCfH;;ADiBjB;EAAM;;;AAGP;EACC,YA5BqB;EA6BrB;EACA;EACA;EACA;;;AAGD;AAAA;EAEC;EACA;;;AAGD;EACC;EACA;EACA;;;AAGD;EACC;EACA;EACA,
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../../src/components/Mask/Mask.scss","../../../node_modules/@servicetitan/tokens/dist/tokens.scss"],"names":[],"mappings":"AAIA;AAEC;EACC;;;AAIF;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EAAoB,eCfH;;ADgBjB;EAAoB,eCfH;;ADiBjB;EAAM;;;AAGP;EACC,YA5BqB;EA6BrB;EACA;EACA;EACA;;;AAGD;AAAA;EAEC;EACA;;;AAGD;EACC;EACA;EACA;;;AAGD;EACC;EACA;EACA,QCyEW;EDxEX;;AAEA;EACC;EACA,SCqEU","file":"Mask.css"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../../../src/components/Mask/Mask.scss","../../../node_modules/@servicetitan/tokens/dist/tokens.scss"],"names":[],"mappings":"AAIA;AAEC;EACC;;;AAIF;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EAAoB,eCfH;;ADgBjB;EAAoB,eCfH;;ADiBjB;EAAM;;;AAGP;EACC,YA5BqB;EA6BrB;EACA;EACA;EACA;;;AAGD;AAAA;EAEC;EACA;;;AAGD;EACC;EACA;EACA;;;AAGD;EACC;EACA;EACA,
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../../src/components/Mask/Mask.scss","../../../node_modules/@servicetitan/tokens/dist/tokens.scss"],"names":[],"mappings":"AAIA;AAEC;EACC;;;AAIF;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EAAoB,eCfH;;ADgBjB;EAAoB,eCfH;;ADiBjB;EAAM;;;AAGP;EACC,YA5BqB;EA6BrB;EACA;EACA;EACA;;;AAGD;AAAA;EAEC;EACA;;;AAGD;EACC;EACA;EACA;;;AAGD;EACC;EACA;EACA,QCyEW;EDxEX;;AAEA;EACC;EACA,SCqEU","file":"index.css"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../../../src/components/MoreDetails/MoreDetails.scss","../../../node_modules/@servicetitan/tokens/dist/tokens.scss"],"names":[],"mappings":"AAKA;EACC;EACA,kBALoB;EAMpB;EACA,OANc;EAOd,
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../../src/components/MoreDetails/MoreDetails.scss","../../../node_modules/@servicetitan/tokens/dist/tokens.scss"],"names":[],"mappings":"AAKA;EACC;EACA,kBALoB;EAMpB;EACA,OANc;EAOd,aC0Hc;EDzHd,aCoIkB;EDnIlB,aCkIkB;EDjIlB,WC2Ha;;ADzHb;EACC,WCyHY;;ADtHb;EACC,WCoHY;;ADjHb;EACC,WC+GY;;AD5Gb;EACC,WC0GY","file":"MoreDetails.css"}
|