@deque/cauldron-styles 5.8.0 → 5.8.1-canary.5655cf1a

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 (3) hide show
  1. package/LICENSE +362 -0
  2. package/dist/index.css +440 -30
  3. package/package.json +2 -2
package/LICENSE ADDED
@@ -0,0 +1,362 @@
1
+ Mozilla Public License, version 2.0
2
+
3
+ 1. Definitions
4
+
5
+ 1.1. "Contributor"
6
+
7
+ means each individual or legal entity that creates, contributes to the
8
+ creation of, or owns Covered Software.
9
+
10
+ 1.2. "Contributor Version"
11
+
12
+ means the combination of the Contributions of others (if any) used by a
13
+ Contributor and that particular Contributor's Contribution.
14
+
15
+ 1.3. "Contribution"
16
+
17
+ means Covered Software of a particular Contributor.
18
+
19
+ 1.4. "Covered Software"
20
+
21
+ means Source Code Form to which the initial Contributor has attached the
22
+ notice in Exhibit A, the Executable Form of such Source Code Form, and
23
+ Modifications of such Source Code Form, in each case including portions
24
+ thereof.
25
+
26
+ 1.5. "Incompatible With Secondary Licenses"
27
+ means
28
+
29
+ a. that the initial Contributor has attached the notice described in
30
+ Exhibit B to the Covered Software; or
31
+
32
+ b. that the Covered Software was made available under the terms of
33
+ version 1.1 or earlier of the License, but not also under the terms of
34
+ a Secondary License.
35
+
36
+ 1.6. "Executable Form"
37
+
38
+ means any form of the work other than Source Code Form.
39
+
40
+ 1.7. "Larger Work"
41
+
42
+ means a work that combines Covered Software with other material, in a
43
+ separate file or files, that is not Covered Software.
44
+
45
+ 1.8. "License"
46
+
47
+ means this document.
48
+
49
+ 1.9. "Licensable"
50
+
51
+ means having the right to grant, to the maximum extent possible, whether
52
+ at the time of the initial grant or subsequently, any and all of the
53
+ rights conveyed by this License.
54
+
55
+ 1.10. "Modifications"
56
+
57
+ means any of the following:
58
+
59
+ a. any file in Source Code Form that results from an addition to,
60
+ deletion from, or modification of the contents of Covered Software; or
61
+
62
+ b. any new file in Source Code Form that contains any Covered Software.
63
+
64
+ 1.11. "Patent Claims" of a Contributor
65
+
66
+ means any patent claim(s), including without limitation, method,
67
+ process, and apparatus claims, in any patent Licensable by such
68
+ Contributor that would be infringed, but for the grant of the License,
69
+ by the making, using, selling, offering for sale, having made, import,
70
+ or transfer of either its Contributions or its Contributor Version.
71
+
72
+ 1.12. "Secondary License"
73
+
74
+ means either the GNU General Public License, Version 2.0, the GNU Lesser
75
+ General Public License, Version 2.1, the GNU Affero General Public
76
+ License, Version 3.0, or any later versions of those licenses.
77
+
78
+ 1.13. "Source Code Form"
79
+
80
+ means the form of the work preferred for making modifications.
81
+
82
+ 1.14. "You" (or "Your")
83
+
84
+ means an individual or a legal entity exercising rights under this
85
+ License. For legal entities, "You" includes any entity that controls, is
86
+ controlled by, or is under common control with You. For purposes of this
87
+ definition, "control" means (a) the power, direct or indirect, to cause
88
+ the direction or management of such entity, whether by contract or
89
+ otherwise, or (b) ownership of more than fifty percent (50%) of the
90
+ outstanding shares or beneficial ownership of such entity.
91
+
92
+
93
+ 2. License Grants and Conditions
94
+
95
+ 2.1. Grants
96
+
97
+ Each Contributor hereby grants You a world-wide, royalty-free,
98
+ non-exclusive license:
99
+
100
+ a. under intellectual property rights (other than patent or trademark)
101
+ Licensable by such Contributor to use, reproduce, make available,
102
+ modify, display, perform, distribute, and otherwise exploit its
103
+ Contributions, either on an unmodified basis, with Modifications, or
104
+ as part of a Larger Work; and
105
+
106
+ b. under Patent Claims of such Contributor to make, use, sell, offer for
107
+ sale, have made, import, and otherwise transfer either its
108
+ Contributions or its Contributor Version.
109
+
110
+ 2.2. Effective Date
111
+
112
+ The licenses granted in Section 2.1 with respect to any Contribution
113
+ become effective for each Contribution on the date the Contributor first
114
+ distributes such Contribution.
115
+
116
+ 2.3. Limitations on Grant Scope
117
+
118
+ The licenses granted in this Section 2 are the only rights granted under
119
+ this License. No additional rights or licenses will be implied from the
120
+ distribution or licensing of Covered Software under this License.
121
+ Notwithstanding Section 2.1(b) above, no patent license is granted by a
122
+ Contributor:
123
+
124
+ a. for any code that a Contributor has removed from Covered Software; or
125
+
126
+ b. for infringements caused by: (i) Your and any other third party's
127
+ modifications of Covered Software, or (ii) the combination of its
128
+ Contributions with other software (except as part of its Contributor
129
+ Version); or
130
+
131
+ c. under Patent Claims infringed by Covered Software in the absence of
132
+ its Contributions.
133
+
134
+ This License does not grant any rights in the trademarks, service marks,
135
+ or logos of any Contributor (except as may be necessary to comply with
136
+ the notice requirements in Section 3.4).
137
+
138
+ 2.4. Subsequent Licenses
139
+
140
+ No Contributor makes additional grants as a result of Your choice to
141
+ distribute the Covered Software under a subsequent version of this
142
+ License (see Section 10.2) or under the terms of a Secondary License (if
143
+ permitted under the terms of Section 3.3).
144
+
145
+ 2.5. Representation
146
+
147
+ Each Contributor represents that the Contributor believes its
148
+ Contributions are its original creation(s) or it has sufficient rights to
149
+ grant the rights to its Contributions conveyed by this License.
150
+
151
+ 2.6. Fair Use
152
+
153
+ This License is not intended to limit any rights You have under
154
+ applicable copyright doctrines of fair use, fair dealing, or other
155
+ equivalents.
156
+
157
+ 2.7. Conditions
158
+
159
+ Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in
160
+ Section 2.1.
161
+
162
+
163
+ 3. Responsibilities
164
+
165
+ 3.1. Distribution of Source Form
166
+
167
+ All distribution of Covered Software in Source Code Form, including any
168
+ Modifications that You create or to which You contribute, must be under
169
+ the terms of this License. You must inform recipients that the Source
170
+ Code Form of the Covered Software is governed by the terms of this
171
+ License, and how they can obtain a copy of this License. You may not
172
+ attempt to alter or restrict the recipients' rights in the Source Code
173
+ Form.
174
+
175
+ 3.2. Distribution of Executable Form
176
+
177
+ If You distribute Covered Software in Executable Form then:
178
+
179
+ a. such Covered Software must also be made available in Source Code Form,
180
+ as described in Section 3.1, and You must inform recipients of the
181
+ Executable Form how they can obtain a copy of such Source Code Form by
182
+ reasonable means in a timely manner, at a charge no more than the cost
183
+ of distribution to the recipient; and
184
+
185
+ b. You may distribute such Executable Form under the terms of this
186
+ License, or sublicense it under different terms, provided that the
187
+ license for the Executable Form does not attempt to limit or alter the
188
+ recipients' rights in the Source Code Form under this License.
189
+
190
+ 3.3. Distribution of a Larger Work
191
+
192
+ You may create and distribute a Larger Work under terms of Your choice,
193
+ provided that You also comply with the requirements of this License for
194
+ the Covered Software. If the Larger Work is a combination of Covered
195
+ Software with a work governed by one or more Secondary Licenses, and the
196
+ Covered Software is not Incompatible With Secondary Licenses, this
197
+ License permits You to additionally distribute such Covered Software
198
+ under the terms of such Secondary License(s), so that the recipient of
199
+ the Larger Work may, at their option, further distribute the Covered
200
+ Software under the terms of either this License or such Secondary
201
+ License(s).
202
+
203
+ 3.4. Notices
204
+
205
+ You may not remove or alter the substance of any license notices
206
+ (including copyright notices, patent notices, disclaimers of warranty, or
207
+ limitations of liability) contained within the Source Code Form of the
208
+ Covered Software, except that You may alter any license notices to the
209
+ extent required to remedy known factual inaccuracies.
210
+
211
+ 3.5. Application of Additional Terms
212
+
213
+ You may choose to offer, and to charge a fee for, warranty, support,
214
+ indemnity or liability obligations to one or more recipients of Covered
215
+ Software. However, You may do so only on Your own behalf, and not on
216
+ behalf of any Contributor. You must make it absolutely clear that any
217
+ such warranty, support, indemnity, or liability obligation is offered by
218
+ You alone, and You hereby agree to indemnify every Contributor for any
219
+ liability incurred by such Contributor as a result of warranty, support,
220
+ indemnity or liability terms You offer. You may include additional
221
+ disclaimers of warranty and limitations of liability specific to any
222
+ jurisdiction.
223
+
224
+ 4. Inability to Comply Due to Statute or Regulation
225
+
226
+ If it is impossible for You to comply with any of the terms of this License
227
+ with respect to some or all of the Covered Software due to statute,
228
+ judicial order, or regulation then You must: (a) comply with the terms of
229
+ this License to the maximum extent possible; and (b) describe the
230
+ limitations and the code they affect. Such description must be placed in a
231
+ text file included with all distributions of the Covered Software under
232
+ this License. Except to the extent prohibited by statute or regulation,
233
+ such description must be sufficiently detailed for a recipient of ordinary
234
+ skill to be able to understand it.
235
+
236
+ 5. Termination
237
+
238
+ 5.1. The rights granted under this License will terminate automatically if You
239
+ fail to comply with any of its terms. However, if You become compliant,
240
+ then the rights granted under this License from a particular Contributor
241
+ are reinstated (a) provisionally, unless and until such Contributor
242
+ explicitly and finally terminates Your grants, and (b) on an ongoing
243
+ basis, if such Contributor fails to notify You of the non-compliance by
244
+ some reasonable means prior to 60 days after You have come back into
245
+ compliance. Moreover, Your grants from a particular Contributor are
246
+ reinstated on an ongoing basis if such Contributor notifies You of the
247
+ non-compliance by some reasonable means, this is the first time You have
248
+ received notice of non-compliance with this License from such
249
+ Contributor, and You become compliant prior to 30 days after Your receipt
250
+ of the notice.
251
+
252
+ 5.2. If You initiate litigation against any entity by asserting a patent
253
+ infringement claim (excluding declaratory judgment actions,
254
+ counter-claims, and cross-claims) alleging that a Contributor Version
255
+ directly or indirectly infringes any patent, then the rights granted to
256
+ You by any and all Contributors for the Covered Software under Section
257
+ 2.1 of this License shall terminate.
258
+
259
+ 5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user
260
+ license agreements (excluding distributors and resellers) which have been
261
+ validly granted by You or Your distributors under this License prior to
262
+ termination shall survive termination.
263
+
264
+ 6. Disclaimer of Warranty
265
+
266
+ Covered Software is provided under this License on an "as is" basis,
267
+ without warranty of any kind, either expressed, implied, or statutory,
268
+ including, without limitation, warranties that the Covered Software is free
269
+ of defects, merchantable, fit for a particular purpose or non-infringing.
270
+ The entire risk as to the quality and performance of the Covered Software
271
+ is with You. Should any Covered Software prove defective in any respect,
272
+ You (not any Contributor) assume the cost of any necessary servicing,
273
+ repair, or correction. This disclaimer of warranty constitutes an essential
274
+ part of this License. No use of any Covered Software is authorized under
275
+ this License except under this disclaimer.
276
+
277
+ 7. Limitation of Liability
278
+
279
+ Under no circumstances and under no legal theory, whether tort (including
280
+ negligence), contract, or otherwise, shall any Contributor, or anyone who
281
+ distributes Covered Software as permitted above, be liable to You for any
282
+ direct, indirect, special, incidental, or consequential damages of any
283
+ character including, without limitation, damages for lost profits, loss of
284
+ goodwill, work stoppage, computer failure or malfunction, or any and all
285
+ other commercial damages or losses, even if such party shall have been
286
+ informed of the possibility of such damages. This limitation of liability
287
+ shall not apply to liability for death or personal injury resulting from
288
+ such party's negligence to the extent applicable law prohibits such
289
+ limitation. Some jurisdictions do not allow the exclusion or limitation of
290
+ incidental or consequential damages, so this exclusion and limitation may
291
+ not apply to You.
292
+
293
+ 8. Litigation
294
+
295
+ Any litigation relating to this License may be brought only in the courts
296
+ of a jurisdiction where the defendant maintains its principal place of
297
+ business and such litigation shall be governed by laws of that
298
+ jurisdiction, without reference to its conflict-of-law provisions. Nothing
299
+ in this Section shall prevent a party's ability to bring cross-claims or
300
+ counter-claims.
301
+
302
+ 9. Miscellaneous
303
+
304
+ This License represents the complete agreement concerning the subject
305
+ matter hereof. If any provision of this License is held to be
306
+ unenforceable, such provision shall be reformed only to the extent
307
+ necessary to make it enforceable. Any law or regulation which provides that
308
+ the language of a contract shall be construed against the drafter shall not
309
+ be used to construe this License against a Contributor.
310
+
311
+
312
+ 10. Versions of the License
313
+
314
+ 10.1. New Versions
315
+
316
+ Mozilla Foundation is the license steward. Except as provided in Section
317
+ 10.3, no one other than the license steward has the right to modify or
318
+ publish new versions of this License. Each version will be given a
319
+ distinguishing version number.
320
+
321
+ 10.2. Effect of New Versions
322
+
323
+ You may distribute the Covered Software under the terms of the version
324
+ of the License under which You originally received the Covered Software,
325
+ or under the terms of any subsequent version published by the license
326
+ steward.
327
+
328
+ 10.3. Modified Versions
329
+
330
+ If you create software not governed by this License, and you want to
331
+ create a new license for such software, you may create and use a
332
+ modified version of this License if you rename the license and remove
333
+ any references to the name of the license steward (except to note that
334
+ such modified license differs from this License).
335
+
336
+ 10.4. Distributing Source Code Form that is Incompatible With Secondary
337
+ Licenses If You choose to distribute Source Code Form that is
338
+ Incompatible With Secondary Licenses under the terms of this version of
339
+ the License, the notice described in Exhibit B of this License must be
340
+ attached.
341
+
342
+ Exhibit A - Source Code Form License Notice
343
+
344
+ This Source Code Form is subject to the
345
+ terms of the Mozilla Public License, v.
346
+ 2.0. If a copy of the MPL was not
347
+ distributed with this file, You can
348
+ obtain one at
349
+ http://mozilla.org/MPL/2.0/.
350
+
351
+ If it is not possible or desirable to put the notice in a particular file,
352
+ then You may include the notice in a location (such as a LICENSE file in a
353
+ relevant directory) where a recipient would be likely to look for such a
354
+ notice.
355
+
356
+ You may add additional accurate notices of copyright ownership.
357
+
358
+ Exhibit B - "Incompatible With Secondary Licenses" Notice
359
+
360
+ This Source Code Form is "Incompatible
361
+ With Secondary Licenses", as defined by
362
+ the Mozilla Public License, v. 2.0.
package/dist/index.css CHANGED
@@ -40,7 +40,7 @@
40
40
  --accent-secondary: var(--gray-20);
