@common-origin/design-system 1.8.6 → 1.9.1

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.
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export type ArtCardProps = {
2
3
  title: string;
3
4
  excerpt: string;
@@ -0,0 +1,10 @@
1
+ export type CardLargeProps = {
2
+ title: string;
3
+ excerpt: string;
4
+ subtitle?: string;
5
+ labels?: string[];
6
+ picture: string;
7
+ onImageClick?: () => void;
8
+ imageHref?: string;
9
+ };
10
+ export declare const CardLarge: ({ title, excerpt, subtitle, labels, picture, onImageClick, imageHref, }: CardLargeProps) => import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './CardLarge';
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ export type CardSmallProps = {
3
+ title: string;
4
+ picture?: string;
5
+ subtitle?: string;
6
+ meta?: string;
7
+ href?: string;
8
+ };
9
+ export declare const CardSmall: React.FC<CardSmallProps>;
@@ -0,0 +1 @@
1
+ export * from './CardSmall';
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ export type FeatureBlockProps = {
3
+ title: string;
4
+ excerpt: string;
5
+ labels: string[];
6
+ coverImage: string;
7
+ date: string;
8
+ onReadMore?: () => void;
9
+ readMoreHref?: string;
10
+ readMoreText?: string;
11
+ };
12
+ export declare const FeatureBlock: React.FC<FeatureBlockProps>;
@@ -0,0 +1 @@
1
+ export * from './FeatureBlock';
@@ -1,8 +1,8 @@
1
- export * from './ArtCard';
2
1
  export * from './Breadcrumbs';
2
+ export * from './CardSmall';
3
+ export * from './CardLarge';
3
4
  export * from './ChipGroup';
4
5
  export * from './CodeBlock';
5
- export * from './DesignCard';
6
+ export * from './FeatureBlock';
6
7
  export * from './Dropdown';
7
8
  export * from './PageTitle';
8
- export * from './ReleaseCard';
package/dist/index.esm.js CHANGED
@@ -2,7 +2,6 @@ import React, { useState, useRef, useEffect } from 'react';
2
2
  import styled, { keyframes, css } from 'styled-components';
3
3
  import Link from 'next/link';
4
4
  import { parseISO, format } from 'date-fns';
5
- import Image from 'next/image';
6
5
 
7
6
  function _extends() {
8
7
  return _extends = Object.assign ? Object.assign.bind() : function (n) {
@@ -1949,7 +1948,7 @@ var Picture = function Picture(_a) {
1949
1948
  dataTestId = _a["data-testid"];
1950
1949
  var image = /*#__PURE__*/React.createElement(StyledImage, {
1951
1950
  src: src,
1952
- alt: "Cover Image for ".concat(title),
1951
+ alt: title,
1953
1952
  width: width,
1954
1953
  height: height
1955
1954
  });
@@ -2341,65 +2340,12 @@ var Stack = function Stack(_a) {
2341
2340
  };
2342
2341
  var templateObject_1$9;
2343
2342
 
2344
- React.createElement;
2345
- var border$3 = tokens.base.border;
2346
- var ArtCardStyled = styled.div.withConfig({
2347
- displayName: "ArtCard__ArtCardStyled",
2348
- componentId: "sc-1788cyb-0"
2349
- })(templateObject_1$8 || (templateObject_1$8 = __makeTemplateObject(["\n max-width: 768px;\n\n a {\n text-decoration: none;\n }\n\n &:hover {\n img {\n opacity: 0.8;\n }\n }\n\n img {\n border-radius: ", ";\n transition: ease opacity 0.2s;\n width: 100%;\n }\n"], ["\n max-width: 768px;\n\n a {\n text-decoration: none;\n }\n\n &:hover {\n img {\n opacity: 0.8;\n }\n }\n\n img {\n border-radius: ", ";\n transition: ease opacity 0.2s;\n width: 100%;\n }\n"])), border$3.radius[6]);
2350
- var ArtCard = function ArtCard(_a) {
2351
- var title = _a.title;
2352
- _a.excerpt;
2353
- var tag = _a.tag,
2354
- artist = _a.artist,
2355
- labels = _a.labels,
2356
- coverImage = _a.coverImage,
2357
- onImageClick = _a.onImageClick,
2358
- imageHref = _a.imageHref;
2359
- if (tag === 'art') {
2360
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ArtCardStyled, null, /*#__PURE__*/React.createElement(Stack, {
2361
- direction: "column",
2362
- gap: "md"
2363
- }, /*#__PURE__*/React.createElement(Picture, {
2364
- title: title,
2365
- src: coverImage,
2366
- onClick: onImageClick,
2367
- href: imageHref
2368
- }), /*#__PURE__*/React.createElement(Stack, {
2369
- direction: "row",
2370
- alignItems: "flex-start",
2371
- justifyContent: "space-between",
2372
- gap: "xs"
2373
- }, /*#__PURE__*/React.createElement(Stack, {
2374
- direction: "column",
2375
- gap: "xs"
2376
- }, /*#__PURE__*/React.createElement(Typography, {
2377
- variant: "h6"
2378
- }, title), /*#__PURE__*/React.createElement(Typography, {
2379
- variant: "small",
2380
- color: "subdued"
2381
- }, artist)), /*#__PURE__*/React.createElement(Stack, {
2382
- direction: "row",
2383
- alignItems: "center",
2384
- gap: "xs"
2385
- }, Array.isArray(labels) && labels.map(function (label, index) {
2386
- return /*#__PURE__*/React.createElement(Chip, {
2387
- key: index,
2388
- title: label,
2389
- variant: "default"
2390
- });
2391
- }))))));
2392
- }
2393
- return null;
2394
- };
2395
- var templateObject_1$8;
2396
-
2397
2343
  React.createElement;
2398
2344
  var _a$3, _b$1, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
2399
2345
  var BreadcrumbNavStyled = styled.nav.withConfig({
2400
2346
  displayName: "Breadcrumbs__BreadcrumbNavStyled",
2401
2347
  componentId: "sc-7ouzg5-0"
2402
- })(templateObject_1$7 || (templateObject_1$7 = __makeTemplateObject(["\n border-bottom: ", ";\n\n ol {\n display: flex;\n align-items: center;\n list-style: none;\n margin: 0;\n padding: 0;\n }\n"], ["\n border-bottom: ", ";\n\n ol {\n display: flex;\n align-items: center;\n list-style: none;\n margin: 0;\n padding: 0;\n }\n"])), ((_b$1 = (_a$3 = tokens.semantic) === null || _a$3 === void 0 ? void 0 : _a$3.border) === null || _b$1 === void 0 ? void 0 : _b$1["default"]) || '0.0625rem solid #e9ecef');
2348
+ })(templateObject_1$8 || (templateObject_1$8 = __makeTemplateObject(["\n border-bottom: ", ";\n\n ol {\n display: flex;\n align-items: center;\n list-style: none;\n margin: 0;\n padding: 0;\n }\n"], ["\n border-bottom: ", ";\n\n ol {\n display: flex;\n align-items: center;\n list-style: none;\n margin: 0;\n padding: 0;\n }\n"])), ((_b$1 = (_a$3 = tokens.semantic) === null || _a$3 === void 0 ? void 0 : _a$3.border) === null || _b$1 === void 0 ? void 0 : _b$1["default"]) || '0.0625rem solid #e9ecef');
2403
2349
  var BreadcrumbStyled = styled.li.withConfig({
2404
2350
  displayName: "Breadcrumbs__BreadcrumbStyled",
2405
2351
  componentId: "sc-7ouzg5-1"
@@ -2429,13 +2375,108 @@ var Breadcrumbs = function Breadcrumbs(_a) {
2429
2375
  }, breadcrumb.label)));
