@laerdal/life-react-components 3.5.2 → 3.6.0-dev.1.full

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 (69) hide show
  1. package/dist/Chips/ChoiceChips.cjs +1 -0
  2. package/dist/Chips/ChoiceChips.cjs.map +1 -1
  3. package/dist/Chips/ChoiceChips.js +1 -0
  4. package/dist/Chips/ChoiceChips.js.map +1 -1
  5. package/dist/ChipsInput/ChipDropdownInput.cjs +1 -1
  6. package/dist/ChipsInput/ChipDropdownInput.cjs.map +1 -1
  7. package/dist/ChipsInput/ChipDropdownInput.js +1 -1
  8. package/dist/ChipsInput/ChipDropdownInput.js.map +1 -1
  9. package/dist/Dropdown/BasicDropdown.cjs +2 -0
  10. package/dist/Dropdown/BasicDropdown.cjs.map +1 -1
  11. package/dist/Dropdown/BasicDropdown.js +2 -0
  12. package/dist/Dropdown/BasicDropdown.js.map +1 -1
  13. package/dist/Dropdown/CommonStyling.cjs +1 -1
  14. package/dist/Dropdown/CommonStyling.cjs.map +1 -1
  15. package/dist/Dropdown/CommonStyling.js +1 -1
  16. package/dist/Dropdown/CommonStyling.js.map +1 -1
  17. package/dist/Dropdown/DropdownButton.cjs +4 -0
  18. package/dist/Dropdown/DropdownButton.cjs.map +1 -1
  19. package/dist/Dropdown/DropdownButton.js +4 -0
  20. package/dist/Dropdown/DropdownButton.js.map +1 -1
  21. package/dist/Dropdown/DropdownContent.cjs +1 -1
  22. package/dist/Dropdown/DropdownContent.cjs.map +1 -1
  23. package/dist/Dropdown/DropdownContent.js +1 -1
  24. package/dist/Dropdown/DropdownContent.js.map +1 -1
  25. package/dist/Dropdown/DropdownFilter.cjs +2 -0
  26. package/dist/Dropdown/DropdownFilter.cjs.map +1 -1
  27. package/dist/Dropdown/DropdownFilter.js +2 -0
  28. package/dist/Dropdown/DropdownFilter.js.map +1 -1
  29. package/dist/Dropdown/index.cjs +0 -12
  30. package/dist/Dropdown/index.cjs.map +1 -1
  31. package/dist/Dropdown/index.d.ts +0 -1
  32. package/dist/Dropdown/index.js +0 -1
  33. package/dist/Dropdown/index.js.map +1 -1
  34. package/dist/GlobalNavigationBar/desktop/ExtendedMainMenu.cjs +0 -1
  35. package/dist/GlobalNavigationBar/desktop/ExtendedMainMenu.cjs.map +1 -1
  36. package/dist/GlobalNavigationBar/desktop/ExtendedMainMenu.js +0 -1
  37. package/dist/GlobalNavigationBar/desktop/ExtendedMainMenu.js.map +1 -1
  38. package/dist/GlobalNavigationBar/desktop/SubMenu.cjs +0 -1
  39. package/dist/GlobalNavigationBar/desktop/SubMenu.cjs.map +1 -1
  40. package/dist/GlobalNavigationBar/desktop/SubMenu.js +0 -1
  41. package/dist/GlobalNavigationBar/desktop/SubMenu.js.map +1 -1
  42. package/dist/InputFields/QuickSearch.cjs +1 -1
  43. package/dist/InputFields/QuickSearch.cjs.map +1 -1
  44. package/dist/InputFields/QuickSearch.js +1 -1
  45. package/dist/InputFields/QuickSearch.js.map +1 -1
  46. package/dist/List/ListRow.cjs +1 -1
  47. package/dist/List/ListRow.cjs.map +1 -1
  48. package/dist/List/ListRow.d.ts +1 -1
  49. package/dist/List/ListRow.js +1 -1
  50. package/dist/List/ListRow.js.map +1 -1
  51. package/dist/Table/TableBody.cjs +1 -1
  52. package/dist/Table/TableBody.cjs.map +1 -1
  53. package/dist/Table/TableBody.js +1 -1
  54. package/dist/Table/TableBody.js.map +1 -1
  55. package/dist/Table/TableFooter.cjs +2 -0
  56. package/dist/Table/TableFooter.cjs.map +1 -1
  57. package/dist/Table/TableFooter.js +2 -0
  58. package/dist/Table/TableFooter.js.map +1 -1
  59. package/dist/styles/typography.cjs +59 -35
  60. package/dist/styles/typography.cjs.map +1 -1
  61. package/dist/styles/typography.d.ts +1 -1
  62. package/dist/styles/typography.js +59 -35
  63. package/dist/styles/typography.js.map +1 -1
  64. package/dist/test-utils.cjs +42 -0
  65. package/dist/test-utils.cjs.map +1 -0
  66. package/dist/test-utils.d.ts +5 -0
  67. package/dist/test-utils.js +22 -0
  68. package/dist/test-utils.js.map +1 -0
  69. package/package.json +34 -10
