@popsure/dirty-swan 0.66.16 → 0.66.18
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 +23 -19
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/lib/components/comparisonTable/index.stories.d.ts +4 -0
- package/dist/cjs/lib/components/table/Table.stories.d.ts +12 -0
- package/dist/cjs/lib/components/table/components/TableCell/CTACell/CTACell.d.ts +2 -1
- package/dist/cjs/lib/components/table/components/TableCell/CTACell/CTACell.stories.d.ts +1 -1
- package/dist/esm/components/comparisonTable/components/AccordionItem/AccordionItem.js +2 -2
- package/dist/esm/components/comparisonTable/components/AccordionItem/AccordionItem.js.map +1 -1
- package/dist/esm/components/comparisonTable/components/Row/index.js +4 -3
- package/dist/esm/components/comparisonTable/components/Row/index.js.map +1 -1
- package/dist/esm/components/comparisonTable/index.js +6 -6
- package/dist/esm/components/comparisonTable/index.js.map +1 -1
- package/dist/esm/components/comparisonTable/index.stories.js +267 -6
- package/dist/esm/components/comparisonTable/index.stories.js.map +1 -1
- package/dist/esm/components/icon/icons/Activity.js +2 -2
- package/dist/esm/components/icon/icons/Activity.js.map +1 -1
- package/dist/esm/components/icon/icons/DentalToothTeeth.js +2 -2
- package/dist/esm/components/icon/icons/DentalToothTeeth.js.map +1 -1
- package/dist/esm/components/icon/icons/DependentsFamily.js +2 -2
- package/dist/esm/components/icon/icons/DependentsFamily.js.map +1 -1
- package/dist/esm/components/icon/icons/GlobeNetworkEarth.js +2 -2
- package/dist/esm/components/icon/icons/GlobeNetworkEarth.js.map +1 -1
- package/dist/esm/components/icon/icons/HospitalBuilding.js +2 -2
- package/dist/esm/components/icon/icons/HospitalBuilding.js.map +1 -1
- package/dist/esm/components/icon/icons.stories.js +1 -1
- package/dist/esm/components/icon/index.stories.js +1 -1
- package/dist/esm/components/table/Table.js +1 -1
- 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 +4 -2
- package/dist/esm/components/table/components/TableCell/CTACell/CTACell.js.map +1 -1
- package/dist/esm/components/table/components/TableCell/TableCell.js +4 -3
- package/dist/esm/components/table/components/TableCell/TableCell.js.map +1 -1
- package/dist/esm/components/table/components/TableContents/Collapsible.js +1 -1
- package/dist/esm/{index-BWJpOVlt.js → index-D41W71Hh.js} +11 -11
- package/dist/esm/{index-BWJpOVlt.js.map → index-D41W71Hh.js.map} +1 -1
- package/dist/esm/lib/components/comparisonTable/index.stories.d.ts +4 -0
- package/dist/esm/lib/components/table/Table.stories.d.ts +12 -0
- package/dist/esm/lib/components/table/components/TableCell/CTACell/CTACell.d.ts +2 -1
- package/dist/esm/lib/components/table/components/TableCell/CTACell/CTACell.stories.d.ts +1 -1
- package/package.json +1 -1
- package/src/lib/components/comparisonTable/components/AccordionItem/AccordionItem.module.scss +15 -3
- package/src/lib/components/comparisonTable/components/AccordionItem/AccordionItem.tsx +1 -1
- package/src/lib/components/comparisonTable/components/Row/index.tsx +2 -1
- package/src/lib/components/comparisonTable/components/Row/style.module.scss +20 -5
- package/src/lib/components/comparisonTable/index.stories.tsx +370 -0
- package/src/lib/components/comparisonTable/index.tsx +1 -5
- package/src/lib/components/comparisonTable/style.module.scss +10 -8
- package/src/lib/components/table/Table.module.scss +1 -1
- package/src/lib/components/table/Table.stories.tsx +387 -0
- package/src/lib/components/table/components/TableCell/BaseCell/BaseCell.tsx +2 -2
- package/src/lib/components/table/components/TableCell/CTACell/CTACell.tsx +5 -1
- package/src/lib/components/table/components/TableCell/TableCell.module.scss +4 -0
- package/src/lib/components/table/components/TableCell/TableCell.tsx +4 -1
- package/src/lib/components/table/components/TableContents/Collapsible.module.scss +1 -0
|
@@ -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,
|
|
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 centered?: 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 centered,\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 'd-flex fd-column ai-center': centered,\n })}\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":";;;;;;;;;;;;;AAuBO,IAAM,OAAO,GAAG,UAAC,EAcT,EAAA;;AAbb,IAAA,IAAA,KAAK,WAAA,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,QAAQ,cAAA,EACR,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,cACE,SAAS,EAAE,UAAU,CAAC,SAAS,EAAE,SAAS,EAAE;AAC1C,YAAA,4BAA4B,EAAE,QAAQ;SACvC,CAAC,EAAA,SAAA,EACO,MAAM,EAAA,aAAA,EACF,UAAU,aAEvBA,IAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAC,uBAAuB,EAAA,QAAA,EAAA,CACnC,YAAY,EACbA,IAAA,CAAA,GAAA,EAAA,EAAG,SAAS,EAAC,MAAM,aAChB,KAAK,EACL,KAAK,IAAIA,IAAA,CAAA,MAAA,EAAA,EAAM,SAAS,EAAC,eAAe,kBAAG,KAAK,CAAA,EAAA,CAAQ,IACvD,CAAA,EAAA,CACA,EAEND,IAAC,MAAM,EAAA,QAAA,CAAA,EAAA,EACD,OAAO,GAAG,EAAE,OAAO,SAAA,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;;;;"}
|
|
@@ -25,8 +25,8 @@ import '../../../button/index.js';
|
|
|
25
25
|
import '../../../cards/card/index.js';
|
|
26
26
|
import '../../../icon/icons/ChevronRight.js';
|
|
27
27
|
|
|
28
|
-
var css_248z = ".TableCell-module_th__2rjCU {\n vertical-align: middle;\n scroll-snap-align: end;\n width: 50%;\n padding: 28px 24px;\n}\n@media (min-width: 34rem) {\n .TableCell-module_th__2rjCU {\n width: auto;\n scroll-snap-align: unset;\n }\n}\n.TableCell-module_thNavigation__qZ2sY {\n width: 100%;\n}\n@media (min-width: 34rem) {\n .TableCell-module_thNavigation__qZ2sY {\n width: auto;\n }\n}\n\n.TableCell-module_headerCell__aVTIn {\n vertical-align: top;\n}\n\n.TableCell-module_fixedCell__cL3-m {\n position: sticky;\n left: 0;\n z-index: 2;\n padding-left: 0;\n}\n\n.TableCell-module_selectedColumnTop__1GcJz {\n border-radius: 16px 16px 0 0;\n}\n\n.TableCell-module_selectedColumnBottom__qiMke {\n border-radius: 0 0 16px 16px;\n}\n\n.TableCell-module_fixedCard__2LO8s {\n position: sticky;\n left: 0;\n right: 0;\n z-index: 2;\n width: 100%;\n}";
|
|
29
|
-
var styles = {"th":"TableCell-module_th__2rjCU","thNavigation":"TableCell-module_thNavigation__qZ2sY","headerCell":"TableCell-module_headerCell__aVTIn","fixedCell":"TableCell-module_fixedCell__cL3-m","selectedColumnTop":"TableCell-module_selectedColumnTop__1GcJz","selectedColumnBottom":"TableCell-module_selectedColumnBottom__qiMke","fixedCard":"TableCell-module_fixedCard__2LO8s"};
|
|
28
|
+
var css_248z = ".TableCell-module_th__2rjCU {\n vertical-align: middle;\n scroll-snap-align: end;\n width: 50%;\n padding: 28px 24px;\n}\n@media (min-width: 34rem) {\n .TableCell-module_th__2rjCU {\n width: auto;\n scroll-snap-align: unset;\n }\n}\n.TableCell-module_thNavigation__qZ2sY {\n width: 100%;\n}\n@media (min-width: 34rem) {\n .TableCell-module_thNavigation__qZ2sY {\n width: auto;\n }\n}\n\n.TableCell-module_navigationTitle__2FiRB {\n padding-left: 0;\n}\n\n.TableCell-module_headerCell__aVTIn {\n vertical-align: top;\n}\n\n.TableCell-module_fixedCell__cL3-m {\n position: sticky;\n left: 0;\n z-index: 2;\n padding-left: 0;\n}\n\n.TableCell-module_selectedColumnTop__1GcJz {\n border-radius: 16px 16px 0 0;\n}\n\n.TableCell-module_selectedColumnBottom__qiMke {\n border-radius: 0 0 16px 16px;\n}\n\n.TableCell-module_fixedCard__2LO8s {\n position: sticky;\n left: 0;\n right: 0;\n z-index: 2;\n width: 100%;\n}";
|
|
29
|
+
var styles = {"th":"TableCell-module_th__2rjCU","thNavigation":"TableCell-module_thNavigation__qZ2sY","navigationTitle":"TableCell-module_navigationTitle__2FiRB","headerCell":"TableCell-module_headerCell__aVTIn","fixedCell":"TableCell-module_fixedCell__cL3-m","selectedColumnTop":"TableCell-module_selectedColumnTop__1GcJz","selectedColumnBottom":"TableCell-module_selectedColumnBottom__qiMke","fixedCard":"TableCell-module_fixedCard__2LO8s"};
|
|
30
30
|
styleInject(css_248z);
|
|
31
31
|
|
|
32
32
|
var TableCell = React__default.memo(function (_a) {
|
|
@@ -49,13 +49,14 @@ var TableCell = React__default.memo(function (_a) {
|
|
|
49
49
|
},
|
|
50
50
|
_b[styles.headerCell] = isHeader,
|
|
51
51
|
_b[styles.thNavigation] = isNavigation,
|
|
52
|
+
_b[styles.navigationTitle] = isNavigation && isTopLeftCell,
|
|
52
53
|
_b[styles.fixedCell] = isFirstCellInRow && colSpan < 1,
|
|
53
54
|
_b[styles.fixedCard] = cellProps.type === 'CARD',
|
|
54
55
|
_b[styles.selectedColumnTop] = selectedColumnPosition === 'top',
|
|
55
56
|
_b[styles.selectedColumnBottom] = selectedColumnPosition === 'bottom',
|
|
56
57
|
_b)), colSpan: isBelowDesktop && cellProps.type === 'CARD' ? 2 : colSpan, children: [!cellProps.type && (jsx(BaseCell, __assign({}, cellProps, { fontVariant: isTopLeftCell
|
|
57
58
|
? 'TITLE'
|
|
58
|
-
: (_c = cellProps.fontVariant) !== null && _c !== void 0 ? _c : 'NORMAL' }))), cellProps.type === 'CTA' && jsx(CTACell, __assign({}, cellProps)), cellProps.type === 'BUTTON' && jsx(ButtonCell, __assign({}, cellProps)), cellProps.type === 'CARD' && jsx(CardCell, __assign({}, cellProps))] })));
|
|
59
|
+
: (_c = cellProps.fontVariant) !== null && _c !== void 0 ? _c : 'NORMAL' }))), cellProps.type === 'CTA' && (jsx(CTACell, __assign({}, cellProps, { centered: isNavigation }))), cellProps.type === 'BUTTON' && jsx(ButtonCell, __assign({}, cellProps)), cellProps.type === 'CARD' && jsx(CardCell, __assign({}, cellProps))] })));
|
|
59
60
|
});
|
|
60
61
|
|
|
61
62
|
export { TableCell };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableCell.js","sources":["../../../../../../../src/lib/components/table/components/TableCell/TableCell.tsx"],"sourcesContent":["import classNames from 'classnames';\n\nimport styles from './TableCell.module.scss';\nimport { BaseCell } from './BaseCell/BaseCell';\nimport { TableCellData } from '../../types';\nimport { CTACell } from './CTACell/CTACell';\nimport { CardCell } from './CardCell/CardCell';\nimport { ButtonCell } from './ButtonCell/ButtonCell';\nimport React from 'react';\n\ntype ExtraTableCellProps = {\n isHeader?: boolean;\n isFirstCellInRow?: boolean;\n isTopLeftCell?: boolean;\n isNavigation?: boolean;\n isSelectedColumn?: boolean;\n selectedColumnPosition?: 'top' | 'bottom' | 'middle';\n imageComponent?: (args: any) => JSX.Element;\n isBelowDesktop?: boolean;\n};\n\nexport type TableCellProps = TableCellData & ExtraTableCellProps;\n\nconst TableCell = React.memo(\n ({\n isFirstCellInRow = false,\n isHeader = false,\n isNavigation = false,\n isSelectedColumn = false,\n selectedColumnPosition,\n isTopLeftCell = false,\n colSpan = 0,\n isBelowDesktop,\n ...cellProps\n }: TableCellProps) => {\n // prettier-ignore\n const Tag = isNavigation\n ? 'div'\n : isHeader || isFirstCellInRow ? 'th' : 'td';\n\n // prettier-ignore\n const thScope = isHeader\n ? 'col'\n : isFirstCellInRow ? 'row' : undefined;\n\n const scope = {\n scope: thScope,\n };\n\n return (\n <Tag\n {...scope}\n className={classNames(isSelectedColumn ? 'bg-orange-50' : 'bg-white', styles.th, {\n 'ta-left': isFirstCellInRow,\n [styles.headerCell]: isHeader,\n [styles.thNavigation]: isNavigation,\n [styles.fixedCell]: isFirstCellInRow && colSpan < 1 ,\n [styles.fixedCard]: cellProps.type === 'CARD',\n [styles.selectedColumnTop]: selectedColumnPosition === 'top',\n [styles.selectedColumnBottom]: selectedColumnPosition === 'bottom',\n })}\n colSpan={isBelowDesktop && cellProps.type === 'CARD' ? 2 : colSpan}\n >\n {!cellProps.type && (\n <BaseCell\n {...cellProps}\n fontVariant={\n isTopLeftCell\n ? 'TITLE'\n : cellProps.fontVariant ?? 'NORMAL'\n }\n />\n )}\n {cellProps.type === 'CTA' && <CTACell {...cellProps}
|
|
1
|
+
{"version":3,"file":"TableCell.js","sources":["../../../../../../../src/lib/components/table/components/TableCell/TableCell.tsx"],"sourcesContent":["import classNames from 'classnames';\n\nimport styles from './TableCell.module.scss';\nimport { BaseCell } from './BaseCell/BaseCell';\nimport { TableCellData } from '../../types';\nimport { CTACell } from './CTACell/CTACell';\nimport { CardCell } from './CardCell/CardCell';\nimport { ButtonCell } from './ButtonCell/ButtonCell';\nimport React from 'react';\n\ntype ExtraTableCellProps = {\n isHeader?: boolean;\n isFirstCellInRow?: boolean;\n isTopLeftCell?: boolean;\n isNavigation?: boolean;\n isSelectedColumn?: boolean;\n selectedColumnPosition?: 'top' | 'bottom' | 'middle';\n imageComponent?: (args: any) => JSX.Element;\n isBelowDesktop?: boolean;\n};\n\nexport type TableCellProps = TableCellData & ExtraTableCellProps;\n\nconst TableCell = React.memo(\n ({\n isFirstCellInRow = false,\n isHeader = false,\n isNavigation = false,\n isSelectedColumn = false,\n selectedColumnPosition,\n isTopLeftCell = false,\n colSpan = 0,\n isBelowDesktop,\n ...cellProps\n }: TableCellProps) => {\n // prettier-ignore\n const Tag = isNavigation\n ? 'div'\n : isHeader || isFirstCellInRow ? 'th' : 'td';\n\n // prettier-ignore\n const thScope = isHeader\n ? 'col'\n : isFirstCellInRow ? 'row' : undefined;\n\n const scope = {\n scope: thScope,\n };\n\n return (\n <Tag\n {...scope}\n className={classNames(isSelectedColumn ? 'bg-orange-50' : 'bg-white', styles.th, {\n 'ta-left': isFirstCellInRow,\n [styles.headerCell]: isHeader,\n [styles.thNavigation]: isNavigation,\n [styles.navigationTitle]: isNavigation && isTopLeftCell,\n [styles.fixedCell]: isFirstCellInRow && colSpan < 1 ,\n [styles.fixedCard]: cellProps.type === 'CARD',\n [styles.selectedColumnTop]: selectedColumnPosition === 'top',\n [styles.selectedColumnBottom]: selectedColumnPosition === 'bottom',\n })}\n colSpan={isBelowDesktop && cellProps.type === 'CARD' ? 2 : colSpan}\n >\n {!cellProps.type && (\n <BaseCell\n {...cellProps}\n fontVariant={\n isTopLeftCell\n ? 'TITLE'\n : cellProps.fontVariant ?? 'NORMAL'\n }\n />\n )}\n {cellProps.type === 'CTA' && (\n <CTACell {...cellProps} centered={isNavigation} />\n )}\n {cellProps.type === 'BUTTON' && <ButtonCell {...cellProps} />}\n {cellProps.type === 'CARD' && <CardCell {...cellProps} />}\n </Tag>\n );\n }\n);\n\nexport { TableCell };\n"],"names":["React","_jsxs","_jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuBA,IAAM,SAAS,GAAGA,cAAK,CAAC,IAAI,CAC1B,UAAC,EAUgB,EAAA;;;IATf,IAAA,EAAA,GAAA,EAAA,CAAA,gBAAwB,EAAxB,gBAAgB,GAAA,EAAA,KAAA,MAAA,GAAG,KAAK,GAAA,EAAA,EACxB,EAAA,GAAA,EAAA,CAAA,QAAgB,EAAhB,QAAQ,GAAA,EAAA,KAAA,MAAA,GAAG,KAAK,GAAA,EAAA,EAChB,EAAA,GAAA,EAAA,CAAA,YAAoB,EAApB,YAAY,GAAA,EAAA,KAAA,MAAA,GAAG,KAAK,GAAA,EAAA,EACpB,EAAA,GAAA,EAAA,CAAA,gBAAwB,EAAxB,gBAAgB,GAAA,EAAA,KAAA,MAAA,GAAG,KAAK,GAAA,EAAA,EACxB,sBAAsB,GAAA,EAAA,CAAA,sBAAA,EACtB,EAAA,GAAA,EAAA,CAAA,aAAqB,EAArB,aAAa,GAAA,EAAA,KAAA,MAAA,GAAG,KAAK,GAAA,EAAA,EACrB,EAAA,GAAA,EAAA,CAAA,OAAW,EAAX,OAAO,GAAA,EAAA,KAAA,MAAA,GAAG,CAAC,GAAA,EAAA,EACX,cAAc,oBAAA,EACX,SAAS,GAAA,MAAA,CAAA,EAAA,EATb,CAAA,kBAAA,EAAA,UAAA,EAAA,cAAA,EAAA,kBAAA,EAAA,wBAAA,EAAA,eAAA,EAAA,SAAA,EAAA,gBAAA,CAUA,CADa;;IAGZ,IAAM,GAAG,GAAG;AACZ,UAAE;AACF,UAAE,QAAQ,IAAI,gBAAgB,GAAG,IAAI,GAAG,IAAI;;IAG5C,IAAM,OAAO,GAAG;AAChB,UAAE;UACA,gBAAgB,GAAG,KAAK,GAAG,SAAS;AAEtC,IAAA,IAAM,KAAK,GAAG;AACZ,QAAA,KAAK,EAAE,OAAO;KACf;IAED,QACEC,KAAC,GAAG,EAAA,QAAA,CAAA,EAAA,EACE,KAAK,EAAA,EACT,SAAS,EAAE,UAAU,CAAC,gBAAgB,GAAG,cAAc,GAAG,UAAU,EAAE,MAAM,CAAC,EAAE,GAAA,EAAA,GAAA;AAC7E,gBAAA,SAAS,EAAE;;AACX,YAAA,EAAA,CAAC,MAAM,CAAC,UAAU,CAAA,GAAG,QAAQ;AAC7B,YAAA,EAAA,CAAC,MAAM,CAAC,YAAY,CAAA,GAAG,YAAY;AACnC,YAAA,EAAA,CAAC,MAAM,CAAC,eAAe,CAAA,GAAG,YAAY,IAAI,aAAa;YACvD,EAAA,CAAC,MAAM,CAAC,SAAS,CAAA,GAAG,gBAAgB,IAAI,OAAO,GAAG,CAAC;YACnD,EAAA,CAAC,MAAM,CAAC,SAAS,CAAA,GAAG,SAAS,CAAC,IAAI,KAAK,MAAM;AAC7C,YAAA,EAAA,CAAC,MAAM,CAAC,iBAAiB,CAAA,GAAG,sBAAsB,KAAK,KAAK;AAC5D,YAAA,EAAA,CAAC,MAAM,CAAC,oBAAoB,CAAA,GAAG,sBAAsB,KAAK,QAAQ;AAClE,YAAA,EAAA,EAAA,EACF,OAAO,EAAE,cAAc,IAAI,SAAS,CAAC,IAAI,KAAK,MAAM,GAAG,CAAC,GAAG,OAAO,EAAA,QAAA,EAAA,CAEjE,CAAC,SAAS,CAAC,IAAI,KACdC,GAAA,CAAC,QAAQ,EAAA,QAAA,CAAA,EAAA,EACH,SAAS,EAAA,EACb,WAAW,EACT;AACE,sBAAE;sBACA,CAAA,EAAA,GAAA,SAAS,CAAC,WAAW,mCAAI,QAAQ,EAAA,CAAA,CAEvC,CACH,EACA,SAAS,CAAC,IAAI,KAAK,KAAK,KACvBA,GAAA,CAAC,OAAO,eAAK,SAAS,EAAA,EAAE,QAAQ,EAAE,YAAY,EAAA,CAAA,CAAI,CACnD,EACA,SAAS,CAAC,IAAI,KAAK,QAAQ,IAAIA,GAAA,CAAC,UAAU,EAAA,QAAA,CAAA,EAAA,EAAK,SAAS,CAAA,CAAI,EAC5D,SAAS,CAAC,IAAI,KAAK,MAAM,IAAIA,GAAA,CAAC,QAAQ,EAAA,QAAA,CAAA,EAAA,EAAK,SAAS,CAAA,CAAI,CAAA,EAAA,CAAA,CACrD;AAEV,CAAC;;;;"}
|
|
@@ -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
|
|
|
@@ -8,7 +8,7 @@ import _7 from './components/icon/icons/7.js';
|
|
|
8
8
|
import _8 from './components/icon/icons/8.js';
|
|
9
9
|
import Cancer from './components/icon/icons/Cancer.js';
|
|
10
10
|
import AccidentCar from './components/icon/icons/AccidentCar.js';
|
|
11
|
-
import
|
|
11
|
+
import ActivityIcon from './components/icon/icons/Activity.js';
|
|
12
12
|
import Adhd from './components/icon/icons/Adhd.js';
|
|
13
13
|
import AdviceRecommendation from './components/icon/icons/AdviceRecommendation.js';
|
|
14
14
|
import AlertCircleIcon from './components/icon/icons/AlertCircle.js';
|
|
@@ -127,10 +127,10 @@ import Database from './components/icon/icons/Database.js';
|
|
|
127
127
|
import DeathFuneral from './components/icon/icons/DeathFuneral.js';
|
|
128
128
|
import Delete from './components/icon/icons/Delete.js';
|
|
129
129
|
import DentalPlusIcon from './components/icon/icons/DentalPlus.js';
|
|
130
|
-
import
|
|
130
|
+
import DentalToothTeethIcon from './components/icon/icons/DentalToothTeeth.js';
|
|
131
131
|
import DentalTreatmentTooth from './components/icon/icons/DentalTreatmentTooth.js';
|
|
132
132
|
import DependentsFamilyAdd from './components/icon/icons/DependentsFamilyAdd.js';
|
|
133
|
-
import
|
|
133
|
+
import DependentsFamilyIcon from './components/icon/icons/DependentsFamily.js';
|
|
134
134
|
import Diabetes from './components/icon/icons/Diabetes.js';
|
|
135
135
|
import Disc from './components/icon/icons/Disc.js';
|
|
136
136
|
import DoctorStethoscope from './components/icon/icons/DoctorStethoscope.js';
|
|
@@ -175,7 +175,7 @@ import GitCommit from './components/icon/icons/GitCommit.js';
|
|
|
175
175
|
import GitMerge from './components/icon/icons/GitMerge.js';
|
|
176
176
|
import GitPullRequest from './components/icon/icons/GitPullRequest.js';
|
|
177
177
|
import Glass from './components/icon/icons/Glass.js';
|
|
178
|
-
import
|
|
178
|
+
import GlobeNetworkEarthIcon from './components/icon/icons/GlobeNetworkEarth.js';
|
|
179
179
|
import Hallesche from './components/icon/icons/Hallesche.js';
|
|
180
180
|
import HandsMassageTherapeutic from './components/icon/icons/HandsMassageTherapeutic.js';
|
|
181
181
|
import HardDrive from './components/icon/icons/HardDrive.js';
|
|
@@ -187,7 +187,7 @@ import HeartPlus from './components/icon/icons/HeartPlus.js';
|
|
|
187
187
|
import HeartIcon from './components/icon/icons/Heart.js';
|
|
188
188
|
import Hexagon from './components/icon/icons/Hexagon.js';
|
|
189
189
|
import Home from './components/icon/icons/Home.js';
|
|
190
|
-
import
|
|
190
|
+
import HospitalBuildingIcon from './components/icon/icons/HospitalBuilding.js';
|
|
191
191
|
import Id from './components/icon/icons/Id.js';
|
|
192
192
|
import ImagePicture from './components/icon/icons/ImagePicture.js';
|
|
193
193
|
import Inbox from './components/icon/icons/Inbox.js';
|
|
@@ -394,7 +394,7 @@ import ZoomOut from './components/icon/icons/ZoomOut.js';
|
|
|
394
394
|
var icons = /*#__PURE__*/Object.freeze({
|
|
395
395
|
__proto__: null,
|
|
396
396
|
AccidentCarIcon: AccidentCar,
|
|
397
|
-
ActivityIcon:
|
|
397
|
+
ActivityIcon: ActivityIcon,
|
|
398
398
|
AdhdIcon: Adhd,
|
|
399
399
|
AdviceRecommendationIcon: AdviceRecommendation,
|
|
400
400
|
AlertCircleIcon: AlertCircleIcon,
|
|
@@ -514,10 +514,10 @@ var icons = /*#__PURE__*/Object.freeze({
|
|
|
514
514
|
DeathFuneralIcon: DeathFuneral,
|
|
515
515
|
DeleteIcon: Delete,
|
|
516
516
|
DentalPlusIcon: DentalPlusIcon,
|
|
517
|
-
DentalToothTeethIcon:
|
|
517
|
+
DentalToothTeethIcon: DentalToothTeethIcon,
|
|
518
518
|
DentalTreatmentToothIcon: DentalTreatmentTooth,
|
|
519
519
|
DependentsFamilyAddIcon: DependentsFamilyAdd,
|
|
520
|
-
DependentsFamilyIcon:
|
|
520
|
+
DependentsFamilyIcon: DependentsFamilyIcon,
|
|
521
521
|
DiabetesIcon: Diabetes,
|
|
522
522
|
DiscIcon: Disc,
|
|
523
523
|
DoctorIcon: Doctor,
|
|
@@ -562,7 +562,7 @@ var icons = /*#__PURE__*/Object.freeze({
|
|
|
562
562
|
GitMergeIcon: GitMerge,
|
|
563
563
|
GitPullRequestIcon: GitPullRequest,
|
|
564
564
|
GlassIcon: Glass,
|
|
565
|
-
GlobeNetworkEarthIcon:
|
|
565
|
+
GlobeNetworkEarthIcon: GlobeNetworkEarthIcon,
|
|
566
566
|
HallescheIcon: Hallesche,
|
|
567
567
|
HandsMassageTherapeuticIcon: HandsMassageTherapeutic,
|
|
568
568
|
HardDriveIcon: HardDrive,
|
|
@@ -574,7 +574,7 @@ var icons = /*#__PURE__*/Object.freeze({
|
|
|
574
574
|
HeartPlusIcon: HeartPlus,
|
|
575
575
|
HexagonIcon: Hexagon,
|
|
576
576
|
HomeIcon: Home,
|
|
577
|
-
HospitalBuildingIcon:
|
|
577
|
+
HospitalBuildingIcon: HospitalBuildingIcon,
|
|
578
578
|
IdIcon: Id,
|
|
579
579
|
ImagePictureIcon: ImagePicture,
|
|
580
580
|
InboxIcon: Inbox,
|
|
@@ -788,4 +788,4 @@ var icons = /*#__PURE__*/Object.freeze({
|
|
|
788
788
|
});
|
|
789
789
|
|
|
790
790
|
export { icons as i };
|
|
791
|
-
//# sourceMappingURL=index-
|
|
791
|
+
//# sourceMappingURL=index-D41W71Hh.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-D41W71Hh.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -176,5 +176,9 @@ export declare const ComparisonTableStory: {
|
|
|
176
176
|
render: ({ data, headers, collapsibleSections, scrollOnOpen, scrollTopOffset, hideDetails, classNameOverrides, hideDetailsCaption, showDetailsCaption, hideScrollBars, hideScrollBarsMobile, cellWidth, firstColumnWidth, stickyHeaderTopOffset, growContent, }: ComparisonTableProps<Data>) => JSX.Element;
|
|
177
177
|
name: string;
|
|
178
178
|
};
|
|
179
|
+
export declare const PrivateHealthQuoteWidget: {
|
|
180
|
+
render: () => JSX.Element;
|
|
181
|
+
name: string;
|
|
182
|
+
};
|
|
179
183
|
export declare const HeaderType: () => JSX.Element;
|
|
180
184
|
export default story;
|
|
@@ -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;
|
|
@@ -7,10 +7,11 @@ export type CTACellProps = {
|
|
|
7
7
|
buttonCaption?: ReactNode;
|
|
8
8
|
grey?: boolean;
|
|
9
9
|
narrow?: boolean;
|
|
10
|
+
centered?: boolean;
|
|
10
11
|
href: string;
|
|
11
12
|
className?: string;
|
|
12
13
|
dataTestId?: string;
|
|
13
14
|
dataCy?: string;
|
|
14
15
|
onClick?: () => void;
|
|
15
16
|
};
|
|
16
|
-
export declare const CTACell: ({ title, price, icon, grey, narrow, href, buttonCaption, imageComponent, className, dataCy, dataTestId, onClick, }: CTACellProps) => JSX.Element;
|
|
17
|
+
export declare const CTACell: ({ title, price, icon, grey, narrow, centered, href, buttonCaption, imageComponent, className, dataCy, dataTestId, onClick, }: CTACellProps) => JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CTACell } from './CTACell';
|
|
2
2
|
declare const story: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: ({ title, price, icon, grey, narrow, href, buttonCaption, imageComponent, className, dataCy, dataTestId, onClick, }: import("./CTACell").CTACellProps) => JSX.Element;
|
|
4
|
+
component: ({ title, price, icon, grey, narrow, centered, href, buttonCaption, imageComponent, className, dataCy, dataTestId, onClick, }: import("./CTACell").CTACellProps) => JSX.Element;
|
|
5
5
|
argTypes: {};
|
|
6
6
|
args: {
|
|
7
7
|
title: string;
|
package/package.json
CHANGED
package/src/lib/components/comparisonTable/components/AccordionItem/AccordionItem.module.scss
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@use '../../../../scss/public/colors' as colors;
|
|
2
|
+
@use '../../../../scss/public/grid' as *;
|
|
2
3
|
|
|
3
4
|
.container {
|
|
4
5
|
width: var(--growContent, min-content);
|
|
@@ -21,17 +22,28 @@
|
|
|
21
22
|
|
|
22
23
|
.headerButton {
|
|
23
24
|
border: none;
|
|
24
|
-
|
|
25
|
+
border-bottom: 1px solid colors.$ds-neutral-300;
|
|
26
|
+
background: white;
|
|
27
|
+
color: colors.$ds-neutral-900;
|
|
25
28
|
column-gap: 16px;
|
|
26
29
|
cursor: pointer;
|
|
27
30
|
font-family: inherit;
|
|
28
31
|
outline: none;
|
|
32
|
+
padding: 24px 0;
|
|
29
33
|
position: relative;
|
|
30
34
|
text-align: inherit;
|
|
31
|
-
transition:
|
|
35
|
+
transition: color 0.3s ease-in-out, transform 0.2s ease-in-out;
|
|
36
|
+
|
|
37
|
+
@include p-size-tablet {
|
|
38
|
+
padding: 24px;
|
|
39
|
+
}
|
|
32
40
|
|
|
33
41
|
&:hover {
|
|
34
|
-
|
|
42
|
+
color: colors.$ds-neutral-700;
|
|
43
|
+
|
|
44
|
+
:global(.p-h3) {
|
|
45
|
+
color: colors.$ds-neutral-700;
|
|
46
|
+
}
|
|
35
47
|
}
|
|
36
48
|
}
|
|
37
49
|
|
|
@@ -20,6 +20,7 @@ const Row = <T extends { id: number }>(props: RowProps<T>) => {
|
|
|
20
20
|
key={rowId}
|
|
21
21
|
className={classNames('d-flex w-100', {
|
|
22
22
|
[styles.header]: isRowHeader,
|
|
23
|
+
[styles.row]: !isRowHeader,
|
|
23
24
|
})}
|
|
24
25
|
>
|
|
25
26
|
<h4
|
|
@@ -47,7 +48,7 @@ const Row = <T extends { id: number }>(props: RowProps<T>) => {
|
|
|
47
48
|
|
|
48
49
|
return (
|
|
49
50
|
<div
|
|
50
|
-
className={classNames('ta-
|
|
51
|
+
className={classNames('ta-left', styles.cell, cellClassName)}
|
|
51
52
|
key={`${rowId}-${item.id}`}
|
|
52
53
|
>
|
|
53
54
|
{
|
|
@@ -3,9 +3,28 @@
|
|
|
3
3
|
|
|
4
4
|
$cell-min-width: var(--cellWidth, 211px); // 195 + 16px
|
|
5
5
|
|
|
6
|
+
.row {
|
|
7
|
+
border-bottom: 1px solid $ds-neutral-300;
|
|
8
|
+
|
|
9
|
+
&:last-child {
|
|
10
|
+
border-bottom: none;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
6
14
|
.header {
|
|
7
15
|
position: relative;
|
|
8
16
|
|
|
17
|
+
.cell {
|
|
18
|
+
align-items: flex-start;
|
|
19
|
+
justify-content: center;
|
|
20
|
+
text-align: center;
|
|
21
|
+
|
|
22
|
+
@include p-size-tablet {
|
|
23
|
+
justify-content: flex-start;
|
|
24
|
+
text-align: left;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
9
28
|
& > div {
|
|
10
29
|
width: var(--tableWidth);
|
|
11
30
|
max-width: 100vw;
|
|
@@ -24,7 +43,7 @@ $cell-min-width: var(--cellWidth, 211px); // 195 + 16px
|
|
|
24
43
|
|
|
25
44
|
.cell {
|
|
26
45
|
display: flex;
|
|
27
|
-
justify-content:
|
|
46
|
+
justify-content: flex-start;
|
|
28
47
|
align-items: center;
|
|
29
48
|
|
|
30
49
|
scroll-snap-align: end;
|
|
@@ -84,8 +103,6 @@ h4.cell {
|
|
|
84
103
|
|
|
85
104
|
display: none;
|
|
86
105
|
|
|
87
|
-
line-height: 38px;
|
|
88
|
-
|
|
89
106
|
@include p-size-tablet {
|
|
90
107
|
display: flex;
|
|
91
108
|
}
|
|
@@ -102,13 +119,11 @@ h4.cell {
|
|
|
102
119
|
width: 50vw;
|
|
103
120
|
|
|
104
121
|
@include p-size-tablet {
|
|
105
|
-
border-right: 1px solid $ds-neutral-50;
|
|
106
122
|
flex: 1 0 288px;
|
|
107
123
|
}
|
|
108
124
|
}
|
|
109
125
|
|
|
110
126
|
h4.addon {
|
|
111
|
-
border-right: none;
|
|
112
127
|
max-width: calc(100vw - 64px);
|
|
113
128
|
width: 100%;
|
|
114
129
|
|