2430
2376
  }))));
2431
2377
  };
2432
- var templateObject_1$7, templateObject_2$4;
2378
+ var templateObject_1$8, templateObject_2$4;
2379
+
2380
+ React.createElement;
2381
+ var CardSmallStyled = styled.div.withConfig({
2382
+ displayName: "CardSmall__CardSmallStyled",
2383
+ componentId: "sc-jpcqvd-0"
2384
+ })(templateObject_1$7 || (templateObject_1$7 = __makeTemplateObject(["\n a {\n text-decoration: none;\n }\n\n img {\n border-radius: ", ";\n transition: ease opacity 0.2s;\n width: 100%;\n height: auto;\n display: block;\n }\n\n &:hover {\n img {\n opacity: 0.8;\n }\n }\n\n &:focus-within {\n outline: none;\n box-shadow: 0 0 0 2px ", ";\n }\n"], ["\n a {\n text-decoration: none;\n }\n\n img {\n border-radius: ", ";\n transition: ease opacity 0.2s;\n width: 100%;\n height: auto;\n display: block;\n }\n\n &:hover {\n img {\n opacity: 0.8;\n }\n }\n\n &:focus-within {\n outline: none;\n box-shadow: 0 0 0 2px ", ";\n }\n"])), tokens.base.border.radius[2], tokens.semantic.color.border.strong);
2385
+ var CardSmall = function CardSmall(_a) {
2386
+ var title = _a.title,
2387
+ picture = _a.picture,
2388
+ subtitle = _a.subtitle,
2389
+ meta = _a.meta,
2390
+ href = _a.href;
2391
+ if (!picture || !meta) {
2392
+ return null;
2393
+ }
2394
+ return /*#__PURE__*/React.createElement(CardSmallStyled, null, /*#__PURE__*/React.createElement(Link, {
2395
+ href: href || '#',
2396
+ "aria-label": title
2397
+ }, /*#__PURE__*/React.createElement(Stack, {
2398
+ direction: "column",
2399
+ gap: "sm"
2400
+ }, /*#__PURE__*/React.createElement(Picture, {
2401
+ title: title,
2402
+ src: picture,
2403
+ width: 300,
2404
+ height: 300
2405
+ }), /*#__PURE__*/React.createElement(Stack, {
2406
+ direction: "column",
2407
+ gap: "xs"
2408
+ }, /*#__PURE__*/React.createElement(Typography, {
2409
+ variant: "small"
2410
+ }, title), /*#__PURE__*/React.createElement(Stack, {
2411
+ direction: "column",
2412
+ gap: "none"
2413
+ }, subtitle && /*#__PURE__*/React.createElement(Typography, {
2414
+ variant: "label",
2415
+ color: "subdued"
2416
+ }, subtitle), meta && /*#__PURE__*/React.createElement(Typography, {
2417
+ variant: "label",
2418
+ color: "subdued"
2419
+ }, meta))))));
2420
+ };
2421
+ var templateObject_1$7;
2422
+
2423
+ React.createElement;
2424
+ var border$3 = tokens.base.border;
2425
+ var CardLargeStyled = styled.div.withConfig({
2426
+ displayName: "CardLarge__CardLargeStyled",
2427
+ componentId: "sc-1rfgdzl-0"
2428
+ })(templateObject_1$6 || (templateObject_1$6 = __makeTemplateObject(["\n max-width: 768px;\n\n a {\n text-decoration: none;\n }\n\n &:hover {\n img {\n opacity: 0.8;\n }\n }\n\n img {\n border-radius: ", ";\n transition: ease opacity 0.2s;\n width: 100%;\n }\n"], ["\n max-width: 768px;\n\n a {\n text-decoration: none;\n }\n\n &:hover {\n img {\n opacity: 0.8;\n }\n }\n\n img {\n border-radius: ", ";\n transition: ease opacity 0.2s;\n width: 100%;\n }\n"])), border$3.radius[6]);
2429
+ var CardLarge = function CardLarge(_a) {
2430
+ var title = _a.title,
2431
+ excerpt = _a.excerpt,
2432
+ subtitle = _a.subtitle,
2433
+ _b = _a.labels,
2434
+ labels = _b === void 0 ? [] : _b,
2435
+ picture = _a.picture,
2436
+ onImageClick = _a.onImageClick,
2437
+ imageHref = _a.imageHref;
2438
+ return /*#__PURE__*/React.createElement(CardLargeStyled, null, /*#__PURE__*/React.createElement(Stack, {
2439
+ direction: "column",
2440
+ gap: "md"
2441
+ }, /*#__PURE__*/React.createElement(Picture, {
2442
+ title: title,
2443
+ src: picture,
2444
+ onClick: onImageClick,
2445
+ href: imageHref
2446
+ }), /*#__PURE__*/React.createElement(Stack, {
2447
+ direction: "row",
2448
+ alignItems: "flex-start",
2449
+ justifyContent: "space-between",
2450
+ gap: "xs"
2451
+ }, /*#__PURE__*/React.createElement(Stack, {
2452
+ direction: "column",
2453
+ gap: "xs"
2454
+ }, /*#__PURE__*/React.createElement(Typography, {
2455
+ variant: "h5"
2456
+ }, title), subtitle && /*#__PURE__*/React.createElement(Typography, {
2457
+ variant: "small",
2458
+ color: "subdued"
2459
+ }, subtitle), excerpt && /*#__PURE__*/React.createElement(Typography, {
2460
+ variant: "body"
2461
+ }, excerpt)), /*#__PURE__*/React.createElement(Stack, {
2462
+ direction: "row",
2463
+ alignItems: "center",
2464
+ gap: "xs"
2465
+ }, Array.isArray(labels) && labels.map(function (label, index) {
2466
+ return /*#__PURE__*/React.createElement(Chip, {
2467
+ key: index,
2468
+ title: label,
2469
+ variant: "default"
2470
+ });
2471
+ })))));
2472
+ };
2473
+ var templateObject_1$6;
2433
2474
 
