@deque/cauldron-styles 4.5.0-canary.7f6a304a → 4.5.0-canary.7fd7d095

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 (2) hide show
  1. package/dist/index.css +208 -3
  2. package/package.json +1 -1
package/dist/index.css CHANGED
@@ -8,6 +8,7 @@
8
8
  /* color palette */
9
9
  --white: #ffffff;
10
10
  --dark-workspace-color: #53636e;
11
+ --stroke-dark: #5d676f;
11
12
  --gray-10: #fdfdfe;
12
13
  --gray-20: #f2f2f2;
13
14
  --gray-30: #e0e0e0;
@@ -20,6 +21,7 @@
20
21
  --accent-light: #d4dde0;
21
22
  --accent-success: #a5db75;
22
23
  --accent-success-light: #d1ffa4;
24
+ --accent-success-dark: #57a711;
23
25
  --accent-error: #d93251;
24
26
  --accent-error-active: #c92e40;
25
27
  --accent-danger: #fe6d6b;
@@ -35,6 +37,10 @@
35
37
  --accent-secondary-active: var(--gray-30);
36
38
  --focus-light: #c11bde;
37
39
  --focus-dark: #eb94ff;
40
+ --issue-critical: #ed5959;
41
+ --issue-serious: #f3826b;
42
+ --issue-moderate: #ffdd76;
43
+ --issue-minor: #d3dde0;
38
44
 
39
45
  /* text colours */
40
46
  --text-color-base: var(--gray-60);
@@ -110,6 +116,10 @@
110
116
  --z-index-top-bar: 25;
111
117
  /* ensure this is 1 higher than the top bar z-index */
112
118
  --z-index-skip-container: calc(var(--z-index-top-bar) + 1);
119
+
120
+ /* radio card */
121
+ --radio-card-width: 255px;
122
+ --radio-card-height: 229px;
113
123
  }
114
124
 
