@laerdal/life-react-components 5.0.7 → 5.0.8-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.
- package/dist/Chips/ChoiceChips.cjs +1 -0
- package/dist/Chips/ChoiceChips.cjs.map +1 -1
- package/dist/Chips/ChoiceChips.js +1 -0
- package/dist/Chips/ChoiceChips.js.map +1 -1
- package/dist/ChipsInput/ChipDropdownInput.cjs +1 -1
- package/dist/ChipsInput/ChipDropdownInput.cjs.map +1 -1
- package/dist/ChipsInput/ChipDropdownInput.js +1 -1
- package/dist/ChipsInput/ChipDropdownInput.js.map +1 -1
- package/dist/Dropdown/BasicDropdown.cjs +2 -0
- package/dist/Dropdown/BasicDropdown.cjs.map +1 -1
- package/dist/Dropdown/BasicDropdown.js +2 -0
- package/dist/Dropdown/BasicDropdown.js.map +1 -1
- package/dist/Dropdown/DropdownButton.cjs +4 -0
- package/dist/Dropdown/DropdownButton.cjs.map +1 -1
- package/dist/Dropdown/DropdownButton.js +4 -0
- package/dist/Dropdown/DropdownButton.js.map +1 -1
- package/dist/Dropdown/DropdownContent.cjs +1 -1
- package/dist/Dropdown/DropdownContent.cjs.map +1 -1
- package/dist/Dropdown/DropdownContent.js +1 -1
- package/dist/Dropdown/DropdownContent.js.map +1 -1
- package/dist/Dropdown/DropdownFilter.cjs +2 -0
- package/dist/Dropdown/DropdownFilter.cjs.map +1 -1
- package/dist/Dropdown/DropdownFilter.js +2 -0
- package/dist/Dropdown/DropdownFilter.js.map +1 -1
- package/dist/GlobalNavigationBar/desktop/ExtendedMainMenu.cjs +0 -1
- package/dist/GlobalNavigationBar/desktop/ExtendedMainMenu.cjs.map +1 -1
- package/dist/GlobalNavigationBar/desktop/ExtendedMainMenu.js +0 -1
- package/dist/GlobalNavigationBar/desktop/ExtendedMainMenu.js.map +1 -1
- package/dist/GlobalNavigationBar/desktop/SubMenu.cjs +0 -1
- package/dist/GlobalNavigationBar/desktop/SubMenu.cjs.map +1 -1
- package/dist/GlobalNavigationBar/desktop/SubMenu.js +0 -1
- package/dist/GlobalNavigationBar/desktop/SubMenu.js.map +1 -1
- package/dist/InputFields/QuickSearch.cjs +1 -1
- package/dist/InputFields/QuickSearch.cjs.map +1 -1
- package/dist/InputFields/QuickSearch.js +1 -1
- package/dist/InputFields/QuickSearch.js.map +1 -1
- package/dist/Modals/ModalContainer.cjs +106 -142
- package/dist/Modals/ModalContainer.cjs.map +1 -1
- package/dist/Modals/ModalContainer.d.ts +1 -17
- package/dist/Modals/ModalContainer.js +106 -142
- package/dist/Modals/ModalContainer.js.map +1 -1
- package/dist/Table/TableBody.cjs +1 -1
- package/dist/Table/TableBody.cjs.map +1 -1
- package/dist/Table/TableBody.js +1 -1
- package/dist/Table/TableBody.js.map +1 -1
- package/dist/Table/TableFooter.cjs +2 -0
- package/dist/Table/TableFooter.cjs.map +1 -1
- package/dist/Table/TableFooter.js +2 -0
- package/dist/Table/TableFooter.js.map +1 -1
- package/dist/styles/typography.cjs +59 -35
- package/dist/styles/typography.cjs.map +1 -1
- package/dist/styles/typography.d.ts +1 -1
- package/dist/styles/typography.js +59 -35
- package/dist/styles/typography.js.map +1 -1
- package/package.json +1 -1
|
@@ -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';\nimport {TableProps} from './TableTypes';\nimport {DropdownButton, DropdownItem} from '../Dropdown';\nimport {IconButton} from '../Button';\nimport { SystemIcons} from '../icons';\nimport {COLORS} from '../styles';\nimport {\n StyledTableFooter, StyledTableFooterCollapseButton,\n StyledTableFooterContent,\n StyledTableFooterControls,\n StyledTableFooterCurrentInfo\n} from './TableStyles';\nimport {defaultOnMouseDownHandler} from '../common';\nimport { useTheme } from 'styled-components';\n\n\ninterface TableFooterProps extends TableProps {\n onRowsPerPageChange: (value: number) => void;\n rowsPerPage: number;\n from?: number;\n to?: number;\n total?: number;\n nextPage: () => void;\n prevPage: () => void;\n setIsCollapsed: (isCollapsed: boolean) => void;\n isCollapsed: boolean;\n}\n\nconst TableFooter: React.FunctionComponent<TableFooterProps> = (props) => {\n const theme = useTheme();\n const rowsPerPageValues: DropdownItem[] = [{value: '10'}, {value: '20'}, {value: '50'}, {value: '100'}];\n\n const dropDownText = `${props.rowsPerPageLabel ?? 'Rows per page'} : ${props.rowsPerPage}`;\n\n return (\n <StyledTableFooter data-testid=\"TestTableFooterRow\">\n {\n props.accordion &&\n <StyledTableFooterCollapseButton onClick={() => props.setIsCollapsed(!props.isCollapsed)}\n onMouseDown={defaultOnMouseDownHandler}\n disabled={props.isCollapsed && props.rows.length <= props.rowsPerPage}>\n {\n props.isCollapsed &&\n <>\n <span>{props.showMoreLabel ?? 'Show more'} ({props.rows.length - props.rowsPerPage})</span>\n <SystemIcons.ArrowDropDown/>\n </>\n }\n {\n !props.isCollapsed &&\n <>\n <span>{props.showFewerLabel ?? 'Show fewer'}</span>\n <SystemIcons.ArrowDropUp/>\n </>\n }\n </StyledTableFooterCollapseButton>\n }\n {\n !props.accordion &&\n <StyledTableFooterContent>\n <DropdownButton\n type={'text'}\n items={rowsPerPageValues}\n disabled={props.showLoadingIndicator}\n value={[`${props.rowsPerPage}`]}\n onClick={(value) => props.onRowsPerPageChange(+value[0])}\n label={dropDownText}\n keepLabel={true}\n />\n <StyledTableFooterCurrentInfo>\n {props.total === 0 ? 0 : props.from}-{props.to} of {props.total}\n </StyledTableFooterCurrentInfo>\n <StyledTableFooterControls>\n <IconButton variant=\"secondary\" shape=\"circular\" action={() => props.prevPage()}\n disabled={props.from === 1 || props.showLoadingIndicator}>\n <SystemIcons.ChevronLeft size=\"24\" color={COLORS.getColor('neutral_600', theme)}/>\n </IconButton>\n <IconButton variant=\"secondary\" shape=\"circular\" action={() => props.nextPage()}\n disabled={props.to === props.total || props.showLoadingIndicator}>\n <SystemIcons.ChevronRight size=\"24\" color={COLORS.getColor('neutral_600', theme)}/>\n </IconButton>\n </StyledTableFooterControls>\n </StyledTableFooterContent>\n }\n </StyledTableFooter>\n );\n};\n\n\nexport default TableFooter;\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA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AAC,CAAC9B,KAAK,CAAC,CAAC,CAAC,CAAC;QAAA,CAAC;QACzD+B,KAAK,EAAE9B,YAAa;QACpB+B,SAAS,EAAE;MAAK,CACjB,CAAC,eACF,IAAAzC,WAAA,CAAAc,IAAA,EAACjB,YAAA,CAAA6C,4BAA4B;QAAA1B,QAAA,GAC1Bd,KAAK,CAACyC,KAAK,KAAK,CAAC,GAAG,CAAC,GAAGzC,KAAK,CAAC0C,IAAI,EAAC,GAAC,EAAC1C,KAAK,CAAC2C,EAAE,EAAC,MAAI,EAAC3C,KAAK,CAACyC,KAAK;MAAA,CACnC,CAAC,eAC/B,IAAA3C,WAAA,CAAAc,IAAA,EAACjB,YAAA,CAAAiD,yBAAyB;QAAA9B,QAAA,gBACxB,IAAAhB,WAAA,CAAA6B,GAAA,EAACnC,OAAA,CAAAqD,UAAU;UAACC,OAAO,EAAC,WAAW;UAACC,KAAK,EAAC,UAAU;UAACC,MAAM,EAAE,SAAAA,OAAA;YAAA,OAAMhD,KAAK,CAACiD,QAAQ,CAAC,CAAC;UAAA,CAAC;UACpE3B,QAAQ,EAAEtB,KAAK,CAAC0C,IAAI,KAAK,CAAC,IAAI1C,KAAK,CAACoC,oBAAqB;UAAAtB,QAAA,eACnE,IAAAhB,WAAA,CAAA6B,GAAA,EAAClC,MAAA,CAAAmC,WAAW,CAACsB,WAAW;YAACC,IAAI,EAAC,IAAI;YAACC,KAAK,EAAEC,cAAM,CAACC,QAAQ,CAAC,aAAa,EAAElD,KAAK;UAAE,CAAC;QAAC,
|
|
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';\nimport {TableProps} from './TableTypes';\nimport {DropdownButton, DropdownItem} from '../Dropdown';\nimport {IconButton} from '../Button';\nimport { SystemIcons} from '../icons';\nimport {COLORS} from '../styles';\nimport {\n StyledTableFooter, StyledTableFooterCollapseButton,\n StyledTableFooterContent,\n StyledTableFooterControls,\n StyledTableFooterCurrentInfo\n} from './TableStyles';\nimport {defaultOnMouseDownHandler} from '../common';\nimport { useTheme } from 'styled-components';\n\n\ninterface TableFooterProps extends TableProps {\n onRowsPerPageChange: (value: number) => void;\n rowsPerPage: number;\n from?: number;\n to?: number;\n total?: number;\n nextPage: () => void;\n prevPage: () => void;\n setIsCollapsed: (isCollapsed: boolean) => void;\n isCollapsed: boolean;\n}\n\nconst TableFooter: React.FunctionComponent<TableFooterProps> = (props) => {\n const theme = useTheme();\n const rowsPerPageValues: DropdownItem[] = [{value: '10'}, {value: '20'}, {value: '50'}, {value: '100'}];\n\n const dropDownText = `${props.rowsPerPageLabel ?? 'Rows per page'} : ${props.rowsPerPage}`;\n\n return (\n <StyledTableFooter data-testid=\"TestTableFooterRow\">\n {\n props.accordion &&\n <StyledTableFooterCollapseButton onClick={() => props.setIsCollapsed(!props.isCollapsed)}\n onMouseDown={defaultOnMouseDownHandler}\n disabled={props.isCollapsed && props.rows.length <= props.rowsPerPage}>\n {\n props.isCollapsed &&\n <>\n <span>{props.showMoreLabel ?? 'Show more'} ({props.rows.length - props.rowsPerPage})</span>\n <SystemIcons.ArrowDropDown/>\n </>\n }\n {\n !props.isCollapsed &&\n <>\n <span>{props.showFewerLabel ?? 'Show fewer'}</span>\n <SystemIcons.ArrowDropUp/>\n </>\n }\n </StyledTableFooterCollapseButton>\n }\n {\n !props.accordion &&\n <StyledTableFooterContent>\n <DropdownButton\n type={'text'}\n items={rowsPerPageValues}\n disabled={props.showLoadingIndicator}\n value={[`${props.rowsPerPage}`]}\n onClick={(value) => props.onRowsPerPageChange(+value[0])}\n label={dropDownText}\n keepLabel={true}\n />\n <StyledTableFooterCurrentInfo>\n {props.total === 0 ? 0 : props.from}-{props.to} of {props.total}\n </StyledTableFooterCurrentInfo>\n <StyledTableFooterControls>\n <IconButton variant=\"secondary\" shape=\"circular\" action={() => props.prevPage()}\n disabled={props.from === 1 || props.showLoadingIndicator}>\n <SystemIcons.ChevronLeft aria-label='Previous' size=\"24\" color={COLORS.getColor('neutral_600', theme)}/>\n </IconButton>\n <IconButton variant=\"secondary\" shape=\"circular\" action={() => props.nextPage()}\n disabled={props.to === props.total || props.showLoadingIndicator}>\n <SystemIcons.ChevronRight aria-label='Next' size=\"24\" color={COLORS.getColor('neutral_600', theme)}/>\n </IconButton>\n </StyledTableFooterControls>\n </StyledTableFooterContent>\n }\n </StyledTableFooter>\n );\n};\n\n\nexport default TableFooter;\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,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D,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":[]}
|
|
@@ -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';\nimport {TableProps} from './TableTypes';\nimport {DropdownButton, DropdownItem} from '../Dropdown';\nimport {IconButton} from '../Button';\nimport { SystemIcons} from '../icons';\nimport {COLORS} from '../styles';\nimport {\n StyledTableFooter, StyledTableFooterCollapseButton,\n StyledTableFooterContent,\n StyledTableFooterControls,\n StyledTableFooterCurrentInfo\n} from './TableStyles';\nimport {defaultOnMouseDownHandler} from '../common';\nimport { useTheme } from 'styled-components';\n\n\ninterface TableFooterProps extends TableProps {\n onRowsPerPageChange: (value: number) => void;\n rowsPerPage: number;\n from?: number;\n to?: number;\n total?: number;\n nextPage: () => void;\n prevPage: () => void;\n setIsCollapsed: (isCollapsed: boolean) => void;\n isCollapsed: boolean;\n}\n\nconst TableFooter: React.FunctionComponent<TableFooterProps> = (props) => {\n const theme = useTheme();\n const rowsPerPageValues: DropdownItem[] = [{value: '10'}, {value: '20'}, {value: '50'}, {value: '100'}];\n\n const dropDownText = `${props.rowsPerPageLabel ?? 'Rows per page'} : ${props.rowsPerPage}`;\n\n return (\n <StyledTableFooter data-testid=\"TestTableFooterRow\">\n {\n props.accordion &&\n <StyledTableFooterCollapseButton onClick={() => props.setIsCollapsed(!props.isCollapsed)}\n onMouseDown={defaultOnMouseDownHandler}\n disabled={props.isCollapsed && props.rows.length <= props.rowsPerPage}>\n {\n props.isCollapsed &&\n <>\n <span>{props.showMoreLabel ?? 'Show more'} ({props.rows.length - props.rowsPerPage})</span>\n <SystemIcons.ArrowDropDown/>\n </>\n }\n {\n !props.isCollapsed &&\n <>\n <span>{props.showFewerLabel ?? 'Show fewer'}</span>\n <SystemIcons.ArrowDropUp/>\n </>\n }\n </StyledTableFooterCollapseButton>\n }\n {\n !props.accordion &&\n <StyledTableFooterContent>\n <DropdownButton\n type={'text'}\n items={rowsPerPageValues}\n disabled={props.showLoadingIndicator}\n value={[`${props.rowsPerPage}`]}\n onClick={(value) => props.onRowsPerPageChange(+value[0])}\n label={dropDownText}\n keepLabel={true}\n />\n <StyledTableFooterCurrentInfo>\n {props.total === 0 ? 0 : props.from}-{props.to} of {props.total}\n </StyledTableFooterCurrentInfo>\n <StyledTableFooterControls>\n <IconButton variant=\"secondary\" shape=\"circular\" action={() => props.prevPage()}\n disabled={props.from === 1 || props.showLoadingIndicator}>\n <SystemIcons.ChevronLeft size=\"24\" color={COLORS.getColor('neutral_600', theme)}/>\n </IconButton>\n <IconButton variant=\"secondary\" shape=\"circular\" action={() => props.nextPage()}\n disabled={props.to === props.total || props.showLoadingIndicator}>\n <SystemIcons.ChevronRight size=\"24\" color={COLORS.getColor('neutral_600', theme)}/>\n </IconButton>\n </StyledTableFooterControls>\n </StyledTableFooterContent>\n }\n </StyledTableFooter>\n );\n};\n\n\nexport default TableFooter;\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,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AC;UACpEnB,QAAQ,EAAEjB,KAAK,CAAC+B,IAAI,KAAK,CAAC,IAAI/B,KAAK,CAAC0B,oBAAqB;UAAAf,QAAA,eACnEf,IAAA,CAACZ,WAAW,CAACqD,WAAW;YAACC,IAAI,EAAC,IAAI;YAACC,KAAK,EAAEtD,MAAM,CAACuD,QAAQ,CAAC,aAAa,EAAEpC,KAAK;UAAE,CAAC;QAAC,
|
|
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';\nimport {TableProps} from './TableTypes';\nimport {DropdownButton, DropdownItem} from '../Dropdown';\nimport {IconButton} from '../Button';\nimport { SystemIcons} from '../icons';\nimport {COLORS} from '../styles';\nimport {\n StyledTableFooter, StyledTableFooterCollapseButton,\n StyledTableFooterContent,\n StyledTableFooterControls,\n StyledTableFooterCurrentInfo\n} from './TableStyles';\nimport {defaultOnMouseDownHandler} from '../common';\nimport { useTheme } from 'styled-components';\n\n\ninterface TableFooterProps extends TableProps {\n onRowsPerPageChange: (value: number) => void;\n rowsPerPage: number;\n from?: number;\n to?: number;\n total?: number;\n nextPage: () => void;\n prevPage: () => void;\n setIsCollapsed: (isCollapsed: boolean) => void;\n isCollapsed: boolean;\n}\n\nconst TableFooter: React.FunctionComponent<TableFooterProps> = (props) => {\n const theme = useTheme();\n const rowsPerPageValues: DropdownItem[] = [{value: '10'}, {value: '20'}, {value: '50'}, {value: '100'}];\n\n const dropDownText = `${props.rowsPerPageLabel ?? 'Rows per page'} : ${props.rowsPerPage}`;\n\n return (\n <StyledTableFooter data-testid=\"TestTableFooterRow\">\n {\n props.accordion &&\n <StyledTableFooterCollapseButton onClick={() => props.setIsCollapsed(!props.isCollapsed)}\n onMouseDown={defaultOnMouseDownHandler}\n disabled={props.isCollapsed && props.rows.length <= props.rowsPerPage}>\n {\n props.isCollapsed &&\n <>\n <span>{props.showMoreLabel ?? 'Show more'} ({props.rows.length - props.rowsPerPage})</span>\n <SystemIcons.ArrowDropDown/>\n </>\n }\n {\n !props.isCollapsed &&\n <>\n <span>{props.showFewerLabel ?? 'Show fewer'}</span>\n <SystemIcons.ArrowDropUp/>\n </>\n }\n </StyledTableFooterCollapseButton>\n }\n {\n !props.accordion &&\n <StyledTableFooterContent>\n <DropdownButton\n type={'text'}\n items={rowsPerPageValues}\n disabled={props.showLoadingIndicator}\n value={[`${props.rowsPerPage}`]}\n onClick={(value) => props.onRowsPerPageChange(+value[0])}\n label={dropDownText}\n keepLabel={true}\n />\n <StyledTableFooterCurrentInfo>\n {props.total === 0 ? 0 : props.from}-{props.to} of {props.total}\n </StyledTableFooterCurrentInfo>\n <StyledTableFooterControls>\n <IconButton variant=\"secondary\" shape=\"circular\" action={() => props.prevPage()}\n disabled={props.from === 1 || props.showLoadingIndicator}>\n <SystemIcons.ChevronLeft aria-label='Previous' size=\"24\" color={COLORS.getColor('neutral_600', theme)}/>\n </IconButton>\n <IconButton variant=\"secondary\" shape=\"circular\" action={() => props.nextPage()}\n disabled={props.to === props.total || props.showLoadingIndicator}>\n <SystemIcons.ChevronRight aria-label='Next' size=\"24\" color={COLORS.getColor('neutral_600', theme)}/>\n </IconButton>\n </StyledTableFooterControls>\n </St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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, _templateObject9;
|
|
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 = _styledComponents["default"].div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n font-size: ", "px;\n font-weight: ", ";\n line-height: ", "px;\n text-transform: ", ";\n text-decoration-line: ", ";\n font-style: ", ";\n color: ", ";\n"])), function (props) {
|
|
20
31
|
return props.$fontSize;
|
|
21
32
|
}, function (props) {
|
|
@@ -72,18 +83,20 @@ var ComponentXL = function ComponentXL(_ref) {
|
|
|
72
83
|
var color = _ref.color,
|
|
73
84
|
textStyle = _ref.textStyle,
|
|
74
85
|
children = _ref.children,
|
|
75
|
-
className = _ref.className
|
|
86
|
+
className = _ref.className,
|
|
87
|
+
rest = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
|
76
88
|
var fontWeight = componentFontWeight(textStyle);
|
|
77
89
|
var fontStyle = componentFontStyle(textStyle);
|
|
78
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(TypographyBase, {
|
|
90
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(TypographyBase, _objectSpread(_objectSpread({
|
|
79
91
|
className: className,
|
|
80
92
|
$color: color,
|
|
81
93
|
$lineHeight: 28,
|
|
82
94
|
$fontSize: 24,
|
|
83
95
|
$fontWeight: fontWeight,
|
|
84
|
-
$fontStyle: fontStyle
|
|
96
|
+
$fontStyle: fontStyle
|
|
97
|
+
}, rest), {}, {
|
|
85
98
|
children: children
|
|
86
|
-
});
|
|
99
|
+
}));
|
|
87
100
|
};
|
|
88
101
|
exports.ComponentXL = ComponentXL;
|
|
89
102
|
ComponentXL.propTypes = {
|
|
@@ -100,18 +113,20 @@ var ComponentL = function ComponentL(_ref2) {
|
|
|
100
113
|
var color = _ref2.color,
|
|
101
114
|
textStyle = _ref2.textStyle,
|
|
102
115
|
children = _ref2.children,
|
|
103
|
-
className = _ref2.className
|
|
116
|
+
className = _ref2.className,
|
|
117
|
+
rest = (0, _objectWithoutProperties2["default"])(_ref2, _excluded2);
|
|
104
118
|
var fontWeight = componentFontWeight(textStyle);
|
|
105
119
|
var fontStyle = componentFontStyle(textStyle);
|
|
106
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(TypographyBase, {
|
|
120
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(TypographyBase, _objectSpread(_objectSpread({
|
|
107
121
|
className: className,
|
|
108
122
|
$color: color,
|
|
109
123
|
$lineHeight: 24,
|
|
110
124
|
$fontSize: 20,
|
|
111
125
|
$fontWeight: fontWeight,
|
|
112
|
-
$fontStyle: fontStyle
|
|
126
|
+
$fontStyle: fontStyle
|
|
127
|
+
}, rest), {}, {
|
|
113
128
|
children: children
|
|
114
|
-
});
|
|
129
|
+
}));
|
|
115
130
|
};
|
|
116
131
|
exports.ComponentL = ComponentL;
|
|
117
132
|
ComponentL.propTypes = {
|
|
@@ -128,18 +143,20 @@ var ComponentM = function ComponentM(_ref3) {
|
|
|
128
143
|
var color = _ref3.color,
|
|
129
144
|
textStyle = _ref3.textStyle,
|
|
130
145
|
children = _ref3.children,
|
|
131
|
-
className = _ref3.className
|
|
146
|
+
className = _ref3.className,
|
|
147
|
+
rest = (0, _objectWithoutProperties2["default"])(_ref3, _excluded3);
|
|
132
148
|
var fontWeight = componentFontWeight(textStyle);
|
|
133
149
|
var fontStyle = componentFontStyle(textStyle);
|
|
134
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(TypographyBase, {
|
|
150
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(TypographyBase, _objectSpread(_objectSpread({
|
|
135
151
|
className: className,
|
|
136
152
|
$color: color,
|
|
137
153
|
$lineHeight: 24,
|
|
138
154
|
$fontSize: 18,
|
|
139
155
|
$fontWeight: fontWeight,
|
|
140
|
-
$fontStyle: fontStyle
|
|
156
|
+
$fontStyle: fontStyle
|
|
157
|
+
}, rest), {}, {
|
|
141
158
|
children: children
|
|
142
|
-
});
|
|
159
|
+
}));
|
|
143
160
|
};
|
|
144
161
|
exports.ComponentM = ComponentM;
|
|
145
162
|
ComponentM.propTypes = {
|
|
@@ -156,18 +173,20 @@ var ComponentS = function ComponentS(_ref4) {
|
|
|
156
173
|
var color = _ref4.color,
|
|
157
174
|
textStyle = _ref4.textStyle,
|
|
158
175
|
children = _ref4.children,
|
|
159
|
-
className = _ref4.className
|
|
176
|
+
className = _ref4.className,
|
|
177
|
+
rest = (0, _objectWithoutProperties2["default"])(_ref4, _excluded4);
|
|
160
178
|
var fontWeight = componentFontWeight(textStyle);
|
|
161
179
|
var fontStyle = componentFontStyle(textStyle);
|
|
162
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(TypographyBase, {
|
|
180
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(TypographyBase, _objectSpread(_objectSpread({
|
|
163
181
|
className: className,
|
|
164
182
|
$color: color,
|
|
165
183
|
$lineHeight: 20,
|
|
166
184
|
$fontSize: 16,
|
|
167
185
|
$fontWeight: fontWeight,
|
|
168
|
-
$fontStyle: fontStyle
|
|
186
|
+
$fontStyle: fontStyle
|
|
187
|
+
}, rest), {}, {
|
|
169
188
|
children: children
|
|
170
|
-
});
|
|
189
|
+
}));
|
|
171
190
|
};
|
|
172
191
|
exports.ComponentS = ComponentS;
|
|
173
192
|
ComponentS.propTypes = {
|
|
@@ -184,20 +203,22 @@ var ComponentXS = function ComponentXS(_ref5) {
|
|
|
184
203
|
var color = _ref5.color,
|
|
185
204
|
textStyle = _ref5.textStyle,
|
|
186
205
|
children = _ref5.children,
|
|
187
|
-
className = _ref5.className
|
|
206
|
+
className = _ref5.className,
|
|
207
|
+
rest = (0, _objectWithoutProperties2["default"])(_ref5, _excluded5);
|
|
188
208
|
var fontWeight = componentFontWeight(textStyle);
|
|
189
209
|
var fontStyle = componentFontStyle(textStyle);
|
|
190
210
|
var textTransform = componentTextTransformation(textStyle);
|
|
191
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(TypographyBase, {
|
|
211
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(TypographyBase, _objectSpread(_objectSpread({
|
|
192
212
|
className: className,
|
|
193
213
|
$color: color,
|
|
194
214
|
$lineHeight: 16,
|
|
195
215
|
$fontSize: 14,
|
|
196
216
|
$fontWeight: fontWeight,
|
|
197
217
|
$fontStyle: fontStyle,
|
|
198
|
-
$textTransform: textTransform
|
|
218
|
+
$textTransform: textTransform
|
|
219
|
+
}, rest), {}, {
|
|
199
220
|
children: children
|
|
200
|
-
});
|
|
221
|
+
}));
|
|
201
222
|
};
|
|
202
223
|
exports.ComponentXS = ComponentXS;
|
|
203
224
|
ComponentXS.propTypes = {
|
|
@@ -214,20 +235,22 @@ var ComponentXXS = function ComponentXXS(_ref6) {
|
|
|
214
235
|
var color = _ref6.color,
|
|
215
236
|
textStyle = _ref6.textStyle,
|
|
216
237
|
children = _ref6.children,
|
|
217
|
-
className = _ref6.className
|
|
238
|
+
className = _ref6.className,
|
|
239
|
+
rest = (0, _objectWithoutProperties2["default"])(_ref6, _excluded6);
|
|
218
240
|
var fontWeight = componentFontWeight(textStyle);
|
|
219
241
|
var fontStyle = componentFontStyle(textStyle);
|
|
220
242
|
var textTransform = componentTextTransformation(textStyle);
|
|
221
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(TypographyBase, {
|
|
243
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(TypographyBase, _objectSpread(_objectSpread({
|
|
222
244
|
className: className,
|
|
223
245
|
$color: color,
|
|
224
246
|
$lineHeight: 16,
|
|
225
247
|
$fontSize: 12,
|
|
226
248
|
$fontWeight: fontWeight,
|
|
227
249
|
$fontStyle: fontStyle,
|
|
228
|
-
$textTransform: textTransform
|
|
250
|
+
$textTransform: textTransform
|
|
251
|
+
}, rest), {}, {
|
|
229
252
|
children: children
|
|
230
|
-
});
|
|
253
|
+
}));
|
|
231
254
|
};
|
|
232
255
|
exports.ComponentXXS = ComponentXXS;
|
|
233
256
|
ComponentXXS.propTypes = {
|
|
@@ -241,7 +264,8 @@ var ComponentResponsive = function ComponentResponsive(_ref7) {
|
|
|
241
264
|
textStyle = _ref7.textStyle,
|
|
242
265
|
children = _ref7.children,
|
|
243
266
|
size = _ref7.size,
|
|
244
|
-
width = _ref7.width
|
|
267
|
+
width = _ref7.width,
|
|
268
|
+
rest = (0, _objectWithoutProperties2["default"])(_ref7, _excluded7);
|
|
245
269
|
var fontsize = size;
|
|
246
270
|
if (!size) {
|
|
247
271
|
if (width == -1) {
|
|
@@ -256,36 +280,36 @@ var ComponentResponsive = function ComponentResponsive(_ref7) {
|
|
|
256
280
|
}
|
|
257
281
|
switch (fontsize) {
|
|
258
282
|
case _types.Size.XXSmall:
|
|
259
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(ComponentXXS, {
|
|
283
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(ComponentXXS, _objectSpread({
|
|
260
284
|
color: color,
|
|
261
285
|
textStyle: textStyle,
|
|
262
286
|
children: children
|
|
263
|
-
});
|
|
287
|
+
}, rest));
|
|
264
288
|
case _types.Size.XSmall:
|
|
265
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(ComponentXS, {
|
|
289
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(ComponentXS, _objectSpread({
|
|
266
290
|
color: color,
|
|
267
291
|
textStyle: textStyle,
|
|
268
292
|
children: children
|
|
269
|
-
});
|
|
293
|
+
}, rest));
|
|
270
294
|
case _types.Size.Small:
|
|
271
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(ComponentS, {
|
|
295
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(ComponentS, _objectSpread({
|
|
272
296
|
color: color,
|
|
273
297
|
textStyle: textStyle,
|
|
274
298
|
children: children
|
|
275
|
-
});
|
|
299
|
+
}, rest));
|
|
276
300
|
case _types.Size.Medium:
|
|
277
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(ComponentM, {
|
|
301
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(ComponentM, _objectSpread({
|
|
278
302
|
color: color,
|
|
279
303
|
textStyle: textStyle,
|
|
280
304
|
children: children
|
|
281
|
-
});
|
|
305
|
+
}, rest));
|
|
282
306
|
case _types.Size.Large:
|
|
283
307
|
default:
|
|
284
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(ComponentL, {
|
|
308
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(ComponentL, _objectSpread({
|
|
285
309
|
color: color,
|
|
286
310
|
textStyle: textStyle,
|
|
287
311
|
children: children
|
|
288
|
-
});
|
|
312
|
+
}, rest));
|
|
289
313
|
}
|
|
290
314
|
};
|
|
291
315
|
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","_templateObject9","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","TypographyBase","styled","div","_taggedTemplateLiteral2","props","$fontSize","$fontWeight","$lineHeight","_props$$textTransform","$textTransform","_props$$textDecoratio","$textDecorationLine","_props$$fontStyle","$fontStyle","_props$$color","$color","COLORS","getColor","theme","exports","ComponentTextStyle","componentFontWeight","textStyle","fontWeight","Bold","UppercaseBold","componentFontStyle","fontStyle","Italic","componentTextTransformation","ComponentStyling","fontSize","lineHeight","color","css","concat","ComponentXLStyling","ComponentXL","_ref","children","className","jsx","propTypes","_propTypes","string","oneOf","node","ComponentLStyling","ComponentL","_ref2","ComponentMStyling","ComponentM","_ref3","ComponentSStyling","ComponentS","_ref4","ComponentXSStyling","ComponentXS","_ref5","textTransform","ComponentXXSStyling","ComponentXXS","_ref6","ComponentResponsive","_ref7","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';\nimport styled, {css} from 'styled-components';\nimport {COLORS} from '.';\nimport {Property} from 'csstype';\nimport {Size} from '../types';\n\nexport const TypographyBase = styled.div<{$color?: string,\n $lineHeight: number,\n $fontSize: number,\n $fontWeight: number,\n $fontStyle?: string,\n $textTransform?: Property.TextTransform,\n $textDecorationLine?: Property.TextDecorationLine,\n}>`\n font-size: ${props => props.$fontSize}px;\n font-weight: ${props => props.$fontWeight};\n line-height: ${props => props.$lineHeight}px;\n text-transform: ${props => props.$textTransform ?? 'none' };\n text-decoration-line: ${props => props.$textDecorationLine ?? 'none'};\n font-style: ${props => props.$fontStyle ?? 'normal'};\n color: ${props => props.$color ?? COLORS.getColor('black', props.theme)};\n`;\n\nenum ComponentTextStyle {\n Regular = 1,\n Bold,\n Italic,\n UppercaseBold,\n}\n\ntype ComponentProps = {\n color?: string;\n className?: string;\n textStyle?: ComponentTextStyle;\n children?: React.ReactNode;\n};\n\nconst componentFontWeight = (textStyle?: ComponentTextStyle) => {\n let fontWeight = 400;\n if (textStyle === ComponentTextStyle.Bold || textStyle === ComponentTextStyle.UppercaseBold) {\n fontWeight = 700;\n }\n return fontWeight;\n};\n\nconst componentFontStyle = (textStyle?: ComponentTextStyle) => {\n let fontStyle = textStyle && textStyle === ComponentTextStyle.Italic ? 'italic' : '';\n return fontStyle;\n};\n\nconst componentTextTransformation = (textStyle?: ComponentTextStyle): Property.TextTransform => {\n let fontStyle: Property.TextTransform = textStyle && textStyle === ComponentTextStyle.UppercaseBold ? 'uppercase' : 'none';\n return fontStyle;\n};\n\nconst ComponentStyling = (fontSize: string, lineHeight: string, textStyle: ComponentTextStyle, color: string | undefined | null) => {\n return css`\n font-size: ${fontSize};\n font-weight: ${componentFontWeight(textStyle)};\n line-height: ${lineHeight};\n font-style: ${componentFontStyle(textStyle)};\n ${props => color === null ? '' : `color: ${color || COLORS.getColor('black', props.theme)};`}\n `;\n};\n\nconst ComponentXLStyling = (textStyle: ComponentTextStyle, color: string | null) => ComponentStyling('24px', '28px', textStyle, color);\nconst ComponentXL: React.FunctionComponent<ComponentProps> = ({color, textStyle, children, className}) => {\n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n return (\n <TypographyBase className={className} $color={color} $lineHeight={28} $fontSize={24} $fontWeight={fontWeight}\n $fontStyle={fontStyle}>\n {children}\n </TypographyBase>\n );\n};\n\nconst ComponentLStyling = (textStyle: ComponentTextStyle, color: string | null) => ComponentStyling('20px', '24px', textStyle, color);\nconst ComponentL: React.FunctionComponent<ComponentProps> = ({color, textStyle, children, className}) => {\n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n return (\n <TypographyBase className={className} $color={color} $lineHeight={24} $fontSize={20} $fontWeight={fontWeight}\n $fontStyle={fontStyle}>\n {children}\n </TypographyBase>\n );\n};\n\nconst ComponentMStyling = (textStyle: ComponentTextStyle, color: string | undefined | null) => ComponentStyling('18px', '24px', textStyle, color);\nconst ComponentM: React.FunctionComponent<ComponentProps> = ({color, textStyle, children, className}) => {\n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n return (\n <TypographyBase className={className} $color={color} $lineHeight={24} $fontSize={18} $fontWeight={fontWeight}\n $fontStyle={fontStyle}>\n {children}\n </TypographyBase>\n );\n};\n\nconst ComponentSStyling = (textStyle: ComponentTextStyle, color: string | null) => ComponentStyling('16px', '20px', textStyle, color);\nconst ComponentS: React.FunctionComponent<ComponentProps> = ({color, textStyle, children, className}) => {\n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n return (\n <TypographyBase className={className} $color={color} $lineHeight={20} $fontSize={16} $fontWeight={fontWeight}\n $fontStyle={fontStyle}>\n {children}\n </TypographyBase>\n );\n};\n\nconst ComponentXSStyling = (textStyle: ComponentTextStyle, color: string | null) => ComponentStyling('14px', '16px', textStyle, color);\nconst ComponentXS: React.FunctionComponent<ComponentProps> = ({color, textStyle, children, className}) => {\n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n let textTransform = componentTextTransformation(textStyle);\n return (\n <TypographyBase className={className} $color={color} $lineHeight={16} $fontSize={14} $fontWeight={fontWeight}\n $fontStyle={fontStyle} $textTransform={textTransform}>\n {children}\n </TypographyBase>\n );\n};\n\nconst ComponentXXSStyling = (textStyle: ComponentTextStyle, color: string | null) => ComponentStyling('12px', '16px', textStyle, color);\nconst ComponentXXS: React.FunctionComponent<ComponentProps> = ({color, textStyle, children, className}) => {\n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n let textTransform = componentTextTransformation(textStyle);\n return (\n <TypographyBase className={className} $color={color} $lineHeight={16} $fontSize={12} $fontWeight={fontWeight}\n $fontStyle={fontStyle} $textTransform={textTransform}>\n {children}\n </TypographyBase>\n );\n};\n\nconst ComponentResponsive: React.FunctionComponent<ComponentProps & { size?: Size; width: number }> = ({\n color,\n textStyle,\n children,\n size,\n width\n }) => {\n let fontsize = size;\n if (!size) {\n if (width == -1) {\n fontsize = Size.Medium;\n } else if (width < 768) {\n fontsize = Size.Small;\n } else if (width < 992) {\n fontsize = Size.Medium;\n } else {\n fontsize = Size.Large;\n }\n }\n switch (fontsize) {\n case Size.XXSmall:\n return <ComponentXXS color={color} textStyle={textStyle} children={children}/>;\n case Size.XSmall:\n return <ComponentXS color={color} textStyle={textStyle} children={children}/>;\n case Size.Small:\n return <ComponentS color={color} textStyle={textStyle} children={children}/>;\n case Size.Medium:\n return <ComponentM color={color} textStyle={textStyle} children={children}/>;\n case Size.Large:\n default:\n return <ComponentL color={color} textStyle={textStyle} children={children}/>;\n }\n};\n\nexport const Typography = css`\n html {\n font-size: 100%;\n }\n\n @media (min-width: 48rem) {\n html {\n font-size: 112.5%;\n }\n }\n\n @media (min-width: 80rem) {\n html {\n font-size: 125%;\n }\n }\n\n h1, h2, h3, h4, h5, h6 {\n font-weight: 700;\n line-height: 120%;\n margin: 0;\n }\n\n h1 {\n font-size: 3rem;\n }\n\n h2 {\n font-size: 2.5rem;\n }\n\n h3 {\n font-size: 2rem;\n }\n\n h4 {\n font-size: 1.75rem;\n }\n\n h5 {\n font-size: 1.5rem;\n }\n\n h6 {\n font-size: 1.25rem;\n }\n\n p {\n font-size: 1rem;\n line-height: 150%;\n margin: 0 0 0.5rem;\n }\n\n p:last-of-type {\n margin-bottom: 0;\n }\n\n\n h1, h2, h3, h4, h5, h6, p, span {\n max-width: 34rem;\n }\n\n :lang(ja-jp) {\n h1, h2, h3, h4, h5, h6, p, span {\n max-width: 30rem;\n }\n }\n\n :lang(ko-kr) {\n h1, h2, h3, h4, h5, h6, p, span {\n max-width: 30rem;\n }\n }\n\n :lang(zh-CN) {\n h1, h2, h3, h4, h5, h6, p, span {\n max-width: 30rem;\n }\n }\n`;\n\nexport const QuoteTypography = css`\n font-size: 1.5rem;\n line-height: 150%;\n margin-bottom: 0.75rem;\n`;\n\nexport const NoteTypography = css`\n font-size: 0.75rem;\n line-height: 150%;\n margin-bottom: 0.375rem;\n`;\n\nexport const UpperCaseTypography = css`\n font-size: 0.75rem;\n line-height: 150%;\n font-weight: 700;\n text-transform: uppercase;\n`;\n\nexport const Note = styled.p`\n ${NoteTypography}\n`;\n\nexport const Quote = styled.p`\n ${QuoteTypography}\n`;\n\nexport const UpperCase = styled.p`\n ${UpperCaseTypography}\n`;\n\nexport {\n ComponentTextStyle,\n ComponentXL,\n ComponentL,\n ComponentM,\n ComponentS,\n ComponentXS,\n ComponentXXS,\n ComponentResponsive\n};\nexport {\n ComponentXLStyling,\n ComponentLStyling,\n ComponentMStyling,\n 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A4B,uBAAA,+FAIhC;AAACgB,OAAA,CAAAyD,cAAA,GAAAA,cAAA;AAEK,IAAMC,mBAAmB,OAAG3C,qBAAG,EAAA1D,gBAAA,KAAAA,gBAAA,OAAA2B,uBAAA,sHAKrC;AAACgB,OAAA,CAAA0D,mBAAA,GAAAA,mBAAA;AAEK,IAAMC,IAAI,GAAG7E,4BAAM,CAAC8E,CAAC,CAAAtG,gBAAA,KAAAA,gBAAA,OAAA0B,uBAAA,+BACxByE,cAAc,CACjB;AAACzD,OAAA,CAAA2D,IAAA,GAAAA,IAAA;AAEK,IAAME,KAAK,GAAG/E,4BAAM,CAAC8E,CAAC,CAAArG,gBAAA,KAAAA,gBAAA,OAAAyB,uBAAA,+BACzBwE,eAAe,CAClB;AAACxD,OAAA,CAAA6D,KAAA,GAAAA,KAAA;AAEK,IAAMC,SAAS,GAAGhF,4BAAM,CAAC8E,CAAC,CAAApG,gBAAA,KAAAA,gBAAA,OAAAwB,uBAAA,+BAC7B0E,mBAAmB,CACtB;AAAC1D,OAAA,CAAA8D,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","_templateObject9","_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","div","_taggedTemplateLiteral2","props","$fontSize","$fontWeight","$lineHeight","_props$$textTransform","$textTransform","_props$$textDecoratio","$textDecorationLine","_props$$fontStyle","$fontStyle","_props$$color","$color","COLORS","getColor","theme","exports","ComponentTextStyle","componentFontWeight","textStyle","fontWeight","Bold","UppercaseBold","componentFontStyle","fontStyle","Italic","componentTextTransformation","ComponentStyling","fontSize","lineHeight","color","css","concat","ComponentXLStyling","ComponentXL","_ref","children","className","rest","_objectWithoutProperties2","jsx","propTypes","_propTypes","string","oneOf","node","ComponentLStyling","ComponentL","_ref2","ComponentMStyling","ComponentM","_ref3","ComponentSStyling","ComponentS","_ref4","ComponentXSStyling","ComponentXS","_ref5","textTransform","ComponentXXSStyling","ComponentXXS","_ref6","ComponentResponsive","_ref7","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';\nimport styled, {css} from 'styled-components';\nimport {COLORS} from '.';\nimport {Property} from 'csstype';\nimport {Size} from '../types';\n\nexport const TypographyBase = styled.div<{$color?: string,\n $lineHeight: number,\n $fontSize: number,\n $fontWeight: number,\n $fontStyle?: string,\n $textTransform?: Property.TextTransform,\n $textDecorationLine?: Property.TextDecorationLine,\n}>`\n font-size: ${props => props.$fontSize}px;\n font-weight: ${props => props.$fontWeight};\n line-height: ${props => props.$lineHeight}px;\n text-transform: ${props => props.$textTransform ?? 'none' };\n text-decoration-line: ${props => props.$textDecorationLine ?? 'none'};\n font-style: ${props => props.$fontStyle ?? 'normal'};\n color: ${props => props.$color ?? COLORS.getColor('black', props.theme)};\n`;\n\nenum ComponentTextStyle {\n Regular = 1,\n Bold,\n Italic,\n UppercaseBold,\n}\n\ntype ComponentProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'color' | 'className' | 'children'> & {\n color?: string;\n className?: string;\n textStyle?: ComponentTextStyle;\n children?: React.ReactNode;\n};\n\nconst componentFontWeight = (textStyle?: ComponentTextStyle) => {\n let fontWeight = 400;\n if (textStyle === ComponentTextStyle.Bold || textStyle === ComponentTextStyle.UppercaseBold) {\n fontWeight = 700;\n }\n return fontWeight;\n};\n\nconst componentFontStyle = (textStyle?: ComponentTextStyle) => {\n let fontStyle = textStyle && textStyle === ComponentTextStyle.Italic ? 'italic' : '';\n return fontStyle;\n};\n\nconst componentTextTransformation = (textStyle?: ComponentTextStyle): Property.TextTransform => {\n let fontStyle: Property.TextTransform = textStyle && textStyle === ComponentTextStyle.UppercaseBold ? 'uppercase' : 'none';\n return fontStyle;\n};\n\nconst ComponentStyling = (fontSize: string, lineHeight: string, textStyle: ComponentTextStyle, color: string | undefined | null) => {\n return css`\n font-size: ${fontSize};\n font-weight: ${componentFontWeight(textStyle)};\n line-height: ${lineHeight};\n font-style: ${componentFontStyle(textStyle)};\n ${props => color === null ? '' : `color: ${color || COLORS.getColor('black', props.theme)};`}\n `;\n};\n\nconst ComponentXLStyling = (textStyle: ComponentTextStyle, color: string | null) => ComponentStyling('24px', '28px', textStyle, color);\nconst ComponentXL: React.FunctionComponent<ComponentProps> = ({color, textStyle, children, className, ...rest}) => {\n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n return (\n <TypographyBase className={className} $color={color} $lineHeight={28} $fontSize={24} $fontWeight={fontWeight}\n $fontStyle={fontStyle} {...rest}>\n {children}\n </TypographyBase>\n );\n};\n\nconst ComponentLStyling = (textStyle: ComponentTextStyle, color: string | null) => ComponentStyling('20px', '24px', textStyle, color);\nconst ComponentL: React.FunctionComponent<ComponentProps> = ({color, textStyle, children, className, ...rest}) => {\n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n return (\n <TypographyBase className={className} $color={color} $lineHeight={24} $fontSize={20} $fontWeight={fontWeight}\n $fontStyle={fontStyle} {...rest}>\n {children}\n </TypographyBase>\n );\n};\n\nconst ComponentMStyling = (textStyle: ComponentTextStyle, color: string | undefined | null) => ComponentStyling('18px', '24px', textStyle, color);\nconst ComponentM: React.FunctionComponent<ComponentProps> = ({color, textStyle, children, className, ...rest}) => {\n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n return (\n <TypographyBase className={className} $color={color} $lineHeight={24} $fontSize={18} $fontWeight={fontWeight}\n $fontStyle={fontStyle} {...rest}>\n {children}\n </TypographyBase>\n );\n};\n\nconst ComponentSStyling = (textStyle: ComponentTextStyle, color: string | null) => ComponentStyling('16px', '20px', textStyle, color);\nconst ComponentS: React.FunctionComponent<ComponentProps> = ({color, textStyle, children, className, ...rest}) => {\n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n return (\n <TypographyBase className={className} $color={color} $lineHeight={20} $fontSize={16} $fontWeight={fontWeight}\n $fontStyle={fontStyle} {...rest}>\n {children}\n </TypographyBase>\n );\n};\n\nconst ComponentXSStyling = (textStyle: ComponentTextStyle, color: string | null) => ComponentStyling('14px', '16px', textStyle, color);\nconst ComponentXS: React.FunctionComponent<ComponentProps> = ({color, textStyle, children, className, ...rest}) => {\n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n let textTransform = componentTextTransformation(textStyle);\n return (\n <TypographyBase className={className} $color={color} $lineHeight={16} $fontSize={14} $fontWeight={fontWeight}\n $fontStyle={fontStyle} $textTransform={textTransform} {...rest}>\n {children}\n </TypographyBase>\n );\n};\n\nconst ComponentXXSStyling = (textStyle: ComponentTextStyle, color: string | null) => ComponentStyling('12px', '16px', textStyle, color);\nconst ComponentXXS: React.FunctionComponent<ComponentProps> = ({color, textStyle, children, className, ...rest}) => {\n let fontWeight = componentFontWeight(textStyle);\n let fontStyle = componentFontStyle(textStyle);\n let textTransform = componentTextTransformation(textStyle);\n return (\n <TypographyBase className={className} $color={color} $lineHeight={16} $fontSize={12} $fontWeight={fontWeight}\n $fontStyle={fontStyle} $textTransform={textTransform} {...rest}>\n {children}\n </TypographyBase>\n );\n};\n\nconst ComponentResponsive: React.FunctionComponent<ComponentProps & { size?: Size; width: number }> = ({\n color,\n textStyle,\n children,\n size,\n width, \n ...rest\n }) => {\n let fontsize = size;\n if (!size) {\n if (width == -1) {\n fontsize = Size.Medium;\n } else if (width < 768) {\n fontsize = Size.Small;\n } else if (width < 992) {\n fontsize = Size.Medium;\n } else {\n fontsize = Size.Large;\n }\n }\n switch (fontsize) {\n case Size.XXSmall:\n return <ComponentXXS color={color} textStyle={textStyle} children={children} {...rest}/>;\n case Size.XSmall:\n return <ComponentXS color={color} textStyle={textStyle} children={children} {...rest}/>;\n case Size.Small:\n return <ComponentS color={color} textStyle={textStyle} children={children} {...rest}/>;\n case Size.Medium:\n return <ComponentM color={color} textStyle={textStyle} children={children} {...rest}/>;\n case Size.Large:\n default:\n return <ComponentL color={color} textStyle={textStyle} children={children} {...rest}/>;\n }\n};\n\nexport const Typography = css`\n html {\n font-size: 100%;\n }\n\n @media (min-width: 48rem) {\n html {\n font-size: 112.5%;\n }\n }\n\n @media (min-width: 80rem) {\n html {\n font-size: 125%;\n }\n }\n\n h1, h2, h3, h4, h5, h6 {\n font-weight: 700;\n line-height: 120%;\n margin: 0;\n }\n\n h1 {\n font-size: 3rem;\n }\n\n h2 {\n font-size: 2.5rem;\n }\n\n h3 {\n font-size: 2rem;\n }\n\n h4 {\n font-size: 1.75rem;\n }\n\n h5 {\n font-size: 1.5rem;\n }\n\n h6 {\n font-size: 1.25rem;\n }\n\n p {\n font-size: 1rem;\n line-height: 150%;\n margin: 0 0 0.5rem;\n }\n\n p:last-of-type {\n margin-bottom: 0;\n }\n\n\n h1, h2, h3, h4, h5, h6, p, span {\n max-width: 34rem;\n }\n\n :lang(ja-jp) {\n h1, h2, h3, h4, h5, h6, p, span {\n max-width: 30rem;\n }\n }\n\n :lang(ko-kr) {\n h1, h2, h3, h4, h5, h6, p, span {\n max-width: 30rem;\n }\n }\n\n :lang(zh-CN) {\n h1, h2, h3, h4, h5, h6, p, span {\n max-width: 30rem;\n }\n }\n`;\n\nexport const QuoteTypography = css`\n font-size: 1.5rem;\n line-height: 150%;\n margin-bottom: 0.75rem;\n`;\n\nexport const NoteTypography = css`\n font-size: 0.75rem;\n line-height: 150%;\n margin-bottom: 0.375rem;\n`;\n\nexport const UpperCaseTypography = css`\n font-size: 0.75rem;\n line-height: 150%;\n font-weight: 700;\n text-transform: uppercase;\n`;\n\nexport const Note = styled.p`\n ${NoteTypography}\n`;\n\nexport const Quote = styled.p`\n ${QuoteTypography}\n`;\n\nexport const UpperCase = styled.p`\n ${UpperCaseTypography}\n`;\n\nexport {\n ComponentTextStyle,\n ComponentXL,\n ComponentL,\n ComponentM,\n ComponentS,\n ComponentXS,\n ComponentXXS,\n ComponentResponsive\n};\nexport {\n ComponentXLStyling,\n ComponentLStyling,\n ComponentMStyling,\n ComponentSStyling,\n ComponentXSStyling,\n ComponentXXSStyling\n};\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,SAAA;EAAAC,UAAA;EAAAC,UAAA;EAAAC,UAAA;EAAAC,UAAA;EAAAC,UAAA;EAAAC,UAAA;AAAA,IAAAC,eAAA,EAAAC,gBAAA,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,SAAArB,wBAAAqB,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,gBAAAK,OAAA,CAA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AA,OAAA0C,uBAAA,sHAKrC;AAACgB,OAAA,CAAA4D,mBAAA,GAAAA,mBAAA;AAEK,IAAMC,IAAI,GAAG/E,4BAAM,CAACgF,CAAC,CAAAvH,gBAAA,KAAAA,gBAAA,OAAAyC,uBAAA,+BACxB2E,cAAc,CACjB;AAAC3D,OAAA,CAAA6D,IAAA,GAAAA,IAAA;AAEK,IAAME,KAAK,GAAGjF,4BAAM,CAACgF,CAAC,CAAAtH,gBAAA,KAAAA,gBAAA,OAAAwC,uBAAA,+BACzB0E,eAAe,CAClB;AAAC1D,OAAA,CAAA+D,KAAA,GAAAA,KAAA;AAEK,IAAMC,SAAS,GAAGlF,4BAAM,CAACgF,CAAC,CAAArH,gBAAA,KAAAA,gBAAA,OAAAuC,uBAAA,+BAC7B4E,mBAAmB,CACtB;AAAC5D,OAAA,CAAAgE,SAAA,GAAAA,SAAA","ignoreList":[]}
|
|
@@ -16,7 +16,7 @@ declare enum ComponentTextStyle {
|
|
|
16
16
|
Italic = 3,
|
|
17
17
|
UppercaseBold = 4
|
|
18
18
|
}
|
|
19
|
-
type ComponentProps = {
|
|
19
|
+
type ComponentProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'color' | 'className' | 'children'> & {
|
|
20
20
|
color?: string;
|
|
21
21
|
className?: string;
|
|
22
22
|
textStyle?: ComponentTextStyle;
|