@@ -1 +1 @@
1
- {"version":3,"file":"TableBody.js","names":["Button","Size","React","Checkbox","IconButton","HyperLink","StyledTableBody","StyledTableBodyRow","StyledTableCell","StyledTableCellContent","StyledTableCellIcon","StyledTableCellText","StyledTableHeaderColumn","StyledTableHeaderColumnContent","StyledTableHeaderColumns","StyledTableNoRowsLabelRow","StyledTable","StyledTableBodyWrapper","StyledTableHeaderRow","StyledTableHeaderColumnSortDirection","StyledTableCellNoteText","StyledTableCellTextWrapper","defaultOnMouseDownHandler","SystemIcons","useDimensionsRef","styled","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","ColumnLabel","span","_templateObject","_taggedTemplateLiteral","TableBody","props","_props$noRowsLabel","_useDimensionsRef","updateOnResize","_useDimensionsRef2","_slicedToArray","scrollContainerRef","dimensions","node","_React$useState","useState","_React$useState2","scrollable","setScrollable","useEffect","_node$clientWidth","_node$scrollWidth","clientWidth","scrollWidth","columns","rows","renderCellBody","column","row","type","tmp","_objectSpread","variant","href","tabIndex","showLoadingIndicator","additionalProps","style","colorFn","color","key","onClick","e","preventDefault","stopPropagation","action","children","iconColor","shape","useTransparentBackground","icon","size","Small","selected","readOnly","customContent","textWrap","shortenText","Boolean","noteKey","isSelected","_props$selected","multiSelect","indexOf","keyExpr","ref","className","cellPadding","cellSpacing","concat","layout","selectAllState","disabled","semiSelected","select","onSelectAllClick","map","_props$sortProps","_props$sortProps2","_props$sortProps3","_props$sortProps4","_props$sortProps5","_props$sortProps6","_props$sortProps7","_props$sortProps8","_props$sortProps9","onMouseDown","sortable","sortByColumn","onKeyPress","sortProps","direction","undefined","width","justify","name","ArrowLineUp","ArrowLineDown","currentPageRows","length","index","selectable","onRowClick","maxWidth","title","withNote","colSpan","noRowsLabel","propTypes","_pt","arrayOf","any","isRequired","func","oneOf"],"sources":["../../src/Table/TableBody.tsx"],"sourcesContent":["import { TableColumn, TableProps } from './TableTypes';\r\nimport { Button } from '../Button';\r\nimport { Size } from '../types';\r\nimport * as React from 'react';\r\nimport { Checkbox } from '../InputFields';\r\nimport { ButtonProps } from '../Button/Button';\r\nimport IconButton, { IconButtonProps } from '../Button/Iconbutton';\r\nimport { HyperlinkProps } from '../HyperLink/HyperLink';\r\nimport { HyperLink } from '../HyperLink';\r\nimport {\r\n StyledTableBody,\r\n StyledTableBodyRow,\r\n StyledTableCell,\r\n StyledTableCellContent,\r\n StyledTableCellIcon,\r\n StyledTableCellText,\r\n StyledTableHeaderColumn,\r\n StyledTableHeaderColumnContent,\r\n StyledTableHeaderColumns,\r\n StyledTableNoRowsLabelRow,\r\n StyledTable,\r\n StyledTableBodyWrapper,\r\n StyledTableHeaderRow,\r\n StyledTableHeaderColumnSortDirection,\r\n StyledTableCellNoteText,\r\n StyledTableCellTextWrapper,\r\n} from './TableStyles';\r\nimport { defaultOnMouseDownHandler } from '../common';\r\nimport { SystemIcons } from '../icons';\r\nimport { useDimensionsRef } from 'rooks';\r\nimport styled from 'styled-components';\r\n\r\ninterface TableBodyProps extends TableProps {\r\n currentPageRows: any[];\r\n onRowClick?: (row: any) => void;\r\n selected?: any | any[];\r\n sortByColumn: (column: TableColumn) => void;\r\n onSelectAllClick: () => void;\r\n selectAllState: 'all' | 'some' | 'none';\r\n}\r\n\r\nconst ColumnLabel = styled.span`\r\n text-overflow: ellipsis;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n`;\r\n\r\nconst TableBody: React.FC<TableBodyProps> = (props) => {\r\n const [scrollContainerRef, dimensions, node] = useDimensionsRef({ updateOnResize: true });\r\n const [scrollable, setScrollable] = React.useState(false);\r\n\r\n React.useEffect(() => {\r\n const clientWidth = node?.clientWidth ?? 0;\r\n const scrollWidth = node?.scrollWidth ?? 0;\r\n setScrollable(scrollWidth > clientWidth);\r\n }, [dimensions, node, props.columns, props.rows]);\r\n\r\n const renderCellBody = (column: TableColumn, row: any) => {\r\n switch (column.type) {\r\n case 'link': {\r\n const tmp = {\r\n variant: 'default',\r\n href: '#',\r\n tabIndex: props.showLoadingIndicator ? -1 : 0,\r\n ...column.additionalProps,\r\n } as HyperlinkProps;\r\n return (\r\n <HyperLink\r\n style={column.colorFn && { color: column.colorFn(row, column.key) }}\r\n {...tmp}\r\n onClick={(e) => {\r\n e.preventDefault();\r\n e.stopPropagation();\r\n column.action && column.action(row, e);\r\n }}>\r\n {row[column.key]}\r\n </HyperLink>\r\n );\r\n }\r\n case 'icon': {\r\n const tmp = {\r\n iconColor: column.colorFn && column.colorFn(row, column.key),\r\n variant: 'secondary',\r\n shape: 'circular',\r\n tabIndex: props.showLoadingIndicator ? -1 : 0,\r\n useTransparentBackground: true,\r\n ...column.additionalProps,\r\n } as IconButtonProps;\r\n return (\r\n <IconButton\r\n {...tmp}\r\n action={(e) => {\r\n e?.stopPropagation();\r\n column.action && column.action(row, e);\r\n }}>\r\n {column.icon}\r\n </IconButton>\r\n );\r\n }\r\n case 'button': {\r\n const tmp = {\r\n variant: 'tertiary',\r\n size: Size.Small,\r\n tabIndex: props.showLoadingIndicator ? -1 : 0,\r\n ...column.additionalProps,\r\n } as ButtonProps;\r\n return (\r\n <Button\r\n style={column.colorFn && { color: column.colorFn(row, column.key) }}\r\n {...tmp}\r\n onClick={(e) => {\r\n e?.stopPropagation();\r\n column.action && column.action(row, e);\r\n }}>\r\n {row[column.key]}\r\n </Button>\r\n );\r\n }\r\n case 'boolean':\r\n return <Checkbox selected={!!row[column.key]} readOnly={true} />;\r\n case 'custom':\r\n return column.customContent && column.customContent(row, column.key);\r\n case 'number':\r\n case 'text':\r\n default:\r\n return (\r\n <>\r\n {column.icon && <StyledTableCellIcon>{column.icon}</StyledTableCellIcon>}\r\n <StyledTableCellTextWrapper textWrap={!column.shortenText}>\r\n <StyledTableCellText>{row[column.key]}</StyledTableCellText>\r\n {Boolean(column.noteKey) && Boolean(row[column.noteKey!]) && (\r\n <>\r\n <StyledTableCellNoteText>{row[column.noteKey!]}</StyledTableCellNoteText>\r\n </>\r\n )}\r\n </StyledTableCellTextWrapper>\r\n </>\r\n );\r\n }\r\n };\r\n\r\n const isSelected = (row: any) => {\r\n return (\r\n (props.multiSelect && props.selected?.indexOf(props.keyExpr ? row[props.keyExpr] : row) > -1) ||\r\n (!props.multiSelect && props.selected === (props.keyExpr ? row[props.keyExpr] : row))\r\n );\r\n };\r\n\r\n return (\r\n <StyledTableBodyWrapper ref={scrollContainerRef as any} className={scrollable ? 'scrollable' : ''}>\r\n <StyledTable cellPadding=\"0\" cellSpacing=\"0\" data-testid=\"TestTable\" className={`table ${props.layout || ''}`}>\r\n <StyledTableHeaderRow>\r\n <StyledTableHeaderColumns data-testid=\"TestTableColumnHeaderRow\">\r\n {props.multiSelect && (\r\n <StyledTableHeaderColumn>\r\n <StyledTableHeaderColumnContent>\r\n <Checkbox\r\n selected={props.selectAllState === 'all'}\r\n disabled={props.showLoadingIndicator}\r\n semiSelected={props.selectAllState === 'some'}\r\n select={props.onSelectAllClick}\r\n />\r\n </StyledTableHeaderColumnContent>\r\n </StyledTableHeaderColumn>\r\n )}\r\n {props.columns.map((column: TableColumn) => (\r\n <StyledTableHeaderColumn\r\n key={column.key}\r\n onMouseDown={defaultOnMouseDownHandler}\r\n onClick={(e) => column.sortable && props.sortByColumn(column)}\r\n onKeyPress={(e) => {\r\n if (e.key === 'Enter' || e.key === ' ') {\r\n column.sortable && props.sortByColumn(column);\r\n }\r\n }}\r\n aria-pressed={column.key === props.sortProps?.column && !!props.sortProps?.direction ? true : undefined}\r\n aria-sort={column.key === props.sortProps?.column && !!props.sortProps?.direction ? (props.sortProps?.direction == 'asc' ? 'ascending' : 'descending') : undefined}\r\n style={{ width: column.width }}\r\n tabIndex={column.sortable && !props.showLoadingIndicator ? 0 : -1}\r\n className={`${!!column.sortable ? 'sortable' : ''} ${column.key === props.sortProps?.column && !!props.sortProps?.direction ? 'sorted' : ''} ${\r\n column.justify || ''\r\n }`}>\r\n <StyledTableHeaderColumnContent>\r\n <ColumnLabel>{column.name}</ColumnLabel>\r\n {column.key === props.sortProps?.column && (\r\n <StyledTableHeaderColumnSortDirection>\r\n {props.sortProps?.direction === 'asc' ? <SystemIcons.ArrowLineUp size={'20px'} /> : <SystemIcons.ArrowLineDown size={'20px'} />}\r\n </StyledTableHeaderColumnSortDirection>\r\n )}\r\n </StyledTableHeaderColumnContent>\r\n </StyledTableHeaderColumn>\r\n ))}\r\n </StyledTableHeaderColumns>\r\n </StyledTableHeaderRow>\r\n <StyledTableBody>\r\n {props.currentPageRows.length > 0 ? (\r\n props.currentPageRows.map((row: any, index: number) => (\r\n <StyledTableBodyRow\r\n key={`row_${index}`}\r\n className={`${props.selectable ? 'selectable' : ''} ${isSelected(row) ? 'selected' : ''}`}\r\n onClick={() => props.onRowClick && props.onRowClick(row)}\r\n onMouseDown={defaultOnMouseDownHandler}\r\n onKeyPress={(e) => {\r\n if (e.key === 'Enter') {\r\n props.onRowClick && props.onRowClick(row);\r\n }\r\n }}\r\n tabIndex={props.selectable && !props.showLoadingIndicator ? 0 : undefined}\r\n data-testid=\"TestTableDataRow\">\r\n {props.multiSelect && (\r\n <StyledTableCell>\r\n <StyledTableCellContent>\r\n <Checkbox selected={isSelected(row)} />\r\n </StyledTableCellContent>\r\n </StyledTableCell>\r\n )}\r\n {props.columns.map((column: TableColumn) => (\r\n <StyledTableCell key={`row_${index}_${column.key}`} style={{ maxWidth: column.width }} title={column.shortenText ? `${row[column.key]} \\n ${column.noteKey ? row[column.noteKey!] : ''}` : ''}>\r\n <StyledTableCellContent\r\n withNote={Boolean(column.noteKey)}\r\n className={`${column.shortenText ? `truncate-text` : ''} ${column.justify || ''}`}\r\n style={{\r\n color: column.colorFn && column.colorFn(row, column.key),\r\n }}>\r\n {renderCellBody(column, row)}\r\n </StyledTableCellContent>\r\n </StyledTableCell>\r\n ))}\r\n </StyledTableBodyRow>\r\n ))\r\n ) : (\r\n <StyledTableNoRowsLabelRow data-testid=\"TestTableNoDataRow\">\r\n <StyledTableCell colSpan={props.columns.length + (props.multiSelect ? 1 : 0)}>\r\n <StyledTableCellContent className={'center'}>{props.noRowsLabel ?? 'There are no rows to display'}</StyledTableCellContent>\r\n </StyledTableCell>\r\n </StyledTableNoRowsLabelRow>\r\n )}\r\n </StyledTableBody>\r\n </StyledTable>\r\n </StyledTableBodyWrapper>\r\n );\r\n};\r\nexport default TableBody;\r\n"],"mappings":";;;;;;;AACA,SAASA,MAAM,QAAQ,WAAW;AAClC,SAASC,IAAI,QAAQ,UAAU;AAC/B,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,QAAQ,QAAQ,gBAAgB;AAEzC,OAAOC,UAAU,MAA2B,sBAAsB;AAElE,SAASC,SAAS,QAAQ,cAAc;AACxC,SACEC,eAAe,EACfC,kBAAkB,EAClBC,eAAe,EACfC,sBAAsB,EACtBC,mBAAmB,EACnBC,mBAAmB,EACnBC,uBAAuB,EACvBC,8BAA8B,EAC9BC,wBAAwB,EACxBC,yBAAyB,EACzBC,WAAW,EACXC,sBAAsB,EACtBC,oBAAoB,EACpBC,oCAAoC,EACpCC,uBAAuB,EACvBC,0BAA0B,QACrB,eAAe;AACtB,SAASC,yBAAyB,QAAQ,WAAW;AACrD,SAASC,WAAW,QAAQ,UAAU;AACtC,SAASC,gBAAgB,QAAQ,OAAO;AACxC,OAAOC,MAAM,MAAM,mBAAmB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAAA,SAAAC,QAAA,IAAAC,SAAA;AAAA,SAAAC,IAAA,IAAAC,KAAA;AAWvC,IAAMC,WAAW,GAAGP,MAAM,CAACQ,IAAI,CAAAC,eAAA,KAAAA,eAAA,GAAAC,sBAAA,mFAI9B;AAED,IAAMC,SAAmC,GAAG,SAAtCA,SAAmCA,CAAIC,KAAK,EAAK;EAAA,IAAAC,kBAAA;EACrD,IAAAC,iBAAA,GAA+Cf,gBAAgB,CAAC;MAAEgB,cAAc,EAAE;IAAK,CAAC,CAAC;IAAAC,kBAAA,GAAAC,cAAA,CAAA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CA8BC,CAAC;QAAA,CACtB,CAAC,gBAEFzG,IAAA,CAACZ,yBAAyB;UAAC,eAAY,oBAAoB;UAAA+D,QAAA,eACzDnD,IAAA,CAACnB,eAAe;YAACkI,OAAO,EAAErG,KAAK,CAACmB,OAAO,CAAC2E,MAAM,IAAI9F,KAAK,CAACyD,WAAW,GAAG,CAAC,GAAG,CAAC,CAAE;YAAAhB,QAAA,eAC3EnD,IAAA,CAAClB,sBAAsB;cAACyF,SAAS,EAAE,QAAS;cAAApB,QAAA,GAAAxC,kBAAA,GAAED,KAAK,CAACsG,WAAW,cAAArG,kBAAA,cAAAA,kBAAA,GAAI;YAA8B,CAAyB;UAAC,CAC5G;QAAC,CACO;MAC5B,CACc,CAAC;IAAA,CACP;EAAC,CACQ,CAAC;AAE7B,CAAC;AAACF,SAAA,CAAAwG,SAAA;EAhNAV,eAAe,EAAAW,GAAA,CAAAC,OAAA,CAAAD,GAAA,CAAAE,GAAA,EAAAC,UAAA;EACfV,UAAU,EAAAO,GAAA,CAAAI,IAAA;EACV5D,QAAQ,EAAAwD,GAAA,CAAAE,GAAA;EACRvB,YAAY,EAAAqB,GAAA,CAAAI,IAAA,CAAAD,UAAA;EACZrC,gBAAgB,EAAAkC,GAAA,CAAAI,IAAA,CAAAD,UAAA;EAChBzC,cAAc,EAAAsC,GAAA,CAAAK,KAAA,EAAE,KAAK,EAAG,MAAM,EAAG,MAAM,GAAAF;AAAA;AA4MzC,eAAe5G,SAAS","ignoreList":[]}
1
+ {"version":3,"file":"TableBody.js","names":["Button","Size","React","Checkbox","IconButton","HyperLink","StyledTableBody","StyledTableBodyRow","StyledTableCell","StyledTableCellContent","StyledTableCellIcon","StyledTableCellText","StyledTableHeaderColumn","StyledTableHeaderColumnContent","StyledTableHeaderColumns","StyledTableNoRowsLabelRow","StyledTable","StyledTableBodyWrapper","StyledTableHeaderRow","StyledTableHeaderColumnSortDirection","StyledTableCellNoteText","StyledTableCellTextWrapper","defaultOnMouseDownHandler","SystemIcons","useDimensionsRef","styled","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","ColumnLabel","span","_templateObject","_taggedTemplateLiteral","TableBody","props","_props$noRowsLabel","_useDimensionsRef","updateOnResize","_useDimensionsRef2","_slicedToArray","scrollContainerRef","dimensions","node","_React$useState","useState","_React$useState2","scrollable","setScrollable","useEffect","_node$clientWidth","_node$scrollWidth","clientWidth","scrollWidth","columns","rows","renderCellBody","column","row","type","tmp","_objectSpread","variant","href","tabIndex","showLoadingIndicator","additionalProps","style","colorFn","color","key","onClick","e","preventDefault","stopPropagation","action","children","iconColor","shape","useTransparentBackground","icon","size","Small","selected","readOnly","customContent","textWrap","shortenText","Boolean","noteKey","isSelected","_props$selected","multiSelect","indexOf","keyExpr","ref","className","cellPadding","cellSpacing","concat","layout","selectAllState","disabled","semiSelected","select","onSelectAllClick","map","_props$sortProps","_props$sortProps2","_props$sortProps3","_props$sortProps4","_props$sortProps5","_props$sortProps6","_props$sortProps7","_props$sortProps8","_props$sortProps9","onMouseDown","sortable","sortByColumn","onKeyPress","sortProps","direction","undefined","width","justify","name","ArrowLineUp","ArrowLineDown","currentPageRows","length","index","selectable","onRowClick","maxWidth","title","withNote","colSpan","noRowsLabel","propTypes","_pt","arrayOf","any","isRequired","func","oneOf"],"sources":["../../src/Table/TableBody.tsx"],"sourcesContent":["import { TableColumn, TableProps } from './TableTypes';\r\nimport { Button } from '../Button';\r\nimport { Size } from '../types';\r\nimport * as React from 'react';\r\nimport { Checkbox } from '../InputFields';\r\nimport { ButtonProps } from '../Button/Button';\r\nimport IconButton, { IconButtonProps } from '../Button/Iconbutton';\r\nimport { HyperlinkProps } from '../HyperLink/HyperLink';\r\nimport { HyperLink } from '../HyperLink';\r\nimport {\r\n StyledTableBody,\r\n StyledTableBodyRow,\r\n StyledTableCell,\r\n StyledTableCellContent,\r\n StyledTableCellIcon,\r\n StyledTableCellText,\r\n StyledTableHeaderColumn,\r\n StyledTableHeaderColumnContent,\r\n StyledTableHeaderColumns,\r\n StyledTableNoRowsLabelRow,\r\n StyledTable,\r\n StyledTableBodyWrapper,\r\n StyledTableHeaderRow,\r\n StyledTableHeaderColumnSortDirection,\r\n StyledTableCellNoteText,\r\n StyledTableCellTextWrapper,\r\n} from './TableStyles';\r\nimport { defaultOnMouseDownHandler } from '../common';\r\nimport { SystemIcons } from '../icons';\r\nimport { useDimensionsRef } from 'rooks';\r\nimport styled from 'styled-components';\r\n\r\ninterface TableBodyProps extends TableProps {\r\n currentPageRows: any[];\r\n onRowClick?: (row: any) => void;\r\n selected?: any | any[];\r\n sortByColumn: (column: TableColumn) => void;\r\n onSelectAllClick: () => void;\r\n selectAllState: 'all' | 'some' | 'none';\r\n}\r\n\r\nconst ColumnLabel = styled.span`\r\n text-overflow: ellipsis;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n`;\r\n\r\nconst TableBody: React.FC<TableBodyProps> = (props) => {\r\n const [scrollContainerRef, dimensions, node] = useDimensionsRef({ updateOnResize: true });\r\n const [scrollable, setScrollable] = React.useState(false);\r\n\r\n React.useEffect(() => {\r\n const clientWidth = node?.clientWidth ?? 0;\r\n const scrollWidth = node?.scrollWidth ?? 0;\r\n setScrollable(scrollWidth > clientWidth);\r\n }, [dimensions, node, props.columns, props.rows]);\r\n\r\n const renderCellBody = (column: TableColumn, row: any) => {\r\n switch (column.type) {\r\n case 'link': {\r\n const tmp = {\r\n variant: 'default',\r\n href: '#',\r\n tabIndex: props.showLoadingIndicator ? -1 : 0,\r\n ...column.additionalProps,\r\n } as HyperlinkProps;\r\n return (\r\n <HyperLink\r\n style={column.colorFn && { color: column.colorFn(row, column.key) }}\r\n {...tmp}\r\n onClick={(e) => {\r\n e.preventDefault();\r\n e.stopPropagation();\r\n column.action && column.action(row, e);\r\n }}>\r\n {row[column.key]}\r\n </HyperLink>\r\n );\r\n }\r\n case 'icon': {\r\n const tmp = {\r\n iconColor: column.colorFn && column.colorFn(row, column.key),\r\n variant: 'secondary',\r\n shape: 'circular',\r\n tabIndex: props.showLoadingIndicator ? -1 : 0,\r\n useTransparentBackground: true,\r\n ...column.additionalProps,\r\n } as IconButtonProps;\r\n return (\r\n <IconButton\r\n {...tmp}\r\n action={(e) => {\r\n e?.stopPropagation();\r\n column.action && column.action(row, e);\r\n }}>\r\n {column.icon}\r\n </IconButton>\r\n );\r\n }\r\n case 'button': {\r\n const tmp = {\r\n variant: 'tertiary',\r\n size: Size.Small,\r\n tabIndex: props.showLoadingIndicator ? -1 : 0,\r\n ...column.additionalProps,\r\n } as ButtonProps;\r\n return (\r\n <Button\r\n style={column.colorFn && { color: column.colorFn(row, column.key) }}\r\n {...tmp}\r\n onClick={(e) => {\r\n e?.stopPropagation();\r\n column.action && column.action(row, e);\r\n }}>\r\n {row[column.key]}\r\n </Button>\r\n );\r\n }\r\n case 'boolean':\r\n return <Checkbox selected={!!row[column.key]} readOnly={true} />;\r\n case 'custom':\r\n return column.customContent && column.customContent(row, column.key);\r\n case 'number':\r\n case 'text':\r\n default:\r\n return (\r\n <>\r\n {column.icon && <StyledTableCellIcon>{column.icon}</StyledTableCellIcon>}\r\n <StyledTableCellTextWrapper textWrap={!column.shortenText}>\r\n <StyledTableCellText>{row[column.key]}</StyledTableCellText>\r\n {Boolean(column.noteKey) && Boolean(row[column.noteKey!]) && (\r\n <>\r\n <StyledTableCellNoteText>{row[column.noteKey!]}</StyledTableCellNoteText>\r\n </>\r\n )}\r\n </StyledTableCellTextWrapper>\r\n </>\r\n );\r\n }\r\n };\r\n\r\n const isSelected = (row: any) => {\r\n return (\r\n (props.multiSelect && props.selected?.indexOf(props.keyExpr ? row[props.keyExpr] : row) > -1) ||\r\n (!props.multiSelect && props.selected === (props.keyExpr ? row[props.keyExpr] : row))\r\n );\r\n };\r\n\r\n return (\r\n <StyledTableBodyWrapper ref={scrollContainerRef as any} className={scrollable ? 'scrollable' : ''}>\r\n <StyledTable cellPadding=\"0\" cellSpacing=\"0\" data-testid=\"TestTable\" className={`table ${props.layout || ''}`}>\r\n <StyledTableHeaderRow>\r\n <StyledTableHeaderColumns data-testid=\"TestTableColumnHeaderRow\">\r\n {props.multiSelect && (\r\n <StyledTableHeaderColumn>\r\n <StyledTableHeaderColumnContent>\r\n <Checkbox\r\n selected={props.selectAllState === 'all'}\r\n disabled={props.showLoadingIndicator}\r\n semiSelected={props.selectAllState === 'some'}\r\n select={props.onSelectAllClick}\r\n />\r\n </StyledTableHeaderColumnContent>\r\n </StyledTableHeaderColumn>\r\n )}\r\n {props.columns.map((column: TableColumn) => (\r\n <StyledTableHeaderColumn\r\n key={column.key}\r\n onMouseDown={defaultOnMouseDownHandler}\r\n onClick={(e) => column.sortable && props.sortByColumn(column)}\r\n onKeyPress={(e) => {\r\n if (e.key === 'Enter' || e.key === ' ') {\r\n column.sortable && props.sortByColumn(column);\r\n }\r\n }}\r\n aria-selected={column.key === props.sortProps?.column && !!props.sortProps?.direction ? true : undefined}\r\n aria-sort={column.key === props.sortProps?.column && !!props.sortProps?.direction ? (props.sortProps?.direction == 'asc' ? 'ascending' : 'descending') : undefined}\r\n style={{ width: column.width }}\r\n tabIndex={column.sortable && !props.showLoadingIndicator ? 0 : -1}\r\n className={`${!!column.sortable ? 'sortable' : ''} ${column.key === props.sortProps?.column && !!props.sortProps?.direction ? 'sorted' : ''} ${\r\n column.justify || ''\r\n }`}>\r\n <StyledTableHeaderColumnContent>\r\n <ColumnLabel>{column.name}</ColumnLabel>\r\n {column.key === props.sortProps?.column && (\r\n <StyledTableHeaderColumnSortDirection>\r\n {props.sortProps?.direction === 'asc' ? <SystemIcons.ArrowLineUp size={'20px'} /> : <SystemIcons.ArrowLineDown size={'20px'} />}\r\n </StyledTableHeaderColumnSortDirection>\r\n )}\r\n </StyledTableHeaderColumnContent>\r\n </StyledTableHeaderColumn>\r\n ))}\r\n </StyledTableHeaderColumns>\r\n </StyledTableHeaderRow>\r\n <StyledTableBody>\r\n {props.currentPageRows.length > 0 ? (\r\n props.currentPageRows.map((row: any, index: number) => (\r\n <StyledTableBodyRow\r\n key={`row_${index}`}\r\n className={`${props.selectable ? 'selectable' : ''} ${isSelected(row) ? 'selected' : ''}`}\r\n onClick={() => props.onRowClick && props.onRowClick(row)}\r\n onMouseDown={defaultOnMouseDownHandler}\r\n onKeyPress={(e) => {\r\n if (e.key === 'Enter') {\r\n props.onRowClick && props.onRowClick(row);\r\n }\r\n }}\r\n tabIndex={props.selectable && !props.showLoadingIndicator ? 0 : undefined}\r\n data-testid=\"TestTableDataRow\">\r\n {props.multiSelect && (\r\n <StyledTableCell>\r\n <StyledTableCellContent>\r\n <Checkbox selected={isSelected(row)} />\r\n </StyledTableCellContent>\r\n </StyledTableCell>\r\n )}\r\n {props.columns.map((column: TableColumn) => (\r\n <StyledTableCell key={`row_${index}_${column.key}`} style={{ maxWidth: column.width }} title={column.shortenText ? `${row[column.key]} \\n ${column.noteKey ? row[column.noteKey!] : ''}` : ''}>\r\n <StyledTableCellContent\r\n withNote={Boolean(column.noteKey)}\r\n className={`${column.shortenText ? `truncate-text` : ''} ${column.justify || ''}`}\r\n style={{\r\n color: column.colorFn && column.colorFn(row, column.key),\r\n }}>\r\n {renderCellBody(column, row)}\r\n </StyledTableCellContent>\r\n </StyledTableCell>\r\n ))}\r\n </StyledTableBodyRow>\r\n ))\r\n ) : (\r\n <StyledTableNoRowsLabelRow data-testid=\"TestTableNoDataRow\">\r\n <StyledTableCell colSpan={props.columns.length + (props.multiSelect ? 1 : 0)}>\r\n <StyledTableCellContent className={'center'}>{props.noRowsLabel ?? 'There are no rows to display'}</StyledTableCellContent>\r\n </StyledTableCell>\r\n </StyledTableNoRowsLabelRow>\r\n )}\r\n </StyledTableBody>\r\n </StyledTable>\r\n </StyledTableBodyWrapper>\r\n );\r\n};\r\nexport default TableBody;\r\n"],"mappings":";;;;;;;AACA,SAASA,MAAM,QAAQ,WAAW;AAClC,SAASC,IAAI,QAAQ,UAAU;AAC/B,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,QAAQ,QAAQ,gBAAgB;AAEzC,OAA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I;YAA8B,CAAyB;UAAC,CAC5G;QAAC,CACO;MAC5B,CACc,CAAC;IAAA,CACP;EAAC,CACQ,CAAC;AAE7B,CAAC;AAACF,SAAA,CAAAwG,SAAA;EAhNAV,eAAe,EAAAW,GAAA,CAAAC,OAAA,CAAAD,GAAA,CAAAE,GAAA,EAAAC,UAAA;EACfV,UAAU,EAAAO,GAAA,CAAAI,IAAA;EACV5D,QAAQ,EAAAwD,GAAA,CAAAE,GAAA;EACRvB,YAAY,EAAAqB,GAAA,CAAAI,IAAA,CAAAD,UAAA;EACZrC,gBAAgB,EAAAkC,GAAA,CAAAI,IAAA,CAAAD,UAAA;EAChBzC,cAAc,EAAAsC,GAAA,CAAAK,KAAA,EAAE,KAAK,EAAG,MAAM,EAAG,MAAM,GAAAF;AAAA;AA4MzC,eAAe5G,SAAS","ignoreList":[]}
@@ -67,6 +67,7 @@ var TableFooter = function TableFooter(props) {
67
67
  },
