@bpmn-io/form-js-carbon-styles 1.4.0 → 1.5.0-alpha.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/package.json CHANGED
@@ -1,9 +1,7 @@
1
1
  {
2
2
  "name": "@bpmn-io/form-js-carbon-styles",
3
- "version": "1.4.0",
3
+ "version": "1.5.0-alpha.0",
4
4
  "description": "Custom carbon styles for form-js",
5
- "main": "src/carbon-styles.js",
6
- "types": "src/types/carbon-styles.d.ts",
7
5
  "scripts": {
8
6
  "all": "run-s test",
9
7
  "test": "karma start",
@@ -20,17 +18,13 @@
20
18
  "url": "https://github.com/bpmn-io"
21
19
  },
22
20
  "devDependencies": {
23
- "@bpmn-io/form-js-viewer": "^1.4.0",
21
+ "@bpmn-io/form-js-viewer": "^1.5.0-alpha.0",
24
22
  "@carbon/elements": "^11.19.1",
25
23
  "@types/styled-components": "^5.1.26",
26
24
  "styled-components": "^6.0.0"
27
25
  },
28
- "peerDependencies": {
29
- "@carbon/elements": ">=11",
30
- "styled-components": ">=5"
31
- },
32
26
  "files": [
33
27
  "src"
34
28
  ],
35
- "gitHead": "cf256b38f256abf7b4d676ea5cd2bdf796b08f31"
29
+ "gitHead": "dd79ef1e87281d69eef0c052069ce4347d1a7468"
36
30
  }
@@ -1,5 +1,7 @@
1
- // todo(pinussilvestrus): consider moving away from styled-components,
2
- // cf. https://github.com/bpmn-io/form-js/issues/633
1
+ /**
2
+ * DEPRECATED: This file is deprecated and will be removed with one of the next releases.
3
+ */
4
+
3
5
  import { css, createGlobalStyle } from 'styled-components';
4
6
  import { rem } from '@carbon/elements';
5
7
 