41
41
  --accent-secondary-active: var(--gray-30);
42
42
  --focus-light: #b51ad1;
43
- --focus-dark: #eb94ff;
43
+ --focus-dark: #f5a4ff;
44
44
  --issue-critical: var(--accent-danger);
45
45
  --issue-serious: var(--accent-warning);
46
46
  --issue-moderate: #f0c4f8;
@@ -466,7 +466,7 @@ button.Link {
466
466
  }
467
467
 
468
468
  .Button--tag:not([disabled]):not([aria-disabled='true']):hover:before {
469
- box-shadow: 0 0 0 1px var(--button-outline-color-primary);
469
+ box-shadow: 0 0 0 1px var(--button-outline-color-secondary);
470
470
  }
471
471
 
472
472
  .Button--primary:focus:before,
@@ -1467,7 +1467,11 @@ ul.semantic-only {
1467
1467
  --field-icon-focus-color: var(--focus-light);
1468
1468
  --field-error-text-color: var(--error);
1469
1469
  --field-error-border-color: var(--error);
1470
+ --field-listbox-selected-background-color: var(--accent-secondary-active);
1471
+ --field-font-size: var(--text-size-small);
1470
1472
  --input-min-width: 250px;
1473
+ --checkbox-size: var(--icon-size);
1474
+ --radio-size: var(--icon-size);
1471
1475
  }