2434
2475
  React.createElement;
2435
2476
  var ChipGroupWrapper = styled.div.withConfig({
2436
2477
  displayName: "ChipGroup__ChipGroupWrapper",
2437
2478
  componentId: "sc-ae049w-0"
2438
- })(templateObject_1$6 || (templateObject_1$6 = __makeTemplateObject(["\n > div {\n display: flex;\n flex-wrap: wrap;\n }\n"], ["\n > div {\n display: flex;\n flex-wrap: wrap;\n }\n"])));
2479
+ })(templateObject_1$5 || (templateObject_1$5 = __makeTemplateObject(["\n > div {\n display: flex;\n flex-wrap: wrap;\n }\n"], ["\n > div {\n display: flex;\n flex-wrap: wrap;\n }\n"])));
2439
2480
  var ChipGroup = function ChipGroup(_a) {
2440
2481
  var labels = _a.labels,
2441
2482
  _b = _a.variant,
@@ -2454,7 +2495,7 @@ var ChipGroup = function ChipGroup(_a) {
2454
2495
  });
2455
2496
  })));
2456
2497
  };
2457
- var templateObject_1$6;
2498
+ var templateObject_1$5;
2458
2499
 
2459
2500
  React.createElement;
2460
2501
  var _a$2 = tokens.semantic,