115
125
  .cauldron--theme-dark {
@@ -389,6 +399,10 @@ p {
389
399
  gap: 8px;
390
400
  }
391
401
 
402
+ .Button--tag {
403
+ position: relative;
404
+ }
405
+
392
406
  button.Link {
393
407
  cursor: pointer;
394
408
  }
@@ -403,7 +417,8 @@ button.Link {
403
417
  .Button--primary:before,
404
418
  .Button--secondary:before,
405
419
  .Button--clear:before,
406
- .Button--error:before {
420
+ .Button--error:before,
421
+ .Button--tag:before {
407
422
  content: '';
408
423
  position: absolute;
409
424
  top: -2px;
@@ -414,6 +429,10 @@ button.Link {
414
429
  pointer-events: none;
415
430
  }
416
431
 
432
+ .Button--tag:before {
433
+ border-radius: 11px;
434
+ }
435
+
417
436
  .Button--primary:not([disabled]):not([aria-disabled='true']):hover:before {
418
437
  box-shadow: 0 0 0 1px var(--button-outline-color-primary);
419
438
  }
@@ -426,9 +445,14 @@ button.Link {
426
445
  box-shadow: 0 0 0 1px var(--button-outline-color-error);
427
446
  }
428
447
 
448
+ .Button--tag:not([disabled]):not([aria-disabled='true']):hover:before {
449
+ box-shadow: 0 0 0 1px var(--button-outline-color-primary);
450
+ }
451
+
429
452
  .Button--primary:focus:before,
430
453
  .Button--secondary:focus:before,
431
- .Button--error:focus:before {
454
+ .Button--error:focus:before,
455
+ .Button--tag:focus:before {
432
456
  box-shadow: 0 0 1px 2px var(--button-focus-ring-color, --focus);
433
457
  }
434
458
 
@@ -479,6 +503,11 @@ button.Link {
479
503
  background-color: var(--button-background-color-error-active);
480
504
  }
481
505
 
506
+ .Button--tag[aria-disabled='true'],
507
+ .Button--tag[disabled] {
508
+ color: var(--disabled);
509
+ }
510
+
482
511
  .Button--primary .Icon,
483
512
  .Button--secondary .Icon,
484
513
  .Button--clear .Icon,
@@ -563,7 +592,8 @@ button.Link {
563
592
  .cauldron--theme-dark .Button--secondary[aria-disabled='true'],
564
593
  .cauldron--theme-dark .Button--secondary[disabled],
565
594
  .cauldron--theme-dark .Button--error[aria-disabled='true'],
566
- .cauldron--theme-dark .Button--error[disabled] {
595
+ .cauldron--theme-dark .Button--error[disabled],
596
+ .cauldron--theme-dark .Button--tag[disabled] {
567
597
  color: var(--dark-workspace-color);
568
598
  }
569
599
 
@@ -603,6 +633,12 @@ button.Link {
603
633
  0 0 0 2px var(--accent-danger);
604
634
  }
605
635
 
636
+ .cauldron--theme-dark
637
+ .Button--tag:not([disabled]):not([aria-disabled='true']):hover:before {
638
+ box-shadow: 0 0 0 1px var(--dark-workspace-color),
639
+ 0 0 0 2px var(--accent-info);
640
+ }
641
+
606
642
  :root {
607
643
  --icon-button-background-color-primary: var(
608
644
  --button-background-color-primary
@@ -2189,6 +2225,96 @@ p .Link {
2189
2225
  background-color: var(--accent-dark);
2190
2226
  }
2191
2227
 
2228
+ .RadioCard__overlay {
2229
+ border-radius: 50%;
2230
+ }
2231
+
2232
+ .RadioCard input[type='radio'] {
2233
+ position: absolute;
2234
+ opacity: 0;
2235
+ -webkit-appearance: none;
2236
+ -moz-appearance: none;
2237
+ appearance: none;
2238
+ height: 1px;
2239
+ width: 1px;
2240
+ }
2241
+
2242
+ .RadioCard__overlay.RadioCard__overlay--focused {
2243
+ border: 1px solid var(--focus);
2244
+ box-shadow: inset 0 0 0 1px var(--focus), 0 0 4px 2px var(--focus-glow);
2245
+ }
2246
+
2247
+ .RadioCard__overlay--checked.RadioCard__overlay--checked {
2248
+ background-color: var(--gray-20);
2249
+ }
2250
+
2251
+ .RadioCard__overlay.RadioCard__overlay--disabled,
2252
+ .RadioCard__overlay.RadioCard__overlay--disabled:hover {
2253
+ background-color: var(--gray-30);
2254
+ }
2255
+
2256
+ .RadioCardGroup {
2257
+ display: flex;
2258
+ gap: var(--space-large);
2259
+ flex-wrap: wrap;
2260
+ }
2261
+
2262
+ .RadioCardGroup .Radio + .Radio {
2263
+ margin-top: 0;
2264
+ }
2265
+
2266
+ .RadioCardGroup__Base {
2267
+ text-align: center;
2268
+ }
2269
+
2270
+ .RadioCardGroup__Checked {
2271
+ display: flex;
2272
+ justify-content: flex-end;
2273
+ min-height: 44px;
2274
+ }
2275
+
2276
+ .RadioCardGroup__Icon.Icon svg {
2277
+ color: var(--accent-success-dark);
2278
+ height: 44px;
2279
+ width: 44px;
2280
+ }
2281
+
2282
+ .RadioCardGroup__Card.Card--simple {
2283
+ width: var(--radio-card-width);
2284
+ height: var(--radio-card-height);
2285
+ align-content: center;
2286
+ }
2287
+
2288
+ .RadioCardGroup__Card:hover {
2289
+ background-color: var(--gray-20);
2290
+ }
2291
+
2292
+ .Radio__overlay--checked.Radio__overlay--checked {
2293
+ background-color: var(--gray-20);
2294
+ }
2295
+
2296
+ .RadioCardGroup__Image * {
2297
+ max-width: 100%;
2298
+ }
2299
+
2300
+ .RadioCardGroup__Image {
2301
+ width: 100px;
2302
+ height: 100px;
2303
+ display: flex;
2304
+ align-items: center;
2305
+ justify-content: center;
2306
+ margin: 0 auto;
2307
+ }
2308
+
2309
+ .RadioCardGroup__Label {
2310
+ font-size: var(--text-size-medium);
2311
+ font-weight: var(--font-weight-bold);
2312
+ color: var(--field-label-text-color);
2313
+ margin-top: var(--space-small);
2314
+ display: flex;
2315
+ justify-content: center;
2316
+ }
2317
+
2192
2318
  :root {
2193
2319
  --tile-background-color: var(--white);
2194
2320
  --list-separator: rgba(153, 153, 153, 0.15);
@@ -4301,3 +4427,82 @@ fieldset.Panel {
4301
4427
  display: none;
4302
4428
  }
4303
4429
  }
4430
+
4431
+ :root {
4432
+ --accordion-trigger-background-color: var(--white);
4433
+ --accordion-trigger-background-color-expanded: var(--gray-20);
4434
+ --accordion-trigger-text-color: var(--gray-90);
4435
+ --accordion-trigger-text-color-hover: var(--accent-primary);
4436
+ --accordion-trigger-box-shadow-hover: var(--accent-primary);
4437
+ --accordion-trigger-border-color: var(--gray-40);
4438
+ --accordion-trigger-icon-color: var(--gray-90);
4439
+ --accordion-panel-background-color: var(--white);
4440
+ --accordion-panel-text-color: var(--gray-90);
4441
+ --accordion-panel-border-color: var(--gray-40);
4442
+ --accordion-box-shadow-color: rgba(0, 0, 0, 0.15);
4443
+ }
4444
+
4445
+ .cauldron--theme-dark {
4446
+ --accordion-trigger-background-color: var(--accent-medium);
4447
+ --accordion-trigger-background-color-expanded: var(--accent-dark);
4448
+ --accordion-trigger-text-color: var(--white);
4449
+ --accordion-trigger-text-color-hover: var(--accent-light);
4450
+ --accordion-trigger-box-shadow-hover: var(--accent-info);
4451
+ --accordion-trigger-border-color: var(--stroke-dark);
4452
+ --accordion-trigger-icon-color: var(--white);
4453
+ --accordion-panel-background-color: var(--accent-medium);
4454
+ --accordion-panel-text-color: var(--white);
4455
+ --accordion-panel-border-color: var(--stroke-dark);
4456
+ }
4457
+
4458
+ .Accordion > :is(h1, h2, h3, h4, h5, h6):first-of-type {
4459
+ all: unset;
4460
+ }
4461
+
4462
+ .Accordion__trigger[type='button'] {
4463
+ background: var(--accordion-trigger-background-color);
4464
+ padding: calc(var(--space-small) - var(--space-half));
4465
+ width: 100%;
4466
+ display: flex;
4467
+ align-items: center;
4468
+ border-radius: 3px;
4469
+ border: 1px solid var(--accordion-trigger-border-color);
4470
+ font-size: var(--text-size-small);
4471
+ margin-top: var(--space-small);
4472
+ color: var(--accordion-trigger-text-color);
4473
+ -webkit-text-decoration: underline solid var(--accordion-trigger-text-color);
4474
+ text-decoration: underline solid var(--accordion-trigger-text-color);
4475
+ }
4476
+
4477
+ button.Accordion__trigger[aria-expanded='true'] {
4478
+ border-bottom-right-radius: 0;
4479
+ border-bottom-left-radius: 0;
4480
+ background: var(--accordion-trigger-background-color-expanded);
4481
+ }
4482
+
4483
+ button.Accordion__trigger:hover {
4484
+ box-shadow: inset 8px 0 0 -4px var(--accordion-trigger-box-shadow-hover);
4485
+ color: var(--accordion-trigger-text-color-hover);
4486
+ transition: all 0.2s ease-in-out;
4487
+ -webkit-text-decoration: underline solid var(--accordion-trigger-text-color-hover);
4488
+ text-decoration: underline solid var(--accordion-trigger-text-color-hover);
4489
+ }
4490
+
4491
+ button.Accordion__trigger:hover .Icon {
4492
+ color: var(--accordion-trigger-icon-color);
4493
+ }
4494
+
4495
+ .Accordion .Icon {
4496
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
4497
+ transition-duration: 0.2s;
4498
+ }
4499
+
4500
+ .Accordion__panel {
4501
+ background: var(--accordion-panel-background-color);
4502
+ color: var(--accordion-panel-text-color);
4503
+ padding: var(--space-small);
4504
+ border: 1px solid var(--accordion-panel-border-color);
4505
+ border-top: 0;
4506
+ border-radius: 0 0 3px 3px;
4507
+ box-shadow: 0 2px 3px 0 var(--accordion-box-shadow-color);
4508
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deque/cauldron-styles",
3
- "version": "4.5.0-canary.7f6a304a",
3
+ "version": "4.5.0-canary.7fd7d095",
4
4
  "license": "MPL-2.0",
5
5
  "description": "deque cauldron pattern library styles",
6
6
  "repository": "https://github.com/dequelabs/cauldron",