@popsure/dirty-swan 0.66.15 → 0.66.17
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/dist/cjs/index.js +5 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/lib/components/table/Table.stories.d.ts +12 -0
- package/dist/esm/components/table/Table.stories.js +355 -1
- package/dist/esm/components/table/Table.stories.js.map +1 -1
- package/dist/esm/components/table/components/TableCell/BaseCell/BaseCell.js +1 -1
- package/dist/esm/components/table/components/TableCell/BaseCell/BaseCell.js.map +1 -1
- package/dist/esm/components/table/components/TableCell/CTACell/CTACell.js +3 -3
- package/dist/esm/components/table/components/TableCell/CTACell/CTACell.js.map +1 -1
- package/dist/esm/components/table/components/TableContents/Collapsible.js +1 -1
- package/dist/esm/lib/components/table/Table.stories.d.ts +12 -0
- package/package.json +1 -1
- package/src/lib/components/table/Table.stories.tsx +390 -0
- package/src/lib/components/table/components/TableCell/BaseCell/BaseCell.tsx +1 -1
- package/src/lib/components/table/components/TableCell/CTACell/CTACell.module.scss +4 -0
- package/src/lib/components/table/components/TableCell/CTACell/CTACell.tsx +1 -1
- package/src/lib/components/table/components/TableContents/Collapsible.module.scss +1 -0
|
@@ -7,8 +7,8 @@ import { Button } from '../../../../button/index.js';
|
|
|
7
7
|
import '../../../../../_commonjsHelpers-BFTU3MAI.js';
|
|
8
8
|
import 'react';
|
|
9
9
|
|
|
10
|
-
var css_248z = ".CTACell-module_narrow__1EPPT {\n height: 40px;\n padding: 8px !important;\n}";
|
|
11
|
-
var styles = {"narrow":"CTACell-module_narrow__1EPPT"};
|
|
10
|
+
var css_248z = ".CTACell-module_button__38ozg {\n max-width: 176px;\n}\n\n.CTACell-module_narrow__1EPPT {\n height: 40px;\n padding: 8px !important;\n}";
|
|
11
|
+
var styles = {"button":"CTACell-module_button__38ozg","narrow":"CTACell-module_narrow__1EPPT"};
|
|
12
12
|
styleInject(css_248z);
|
|
13
13
|
|
|
14
14
|
var CTACell = function (_a) {
|
|
@@ -20,7 +20,7 @@ var CTACell = function (_a) {
|
|
|
20
20
|
href: href,
|
|
21
21
|
target: '_blank',
|
|
22
22
|
rel: 'noopener noreferrer',
|
|
23
|
-
}, { className: classNames('mt16 w100
|
|
23
|
+
}, { className: classNames('mt16 w100', styles.button, (_b = {
|
|
24
24
|
'p-btn--primary': !grey,
|
|
25
25
|
'p-btn--secondary-grey': grey
|
|
26
26
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CTACell.js","sources":["../../../../../../../../src/lib/components/table/components/TableCell/CTACell/CTACell.tsx"],"sourcesContent":["import classNames from 'classnames';\nimport { ReactNode } from 'react';\n\nimport styles from './CTACell.module.scss';\nimport { IconRenderer } from '../../IconRenderer/IconRenderer';\nimport { Button } from '../../../../button';\n\nexport type CTACellProps = {\n title: ReactNode;\n price?: ReactNode;\n icon?: ReactNode;\n imageComponent?: (args: any) => JSX.Element;\n buttonCaption?: ReactNode;\n grey?: boolean;\n narrow?: boolean;\n href: string;\n className?: string;\n dataTestId?: string;\n dataCy?: string;\n onClick?: () => void;\n};\n\nexport const CTACell = ({\n title,\n price,\n icon,\n grey,\n narrow,\n href,\n buttonCaption,\n imageComponent,\n className,\n dataCy,\n dataTestId,\n onClick,\n}: CTACellProps) => {\n const renderedIcon = (\n <IconRenderer icon={icon} imageComponent={imageComponent} />\n );\n\n return (\n <div\n className={classNames(className, \"ta-left\")}\n data-cy={dataCy}\n data-testid={dataTestId}\n >\n <div className=\"d-flex ai-center gap8\">\n {renderedIcon}\n <p className=\"p-h3\">\n {title}\n {price && <span className=\"tc-purple-600\"> {price}</span>}\n </p>\n </div>\n\n <Button\n {...onClick ? { onClick } : {\n as: 'a',\n href: href,\n target: '_blank',\n rel: 'noopener noreferrer',\n }}\n className={classNames('mt16 w100
|
|
1
|
+
{"version":3,"file":"CTACell.js","sources":["../../../../../../../../src/lib/components/table/components/TableCell/CTACell/CTACell.tsx"],"sourcesContent":["import classNames from 'classnames';\nimport { ReactNode } from 'react';\n\nimport styles from './CTACell.module.scss';\nimport { IconRenderer } from '../../IconRenderer/IconRenderer';\nimport { Button } from '../../../../button';\n\nexport type CTACellProps = {\n title: ReactNode;\n price?: ReactNode;\n icon?: ReactNode;\n imageComponent?: (args: any) => JSX.Element;\n buttonCaption?: ReactNode;\n grey?: boolean;\n narrow?: boolean;\n href: string;\n className?: string;\n dataTestId?: string;\n dataCy?: string;\n onClick?: () => void;\n};\n\nexport const CTACell = ({\n title,\n price,\n icon,\n grey,\n narrow,\n href,\n buttonCaption,\n imageComponent,\n className,\n dataCy,\n dataTestId,\n onClick,\n}: CTACellProps) => {\n const renderedIcon = (\n <IconRenderer icon={icon} imageComponent={imageComponent} />\n );\n\n return (\n <div\n className={classNames(className, \"ta-left\")}\n data-cy={dataCy}\n data-testid={dataTestId}\n >\n <div className=\"d-flex ai-center gap8\">\n {renderedIcon}\n <p className=\"p-h3\">\n {title}\n {price && <span className=\"tc-purple-600\"> {price}</span>}\n </p>\n </div>\n\n <Button\n {...onClick ? { onClick } : {\n as: 'a',\n href: href,\n target: '_blank',\n rel: 'noopener noreferrer',\n }}\n className={classNames('mt16 w100', styles.button, {\n 'p-btn--primary': !grey,\n 'p-btn--secondary-grey': grey,\n [styles.narrow]: narrow,\n })}\n >\n {buttonCaption}\n </Button>\n </div>\n );\n};\n"],"names":["_jsx","_jsxs"],"mappings":";;;;;;;;;;;;;AAsBO,IAAM,OAAO,GAAG,UAAC,EAaT,EAAA;;AAZb,IAAA,IAAA,KAAK,GAAA,EAAA,CAAA,KAAA,EACL,KAAK,GAAA,EAAA,CAAA,KAAA,EACL,IAAI,GAAA,EAAA,CAAA,IAAA,EACJ,IAAI,GAAA,EAAA,CAAA,IAAA,EACJ,MAAM,GAAA,EAAA,CAAA,MAAA,EACN,IAAI,GAAA,EAAA,CAAA,IAAA,EACJ,aAAa,GAAA,EAAA,CAAA,aAAA,EACb,cAAc,GAAA,EAAA,CAAA,cAAA,EACd,SAAS,GAAA,EAAA,CAAA,SAAA,EACT,MAAM,YAAA,EACN,UAAU,GAAA,EAAA,CAAA,UAAA,EACV,OAAO,GAAA,EAAA,CAAA,OAAA;AAEP,IAAA,IAAM,YAAY,IAChBA,GAAA,CAAC,YAAY,EAAA,EAAC,IAAI,EAAE,IAAI,EAAE,cAAc,EAAE,cAAc,EAAA,CAAI,CAC7D;IAED,QACEC,IAAA,CAAA,KAAA,EAAA,EACE,SAAS,EAAE,UAAU,CAAC,SAAS,EAAE,SAAS,CAAC,EAAA,SAAA,EAClC,MAAM,iBACF,UAAU,EAAA,QAAA,EAAA,CAEvBA,IAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAC,uBAAuB,EAAA,QAAA,EAAA,CACnC,YAAY,EACbA,IAAA,CAAA,GAAA,EAAA,EAAG,SAAS,EAAC,MAAM,EAAA,QAAA,EAAA,CAChB,KAAK,EACL,KAAK,IAAIA,IAAA,CAAA,MAAA,EAAA,EAAM,SAAS,EAAC,eAAe,EAAA,QAAA,EAAA,CAAA,GAAA,EAAG,KAAK,CAAA,EAAA,CAAQ,CAAA,EAAA,CACvD,CAAA,EAAA,CACA,EAEND,IAAC,MAAM,EAAA,QAAA,CAAA,EAAA,EACD,OAAO,GAAG,EAAE,OAAO,EAAA,OAAA,EAAE,GAAG;AAC1B,gBAAA,EAAE,EAAE,GAAG;AACP,gBAAA,IAAI,EAAE,IAAI;AACV,gBAAA,MAAM,EAAE,QAAQ;AAChB,gBAAA,GAAG,EAAE,qBAAqB;aAC3B,EAAA,EACD,SAAS,EAAE,UAAU,CAAC,WAAW,EAAE,MAAM,CAAC,MAAM,GAAA,EAAA,GAAA;wBAC9C,gBAAgB,EAAE,CAAC,IAAI;AACvB,wBAAA,uBAAuB,EAAE;;AACzB,oBAAA,EAAA,CAAC,MAAM,CAAC,MAAM,CAAA,GAAG,MAAM;AACvB,oBAAA,EAAA,EAAA,EAAA,QAAA,EAED,aAAa,EAAA,CAAA,CACP,CAAA,EAAA,CACL;AAEV;;;;"}
|
|
@@ -4,7 +4,7 @@ import { s as styleInject } from '../../../../style-inject.es-tgCJW-Cu.js';
|
|
|
4
4
|
import { c as classNames } from '../../../../index-DLQEsiym.js';
|
|
5
5
|
import '../../../../_commonjsHelpers-BFTU3MAI.js';
|
|
6
6
|
|
|
7
|
-
var css_248z = ".Collapsible-module_collapsible__2wWKs {\n transition: max-height 0.3s ease-in-out;\n overflow-y: clip;\n}";
|
|
7
|
+
var css_248z = ".Collapsible-module_collapsible__2wWKs {\n display: flow-root;\n transition: max-height 0.3s ease-in-out;\n overflow-y: clip;\n}";
|
|
8
8
|
var styles = {"collapsible":"Collapsible-module_collapsible__2wWKs"};
|
|
9
9
|
styleInject(css_248z);
|
|
10
10
|
|
|
@@ -83,5 +83,17 @@ export declare const SinglePlanQuoteTable: {
|
|
|
83
83
|
render: () => JSX.Element;
|
|
84
84
|
name: string;
|
|
85
85
|
};
|
|
86
|
+
export declare const SinglePlanQuoteWebsite: {
|
|
87
|
+
render: () => JSX.Element;
|
|
88
|
+
name: string;
|
|
89
|
+
};
|
|
90
|
+
export declare const TwoPlanQuoteWebsite: {
|
|
91
|
+
render: () => JSX.Element;
|
|
92
|
+
name: string;
|
|
93
|
+
};
|
|
94
|
+
export declare const ThreePlanQuoteWebsite: {
|
|
95
|
+
render: () => JSX.Element;
|
|
96
|
+
name: string;
|
|
97
|
+
};
|
|
86
98
|
export declare const TableDataType: () => JSX.Element;
|
|
87
99
|
export default story;
|
package/package.json
CHANGED
|
@@ -467,6 +467,396 @@ export const SinglePlanQuoteTable = {
|
|
|
467
467
|
name: 'Single Plan Quote',
|
|
468
468
|
};
|
|
469
469
|
|
|
470
|
+
const singlePlanWebsiteData: TableData = [
|
|
471
|
+
{
|
|
472
|
+
rows: [
|
|
473
|
+
[
|
|
474
|
+
{ text: 'Our plans' },
|
|
475
|
+
{
|
|
476
|
+
type: 'CTA',
|
|
477
|
+
title: 'Plan name',
|
|
478
|
+
buttonCaption: 'Get a quote',
|
|
479
|
+
href: 'http://example.com',
|
|
480
|
+
},
|
|
481
|
+
],
|
|
482
|
+
[
|
|
483
|
+
{ text: 'Monthly price' },
|
|
484
|
+
{
|
|
485
|
+
text: '~€99',
|
|
486
|
+
fontVariant: 'PRICE',
|
|
487
|
+
modalContent: 'Price info',
|
|
488
|
+
},
|
|
489
|
+
],
|
|
490
|
+
[
|
|
491
|
+
{ text: 'Label with a description value' },
|
|
492
|
+
{ text: 'Value', description: 'Value description' },
|
|
493
|
+
],
|
|
494
|
+
[
|
|
495
|
+
{
|
|
496
|
+
text: 'Label with a long text that wraps into multiple lines in the table',
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
checkmarkValue: true,
|
|
500
|
+
modalContent: 'Checkmark info',
|
|
501
|
+
},
|
|
502
|
+
],
|
|
503
|
+
[
|
|
504
|
+
{
|
|
505
|
+
text: 'Label with a boolean value',
|
|
506
|
+
},
|
|
507
|
+
{ checkmarkValue: false },
|
|
508
|
+
],
|
|
509
|
+
[
|
|
510
|
+
{
|
|
511
|
+
text: 'Label with info',
|
|
512
|
+
modalContent: 'Label info',
|
|
513
|
+
},
|
|
514
|
+
{ text: 'Text value' },
|
|
515
|
+
],
|
|
516
|
+
],
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
section: {
|
|
520
|
+
title: 'First section',
|
|
521
|
+
},
|
|
522
|
+
rows: [
|
|
523
|
+
[{ text: 'Row label' }, { checkmarkValue: true }],
|
|
524
|
+
[{ text: 'Row label' }, { checkmarkValue: true }],
|
|
525
|
+
[{ text: 'Row label' }, { checkmarkValue: true }],
|
|
526
|
+
],
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
section: {
|
|
530
|
+
title: 'Second section',
|
|
531
|
+
},
|
|
532
|
+
rows: [
|
|
533
|
+
[{ text: 'Row label' }, { checkmarkValue: true }],
|
|
534
|
+
[{ text: 'Row label' }, { checkmarkValue: false }],
|
|
535
|
+
],
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
section: {
|
|
539
|
+
title: 'Third section',
|
|
540
|
+
},
|
|
541
|
+
rows: [
|
|
542
|
+
[
|
|
543
|
+
{ text: 'Row label' },
|
|
544
|
+
{ text: 'Up to €1,500', description: 'Value description' },
|
|
545
|
+
],
|
|
546
|
+
],
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
section: {
|
|
550
|
+
title: 'Fourth section',
|
|
551
|
+
},
|
|
552
|
+
rows: [
|
|
553
|
+
[{ text: 'Row label' }, { checkmarkValue: true }],
|
|
554
|
+
[{ text: 'Row label' }, { checkmarkValue: true }],
|
|
555
|
+
],
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
section: {
|
|
559
|
+
title: 'Fifth section',
|
|
560
|
+
},
|
|
561
|
+
rows: [
|
|
562
|
+
[{ text: 'Row label' }, { checkmarkValue: true }],
|
|
563
|
+
[{ text: 'Row label' }, { checkmarkValue: true }],
|
|
564
|
+
],
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
section: {
|
|
568
|
+
title: 'Sixth section',
|
|
569
|
+
},
|
|
570
|
+
rows: [
|
|
571
|
+
[{ text: 'Row label' }, { text: 'Up to €5,000' }],
|
|
572
|
+
[{ text: 'Row label' }, { checkmarkValue: true }],
|
|
573
|
+
],
|
|
574
|
+
},
|
|
575
|
+
];
|
|
576
|
+
|
|
577
|
+
export const SinglePlanQuoteWebsite = {
|
|
578
|
+
render: () => (
|
|
579
|
+
<div style={{ maxWidth: 756 }}>
|
|
580
|
+
<Table
|
|
581
|
+
tableData={singlePlanWebsiteData}
|
|
582
|
+
title="Single plan quote website"
|
|
583
|
+
collapsibleSections
|
|
584
|
+
hideTableNavigation
|
|
585
|
+
/>
|
|
586
|
+
</div>
|
|
587
|
+
),
|
|
588
|
+
|
|
589
|
+
name: 'Single Plan - Website',
|
|
590
|
+
};
|
|
591
|
+
|
|
592
|
+
const twoPlanWebsiteData: TableData = [
|
|
593
|
+
{
|
|
594
|
+
rows: [
|
|
595
|
+
[
|
|
596
|
+
{ text: 'Our plans' },
|
|
597
|
+
{
|
|
598
|
+
type: 'CTA',
|
|
599
|
+
title: 'Plan name',
|
|
600
|
+
buttonCaption: 'Get a quote',
|
|
601
|
+
href: 'http://example.com',
|
|
602
|
+
},
|
|
603
|
+
{
|
|
604
|
+
type: 'CTA',
|
|
605
|
+
title: 'Plan name',
|
|
606
|
+
buttonCaption: 'Get a quote',
|
|
607
|
+
href: 'http://example.com',
|
|
608
|
+
},
|
|
609
|
+
],
|
|
610
|
+
[
|
|
611
|
+
{
|
|
612
|
+
text: 'Monthly price',
|
|
613
|
+
description: 'Label description with additional pricing context',
|
|
614
|
+
},
|
|
615
|
+
{ text: '~€14-35', fontVariant: 'PRICE' },
|
|
616
|
+
{ text: '~€50-91', fontVariant: 'PRICE' },
|
|
617
|
+
],
|
|
618
|
+
[
|
|
619
|
+
{
|
|
620
|
+
text: 'Label with info',
|
|
621
|
+
modalContent: 'Label info',
|
|
622
|
+
},
|
|
623
|
+
{ text: 'Text value' },
|
|
624
|
+
{ text: 'Text value' },
|
|
625
|
+
],
|
|
626
|
+
[
|
|
627
|
+
{
|
|
628
|
+
text: 'Label with info',
|
|
629
|
+
modalContent: 'Label info',
|
|
630
|
+
},
|
|
631
|
+
{ text: 'Text value', modalContent: 'Value info' },
|
|
632
|
+
{ text: 'Text value', modalContent: 'Value info' },
|
|
633
|
+
],
|
|
634
|
+
[
|
|
635
|
+
{ text: 'Label with a boolean value' },
|
|
636
|
+
{ checkmarkValue: true, description: 'Value description' },
|
|
637
|
+
{ checkmarkValue: true, description: 'Value description' },
|
|
638
|
+
],
|
|
639
|
+
],
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
section: {
|
|
643
|
+
title: 'First section',
|
|
644
|
+
},
|
|
645
|
+
rows: [
|
|
646
|
+
[
|
|
647
|
+
{ text: 'Row label' },
|
|
648
|
+
{ text: 'Up to €1,500' },
|
|
649
|
+
{ text: 'Up to €3,000' },
|
|
650
|
+
],
|
|
651
|
+
],
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
section: {
|
|
655
|
+
title: 'Second section',
|
|
656
|
+
},
|
|
657
|
+
rows: [
|
|
658
|
+
[
|
|
659
|
+
{ text: 'Row label', description: 'Row label description' },
|
|
660
|
+
{ checkmarkValue: true },
|
|
661
|
+
{ checkmarkValue: true },
|
|
662
|
+
],
|
|
663
|
+
[
|
|
664
|
+
{ text: 'Row label' },
|
|
665
|
+
{ checkmarkValue: false },
|
|
666
|
+
{ checkmarkValue: false },
|
|
667
|
+
],
|
|
668
|
+
[
|
|
669
|
+
{ text: 'Row label', description: 'Row label description' },
|
|
670
|
+
{ checkmarkValue: false },
|
|
671
|
+
{ checkmarkValue: true },
|
|
672
|
+
],
|
|
673
|
+
[
|
|
674
|
+
{ text: 'Row label' },
|
|
675
|
+
{ text: 'Text value' },
|
|
676
|
+
{ checkmarkValue: true },
|
|
677
|
+
],
|
|
678
|
+
[
|
|
679
|
+
{ text: 'Row label' },
|
|
680
|
+
{ text: 'Text value', description: 'Value description' },
|
|
681
|
+
{ text: 'Text value', description: 'Value description' },
|
|
682
|
+
],
|
|
683
|
+
],
|
|
684
|
+
},
|
|
685
|
+
{
|
|
686
|
+
section: {
|
|
687
|
+
title: 'Third section',
|
|
688
|
+
},
|
|
689
|
+
rows: [
|
|
690
|
+
[
|
|
691
|
+
{ text: 'Row label' },
|
|
692
|
+
{ checkmarkValue: true },
|
|
693
|
+
{ checkmarkValue: true },
|
|
694
|
+
],
|
|
695
|
+
],
|
|
696
|
+
},
|
|
697
|
+
{
|
|
698
|
+
section: {
|
|
699
|
+
title: 'Fourth section',
|
|
700
|
+
},
|
|
701
|
+
rows: [
|
|
702
|
+
[
|
|
703
|
+
{ text: 'Row label' },
|
|
704
|
+
{ checkmarkValue: false },
|
|
705
|
+
{ checkmarkValue: true },
|
|
706
|
+
],
|
|
707
|
+
],
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
section: {
|
|
711
|
+
title: 'Fifth section',
|
|
712
|
+
},
|
|
713
|
+
rows: [
|
|
714
|
+
[
|
|
715
|
+
{ text: 'Row label' },
|
|
716
|
+
{ text: 'Text value' },
|
|
717
|
+
{ text: 'Text value' },
|
|
718
|
+
],
|
|
719
|
+
],
|
|
720
|
+
},
|
|
721
|
+
];
|
|
722
|
+
|
|
723
|
+
export const TwoPlanQuoteWebsite = {
|
|
724
|
+
render: () => (
|
|
725
|
+
<div style={{ maxWidth: 900 }}>
|
|
726
|
+
<Table
|
|
727
|
+
tableData={twoPlanWebsiteData}
|
|
728
|
+
title="Two plan quote website"
|
|
729
|
+
collapsibleSections
|
|
730
|
+
hideTableNavigation
|
|
731
|
+
/>
|
|
732
|
+
</div>
|
|
733
|
+
),
|
|
734
|
+
|
|
735
|
+
name: 'Two Plan - Website',
|
|
736
|
+
};
|
|
737
|
+
|
|
738
|
+
const threePlanWebsiteData: TableData = [
|
|
739
|
+
{
|
|
740
|
+
rows: [
|
|
741
|
+
[
|
|
742
|
+
{ text: 'Our plans' },
|
|
743
|
+
{
|
|
744
|
+
type: 'CTA',
|
|
745
|
+
icon: 'https://placehold.co/24x24/green/white',
|
|
746
|
+
title: 'Plan name',
|
|
747
|
+
buttonCaption: 'Get a quote',
|
|
748
|
+
href: '',
|
|
749
|
+
onClick: () => {},
|
|
750
|
+
},
|
|
751
|
+
{
|
|
752
|
+
type: 'CTA',
|
|
753
|
+
icon: 'https://placehold.co/24x24/blue/white',
|
|
754
|
+
title: 'Plan name',
|
|
755
|
+
buttonCaption: 'Get a quote',
|
|
756
|
+
href: '',
|
|
757
|
+
onClick: () => {},
|
|
758
|
+
},
|
|
759
|
+
{
|
|
760
|
+
type: 'CTA',
|
|
761
|
+
icon: 'https://placehold.co/24x24/orange/white',
|
|
762
|
+
title: 'Plan name',
|
|
763
|
+
buttonCaption: 'Get a quote',
|
|
764
|
+
href: '',
|
|
765
|
+
onClick: () => {},
|
|
766
|
+
},
|
|
767
|
+
],
|
|
768
|
+
[
|
|
769
|
+
{ text: 'Monthly price' },
|
|
770
|
+
{ text: '€–', fontVariant: 'PRICE' },
|
|
771
|
+
{ text: '€–', fontVariant: 'PRICE' },
|
|
772
|
+
{ text: '€–', fontVariant: 'PRICE' },
|
|
773
|
+
],
|
|
774
|
+
[
|
|
775
|
+
{ text: 'Label with star rating' },
|
|
776
|
+
{ rating: { type: 'star', value: 2 }, modalContent: 'Rating info' },
|
|
777
|
+
{ rating: { type: 'star', value: 3 } },
|
|
778
|
+
{ rating: { type: 'star', value: 3 } },
|
|
779
|
+
],
|
|
780
|
+
[
|
|
781
|
+
{ text: 'Label with zap rating' },
|
|
782
|
+
{ rating: { type: 'zap', value: 3 } },
|
|
783
|
+
{ rating: { type: 'zap', value: 3 }, modalContent: 'Rating info' },
|
|
784
|
+
{ rating: { type: 'zap', value: 3 }, modalContent: 'Rating info' },
|
|
785
|
+
],
|
|
786
|
+
[
|
|
787
|
+
{ text: 'Label with info', modalContent: 'Label info' },
|
|
788
|
+
{ checkmarkValue: true },
|
|
789
|
+
{ checkmarkValue: true },
|
|
790
|
+
{ checkmarkValue: true },
|
|
791
|
+
],
|
|
792
|
+
[
|
|
793
|
+
{ text: 'Label with progress bar' },
|
|
794
|
+
{ text: '100%' },
|
|
795
|
+
{ text: '70%' },
|
|
796
|
+
{ text: '100%' },
|
|
797
|
+
],
|
|
798
|
+
],
|
|
799
|
+
},
|
|
800
|
+
{
|
|
801
|
+
section: {
|
|
802
|
+
title: 'First section',
|
|
803
|
+
},
|
|
804
|
+
rows: [
|
|
805
|
+
[
|
|
806
|
+
{ text: 'Row label with info', modalContent: 'Label info' },
|
|
807
|
+
{ text: 'Up to €2 million' },
|
|
808
|
+
{ text: 'Up to €1.5 million' },
|
|
809
|
+
{ text: 'Up to €1.5 million' },
|
|
810
|
+
],
|
|
811
|
+
[
|
|
812
|
+
{ text: 'Row label with info', modalContent: 'Label info' },
|
|
813
|
+
{ text: 'Text value' },
|
|
814
|
+
{ text: 'Text value' },
|
|
815
|
+
{ text: 'Text value' },
|
|
816
|
+
],
|
|
817
|
+
[
|
|
818
|
+
{ text: 'Row label' },
|
|
819
|
+
{ text: '80% covered' },
|
|
820
|
+
{ text: '80% covered' },
|
|
821
|
+
{ text: '80% covered' },
|
|
822
|
+
],
|
|
823
|
+
[
|
|
824
|
+
{ text: 'Row label' },
|
|
825
|
+
{ checkmarkValue: false },
|
|
826
|
+
{ checkmarkValue: false },
|
|
827
|
+
{ checkmarkValue: false },
|
|
828
|
+
],
|
|
829
|
+
[
|
|
830
|
+
{ text: 'Row label' },
|
|
831
|
+
{ checkmarkValue: false },
|
|
832
|
+
{ checkmarkValue: true },
|
|
833
|
+
{ checkmarkValue: true },
|
|
834
|
+
],
|
|
835
|
+
[
|
|
836
|
+
{ text: 'Row label' },
|
|
837
|
+
{ checkmarkValue: true },
|
|
838
|
+
{ checkmarkValue: true },
|
|
839
|
+
{ checkmarkValue: true },
|
|
840
|
+
],
|
|
841
|
+
],
|
|
842
|
+
},
|
|
843
|
+
];
|
|
844
|
+
|
|
845
|
+
export const ThreePlanQuoteWebsite = {
|
|
846
|
+
render: () => (
|
|
847
|
+
<div style={{ maxWidth: 900 }}>
|
|
848
|
+
<Table
|
|
849
|
+
tableData={threePlanWebsiteData}
|
|
850
|
+
title="Three plan quote website"
|
|
851
|
+
collapsibleSections
|
|
852
|
+
hideTableNavigation
|
|
853
|
+
/>
|
|
854
|
+
</div>
|
|
855
|
+
),
|
|
856
|
+
|
|
857
|
+
name: 'Three Plan - Website',
|
|
858
|
+
};
|
|
859
|
+
|
|
470
860
|
export const TableDataType = () => {
|
|
471
861
|
return (
|
|
472
862
|
<pre>
|
|
@@ -59,7 +59,7 @@ export const CTACell = ({
|
|
|
59
59
|
target: '_blank',
|
|
60
60
|
rel: 'noopener noreferrer',
|
|
61
61
|
}}
|
|
62
|
-
className={classNames('mt16 w100
|
|
62
|
+
className={classNames('mt16 w100', styles.button, {
|
|
63
63
|
'p-btn--primary': !grey,
|
|
64
64
|
'p-btn--secondary-grey': grey,
|
|
65
65
|
[styles.narrow]: narrow,
|