@@ -2464,7 +2505,7 @@ var _a$2 = tokens.semantic,
2464
2505
  var StyledCodeBlock = styled.pre.withConfig({
2465
2506
  displayName: "CodeBlock__StyledCodeBlock",
2466
2507
  componentId: "sc-1p1t0kp-0"
2467
- })(templateObject_1$5 || (templateObject_1$5 = __makeTemplateObject(["\n background-color: ", ";\n border: ", ";\n border-radius: ", ";\n padding: ", ";\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n overflow-x: auto;\n margin: ", " 0;\n position: relative;\n"], ["\n background-color: ", ";\n border: ", ";\n border-radius: ", ";\n padding: ", ";\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n overflow-x: auto;\n margin: ", " 0;\n position: relative;\n"])), color$1.background.subtle, border$2.subtle, tokens.base.border.radius[2], spacing$2.layout.md, tokens.base.fontFamily.monospace, tokens.base.fontSize[1], tokens.base.lineHeight[3], color$1.text["default"], spacing$2.layout.sm);
2508
+ })(templateObject_1$4 || (templateObject_1$4 = __makeTemplateObject(["\n background-color: ", ";\n border: ", ";\n border-radius: ", ";\n padding: ", ";\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n overflow-x: auto;\n margin: ", " 0;\n position: relative;\n"], ["\n background-color: ", ";\n border: ", ";\n border-radius: ", ";\n padding: ", ";\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n overflow-x: auto;\n margin: ", " 0;\n position: relative;\n"])), color$1.background.subtle, border$2.subtle, tokens.base.border.radius[2], spacing$2.layout.md, tokens.base.fontFamily.monospace, tokens.base.fontSize[1], tokens.base.lineHeight[3], color$1.text["default"], spacing$2.layout.sm);
2468
2509
  var CodeBlockWrapper = styled.div.withConfig({
2469
2510
  displayName: "CodeBlock__CodeBlockWrapper",
2470
2511
  componentId: "sc-1p1t0kp-1"
@@ -2549,76 +2590,72 @@ var CodeBlock = function CodeBlock(_a) {
2549
2590
  onCopy: onCopy
2550
2591
  }));