1472
1476
 
1473
1477
  .cauldron--theme-dark {
@@ -1482,6 +1486,7 @@ ul.semantic-only {
1482
1486
  --field-background-color-disabled: #5d676f;
1483
1487
  --field-required-text-color: var(--white);
1484
1488
  --field-label-text-color: var(--white);
1489
+ --field-label-error-text-color: var(--error);
1485
1490
  --field-label-description-text-color: var(--accent-light);
1486
1491
  --field-icon-inactive-color: var(--white);
1487
1492
  --field-icon-active-color: rgba(212, 221, 224, 0.25);
@@ -1492,6 +1497,7 @@ ul.semantic-only {
1492
1497
  --field-icon-focus-color: var(--focus-dark);
1493
1498
  --field-error-text-color: var(--error);
1494
1499
  --field-error-border-color: var(--error);
1500
+ --field-listbox-selected-background-color: var(--accent-dark);
1495
1501
  }
1496
1502
 
1497
1503
  input,
@@ -1500,7 +1506,6 @@ textarea,
1500
1506
  [role='menuitemcheckbox'],
1501
1507
  [role='menuitemradio'],
1502
1508
  [role='textbox'],
1503
- [aria-haspopup='listbox'],
1504
1509
  [role='listbox'],
1505
1510
  [role='spinbutton'] {
1506
1511
  width: 100%;
@@ -1517,7 +1522,6 @@ textarea,
1517
1522
  [role='menuitemcheckbox'],
1518
1523
  [role='menuitemradio'],
1519
1524
  [role='textbox'],
1520
- [aria-haspopup='listbox'],
1521
1525
  [role='listbox'],
1522
1526
  [role='spinbutton'] {
1523
1527
  border: 1px solid var(--field-border-color);
@@ -1529,7 +1533,6 @@ textarea:focus,
1529
1533
  [role='menuitemcheckbox']:focus,
1530
1534
  [role='menuitemradio']:focus,
1531
1535
  [role='textbox']:focus,
1532
- [aria-haspopup='listbox']:focus,
1533
1536
  [role='listbox']:focus,
1534
1537
  [role='spinbutton']:focus {
1535
1538
  outline: 0;
@@ -1545,7 +1548,6 @@ textarea:hover,
1545
1548
  [role='menuitemcheckbox']:hover,
1546
1549
  [role='menuitemradio']:hover,
1547
1550
  [role='textbox']:hover,
1548
- [aria-haspopup='listbox']:hover,
1549
1551
  [role='listbox']:hover,
1550
1552
  [role='spinbutton']:hover {
1551
1553
  border: 1px solid var(--field-border-color-hover);
@@ -1557,7 +1559,6 @@ textarea:focus:hover,
1557
1559
  [role='menuitemcheckbox']:focus:hover,
1558
1560
  [role='menuitemradio']:focus:hover,
1559
1561
  [role='textbox']:focus:hover,
1560
- [aria-haspopup='listbox']:focus:hover,
1561
1562
  [role='listbox']:focus:hover,
1562
1563
  [role='spinbutton']:focus:hover {
1563
1564
  border: 1px solid var(--field-border-color-focus-hover);
@@ -1569,7 +1570,6 @@ textarea.Field--has-error,
1569
1570
  [role='menuitemcheckbox'].Field--has-error,
1570
1571
  [role='menuitemradio'].Field--has-error,
1571
1572
  [role='textbox'].Field--has-error,
1572
- [aria-haspopup='listbox'].Field--has-error,
1573
1573
  [role='listbox'].Field--has-error,
1574
1574
  [role='spinbutton'].Field--has-error {
1575
1575
  border: 1px solid var(--field-border-color-error);
@@ -1579,7 +1579,9 @@ textarea.Field--has-error,
1579
1579
  color: var(--field-border-color-error);
1580
1580
  }
1581
1581
 
1582
- .Icon--checkbox-unchecked.Checkbox__overlay:active.Field--has-error:not(.Checkbox__overlay--disabled) {
1582
+ .Icon--checkbox-unchecked.Checkbox__overlay:active.Field--has-error:not(
1583
+ .Checkbox__overlay--disabled
1584
+ ) {
1583
1585
  background-color: var(--field-icon-error-active-color);
1584
1586
  }
1585
1587
 
@@ -1589,7 +1591,6 @@ textarea.Field--has-error:hover,
1589
1591
  [role='menuitemcheckbox'].Field--has-error:hover,
1590
1592
  [role='menuitemradio'].Field--has-error:hover,
1591
1593
  [role='textbox'].Field--has-error:hover,
1592
- [aria-haspopup='listbox'].Field--has-error:hover,
1593
1594
  [role='listbox'].Field--has-error:hover,
1594
1595
  [role='spinbutton'].Field--has-error:hover {
1595
1596
  border-color: var(--field-border-color-error-hover);
@@ -1601,7 +1602,6 @@ textarea.Field--has-error:focus,
1601
1602
  [role='menuitemcheckbox'].Field--has-error:focus,
1602
1603
  [role='menuitemradio'].Field--has-error:focus,
1603
1604
  [role='textbox'].Field--has-error:focus,
1604
- [aria-haspopup='listbox'].Field--has-error:focus,
1605
1605
  [role='listbox'].Field--has-error:focus,
1606
1606
  [role='spinbutton'].Field--has-error:focus {
1607
1607
  border: 1px solid var(--field-border-color-error);
@@ -1616,12 +1616,26 @@ textarea.Field--has-error:focus:hover,
1616
1616
  [role='menuitemcheckbox'].Field--has-error:focus:hover,
1617
1617
  [role='menuitemradio'].Field--has-error:focus:hover,
1618
1618
  [role='textbox'].Field--has-error:focus:hover,
1619
- [aria-haspopup='listbox'].Field--has-error:focus:hover,
1620
1619
  [role='listbox'].Field--has-error:focus:hover,
1621
1620
  [role='spinbutton'].Field--has-error:focus:hover {
1622
1621
  border-color: var(--field-border-color-error-hover);
1623
1622
  }
1624
1623
 
1624
+ [role='listbox'] > li,
1625
+ [role='listbox'] > [role='group'] > li {
1626
+ list-style-type: none;
1627
+ }
1628
+
1629
+ [role='listbox']:focus-within > li.ListboxOption--active,
1630
+ [role='listbox']:focus-within > [role='group'] > li.ListboxOption--active {
1631
+ box-shadow: 0 0 0 2px var(--field-icon-focus-color);
1632
+ }
1633
+
1634
+ [role='listbox']
1635
+ li[role='option']:is([aria-selected='true'], [aria-checked='true']) {
1636
+ background-color: var(--field-listbox-selected-background-color);
1637
+ }
1638
+
1625
1639
  .Error {
1626
1640
  color: var(--field-error-text-color);
1627
1641
  text-align: left;
@@ -1749,7 +1763,7 @@ textarea.Field--has-error:focus:hover,
1749
1763
  .Field__text-input {
1750
1764
  padding: var(--space-smallest);
1751
1765
  box-sizing: border-box;
1752
- font-size: var(--text-size-small);
1766
+ font-size: var(--field-font-size);
1753
1767
  color: var(--field-content-color);
1754
1768
  min-width: min(var(--input-min-width), 100%);
1755
1769
  }
@@ -1763,7 +1777,7 @@ textarea.Field--has-error:focus:hover,
1763
1777
  .Field__textarea {
1764
1778
  display: block;
1765
1779
  min-height: 56px;
1766
- font-size: var(--text-size-small);
1780
+ font-size: var(--field-font-size);
1767
1781
  min-width: min(var(--input-min-width), 100%);
1768
1782
  padding: var(--space-half);
1769
1783
  max-width: 500px;
@@ -1783,11 +1797,18 @@ textarea.Field--has-error:focus:hover,
1783
1797
  font-weight: var(--font-weight-normal);
1784
1798
  line-height: 1;
1785
1799
  margin-top: var(--space-half);
1786
- margin-left: calc(24px + 2px + var(--space-half));
1787
1800
  cursor: default;
1788
1801
  display: flex;
1789
1802
  }
1790
1803
 
1804
+ .Checkbox__wrap .Field__labelDescription {
1805
+ margin-left: calc(var(--checkbox-size) + 2px + var(--space-half));
1806
+ }
1807
+
1808
+ .Radio__wrap .Field__labelDescription {
1809
+ margin-left: calc(var(--radio-size) + 2px + var(--space-half));
1810
+ }
1811
+
1791
1812
  .Field__labelDescription + .Error {
1792
1813
  margin-top: var(--space-smallest);
1793
1814
  }
@@ -1815,6 +1836,16 @@ textarea.Field--has-error:focus:hover,
1815
1836
  pointer-events: none;
1816
1837
  }
1817
1838
 
1839
+ .Radio__overlay svg {
1840
+ height: var(--radio-size);
1841
+ width: var(--radio-size);
1842
+ }
1843
+
1844
+ .Checkbox__overlay svg {
1845
+ height: var(--checkbox-size);
1846
+ width: var(--checkbox-size);
1847
+ }
1848
+
1818
1849
  .Radio__overlay:active:not(.Radio__overlay--disabled),
1819
1850
  .Checkbox__overlay:active:not(.Checkbox__overlay--disabled) {
1820
1851
  background-color: var(--field-icon-active-color);
@@ -3140,14 +3171,26 @@ button.TooltipTabstop {
3140
3171
  margin-top: -1px;
3141
3172
  }
3142
3173
 
3174
+ :root {
3175
+ --code-text-color: var(--accent-primary-active);
3176
+ --code-border-color: var(--stroke-light);
3177
+ --code-background-color: var(--background-light);
3178
+ }
3179
+
3180
+ .cauldron--theme-dark {
3181
+ --code-text-color: var(--accent-light);
3182
+ --code-background-color: var(--accent-dark);
3183
+ --code-border-color: var(--stroke-dark);
3184
+ }
3185
+
3143
3186
  .Code.hljs {
3144
3187
  display: block;
3145
- padding: 0.5em;
3146
- background: var(--gray-20);
3147
- color: var(--gray-90);
3148
- border: 1px solid var(--gray-40);
3149
- color: var(--accent-primary-active);
3150
- word-break: anywhere;
3188
+ padding: var(--space-smaller);
3189
+ background: var(--code-background-color);
3190
+ border: 1px solid var(--code-border-color);
3191
+ border-radius: 3px;
3192
+ color: var(--code-text-color);
3193
+ word-break: break-all;
3151
3194
  }
3152
3195
 
3153
3196
  .Code--scrollable {
@@ -3247,12 +3290,6 @@ button.TooltipTabstop {
3247
3290
 
3248
3291
  /* Dark Theme */
3249
3292
 
3250
- .cauldron--theme-dark .Code.hljs {
3251
- background: var(--accent-dark);
3252
- color: var(--accent-light);
3253
- border: 1px solid transparent;
3254
- }
3255
-
3256
3293
  .cauldron--theme-dark .Code .hljs-string {
3257
3294
  color: #8abeb7;
3258
3295
  }
@@ -3496,8 +3533,9 @@ button.TooltipTabstop {
3496
3533
  --table-header-text-color: var(--gray-90);
3497
3534
  --table-header-background-color: var(--gray-20);
3498
3535
  --table-header-sorting-background-color: #caddec;
3499
- --table-header-sorting-text-color: var(--gray-90);
3500
3536
  --table-header-background-color-hover: #dddddd;
3537
+ /* --table-header-sorting-text-color will be deprecated */
3538
+ --table-header-sorting-text-color: var(--gray-90);
3501
3539
  --table-cell-text-color: var(--gray-60);
3502
3540
  --table-cell-background-color: var(--white);
3503
3541
  --table-row-border-color: var(--gray-40);
@@ -3509,8 +3547,9 @@ button.TooltipTabstop {
3509
3547
  .cauldron--theme-dark {
3510
3548
  --table-header-text-color: var(--white);
3511
3549
  --table-header-background-color: var(--accent-dark);
3512
- --table-header-sorting-background-color: #53636e;
3550
+ /* --table-header-sorting-text-color will be deprecated */
3513
3551
  --table-header-sorting-text-color: var(--white);
3552
+ --table-header-sorting-background-color: #53636e;
3514
3553
  --table-header-background-color-hover: #53636e;
3515
3554
  --table-cell-text-color: var(--accent-light);
3516
3555
  --table-cell-background-color: var(--accent-medium);
@@ -3566,6 +3605,8 @@ button.TooltipTabstop {
3566
3605
  border-bottom: 3px solid var(--table-header-sorting-border-color);
3567
3606
  }
3568
3607
 
3608
+ /* These styles are not applying and will be deprecated */
3609
+
3569
3610
  .TableHeader--sort-ascending .TableHeader__sort-button,
3570
3611
  .TableHeader--sort-decscending .TableHeader__sort-button {
3571
3612
  color: var(--table-header-sorting-text-color);
@@ -4001,6 +4042,126 @@ fieldset.Panel {
4001
4042
  --panel-content-color: var(--accent-light);
4002
4043
  }
4003
4044
 
4045
+ :root {
4046
+ --popover-background-color: var(--gray-10);
4047
+ --popover-border-color: var(--gray-90);
4048
+ --popover-text-color: var(--gray-90);
4049
+ --popover-box-shadow: rgba(0, 0, 0, 0.35) 0 0 10px 0;
4050
+ --popover-font-size: var(--text-size-smaller);
4051
+ --popover-line-height: var(--text-size-normal);
4052
+ --popover-padding: 0 var(--space-small);
4053
+ --popover-alert-max-width: 12rem;
4054
+ --popover-alert-padding: var(--space-small);
4055
+ --popover-alert-apply-button-margin: var(--space-smallest) 0;
4056
+ }
4057
+
4058
+ /* Dark theme variables */
4059
+
4060
+ .cauldron--theme-dark {
4061
+ --popover-background-color: var(--accent-medium);
4062
+ --popover-border-color: var(--accent-light);
4063
+ --popover-text-color: var(--white);
4064
+ }
4065
+
4066
+ .Popover {
4067
+ background-color: var(--popover-background-color);
4068
+ border: 2px solid var(--popover-border-color);
4069
+ box-shadow: var(--popover-box-shadow);
4070
+ color: var(--popover-text-color);
4071
+ font-size: var(--popover-font-size);
4072
+ line-height: var(--popover-line-height);
4073
+ padding: var(--popover-padding);
4074
+ word-break: break-word;
4075
+ }
4076
+
4077
+ .Popover--hidden {
4078
+ visibility: hidden;
4079
+ /* Take the tooltip out of the DOM layout flow so it doesn't reserve space when hidden */
4080
+ position: fixed !important;
4081
+ }
4082
+
4083
+ /* TooltipArrow needs some dimensions to accurately calculate its positioning */
4084
+
4085
+ .Popover__popoverArrow {
4086
+ height: 0.1px;
4087
+ width: 0.1px;
4088
+ }
4089
+
4090
+ .Popover__borderLeft {
4091
+ position: absolute;
4092
+ left: 4px;
4093
+ top: var(--space-half);
4094
+ height: calc(100% - (var(--space-half) * 2));
4095
+ width: 3px;
4096
+ background-color: var(--popover-border-color);
4097
+ }
4098
+
4099
+ /* Adjust position to try to center the arrow in the tooltip's border */
4100
+
4101
+ [class*='Popover--top'] .Popover__popoverArrow {
4102
+ bottom: -1px;
4103
+ }
4104
+
4105
+ [class*='Popover--bottom'] .Popover__popoverArrow {
4106
+ top: -1px;
4107
+ }
4108
+
4109
+ [class*='Popover--left'] .Popover__popoverArrow {
4110
+ right: -1px;
4111
+ }
4112
+
4113
+ [class*='Popover--right'] .Popover__popoverArrow {
4114
+ left: 0;
4115
+ }
4116
+
4117
+ /*
4118
+ * Default tooltip arrow styles
4119
+ */
4120
+
4121
+ .Popover__popoverArrow:before {
4122
+ content: '';
4123
+ position: absolute;
4124
+ border-left: 6px solid transparent;
4125
+ border-right: 6px solid transparent;
4126
+ border-top: 7px solid var(--popover-border-color);
4127
+ border-bottom: none;
4128
+ transform: translateX(-50%);
4129
+ transform-origin: top;
4130
+ }
4131
+
4132
+ [class*='Popover--bottom'] .Popover__popoverArrow:before {
4133
+ transform: translateX(-50%) rotate(180deg);
4134
+ }
4135
+
4136
+ [class*='Popover--left'] .Popover__popoverArrow:before {
4137
+ transform: rotate(-90deg) translateY(-6px);
4138
+ }
4139
+
4140
+ [class*='Popover--right'] .Popover__popoverArrow:before {
4141
+ transform: rotate(90deg) translateY(100%);
4142
+ }
4143
+
4144
+ /* Alert popover styles */
4145
+
4146
+ .Popover--prompt {
4147
+ display: flex;
4148
+ flex-direction: column;
4149
+ align-items: center;
4150
+ justify-content: center;
4151
+ text-align: center;
4152
+ padding: var(--popover-alert-padding);
4153
+ max-width: var(--popover-alert-max-width);
4154
+ }
4155
+
4156
+ .Popover--prompt > .Button--thin {
4157
+ width: 100%;
4158
+ margin-left: 0;
4159
+ }
4160
+
4161
+ .Popover__apply {
4162
+ margin: var(--popover-alert-apply-button-margin);
4163
+ }
4164
+
4004
4165
  :root {
4005
4166
  --issue-panel-border-color: var(--gray-40);
4006
4167
  --issue-panel-header-background-color: var(--gray-20);
@@ -4790,7 +4951,7 @@ button.Accordion__trigger {
4790
4951
  .Notice .Notice__title,
4791
4952
  .Notice .Notice__title > :is(h1, h2, h3, h4, h5, h6) {
4792
4953
  display: flex;
4793
- align-items: center;
4954
+ align-items: flex-start;
4794
4955
  font-size: var(--text-size-small);
4795
4956
  font-weight: var(--notice-title-font-weight);
4796
4957
  margin: 0;
@@ -4838,3 +4999,252 @@ button.Accordion__trigger {
4838
4999
  margin-top: 0;
4839
5000
  margin-bottom: var(--space-smallest);
4840
5001
  }
5002
+
5003
+ :root {
5004
+ --combobox-input-border-color: var(--field-border-color);
5005
+ --combobox-input-background-color: var(--field-background-color);
5006
+ --combobox-input-border-focus-color: var(--field-border-color-focus);
5007
+ --combobox-input-border-hover-color: var(--field-border-color-focus-hover);
5008
+ --combobox-input-border-focus-glow-color: var(
5009
+ --field-border-color-focus-glow
5010
+ );
5011
+ --combobox-input-error-border-color: var(--field-border-color-error);
5012
+ --combobox-input-error-focus-border-color: var(
5013
+ --field-border-color-error-hover
5014
+ );
5015
+ --combobox-input-error-focus-border-glow-color: var(
5016
+ --field-border-color-focus-glow
5017
+ );
5018
+ --combobox-input-font-size: var(--field-font-size);
5019
+ --combobox-input-font-color: var(--field-content-color);
5020
+ --combobox-listbox-border-color: var(--gray-40);
5021
+ --combobox-listbox-background-color: #fff;
5022
+ --combobox-option-font-color: var(--gray-90);
5023
+ --combobox-option-hover-background-color: var(--gray-20);
5024
+ --combobox-option-description-font-color: var(--gray-60);
5025
+ --combobox-option-description-font-size: var(--text-size-smaller);
5026
+ --combobox-option-min-height: 2.625rem;
5027
+ --combobox-group-label-background-color: var(--gray-20);
5028
+ --combobox-group-label-font-size: var(--text-size-smaller);
5029
+ --combobox-option-selected-icon-color: var(--accent-success-dark);
5030
+ }
5031
+
5032
+ .cauldron--theme-dark {
5033
+ --combobox-input-border-color: var(--field-border-color);
5034
+ --combobox-input-background-color: var(--field-background-color);
5035
+ --combobox-input-border-focus-color: var(--field-border-color-focus);
5036
+ --combobox-input-border-hover-color: var(--field-border-color-focus-hover);
5037
+ --combobox-input-border-focus-glow-color: var(
5038
+ --field-border-color-focus-glow
5039
+ );
5040
+ --combobox-input-error-border-color: var(--field-border-color-error);
5041
+ --combobox-input-error-focus-border-color: var(
5042
+ --field-border-color-error-hover
5043
+ );
5044
+ --combobox-input-error-focus-border-glow-color: var(
5045
+ --field-border-color-focus-glow
5046
+ );
5047
+ --combobox-input-font-color: var(--field-content-color);
5048
+ --combobox-option-font-color: var(--text-color-light);
5049
+ --combobox-option-hover-background-color: var(--accent-dark);
5050
+ --combobox-option-description-font-color: var(--accent-light);
5051
+ --combobox-listbox-background-color: var(--accent-medium);
5052
+ --combobox-group-label-background-color: var(--accent-dark);
5053
+ --combobox-option-selected-icon-color: var(--accent-success-light);
5054
+ }
5055
+
5056
+ .Combobox {
5057
+ --field-listbox-selected-background-color: transparent;
5058
+ position: relative;
5059
+ }
5060
+
5061
+ .Combobox input:is(*, :focus, :hover) {
5062
+ border: none;
5063
+ box-shadow: none;
5064
+ margin: initial;
5065
+ padding: var(--space-smallest);
5066
+ }
5067
+
5068
+ .Combobox__input {
5069
+ position: relative;
5070
+ display: flex;
5071
+ align-items: center;
5072
+ border: 1px solid var(--combobox-input-border-color);
5073
+ border-bottom: 1px solid var(--field-border-color-underline);
5074
+ margin-bottom: var(--space-half);
5075
+ box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
5076
+ background-color: var(--combobox-input-background-color);
5077
+ }
5078
+
5079
+ .cauldron--theme-dark .Combobox__input {
5080
+ border: 1px solid var(--combobox-input-border-color);
5081
+ }
5082
+
5083
+ .Combobox__input:hover,
5084
+ .cauldron--theme-dark .Combobox__input:hover {
5085
+ border-color: var(--combobox-input-border-hover-color);
5086
+ }
5087
+
5088
+ .Combobox__input input[type='text'] {
5089
+ font-size: var(--combobox-input-font-size);
5090
+ color: var(--combobox-input-font-color);
5091
+ margin-right: 1.25rem;
5092
+ }
5093
+
5094
+ .Combobox__input:focus-within {
5095
+ border: 1px solid var(--combobox-input-border-focus-color);
5096
+ box-shadow: 0 0 0 2px var(--combobox-input-border-focus-color),
5097
+ 0 0 5px var(--combobox-input-border-focus-glow-color),
5098
+ inset 0 1px 2px rgba(0, 0, 0, 0.05);
5099
+ }
5100
+
5101
+ .Combobox__arrow {
5102
+ width: 2rem;
5103
+ display: flex;
5104
+ justify-content: center;
5105
+ position: absolute;
5106
+ right: 0;
5107
+ pointer-events: none;
5108
+ }
5109
+
5110
+ .Combobox__arrow:before {
5111
+ content: '';
5112
+ display: inline-block;
5113
+ border-top: 7px solid currentColor;
5114
+ border-left: 6px solid transparent;
5115
+ border-right: 6px solid transparent;
5116
+ border-radius: 2px;
5117
+ }
5118
+
5119
+ .Combobox__listbox {
5120
+ display: none;
5121
+ position: absolute;
5122
+ min-width: 100%;
5123
+ border: 1px solid var(--combobox-listbox-border-color);
5124
+ box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.15);
5125
+ background-color: var(--combobox-listbox-background-color);
5126
+ z-index: var(--z-index-listbox);
5127
+ max-width: var(--combobox-listbox-max-width, 100%);
5128
+ max-height: var(
5129
+ --combobox-listbox-max-height,
5130
+ calc(var(--combobox-option-min-height) * 10)
5131
+ );
5132
+ overflow-y: auto;
5133
+ animation: combobox-animate-in ease-out 150ms;
5134
+ }
5135
+
5136
+ @keyframes combobox-animate-in {
5137
+ from {
5138
+ transform: translateY(-8px);
5139
+ opacity: 0;
5140
+ }
5141
+ to {
5142
+ opacity: 1;
5143
+ }
5144
+ }
5145
+
5146
+ @media (prefers-reduced-motion) {
5147
+ .Combobox__listbox {
5148
+ animation: none;
5149
+ }
5150
+ }
5151
+
5152
+ .Combobox__listbox:hover {
5153
+ border-color: var(--combobox-listbox-border-color);
5154
+ }
5155
+
5156
+ /*
5157
+ * Note: Firefox doesn't yet have full support for :has, so .Combobox__listbox--open
5158
+ * is provided as a fallback selector to indicate open listboxes
5159
+ * see: https://caniuse.com/css-has
5160
+ */
5161
+
5162
+ .Combobox:has([role='combobox'][aria-expanded='true']) .Combobox__listbox,
5163
+ .Combobox__listbox--open {
5164
+ display: block;
5165
+ }
5166
+
5167
+ .Combobox__listbox li {
5168
+ list-style-type: none;
5169
+ }
5170
+
5171
+ .Combobox__listbox > ul[role='group']:not(:last-child) {
5172
+ border-bottom: 1px solid var(--combobox-listbox-border-color);
5173
+ }
5174
+
5175
+ .ComboboxGroup__label {
5176
+ background-color: var(--combobox-group-label-background-color);
5177
+ padding: var(--space-smallest);
5178
+ font-size: var(--combobox-group-label-font-size);
5179
+ font-weight: var(--font-weight-medium);
5180
+ border-bottom: 1px solid var(--combobox-listbox-border-color);
5181
+ }
5182
+
5183
+ .ComboboxGroup--hidden {
5184
+ display: none !important;
5185
+ }
5186
+
5187
+ .ComboboxOption {
5188
+ color: var(--combobox-option-font-color);
5189
+ padding: var(--space-smallest);
5190
+ cursor: pointer;
5191
+ display: flex;
5192
+ align-items: center;
5193
+ gap: var(--space-half);
5194
+ justify-content: space-between;
5195
+ min-height: var(--combobox-option-min-height);
5196
+ }
5197
+
5198
+ .ComboboxOption:not(:last-child) {
5199
+ border-bottom: 1px solid var(--combobox-listbox-border-color);
5200
+ }
5201
+
5202
+ .ComboboxOption--active {
5203
+ box-shadow: inset 0 0 0 1px var(--combobox-listbox-background-color),
5204
+ inset 0 0 0 3px var(--focus);
5205
+ }
5206
+
5207
+ .ComboboxOption:is(:hover, [role='option'][aria-selected='true']:hover) {
5208
+ background-color: var(--combobox-option-hover-background-color);
5209
+ }
5210
+
5211
+ .ComboboxOption .Icon {
5212
+ color: var(--combobox-option-selected-icon-color);
5213
+ }
5214
+
5215
+ .ComboboxOption .Icon svg {
5216
+ padding: 4px;
5217
+ height: 1.6em;
5218
+ width: 1.6em;
5219
+ border: 2.5px solid currentColor;
5220
+ border-radius: 50%;
5221
+ }
5222
+
5223
+ .ComboboxOption__match {
5224
+ text-decoration: underline;
5225
+ font-style: normal;
5226
+ font-weight: var(--font-weight-medium);
5227
+ }
5228
+
5229
+ .ComboboxOption__description {
5230
+ padding-top: var(--space-half);
5231
+ padding-bottom: var(--space-quarter);
5232
+ color: var(--combobox-option-description-font-color);
5233
+ font-size: var(--combobox-option-description-font-size);
5234
+ }
5235
+
5236
+ .Combobox__input--error {
5237
+ border: 1px solid var(--combobox-input-error-border-color);
5238
+ }
5239
+
5240
+ .Combobox__input--error:focus-within {
5241
+ border: 1px solid var(--combobox-input-error-border-color);
5242
+ box-shadow: 0 0 0 1px var(--combobox-input-error-focus-border-color),
5243
+ inset 0 2px 3px 0 rgba(0, 0, 0, 0.05),
5244
+ 0 0 5px 0 var(--combobox-input-error-focus-border-glow-color);
5245
+ }
5246
+
5247
+ .ComboboxListbox__empty {
5248
+ padding: var(--space-smaller);
5249
+ text-align: center;
5250
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deque/cauldron-styles",
3
- "version": "5.8.0",
3
+ "version": "5.8.1-canary.5655cf1a",
4
4
  "license": "MPL-2.0",
5
5
  "description": "deque cauldron pattern library styles",
6
6
  "repository": "https://github.com/dequelabs/cauldron",
@@ -22,4 +22,4 @@
22
22
  "postcss-cli": "^7.1.1",
23
23
  "postcss-import": "^12.0.1"
24
24
  }
25
- }
25
+ }