@thecb/components 12.0.0-beta.1 → 12.0.0-beta.2

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "12.0.0-beta.1",
3
+ "version": "12.0.0-beta.2",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -36,11 +36,6 @@ const LinkCard = ({
36
36
  tabIndex={disabled ? -1 : 0}
37
37
  borderRadius="8px"
38
38
  dataQa={`link-card-${locatorSlug}`}
39
- width="100%"
40
- maxWidth={isMobile ? "100%" : "288px"}
41
- minWidth={isMobile ? "240px" : "288px"}
42
- minHeight="141px"
43
- padding={SPACING.MD}
44
39
  themeValues={themeValues}
45
40
  extraStyles={extraStyles}
46
41
  hoverStyles={extraHoverStyles}
@@ -1,4 +1,5 @@
1
1
  import React from "react";
2
+ import { Grid } from "../../atoms/layouts";
2
3
  import {
3
4
  COOL_GREY_05,
4
5
  MANATEE_GREY,
@@ -252,6 +253,161 @@ export const ExternalLinkCard = {
252
253
  }
253
254
  };
254
255
 
256
+ export const GridOfLinkCards = {
257
+ args: {
258
+ title: "Water Bills - Autopay",
259
+ subtitle: "Cityville Water Management",
260
+ href: "/water-bills"
261
+ },
262
+ render: args => {
263
+ return (
264
+ <Grid columnGap="40px">
265
+ <LinkCard
266
+ {...args}
267
+ extraStyles={`transition: all .2s ease-in-out;`}
268
+ extraHoverStyles={`.show-on-hover {opacity: 1}`}
269
+ showLeft={true}
270
+ leftContent={
271
+ <Badge
272
+ label="Autopay Available"
273
+ variant={"success"}
274
+ Icon={() =>
275
+ AutopayIcon({
276
+ fill: SEA_GREEN
277
+ })
278
+ }
279
+ />
280
+ }
281
+ showRight={true}
282
+ rightContent={
283
+ <Box
284
+ extraStyles={`
285
+ display: flex;
286
+ gap: 6px;
287
+ justify-content: space-between;
288
+ align-items: center;
289
+ `}
290
+ padding="0"
291
+ hoverStyles=".show-on-hover {opacity: 1;}"
292
+ >
293
+ <Text
294
+ variant="pS"
295
+ className="show-on-hover"
296
+ color={ROYAL_BLUE_VIVID}
297
+ id={`workflow-two`}
298
+ extraStyles={`
299
+ transition: opacity .2s ease-in-out;
300
+ opacity: 0
301
+ `}
302
+ >
303
+ {"Find"}
304
+ </Text>
305
+ <PlusCircleIcon
306
+ labelledBy={`workflow-two`}
307
+ color={ROYAL_BLUE_VIVID}
308
+ />
309
+ </Box>
310
+ }
311
+ />
312
+ <LinkCard
313
+ {...args}
314
+ extraStyles={`transition: all .2s ease-in-out;`}
315
+ extraHoverStyles={`.show-on-hover {opacity: 1}`}
316
+ showLeft={true}
317
+ leftContent={
318
+ <Badge
319
+ label="Autopay Available"
320
+ variant={"success"}
321
+ Icon={() =>
322
+ AutopayIcon({
323
+ fill: SEA_GREEN
324
+ })
325
+ }
326
+ />
327
+ }
328
+ showRight={true}
329
+ rightContent={
330
+ <Box
331
+ extraStyles={`
332
+ display: flex;
333
+ gap: 6px;
334
+ justify-content: space-between;
335
+ align-items: center;
336
+ `}
337
+ padding="0"
338
+ hoverStyles=".show-on-hover {opacity: 1;}"
339
+ >
340
+ <Text
341
+ variant="pS"
342
+ className="show-on-hover"
343
+ color={ROYAL_BLUE_VIVID}
344
+ id={`workflow-two`}
345
+ extraStyles={`
346
+ transition: opacity .2s ease-in-out;
347
+ opacity: 0
348
+ `}
349
+ >
350
+ {"Find"}
351
+ </Text>
352
+ <PlusCircleIcon
353
+ labelledBy={`workflow-two`}
354
+ color={ROYAL_BLUE_VIVID}
355
+ />
356
+ </Box>
357
+ }
358
+ />
359
+ <LinkCard
360
+ {...args}
361
+ extraStyles={`transition: all .2s ease-in-out;`}
362
+ extraHoverStyles={`.show-on-hover {opacity: 1}`}
363
+ showLeft={true}
364
+ leftContent={
365
+ <Badge
366
+ label="Autopay Available"
367
+ variant={"success"}
368
+ Icon={() =>
369
+ AutopayIcon({
370
+ fill: SEA_GREEN
371
+ })
372
+ }
373
+ />
374
+ }
375
+ showRight={true}
376
+ rightContent={
377
+ <Box
378
+ extraStyles={`
379
+ display: flex;
380
+ gap: 6px;
381
+ justify-content: space-between;
382
+ align-items: center;
383
+ `}
384
+ padding="0"
385
+ hoverStyles=".show-on-hover {opacity: 1;}"
386
+ >
387
+ <Text
388
+ variant="pS"
389
+ className="show-on-hover"
390
+ color={ROYAL_BLUE_VIVID}
391
+ id={`workflow-two`}
392
+ extraStyles={`
393
+ transition: opacity .2s ease-in-out;
394
+ opacity: 0
395
+ `}
396
+ >
397
+ {"Find"}
398
+ </Text>
399
+ <PlusCircleIcon
400
+ labelledBy={`workflow-two`}
401
+ color={ROYAL_BLUE_VIVID}
402
+ />
403
+ </Box>
404
+ }
405
+ />
406
+ </Grid>
407
+ );
408
+ }
409
+ };
410
+
255
411
  export const CompleteLinkCard = {
256
412
  args: {
257
413
  title: "Water Bills - Autopay",
@@ -15,12 +15,9 @@ export const Container = styled(Box)`
15
15
  display: flex;
16
16
  flex-direction: column;
17
17
  align-items: flex-start;
18
- width: 100%;
19
- gap: 40px;
20
- flex-shrink: 0;
21
18
  align-self: stretch;
22
19
  border-radius: 8px;
23
- padding: ${SPACING.MD};
20
+ padding: 24px;
24
21
  ${({ disabled, themeValues }) => `
25
22
  background-color: ${
26
23
  disabled