2551
2592
  };
2552
- var templateObject_1$5, templateObject_2$3, templateObject_3$3;
2593
+ var templateObject_1$4, templateObject_2$3, templateObject_3$3;
2553
2594
 
2554
2595
  React.createElement;
2555
2596
  var _a$1 = tokens.base,
2556
2597
  spacing$1 = _a$1.spacing,
2557
2598
  border$1 = _a$1.border;
2558
- var DesignCardStyled = styled.div.withConfig({
2559
- displayName: "DesignCard__DesignCardStyled",
2560
- componentId: "sc-1lah9zd-0"
2561
- })(templateObject_1$4 || (templateObject_1$4 = __makeTemplateObject(["\n @media (min-width: ", ") {\n display: grid;\n grid-template-columns: repeat(12, 1fr);\n }\n\n @media (min-width: ", ") {\n gap: ", ";\n }\n\n img {\n border-radius: ", ";\n transition: ease opacity 0.2s;\n\n &:hover {\n opacity: 0.8;\n }\n }\n\n a {\n text-decoration: none;\n }\n"], ["\n @media (min-width: ", ") {\n display: grid;\n grid-template-columns: repeat(12, 1fr);\n }\n\n @media (min-width: ", ") {\n gap: ", ";\n }\n\n img {\n border-radius: ", ";\n transition: ease opacity 0.2s;\n\n &:hover {\n opacity: 0.8;\n }\n }\n\n a {\n text-decoration: none;\n }\n"])), tokens.base.breakpoint.md, tokens.base.breakpoint.lg, spacing$1[12], border$1.radius[6]);
2599
+ var FeatureBlockStyled = styled.div.withConfig({
2600
+ displayName: "FeatureBlock__FeatureBlockStyled",
2601
+ componentId: "sc-1mi4lso-0"
2602
+ })(templateObject_1$3 || (templateObject_1$3 = __makeTemplateObject(["\n @media (min-width: ", ") {\n display: grid;\n grid-template-columns: repeat(12, 1fr);\n }\n\n @media (min-width: ", ") {\n gap: ", ";\n }\n\n img {\n border-radius: ", ";\n transition: ease opacity 0.2s;\n\n &:hover {\n opacity: 0.8;\n }\n }\n\n a {\n text-decoration: none;\n }\n"], ["\n @media (min-width: ", ") {\n display: grid;\n grid-template-columns: repeat(12, 1fr);\n }\n\n @media (min-width: ", ") {\n gap: ", ";\n }\n\n img {\n border-radius: ", ";\n transition: ease opacity 0.2s;\n\n &:hover {\n opacity: 0.8;\n }\n }\n\n a {\n text-decoration: none;\n }\n"])), tokens.base.breakpoint.md, tokens.base.breakpoint.lg, spacing$1[12], border$1.radius[6]);
2562
2603
  var ImageWrapper = styled.div.withConfig({
2563
- displayName: "DesignCard__ImageWrapper",
2564
- componentId: "sc-1lah9zd-1"
2604
+ displayName: "FeatureBlock__ImageWrapper",
2605
+ componentId: "sc-1mi4lso-1"
2565
2606
  })(templateObject_2$2 || (templateObject_2$2 = __makeTemplateObject(["\n grid-column: span 12;\n\n @media (min-width: ", ") {\n grid-column: span 6;\n }\n"], ["\n grid-column: span 12;\n\n @media (min-width: ", ") {\n grid-column: span 6;\n }\n"])), tokens.base.breakpoint.lg);
2566
2607
  var ContentSection = styled.div.withConfig({
2567
- displayName: "DesignCard__ContentSection",
2568
- componentId: "sc-1lah9zd-2"
2608
+ displayName: "FeatureBlock__ContentSection",
2609
+ componentId: "sc-1mi4lso-2"
2569
2610
  })(templateObject_3$2 || (templateObject_3$2 = __makeTemplateObject(["\n grid-column: span 12;\n margin-top: ", ";\n\n @media (min-width: ", ") {\n grid-column: span 6;\n margin-top: 0;\n padding-right: ", ";\n }\n\n @media (min-width: ", ") {\n padding-right: ", ";\n }\n"], ["\n grid-column: span 12;\n margin-top: ", ";\n\n @media (min-width: ", ") {\n grid-column: span 6;\n margin-top: 0;\n padding-right: ", ";\n }\n\n @media (min-width: ", ") {\n padding-right: ", ";\n }\n"])), spacing$1[6], tokens.base.breakpoint.lg, spacing$1[8], tokens.base.breakpoint.xl, spacing$1[24]);