@@ -0,0 +1,1204 @@
1
+ @use "sass:math";
2
+
3
+ @function rem($value) {
4
+ $remValue: math.div($value, 16) + rem;
5
+ @return $remValue;
6
+ }
7
+
8
+ @mixin getBaseInputStyles($height) {
9
+ color: var(--cds-text-primary);
10
+ border-radius: 0;
11
+ border: none;
12
+ border-bottom: 1px solid var(--cds-border-strong);
13
+ height: $height;
14
+ font-size: var(--cds-body-short-01-font-size);
15
+ font-weight: var(--cds-body-short-01-font-weight);
16
+ line-height: var(--cds-body-short-01-line-height);
17
+ letter-spacing: var(--cds-body-short-01-letter-spacing);
18
+
19
+ &:focus {
20
+ outline: 2px solid var(--cds-focus);
21
+ outline-offset: -2px;
22
+ }
23
+
24
+ &::placeholder {
25
+ color: var(--cds-text-placeholder);
26
+ }
27
+ }
28
+
29
+ @mixin getSelectArrowStyles($arrowRightPosition) {
30
+ color: var(--cds-text-primary);
31
+ background-color: var(--cds-field);
32
+ cursor: pointer;
33
+ appearance: none;
34
+ background-repeat: no-repeat;
35
+ background-position: right $arrowRightPosition bottom 50%;
36
+ }
37
+
38
+ // Global styles /////////////
39
+
40
+ .fjs-container {
41
+ width: 100%;
42
+ height: min-content;
43
+
44
+ .cds--grid {
45
+ padding: 0;
46
+ }
47
+
48
+ .fjs-form {
49
+ background-color: transparent;
50
+ color: var(--cds-text-primary);
51
+ padding: 0;
52
+ }
53
+
54
+ @media (width < 66rem) {
55
+ // Carbon lg width breakpoint
56
+ .fjs-layout-column .fjs-form-field {
57
+ margin-left: 0;
58
+ margin-right: 0;
59
+ }
60
+ }
61
+
62
+ .fjs-input-group {
63
+ margin: 0;
64
+ }
65
+ }
66
+
67
+ // Themed icons /////////////
68
+
69
+ .cds--g10 {
70
+ .fjs-container {
71
+
72
+ .fjs-form-field-number .fjs-input-group {
73
+ .fjs-number-arrow-container {
74
+ .fjs-number-arrow-down {
75
+ background-image: url("data:image/svg+xml;base64,PHN2ZyBmb2N1c2FibGU9ImZhbHNlIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWlkWU1pZCBtZWV0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9IiMxNjE2MTYiIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDMyIDMyIiBhcmlhLWhpZGRlbj0idHJ1ZSI+PHBhdGggZD0iTTggMTVIMjRWMTdIOHoiIC8+PC9zdmc+") }
76
+
77
+ .fjs-number-arrow-up {
78
+ background-image: url("data:image/svg+xml;base64,PHN2ZyBmb2N1c2FibGU9ImZhbHNlIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWlkWU1pZCBtZWV0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9IiMxNjE2MTYiIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDMyIDMyIiBhcmlhLWhpZGRlbj0idHJ1ZSI+PHBhdGggZD0iTTE3IDE1TDE3IDggMTUgOCAxNSAxNSA4IDE1IDggMTcgMTUgMTcgMTUgMjQgMTcgMjQgMTcgMTcgMjQgMTcgMjQgMTV6IiAvPjwvc3ZnPg==");
79
+ }
80
+
81
+ &.fjs-disabled .fjs-number-arrow-up {
82
+ background-image: url("data:image/svg+xml;base64,PHN2ZyBmb2N1c2FibGU9ImZhbHNlIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWlkWU1pZCBtZWV0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9InJnYmEoMjIsIDIyLCAyMiwgMC4yNSkiIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDMyIDMyIiBhcmlhLWhpZGRlbj0idHJ1ZSI+PHBhdGggZD0iTTE3IDE1TDE3IDggMTUgOCAxNSAxNSA4IDE1IDggMTcgMTUgMTcgMTUgMjQgMTcgMjQgMTcgMTcgMjQgMTcgMjQgMTV6IiAvPjwvc3ZnPg==");
83
+ }
84
+
85
+ &.fjs-disabled .fjs-number-arrow-down {
86
+ background-image: url("data:image/svg+xml;base64,PHN2ZyBmb2N1c2FibGU9ImZhbHNlIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWlkWU1pZCBtZWV0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9InJnYmEoMjIsIDIyLCAyMiwgMC4yNSkiIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDMyIDMyIiBhcmlhLWhpZGRlbj0idHJ1ZSI+PHBhdGggZD0iTTggMTVIMjRWMTdIOHoiIC8+PC9zdmc+");
87
+ }
88
+ }
89
+ }
90
+
91
+ .fjs-form-field-select {
92
+ .fjs-input-group {
93
+ background-image: url("data:image/svg+xml;base64,PHN2ZyBmb2N1c2FibGU9ImZhbHNlIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWlkWU1pZCBtZWV0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9IiMxNjE2MTYiIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2IiBhcmlhLWhpZGRlbj0idHJ1ZSI+PHBhdGggZD0iTTggMTFMMyA2IDMuNyA1LjMgOCA5LjYgMTIuMyA1LjMgMTMgNnoiPjwvcGF0aD48L3N2Zz4=");
94
+ }
95
+
96
+ &.fjs-readonly {
97
+ .fjs-input-group {
98
+ background-image: url("data:image/svg+xml;base64,PHN2ZyBmb2N1c2FibGU9ImZhbHNlIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWlkWU1pZCBtZWV0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9InJnYmEoMjIsIDIyLCAyMiwgMC4yNSkiIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2IiBhcmlhLWhpZGRlbj0idHJ1ZSI+PHBhdGggZD0iTTggMTFMMyA2IDMuNyA1LjMgOCA5LjYgMTIuMyA1LjMgMTMgNnoiPjwvcGF0aD48L3N2Zz4=");
99
+ }
100
+ }
101
+
102
+ &.fjs-disabled {
103
+ .fjs-input-group {
104
+ background-image: url("data:image/svg+xml;base64,PHN2ZyBmb2N1c2FibGU9ImZhbHNlIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWlkWU1pZCBtZWV0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9InJnYmEoMjIsIDIyLCAyMiwgMC4yNSkiIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2IiBhcmlhLWhpZGRlbj0idHJ1ZSI+PHBhdGggZD0iTTggMTFMMyA2IDMuNyA1LjMgOCA5LjYgMTIuMyA1LjMgMTMgNnoiPjwvcGF0aD48L3N2Zz4=");
105
+ }
106
+ }
107
+ }
108
+
109
+ .fjs-form-field-datetime {
110
+ select {
111
+ background-image: url("data:image/svg+xml;base64,PHN2ZyBmb2N1c2FibGU9ImZhbHNlIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWlkWU1pZCBtZWV0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9IiMxNjE2MTYiIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2IiBhcmlhLWhpZGRlbj0idHJ1ZSI+PHBhdGggZD0iTTggMTFMMyA2IDMuNyA1LjMgOCA5LjYgMTIuMyA1LjMgMTMgNnoiPjwvcGF0aD48L3N2Zz4=");
112
+ }
113
+ }
114
+ }
115
+ }
116
+
117
+ .cds--g100 {
118
+ .fjs-container {
119
+
120
+ .fjs-form-field-number .fjs-input-group {
121
+ .fjs-number-arrow-container {
122
+ .fjs-number-arrow-down {
123
+ background-image: url("data:image/svg+xml;base64,PHN2ZyBmb2N1c2FibGU9ImZhbHNlIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWlkWU1pZCBtZWV0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9IiNmNGY0ZjQiIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDMyIDMyIiBhcmlhLWhpZGRlbj0idHJ1ZSI+PHBhdGggZD0iTTggMTVIMjRWMTdIOHoiIC8+PC9zdmc+");
124
+ }
125
+
126
+ .fjs-number-arrow-up {
127
+ background-image: url("data:image/svg+xml;base64,PHN2ZyBmb2N1c2FibGU9ImZhbHNlIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWlkWU1pZCBtZWV0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9IiNmNGY0ZjQiIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDMyIDMyIiBhcmlhLWhpZGRlbj0idHJ1ZSI+PHBhdGggZD0iTTE3IDE1TDE3IDggMTUgOCAxNSAxNSA4IDE1IDggMTcgMTUgMTcgMTUgMjQgMTcgMjQgMTcgMTcgMjQgMTcgMjQgMTV6IiAvPjwvc3ZnPg==");
128
+ }
129
+
130
+ &.fjs-disabled .fjs-number-arrow-up {
131
+ background-image: url("data:image/svg+xml;base64,PHN2ZyBmb2N1c2FibGU9ImZhbHNlIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWlkWU1pZCBtZWV0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9InJnYmEoMjQ0LCAyNDQsIDI0NCwgMC4yNSkiIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDMyIDMyIiBhcmlhLWhpZGRlbj0idHJ1ZSI+PHBhdGggZD0iTTE3IDE1TDE3IDggMTUgOCAxNSAxNSA4IDE1IDggMTcgMTUgMTcgMTUgMjQgMTcgMjQgMTcgMTcgMjQgMTcgMjQgMTV6IiAvPjwvc3ZnPg==");
132
+ }
133
+
134
+ &.fjs-disabled .fjs-number-arrow-down {
135
+ background-image: url("data:image/svg+xml;base64,PHN2ZyBmb2N1c2FibGU9ImZhbHNlIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWlkWU1pZCBtZWV0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9InJnYmEoMjQ0LCAyNDQsIDI0NCwgMC4yNSkiIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDMyIDMyIiBhcmlhLWhpZGRlbj0idHJ1ZSI+PHBhdGggZD0iTTggMTVIMjRWMTdIOHoiIC8+PC9zdmc+")
136
+ }
137
+ }
138
+ }
139
+
140
+ .fjs-form-field-select {
141
+ .fjs-input-group {
142
+ background-image: url("data:image/svg+xml;base64,PHN2ZyBmb2N1c2FibGU9ImZhbHNlIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWlkWU1pZCBtZWV0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9IiNmNGY0ZjQiIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2IiBhcmlhLWhpZGRlbj0idHJ1ZSI+PHBhdGggZD0iTTggMTFMMyA2IDMuNyA1LjMgOCA5LjYgMTIuMyA1LjMgMTMgNnoiPjwvcGF0aD48L3N2Zz4=");
143
+ }
144
+
145
+ &.fjs-readonly {
146
+ .fjs-input-group {
147
+ background-image: url("data:image/svg+xml;base64,PHN2ZyBmb2N1c2FibGU9ImZhbHNlIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWlkWU1pZCBtZWV0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9InJnYmEoMjQ0LCAyNDQsIDI0NCwgMC4yNSkiIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2IiBhcmlhLWhpZGRlbj0idHJ1ZSI+PHBhdGggZD0iTTggMTFMMyA2IDMuNyA1LjMgOCA5LjYgMTIuMyA1LjMgMTMgNnoiPjwvcGF0aD48L3N2Zz4=");
148
+ }
149
+ }
150
+
151
+ &.fjs-disabled {
152
+ .fjs-input-group {
153
+ background-image: url("data:image/svg+xml;base64,PHN2ZyBmb2N1c2FibGU9ImZhbHNlIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWlkWU1pZCBtZWV0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9InJnYmEoMjQ0LCAyNDQsIDI0NCwgMC4yNSkiIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2IiBhcmlhLWhpZGRlbj0idHJ1ZSI+PHBhdGggZD0iTTggMTFMMyA2IDMuNyA1LjMgOCA5LjYgMTIuMyA1LjMgMTMgNnoiPjwvcGF0aD48L3N2Zz4=");
154
+ }
155
+ }
156
+ }
157
+
158
+ .fjs-form-field-datetime {
159
+ select {
160
+ background-image: url("data:image/svg+xml;base64,PHN2ZyBmb2N1c2FibGU9ImZhbHNlIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWlkWU1pZCBtZWV0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9IiNmNGY0ZjQiIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2IiBhcmlhLWhpZGRlbj0idHJ1ZSI+PHBhdGggZD0iTTggMTFMMyA2IDMuNyA1LjMgOCA5LjYgMTIuMyA1LjMgMTMgNnoiPjwvcGF0aD48L3N2Zz4=");
161
+ }
162
+ }
163
+ }
164
+ }
165
+
166
+ // Markdown styles /////////////
167
+
168
+ .fjs-container .fjs-form-field.fjs-form-field-text .markup {
169
+ font-size: var(--cds-body-long-01-font-size);
170
+ font-weight: var(--cds-body-long-01-font-weight);
171
+ line-height: var(--cds-body-long-01-line-height);
172
+ letter-spacing: var(--cds-body-long-01-letter-spacing);
173
+
174
+ h1 {
175
+ font-size: var(--cds-productive-heading-06-font-size);
176
+ font-weight: var(--cds-productive-heading-06-font-weight);
177
+ line-height: var(--cds-productive-heading-06-line-height);
178
+ letter-spacing: var(--cds-productive-heading-06-letter-spacing);
179
+ }
180
+
181
+ h2 {
182
+ font-size: var(--cds-productive-heading-05-font-size);
183
+ font-weight: var(--cds-productive-heading-05-font-weight);
184
+ line-height: var(--cds-productive-heading-05-line-height);
185
+ letter-spacing: var(--cds-productive-heading-05-letter-spacing);
186
+ }
187
+
188
+ h3 {
189
+ font-size: var(--cds-productive-heading-04-font-size);
190
+ font-weight: var(--cds-productive-heading-04-font-weight);
191
+ line-height: var(--cds-productive-heading-04-line-height);
192
+ letter-spacing: var(--cds-productive-heading-04-letter-spacing);
193
+ }
194
+
195
+ h4 {
196
+ font-size: var(--cds-productive-heading-03-font-size);
197
+ font-weight: var(--cds-productive-heading-03-font-weight);
198
+ line-height: var(--cds-productive-heading-03-line-height);
199
+ letter-spacing: var(--cds-productive-heading-03-letter-spacing);
200
+ }
201
+
202
+ h5 {
203
+ font-size: var(--cds-productive-heading-02-font-size);
204
+ font-weight: var(--cds-productive-heading-02-font-weight);
205
+ line-height: var(--cds-productive-heading-02-line-height);
206
+ letter-spacing: var(--cds-productive-heading-02-letter-spacing);
207
+ }
208
+
209
+ h6 {
210
+ font-size: var(--cds-productive-heading-01-font-size);
211
+ font-weight: var(--cds-productive-heading-01-font-weight);
212
+ line-height: var(--cds-productive-heading-01-line-height);
213
+ letter-spacing: var(--cds-productive-heading-01-letter-spacing);
214
+ }
215
+
216
+ code {
217
+ font-family: var(--cds-code-02-font-family);
218
+ font-size: var(--cds-code-02-font-size);
219
+ font-weight: var(--cds-code-02-font-weight);
220
+ line-height: var(--cds-code-02-line-height);
221
+ letter-spacing: var(--cds-code-02-letter-spacing);
222
+ white-space: pre-wrap;
223
+ }
224
+
225
+ blockquote {
226
+ font-family: var(--cds-quotation-02-font-family);
227
+ font-size: var(--cds-quotation-02-font-size);
228
+ font-weight: var(--cds-quotation-02-font-weight);
229
+ line-height: var(--cds-quotation-02-line-height);
230
+ letter-spacing: var(--cds-quotation-02-letter-spacing);
231
+ }
232
+
233
+ ul,
234
+ ol {
235
+ box-sizing: border-box;
236
+ padding: 0;
237
+ border: 0;
238
+ margin: 0;
239
+ list-style: none;
240
+ }
241
+
242
+ ul {
243
+ margin-left: var(--cds-spacing-05);
244
+
245
+ li {
246
+ position: relative;
247
+
248
+ &:before {
249
+ position: absolute;
250
+ left: calc(-1 * var(--cds-spacing-05));
251
+ content: '–';
252
+ }
253
+ }
254
+ }
255
+
256
+ ol {
257
+ margin-left: var(--cds-spacing-05);
258
+
259
+ li {
260
+ position: relative;
261
+ counter-increment: item;
262
+
263
+ &:before {
264
+ position: absolute;
265
+ left: calc(-1 * var(--cds-spacing-05));
266
+ content: counter(item) '.';
267
+ }
268
+ }
269
+ }
270
+ }
271
+
272
+ // Anchor styles /////////////
273
+
274
+ .fjs-container .fjs-form-field-text a {
275
+ color: var(--cds-link-primary);
276
+ outline: none;
277
+ text-decoration: underline;
278
+ font-size: inherit;
279
+ font-weight: inherit;
280
+ line-height: var(--cds-body-compact-01-line-height);
281
+ letter-spacing: var(--cds-body-compact-01-letter-spacing);
282
+
283
+ &:hover {
284
+ color: var(--cds-link-primary-hover);
285
+ }
286
+
287
+ &:focus {
288
+ outline: 1px solid var(--cds-focus);
289
+ }
290
+
291
+ &:active, &:active:visited, &:active:visited:hover {
292
+ color: var(--cds-text-primary);
293
+ }
294
+
295
+ &:visited {
296
+ color: var(--cds-link-primary);
297
+ }
298
+
299
+ &:visited:hover {
300
+ color: var(--cds-link-primary-hover);
301
+ }
302
+ }
303
+
304
+ // Read-only styles /////////////
305
+
306
+ .fjs-container {
307
+ .fjs-readonly {
308
+ .fjs-input:read-only:not(:disabled),
309
+ .fjs-textarea:read-only:not(:disabled),
310
+ .fjs-select:read-only:not(:disabled),
311
+ &.fjs-taglist,
312
+ .fjs-input-group {
313
+ background-color: transparent;
314
+ }
315
+
316
+ &.fjs-form-field {
317
+ .fjs-input-group {
318
+ border-bottom: 1px solid var(--cds-border-subtle);
319
+ }
320
+ }
321
+
322
+ &.fjs-form-field-number {
323
+ .fjs-input-group .fjs-number-arrow-container {
324
+ background-color: transparent;
325
+
326
+ .fjs-number-arrow-up,
327
+ .fjs-number-arrow-down {
328
+ background-color: transparent;
329
+ pointer-events: none;
330
+ }
331
+ }
332
+ }
333
+
334
+ &.fjs-form-field:not(.fjs-form-field-datetime) {
335
+ .fjs-input-group .fjs-input-adornment {
336
+ background: transparent;
337
+ }
338
+ }
339
+
340
+ &.fjs-form-field-select {
341
+ .fjs-input-group {
342
+ cursor: unset;
343
+ background-color: transparent;
344
+
345
+ .fjs-input:read-only:not(:disabled) {
346
+ border-color: transparent;
347
+ }
348
+
349
+ .fjs-select-display {
350
+ color: var(--cds-text-primary);
351
+ }
352
+ }
353
+ }
354
+
355
+ &.fjs-form-field-datetime {
356
+ .fjs-input-group {
357
+ cursor: unset;
358
+
359
+ .fjs-input-adornment {
360
+ background-color: transparent;
361
+ }
362
+
363
+ .flatpickr-input {
364
+ cursor: unset;
365
+ }
366
+
367
+ .fjs-input-adornment svg {
368
+ cursor: unset;
369
+ }
370
+ }
371
+ }
372
+
373
+ &.fjs-form-field-checkbox,
374
+ &.fjs-form-field-radio,
375
+ &.fjs-form-field-checklist {
376
+ .fjs-input:read-only {
377
+ opacity: 1;
378
+ background-color: transparent;
379
+
380
+ &:before {
381
+ border-color: var(--cds-icon-disabled);
382
+ }
383
+ }
384
+
385
+ &.fjs-checked .fjs-input[type='checkbox'],
386
+ .fjs-form-field-label.fjs-checked .fjs-input[type='checkbox'] {
387
+ &:before {
388
+ border: 1px solid var(--cds-icon-disabled);
389
+ background: transparent;
390
+ }
391
+
392
+ &:after {
393
+ border-bottom: 2px solid var(--cds-icon-primary);
394
+ border-left: 2px solid var(--cds-icon-primary);
395
+ }
396
+ }
397
+ }
398
+
399
+ &.fjs-taglist .fjs-taglist-tag {
400
+ .fjs-taglist-tag-label {
401
+ padding: 2px 0px;
402
+ }
403
+ }
404
+ }
405
+ }
406
+
407
+ // Disabled styles /////////////
408
+
409
+ .fjs-container {
410
+ .fjs-disabled {
411
+ &.fjs-form-field-textfield .fjs-input,
412
+ &.fjs-form-field-datetime .fjs-input,
413
+ & .fjs-textarea:disabled,
414
+ & .fjs-taglist.fjs-disabled,
415
+ & .fjs-taglist.fjs-disabled .fjs-taglist-input,
416
+ &.fjs-form-field-select .fjs-input-group.disabled,
417
+ &.fjs-form-field-select .fjs-input-group.disabled .fjs-select-display,
418
+ &.fjs-form-field-select .fjs-input-group.disabled .fjs-input,
419
+ &.fjs-form-field .fjs-form-field-label,
420
+ &.fjs-form-field.fjs-form-field-radio .fjs-form-field-label,
421
+ &.fjs-form-field.fjs-form-field-checklist .fjs-form-field-label,
422
+ & .fjs-form-field-description {
423
+ color: var(--cds-text-disabled);
424
+ cursor: var(--cursor-disabled, not-allowed);
425
+ }
426
+
427
+ &.fjs-form-field-textfield .fjs-input-group,
428
+ &.fjs-form-field-datetime .fjs-input-group,
429
+ & .fjs-textarea:disabled,
430
+ & .fjs-taglist.fjs-disabled,
431
+ & .fjs-taglist.fjs-disabled .fjs-taglist-input,
432
+ &.fjs-form-field-select .fjs-input-group.disabled,
433
+ &.fjs-form-field-select .fjs-input-group.disabled .fjs-select-display,
434
+ &.fjs-form-field-select .fjs-input-group.disabled .fjs-input {
435
+ border: none;
436
+ }
437
+ }
438
+
439
+ .fjs-disabled.fjs-form-field-number .fjs-input-group {
440
+ border: none;
441
+ cursor: var(--cursor-disabled, not-allowed);
442
+ }
443
+
444
+ .fjs-disabled.fjs-form-field-number .fjs-input-group .fjs-input {
445
+ cursor: var(--cursor-disabled, not-allowed);
446
+ }
447
+
448
+ .fjs-form-field.fjs-disabled.fjs-checked .fjs-input[type='checkbox'] {
449
+ cursor: var(--cursor-disabled, not-allowed);
450
+ &:before {
451
+ border-color: var(--cds-icon-disabled);
452
+ background-color: var(--cds-icon-disabled);
453
+ cursor: var(--cursor-disabled, not-allowed);
454
+ }
455
+
456
+ &:after {
457
+ cursor: var(--cursor-disabled, not-allowed);
458
+ }
459
+ }
460
+
461
+ .fjs-form-field.fjs-disabled .fjs-input[type='checkbox'] {
462
+ cursor: var(--cursor-disabled, not-allowed);
463
+ &:before {
464
+ border-color: var(--cds-icon-disabled);
465
+ cursor: var(--cursor-disabled, not-allowed);
466
+ }
467
+ }
468
+
469
+ .fjs-form-field-datetime.fjs-disabled .fjs-input-group .fjs-input-adornment svg {
470
+ color: var(--cds-icon-disabled);
471
+ cursor: var(--cursor-disabled, not-allowed);
472
+ }
473
+
474
+ .fjs-taglist.fjs-disabled .fjs-taglist-tag {
475
+ background-color: var(--cds-layer-01);
476
+
477
+ .fjs-taglist-tag-label {
478
+ padding: 2px 0px;
479
+ opacity: 0.7;
480
+ color: var(--cds-text-on-color-disabled);
481
+ }
482
+ }
483
+ }
484
+
485
+ // Label, Description & Error styles /////////////
486
+
487
+ .fjs-container {
488
+ .fjs-form-field-label {
489
+ font-size: var(--cds-label-01-font-size);
490
+ font-weight: var(--cds-label-01-font-weight);
491
+ line-height: var(--cds-label-01-line-height);
492
+ letter-spacing: var(--cds-label-01-letter-spacing);
493
+ }
494
+
495
+ .fjs-form-field:not(.fjs-form-field-checkbox, .fjs-form-field-group)
496
+ .fjs-form-field-label:first-child {
497
+ margin: 0;
498
+ margin-bottom: var(--cds-spacing-03);
499
+ }
500
+
501
+ .fjs-form-field.fjs-form-field-radio
502
+ .fjs-form-field-label:not(:first-of-type),
503
+ .fjs-form-field.fjs-form-field-checklist
504
+ .fjs-form-field-label:not(:first-of-type) {
505
+ margin: 0;
506
+ margin-bottom: 0.1875rem;
507
+ }
508
+
509
+ .fjs-form-field.fjs-form-field-radio
510
+ .fjs-form-field-label:not(:first-of-type) {
511
+ min-height: #{rem(27)};
512
+ }
513
+
514
+ .fjs-form-field-description {
515
+ margin: 0;
516
+ margin-top: var(--cds-spacing-02);
517
+ font-size: var(--cds-helper-text-01-font-size);
518
+ font-weight: var(--cds-helper-text-01-font-weight);
519
+ line-height: var(--cds-helper-text-01-line-height);
520
+ letter-spacing: var(--cds-helper-text-01-letter-spacing);
521
+ }
522
+
523
+ .fjs-form-field-error {
524
+ margin: 0;
525
+ margin-top: var(--cds-spacing-02);
526
+ font-size: var(--cds-label-01-font-size);
527
+ font-weight: var(--cds-label-01-font-weight);
528
+ line-height: var(--cds-label-01-line-height);
529
+ letter-spacing: var(--cds-label-01-letter-spacing);
530
+ }
531
+
532
+ .fjs-has-errors .fjs-form-field-description {
533
+ display: none;
534
+ }
535
+ }
536
+
537
+ // Checkbox styles /////////////
538
+
539
+ .fjs-container {
540
+ .fjs-input[type='checkbox'],
541
+ .fjs-input[type='checkbox']:focus {
542
+ all: unset;
543
+ width: rem(6);
544
+ }
545
+
546
+ .fjs-form-field .fjs-input[type='checkbox'] {
547
+ position: relative;
548
+ display: flex;
549
+ min-height: rem(24);
550
+ padding-top: rem(3);
551
+ padding-left: rem(20);
552
+ cursor: pointer;
553
+ user-select: none;
554
+ font-size: var(--cds-body-short-01-font-size);
555
+ font-weight: var(--cds-body-short-01-font-weight);
556
+ line-height: var(--cds-body-short-01-line-height);
557
+ letter-spacing: var(--cds-body-short-01-letter-spacing);
558
+
559
+ &:before,
560
+ &:after {
561
+ box-sizing: border-box;
562
+ }
563
+
564
+ &:before {
565
+ position: absolute;
566
+ top: rem(3);
567
+ left: 0;
568
+ width: rem(16);
569
+ height: rem(16);
570
+ border: 1px solid var(--cds-icon-primary);
571
+ margin: rem(2) rem(2) rem(2) rem(3);
572
+ background-color: transparent;
573
+ border-radius: rem(1);
574
+ content: '';
575
+ }
576
+
577
+ &:after {
578
+ position: absolute;
579
+ top: rem(9);
580
+ left: rem(7);
581
+ width: rem(9);
582
+ height: rem(5);
583
+ border-bottom: 2px solid var(--cds-icon-inverse);
584
+ border-left: 2px solid var(--cds-icon-inverse);
585
+ margin-top: rem(-3);
586
+ background: 0 0;
587
+ content: '';
588
+ transform: scale(0) rotate(-45deg);
589
+ transform-origin: bottom right;
590
+ }
591
+ }
592
+
593
+ .fjs-form-field .fjs-input[type='checkbox']:focus {
594
+ &:before {
595
+ outline: 2px solid var(--cds-focus);
596
+ outline-offset: rem(1);
597
+ }
598
+ }
599
+
600
+ .fjs-form-field.fjs-checked .fjs-input[type='checkbox'],
601
+ .fjs-form-field
602
+ .fjs-form-field-label.fjs-checked
603
+ .fjs-input[type='checkbox'] {
604
+ &:before {
605
+ border: none;
606
+ border-width: 1px;
607
+ background-color: var(--cds-icon-primary);
608
+ }
609
+
610
+ &:after {
611
+ transform: scale(1) rotate(-45deg);
612
+ }
613
+ }
614
+
615
+ .fjs-form-field-checklist .fjs-form-field-label:not(:first-of-type) {
616
+ font-size: var(--cds-body-short-01-font-size);
617
+ font-weight: var(--cds-body-short-01-font-weight);
618
+ line-height: var(--cds-body-short-01-line-height);
619
+ letter-spacing: var(--cds-body-short-01-letter-spacing);
620
+ color: var(--cds-text-primary);
621
+ }
622
+
623
+ .fjs-form-field-checkbox .fjs-form-field-label {
624
+ font-size: var(--cds-body-short-01-font-size);
625
+ font-weight: var(--cds-body-short-01-font-weight);
626
+ line-height: var(--cds-body-short-01-line-height);
627
+ letter-spacing: var(--cds-body-short-01-letter-spacing);
628
+ color: var(--cds-text-primary);
629
+ }
630
+ }
631
+
632
+ // Taglist styles /////////////
633
+
634
+ .fjs-container {
635
+ .fjs-taglist {
636
+ display: flex;
637
+ align-items: center;
638
+ min-height: 2.5rem;
639
+ height: unset !important;
640
+ }
641
+
642
+ .fjs-taglist:focus-within {
643
+ outline: 2px solid var(--cds-focus);
644
+ outline-offset: -2px;
645
+ }
646
+
647
+ .fjs-taglist .fjs-taglist-input {
648
+ &,
649
+ &::placeholder {
650
+ color: var(--cds-text-primary);
651
+ }
652
+ }
653
+
654
+ .fjs-taglist .fjs-taglist-tag {
655
+ font-size: var(--cds-label-01-font-size);
656
+ font-weight: var(--cds-label-01-font-weight);
657
+ line-height: var(--cds-label-01-line-height);
658
+ letter-spacing: var(--cds-label-01-letter-spacing);
659
+ max-width: 100%;
660
+ padding: 0 0.5rem;
661
+ border-radius: 0.9375rem;
662
+ word-break: break-word;
663
+ min-width: auto;
664
+ display: inline-flex;
665
+ align-items: center;
666
+ justify-content: center;
667
+
668
+ & .fjs-taglist-tag-label {
669
+ padding: 0;
670
+ max-width: 100%;
671
+ text-overflow: ellipsis;
672
+ white-space: nowrap;
673
+ }
674
+
675
+ & .fjs-taglist-tag-remove {
676
+ all: unset;
677
+ width: 1.5rem;
678
+ height: 1.5rem;
679
+ border-radius: 50%;
680
+ display: flex;
681
+ flex-shrink: 0;
682
+ align-items: center;
683
+ justify-content: center;
684
+ padding: 0;
685
+ border: 0;
686
+ margin: 0 rem(-8) 0 0.125rem;
687
+ cursor: pointer;
688
+
689
+ & svg {
690
+ all: unset;
691
+ color: var(--cds-icon-inverse);
692
+ }
693
+
694
+ &:focus {
695
+ background-color: transparent;
696
+ outline: 1px solid var(--cds-focus-inverse);
697
+ }
698
+ }
699
+ }
700
+ }
701
+
702
+ // Radio styles /////////////
703
+
704
+ .fjs-container {
705
+ .fjs-form-field-radio {
706
+ .fjs-input {
707
+ appearance: none;
708
+ width: 0;
709
+ margin: 0;
710
+ margin-right: calc(#{rem(18)} + var(--cds-spacing-03));
711
+ position: relative;
712
+ height: #{rem(18)};
713
+ outline: none;
714
+
715
+ &:focus:before {
716
+ outline: 2px solid var(--cds-focus);
717
+ outline-offset: 1.5px;
718
+ }
719
+
720
+ &:before {
721
+ position: absolute;
722
+ top: 0;
723
+ left: 0;
724
+ width: #{rem(18)};
725
+ height: #{rem(18)};
726
+ border: 1px solid var(--cds-icon-primary);
727
+ background-color: transparent;
728
+ border-radius: 50%;
729
+ content: '';
730
+ }
731
+ }
732
+
733
+ .fjs-checked .fjs-input:after {
734
+ position: relative;
735
+ top: 0;
736
+ left: 0;
737
+ display: inline-block;
738
+ width: #{rem(18)};
739
+ height: #{rem(18)};
740
+ background-color: var(--cds-icon-primary);
741
+ border-radius: 50%;
742
+ content: '';
743
+ transform: scale(0.5);
744
+ }
745
+
746
+ &.fjs-disabled .fjs-input:before {
747
+ border-color: var(--cds-icon-disabled);
748
+ }
749
+
750
+ &.fjs-disabled .fjs-checked .fjs-input:after {
751
+ background-color: var(--cds-icon-disabled);
752
+ }
753
+
754
+ .fjs-form-field-label:not(:first-of-type) {
755
+ font-size: var(--cds-body-short-01-font-size);
756
+ font-weight: var(--cds-body-short-01-font-weight);
757
+ line-height: var(--cds-body-short-01-line-height);
758
+ letter-spacing: var(--cds-body-short-01-letter-spacing);
759
+ color: var(--cds-text-primary);
760
+ }
761
+ }
762
+ }
763
+
764
+ // Button styles /////////////
765
+
766
+ .fjs-container {
767
+ .fjs-form-field.fjs-form-field-button .fjs-button {
768
+ font-size: var(--cds-body-short-01-font-size);
769
+ font-weight: var(--cds-body-short-01-font-weight);
770
+ line-height: var(--cds-body-short-01-line-height);
771
+ letter-spacing: var(--cds-body-short-01-letter-spacing);
772
+ min-height: #{rem(32)};
773
+ padding: calc(0.375rem - 3px) 60px calc(0.375rem - 3px) 12px;
774
+ text-align: left;
775
+ color: var(--cds-button-tertiary);
776
+ border: 1px solid var(--cds-button-tertiary);
777
+ border-radius: 0;
778
+ background-color: transparent;
779
+ cursor: pointer;
780
+
781
+ &:hover {
782
+ color: var(--cds-text-inverse);
783
+ background-color: var(--cds-button-tertiary-hover);
784
+ }
785
+
786
+ &:focus {
787
+ border-color: var(--cds-focus);
788
+ box-shadow: inset 0 0 0 1px var(--cds-focus),
789
+ inset 0 0 0 2px var(--cds-background);
790
+ color: var(--cds-text-inverse);
791
+ background-color: var(--cds-button-tertiary);
792
+ }
793
+
794
+ &:active {
795
+ border-color: transparent;
796
+ background-color: var(--cds-button-tertiary-active);
797
+ color: var(--cds-text-inverse);
798
+ }
799
+
800
+ &:disabled {
801
+ border: 1px solid var(--cds-button-disabled);
802
+ background: transparent;
803
+ box-shadow: none;
804
+ color: var(--cds-text-on-color-disabled);
805
+ cursor: var(--cursor-disabled, not-allowed);
806
+ outline: none;
807
+ }
808
+
809
+ &[type='submit'] {
810
+ background-color: var(--cds-button-primary);
811
+ border: 1px solid transparent;
812
+ color: var(--cds-text-on-color);
813
+
814
+ &:disabled {
815
+ background: var(--cds-button-disabled);
816
+ }
817
+ }
818
+ }
819
+ }
820
+
821
+ // Number styles /////////////
822
+
823
+ .fjs-container {
824
+ .fjs-form-field-number .fjs-input-group {
825
+ border-radius: 0;
826
+ border: none;
827
+ border-bottom: 1px solid var(--cds-border-strong);
828
+ height: 2.5rem;
829
+ box-sizing: border-box;
830
+
831
+ &:focus-within {
832
+ outline: 2px solid var(--cds-focus);
833
+ outline-offset: -2px;
834
+ }
835
+
836
+ .fjs-input {
837
+ border-radius: 0;
838
+ border: none;
839
+ font-size: var(--cds-body-short-01-font-size);
840
+ font-weight: var(--cds-body-short-01-font-weight);
841
+ line-height: var(--cds-body-short-01-line-height);
842
+ letter-spacing: var(--cds-body-short-01-letter-spacing);
843
+ }
844
+
845
+ .fjs-number-arrow-container {
846
+ all: unset;
847
+ border: none;
848
+ border-radius: 0;
849
+ display: flex;
850
+ flex-direction: row-reverse;
851
+ align-items: center;
852
+ background-color: var(--cds-field);
853
+
854
+ .fjs-number-arrow-up,
855
+ .fjs-number-arrow-down {
856
+ width: 40px;
857
+ height: calc(40px - 1px);
858
+ background-color: var(--cds-field);
859
+ color: transparent;
860
+
861
+ &:hover {
862
+ background-color: var(--cds-field-hover);
863
+ cursor: pointer;
864
+ }
865
+ }
866
+
867
+ &.fjs-disabled .fjs-number-arrow-up:hover,
868
+ &.fjs-disabled .fjs-number-arrow-down:hover {
869
+ background-color: var(--cds-field);
870
+ cursor: not-allowed;
871
+ }
872
+
873
+ .fjs-number-arrow-separator {
874
+ width: 0.0625rem;
875
+ height: 1rem;
876
+ background-color: var(--cds-border-subtle);
877
+ }
878
+
879
+ .fjs-number-arrow-down {
880
+ background-repeat: no-repeat;
881
+ background-position: right 50% bottom 50%;
882
+ }
883
+
884
+ .fjs-number-arrow-up {
885
+ background-repeat: no-repeat;
886
+ background-position: right 50% bottom 50%;
887
+ }
888
+ }
889
+ }
890
+ }
891
+
892
+ // Datetime styles /////////////
893
+
894
+ .fjs-container {
895
+ .fjs-form-field-datetime {
896
+ .fjs-input.flatpickr-input {
897
+ width: 100%;
898
+ height: 100%;
899
+ border: none;
900
+ border-radius: 0;
901
+
902
+ &,
903
+ &::placeholder {
904
+ color: var(--cds-text-primary);
905
+ }
906
+ }
907
+
908
+ .fjs-input.flatpickr-input:disabled {
909
+ color: var(--cds-text-disabled);
910
+ }
911
+
912
+ .fjs-input.flatpickr-input:disabled::placeholder {
913
+ color: var(--cds-text-disabled);
914
+ }
915
+
916
+ select {
917
+ @include getBaseInputStyles(1.5rem);
918
+ @include getSelectArrowStyles(var(--cds-spacing-03));
919
+ border-bottom: none;
920
+ padding-right: 2rem;
921
+ }
922
+
923
+ .fjs-input-group {
924
+ display: flex;
925
+ flex-direction: row-reverse;
926
+ position: relative;
927
+ }
928
+
929
+ .fjs-input-group .fjs-input-adornment {
930
+ border: none;
931
+ border-radius: 0;
932
+ background-color: var(--cds-field);
933
+ display: flex;
934
+ padding-right: var(--cds-spacing-05);
935
+ }
936
+
937
+ .fjs-input-group .fjs-input-adornment svg {
938
+ color: var(--cds-icon-primary);
939
+ cursor: pointer;
940
+ }
941
+
942
+ .flatpickr-wrapper {
943
+ height: 100%;
944
+ position: initial;
945
+ }
946
+
947
+ .fjs-timepicker.fjs-timepicker-anchor {
948
+ position: unset;
949
+ }
950
+
951
+ .flatpickr-calendar.static {
952
+ top: calc(100% + 3px);
953
+ }
954
+
955
+ .flatpickr-calendar .flatpickr-prev-month svg,
956
+ .flatpickr-calendar .flatpickr-next-month svg {
957
+ height: 16px;
958
+ }
959
+
960
+ .flatpickr-day.today {
961
+ position: relative;
962
+ color: var(--cds-link-primary);
963
+ font-weight: 600;
964
+ border-color: transparent;
965
+ }
966
+
967
+ .flatpickr-day.selected,
968
+ .flatpickr-day.today.selected,
969
+ .flatpickr-day.selected:hover,
970
+ .flatpickr-day.today.selected:hover {
971
+ background-color: var(--cds-button-primary);
972
+ color: var(--cds-text-on-color);
973
+ }
974
+
975
+ .flatpickr-day:focus {
976
+ outline: 2px solid var(--cds-focus);
977
+ outline-offset: -2px;
978
+ }
979
+
980
+ .flatpickr-day.selected:focus {
981
+ outline: 0.0625rem solid var(--cds-focus);
982
+ outline-offset: -0.1875rem;
983
+ }
984
+
985
+ .flatpickr-day:hover {
986
+ background: var(--cds-layer-hover);
987
+ }
988
+
989
+ .flatpickr-days,
990
+ .flatpickr-weekdays {
991
+ padding: unset;
992
+ width: unset;
993
+ }
994
+ }
995
+ }
996
+
997
+ // Select styles /////////////
998
+
999
+ .fjs-container {
1000
+ .fjs-form-field-select .fjs-input-group {
1001
+ @include getBaseInputStyles(2.5rem);
1002
+ @include getSelectArrowStyles(var(--cds-spacing-05));
1003
+
1004
+ .fjs-select-display {
1005
+ display: flex;
1006
+ align-items: center;
1007
+ }
1008
+
1009
+ .fjs-select-arrow {
1010
+ color: transparent;
1011
+ }
1012
+
1013
+ .fjs-select-cross {
1014
+ display: flex;
1015
+ align-items: center;
1016
+ justify-content: center;
1017
+ margin-right: var(--cds-spacing-04);
1018
+ width: 2.5rem;
1019
+ height: calc(2.5rem - 1px);
1020
+
1021
+ &:hover {
1022
+ background-color: var(--cds-layer-hover);
1023
+ }
1024
+
1025
+ svg {
1026
+ color: var(--cds-icon-primary);
1027
+ }
1028
+ }
1029
+
1030
+ .fjs-input {
1031
+ color: var(--cds-text-primary);
1032
+ background-color: var(--cds-field);
1033
+ border-radius: 0;
1034
+ border: none;
1035
+ border-bottom: 1px solid var(--cds-border-strong);
1036
+ height: 2.5rem;
1037
+ font-size: var(--cds-body-short-01-font-size);
1038
+ font-weight: var(--cds-body-short-01-font-weight);
1039
+ line-height: var(--cds-body-short-01-line-height);
1040
+ letter-spacing: var(--cds-body-short-01-letter-spacing);
1041
+ }
1042
+ }
1043
+
1044
+ .fjs-form-field-select .fjs-select-anchor .fjs-dropdownlist {
1045
+ position: absolute;
1046
+ top: -4px;
1047
+ }
1048
+
1049
+ .fjs-form-field-select .fjs-input-group:focus-within {
1050
+ outline: 2px solid var(--cds-focus);
1051
+ outline-offset: -2px;
1052
+ }
1053
+
1054
+ .fjs-form-field-select.fjs-disabled .fjs-input-group {
1055
+ @include getSelectArrowStyles(var(--cds-spacing-05));
1056
+ }
1057
+
1058
+ .fjs-has-errors.fjs-form-field-select .fjs-input-group:focus-within {
1059
+ outline: 2px solid var(--cds-focus);
1060
+ outline-offset: -2px;
1061
+ }
1062
+
1063
+ .fjs-has-errors.fjs-form-field-select .fjs-input-group {
1064
+ outline: 2px solid var(--cds-text-error);
1065
+ outline-offset: -2px;
1066
+ }
1067
+ }
1068
+
1069
+ // Remaining input styles /////////////
1070
+
1071
+ .fjs-container {
1072
+ .fjs-form-field-textfield .fjs-input-group,
1073
+ .fjs-form-field-datetime .fjs-input-group,
1074
+ .fjs-textarea,
1075
+ .fjs-taglist,
1076
+ .fjs-form-field-select.fjs-disabled .fjs-input-group {
1077
+ @include getBaseInputStyles(2.5rem);
1078
+ }
1079
+
1080
+ .fjs-form-field-textfield .fjs-input-group,
1081
+ .fjs-form-field-datetime .fjs-input-group {
1082
+ &:focus-within {
1083
+ outline: 2px solid var(--cds-focus);
1084
+ outline-offset: -2px;
1085
+ }
1086
+ }
1087
+ .fjs-form-field-textfield .fjs-input,
1088
+ .fjs-form-field-datetime .fjs-input {
1089
+ background-color: var(--cds-field);
1090
+ color: var(--cds-text-primary);
1091
+ border-radius: 0;
1092
+ }
1093
+
1094
+ .fjs-has-errors.fjs-form-field-number .fjs-input-group:focus-within,
1095
+ .fjs-has-errors.fjs-form-field-textarea .fjs-textarea:focus,
1096
+ .fjs-form-field-textfield.fjs-has-errors .fjs-input-group:focus-within,
1097
+ .fjs-form-field-textfield.fjs-has-errors .fjs-input-group:focus,
1098
+ .fjs-form-field-datetime.fjs-has-errors .fjs-input-group:focus-within,
1099
+ .fjs-form-field-datetime.fjs-has-errors .fjs-input-group:focus {
1100
+ outline: 2px solid var(--cds-focus);
1101
+ outline-offset: -2px;
1102
+ }
1103
+
1104
+ .fjs-has-errors.fjs-form-field-number .fjs-input-group,
1105
+ .fjs-has-errors.fjs-form-field-textarea .fjs-textarea,
1106
+ .fjs-form-field-textfield.fjs-has-errors .fjs-input-group,
1107
+ .fjs-form-field-textfield.fjs-has-errors .fjs-input-group,
1108
+ .fjs-form-field-datetime.fjs-has-errors .fjs-input-group,
1109
+ .fjs-form-field-datetime.fjs-has-errors .fjs-input-group {
1110
+ outline: 2px solid var(--cds-text-error);
1111
+ outline-offset: -2px;
1112
+ }
1113
+ }
1114
+
1115
+ // Dropdown styles /////////////
1116
+
1117
+ .fjs-container {
1118
+ .fjs-form-field-taglist .fjs-taglist-anchor .fjs-dropdownlist,
1119
+ .fjs-form-field-datetime .fjs-timepicker-anchor .fjs-dropdownlist,
1120
+ .fjs-form-field-select .fjs-select-anchor .fjs-dropdownlist {
1121
+ margin: 0;
1122
+ max-height: rem(264);
1123
+ border: none;
1124
+ background-color: var(--cds-layer);
1125
+ overflow-y: auto;
1126
+ cursor: pointer;
1127
+ border-radius: 0;
1128
+ box-shadow: 0 2px 6px var(--cds-shadow);
1129
+
1130
+ & .fjs-dropdownlist-item {
1131
+ border: none;
1132
+ box-sizing: border-box;
1133
+ padding: 0;
1134
+ margin: 0 var(--cds-spacing-05);
1135
+ }
1136
+
1137
+ & .fjs-dropdownlist-item:not(:first-of-type):not(:hover) {
1138
+ border-top: 1px solid var(--cds-border-subtle);
1139
+ }
1140
+
1141
+ & .fjs-dropdownlist-item,
1142
+ & .fjs-dropdownlist-empty {
1143
+ font-size: var(--cds-body-short-01-font-size);
1144
+ font-weight: var(--cds-body-short-01-font-weight);
1145
+ line-height: var(--cds-body-short-01-line-height);
1146
+ letter-spacing: var(--cds-body-short-01-letter-spacing);
1147
+ height: #{rem(40)};
1148
+ color: var(--cds-text-secondary);
1149
+ cursor: pointer;
1150
+ user-select: none;
1151
+ display: flex;
1152
+ align-items: center;
1153
+ background-color: transparent;
1154
+ }
1155
+
1156
+ & .fjs-dropdownlist-empty {
1157
+ color: var(--cds-text-disabled);
1158
+ cursor: default;
1159
+ }
1160
+
1161
+ & .fjs-dropdownlist-item:hover,
1162
+ & .fjs-dropdownlist-item.focused {
1163
+ background-color: var(--cds-layer-hover);
1164
+ color: var(--cds-text-primary);
1165
+ margin: 0;
1166
+ padding: 0 var(--cds-spacing-05);
1167
+ }
1168
+
1169
+ & .fjs-dropdownlist-item:not(:first-of-type):hover {
1170
+ padding-top: 1px;
1171
+ }
1172
+
1173
+ & .fjs-dropdownlist-item.focused + .fjs-dropdownlist-item {
1174
+ border: none;
1175
+ padding-top: 1px;
1176
+ }
1177
+ }
1178
+ }
1179
+
1180
+ // Adornment styles /////////////
1181
+
1182
+ .fjs-container .fjs-form-field:not(.fjs-form-field-datetime) {
1183
+ .fjs-input-group .fjs-input-adornment {
1184
+ all: unset;
1185
+ display: flex;
1186
+ align-items: center;
1187
+ background-color: var(--cds-field);
1188
+ color: var(--cds-text-secondary);
1189
+ padding: 0 var(--cds-spacing-04);
1190
+ cursor: default;
1191
+
1192
+ &.border-right {
1193
+ padding-right: 0;
1194
+ }
1195
+
1196
+ &.border-left {
1197
+ padding-left: 0;
1198
+ }
1199
+ }
1200
+
1201
+ &.fjs-disabled .fjs-input-group .fjs-input-adornment {
1202
+ color: var(--cds-text-disabled);
1203
+ }
1204
+ }
@@ -1,3 +1,7 @@
1
+ /**
2
+ * DEPRECATED: This file is deprecated and will be removed with one of the next releases.
3
+ */
4
+
1
5
  declare module '@bpmn-io/form-js-carbon-styles'{
2
6
  import { FlattenSimpleInterpolation, GlobalStyleComponent, DefaultTheme } from 'styled-components';
3
7