68
68
  disabled: props.from === 1 || props.showLoadingIndicator,
69
69
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.SystemIcons.ChevronLeft, {
70
+ "aria-label": "Previous",
70
71
  size: "24",
71
72
  color: _styles.COLORS.getColor('neutral_600', theme)
72
73
  })
@@ -78,6 +79,7 @@ var TableFooter = function TableFooter(props) {
78
79
  },
79
80
  disabled: props.to === props.total || props.showLoadingIndicator,
80
81
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.SystemIcons.ChevronRight, {
82
+ "aria-label": "Next",
81
83
  size: "24",
82
84
  color: _styles.COLORS.getColor('neutral_600', theme)
83
85
  })
@@ -1 +1 @@
1
- {"version":3,"file":"TableFooter.cjs","names":["_react","_interopRequireDefault","require","_Dropdown","_Button","_icons","_styles","_TableStyles","_common","_styledComponents","_jsxRuntime","TableFooter","props","_props$rowsPerPageLab","_props$showMoreLabel","_props$showFewerLabel","theme","useTheme","rowsPerPageValues","value","dropDownText","concat","rowsPerPageLabel","rowsPerPage","jsxs","StyledTableFooter","children","accordion","StyledTableFooterCollapseButton","onClick","setIsCollapsed","isCollapsed","onMouseDown","defaultOnMouseDownHandler","disabled","rows","length","Fragment","showMoreLabel","jsx","SystemIcons","ArrowDropDown","showFewerLabel","ArrowDropUp","StyledTableFooterContent","DropdownButton","type","items","showLoadingIndicator","onRowsPerPageChange","label","keepLabel","StyledTableFooterCurrentInfo","total","from","to","StyledTableFooterControls","IconButton","variant","shape","action","prevPage","ChevronLeft","size","color","COLORS","getColor","nextPage","ChevronRight","propTypes","_propTypes","func","isRequired","number","bool","_default","exports"],"sources":["../../src/Table/TableFooter.tsx"],"sourcesContent":["import React from 'react';\r\nimport {TableProps} from './TableTypes';\r\nimport {DropdownButton, DropdownItem} from '../Dropdown';\r\nimport {IconButton} from '../Button';\r\nimport { SystemIcons} from '../icons';\r\nimport {COLORS} from '../styles';\r\nimport {\r\n StyledTableFooter, StyledTableFooterCollapseButton,\r\n StyledTableFooterContent,\r\n StyledTableFooterControls,\r\n StyledTableFooterCurrentInfo\r\n} from './TableStyles';\r\nimport {defaultOnMouseDownHandler} from '../common';\r\nimport { useTheme } from 'styled-components';\r\n\r\n\r\ninterface TableFooterProps extends TableProps {\r\n onRowsPerPageChange: (value: number) => void;\r\n rowsPerPage: number;\r\n from?: number;\r\n to?: number;\r\n total?: number;\r\n nextPage: () => void;\r\n prevPage: () => void;\r\n setIsCollapsed: (isCollapsed: boolean) => void;\r\n isCollapsed: boolean;\r\n}\r\n\r\nconst TableFooter: React.FunctionComponent<TableFooterProps> = (props) => {\r\n const theme = useTheme();\r\n const rowsPerPageValues: DropdownItem[] = [{value: '10'}, {value: '20'}, {value: '50'}, {value: '100'}];\r\n\r\n const dropDownText = `${props.rowsPerPageLabel ?? 'Rows per page'} : ${props.rowsPerPage}`;\r\n\r\n return (\r\n <StyledTableFooter data-testid=\"TestTableFooterRow\">\r\n {\r\n props.accordion &&\r\n <StyledTableFooterCollapseButton onClick={() => props.setIsCollapsed(!props.isCollapsed)}\r\n onMouseDown={defaultOnMouseDownHandler}\r\n disabled={props.isCollapsed && props.rows.length <= props.rowsPerPage}>\r\n {\r\n props.isCollapsed &&\r\n <>\r\n <span>{props.showMoreLabel ?? 'Show more'} ({props.rows.length - props.rowsPerPage})</span>\r\n <SystemIcons.ArrowDropDown/>\r\n </>\r\n }\r\n {\r\n !props.isCollapsed &&\r\n <>\r\n <span>{props.showFewerLabel ?? 'Show fewer'}</span>\r\n <SystemIcons.ArrowDropUp/>\r\n </>\r\n }\r\n </StyledTableFooterCollapseButton>\r\n }\r\n {\r\n !props.accordion &&\r\n <StyledTableFooterContent>\r\n <DropdownButton\r\n type={'text'}\r\n items={rowsPerPageValues}\r\n disabled={props.showLoadingIndicator}\r\n value={[`${props.rowsPerPage}`]}\r\n onClick={(value) => props.onRowsPerPageChange(+value[0])}\r\n label={dropDownText}\r\n keepLabel={true}\r\n />\r\n <StyledTableFooterCurrentInfo>\r\n {props.total === 0 ? 0 : props.from}-{props.to} of {props.total}\r\n </StyledTableFooterCurrentInfo>\r\n <StyledTableFooterControls>\r\n <IconButton variant=\"secondary\" shape=\"circular\" action={() => props.prevPage()}\r\n disabled={props.from === 1 || props.showLoadingIndicator}>\r\n <SystemIcons.ChevronLeft size=\"24\" color={COLORS.getColor('neutral_600', theme)}/>\r\n </IconButton>\r\n <IconButton variant=\"secondary\" shape=\"circular\" action={() => props.nextPage()}\r\n disabled={props.to === props.total || props.showLoadingIndicator}>\r\n <SystemIcons.ChevronRight size=\"24\" color={COLORS.getColor('neutral_600', theme)}/>\r\n </IconButton>\r\n </StyledTableFooterControls>\r\n </StyledTableFooterContent>\r\n }\r\n </StyledTableFooter>\r\n );\r\n};\r\n\r\n\r\nexport default TableFooter;\r\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,SAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ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L,IAAI,EAAC,IAAI;YAACC,KAAK,EAAEC,cAAM,CAACC,QAAQ,CAAC,aAAa,EAAElD,KAAK;UAAE,CAAC;QAAC,CACzE,CAAC;MAAA,CACY,CAAC;IAAA,CACJ,CAAC;EAAA,CAEhB,CAAC;AAExB,CAAC;AAACL,WAAA,CAAA0D,SAAA;EArEApB,mBAAmB,EAAAqB,UAAA,YAAAC,IAAA,CAAAC,UAAA;EACnBjD,WAAW,EAAA+C,UAAA,YAAAG,MAAA,CAAAD,UAAA;EACXlB,IAAI,EAAAgB,UAAA,YAAAG,MAAA;EACJlB,EAAE,EAAAe,UAAA,YAAAG,MAAA;EACFpB,KAAK,EAAAiB,UAAA,YAAAG,MAAA;EACLN,QAAQ,EAAAG,UAAA,YAAAC,IAAA,CAAAC,UAAA;EACRX,QAAQ,EAAAS,UAAA,YAAAC,IAAA,CAAAC,UAAA;EACR1C,cAAc,EAAAwC,UAAA,YAAAC,IAAA,CAAAC,UAAA;EACdzC,WAAW,EAAAuC,UAAA,YAAAI,IAAA,CAAAF;AAAA;AAAA,IAAAG,QAAA,GAgEEhE,WAAW;AAAAiE,OAAA,cAAAD,QAAA","ignoreList":[]}
1
+ {"version":3,"file":"TableFooter.cjs","names":["_react","_interopRequireDefault","require","_Dropdown","_Button","_icons","_styles","_TableStyles","_common","_styledComponents","_jsxRuntime","TableFooter","props","_props$rowsPerPageLab","_props$showMoreLabel","_props$showFewerLabel","theme","useTheme","rowsPerPageValues","value","dropDownText","concat","rowsPerPageLabel","rowsPerPage","jsxs","StyledTableFooter","children","accordion","StyledTableFooterCollapseButton","onClick","setIsCollapsed","isCollapsed","onMouseDown","defaultOnMouseDownHandler","disabled","rows","length","Fragment","showMoreLabel","jsx","SystemIcons","ArrowDropDown","showFewerLabel","ArrowDropUp","StyledTableFooterContent","DropdownButton","type","items","showLoadingIndicator","onRowsPerPageChange","label","keepLabel","StyledTableFooterCurrentInfo","total","from","to","StyledTableFooterControls","IconButton","variant","shape","action","prevPage","ChevronLeft","size","color","COLORS","getColor","nextPage","ChevronRight","propTypes","_propTypes","func","isRequired","number","bool","_default","exports"],"sources":["../../src/Table/TableFooter.tsx"],"sourcesContent":["import React from 'react';\r\nimport {TableProps} from './TableTypes';\r\nimport {DropdownButton, DropdownItem} from '../Dropdown';\r\nimport {IconButton} from '../Button';\r\nimport { SystemIcons} from '../icons';\r\nimport {COLORS} from '../styles';\r\nimport {\r\n StyledTableFooter, StyledTableFooterCollapseButton,\r\n StyledTableFooterContent,\r\n StyledTableFooterControls,\r\n StyledTableFooterCurrentInfo\r\n} from './TableStyles';\r\nimport {defaultOnMouseDownHandler} from '../common';\r\nimport { useTheme } from 'styled-components';\r\n\r\n\r\ninterface TableFooterProps extends TableProps {\r\n onRowsPerPageChange: (value: number) => void;\r\n rowsPerPage: number;\r\n from?: number;\r\n to?: number;\r\n total?: number;\r\n nextPage: () => void;\r\n prevPage: () => void;\r\n setIsCollapsed: (isCollapsed: boolean) => void;\r\n isCollapsed: boolean;\r\n}\r\n\r\nconst TableFooter: React.FunctionComponent<TableFooterProps> = (props) => {\r\n const theme = useTheme();\r\n const rowsPerPageValues: DropdownItem[] = [{value: '10'}, {value: '20'}, {value: '50'}, {value: '100'}];\r\n\r\n const dropDownText = `${props.rowsPerPageLabel ?? 'Rows per page'} : ${props.rowsPerPage}`;\r\n\r\n return (\r\n <StyledTableFooter data-testid=\"TestTableFooterRow\">\r\n {\r\n props.accordion &&\r\n <StyledTableFooterCollapseButton onClick={() => props.setIsCollapsed(!props.isCollapsed)}\r\n onMouseDown={defaultOnMouseDownHandler}\r\n disabled={props.isCollapsed && props.rows.length <= props.rowsPerPage}>\r\n {\r\n props.isCollapsed &&\r\n <>\r\n <span>{props.showMoreLabel ?? 'Show more'} ({props.rows.length - props.rowsPerPage})</span>\r\n <SystemIcons.ArrowDropDown/>\r\n </>\r\n }\r\n {\r\n !props.isCollapsed &&\r\n <>\r\n <span>{props.showFewerLabel ?? 'Show fewer'}</span>\r\n <SystemIcons.ArrowDropUp/>\r\n </>\r\n }\r\n </StyledTableFooterCollapseButton>\r\n }\r\n {\r\n !props.accordion &&\r\n <StyledTableFooterContent>\r\n <DropdownButton\r\n type={'text'}\r\n items={rowsPerPageValues}\r\n disabled={props.showLoadingIndicator}\r\n value={[`${props.rowsPerPage}`]}\r\n onClick={(value) => props.onRowsPerPageChange(+value[0])}\r\n label={dropDownText}\r\n keepLabel={true}\r\n />\r\n <StyledTableFooterCurrentInfo>\r\n {props.total === 0 ? 0 : props.from}-{props.to} of {props.total}\r\n </StyledTableFooterCurrentInfo>\r\n <StyledTableFooterControls>\r\n <IconButton variant=\"secondary\" shape=\"circular\" action={() => props.prevPage()}\r\n disabled={props.from === 1 || props.showLoadingIndicator}>\r\n <SystemIcons.ChevronLeft aria-label='Previous' size=\"24\" color={COLORS.getColor('neutral_600', theme)}/>\r\n </IconButton>\r\n <IconButton variant=\"secondary\" shape=\"circular\" action={() => props.nextPage()}\r\n disabled={props.to === props.total || props.showLoadingIndicator}>\r\n <SystemIcons.ChevronRight aria-label='Next' size=\"24\" color={COLORS.getColor('neutral_600', theme)}/>\r\n </IconButton>\r\n </StyledTableFooterControls>\r\n </StyledTableFooterContent>\r\n }\r\n </StyledTableFooter>\r\n );\r\n};\r\n\r\n\r\nexport default TableFooter;\r\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,SAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,YAAA,GAAAL,OAAA;AAMA,IAAAM,OAAA,GAAAN,OAAA;AACA,IAAAO,iBAAA,GAAAP,OAAA;AAA6C,IAAAQ,WAAA,GAAAR,OAAA;AAe7C,IAAMS,WAAsD,GAAG,SAAzDA,WAAsDA,CAAIC,KAAK,EAAK;EAAA,IAAAC,qBAAA,EAAAC,oBAAA,EAAAC,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;EArEApB,mBAAmB,EAAAqB,UAAA,YAAAC,IAAA,CAAAC,UAAA;EACnBjD,WAAW,EAAA+C,UAAA,YAAAG,MAAA,CAAAD,UAAA;EACXlB,IAAI,EAAAgB,UAAA,YAAAG,MAAA;EACJlB,EAAE,EAAAe,UAAA,YAAAG,MAAA;EACFpB,KAAK,EAAAiB,UAAA,YAAAG,MAAA;EACLN,QAAQ,EAAAG,UAAA,YAAAC,IAAA,CAAAC,UAAA;EACRX,QAAQ,EAAAS,UAAA,YAAAC,IAAA,CAAAC,UAAA;EACR1C,cAAc,EAAAwC,UAAA,YAAAC,IAAA,CAAAC,UAAA;EACdzC,WAAW,EAAAuC,UAAA,YAAAI,IAAA,CAAAF;AAAA;AAAA,IAAAG,QAAA,GAgEEhE,WAAW;AAAAiE,OAAA,cAAAD,QAAA","ignoreList":[]}
@@ -62,6 +62,7 @@ var TableFooter = function TableFooter(props) {
62
62
  },
63
63
  disabled: props.from === 1 || props.showLoadingIndicator,
64
64
  children: /*#__PURE__*/_jsx(SystemIcons.ChevronLeft, {
65
+ "aria-label": "Previous",
65
66
  size: "24",
66
67
  color: COLORS.getColor('neutral_600', theme)
67
68
  })
@@ -73,6 +74,7 @@ var TableFooter = function TableFooter(props) {
73
74
  },
74
75
  disabled: props.to === props.total || props.showLoadingIndicator,
75
76
  children: /*#__PURE__*/_jsx(SystemIcons.ChevronRight, {
77
+ "aria-label": "Next",
76
78
  size: "24",
77
79
  color: COLORS.getColor('neutral_600', theme)
78
80
  })
@@ -1 +1 @@
1
- {"version":3,"file":"TableFooter.js","names":["React","DropdownButton","IconButton","SystemIcons","COLORS","StyledTableFooter","StyledTableFooterCollapseButton","StyledTableFooterContent","StyledTableFooterControls","StyledTableFooterCurrentInfo","defaultOnMouseDownHandler","useTheme","jsxs","_jsxs","jsx","_jsx","Fragment","_Fragment","TableFooter","props","_props$rowsPerPageLab","_props$showMoreLabel","_props$showFewerLabel","theme","rowsPerPageValues","value","dropDownText","concat","rowsPerPageLabel","rowsPerPage","children","accordion","onClick","setIsCollapsed","isCollapsed","onMouseDown","disabled","rows","length","showMoreLabel","ArrowDropDown","showFewerLabel","ArrowDropUp","type","items","showLoadingIndicator","onRowsPerPageChange","label","keepLabel","total","from","to","variant","shape","action","prevPage","ChevronLeft","size","color","getColor","nextPage","ChevronRight","propTypes","_pt","func","isRequired","number","bool"],"sources":["../../src/Table/TableFooter.tsx"],"sourcesContent":["import React from 'react';\r\nimport {TableProps} from './TableTypes';\r\nimport {DropdownButton, DropdownItem} from '../Dropdown';\r\nimport {IconButton} from '../Button';\r\nimport { SystemIcons} from '../icons';\r\nimport {COLORS} from '../styles';\r\nimport {\r\n StyledTableFooter, StyledTableFooterCollapseButton,\r\n StyledTableFooterContent,\r\n StyledTableFooterControls,\r\n StyledTableFooterCurrentInfo\r\n} from './TableStyles';\r\nimport {defaultOnMouseDownHandler} from '../common';\r\nimport { useTheme } from 'styled-components';\r\n\r\n\r\ninterface TableFooterProps extends TableProps {\r\n onRowsPerPageChange: (value: number) => void;\r\n rowsPerPage: number;\r\n from?: number;\r\n to?: number;\r\n total?: number;\r\n nextPage: () => void;\r\n prevPage: () => void;\r\n setIsCollapsed: (isCollapsed: boolean) => void;\r\n isCollapsed: boolean;\r\n}\r\n\r\nconst TableFooter: React.FunctionComponent<TableFooterProps> = (props) => {\r\n const theme = useTheme();\r\n const rowsPerPageValues: DropdownItem[] = [{value: '10'}, {value: '20'}, {value: '50'}, {value: '100'}];\r\n\r\n const dropDownText = `${props.rowsPerPageLabel ?? 'Rows per page'} : ${props.rowsPerPage}`;\r\n\r\n return (\r\n <StyledTableFooter data-testid=\"TestTableFooterRow\">\r\n {\r\n props.accordion &&\r\n <StyledTableFooterCollapseButton onClick={() => props.setIsCollapsed(!props.isCollapsed)}\r\n onMouseDown={defaultOnMouseDownHandler}\r\n disabled={props.isCollapsed && props.rows.length <= props.rowsPerPage}>\r\n {\r\n props.isCollapsed &&\r\n <>\r\n <span>{props.showMoreLabel ?? 'Show more'} ({props.rows.length - props.rowsPerPage})</span>\r\n <SystemIcons.ArrowDropDown/>\r\n </>\r\n }\r\n {\r\n !props.isCollapsed &&\r\n <>\r\n <span>{props.showFewerLabel ?? 'Show fewer'}</span>\r\n <SystemIcons.ArrowDropUp/>\r\n </>\r\n }\r\n </StyledTableFooterCollapseButton>\r\n }\r\n {\r\n !props.accordion &&\r\n <StyledTableFooterContent>\r\n <DropdownButton\r\n type={'text'}\r\n items={rowsPerPageValues}\r\n disabled={props.showLoadingIndicator}\r\n value={[`${props.rowsPerPage}`]}\r\n onClick={(value) => props.onRowsPerPageChange(+value[0])}\r\n label={dropDownText}\r\n keepLabel={true}\r\n />\r\n <StyledTableFooterCurrentInfo>\r\n {props.total === 0 ? 0 : props.from}-{props.to} of {props.total}\r\n </StyledTableFooterCurrentInfo>\r\n <StyledTableFooterControls>\r\n <IconButton variant=\"secondary\" shape=\"circular\" action={() => props.prevPage()}\r\n disabled={props.from === 1 || props.showLoadingIndicator}>\r\n <SystemIcons.ChevronLeft size=\"24\" color={COLORS.getColor('neutral_600', theme)}/>\r\n </IconButton>\r\n <IconButton variant=\"secondary\" shape=\"circular\" action={() => props.nextPage()}\r\n disabled={props.to === props.total || props.showLoadingIndicator}>\r\n <SystemIcons.ChevronRight size=\"24\" color={COLORS.getColor('neutral_600', theme)}/>\r\n </IconButton>\r\n </StyledTableFooterControls>\r\n </StyledTableFooterContent>\r\n }\r\n </StyledTableFooter>\r\n );\r\n};\r\n\r\n\r\nexport default TableFooter;\r\n"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAAQC,cAAc,QAAqB,aAAa;AACxD,SAAQC,UAAU,QAAO,WAAW;AACpC,SAASC,WAAW,QAAO,UAAU;AACrC,SAAQC,MAAM,QAAO,WAAW;AAChC,SACEC,iBAAiB,EAAEC,+BAA+B,EAClDC,wBAAwB,EACxBC,yBAAyB,EACzBC,4BAA4B,QACvB,eAAe;AACtB,SAAQC,yBAAyB,QAAO,WAAW;A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;EACRhC,cAAc,EAAA8B,GAAA,CAAAC,IAAA,CAAAC,UAAA;EACd/B,WAAW,EAAA6B,GAAA,CAAAI,IAAA,CAAAF;AAAA;AAgEb,eAAe/C,WAAW","ignoreList":[]}
1
+ {"version":3,"file":"TableFooter.js","names":["React","DropdownButton","IconButton","SystemIcons","COLORS","StyledTableFooter","StyledTableFooterCollapseButton","StyledTableFooterContent","StyledTableFooterControls","StyledTableFooterCurrentInfo","defaultOnMouseDownHandler","useTheme","jsxs","_jsxs","jsx","_jsx","Fragment","_Fragment","TableFooter","props","_props$rowsPerPageLab","_props$showMoreLabel","_props$showFewerLabel","theme","rowsPerPageValues","value","dropDownText","concat","rowsPerPageLabel","rowsPerPage","children","accordion","onClick","setIsCollapsed","isCollapsed","onMouseDown","disabled","rows","length","showMoreLabel","ArrowDropDown","showFewerLabel","ArrowDropUp","type","items","showLoadingIndicator","onRowsPerPageChange","label","keepLabel","total","from","to","variant","shape","action","prevPage","ChevronLeft","size","color","getColor","nextPage","ChevronRight","propTypes","_pt","func","isRequired","number","bool"],"sources":["../../src/Table/TableFooter.tsx"],"sourcesContent":["import React from 'react';\r\nimport {TableProps} from './TableTypes';\r\nimport {DropdownButton, DropdownItem} from '../Dropdown';\r\nimport {IconButton} from '../Button';\r\nimport { SystemIcons} from '../icons';\r\nimport {COLORS} from '../styles';\r\nimport {\r\n StyledTableFooter, StyledTableFooterCollapseButton,\r\n StyledTableFooterContent,\r\n StyledTableFooterControls,\r\n StyledTableFooterCurrentInfo\r\n} from './TableStyles';\r\nimport {defaultOnMouseDownHandler} from '../common';\r\nimport { useTheme } from 'styled-components';\r\n\r\n\r\ninterface TableFooterProps extends TableProps {\r\n onRowsPerPageChange: (value: number) => void;\r\n rowsPerPage: number;\r\n from?: number;\r\n to?: number;\r\n total?: number;\r\n nextPage: () => void;\r\n prevPage: () => void;\r\n setIsCollapsed: (isCollapsed: boolean) => void;\r\n isCollapsed: boolean;\r\n}\r\n\r\nconst TableFooter: React.FunctionComponent<TableFooterProps> = (props) => {\r\n const theme = useTheme();\r\n const rowsPerPageValues: DropdownItem[] = [{value: '10'}, {value: '20'}, {value: '50'}, {value: '100'}];\r\n\r\n const dropDownText = `${props.rowsPerPageLabel ?? 'Rows per page'} : ${props.rowsPerPage}`;\r\n\r\n return (\r\n <StyledTableFooter data-testid=\"TestTableFooterRow\">\r\n {\r\n props.accordion &&\r\n <StyledTableFooterCollapseButton onClick={() => props.setIsCollapsed(!props.isCollapsed)}\r\n onMouseDown={defaultOnMouseDownHandler}\r\n disabled={props.isCollapsed && props.rows.length <= props.rowsPerPage}>\r\n {\r\n props.isCollapsed &&\r\n <>\r\n <span>{props.showMoreLabel ?? 'Show more'} ({props.rows.length - props.rowsPerPage})</span>\r\n <SystemIcons.ArrowDropDown/>\r\n </>\r\n }\r\n {\r\n !props.isCollapsed &&\r\n <>\r\n <span>{props.showFewerLabel ?? 'Show fewer'}</span>\r\n <SystemIcons.ArrowDropUp/>\r\n </>\r\n }\r\n </StyledTableFooterCollapseButton>\r\n }\r\n {\r\n !props.accordion &&\r\n <StyledTableFooterContent>\r\n <DropdownButton\r\n type={'text'}\r\n items={rowsPerPageValues}\r\n disabled={props.showLoadingIndicator}\r\n value={[`${props.rowsPerPage}`]}\r\n onClick={(value) => props.onRowsPerPageChange(+value[0])}\r\n label={dropDownText}\r\n keepLabel={true}\r\n />\r\n <StyledTableFooterCurrentInfo>\r\n {props.total === 0 ? 0 : props.from}-{props.to} of {props.total}\r\n </StyledTableFooterCurrentInfo>\r\n <StyledTableFooterControls>\r\n <IconButton variant=\"secondary\" shape=\"circular\" action={() => props.prevPage()}\r\n disabled={props.from === 1 || props.showLoadingIndicator}>\r\n <SystemIcons.ChevronLeft aria-label='Previous' size=\"24\" color={COLORS.getColor('neutral_600', theme)}/>\r\n </IconButton>\r\n <IconButton variant=\"secondary\" shape=\"circular\" action={() => props.nextPage()}\r\n disabled={props.to === props.total || props.showLoadingIndicator}>\r\n <SystemIcons.ChevronRight aria-label='Next' size=\"24\" color={COLORS.getColor('neutral_600', theme)}/>\r\n </IconButton>\r\n </StyledTableFooterControls>\r\n </StyledTableFooterContent>\r\n }\r\n </StyledTableFooter>\r\n );\r\n};\r\n\r\n\r\nexport default TableFooter;\r\n"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAAQC,cAAc,QAAqB,aAAa;AACxD,SAAQC,UAAU,QAAO,WAAW;AACpC,SAASC,WAAW,QAAO,UAAU;AACrC,SAAQC,MAAM,QAAO,WAAW;AAChC,SACEC,iBAAiB,EAAEC,+BAA+B,EAClDC,wBAAwB,EACxBC,yBAAyB,EACzBC,4BAA4B,QACvB,eAAe;AACtB,SAAQC,yBAAyB,QAAO,WAAW;AACnD,SAASC,QAAQ,QAAQ,mBAAmB;AAAC,SAAAC,IAAA,IAAAC,KAAA;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAAA,SAAAC,QAAA,IAAAC,SAAA;AAe7C,IAAMC,WAAsD,GAAG,SAAzDA,WAAsDA,CAAIC,KAAK,EAAK;EAAA,IAAAC,qBAAA,EAAAC,oBAAA,EAAAC,qBAAA;EACxE,IAAMC,KAAK,GAAGZ,QAAQ,CAAC,CAAC;EACxB,IAAMa,iBAAiC,GAAG,CAAC;IAACC,KAAK,EAAE;EAAI,CAAC,EAAE;IAACA,KAAK,EAAE;EAAI,CAAC,EAAE;IAACA,KAAK,EAAE;EAAI,CAAC,EAAE;IAACA,KAAK,EAAE;EAAK,CAAC,CAAC;EAEvG,IAAMC,YAAY,MAAAC,MAAA,EAAAP,qBAAA,GAAMD,KAAK,CAACS,gBAAgB,cAAAR,qBAAA,cAAAA,qBAAA,GAAI,eAAe,SAAAO,MAAA,CAAMR,KAAK,CAACU,WAAW,CAAE;EAE1F,oBACEhB,KAAA,CAACR,iBAAiB;IAAC,eAAY,oBAAoB;IAAAyB,QAAA,GAE3CX,KAAK,CAACY,SAAS,iBACflB,KAAA,CAACP,+BAA+B;MAAC0B,OAAO,EAAE,SAA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AQ,CAAC,aAAa,EAAEpC,KAAK;UAAE,CAAC;QAAC,CAC3F,CAAC;MAAA,CACY,CAAC;IAAA,CACJ,CAAC;EAAA,CAEhB,CAAC;AAExB,CAAC;AAACL,WAAA,CAAA4C,SAAA;EArEAhB,mBAAmB,EAAAiB,GAAA,CAAAC,IAAA,CAAAC,UAAA;EACnBpC,WAAW,EAAAkC,GAAA,CAAAG,MAAA,CAAAD,UAAA;EACXf,IAAI,EAAAa,GAAA,CAAAG,MAAA;EACJf,EAAE,EAAAY,GAAA,CAAAG,MAAA;EACFjB,KAAK,EAAAc,GAAA,CAAAG,MAAA;EACLN,QAAQ,EAAAG,GAAA,CAAAC,IAAA,CAAAC,UAAA;EACRV,QAAQ,EAAAQ,GAAA,CAAAC,IAAA,CAAAC,UAAA;EACRhC,cAAc,EAAA8B,GAAA,CAAAC,IAAA,CAAAC,UAAA;EACd/B,WAAW,EAAA6B,GAAA,CAAAI,IAAA,CAAAF;AAAA;AAgEb,eAAe/C,WAAW","ignoreList":[]}
@@ -6,6 +6,8 @@ Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
8
  exports.UpperCaseTypography = exports.UpperCase = exports.TypographyBase = exports.Typography = exports.QuoteTypography = exports.Quote = exports.NoteTypography = exports.Note = exports.ComponentXXSStyling = exports.ComponentXXS = exports.ComponentXSStyling = exports.ComponentXS = exports.ComponentXLStyling = exports.ComponentXL = exports.ComponentTextStyle = exports.ComponentSStyling = exports.ComponentS = exports.ComponentResponsive = exports.ComponentMStyling = exports.ComponentM = exports.ComponentLStyling = exports.ComponentL = void 0;
9
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
10
+ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
9
11
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
10
12
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
13
  var _react = _interopRequireDefault(require("react"));
@@ -13,9 +15,18 @@ var _styledComponents = _interopRequireWildcard(require("styled-components"));
13
15
  var _ = require(".");
14
16
  var _types = require("../types");
15
17
  var _jsxRuntime = require("react/jsx-runtime");
18
+ var _excluded = ["color", "textStyle", "children", "className"],
19
+ _excluded2 = ["color", "textStyle", "children", "className"],
20
+ _excluded3 = ["color", "textStyle", "children", "className"],
21
+ _excluded4 = ["color", "textStyle", "children", "className"],
22
+ _excluded5 = ["color", "textStyle", "children", "className"],
23
+ _excluded6 = ["color", "textStyle", "children", "className"],
24
+ _excluded7 = ["color", "textStyle", "children", "size", "width"];
16
25
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
17
26
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
18
27
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
28
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
29
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
19
30
  var TypographyBase = (0, _styledComponents["default"])('div')(function (_ref) {
20
31
  var $color = _ref.$color,
21
32
  lineHeight = _ref.lineHeight,
@@ -71,18 +82,20 @@ var ComponentXL = function ComponentXL(_ref2) {
71
82
  var color = _ref2.color,
72
83
  textStyle = _ref2.textStyle,
73
84
  children = _ref2.children,
74
- className = _ref2.className;
85
+ className = _ref2.className,
86
+ rest = (0, _objectWithoutProperties2["default"])(_ref2, _excluded);
75
87
  var fontWeight = componentFontWeight(textStyle);
76
88
  var fontStyle = componentFontStyle(textStyle);
77
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(TypographyBase, {
89
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(TypographyBase, _objectSpread(_objectSpread({
78
90
  className: className,
79
91
  $color: color,
80
92
  lineHeight: 28,
81
93
  $fontSize: 24,
82
94
  $fontWeight: fontWeight,
83
- $fontStyle: fontStyle,
95
+ $fontStyle: fontStyle
96
+ }, rest), {}, {
84
97
  children: children
85
- });
98
+ }));
86
99
  };
87
100
  exports.ComponentXL = ComponentXL;
88
101
  ComponentXL.propTypes = {
@@ -99,18 +112,20 @@ var ComponentL = function ComponentL(_ref3) {
99
112
  var color = _ref3.color,
100
113
  textStyle = _ref3.textStyle,
101
114
  children = _ref3.children,
102
- className = _ref3.className;
115
+ className = _ref3.className,
116
+ rest = (0, _objectWithoutProperties2["default"])(_ref3, _excluded2);
103
117
  var fontWeight = componentFontWeight(textStyle);
104
118
  var fontStyle = componentFontStyle(textStyle);
105
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(TypographyBase, {
119
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(TypographyBase, _objectSpread(_objectSpread({
106
120
  className: className,
107
121
  $color: color,
108
122
  lineHeight: 24,
109
123
  $fontSize: 20,
110
124
  $fontWeight: fontWeight,
111
- $fontStyle: fontStyle,
125
+ $fontStyle: fontStyle
126
+ }, rest), {}, {
112
127
  children: children
113
- });
128
+ }));
114
129
  };
115
130
  exports.ComponentL = ComponentL;
116
131
  ComponentL.propTypes = {
@@ -127,18 +142,20 @@ var ComponentM = function ComponentM(_ref4) {
127
142
  var color = _ref4.color,
128
143
  textStyle = _ref4.textStyle,
129
144
  children = _ref4.children,
130
- className = _ref4.className;
145
+ className = _ref4.className,
146
+ rest = (0, _objectWithoutProperties2["default"])(_ref4, _excluded3);
131
147
  var fontWeight = componentFontWeight(textStyle);
132
148
  var fontStyle = componentFontStyle(textStyle);
133
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(TypographyBase, {
149
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(TypographyBase, _objectSpread(_objectSpread({
134
150
  className: className,
135
151
  $color: color,
136
152
  lineHeight: 24,
137
153
  $fontSize: 18,
138
154
  $fontWeight: fontWeight,
139
- $fontStyle: fontStyle,
155
+ $fontStyle: fontStyle
156
+ }, rest), {}, {
140
157
  children: children
141
- });
158
+ }));
142
159
  };
143
160
  exports.ComponentM = ComponentM;
144
161
  ComponentM.propTypes = {
@@ -155,18 +172,20 @@ var ComponentS = function ComponentS(_ref5) {
155
172
  var color = _ref5.color,
156
173
  textStyle = _ref5.textStyle,
157
174
  children = _ref5.children,
158
- className = _ref5.className;
175
+ className = _ref5.className,
176
+ rest = (0, _objectWithoutProperties2["default"])(_ref5, _excluded4);
159
177
  var fontWeight = componentFontWeight(textStyle);
160
178
  var fontStyle = componentFontStyle(textStyle);
161
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(TypographyBase, {
179
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(TypographyBase, _objectSpread(_objectSpread({
162
180
  className: className,
163
181
  $color: color,
164
182
  lineHeight: 20,
165
183
  $fontSize: 16,
166
184
  $fontWeight: fontWeight,
167
- $fontStyle: fontStyle,
185
+ $fontStyle: fontStyle
186
+ }, rest), {}, {
168
187
  children: children
169
- });
188
+ }));
170
189
  };
171
190
  exports.ComponentS = ComponentS;
172
191
  ComponentS.propTypes = {
@@ -183,20 +202,22 @@ var ComponentXS = function ComponentXS(_ref6) {
183
202
  var color = _ref6.color,
184
203
  textStyle = _ref6.textStyle,
185
204
  children = _ref6.children,
186
- className = _ref6.className;
205
+ className = _ref6.className,
206
+ rest = (0, _objectWithoutProperties2["default"])(_ref6, _excluded5);
187
207
  var fontWeight = componentFontWeight(textStyle);
188
208
  var fontStyle = componentFontStyle(textStyle);
189
209
  var textTransform = componentTextTransformation(textStyle);
190
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(TypographyBase, {
210
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(TypographyBase, _objectSpread(_objectSpread({
191
211
  className: className,
192
212
  $color: color,
193
213
  lineHeight: 16,
194
214
  $fontSize: 14,
195
215
  $fontWeight: fontWeight,
196
216
  $fontStyle: fontStyle,
197
- textTransform: textTransform,
217
+ textTransform: textTransform
218
+ }, rest), {}, {
198
219
  children: children
199
- });
220
+ }));
200
221
  };
201
222
  exports.ComponentXS = ComponentXS;
202
223
  ComponentXS.propTypes = {
@@ -213,20 +234,22 @@ var ComponentXXS = function ComponentXXS(_ref7) {
213
234
  var color = _ref7.color,
214
235
  textStyle = _ref7.textStyle,
215
236
  children = _ref7.children,
216
- className = _ref7.className;
237
+ className = _ref7.className,
238
+ rest = (0, _objectWithoutProperties2["default"])(_ref7, _excluded6);
217
239
  var fontWeight = componentFontWeight(textStyle);
218
240
  var fontStyle = componentFontStyle(textStyle);
219
241
  var textTransform = componentTextTransformation(textStyle);
220
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(TypographyBase, {
242
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(TypographyBase, _objectSpread(_objectSpread({
221
243
  className: className,
222
244
  $color: color,
223
245
  lineHeight: 16,
224
246
  $fontSize: 12,
225
247
  $fontWeight: fontWeight,
226
248
  $fontStyle: fontStyle,
227
- textTransform: textTransform,
249
+ textTransform: textTransform
250
+ }, rest), {}, {
228
251
  children: children
229
- });
252
+ }));
230
253
  };
231
254
  exports.ComponentXXS = ComponentXXS;
232
255
  ComponentXXS.propTypes = {
@@ -240,7 +263,8 @@ var ComponentResponsive = function ComponentResponsive(_ref8) {
240
263
  textStyle = _ref8.textStyle,
241
264
  children = _ref8.children,
242
265
  size = _ref8.size,
243
- width = _ref8.width;
266
+ width = _ref8.width,
267
+ rest = (0, _objectWithoutProperties2["default"])(_ref8, _excluded7);
244
268
  var fontsize = size;
245
269
  if (!size) {
246
270
  if (width == -1) {
@@ -255,36 +279,36 @@ var ComponentResponsive = function ComponentResponsive(_ref8) {
255
279
  }
256
280
  switch (fontsize) {
257
281
  case _types.Size.XXSmall:
258
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(ComponentXXS, {
282
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(ComponentXXS, _objectSpread({
259
283
  color: color,
260
284
  textStyle: textStyle,
261
285
  children: children
262
- });
286
+ }, rest));
263
287
  case _types.Size.XSmall:
264
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(ComponentXS, {
288
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(ComponentXS, _objectSpread({
265
289
  color: color,
266
290
  textStyle: textStyle,
267
291
  children: children
268
- });
292
+ }, rest));
269
293
  case _types.Size.Small:
270
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(ComponentS, {
294
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(ComponentS, _objectSpread({
271
295
  color: color,
272
296
  textStyle: textStyle,
273
297
  children: children
274
- });
298
+ }, rest));
275
299
  case _types.Size.Medium:
276
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(ComponentM, {
300
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(ComponentM, _objectSpread({
277
301
  color: color,
278
302
  textStyle: textStyle,
279
303
  children: children
280
- });
304
+ }, rest));
281
305
  case _types.Size.Large:
282
306
  default:
283
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(ComponentL, {
307
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(ComponentL, _objectSpread({
284
308
  color: color,
285
309
  textStyle: textStyle,
286
310
  children: children
287
- });
311
+ }, rest));
288
312
  }
289
313
  };
290
314
  exports.ComponentResponsive = ComponentResponsive;
@@ -1 +1 @@
1
- {"version":3,"file":"typography.cjs","names":["_react","_interopRequireDefault","require","_styledComponents","_interopRequireWildcard","_","_types","_jsxRuntime","_templateObject","_templateObject2","_templateObject3","_templateObject4","_templateObject5","_templateObject6","_templateObject7","_templateObject8","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","TypographyBase","styled","_ref","$color","lineHeight","$fontSize","$fontWeight","$fontStyle","textTransform","textDecorationLine","fontSize","fontWeight","fontStyle","color","COLORS","black","exports","ComponentTextStyle","componentFontWeight","textStyle","Bold","UppercaseBold","componentFontStyle","Italic","componentTextTransformation","ComponentStyling","css","_taggedTemplateLiteral2","props","concat","getColor","theme","ComponentXLStyling","ComponentXL","_ref2","children","className","jsx","propTypes","_propTypes","string","oneOf","node","ComponentLStyling","ComponentL","_ref3","ComponentMStyling","ComponentM","_ref4","ComponentSStyling","ComponentS","_ref5","ComponentXSStyling","ComponentXS","_ref6","ComponentXXSStyling","ComponentXXS","_ref7","ComponentResponsive","_ref8","size","width","fontsize","Size","Medium","Small","Large","XXSmall","XSmall","Typography","QuoteTypography","NoteTypography","UpperCaseTypography","Note","p","Quote","UpperCase"],"sources":["../../src/styles/typography.tsx"],"sourcesContent":["import React from 'react';\r\nimport styled, {css} from 'styled-components';\r\nimport {COLORS} from '.';\r\nimport {Property} from 'csstype';\r\nimport {Size} from '../types';\r\n\r\ninterface ITypographyBase {\r\n $color?: string;\r\n lineHeight: number;\r\n $fontSize: number;\r\n $fontWeight: number;\r\n $fontStyle?: string;\r\n textTransform?: Property.TextTransform;\r\n textDecorationLine?: Property.TextDecorationLine;\r\n}\r\n\r\nexport const TypographyBase = styled('div')<ITypographyBase>(({\r\n $color,\r\n lineHeight,\r\n $fontSize,\r\n $fontWeight,\r\n $fontStyle,\r\n textTransform,\r\n textDecorationLine\r\n }) => ({\r\n fontSize: $fontSize,\r\n fontWeight: $fontWeight,\r\n lineHeight: lineHeight + 'px',\r\n textTransform: textTransform ? textTransform : 'none',\r\n textDecorationLine: textDecorationLine ? textDecorationLine : 'none',\r\n fontStyle: $fontStyle ? $fontStyle : 'normal',\r\n color: $color ? $color : COLORS.black,\r\n}));\r\n\r\nenum ComponentTextStyle {\r\n Regular = 1,\r\n Bold,\r\n Italic,\r\n UppercaseBold,\r\n}\r\n\r\ntype ComponentProps = {\r\n color?: string;\r\n className?: string;\r\n textStyle?: ComponentTextStyle;\r\n children?: React.ReactNode;\r\n};\r\n\r\nconst componentFontWeight = (textStyle?: ComponentTextStyle) => {\r\n let fontWeight = 400;\r\n if (textStyle === ComponentTextStyle.Bold || textStyle === ComponentTextStyle.UppercaseBold) {\r\n fontWeight = 700;\r\n }\r\n return fontWeight;\r\n};\r\n\r\nconst componentFontStyle = (textStyle?: ComponentTextStyle) => {\r\n let fontStyle = textStyle && textStyle === ComponentTextStyle.Italic ? 'italic' : '';\r\n return fontStyle;\r\n};\r\n\r\nconst componentTextTransformation = (textStyle?: ComponentTextStyle): Property.TextTransform => {\r\n let fontStyle: Property.TextTransform = textStyle && textStyle === ComponentTextStyle.UppercaseBold ? 'uppercase' : 'none';\r\n return fontStyle;\r\n};\r\n\r\nconst ComponentStyling = (fontSize: string, lineHeight: string, textStyle: ComponentTextStyle, color: string | undefined | null) => {\r\n return css`\r\n font-size: ${fontSize};\r\n font-weight: ${componentFontWeight(textStyle)};\r\n line-height: ${lineHeight};\r\n font-style: ${componentFontStyle(textStyle)};\r\n ${props => color === null ? '' : `color: ${color || COLORS.getColor('black', props.theme)};`}\r\n `;\r\n};\r\n\r\nconst ComponentXLStyling = (textStyle: ComponentTextStyle, color: string | null) => ComponentStyling('24px', '28px', textStyle, color);\r\nconst ComponentXL: React.FunctionComponent<ComponentProps> = ({color, textStyle, children, className}) => {\r\n let fontWeight = componentFontWeight(textStyle);\r\n let fontStyle = componentFontStyle(textStyle);\r\n return (\r\n <TypographyBase className={className} $color={color} lineHeight={28} $fontSize={24} $fontWeight={fontWeight}\r\n $fontStyle={fontStyle}>\r\n {children}\r\n </TypographyBase>\r\n );\r\n};\r\n\r\nconst ComponentLStyling = (textStyle: ComponentTextStyle, color: string | null) => ComponentStyling('20px', '24px', textStyle, color);\r\nconst ComponentL: React.FunctionComponent<ComponentProps> = ({color, textStyle, children, className}) => {\r\n let fontWeight = componentFontWeight(textStyle);\r\n let fontStyle = componentFontStyle(textStyle);\r\n return (\r\n <TypographyBase className={className} $color={color} lineHeight={24} $fontSize={20} $fontWeight={fontWeight}\r\n $fontStyle={fontStyle}>\r\n {children}\r\n </TypographyBase>\r\n );\r\n};\r\n\r\nconst ComponentMStyling = (textStyle: ComponentTextStyle, color: string | undefined | null) => ComponentStyling('18px', '24px', textStyle, color);\r\nconst ComponentM: React.FunctionComponent<ComponentProps> = ({color, textStyle, children, className}) => {\r\n let fontWeight = componentFontWeight(textStyle);\r\n let fontStyle = componentFontStyle(textStyle);\r\n return (\r\n <TypographyBase className={className} $color={color} lineHeight={24} $fontSize={18} $fontWeight={fontWeight}\r\n $fontStyle={fontStyle}>\r\n {children}\r\n </TypographyBase>\r\n );\r\n};\r\n\r\nconst ComponentSStyling = (textStyle: ComponentTextStyle, color: string | null) => ComponentStyling('16px', '20px', textStyle, color);\r\nconst ComponentS: React.FunctionComponent<ComponentProps> = ({color, textStyle, children, className}) => {\r\n let fontWeight = componentFontWeight(textStyle);\r\n let fontStyle = componentFontStyle(textStyle);\r\n return (\r\n <TypographyBase className={className} $color={color} lineHeight={20} $fontSize={16} $fontWeight={fontWeight}\r\n $fontStyle={fontStyle}>\r\n {children}\r\n </TypographyBase>\r\n );\r\n};\r\n\r\nconst ComponentXSStyling = (textStyle: ComponentTextStyle, color: string | null) => ComponentStyling('14px', '16px', textStyle, color);\r\nconst ComponentXS: React.FunctionComponent<ComponentProps> = ({color, textStyle, children, className}) => {\r\n let fontWeight = componentFontWeight(textStyle);\r\n let fontStyle = componentFontStyle(textStyle);\r\n let textTransform = componentTextTransformation(textStyle);\r\n return (\r\n <TypographyBase className={className} $color={color} lineHeight={16} $fontSize={14} $fontWeight={fontWeight}\r\n $fontStyle={fontStyle} textTransform={textTransform}>\r\n {children}\r\n </TypographyBase>\r\n );\r\n};\r\n\r\nconst ComponentXXSStyling = (textStyle: ComponentTextStyle, color: string | null) => ComponentStyling('12px', '16px', textStyle, color);\r\nconst ComponentXXS: React.FunctionComponent<ComponentProps> = ({color, textStyle, children, className}) => {\r\n let fontWeight = componentFontWeight(textStyle);\r\n let fontStyle = componentFontStyle(textStyle);\r\n let textTransform = componentTextTransformation(textStyle);\r\n return (\r\n <TypographyBase className={className} $color={color} lineHeight={16} $fontSize={12} $fontWeight={fontWeight}\r\n $fontStyle={fontStyle} textTransform={textTransform}>\r\n {children}\r\n </TypographyBase>\r\n );\r\n};\r\n\r\nconst ComponentResponsive: React.FunctionComponent<ComponentProps & { size?: Size; width: number }> = ({\r\n color,\r\n textStyle,\r\n children,\r\n size,\r\n width\r\n }) => {\r\n let fontsize = size;\r\n if (!size) {\r\n if (width == -1) {\r\n fontsize = Size.Medium;\r\n } else if (width < 768) {\r\n fontsize = Size.Small;\r\n } else if (width < 992) {\r\n fontsize = Size.Medium;\r\n } else {\r\n fontsize = Size.Large;\r\n }\r\n }\r\n switch (fontsize) {\r\n case Size.XXSmall:\r\n return <ComponentXXS color={color} textStyle={textStyle} children={children}/>;\r\n case Size.XSmall:\r\n return <ComponentXS color={color} textStyle={textStyle} children={children}/>;\r\n case Size.Small:\r\n return <ComponentS color={color} textStyle={textStyle} children={children}/>;\r\n case Size.Medium:\r\n return <ComponentM color={color} textStyle={textStyle} children={children}/>;\r\n case Size.Large:\r\n default:\r\n return <ComponentL color={color} textStyle={textStyle} children={children}/>;\r\n }\r\n};\r\n\r\nexport const Typography = css`\r\n html {\r\n font-size: 100%;\r\n }\r\n\r\n @media (min-width: 48rem) {\r\n html {\r\n font-size: 112.5%;\r\n }\r\n }\r\n\r\n @media (min-width: 80rem) {\r\n html {\r\n font-size: 125%;\r\n }\r\n }\r\n\r\n h1, h2, h3, h4, h5, h6 {\r\n font-weight: 700;\r\n line-height: 120%;\r\n margin: 0;\r\n }\r\n\r\n h1 {\r\n font-size: 3rem;\r\n }\r\n\r\n h2 {\r\n font-size: 2.5rem;\r\n }\r\n\r\n h3 {\r\n font-size: 2rem;\r\n }\r\n\r\n h4 {\r\n font-size: 1.75rem;\r\n }\r\n\r\n h5 {\r\n font-size: 1.5rem;\r\n }\r\n\r\n h6 {\r\n font-size: 1.25rem;\r\n }\r\n\r\n p {\r\n font-size: 1rem;\r\n line-height: 150%;\r\n margin: 0 0 0.5rem;\r\n }\r\n\r\n p:last-of-type {\r\n margin-bottom: 0;\r\n }\r\n\r\n\r\n h1, h2, h3, h4, h5, h6, p, span {\r\n max-width: 34rem;\r\n }\r\n\r\n :lang(ja-jp) {\r\n h1, h2, h3, h4, h5, h6, p, span {\r\n max-width: 30rem;\r\n }\r\n }\r\n\r\n :lang(ko-kr) {\r\n h1, h2, h3, h4, h5, h6, p, span {\r\n max-width: 30rem;\r\n }\r\n }\r\n\r\n :lang(zh-CN) {\r\n h1, h2, h3, h4, h5, h6, p, span {\r\n max-width: 30rem;\r\n }\r\n }\r\n`;\r\n\r\nexport const QuoteTypography = css`\r\n font-size: 1.5rem;\r\n line-height: 150%;\r\n margin-bottom: 0.75rem;\r\n`;\r\n\r\nexport const NoteTypography = css`\r\n font-size: 0.75rem;\r\n line-height: 150%;\r\n margin-bottom: 0.375rem;\r\n`;\r\n\r\nexport const UpperCaseTypography = css`\r\n font-size: 0.75rem;\r\n line-height: 150%;\r\n font-weight: 700;\r\n text-transform: uppercase;\r\n`;\r\n\r\nexport const Note = styled.p`\r\n ${NoteTypography}\r\n`;\r\n\r\nexport const Quote = styled.p`\r\n ${QuoteTypography}\r\n`;\r\n\r\nexport const UpperCase = styled.p`\r\n ${UpperCaseTypography}\r\n`;\r\n\r\nexport {\r\n ComponentTextStyle,\r\n ComponentXL,\r\n ComponentL,\r\n ComponentM,\r\n ComponentS,\r\n ComponentXS,\r\n ComponentXXS,\r\n ComponentResponsive\r\n};\r\nexport {\r\n ComponentXLStyling,\r\n ComponentLStyling,\r\n ComponentMStyling,\r\n ComponentSStyling,\r\n ComponentXSStyling,\r\n ComponentXXSStyling\r\n};\r\n"],"mappings":";;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAC,uBAAA,CAAAF,OAAA;AACA,IAAAG,CAAA,GAAAH,OAAA;AAEA,IAAAI,MAAA,GAAAJ,OAAA;AAA8B,IAAAK,WAAA,GAAAL,OAAA;AAAA,IAAAM,eAAA,EAAAC,gBAAA,EAAAC,gBAAA,EAAAC,gBAAA,EAAAC,gBAAA,EAAAC,gBAAA,EAAAC,gBAAA,EAAAC,gBAAA;AAAA,SAAAC,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAb,wBAAAa,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,gBAAAK,OAAA,CAAAL,CAAA,0BAAAA,CAAA,sBAAAA,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KA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MC,eAAe,OAAG5C,qBAAG,EAAApD,gBAAA,KAAAA,gBAAA,OAAAqD,uBAAA,6FAIjC;AAACX,OAAA,CAAAsD,eAAA,GAAAA,eAAA;AAEK,IAAMC,cAAc,OAAG7C,qBAAG,EAAAnD,gBAAA,KAAAA,gBAAA,OAAAoD,uBAAA,+FAIhC;AAACX,OAAA,CAAAuD,cAAA,GAAAA,cAAA;AAEK,IAAMC,mBAAmB,OAAG9C,qBAAG,EAAAlD,gBAAA,KAAAA,gBAAA,OAAAmD,uBAAA,sHAKrC;AAACX,OAAA,CAAAwD,mBAAA,GAAAA,mBAAA;AAEK,IAAMC,IAAI,GAAGxE,4BAAM,CAACyE,CAAC,CAAAjG,gBAAA,KAAAA,gBAAA,OAAAkD,uBAAA,+BACxB4C,cAAc,CACjB;AAACvD,OAAA,CAAAyD,IAAA,GAAAA,IAAA;AAEK,IAAME,KAAK,GAAG1E,4BAAM,CAACyE,CAAC,CAAAhG,gBAAA,KAAAA,gBAAA,OAAAiD,uBAAA,+BACzB2C,eAAe,CAClB;AAACtD,OAAA,CAAA2D,KAAA,GAAAA,KAAA;AAEK,IAAMC,SAAS,GAAG3E,4BAAM,CAACyE,CAAC,CAAA/F,gBAAA,KAAAA,gBAAA,OAAAgD,uBAAA,+BAC7B6C,mBAAmB,CACtB;AAACxD,OAAA,CAAA4D,SAAA,GAAAA,SAAA","ignoreList":[]}
1
+ {"version":3,"file":"typography.cjs","names":["_react","_interopRequireDefault","require","_styledComponents","_interopRequireWildcard","_","_types","_jsxRuntime","_excluded","_excluded2","_excluded3","_excluded4","_excluded5","_excluded6","_excluded7","_templateObject","_templateObject2","_templateObject3","_templateObject4","_templateObject5","_templateObject6","_templateObject7","_templateObject8","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","ownKeys","keys","getOwnPropertySymbols","o","filter","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","TypographyBase","styled","_ref","$color","lineHeight","$fontSize","$fontWeight","$fontStyle","textTransform","textDecorationLine","fontSize","fontWeight","fontStyle","color","COLORS","black","exports","ComponentTextStyle","componentFontWeight","textStyle","Bold","UppercaseBold","componentFontStyle","Italic","componentTextTransformation","ComponentStyling","css","_taggedTemplateLiteral2","props","concat","getColor","theme","ComponentXLStyling","ComponentXL","_ref2","children","className","rest","_objectWithoutProperties2","jsx","propTypes","_propTypes","string","oneOf","node","ComponentLStyling","ComponentL","_ref3","ComponentMStyling","ComponentM","_ref4","ComponentSStyling","ComponentS","_ref5","ComponentXSStyling","ComponentXS","_ref6","ComponentXXSStyling","ComponentXXS","_ref7","ComponentResponsive","_ref8","size","width","fontsize","Size","Medium","Small","Large","XXSmall","XSmall","Typography","QuoteTypography","NoteTypography","UpperCaseTypography","Note","p","Quote","UpperCase"],"sources":["../../src/styles/typography.tsx"],"sourcesContent":["import React, { AriaAttributes } from 'react';\r\nimport styled, {css} from 'styled-components';\r\nimport {COLORS} from '.';\r\nimport {Property} from 'csstype';\r\nimport {Size} from '../types';\r\n\r\ninterface ITypographyBase {\r\n $color?: string;\r\n lineHeight: number;\r\n $fontSize: number;\r\n $fontWeight: number;\r\n $fontStyle?: string;\r\n textTransform?: Property.TextTransform;\r\n textDecorationLine?: Property.TextDecorationLine;\r\n}\r\n\r\nexport const TypographyBase = styled('div')<ITypographyBase>(({\r\n $color,\r\n lineHeight,\r\n $fontSize,\r\n $fontWeight,\r\n $fontStyle,\r\n textTransform,\r\n textDecorationLine\r\n }) => ({\r\n fontSize: $fontSize,\r\n fontWeight: $fontWeight,\r\n lineHeight: lineHeight + 'px',\r\n textTransform: textTransform ? textTransform : 'none',\r\n textDecorationLine: textDecorationLine ? textDecorationLine : 'none',\r\n fontStyle: $fontStyle ? $fontStyle : 'normal',\r\n color: $color ? $color : COLORS.black,\r\n}));\r\n\r\nenum ComponentTextStyle {\r\n Regular = 1,\r\n Bold,\r\n Italic,\r\n UppercaseBold,\r\n}\r\n\r\ntype ComponentProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'color' | 'className' | 'children'> & {\r\n color?: string;\r\n className?: string;\r\n textStyle?: ComponentTextStyle;\r\n children?: React.ReactNode;\r\n};\r\n\r\nconst componentFontWeight = (textStyle?: ComponentTextStyle) => {\r\n let fontWeight = 400;\r\n if (textStyle === ComponentTextStyle.Bold || textStyle === ComponentTextStyle.UppercaseBold) {\r\n fontWeight = 700;\r\n }\r\n return fontWeight;\r\n};\r\n\r\nconst componentFontStyle = (textStyle?: ComponentTextStyle) => {\r\n let fontStyle = textStyle && textStyle === ComponentTextStyle.Italic ? 'italic' : '';\r\n return fontStyle;\r\n};\r\n\r\nconst componentTextTransformation = (textStyle?: ComponentTextStyle): Property.TextTransform => {\r\n let fontStyle: Property.TextTransform = textStyle && textStyle === ComponentTextStyle.UppercaseBold ? 'uppercase' : 'none';\r\n return fontStyle;\r\n};\r\n\r\nconst ComponentStyling = (fontSize: string, lineHeight: string, textStyle: ComponentTextStyle, color: string | undefined | null) => {\r\n return css`\r\n font-size: ${fontSize};\r\n font-weight: ${componentFontWeight(textStyle)};\r\n line-height: ${lineHeight};\r\n font-style: ${componentFontStyle(textStyle)};\r\n ${props => color === null ? '' : `color: ${color || COLORS.getColor('black', props.theme)};`}\r\n `;\r\n};\r\n\r\nconst ComponentXLStyling = (textStyle: ComponentTextStyle, color: string | null) => ComponentStyling('24px', '28px', textStyle, color);\r\nconst ComponentXL: React.FunctionComponent<ComponentProps> = ({color, textStyle, children, className, ...rest}) => {\r\n let fontWeight = componentFontWeight(textStyle);\r\n let fontStyle = componentFontStyle(textStyle);\r\n return (\r\n <TypographyBase className={className} $color={color} lineHeight={28} $fontSize={24} $fontWeight={fontWeight}\r\n $fontStyle={fontStyle} {...rest}>\r\n {children}\r\n </TypographyBase>\r\n );\r\n};\r\n\r\nconst ComponentLStyling = (textStyle: ComponentTextStyle, color: string | null) => ComponentStyling('20px', '24px', textStyle, color);\r\nconst ComponentL: React.FunctionComponent<ComponentProps> = ({color, textStyle, children, className, ...rest}) => {\r\n let fontWeight = componentFontWeight(textStyle);\r\n let fontStyle = componentFontStyle(textStyle);\r\n return (\r\n <TypographyBase className={className} $color={color} lineHeight={24} $fontSize={20} $fontWeight={fontWeight}\r\n $fontStyle={fontStyle} {...rest}>\r\n {children}\r\n </TypographyBase>\r\n );\r\n};\r\n\r\nconst ComponentMStyling = (textStyle: ComponentTextStyle, color: string | undefined | null) => ComponentStyling('18px', '24px', textStyle, color);\r\nconst ComponentM: React.FunctionComponent<ComponentProps> = ({color, textStyle, children, className, ...rest}) => {\r\n let fontWeight = componentFontWeight(textStyle);\r\n let fontStyle = componentFontStyle(textStyle);\r\n return (\r\n <TypographyBase className={className} $color={color} lineHeight={24} $fontSize={18} $fontWeight={fontWeight}\r\n $fontStyle={fontStyle} {...rest}>\r\n {children}\r\n </TypographyBase>\r\n );\r\n};\r\n\r\nconst ComponentSStyling = (textStyle: ComponentTextStyle, color: string | null) => ComponentStyling('16px', '20px', textStyle, color);\r\nconst ComponentS: React.FunctionComponent<ComponentProps> = ({color, textStyle, children, className, ...rest}) => {\r\n let fontWeight = componentFontWeight(textStyle);\r\n let fontStyle = componentFontStyle(textStyle);\r\n return (\r\n <TypographyBase className={className} $color={color} lineHeight={20} $fontSize={16} $fontWeight={fontWeight}\r\n $fontStyle={fontStyle} {...rest}>\r\n {children}\r\n </TypographyBase>\r\n );\r\n};\r\n\r\nconst ComponentXSStyling = (textStyle: ComponentTextStyle, color: string | null) => ComponentStyling('14px', '16px', textStyle, color);\r\nconst ComponentXS: React.FunctionComponent<ComponentProps> = ({color, textStyle, children, className, ...rest}) => {\r\n let fontWeight = componentFontWeight(textStyle);\r\n let fontStyle = componentFontStyle(textStyle);\r\n let textTransform = componentTextTransformation(textStyle);\r\n return (\r\n <TypographyBase className={className} $color={color} lineHeight={16} $fontSize={14} $fontWeight={fontWeight}\r\n $fontStyle={fontStyle} textTransform={textTransform} {...rest}>\r\n {children}\r\n </TypographyBase>\r\n );\r\n};\r\n\r\nconst ComponentXXSStyling = (textStyle: ComponentTextStyle, color: string | null) => ComponentStyling('12px', '16px', textStyle, color);\r\nconst ComponentXXS: React.FunctionComponent<ComponentProps> = ({color, textStyle, children, className, ...rest}) => {\r\n let fontWeight = componentFontWeight(textStyle);\r\n let fontStyle = componentFontStyle(textStyle);\r\n let textTransform = componentTextTransformation(textStyle);\r\n return (\r\n <TypographyBase className={className} $color={color} lineHeight={16} $fontSize={12} $fontWeight={fontWeight}\r\n $fontStyle={fontStyle} textTransform={textTransform} {...rest}>\r\n {children}\r\n </TypographyBase>\r\n );\r\n};\r\n\r\nconst ComponentResponsive: React.FunctionComponent<ComponentProps & { size?: Size; width: number }> = ({\r\n color,\r\n textStyle,\r\n children,\r\n size,\r\n width, \r\n ...rest\r\n }) => {\r\n let fontsize = size;\r\n if (!size) {\r\n if (width == -1) {\r\n fontsize = Size.Medium;\r\n } else if (width < 768) {\r\n fontsize = Size.Small;\r\n } else if (width < 992) {\r\n fontsize = Size.Medium;\r\n } else {\r\n fontsize = Size.Large;\r\n }\r\n }\r\n switch (fontsize) {\r\n case Size.XXSmall:\r\n return <ComponentXXS color={color} textStyle={textStyle} children={children} {...rest}/>;\r\n case Size.XSmall:\r\n return <ComponentXS color={color} textStyle={textStyle} children={children} {...rest}/>;\r\n case Size.Small:\r\n return <ComponentS color={color} textStyle={textStyle} children={children} {...rest}/>;\r\n case Size.Medium:\r\n return <ComponentM color={color} textStyle={textStyle} children={children} {...rest}/>;\r\n case Size.Large:\r\n default:\r\n return <ComponentL color={color} textStyle={textStyle} children={children} {...rest}/>;\r\n }\r\n};\r\n\r\nexport const Typography = css`\r\n html {\r\n font-size: 100%;\r\n }\r\n\r\n @media (min-width: 48rem) {\r\n html {\r\n font-size: 112.5%;\r\n }\r\n }\r\n\r\n @media (min-width: 80rem) {\r\n html {\r\n font-size: 125%;\r\n }\r\n }\r\n\r\n h1, h2, h3, h4, h5, h6 {\r\n font-weight: 700;\r\n line-height: 120%;\r\n margin: 0;\r\n }\r\n\r\n h1 {\r\n font-size: 3rem;\r\n }\r\n\r\n h2 {\r\n font-size: 2.5rem;\r\n }\r\n\r\n h3 {\r\n font-size: 2rem;\r\n }\r\n\r\n h4 {\r\n font-size: 1.75rem;\r\n }\r\n\r\n h5 {\r\n font-size: 1.5rem;\r\n }\r\n\r\n h6 {\r\n font-size: 1.25rem;\r\n }\r\n\r\n p {\r\n font-size: 1rem;\r\n line-height: 150%;\r\n margin: 0 0 0.5rem;\r\n }\r\n\r\n p:last-of-type {\r\n margin-bottom: 0;\r\n }\r\n\r\n\r\n h1, h2, h3, h4, h5, h6, p, span {\r\n max-width: 34rem;\r\n }\r\n\r\n :lang(ja-jp) {\r\n h1, h2, h3, h4, h5, h6, p, span {\r\n max-width: 30rem;\r\n }\r\n }\r\n\r\n :lang(ko-kr) {\r\n h1, h2, h3, h4, h5, h6, p, span {\r\n max-width: 30rem;\r\n }\r\n }\r\n\r\n :lang(zh-CN) {\r\n h1, h2, h3, h4, h5, h6, p, span {\r\n max-width: 30rem;\r\n }\r\n }\r\n`;\r\n\r\nexport const QuoteTypography = css`\r\n font-size: 1.5rem;\r\n line-height: 150%;\r\n margin-bottom: 0.75rem;\r\n`;\r\n\r\nexport const NoteTypography = css`\r\n font-size: 0.75rem;\r\n line-height: 150%;\r\n margin-bottom: 0.375rem;\r\n`;\r\n\r\nexport const UpperCaseTypography = css`\r\n font-size: 0.75rem;\r\n line-height: 150%;\r\n font-weight: 700;\r\n text-transform: uppercase;\r\n`;\r\n\r\nexport const Note = styled.p`\r\n ${NoteTypography}\r\n`;\r\n\r\nexport const Quote = styled.p`\r\n ${QuoteTypography}\r\n`;\r\n\r\nexport const UpperCase = styled.p`\r\n ${UpperCaseTypography}\r\n`;\r\n\r\nexport {\r\n ComponentTextStyle,\r\n ComponentXL,\r\n ComponentL,\r\n ComponentM,\r\n ComponentS,\r\n ComponentXS,\r\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