2570
2611
  var ButtonWrapper = styled.div.withConfig({
2571
- displayName: "DesignCard__ButtonWrapper",
2572
- componentId: "sc-1lah9zd-3"
2612
+ displayName: "FeatureBlock__ButtonWrapper",
2613
+ componentId: "sc-1mi4lso-3"
2573
2614
  })(templateObject_4$2 || (templateObject_4$2 = __makeTemplateObject(["\n button {\n margin-top: ", ";\n }\n"], ["\n button {\n margin-top: ", ";\n }\n"])), spacing$1[4]);
2574
2615
  var ContentWrapper = styled.div.withConfig({
2575
- displayName: "DesignCard__ContentWrapper",
2576
- componentId: "sc-1lah9zd-4"
2616
+ displayName: "FeatureBlock__ContentWrapper",
2617
+ componentId: "sc-1mi4lso-4"
2577
2618
  })(templateObject_5$2 || (templateObject_5$2 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n height: 100%;\n"], ["\n display: flex;\n flex-direction: column;\n justify-content: center;\n height: 100%;\n"])));
2578
- var DesignCard = function DesignCard(_a) {
2619
+ var FeatureBlock = function FeatureBlock(_a) {
2579
2620
  var title = _a.title,
2580
2621
  excerpt = _a.excerpt,
2581
2622
  _b = _a.labels,
2582
2623
  labels = _b === void 0 ? [] : _b,
2583
- tag = _a.tag,
2584
2624
  coverImage = _a.coverImage,
2585
2625
  date = _a.date,
2586
2626
  onReadMore = _a.onReadMore,
2587
2627
  readMoreHref = _a.readMoreHref,
2588
2628
  _c = _a.readMoreText,
2589
2629
  readMoreText = _c === void 0 ? "Read more" : _c;
2590
- if (tag === 'design') {
2591
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(DesignCardStyled, null, /*#__PURE__*/React.createElement(ImageWrapper, null, /*#__PURE__*/React.createElement(Picture, {
2592
- title: title,
2593
- src: coverImage
2594
- })), /*#__PURE__*/React.createElement(ContentSection, null, /*#__PURE__*/React.createElement(ContentWrapper, null, /*#__PURE__*/React.createElement(Stack, {
2595
- direction: "column",
2596
- gap: "md"
2597
- }, /*#__PURE__*/React.createElement(Typography, {
2598
- variant: "h3"
2599
- }, title), /*#__PURE__*/React.createElement(DateFormatter, {
2600
- dateString: date
2601
- }), /*#__PURE__*/React.createElement(Typography, {
2602
- variant: "small"
2603
- }, excerpt), /*#__PURE__*/React.createElement(Stack, {
2604
- direction: "row",
2605
- gap: "xs"
2606
- }, Array.isArray(labels) && labels.map(function (label, index) {
2607
- return /*#__PURE__*/React.createElement(Chip, {
2608
- key: index,
2609
- title: label,
2610
- variant: "default"
2611
- });
2612
- })), (onReadMore || readMoreHref) && /*#__PURE__*/React.createElement(ButtonWrapper, null, readMoreHref ? /*#__PURE__*/React.createElement(Button, {
2613
- purpose: "link",
2614
- url: readMoreHref
2615
- }, readMoreText) : /*#__PURE__*/React.createElement(Button, {
2616
- onClick: onReadMore
2617
- }, readMoreText)))))), /*#__PURE__*/React.createElement(Divider, null));
2618
- }
2619
- return null;
2620
- };
2621
- var templateObject_1$4, templateObject_2$2, templateObject_3$2, templateObject_4$2, templateObject_5$2;
2630
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FeatureBlockStyled, null, /*#__PURE__*/React.createElement(ImageWrapper, null, /*#__PURE__*/React.createElement(Picture, {
2631
+ title: title,
2632
+ src: coverImage
2633
+ })), /*#__PURE__*/React.createElement(ContentSection, null, /*#__PURE__*/React.createElement(ContentWrapper, null, /*#__PURE__*/React.createElement(Stack, {
2634
+ direction: "column",
2635
+ gap: "md"
2636
+ }, /*#__PURE__*/React.createElement(Typography, {
2637
+ variant: "h3"
2638
+ }, title), /*#__PURE__*/React.createElement(DateFormatter, {
2639
+ dateString: date
2640
+ }), /*#__PURE__*/React.createElement(Typography, {
2641
+ variant: "small"
2642
+ }, excerpt), /*#__PURE__*/React.createElement(Stack, {
2643
+ direction: "row",
2644
+ gap: "xs"
2645
+ }, Array.isArray(labels) && labels.map(function (label, index) {
2646
+ return /*#__PURE__*/React.createElement(Chip, {
2647
+ key: index,
2648
+ title: label,
2649
+ variant: "default"
2650
+ });
2651
+ })), (onReadMore || readMoreHref) && /*#__PURE__*/React.createElement(ButtonWrapper, null, readMoreHref ? /*#__PURE__*/React.createElement(Button, {
2652
+ purpose: "link",
2653
+ url: readMoreHref
2654
+ }, readMoreText) : /*#__PURE__*/React.createElement(Button, {
2655
+ onClick: onReadMore
2656
+ }, readMoreText)))))), /*#__PURE__*/React.createElement(Divider, null));
2657
+ };
2658
+ var templateObject_1$3, templateObject_2$2, templateObject_3$2, templateObject_4$2, templateObject_5$2;
2622
2659
 
