@deque/cauldron-styles 4.4.0-canary.f8ca4e9b → 4.5.0-canary.7f1627ef

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 +95 -0
  2. package/package.json +1 -1
package/dist/index.css CHANGED
@@ -20,6 +20,7 @@
20
20
  --accent-light: #d4dde0;
21
21
  --accent-success: #a5db75;
22
22
  --accent-success-light: #d1ffa4;
23
+ --accent-success-dark: #57a711;
23
24
  --accent-error: #d93251;
24
25
  --accent-error-active: #c92e40;
25
26
  --accent-danger: #fe6d6b;
@@ -110,6 +111,10 @@
110
111
  --z-index-top-bar: 25;
111
112
  /* ensure this is 1 higher than the top bar z-index */
112
113
  --z-index-skip-container: calc(var(--z-index-top-bar) + 1);
114
+
115
+ /* radio card */
116
+ --radio-card-width: 255px;
117
+ --radio-card-height: 229px;
113
118
  }
114
119
 
115
120
  .cauldron--theme-dark {
@@ -2189,6 +2194,96 @@ p .Link {
2189
2194
  background-color: var(--accent-dark);
2190
2195
  }
2191
2196
 
2197
+ .RadioCard__overlay {
2198
+ border-radius: 50%;
2199
+ }
2200
+
2201
+ .RadioCard input[type='radio'] {
2202
+ position: absolute;
2203
+ opacity: 0;
2204
+ -webkit-appearance: none;
2205
+ -moz-appearance: none;
2206
+ appearance: none;
2207
+ height: 1px;
2208
+ width: 1px;
2209
+ }
2210
+
2211
+ .RadioCard__overlay.RadioCard__overlay--focused {
2212
+ border: 1px solid var(--focus);
2213
+ box-shadow: inset 0 0 0 1px var(--focus), 0 0 4px 2px var(--focus-glow);
2214
+ }
2215
+
2216
+ .RadioCard__overlay--checked.RadioCard__overlay--checked {
2217
+ background-color: var(--gray-20);
2218
+ }
2219
+
2220
+ .RadioCard__overlay.RadioCard__overlay--disabled,
2221
+ .RadioCard__overlay.RadioCard__overlay--disabled:hover {
2222
+ background-color: var(--gray-30);
2223
+ }
2224
+
2225
+ .RadioCardGroup {
2226
+ display: flex;
2227
+ gap: var(--space-large);
2228
+ flex-wrap: wrap;
2229
+ }
2230
+
2231
+ .RadioCardGroup .Radio + .Radio {
2232
+ margin-top: 0;
2233
+ }
2234
+
2235
+ .RadioCardGroup__Base {
2236
+ text-align: center;
2237
+ }
2238
+
2239
+ .RadioCardGroup__Checked {
2240
+ display: flex;
2241
+ justify-content: end;
2242
+ min-height: 44px;
2243
+ }
2244
+
2245
+ .RadioCardGroup__Icon.Icon svg {
2246
+ color: var(--accent-success-dark);
2247
+ height: 44px;
2248
+ width: 44px;
2249
+ }
2250
+
2251
+ .RadioCardGroup__Card.Card--simple {
2252
+ width: var(--radio-card-width);
2253
+ height: var(--radio-card-height);
2254
+ align-content: center;
2255
+ }
2256
+
2257
+ .RadioCardGroup__Card:hover {
2258
+ background-color: var(--gray-20);
2259
+ }
2260
+
2261
+ .Radio__overlay--checked.Radio__overlay--checked {
2262
+ background-color: var(--gray-20);
2263
+ }
2264
+
2265
+ .RadioCardGroup__Image * {
2266
+ max-width: 100%;
2267
+ }
2268
+
2269
+ .RadioCardGroup__Image {
2270
+ width: 100px;
2271
+ height: 100px;
2272
+ display: flex;
2273
+ align-items: center;
2274
+ justify-content: center;
2275
+ margin: 0 auto;
2276
+ }
2277
+
2278
+ .RadioCardGroup__Label {
2279
+ font-size: var(--text-size-medium);
2280
+ font-weight: var(--font-weight-bold);
2281
+ color: var(--field-label-text-color);
2282
+ margin-top: var(--space-small);
2283
+ display: flex;
2284
+ justify-content: center;
2285
+ }
2286
+
2192
2287
  :root {
2193
2288
  --tile-background-color: var(--white);
2194
2289
  --list-separator: rgba(153, 153, 153, 0.15);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deque/cauldron-styles",
3
- "version": "4.4.0-canary.f8ca4e9b",
3
+ "version": "4.5.0-canary.7f1627ef",
4
4
  "license": "MPL-2.0",
5
5
  "description": "deque cauldron pattern library styles",
6
6
  "repository": "https://github.com/dequelabs/cauldron",