2623
2660
  React.createElement;
2624
2661
  var _a = tokens.base,
@@ -2632,7 +2669,7 @@ var _a = tokens.base,
2632
2669
  var DropdownContainer = styled.div.withConfig({
2633
2670
  displayName: "Dropdown__DropdownContainer",
2634
2671
  componentId: "sc-kz07c4-0"
2635
- })(templateObject_1$3 || (templateObject_1$3 = __makeTemplateObject(["\n position: relative;\n width: 100%;\n"], ["\n position: relative;\n width: 100%;\n"])));
2672
+ })(templateObject_1$2 || (templateObject_1$2 = __makeTemplateObject(["\n position: relative;\n width: 100%;\n"], ["\n position: relative;\n width: 100%;\n"])));
2636
2673
  var DropdownTrigger = styled.button.withConfig({
2637
2674
  shouldForwardProp: function shouldForwardProp(prop) {
2638
2675
  return !prop.startsWith('$');
@@ -2829,7 +2866,7 @@ var Dropdown = function Dropdown(_a) {
2829
2866
  }, option.label);
2830
2867
  })));
2831
2868
  };
2832
- var templateObject_1$3, templateObject_2$1, templateObject_3$1, templateObject_4$1, templateObject_5$1;
2869
+ var templateObject_1$2, templateObject_2$1, templateObject_3$1, templateObject_4$1, templateObject_5$1;
2833
2870
 
2834
2871
  React.createElement;
2835
2872
  var PageTitleStyled = styled.div.withConfig({
@@ -2838,7 +2875,7 @@ var PageTitleStyled = styled.div.withConfig({
2838
2875
  },
2839
2876
  displayName: "PageTitle__PageTitleStyled",
2840
2877
  componentId: "sc-16h256f-0"
2841
- })(templateObject_1$2 || (templateObject_1$2 = __makeTemplateObject(["\n margin-bottom: ", ";\n margin-top: ", ";\n"], ["\n margin-bottom: ", ";\n margin-top: ", ";\n"])), tokens.base.spacing[6], function (_a) {
2878
+ })(templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject(["\n margin-bottom: ", ";\n margin-top: ", ";\n"], ["\n margin-bottom: ", ";\n margin-top: ", ";\n"])), tokens.base.spacing[6], function (_a) {
2842
2879
  var $hasBackButton = _a.$hasBackButton;
2843
2880
  return $hasBackButton ? tokens.base.spacing[0] : tokens.base.spacing[12];
2844
2881
  });
@@ -2865,52 +2902,6 @@ var PageTitle = function PageTitle(_a) {
2865
2902
  color: "subdued"
2866
2903
  }, subtitle)));
2867
2904
  };
2868
- var templateObject_1$2;
2869
-
2870
- React.createElement;
2871
- var ReleaseCardStyled = styled.div.withConfig({
2872
- displayName: "ReleaseCard__ReleaseCardStyled",
2873
- componentId: "sc-44tbzg-0"
2874
- })(templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject(["\n a {\n text-decoration: none;\n }\n\n img {\n border-radius: ", ";\n transition: ease opacity 0.2s;\n width: 100%;\n height: auto;\n display: block;\n }\n\n &:hover {\n img {\n opacity: 0.8;\n }\n }\n\n &:focus-within {\n outline: none;\n box-shadow: 0 0 0 2px ", ";\n }\n"], ["\n a {\n text-decoration: none;\n }\n\n img {\n border-radius: ", ";\n transition: ease opacity 0.2s;\n width: 100%;\n height: auto;\n display: block;\n }\n\n &:hover {\n img {\n opacity: 0.8;\n }\n }\n\n &:focus-within {\n outline: none;\n box-shadow: 0 0 0 2px ", ";\n }\n"])), tokens.base.border.radius[2], tokens.semantic.color.border.strong);
2875
- var ReleaseCard = function ReleaseCard(_a) {
2876
- var title = _a.title,
2877
- coverImage = _a.coverImage,
2878
- artist = _a.artist,
2879
- date = _a.date,
2880
- slug = _a.slug;
2881
- if (!coverImage || !date) {
2882
- return null;
2883
- }
2884
- return /*#__PURE__*/React.createElement(ReleaseCardStyled, null, /*#__PURE__*/React.createElement(Link, {
2885
- href: "/releases/".concat(slug),
2886
- "aria-label": title
2887
- }, /*#__PURE__*/React.createElement(Stack, {
2888
- direction: "column",
2889
- gap: "sm"
2890
- }, /*#__PURE__*/React.createElement(Image, {
2891
- alt: title,
2892
- src: coverImage,
2893
- width: 300,
2894
- height: 300,
2895
- sizes: "(max-width: 640px) 50vw, (max-width: 1024px) 25vw, (max-width: 1280px) 16.66vw, 14.28vw",
2896
- placeholder: "blur",
2897
- blurDataURL: coverImage,
2898
- style: {
2899
- width: '100%',
2900
- height: 'auto'
2901
- }
2902
- }), /*#__PURE__*/React.createElement(Stack, {
2903
- direction: "column",
2904
- gap: "none"
2905
- }, /*#__PURE__*/React.createElement(Typography, {
2906
- variant: "small"
2907
- }, title), /*#__PURE__*/React.createElement(Typography, {
2908
- variant: "label",
2909
- color: "subdued"
2910
- }, artist), /*#__PURE__*/React.createElement(DateFormatter, {
2911
- dateString: date
2912
- })))));
2913
- };
2914
2905
  var templateObject_1$1;
2915
2906
 
2916
2907
  React.createElement;
@@ -3113,5 +3104,5 @@ var ResponsiveGrid = function ResponsiveGrid(_a) {
3113
3104
  };
3114
3105
  var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23, templateObject_24, templateObject_25, templateObject_26, templateObject_27, templateObject_28, templateObject_29, templateObject_30, templateObject_31, templateObject_32, templateObject_33, templateObject_34, templateObject_35;
3115
3106
 
3116
- export { ArtCard, Avatar, Badge, BooleanChip, Box, Breadcrumbs, Button, Chip, ChipGroup, CodeBlock, Container, DateFormatter, DesignCard, Divider, Dropdown, FilterChip, Grid, GridCol, Icon, IconButton, LegacyChip, PageTitle, Picture, ProgressBar, ReleaseCard, ResponsiveGrid, Stack, Typography, iconsData, tokens };
3107
+ export { Avatar, Badge, BooleanChip, Box, Breadcrumbs, Button, CardLarge, CardSmall, Chip, ChipGroup, CodeBlock, Container, DateFormatter, Divider, Dropdown, FeatureBlock, FilterChip, Grid, GridCol, Icon, IconButton, LegacyChip, PageTitle, Picture, ProgressBar, ResponsiveGrid, Stack, Typography, iconsData, tokens };
3117
3108
  //# sourceMappingURL=index.esm.js.map