@lunit/oui 1.1.0-alpha.2 → 1.1.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/Alert/index.js +2 -0
- package/dist/cjs/components/Alert/index.js.map +1 -0
- package/dist/cjs/components/Button/index.js +2 -0
- package/dist/cjs/components/Button/index.js.map +1 -0
- package/dist/cjs/components/Card/index.js +2 -0
- package/dist/cjs/components/Card/index.js.map +1 -0
- package/dist/cjs/components/Checkbox/index.js +2 -0
- package/dist/cjs/components/Checkbox/index.js.map +1 -0
- package/dist/cjs/components/Chip/index.js +2 -0
- package/dist/cjs/components/Chip/index.js.map +1 -0
- package/dist/cjs/components/DataTable/index.js +2 -0
- package/dist/cjs/components/DataTable/index.js.map +1 -0
- package/dist/cjs/components/DatePicker/index.js +2 -0
- package/dist/cjs/components/DatePicker/index.js.map +1 -0
- package/dist/cjs/components/Dialog/index.js +2 -0
- package/dist/cjs/components/Dialog/index.js.map +1 -0
- package/dist/cjs/components/Divider/index.js +2 -0
- package/dist/cjs/components/Divider/index.js.map +1 -0
- package/dist/cjs/components/Dropdown/index.js +2 -0
- package/dist/cjs/components/Dropdown/index.js.map +1 -0
- package/dist/cjs/components/EllipsisTypography/index.js +2 -0
- package/dist/cjs/components/EllipsisTypography/index.js.map +1 -0
- package/dist/cjs/components/FileDnDZone/index.js +2 -0
- package/dist/cjs/components/FileDnDZone/index.js.map +1 -0
- package/dist/cjs/components/List/index.js +2 -0
- package/dist/cjs/components/List/index.js.map +1 -0
- package/dist/cjs/components/LoadingIndicator/index.js +2 -0
- package/dist/cjs/components/LoadingIndicator/index.js.map +1 -0
- package/dist/cjs/components/Menu/index.js +2 -0
- package/dist/cjs/components/Menu/index.js.map +1 -0
- package/dist/cjs/components/Pagination/index.js +2 -0
- package/dist/cjs/components/Pagination/index.js.map +1 -0
- package/dist/cjs/components/ProductLabel/index.js +2 -0
- package/dist/cjs/components/ProductLabel/index.js.map +1 -0
- package/dist/cjs/components/Progress/index.js +2 -0
- package/dist/cjs/components/Progress/index.js.map +1 -0
- package/dist/cjs/components/Radio/index.js +2 -0
- package/dist/cjs/components/Radio/index.js.map +1 -0
- package/dist/cjs/components/ResizeObserver/index.js +2 -0
- package/dist/cjs/components/ResizeObserver/index.js.map +1 -0
- package/dist/cjs/components/Stepper/index.js +2 -0
- package/dist/cjs/components/Stepper/index.js.map +1 -0
- package/dist/cjs/components/TabbedPanel/index.js +2 -0
- package/dist/cjs/components/TabbedPanel/index.js.map +1 -0
- package/dist/cjs/components/TextField/index.js +2 -0
- package/dist/cjs/components/TextField/index.js.map +1 -0
- package/dist/cjs/components/Tooltip/index.js +2 -0
- package/dist/cjs/components/Tooltip/index.js.map +1 -0
- package/dist/cjs/components/UploadManager/index.js +2 -0
- package/dist/cjs/components/UploadManager/index.js.map +1 -0
- package/dist/cjs/index.js +2 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/types/components/BaseTextField/BaseTextField.styled.d.ts +1 -1
- package/dist/types/components/Button/styleds/ContainedButton.styled.d.ts +1 -1
- package/dist/types/components/Button/styleds/GhostButton.styled.d.ts +1 -1
- package/dist/types/components/Button/styleds/OutlinedButton.styled.d.ts +1 -1
- package/dist/types/components/Chip/Chip.styled.d.ts +1 -1
- package/dist/types/components/Dialog/Dialog.styled.d.ts +1 -1
- package/dist/types/components/Divider/Divider.styled.d.ts +1 -1
- package/dist/types/components/Dropdown/DropdownItem.styled.d.ts +1 -1
- package/dist/types/components/Dropdown/DropdownSubtitle.styled.d.ts +1 -1
- package/dist/types/components/EllipsisTypography/EllipsisTypography.styled.d.ts +1 -1
- package/dist/types/components/List/List.styled.d.ts +2 -2
- package/dist/types/components/List/ListItem.styled.d.ts +4 -4
- package/dist/types/components/List/ListItemCaption.styled.d.ts +1 -1
- package/dist/types/components/LoadingIndicator/LoadingIndicator.styled.d.ts +2 -2
- package/dist/types/components/Menu/Menu.styled.d.ts +1 -1
- package/dist/types/components/Menu/MenuItem.styled.d.ts +1 -1
- package/dist/types/components/Pagination/Pagination.styled.d.ts +2 -2
- package/dist/types/components/ProductLabel/ProductLabel.styled.d.ts +2 -2
- package/dist/types/components/Stepper/Stepper.styled.d.ts +1 -1
- package/dist/types/components/TabbedPanel/TabbedPanel.styled.d.ts +2 -2
- package/dist/types/components/UploadManager/UploadManager.styled.d.ts +3 -3
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components/EllipsisTypography/index.js","mappings":"qGAUA,MAAMA,EAAsC,CAC1CC,MAAO,CAAEC,MAAO,GAAIC,OAAQ,KAC5BC,MAAO,CAAEF,MAAO,GAAIC,OAAQ,OAGxBE,EAAiD,CACrDC,OAAQN,EACRO,KAAMP,EACNQ,MAAOR,EACPS,IAAKT,GAGMU,EAAoB,CAC/BC,EACAC,KAEA,MAAMC,EAAOR,EAAuBO,GAAkBD,GACtD,MAAyB,SAArBC,GAAoD,UAArBA,EAC1B,CAAEV,MAAOW,EAAKV,OAAQA,OAAQU,EAAKX,OAErCW,CAAI,ECKb,GA7BoB,IAAAC,SAClB,EAAGC,YAAWC,SAAQC,MACpB,SAAC,UAAU,IACLA,EACJD,IAAKA,EACLE,QAAS,CAAEC,OAAQJ,MAGvB,CACEK,kBAAoBC,GAAkB,cAATA,GATb,EAWlB,EAAGC,QAAOT,OAAO,QAASU,YAAY,SAAUC,gBAAgB,OAChE,CAAC,MAAM,EAAAC,eAAeC,WAAY,IAC7BC,EAAA,EAAkBC,MACrBC,OAAQ,iBACRC,QAASN,EAAY,kBDoBQO,ECpB4BlB,EDqB3D,CACEZ,MAAO,UACPG,MAAO,aACN2B,ICvBDC,gBAAiBV,EAAMW,QAAQC,YAAY,IAC3CC,aAAuB,UAATtB,EAAmB,MAAQ,MACzCuB,OACE,6FAEJ,CAAC,MAAM,EAAAX,eAAeY,SAAU,CAC9BC,MAAOhB,EAAMW,QAAQC,YAAY,IACjCL,OAAQ,GDIyBjB,ECJDW,EDIq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4B,SAC1B/G,EACAkH,gBAAiBC,EAAmB,iBACpCjJ,EAAmB,SAAQ,SAC3BqI,EAAW,KACRtG,IAEH,MAAMmH,GAAgB,IAAAC,QAAoB,MACpCf,EAAYrG,EAAWqG,WAAa,MACpCY,EAAyC,MAAvBC,EAA8BA,EAAsB,GACrEG,EAAaC,IAAkB,IAAAC,WAAS,IACzC,iBAAEC,EAAgB,oBAAEC,IAAwB,IAAAC,YAAWZ,GAkD7D,OAhDA,IAAAa,YAAU,KACR,GAAIR,EAAcS,QAAS,CACzB,MAAMC,EAAkBV,EAAcS,QAChCE,EAAgB,KAcZD,EAAOE,aAAeF,EAAOG,aAAef,IAAoBI,EAClEC,GAAe,GAEfO,EAAOE,aAAeF,EAAOG,cAAgBf,GAC7CI,GAEAC,GAAe,E,EASvB,OAJIE,IACFS,QAAQC,IAAIV,GACZA,EAAiBK,EAAQC,IAEpB,KACDL,GAAqBA,EAAoBI,EAAO,C,CAGxD,MAAO,MAAQ,GACd,CACDV,EACAd,EACAgB,EACAJ,EACAO,EACAC,IAGFQ,QAAQC,IAAIb,GAERA,GAEA,SAACc,EAAA,EAAO,CACNrI,MAAOC,EACPnB,UAAWX,EACXC,KAAK,QAAO,UAEZ,SAAC,EAAgB,IACX8B,EACJ3B,IAAK8I,EACLd,UAAWA,EACXC,SAAUA,EAAQ,SAEjBvG,OAMP,SAAC,EAAgB,IACXC,EACJ3B,IAAK8I,EACLd,UAAWA,EACXC,SAAUA,EAAQ,SAEjBvG,GAGP,C","sources":["webpack://@lunit/oui/./src/components/Tooltip/Tooltip.utils.ts","webpack://@lunit/oui/./src/components/Tooltip/Tooltip.styled.tsx","webpack://@lunit/oui/./src/components/Tooltip/Tooltip.tsx","webpack://@lunit/oui/./src/foundations/typography.ts","webpack://@lunit/oui/external commonjs \"@mui/material\"","webpack://@lunit/oui/external commonjs \"@mui/material/styles\"","webpack://@lunit/oui/external commonjs \"react\"","webpack://@lunit/oui/external commonjs \"react/jsx-runtime\"","webpack://@lunit/oui/webpack/bootstrap","webpack://@lunit/oui/webpack/runtime/define property getters","webpack://@lunit/oui/webpack/runtime/hasOwnProperty shorthand","webpack://@lunit/oui/webpack/runtime/make namespace object","webpack://@lunit/oui/./src/components/EllipsisTypography/EllipsisTypography.styled.ts","webpack://@lunit/oui/external commonjs \"lodash\"","webpack://@lunit/oui/./src/components/ResizeObserver/ResizeObserverContext.tsx","webpack://@lunit/oui/./src/components/EllipsisTypography/EllipsisTypography.tsx"],"sourcesContent":["import type {\n TooltipPlacement,\n TooltipPlacementToSize,\n TooltipSize,\n ArrowSizeBySize,\n TooltipSizes,\n} from './Tooltip.types';\n\n// small(10px * 6px) -> (10/2)^2 + 6^2 = 7.8^2\n// large(16px * 8px) -> (16/2)^2 + 8^2 = 11.3^2\nconst setArrowSizeBySize: ArrowSizeBySize = {\n small: { width: 11, height: 7.8 },\n large: { width: 16, height: 11.3 },\n};\n\nconst tooltipPlacementToSize: TooltipPlacementToSize = {\n bottom: setArrowSizeBySize,\n left: setArrowSizeBySize,\n right: setArrowSizeBySize,\n top: setArrowSizeBySize,\n};\n\nexport const resizeArrowBySize = (\n tooltipType: TooltipSizes,\n tooltipPlacement: TooltipPlacement,\n): TooltipSize => {\n const size = tooltipPlacementToSize[tooltipPlacement][tooltipType];\n if (tooltipPlacement === 'left' || tooltipPlacement === 'right') {\n return { width: size.height, height: size.width };\n }\n return size;\n};\n\nexport const setMarginByPlacement = (tooltipPlacement: TooltipPlacement, margin: TooltipSize) =>\n ({\n bottom: `-${margin.height}px 0 0 0`,\n right: `0 0 0 -${margin.width}px`,\n left: `0 -${margin.width}px 0 0`,\n top: `0 0 -${margin.height}px 0`,\n })[tooltipPlacement];\n\nexport const setPaddingBySize = (tooltipSize: TooltipSizes) =>\n ({\n small: '6px 8px',\n large: '12px 16px',\n })[tooltipSize];\n","import React from 'react';\nimport { Tooltip as MuiTooltip, styled, tooltipClasses } from '@mui/material';\nimport typographyOptions from '../../foundations/typography';\nimport { resizeArrowBySize, setMarginByPlacement, setPaddingBySize } from './Tooltip.utils';\nimport type { TooltipProps } from './Tooltip.types';\n\nconst BaseTooltip = styled(\n ({ className, ref, ...props }: TooltipProps) => (\n <MuiTooltip\n {...props}\n ref={ref}\n classes={{ popper: className }}\n />\n ),\n {\n shouldForwardProp: (prop) => prop !== 'noPadding',\n },\n)(({ theme, size = 'small', placement = 'bottom', noPadding }) => ({\n [`& .${tooltipClasses.tooltip}`]: {\n ...typographyOptions.body5,\n margin: '0px !important',\n padding: noPadding ? '0px !important' : setPaddingBySize(size),\n backgroundColor: theme.palette.neutralGrey[75],\n borderRadius: size === 'small' ? '4px' : '8px',\n filter:\n 'drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.32)) drop-shadow(0px 4px 12px rgba(0, 0, 0, 0.4))',\n },\n [`& .${tooltipClasses.arrow}`]: {\n color: theme.palette.neutralGrey[75],\n margin: `${setMarginByPlacement(placement, resizeArrowBySize(size, placement))} !important`,\n width: `${resizeArrowBySize(size, placement).width}px !important`,\n height: `${resizeArrowBySize(size, placement).height}px !important`,\n },\n}));\n\nexport default BaseTooltip;\n","import React from 'react';\nimport { Box, Typography } from '@mui/material';\nimport { forwardRef } from 'react';\nimport BaseTooltip from './Tooltip.styled';\nimport type { TooltipProps } from './Tooltip.types';\n\nconst Tooltip = forwardRef<HTMLDivElement, TooltipProps>(\n (\n {\n icon,\n title,\n children,\n size = 'small',\n placement = 'bottom',\n noPadding = false,\n ...otherProps\n }: TooltipProps,\n ref,\n ) => {\n return (\n <BaseTooltip\n ref={ref}\n arrow\n size={size}\n PopperProps={{\n popperOptions: {\n modifiers: [\n {\n name: 'offset',\n enabled: true,\n options: {\n offset: [0, 6],\n },\n },\n ],\n },\n }}\n title={\n icon && size === 'small' ? (\n <Box sx={{ display: 'flex', flexDirection: 'row', gap: '8px' }}>\n {icon}\n {title && <Typography variant=\"body5\">{title}</Typography>}\n </Box>\n ) : (\n title\n )\n }\n placement={placement}\n noPadding={noPadding}\n {...otherProps}\n >\n {children}\n </BaseTooltip>\n );\n },\n);\n\nexport default Tooltip;\n","import { TypographyOptions } from '@mui/material/styles/createTypography';\n\ndeclare module '@mui/material/styles' {\n interface TypographyVariants {\n h7: React.CSSProperties;\n h8: React.CSSProperties;\n h9: React.CSSProperties;\n h10: React.CSSProperties;\n\n subtitle3: React.CSSProperties;\n\n body_b1: React.CSSProperties;\n body_b2: React.CSSProperties;\n\n body_sb1: React.CSSProperties;\n body_sb2: React.CSSProperties;\n body_sb3: React.CSSProperties;\n body_sb4: React.CSSProperties;\n body_sb5: React.CSSProperties;\n\n body_m1: React.CSSProperties;\n body_m2: React.CSSProperties;\n\n body1: React.CSSProperties;\n body2: React.CSSProperties;\n body3: React.CSSProperties;\n body4: React.CSSProperties;\n body5: React.CSSProperties;\n body6: React.CSSProperties;\n body7: React.CSSProperties;\n body8: React.CSSProperties;\n\n small_body_b1: React.CSSProperties;\n small_body_b2: React.CSSProperties;\n small_body_b3: React.CSSProperties;\n small_body_b4: React.CSSProperties;\n small_body_b5: React.CSSProperties;\n\n small_body_sb1: React.CSSProperties;\n\n small_body_m1: React.CSSProperties;\n small_body_m2: React.CSSProperties;\n small_body_m3: React.CSSProperties;\n small_body_m4: React.CSSProperties;\n small_body_m5: React.CSSProperties;\n small_body_m6: React.CSSProperties;\n small_body_m7: React.CSSProperties;\n\n small_body1: React.CSSProperties;\n small_body2: React.CSSProperties;\n small_body3: React.CSSProperties;\n small_body4: React.CSSProperties;\n small_body5: React.CSSProperties;\n\n small_body_l1: React.CSSProperties;\n small_body_l2: React.CSSProperties;\n\n overline: React.CSSProperties;\n\n button1: React.CSSProperties;\n button2: React.CSSProperties;\n\n caption: React.CSSProperties;\n }\n\n interface TypographyVariantsOptions {\n h7?: React.CSSProperties;\n h8?: React.CSSProperties;\n h9?: React.CSSProperties;\n h10?: React.CSSProperties;\n\n subtitle3?: React.CSSProperties;\n\n body_b1?: React.CSSProperties;\n body_b2?: React.CSSProperties;\n\n body_sb1?: React.CSSProperties;\n body_sb2?: React.CSSProperties;\n body_sb3?: React.CSSProperties;\n body_sb4?: React.CSSProperties;\n body_sb5?: React.CSSProperties;\n\n body_m1?: React.CSSProperties;\n body_m2?: React.CSSProperties;\n\n body1?: React.CSSProperties;\n body2?: React.CSSProperties;\n body3?: React.CSSProperties;\n body4?: React.CSSProperties;\n body5?: React.CSSProperties;\n body6?: React.CSSProperties;\n body7?: React.CSSProperties;\n body8?: React.CSSProperties;\n\n small_body_b1?: React.CSSProperties;\n small_body_b2?: React.CSSProperties;\n small_body_b3?: React.CSSProperties;\n small_body_b4?: React.CSSProperties;\n small_body_b5?: React.CSSProperties;\n\n small_body_sb1?: React.CSSProperties;\n\n small_body_m1?: React.CSSProperties;\n small_body_m2?: React.CSSProperties;\n small_body_m3?: React.CSSProperties;\n small_body_m4?: React.CSSProperties;\n small_body_m5?: React.CSSProperties;\n small_body_m6?: React.CSSProperties;\n small_body_m7?: React.CSSProperties;\n\n small_body1?: React.CSSProperties;\n small_body2?: React.CSSProperties;\n small_body3?: React.CSSProperties;\n small_body4?: React.CSSProperties;\n small_body5?: React.CSSProperties;\n\n small_body_l1?: React.CSSProperties;\n small_body_l2?: React.CSSProperties;\n\n overline?: React.CSSProperties;\n\n button1?: React.CSSProperties;\n button2?: React.CSSProperties;\n\n caption?: React.CSSProperties;\n }\n}\n\ndeclare module '@mui/material/Typography' {\n interface TypographyPropsVariantOverrides {\n h7: true;\n h8: true;\n h9: true;\n h10: true;\n\n subtitle3: true;\n\n body_b1: true;\n body_b2: true;\n\n body_sb1: true;\n body_sb2: true;\n body_sb3: true;\n body_sb4: true;\n body_sb5: true;\n\n body_m1: true;\n body_m2: true;\n\n body1: true;\n body2: true;\n body3: true;\n body4: true;\n body5: true;\n body6: true;\n body7: true;\n body8: true;\n\n small_body_b1: true;\n small_body_b2: true;\n small_body_b3: true;\n small_body_b4: true;\n small_body_b5: true;\n\n small_body_sb1: true;\n\n small_body_m1: true;\n small_body_m2: true;\n small_body_m3: true;\n small_body_m4: true;\n small_body_m5: true;\n small_body_m6: true;\n small_body_m7: true;\n\n small_body1: true;\n small_body2: true;\n small_body3: true;\n small_body4: true;\n small_body5: true;\n\n small_body_l1: true;\n small_body_l2: true;\n\n overline: true;\n\n button1: true;\n button2: true;\n\n caption: true;\n }\n}\n\nconst typographyOptions: TypographyOptions = {\n fontFamily: [\n 'Pretendard',\n '-apple-system',\n 'BlinkMacSystemFont',\n '\"Segoe UI\"',\n 'Roboto',\n '\"Helvetica Neue\"',\n 'Arial',\n 'sans-serif',\n '\"Apple Color Emoji\"',\n '\"Segoe UI Emoji\"',\n '\"Segoe UI Symbol\"',\n ].join(','),\n h1: {\n fontWeight: 600,\n fontSize: '52px',\n lineHeight: '68px',\n },\n h2: {\n fontWeight: 700,\n fontSize: '38px',\n lineHeight: '48px',\n },\n h3: {\n fontWeight: 500,\n fontSize: '38px',\n lineHeight: '48px',\n },\n h4: {\n fontWeight: 600,\n fontSize: '30px',\n lineHeight: '48px',\n },\n h5: {\n fontWeight: 400,\n fontSize: '30px',\n lineHeight: '48px',\n },\n h6: {\n fontWeight: 700,\n fontSize: '28px',\n lineHeight: 'auto',\n },\n h7: {\n fontWeight: 600,\n fontSize: '24px',\n lineHeight: '36px',\n },\n h8: {\n fontWeight: 600,\n fontSize: '20px',\n lineHeight: '28px',\n },\n h9: {\n fontWeight: 600,\n fontSize: '16px',\n lineHeight: '24px',\n },\n subtitle1: {\n fontSize: 20,\n fontWeight: 600,\n lineHeight: '28px',\n },\n subtitle2: {\n fontSize: 18,\n fontWeight: 600,\n lineHeight: '24px',\n },\n subtitle3: {\n fontSize: 16,\n fontWeight: 600,\n lineHeight: '24px',\n },\n\n body_b1: {\n fontWeight: 700,\n fontSize: '14px',\n lineHeight: '20px',\n },\n body_b2: {\n fontWeight: 700,\n fontSize: '14px',\n lineHeight: 'auto',\n },\n\n body_sb1: {\n fontWeight: 600,\n fontSize: '16px',\n lineHeight: '24px',\n },\n body_sb2: {\n fontWeight: 600,\n fontSize: '16px',\n lineHeight: '20px',\n },\n body_sb3: {\n fontWeight: 700,\n fontSize: '15px',\n lineHeight: '16px',\n },\n body_sb4: {\n fontWeight: 600,\n fontSize: '14px',\n lineHeight: '20px',\n },\n body_sb5: {\n fontWeight: 600,\n fontSize: '12.4px',\n lineHeight: '16px',\n },\n\n body_m1: {\n fontWeight: 500,\n fontSize: '14px',\n lineHeight: '20px',\n },\n body_m2: {\n fontWeight: 500,\n fontSize: '13px',\n lineHeight: '18px',\n letterSpacing: '0.2px',\n },\n\n body1: {\n fontWeight: 400,\n fontSize: '16px',\n lineHeight: '24px',\n },\n body2: {\n fontWeight: 400,\n fontSize: '16px',\n lineHeight: 'auto',\n },\n body3: {\n fontWeight: 400,\n fontSize: '15px',\n lineHeight: '24px',\n },\n body4: {\n fontWeight: 400,\n fontSize: '14px',\n lineHeight: '28px',\n },\n body5: {\n fontWeight: 400,\n fontSize: '14px',\n lineHeight: '20px',\n },\n body6: {\n fontWeight: 400,\n fontSize: '13px',\n lineHeight: '18px',\n },\n body7: {\n fontWeight: 400,\n fontSize: '12.4px',\n lineHeight: '16px',\n },\n body8: {\n fontWeight: 400,\n fontSize: '12px',\n lineHeight: '16px',\n },\n\n small_body_b1: {\n fontWeight: 700,\n fontSize: '12px',\n lineHeight: '12px',\n },\n small_body_b2: {\n fontWeight: 700,\n fontSize: '12px',\n lineHeight: '16px',\n },\n small_body_b3: {\n fontWeight: 700,\n fontSize: '10px',\n lineHeight: 'auto',\n },\n small_body_b4: {\n fontWeight: 700,\n fontSize: '10px',\n lineHeight: '12px',\n },\n small_body_b5: {\n fontWeight: 700,\n fontSize: '8px',\n lineHeight: 'auto',\n },\n\n small_body_sb1: {\n fontWeight: 600,\n fontSize: '12px',\n lineHeight: '16px',\n },\n\n small_body_m1: {\n fontWeight: 500,\n fontSize: '13px',\n lineHeight: '20px',\n },\n small_body_m2: {\n fontWeight: 500,\n fontSize: '12px',\n lineHeight: '20px',\n },\n small_body_m3: {\n fontWeight: 500,\n fontSize: '10px',\n lineHeight: 'auto',\n },\n small_body_m4: {\n fontWeight: 500,\n fontSize: '10px',\n lineHeight: '16px',\n },\n small_body_m5: {\n fontWeight: 500,\n fontSize: '8px',\n lineHeight: 'auto',\n },\n small_body_m6: {\n fontWeight: 500,\n fontSize: '8px',\n lineHeight: '12px',\n },\n small_body_m7: {\n fontWeight: 500,\n fontSize: '7px',\n lineHeight: 'auto',\n },\n\n small_body1: {\n fontWeight: 400,\n fontSize: '13px',\n lineHeight: '24px',\n },\n small_body2: {\n fontWeight: 400,\n fontSize: '12px',\n lineHeight: '20px',\n },\n small_body3: {\n fontWeight: 400,\n fontSize: '10px',\n lineHeight: 'auto',\n },\n small_body4: {\n fontWeight: 400,\n fontSize: '10px',\n lineHeight: '14px',\n },\n small_body5: {\n fontWeight: 400,\n fontSize: '8px',\n lineHeight: 'auto',\n },\n\n small_body_l1: {\n fontWeight: 300,\n fontSize: '10px',\n lineHeight: '20px',\n },\n small_body_l2: {\n fontWeight: 300,\n fontSize: '7px',\n lineHeight: 'auto',\n },\n\n overline: {\n fontWeight: 500,\n fontSize: '14px',\n lineHeight: '20px',\n letterSpacing: '1px',\n textTransform: 'uppercase',\n },\n\n button1: {\n fontWeight: 600,\n fontSize: '16px',\n lineHeight: '22px',\n textTransform: 'capitalize',\n },\n button2: {\n fontWeight: 600,\n fontSize: '14px',\n lineHeight: '20px',\n letterSpacing: '0.2px',\n textTransform: 'capitalize',\n },\n\n caption: {\n fontWeight: 500,\n fontSize: '12px',\n lineHeight: '16px',\n },\n};\n\nexport default typographyOptions;\n","module.exports = require(\"@mui/material\");","module.exports = require(\"@mui/material/styles\");","module.exports = require(\"react\");","module.exports = require(\"react/jsx-runtime\");","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import { Typography as MUITypography } from '@mui/material';\nimport { styled } from '@mui/material/styles';\nimport type { BaseEllipsisTypographyProps } from './EllipsisTypography.types';\n\nconst StyledTypography = styled(MUITypography, {\n shouldForwardProp: (prop) =>\n !['direction', 'heightThreshold', 'maxLines'].includes(prop.toString()),\n})<BaseEllipsisTypographyProps>(({ direction, maxLines }) => ({\n maxWidth: '100%',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n lineBreak: 'anywhere',\n display: '-webkit-box',\n WebkitBoxOrient: 'vertical',\n whiteSpace: 'normal',\n ...(direction === 'row' ? { WebkitLineClamp: 1 } : { WebkitLineClamp: maxLines }),\n}));\n\nexport default StyledTypography;\n","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"lodash\");","import React, { createContext, useEffect, useRef } from 'react';\nimport { v4 as uuidV4 } from 'uuid';\nimport { cloneDeep as _cloneDeep, throttle as _throttle } from 'lodash';\n\ntype EntryHandler = (entry: Element) => void;\n\ntype ObserverEntryHandlers = {\n [key: string]: EntryHandler;\n};\n\ninterface IResizeObserverContextProps {\n addResizeHandler(target: Element, handler: EntryHandler): void;\n removeResizeHandler(target: Element): void;\n}\n\nconst ResizeObserverContext: React.Context<IResizeObserverContextProps> = createContext(\n {} as IResizeObserverContextProps,\n);\nconst { Provider } = ResizeObserverContext;\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst ResizeObserverProvider = ({ children }: any) => {\n const observerRef = useRef<ResizeObserver>(null);\n const handlersRef = useRef<ObserverEntryHandlers>({});\n\n function getObserver(): ResizeObserver {\n let current = _cloneDeep(observerRef.current);\n if (current === null) {\n current = new ResizeObserver(\n _throttle((entries) => {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n entries.forEach((entry: any) => {\n const resizeHandlers = handlersRef.current;\n const observerKey = entry.target.attributes.getNamedItem('data-resizeobkey');\n if (resizeHandlers[observerKey.value]) {\n resizeHandlers[observerKey.value](entry.target);\n }\n });\n }),\n );\n }\n return current;\n }\n\n const addResizeHandler = (target: Element, handler: EntryHandler) => {\n let observerKey = target.attributes.getNamedItem('data-resizeobkey');\n if (observerKey === null) {\n target.setAttribute('data-resizeobkey', uuidV4());\n observerKey = target.attributes.getNamedItem('data-resizeobkey');\n }\n handlersRef.current[observerKey!.value] = handler;\n getObserver().observe(target);\n };\n\n const removeResizeHandler = (target: Element) => {\n const observerKey = target.attributes.getNamedItem('data-resizeobkey');\n if (observerKey !== null) {\n delete handlersRef.current[observerKey.value];\n }\n getObserver().unobserve(target);\n };\n\n useEffect(() => {\n return () => {\n if (observerRef.current) {\n observerRef.current.disconnect();\n }\n };\n }, []);\n\n return (\n <Provider\n value={{\n addResizeHandler,\n removeResizeHandler,\n }}\n >\n {children}\n </Provider>\n );\n};\n\nexport { ResizeObserverContext, ResizeObserverProvider };\n","import React from 'react';\nimport { useContext, useEffect, useRef, useState } from 'react';\nimport StyledTypography from './EllipsisTypography.styled';\nimport type { EllipsisTypographyProps } from './EllipsisTypography.types';\nimport { Tooltip } from '../Tooltip';\nimport { ResizeObserverContext } from '../ResizeObserver/ResizeObserverContext';\n\nfunction EllipsisTypography({\n children,\n heightThreshold: heightThresholdProp,\n tooltipPlacement = 'bottom',\n maxLines = 1,\n ...otherProps\n}: EllipsisTypographyProps) {\n const typographyRef = useRef<HTMLElement>(null);\n const direction = otherProps.direction || 'row';\n const heightThreshold = heightThresholdProp != null ? heightThresholdProp : 1;\n const [showTooltip, setShowTooltip] = useState(false);\n const { addResizeHandler, removeResizeHandler } = useContext(ResizeObserverContext);\n\n useEffect(() => {\n if (typographyRef.current) {\n const target: Element = typographyRef.current;\n const resizeHandler = () => {\n switch (direction) {\n case 'row':\n if (target.scrollHeight - target.clientHeight > heightThreshold && !showTooltip) {\n setShowTooltip(true);\n } else if (\n target.scrollHeight - target.clientHeight <= heightThreshold &&\n showTooltip\n ) {\n setShowTooltip(false);\n }\n break;\n case 'column':\n default:\n if (target.scrollHeight - target.clientHeight > heightThreshold && !showTooltip) {\n setShowTooltip(true);\n } else if (\n target.scrollHeight - target.clientHeight <= heightThreshold &&\n showTooltip\n ) {\n setShowTooltip(false);\n }\n }\n };\n\n if (addResizeHandler) {\n console.log(addResizeHandler);\n addResizeHandler(target, resizeHandler);\n }\n return () => {\n if (removeResizeHandler) removeResizeHandler(target);\n };\n }\n return () => {};\n }, [\n typographyRef,\n direction,\n showTooltip,\n heightThreshold,\n addResizeHandler,\n removeResizeHandler,\n ]);\n\n console.log(showTooltip);\n\n if (showTooltip) {\n return (\n <Tooltip\n title={children}\n placement={tooltipPlacement}\n size=\"small\"\n >\n <StyledTypography\n {...otherProps}\n ref={typographyRef}\n direction={direction}\n maxLines={maxLines}\n >\n {children}\n </StyledTypography>\n </Tooltip>\n );\n }\n return (\n <StyledTypography\n {...otherProps}\n ref={typographyRef}\n direction={direction}\n maxLines={maxLines}\n >\n {children}\n </StyledTypography>\n );\n}\n\nexport default EllipsisTypography;\n"],"names":["setArrowSizeBySize","small","width","height","large","tooltipPlacementToSize","bottom","left","right","top","resizeArrowBySize","tooltipType","tooltipPlacement","size","styled","className","ref","props","classes","popper","shouldForwardProp","prop","theme","placement","noPadding","tooltipClasses","tooltip","typography","body5","margin","padding","tooltipSize","backgroundColor","palette","neutralGrey","borderRadius","filter","arrow","color","forwardRef","icon","title","children","otherProps","PopperProps","popperOptions","modifiers","name","enabled","options","offset","Box","sx","display","flexDirection","gap","Typography","variant","fontFamily","join","h1","fontWeight","fontSize","lineHeight","h2","h3","h4","h5","h6","h7","h8","h9","subtitle1","subtitle2","subtitle3","body_b1","body_b2","body_sb1","body_sb2","body_sb3","body_sb4","body_sb5","body_m1","body_m2","letterSpacing","body1","body2","body3","body4","body6","body7","body8","small_body_b1","small_body_b2","small_body_b3","small_body_b4","small_body_b5","small_body_sb1","small_body_m1","small_body_m2","small_body_m3","small_body_m4","small_body_m5","small_body_m6","small_body_m7","small_body1","small_body2","small_body3","small_body4","small_body5","small_body_l1","small_body_l2","overline","textTransform","button1","button2","caption","module","exports","require","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","d","definition","key","o","Object","defineProperty","enumerable","get","obj","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","includes","toString","direction","maxLines","maxWidth","overflow","textOverflow","lineBreak","WebkitBoxOrient","whiteSpace","WebkitLineClamp","ResizeObserverContext","createContext","Provider","heightThreshold","heightThresholdProp","typographyRef","useRef","showTooltip","setShowTooltip","useState","addResizeHandler","removeResizeHandler","useContext","useEffect","current","target","resizeHandler","scrollHeight","clientHeight","console","log","Tooltip"],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(()=>{"use strict";var e={7353:(e,t,i)=>{i.d(t,{Z:()=>o});const o={fontFamily:["Pretendard","-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"'].join(","),h1:{fontWeight:600,fontSize:"52px",lineHeight:"68px"},h2:{fontWeight:700,fontSize:"38px",lineHeight:"48px"},h3:{fontWeight:500,fontSize:"38px",lineHeight:"48px"},h4:{fontWeight:600,fontSize:"30px",lineHeight:"48px"},h5:{fontWeight:400,fontSize:"30px",lineHeight:"48px"},h6:{fontWeight:700,fontSize:"28px",lineHeight:"auto"},h7:{fontWeight:600,fontSize:"24px",lineHeight:"36px"},h8:{fontWeight:600,fontSize:"20px",lineHeight:"28px"},h9:{fontWeight:600,fontSize:"16px",lineHeight:"24px"},subtitle1:{fontSize:20,fontWeight:600,lineHeight:"28px"},subtitle2:{fontSize:18,fontWeight:600,lineHeight:"24px"},subtitle3:{fontSize:16,fontWeight:600,lineHeight:"24px"},body_b1:{fontWeight:700,fontSize:"14px",lineHeight:"20px"},body_b2:{fontWeight:700,fontSize:"14px",lineHeight:"auto"},body_sb1:{fontWeight:600,fontSize:"16px",lineHeight:"24px"},body_sb2:{fontWeight:600,fontSize:"16px",lineHeight:"20px"},body_sb3:{fontWeight:700,fontSize:"15px",lineHeight:"16px"},body_sb4:{fontWeight:600,fontSize:"14px",lineHeight:"20px"},body_sb5:{fontWeight:600,fontSize:"12.4px",lineHeight:"16px"},body_m1:{fontWeight:500,fontSize:"14px",lineHeight:"20px"},body_m2:{fontWeight:500,fontSize:"13px",lineHeight:"18px",letterSpacing:"0.2px"},body1:{fontWeight:400,fontSize:"16px",lineHeight:"24px"},body2:{fontWeight:400,fontSize:"16px",lineHeight:"auto"},body3:{fontWeight:400,fontSize:"15px",lineHeight:"24px"},body4:{fontWeight:400,fontSize:"14px",lineHeight:"28px"},body5:{fontWeight:400,fontSize:"14px",lineHeight:"20px"},body6:{fontWeight:400,fontSize:"13px",lineHeight:"18px"},body7:{fontWeight:400,fontSize:"12.4px",lineHeight:"16px"},body8:{fontWeight:400,fontSize:"12px",lineHeight:"16px"},small_body_b1:{fontWeight:700,fontSize:"12px",lineHeight:"12px"},small_body_b2:{fontWeight:700,fontSize:"12px",lineHeight:"16px"},small_body_b3:{fontWeight:700,fontSize:"10px",lineHeight:"auto"},small_body_b4:{fontWeight:700,fontSize:"10px",lineHeight:"12px"},small_body_b5:{fontWeight:700,fontSize:"8px",lineHeight:"auto"},small_body_sb1:{fontWeight:600,fontSize:"12px",lineHeight:"16px"},small_body_m1:{fontWeight:500,fontSize:"13px",lineHeight:"20px"},small_body_m2:{fontWeight:500,fontSize:"12px",lineHeight:"20px"},small_body_m3:{fontWeight:500,fontSize:"10px",lineHeight:"auto"},small_body_m4:{fontWeight:500,fontSize:"10px",lineHeight:"16px"},small_body_m5:{fontWeight:500,fontSize:"8px",lineHeight:"auto"},small_body_m6:{fontWeight:500,fontSize:"8px",lineHeight:"12px"},small_body_m7:{fontWeight:500,fontSize:"7px",lineHeight:"auto"},small_body1:{fontWeight:400,fontSize:"13px",lineHeight:"24px"},small_body2:{fontWeight:400,fontSize:"12px",lineHeight:"20px"},small_body3:{fontWeight:400,fontSize:"10px",lineHeight:"auto"},small_body4:{fontWeight:400,fontSize:"10px",lineHeight:"14px"},small_body5:{fontWeight:400,fontSize:"8px",lineHeight:"auto"},small_body_l1:{fontWeight:300,fontSize:"10px",lineHeight:"20px"},small_body_l2:{fontWeight:300,fontSize:"7px",lineHeight:"auto"},overline:{fontWeight:500,fontSize:"14px",lineHeight:"20px",letterSpacing:"1px",textTransform:"uppercase"},button1:{fontWeight:600,fontSize:"16px",lineHeight:"22px",textTransform:"capitalize"},button2:{fontWeight:600,fontSize:"14px",lineHeight:"20px",letterSpacing:"0.2px",textTransform:"capitalize"},caption:{fontWeight:500,fontSize:"12px",lineHeight:"16px"}}},3356:(e,t,i)=>{i.d(t,{dS:()=>r,nn:()=>o,sp:()=>l,vI:()=>n});const o=10,r=6,n=280,l=52},8301:(e,t,i)=>{i.d(t,{Z:()=>g});var o=i(8442),r=i(3356);const n={brand:{primary:"#3BC9DB",secondary:"#96EDFF"},text:{primary:"#FFFFFF",secondary:"#AFAFB1",disabled:"#A8A8A8"},background:{},common:{},lunitTeal:{5:"#EAFAFF",10:"#96EDFF",20:"#30DFFC",30:"#3BC9DB",40:"#00C9EA",50:"#0ABEE5",60:"#00B3DB",70:"#048AB4",80:"#05495F",90:"#002930"},neutralGrey:{0:"#FFFFFF",5:"#FAFAFB",10:"#FAFAFA",15:"#F1F1F4",20:"#DFDFE2",25:"#D4D4D6",30:"#C6C6C8",35:"#C4C4C4",40:"#AFAFB1",45:"#99999B",50:"#7F7F81",55:"#737377",60:"#747477",65:"#626264",70:"#4E4E50",75:"#3E3E40",80:"#363B3E",85:"#333336",90:"#2D2D2F",95:"#1F1F21",96:"#1E1E1E",97:"#111113",100:"#000000"},yellow:{5:"#FAF089",10:"#FFE500",20:"#FFE600"},orange:{5:"#FFD9BE",10:"#FFB784",20:"#FF9B54"},magenta:{5:"#F9D1D1",10:"#FFC9C9",20:"#FAB2D3",30:"#FFA4B6",40:"#FF8787",50:"#FF8389",60:"#FB7791",70:"#F765A3",80:"#FF50A0",90:"#E41976",100:"#B20052"},red:{5:"#FA4D56",10:"#FE353F",20:"#FF0000",30:"#E63B28",40:"#DA1E28",50:"#A60D0D"},blue:{5:"#A5D8FF",10:"#A6C0D6",15:"#4DABF7",20:"#78A9FF",25:"#748FFC",30:"#587EFC",35:"#1971D7",40:"#3A5DD9",45:"#4F5DC5",50:"#443AFF",55:"#165BAA",60:"#0055AB",65:"#132A9B",70:"#034480",75:"#0B1354"},green:{10:"#73FF0C",20:"#66BB6A",30:"#42BE65",40:"#24A148",50:"#014B58"},purple:{5:"#BAC8FF",10:"#B0C0F4",15:"#D0BFFF",20:"#C378DB",30:"#9775FA",40:"#9E6BF0",50:"#A155B9",60:"#8D2FAB",70:"#7E41DA",80:"#3612A1"},pdl1Tps:{Cutoff1:"#5091FF",Cutoff49:"#0CA678",Cutoff50:"#F76707",PositiveTc:"#AD1EFF",NegativeTc:"#1EFCFF"},pdl1Cps:{Cutoff1:"#5091FF",Cutoff10:"#F76707",Ca:"#0CA678",Cis:"#5B8DEF",Pch:"#FF8989",PcL:"#D6C896",PositiveTc:"#AD1EFF",NegativeTc:"#1EFCFF",PositiveIc:"#FFEE59",NegativeIc:"#FF5403"},io:{BmrkCutoff1:"#5091FF",BmrkCutoff20:"#EE5140",Inflamed:"#C65F6E",ImmuneEx:"#91C4A3",ImmuneDsrt:"#143DDE",Ca:"#0CA678",Cs:"#91C4A3",Lc:"#FFF950",Tc:"#F76707"},tumorPurity:{DensityBar:"#EE5140",Ca:"#0CA678",Tc:"#F76707",Ntc:"#FFF950"},her2:{Ca:"#0CA678",Cis:"#5B8DEF",Her2_Negative:"#4B93F9",Her2_1_Positive:"#79FD4B",Her2_2_Positive:"#F8E71C",Her2_3_Positive:"#EF0B0B"},erpr:{Ca:"#0CA678",Cis:"#5B8DEF",Erpr_Negative:"#4B93F9",Erpr_1_Positive:"#79FD4B",Erpr_2_Positive:"#F8E71C",Erpr_3_Positive:"#EF0B0B",Cutoff0:"#75F0DA",Cutoff1:"#FD6D0D",Cutoff10:"#9E5EFF"},others:{RowHover:"rgba(134, 148, 177, 0.08)",DatePickerHover:"rgba(114, 146, 253, 0.3)",Teal50Op20:"rgba(0, 201, 234, 0.2)",Teal50Op18:"rgba(0, 201, 234, 0.18)",Grn20Op32:"rgba(102, 187, 106, 0.32)",Grn30OP32:"rgba(66, 190, 101, 0.32)"},alert:{InfoBG:"rgba(55, 81, 167, 0.92)",SuccessBG:"rgba(0, 137, 159, 0.92)",ErrorBG:"rgba(116, 25, 15, 0.9)",WarningBG:"rgba(209, 188, 0, 0.7)"},analysisStatus:{Uploaded:"#99B8D1",Analyzing:"#AA99EC",Analyzed:"#8DCEC3",FailedEnabled:"#CA1414",FailedHover:"#FF8787",FailedSelected:"#A60D0D",Ready:"#00D1FF",ReadyHover:"#38E3FF",ReadySelected:"#006379",Inferred:"#3E63DD",InferredHover:"#46BCFF",InferredSelected:"#273E89",Invalid:"#838389",InvalidHover:"#A7A7A7",InvalidSelected:"#6E6E74"},scope1:"#7292FD",scope2:"#587EFC",scope3:"#B0C0F4",scope4:"#3A5DD9",info:{main:"#748FFC"},success:{main:"#00C9EA"},error:{main:"#FA4D56"},warning:{main:"#FFE600"}};var l=i(7353);const a={fontSize:"14px",boxSizing:"border-box",fontFamily:"Pretendard, sans-serif",fontFeatureSettings:"'tnum', 'ss01', 'ss02', 'ss08'"},p={...a,width:"100vw",height:"100vh",margin:0,padding:0,overflow:"hidden",lineHeight:"normal",color:"white",backgroundColor:n.neutralGrey?.[95],"& a":{textDecoration:"none"}},d={styleOverrides:{html:a,".App":p,"#root":p,"*::-webkit-scrollbar-track":{backgroundColor:"transparent"},"*::-webkit-scrollbar-corner":{backgroundColor:"transparent"},"*::-webkit-scrollbar":{width:r.nn+4,height:r.nn+4},".small-scrollbar::-webkit-scrollbar, .small-scrollbar *::-webkit-scrollbar":{width:r.dS+4,height:r.dS+4},"*::-webkit-scrollbar-thumb":{backgroundColor:n.neutralGrey?.[65],borderRadius:6,border:"2px transparent solid",backgroundClip:"padding-box"},"*::-webkit-scrollbar-thumb:hover":{backgroundColor:n.neutralGrey?.[60]},"*::-webkit-scrollbar-thumb:active":{backgroundColor:n.neutralGrey?.[40]},".Mui-disabled::-webkit-scrollbar-thumb:hover, .Mui-disabled *::-webkit-scrollbar-thumb:hover":{backgroundColor:n.neutralGrey?.[65]},".Mui-disabled::-webkit-scrollbar-thumb:active, .Mui-disabled *::-webkit-scrollbar-thumb:active":{backgroundColor:n.neutralGrey?.[65]},"svg.MuiCircularProgress-svg *":{fill:"none"},"svg *.stroke-inherit":{fill:"none",stroke:"currentColor"},".snackbarVariantError":{background:"rgba(238, 81, 64, 0.18)",border:"1px solid #EE5140",...l.Z.body5},"#page-root.drawer-open ~ .SnackbarContainer-left":{left:`${r.vI+20}px !important`},"#page-root.drawer-close ~ .SnackbarContainer-left":{left:`${r.sp+20}px !important`}}},s={styleOverrides:{root:{borderRadius:8,backgroundColor:n.neutralGrey[75],color:n.neutralGrey[45],"&.MuiInputBase-adornedStart":{paddingLeft:"16px"},"&.MuiInputBase-adornedEnd":{paddingRight:"16px"},"&.Mui-disabled":{backgroundColor:"transparent",borderWidth:"1px",borderColor:n.neutralGrey[45]}},notchedOutline:{border:"1px solid transparent",borderRadius:8,padding:0,"html .MuiOutlinedInput-root:hover &":{borderColor:n.neutralGrey[45]},"html .MuiOutlinedInput-root.Mui-focused &":{borderWidth:"1px",borderColor:n.lunitTeal[10]},"html .MuiOutlinedInput-root.Mui-disabled &":{border:"none"}},input:{...l.Z.body5,color:n.neutralGrey[5],padding:"8px 16px",boxSizing:"border-box","&::placeholder":{color:n.neutralGrey[45]},"&:-webkit-autofill":{boxShadow:`0 0 0 100px ${n.neutralGrey[75]}`,WebkitTextFillColor:n.neutralGrey[5]},"&.Mui-disabled":{backgroundColor:"inherit",borderRadius:"8px",WebkitTextFillColor:n.neutralGrey[45]}}}},g=(0,o.createTheme)({leftDrawer:{width:240},rightDrawer:{width:260},palette:n,spacing:4,typography:l.Z,components:{MuiCssBaseline:d,MuiInputBase:{styleOverrides:{root:{"&":{padding:0}},input:{height:"36px"},inputAdornedStart:{"html &":{paddingLeft:0}},inputAdornedEnd:{"html &":{paddingRight:0}}}},MuiOutlinedInput:s,MuiTextField:{styleOverrides:{root:{width:"100%",input:{textOverflow:"ellipsis"}}},defaultProps:{variant:"standard"}}}})},5692:e=>{e.exports=require("@mui/material")},8442:e=>{e.exports=require("@mui/material/styles")},997:e=>{e.exports=require("react/jsx-runtime")}},t={};function i(o){var r=t[o];if(void 0!==r)return r.exports;var n=t[o]={exports:{}};return e[o](n,n.exports,i),n.exports}i.d=(e,t)=>{for(var o in t)i.o(t,o)&&!i.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{i.r(o),i.d(o,{FileDnDZone:()=>s});var e=i(997),t=i(5692);const r={display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},n=(0,t.styled)(t.Box)((()=>({position:"relative",height:"100%",width:"100%"}))),l=(0,t.styled)(t.Box)((()=>({...r,position:"absolute",left:"calc(50% - 213px)",top:"100px",height:"196px",width:"426px",gap:"16px"}))),a=(0,t.styled)(t.Box)((()=>({...r,gap:"4px"}))),p=(0,t.styled)(t.Box)((()=>({...r,gap:"24px"})));var d=i(8301);const s=({slidesUploaded:i,maxSlideLimit:o=500,acceptedFileFormats:r="Leica(.svs), 3DHistech(.mrxs), and Philips(.isyntax, .tiff)",disabled:s,WrapperProps:g,OuterBoxProps:h,InnerBoxProps:b,SectionBoxProps:x})=>(0,e.jsx)(n,{sx:s?{opacity:.4}:{},...g,children:(0,e.jsxs)(l,{...h,children:[(0,e.jsx)(t.Typography,{variant:"h7",sx:{color:d.Z.palette.neutralGrey[25]},children:"Drag and drop your slide files here"}),(0,e.jsxs)(p,{...b,children:[(0,e.jsxs)(a,{...x,children:[(0,e.jsx)(t.Typography,{variant:"body_sb1",sx:{color:d.Z.palette.neutralGrey[45]},children:"Supported file formats"}),(0,e.jsx)(t.Typography,{variant:"body_sb1",sx:{color:d.Z.palette.neutralGrey[25],padding:"0 18px",textAlign:"center"},children:r})]}),(0,e.jsxs)(a,{...x,children:[(0,e.jsx)(t.Typography,{variant:"body_sb1",sx:{color:d.Z.palette.neutralGrey[45]},children:"Allowed number of slides"}),(0,e.jsx)(t.Typography,{variant:"body_sb1",sx:{color:d.Z.palette.neutralGrey[25]},children:`You have uploaded ${i.toLocaleString()} slides on Lunit SCOPE.`}),(0,e.jsx)(t.Typography,{variant:"body_sb1",sx:{color:d.Z.palette.neutralGrey[25]},children:`The number of slides cannot exceed ${o.toLocaleString()}.`})]})]})]})})})(),module.exports=o})();
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components/FileDnDZone/index.js","mappings":"0DAgMA,MA2SA,EA3S6C,CAC3CA,WAAY,CACV,aACA,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it/oui/./src/systems/index.ts","webpack://@lunit/oui/./src/foundations/palette.ts","webpack://@lunit/oui/./src/components/MuiCssBaseline.ts","webpack://@lunit/oui/./src/components/MuiOutlinedInput.ts","webpack://@lunit/oui/./src/theme.ts","webpack://@lunit/oui/./src/systems/drawer.ts","webpack://@lunit/oui/./src/foundations/spacing.ts","webpack://@lunit/oui/./src/components/MuiInputBase.ts","webpack://@lunit/oui/./src/components/MuiTextField.ts","webpack://@lunit/oui/external commonjs \"@mui/material\"","webpack://@lunit/oui/external commonjs \"@mui/material/styles\"","webpack://@lunit/oui/external commonjs \"react/jsx-runtime\"","webpack://@lunit/oui/webpack/bootstrap","webpack://@lunit/oui/webpack/runtime/define property getters","webpack://@lunit/oui/webpack/runtime/hasOwnProperty shorthand","webpack://@lunit/oui/webpack/runtime/make namespace object","webpack://@lunit/oui/./src/components/FileDnDZone/FileDnDZone.styled.ts","webpack://@lunit/oui/./src/components/FileDnDZone/FileDnDZone.utils.ts","webpack://@lunit/oui/./src/components/FileDnDZone/FileDnDZone.tsx"],"sourcesContent":["import { TypographyOptions } from '@mui/material/styles/createTypography';\n\ndeclare module '@mui/material/styles' {\n interface TypographyVariants {\n h7: React.CSSProperties;\n h8: React.CSSProperties;\n h9: React.CSSProperties;\n h10: React.CSSProperties;\n\n subtitle3: React.CSSProperties;\n\n body_b1: React.CSSProperties;\n body_b2: React.CSSProperties;\n\n body_sb1: React.CSSProperties;\n body_sb2: React.CSSProperties;\n body_sb3: React.CSSProperties;\n body_sb4: React.CSSProperties;\n body_sb5: React.CSSProperties;\n\n body_m1: React.CSSProperties;\n body_m2: React.CSSProperties;\n\n body1: React.CSSProperties;\n body2: React.CSSProperties;\n body3: React.CSSProperties;\n body4: React.CSSProperties;\n body5: React.CSSProperties;\n body6: React.CSSProperties;\n body7: React.CSSProperties;\n body8: React.CSSProperties;\n\n small_body_b1: React.CSSProperties;\n small_body_b2: React.CSSProperties;\n small_body_b3: React.CSSProperties;\n small_body_b4: React.CSSProperties;\n small_body_b5: React.CSSProperties;\n\n small_body_sb1: React.CSSProperties;\n\n small_body_m1: React.CSSProperties;\n small_body_m2: React.CSSProperties;\n small_body_m3: React.CSSProperties;\n small_body_m4: React.CSSProperties;\n small_body_m5: React.CSSProperties;\n small_body_m6: React.CSSProperties;\n small_body_m7: React.CSSProperties;\n\n small_body1: React.CSSProperties;\n small_body2: React.CSSProperties;\n small_body3: React.CSSProperties;\n small_body4: React.CSSProperties;\n small_body5: React.CSSProperties;\n\n small_body_l1: React.CSSProperties;\n small_body_l2: React.CSSProperties;\n\n overline: React.CSSProperties;\n\n button1: React.CSSProperties;\n button2: React.CSSProperties;\n\n caption: React.CSSProperties;\n }\n\n interface TypographyVariantsOptions {\n h7?: React.CSSProperties;\n h8?: React.CSSProperties;\n h9?: React.CSSProperties;\n h10?: React.CSSProperties;\n\n subtitle3?: React.CSSProperties;\n\n body_b1?: React.CSSProperties;\n body_b2?: React.CSSProperties;\n\n body_sb1?: React.CSSProperties;\n body_sb2?: React.CSSProperties;\n body_sb3?: React.CSSProperties;\n body_sb4?: React.CSSProperties;\n body_sb5?: React.CSSProperties;\n\n body_m1?: React.CSSProperties;\n body_m2?: React.CSSProperties;\n\n body1?: React.CSSProperties;\n body2?: React.CSSProperties;\n body3?: React.CSSProperties;\n body4?: React.CSSProperties;\n body5?: React.CSSProperties;\n body6?: React.CSSProperties;\n body7?: React.CSSProperties;\n body8?: React.CSSProperties;\n\n small_body_b1?: React.CSSProperties;\n small_body_b2?: React.CSSProperties;\n small_body_b3?: React.CSSProperties;\n small_body_b4?: React.CSSProperties;\n small_body_b5?: React.CSSProperties;\n\n small_body_sb1?: React.CSSProperties;\n\n small_body_m1?: React.CSSProperties;\n small_body_m2?: React.CSSProperties;\n small_body_m3?: React.CSSProperties;\n small_body_m4?: React.CSSProperties;\n small_body_m5?: React.CSSProperties;\n small_body_m6?: React.CSSProperties;\n small_body_m7?: React.CSSProperties;\n\n small_body1?: React.CSSProperties;\n small_body2?: React.CSSProperties;\n small_body3?: React.CSSProperties;\n small_body4?: React.CSSProperties;\n small_body5?: React.CSSProperties;\n\n small_body_l1?: React.CSSProperties;\n small_body_l2?: React.CSSProperties;\n\n overline?: React.CSSProperties;\n\n button1?: React.CSSProperties;\n button2?: React.CSSProperties;\n\n caption?: React.CSSProperties;\n }\n}\n\ndeclare module '@mui/material/Typography' {\n interface TypographyPropsVariantOverrides {\n h7: true;\n h8: true;\n h9: true;\n h10: true;\n\n subtitle3: true;\n\n body_b1: true;\n body_b2: true;\n\n body_sb1: true;\n body_sb2: true;\n body_sb3: true;\n body_sb4: true;\n body_sb5: true;\n\n body_m1: true;\n body_m2: true;\n\n body1: true;\n body2: true;\n body3: true;\n body4: true;\n body5: true;\n body6: true;\n body7: true;\n body8: true;\n\n small_body_b1: true;\n small_body_b2: true;\n small_body_b3: true;\n small_body_b4: true;\n small_body_b5: true;\n\n small_body_sb1: true;\n\n small_body_m1: true;\n small_body_m2: true;\n small_body_m3: true;\n small_body_m4: true;\n small_body_m5: true;\n small_body_m6: true;\n small_body_m7: true;\n\n small_body1: true;\n small_body2: true;\n small_body3: true;\n small_body4: true;\n small_body5: true;\n\n small_body_l1: true;\n small_body_l2: true;\n\n overline: true;\n\n button1: true;\n button2: true;\n\n caption: true;\n }\n}\n\nconst typographyOptions: TypographyOptions = {\n fontFamily: [\n 'Pretendard',\n '-apple-system',\n 'BlinkMacSystemFont',\n '\"Segoe UI\"',\n 'Roboto',\n '\"Helvetica Neue\"',\n 'Arial',\n 'sans-serif',\n '\"Apple Color Emoji\"',\n '\"Segoe UI Emoji\"',\n '\"Segoe UI Symbol\"',\n ].join(','),\n h1: {\n fontWeight: 600,\n fontSize: '52px',\n lineHeight: '68px',\n },\n h2: {\n fontWeight: 700,\n fontSize: '38px',\n lineHeight: '48px',\n },\n h3: {\n fontWeight: 500,\n fontSize: '38px',\n lineHeight: '48px',\n },\n h4: {\n fontWeight: 600,\n fontSize: '30px',\n lineHeight: '48px',\n },\n h5: {\n fontWeight: 400,\n fontSize: '30px',\n lineHeight: '48px',\n },\n h6: {\n fontWeight: 700,\n fontSize: '28px',\n lineHeight: 'auto',\n },\n h7: {\n fontWeight: 600,\n fontSize: '24px',\n lineHeight: '36px',\n },\n h8: {\n fontWeight: 600,\n fontSize: '20px',\n lineHeight: '28px',\n },\n h9: {\n fontWeight: 600,\n fontSize: '16px',\n lineHeight: '24px',\n },\n subtitle1: {\n fontSize: 20,\n fontWeight: 600,\n lineHeight: '28px',\n },\n subtitle2: {\n fontSize: 18,\n fontWeight: 600,\n lineHeight: '24px',\n },\n subtitle3: {\n fontSize: 16,\n fontWeight: 600,\n lineHeight: '24px',\n },\n\n body_b1: {\n fontWeight: 700,\n fontSize: '14px',\n lineHeight: '20px',\n },\n body_b2: {\n fontWeight: 700,\n fontSize: '14px',\n lineHeight: 'auto',\n },\n\n body_sb1: {\n fontWeight: 600,\n fontSize: '16px',\n lineHeight: '24px',\n },\n body_sb2: {\n fontWeight: 600,\n fontSize: '16px',\n lineHeight: '20px',\n },\n body_sb3: {\n fontWeight: 700,\n fontSize: '15px',\n lineHeight: '16px',\n },\n body_sb4: {\n fontWeight: 600,\n fontSize: '14px',\n lineHeight: '20px',\n },\n body_sb5: {\n fontWeight: 600,\n fontSize: '12.4px',\n lineHeight: '16px',\n },\n\n body_m1: {\n fontWeight: 500,\n fontSize: '14px',\n lineHeight: '20px',\n },\n body_m2: {\n fontWeight: 500,\n fontSize: '13px',\n lineHeight: '18px',\n letterSpacing: '0.2px',\n },\n\n body1: {\n fontWeight: 400,\n fontSize: '16px',\n lineHeight: '24px',\n },\n body2: {\n fontWeight: 400,\n fontSize: '16px',\n lineHeight: 'auto',\n },\n body3: {\n fontWeight: 400,\n fontSize: '15px',\n lineHeight: '24px',\n },\n body4: {\n fontWeight: 400,\n fontSize: '14px',\n lineHeight: '28px',\n },\n body5: {\n fontWeight: 400,\n fontSize: '14px',\n lineHeight: '20px',\n },\n body6: {\n fontWeight: 400,\n fontSize: '13px',\n lineHeight: '18px',\n },\n body7: {\n fontWeight: 400,\n fontSize: '12.4px',\n lineHeight: '16px',\n },\n body8: {\n fontWeight: 400,\n fontSize: '12px',\n lineHeight: '16px',\n },\n\n small_body_b1: {\n fontWeight: 700,\n fontSize: '12px',\n lineHeight: '12px',\n },\n small_body_b2: {\n fontWeight: 700,\n fontSize: '12px',\n lineHeight: '16px',\n },\n small_body_b3: {\n fontWeight: 700,\n fontSize: '10px',\n lineHeight: 'auto',\n },\n small_body_b4: {\n fontWeight: 700,\n fontSize: '10px',\n lineHeight: '12px',\n },\n small_body_b5: {\n fontWeight: 700,\n fontSize: '8px',\n lineHeight: 'auto',\n },\n\n small_body_sb1: {\n fontWeight: 600,\n fontSize: '12px',\n lineHeight: '16px',\n },\n\n small_body_m1: {\n fontWeight: 500,\n fontSize: '13px',\n lineHeight: '20px',\n },\n small_body_m2: {\n fontWeight: 500,\n fontSize: '12px',\n lineHeight: '20px',\n },\n small_body_m3: {\n fontWeight: 500,\n fontSize: '10px',\n lineHeight: 'auto',\n },\n small_body_m4: {\n fontWeight: 500,\n fontSize: '10px',\n lineHeight: '16px',\n },\n small_body_m5: {\n fontWeight: 500,\n fontSize: '8px',\n lineHeight: 'auto',\n },\n small_body_m6: {\n fontWeight: 500,\n fontSize: '8px',\n lineHeight: '12px',\n },\n small_body_m7: {\n fontWeight: 500,\n fontSize: '7px',\n lineHeight: 'auto',\n },\n\n small_body1: {\n fontWeight: 400,\n fontSize: '13px',\n lineHeight: '24px',\n },\n small_body2: {\n fontWeight: 400,\n fontSize: '12px',\n lineHeight: '20px',\n },\n small_body3: {\n fontWeight: 400,\n fontSize: '10px',\n lineHeight: 'auto',\n },\n small_body4: {\n fontWeight: 400,\n fontSize: '10px',\n lineHeight: '14px',\n },\n small_body5: {\n fontWeight: 400,\n fontSize: '8px',\n lineHeight: 'auto',\n },\n\n small_body_l1: {\n fontWeight: 300,\n fontSize: '10px',\n lineHeight: '20px',\n },\n small_body_l2: {\n fontWeight: 300,\n fontSize: '7px',\n lineHeight: 'auto',\n },\n\n overline: {\n fontWeight: 500,\n fontSize: '14px',\n lineHeight: '20px',\n letterSpacing: '1px',\n textTransform: 'uppercase',\n },\n\n button1: {\n fontWeight: 600,\n fontSize: '16px',\n lineHeight: '22px',\n textTransform: 'capitalize',\n },\n button2: {\n fontWeight: 600,\n fontSize: '14px',\n lineHeight: '20px',\n letterSpacing: '0.2px',\n textTransform: 'capitalize',\n },\n\n caption: {\n fontWeight: 500,\n fontSize: '12px',\n lineHeight: '16px',\n },\n};\n\nexport default typographyOptions;\n","export const SCROLLBAR_WIDTH = 10;\nexport const SMALL_SCROLLBAR_WIDTH = 6;\nexport const DRAWER_WIDTH_OPEN = 280;\nexport const DRAWER_WIDTH_CLOSE = 52;\nexport const VIEWER_DRAWER_WIDTH_OPEN = 280;\n\nexport { default as drawer } from './drawer';\n","/* eslint-disable @typescript-eslint/no-empty-interface */\nimport { PaletteOptions } from '@mui/material';\n\ntype PaletteOptionItem<T extends PropertyKey> = Record<T, React.CSSProperties['color']>;\n\n// Global Colors\ntype LunitTealKey = '5' | '10' | '20' | '30' | '40' | '50' | '60' | '70' | '80' | '90';\n\ntype NeutralColorKey =\n | '0'\n | '5'\n | '10'\n | '15'\n | '20'\n | '25'\n | '30'\n | '35'\n | '40'\n | '45'\n | '50'\n | '55'\n | '60'\n | '65'\n | '70'\n | '75'\n | '80'\n | '85'\n | '90'\n | '95'\n | '96'\n | '97'\n | '100';\n\ntype YellowKey = '5' | '10' | '20';\ntype OrangeKey = '5' | '10' | '20';\n\ntype MagentaKey = '5' | '10' | '20' | '30' | '40' | '50' | '60' | '70' | '80' | '90' | '100';\n\ntype RedKey = '5' | '10' | '20' | '30' | '40' | '50';\n\ntype BlueKey =\n | '5'\n | '10'\n | '15'\n | '20'\n | '25'\n | '30'\n | '35'\n | '40'\n | '45'\n | '50'\n | '55'\n | '60'\n | '65'\n | '70'\n | '75';\n\ntype GreenKey = '10' | '20' | '30' | '40' | '50';\n\ntype PurpleKey = '5' | '10' | '15' | '20' | '30' | '40' | '50' | '60' | '70' | '80';\n\nexport type LunitTeal = PaletteOptionItem<LunitTealKey>;\nexport type NeutralColor = PaletteOptionItem<NeutralColorKey>;\nexport type Yellow = PaletteOptionItem<YellowKey>;\nexport type Orange = PaletteOptionItem<OrangeKey>;\nexport type Magenta = PaletteOptionItem<MagentaKey>;\nexport type Red = PaletteOptionItem<RedKey>;\nexport type Blue = PaletteOptionItem<BlueKey>;\nexport type Green = PaletteOptionItem<GreenKey>;\nexport type Purple = PaletteOptionItem<PurpleKey>;\n\n// Histological Features\ntype TPSKey = 'Cutoff1' | 'Cutoff49' | 'Cutoff50' | 'PositiveTc' | 'NegativeTc';\ntype CPSKey =\n | 'Cutoff1'\n | 'Cutoff10'\n | 'Ca'\n | 'Cis'\n | 'Pch'\n | 'PcL'\n | 'PositiveTc'\n | 'NegativeTc'\n | 'PositiveIc'\n | 'NegativeIc';\n\ntype IOKey =\n | 'BmrkCutoff1'\n | 'BmrkCutoff20'\n | 'Inflamed'\n | 'ImmuneEx'\n | 'ImmuneDsrt'\n | 'Ca'\n | 'Cs'\n | 'Lc'\n | 'Tc';\n\ntype TumorPurityKey = 'DensityBar' | 'Ca' | 'Tc' | 'Ntc';\n\ntype HER2Key =\n | 'Ca'\n | 'Cis'\n | 'Her2_Negative'\n | 'Her2_1_Positive'\n | 'Her2_2_Positive'\n | 'Her2_3_Positive';\n\ntype ERPRKey =\n | 'Ca'\n | 'Cis'\n | 'Erpr_Negative'\n | 'Erpr_1_Positive'\n | 'Erpr_2_Positive'\n | 'Erpr_3_Positive'\n | 'Cutoff0'\n | 'Cutoff1'\n | 'Cutoff10';\n\nexport type TPS = PaletteOptionItem<TPSKey>;\nexport type CPS = PaletteOptionItem<CPSKey>;\nexport type IO = PaletteOptionItem<IOKey>;\nexport type TumorPurity = PaletteOptionItem<TumorPurityKey>;\nexport type HER2 = PaletteOptionItem<HER2Key>;\nexport type ERPR = PaletteOptionItem<ERPRKey>;\n\n// Others\ntype OthersKey =\n | 'RowHover'\n | 'DatePickerHover'\n | 'Teal50Op20'\n | 'Teal50Op18'\n | 'Grn20Op32'\n | 'Grn30OP32';\n\nexport type Others = PaletteOptionItem<OthersKey>;\n\ntype AlertKey = 'InfoBG' | 'SuccessBG' | 'ErrorBG' | 'WarningBG';\n\nexport type Alert = PaletteOptionItem<AlertKey>;\n\n// Analysis Status\ntype AnalysisStatusKey =\n | 'Uploaded'\n | 'Ready'\n | 'ReadyHover'\n | 'ReadySelected'\n | 'Inferred'\n | 'InferredHover'\n | 'InferredSelected'\n | 'Analyzing'\n | 'Analyzed'\n | 'FailedEnabled'\n | 'FailedHover'\n | 'FailedSelected'\n | 'Ready'\n | 'ReadyHover'\n | 'ReadySelected'\n | 'Inferred'\n | 'InferredHover'\n | 'InferredSelected'\n | 'Invalid'\n | 'InvalidHover'\n | 'InvalidSelected';\n\nexport type AnalysisStatus = PaletteOptionItem<AnalysisStatusKey>;\n\nexport interface LunitPalette {\n brand: {\n primary: React.CSSProperties['color'];\n secondary: React.CSSProperties['color'];\n };\n scope1: React.CSSProperties['color'];\n scope2: React.CSSProperties['color'];\n scope3: React.CSSProperties['color'];\n scope4: React.CSSProperties['color'];\n lunitTeal: LunitTeal;\n neutralGrey: NeutralColor;\n yellow: Yellow;\n orange: Orange;\n magenta: Magenta;\n red: Red;\n blue: Blue;\n green: Green;\n purple: Purple;\n\n pdl1Tps: TPS;\n pdl1Cps: CPS;\n io: IO;\n tumorPurity: TumorPurity;\n her2: HER2;\n erpr: ERPR;\n\n others: Others;\n alert: Alert;\n /**\n * @todo The dot, text colors for Analysis Status have not yet been determined.\n * We will be updated once they are decided in the all-in-one plan. (hjkwon)\n */\n analysisStatus: AnalysisStatus;\n}\n\ndeclare module '@mui/material/styles' {\n interface Palette extends LunitPalette {}\n interface PaletteOptions extends LunitPalette {}\n}\n\nconst palette: PaletteOptions = {\n brand: {\n primary: '#3BC9DB',\n secondary: '#96EDFF',\n },\n text: {\n primary: '#FFFFFF',\n secondary: '#AFAFB1',\n disabled: '#A8A8A8',\n },\n background: {},\n common: {},\n lunitTeal: {\n 5: '#EAFAFF',\n 10: '#96EDFF',\n 20: '#30DFFC',\n 30: '#3BC9DB',\n 40: '#00C9EA',\n 50: '#0ABEE5',\n 60: '#00B3DB',\n 70: '#048AB4',\n 80: '#05495F',\n 90: '#002930',\n },\n neutralGrey: {\n 0: '#FFFFFF',\n 5: '#FAFAFB',\n 10: '#FAFAFA',\n 15: '#F1F1F4',\n 20: '#DFDFE2',\n 25: '#D4D4D6',\n 30: '#C6C6C8',\n 35: '#C4C4C4',\n 40: '#AFAFB1',\n 45: '#99999B',\n 50: '#7F7F81',\n 55: '#737377',\n 60: '#747477',\n 65: '#626264',\n 70: '#4E4E50',\n 75: '#3E3E40',\n 80: '#363B3E',\n 85: '#333336',\n 90: '#2D2D2F',\n 95: '#1F1F21',\n 96: '#1E1E1E',\n 97: '#111113',\n 100: '#000000',\n },\n yellow: {\n 5: '#FAF089',\n 10: '#FFE500',\n 20: '#FFE600',\n },\n orange: {\n 5: '#FFD9BE',\n 10: '#FFB784',\n 20: '#FF9B54',\n },\n magenta: {\n 5: '#F9D1D1',\n 10: '#FFC9C9',\n 20: '#FAB2D3',\n 30: '#FFA4B6',\n 40: '#FF8787',\n 50: '#FF8389',\n 60: '#FB7791',\n 70: '#F765A3',\n 80: '#FF50A0',\n 90: '#E41976',\n 100: '#B20052',\n },\n red: {\n 5: '#FA4D56',\n 10: '#FE353F',\n 20: '#FF0000',\n 30: '#E63B28',\n 40: '#DA1E28',\n 50: '#A60D0D',\n },\n blue: {\n 5: '#A5D8FF',\n 10: '#A6C0D6',\n 15: '#4DABF7',\n 20: '#78A9FF',\n 25: '#748FFC',\n 30: '#587EFC',\n 35: '#1971D7',\n 40: '#3A5DD9',\n 45: '#4F5DC5',\n 50: '#443AFF',\n 55: '#165BAA',\n 60: '#0055AB',\n 65: '#132A9B',\n 70: '#034480',\n 75: '#0B1354',\n },\n green: {\n 10: '#73FF0C',\n 20: '#66BB6A',\n 30: '#42BE65',\n 40: '#24A148',\n 50: '#014B58',\n },\n purple: {\n 5: '#BAC8FF',\n 10: '#B0C0F4',\n 15: '#D0BFFF',\n 20: '#C378DB',\n 30: '#9775FA',\n 40: '#9E6BF0',\n 50: '#A155B9',\n 60: '#8D2FAB',\n 70: '#7E41DA',\n 80: '#3612A1',\n },\n pdl1Tps: {\n Cutoff1: '#5091FF',\n Cutoff49: '#0CA678',\n Cutoff50: '#F76707',\n PositiveTc: '#AD1EFF',\n NegativeTc: '#1EFCFF',\n },\n pdl1Cps: {\n Cutoff1: '#5091FF',\n Cutoff10: '#F76707',\n Ca: '#0CA678',\n Cis: '#5B8DEF',\n Pch: '#FF8989',\n PcL: '#D6C896',\n PositiveTc: '#AD1EFF',\n NegativeTc: '#1EFCFF',\n PositiveIc: '#FFEE59',\n NegativeIc: '#FF5403',\n },\n io: {\n BmrkCutoff1: '#5091FF',\n BmrkCutoff20: '#EE5140',\n Inflamed: '#C65F6E',\n ImmuneEx: '#91C4A3',\n ImmuneDsrt: '#143DDE',\n Ca: '#0CA678',\n Cs: '#91C4A3',\n Lc: '#FFF950',\n Tc: '#F76707',\n },\n tumorPurity: {\n DensityBar: '#EE5140',\n Ca: '#0CA678',\n Tc: '#F76707',\n Ntc: '#FFF950',\n },\n her2: {\n Ca: '#0CA678',\n Cis: '#5B8DEF',\n Her2_Negative: '#4B93F9',\n Her2_1_Positive: '#79FD4B',\n Her2_2_Positive: '#F8E71C',\n Her2_3_Positive: '#EF0B0B',\n },\n erpr: {\n Ca: '#0CA678',\n Cis: '#5B8DEF',\n Erpr_Negative: '#4B93F9',\n Erpr_1_Positive: '#79FD4B',\n Erpr_2_Positive: '#F8E71C',\n Erpr_3_Positive: '#EF0B0B',\n Cutoff0: '#75F0DA',\n Cutoff1: '#FD6D0D',\n Cutoff10: '#9E5EFF',\n },\n others: {\n RowHover: 'rgba(134, 148, 177, 0.08)',\n DatePickerHover: 'rgba(114, 146, 253, 0.3)',\n Teal50Op20: 'rgba(0, 201, 234, 0.2)',\n Teal50Op18: 'rgba(0, 201, 234, 0.18)',\n Grn20Op32: 'rgba(102, 187, 106, 0.32)',\n Grn30OP32: 'rgba(66, 190, 101, 0.32)',\n },\n alert: {\n InfoBG: 'rgba(55, 81, 167, 0.92)',\n SuccessBG: 'rgba(0, 137, 159, 0.92)',\n ErrorBG: 'rgba(116, 25, 15, 0.9)',\n WarningBG: 'rgba(209, 188, 0, 0.7)',\n },\n analysisStatus: {\n Uploaded: '#99B8D1',\n Analyzing: '#AA99EC',\n Analyzed: '#8DCEC3',\n FailedEnabled: '#CA1414',\n FailedHover: '#FF8787',\n FailedSelected: '#A60D0D',\n Ready: '#00D1FF',\n ReadyHover: '#38E3FF',\n ReadySelected: '#006379',\n Inferred: '#3E63DD',\n InferredHover: '#46BCFF',\n InferredSelected: '#273E89',\n Invalid: '#838389',\n InvalidHover: '#A7A7A7',\n InvalidSelected: '#6E6E74',\n },\n scope1: '#7292FD',\n scope2: '#587EFC',\n scope3: '#B0C0F4',\n scope4: '#3A5DD9',\n info: { main: '#748FFC' },\n success: { main: '#00C9EA' },\n error: { main: '#FA4D56' },\n warning: { main: '#FFE600' },\n};\n\nexport default palette;\n","import { ComponentsOverrides, Theme } from '@mui/material';\nimport {\n SMALL_SCROLLBAR_WIDTH,\n SCROLLBAR_WIDTH,\n DRAWER_WIDTH_OPEN,\n DRAWER_WIDTH_CLOSE,\n} from '../systems';\nimport { palette, typography } from '../foundations';\n\nconst html = {\n fontSize: '14px',\n boxSizing: 'border-box',\n fontFamily: `Pretendard, sans-serif`,\n fontFeatureSettings: `'tnum', 'ss01', 'ss02', 'ss08'`,\n};\n\nconst body = {\n ...html,\n width: '100vw',\n height: '100vh',\n margin: 0,\n padding: 0,\n overflow: 'hidden',\n lineHeight: 'normal',\n color: 'white',\n backgroundColor: palette.neutralGrey?.[95],\n '& a': {\n textDecoration: 'none',\n },\n};\n\nconst styleOverrides: ComponentsOverrides<Theme>['MuiCssBaseline'] = {\n html,\n '.App': body,\n '#root': body,\n\n '*::-webkit-scrollbar-track': {\n backgroundColor: 'transparent',\n },\n '*::-webkit-scrollbar-corner': {\n backgroundColor: 'transparent',\n },\n '*::-webkit-scrollbar': {\n // + 4 for padding\n width: SCROLLBAR_WIDTH + 4,\n height: SCROLLBAR_WIDTH + 4,\n },\n '.small-scrollbar::-webkit-scrollbar, .small-scrollbar *::-webkit-scrollbar': {\n // + 4 for padding\n width: SMALL_SCROLLBAR_WIDTH + 4,\n height: SMALL_SCROLLBAR_WIDTH + 4,\n },\n\n '*::-webkit-scrollbar-thumb': {\n backgroundColor: palette.neutralGrey?.[65],\n borderRadius: 6,\n border: '2px transparent solid',\n backgroundClip: 'padding-box',\n },\n '*::-webkit-scrollbar-thumb:hover': {\n backgroundColor: palette.neutralGrey?.[60],\n },\n '*::-webkit-scrollbar-thumb:active': {\n backgroundColor: palette.neutralGrey?.[40],\n },\n '.Mui-disabled::-webkit-scrollbar-thumb:hover, .Mui-disabled *::-webkit-scrollbar-thumb:hover': {\n backgroundColor: palette.neutralGrey?.[65],\n },\n '.Mui-disabled::-webkit-scrollbar-thumb:active, .Mui-disabled *::-webkit-scrollbar-thumb:active':\n {\n backgroundColor: palette.neutralGrey?.[65],\n },\n\n 'svg.MuiCircularProgress-svg *': {\n fill: 'none',\n },\n 'svg *.stroke-inherit': {\n fill: 'none',\n stroke: 'currentColor',\n },\n '.snackbarVariantError': {\n background: 'rgba(238, 81, 64, 0.18)',\n border: '1px solid #EE5140',\n ...typography.body5,\n },\n '#page-root.drawer-open ~ .SnackbarContainer-left': {\n left: `${DRAWER_WIDTH_OPEN + 20}px !important`,\n },\n '#page-root.drawer-close ~ .SnackbarContainer-left': {\n left: `${DRAWER_WIDTH_CLOSE + 20}px !important`,\n },\n};\nexport default {\n styleOverrides,\n};\n","import { ComponentsOverrides } from '@mui/material/styles';\nimport { palette, typography } from '../foundations';\n\nconst styleOverrides: ComponentsOverrides['MuiOutlinedInput'] = {\n root: {\n borderRadius: 8,\n backgroundColor: palette.neutralGrey[75],\n color: palette.neutralGrey[45],\n '&.MuiInputBase-adornedStart': {\n paddingLeft: '16px',\n },\n '&.MuiInputBase-adornedEnd': {\n paddingRight: '16px',\n },\n '&.Mui-disabled': {\n backgroundColor: 'transparent',\n borderWidth: '1px',\n borderColor: palette.neutralGrey[45],\n },\n },\n notchedOutline: {\n border: '1px solid transparent',\n borderRadius: 8,\n padding: 0,\n 'html .MuiOutlinedInput-root:hover &': {\n borderColor: palette.neutralGrey[45],\n },\n 'html .MuiOutlinedInput-root.Mui-focused &': {\n borderWidth: '1px',\n borderColor: palette.lunitTeal[10],\n },\n 'html .MuiOutlinedInput-root.Mui-disabled &': {\n border: 'none',\n },\n },\n input: {\n ...typography.body5,\n color: palette.neutralGrey[5],\n padding: '8px 16px',\n boxSizing: 'border-box',\n '&::placeholder': {\n color: palette.neutralGrey[45],\n },\n '&:-webkit-autofill': {\n boxShadow: `0 0 0 100px ${palette.neutralGrey[75]}`,\n WebkitTextFillColor: palette.neutralGrey[5],\n },\n '&.Mui-disabled': {\n backgroundColor: 'inherit',\n borderRadius: '8px',\n WebkitTextFillColor: palette.neutralGrey[45],\n },\n },\n};\nexport default {\n styleOverrides,\n};\n","import { createTheme } from '@mui/material/styles';\nimport MuiCssBaseline from './components/MuiCssBaseline';\nimport MuiInputBase from './components/MuiInputBase';\nimport MuiOutlinedInput from './components/MuiOutlinedInput';\nimport MuiTextField from './components/MuiTextField';\nimport { palette, spacing, typography } from './foundations';\nimport { drawer } from './systems';\n\nconst theme = createTheme({\n ...drawer,\n palette,\n spacing,\n typography,\n components: {\n MuiCssBaseline,\n MuiInputBase,\n MuiOutlinedInput,\n MuiTextField,\n },\n});\n\nexport default theme;\n","import { ThemeOptions } from '@mui/material';\n\ndeclare module '@mui/material/styles' {\n interface Theme {\n leftDrawer: {\n width: React.CSSProperties['width'];\n };\n rightDrawer: {\n width: React.CSSProperties['width'];\n };\n }\n interface ThemeOptions {\n leftDrawer: {\n width: React.CSSProperties['width'];\n };\n rightDrawer: {\n width: React.CSSProperties['width'];\n };\n }\n}\n\nconst drawer: ThemeOptions = {\n leftDrawer: { width: 240 },\n rightDrawer: { width: 260 },\n};\n\nexport default drawer;\n","import { SpacingOptions } from '@mui/system';\n\nconst spacing: SpacingOptions = 4;\n\nexport default spacing;\n","import type { ComponentsOverrides } from '@mui/material/styles';\n\nconst styleOverrides: ComponentsOverrides['MuiInputBase'] = {\n root: {\n '&': {\n padding: 0,\n },\n },\n input: {\n height: '36px',\n },\n inputAdornedStart: {\n 'html &': {\n paddingLeft: 0,\n },\n },\n inputAdornedEnd: {\n 'html &': {\n paddingRight: 0,\n },\n },\n};\nexport default {\n styleOverrides,\n};\n","import type { ComponentsOverrides, ComponentsProps } from '@mui/material/styles';\n\nconst styleOverrides: ComponentsOverrides['MuiTextField'] = {\n root: {\n width: '100%',\n input: {\n textOverflow: 'ellipsis',\n },\n },\n};\nconst defaultProps: ComponentsProps['MuiTextField'] = {\n variant: 'standard',\n};\nexport default {\n styleOverrides,\n defaultProps,\n};\n","module.exports = require(\"@mui/material\");","module.exports = require(\"@mui/material/styles\");","module.exports = require(\"react/jsx-runtime\");","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import { Box, styled } from '@mui/material';\n\nconst commonStyle = {\n display: 'flex' as const,\n flexDirection: 'column' as const,\n alignItems: 'center' as const,\n justifyContent: 'center' as const,\n};\nconst FileDnDZoneContainer = styled(Box)(() => {\n return {\n position: 'relative' as const,\n height: '100%',\n width: '100%',\n };\n});\n\nconst BaseFileDnDZone = styled(Box)(() => {\n return {\n ...commonStyle,\n position: 'absolute',\n left: 'calc(50% - 213px)',\n top: '100px',\n height: '196px',\n width: '426px',\n gap: '16px',\n };\n});\n\nconst DnDSection = styled(Box)(() => {\n return {\n ...commonStyle,\n gap: '4px',\n };\n});\n\nconst DnDMainBox = styled(Box)(() => {\n return {\n ...commonStyle,\n gap: '24px',\n };\n});\n\nexport { FileDnDZoneContainer, BaseFileDnDZone, DnDSection, DnDMainBox };\n","const DEFAULT_FILE_FORMATS = 'Leica(.svs), 3DHistech(.mrxs), and Philips(.isyntax, .tiff)';\n\nexport { DEFAULT_FILE_FORMATS };\n","import React from 'react';\nimport { Typography } from '@mui/material';\nimport {\n BaseFileDnDZone,\n DnDSection,\n DnDMainBox,\n FileDnDZoneContainer,\n} from './FileDnDZone.styled';\nimport FileDnDZoneProps from './FileDnDZone.types';\n\nimport theme from '../../theme';\nimport { DEFAULT_FILE_FORMATS } from './FileDnDZone.utils';\n\nconst FileDnDZone = ({\n slidesUploaded,\n maxSlideLimit = 500,\n acceptedFileFormats = DEFAULT_FILE_FORMATS,\n disabled,\n WrapperProps,\n OuterBoxProps,\n InnerBoxProps,\n SectionBoxProps,\n}: FileDnDZoneProps) => {\n const disabledSX = {\n opacity: 0.4,\n };\n\n return (\n <FileDnDZoneContainer\n sx={disabled ? disabledSX : {}}\n {...WrapperProps}\n >\n <BaseFileDnDZone {...OuterBoxProps}>\n <Typography\n variant=\"h7\"\n sx={{ color: theme.palette.neutralGrey[25] }}\n >\n Drag and drop your slide files here\n </Typography>\n <DnDMainBox {...InnerBoxProps}>\n <DnDSection {...SectionBoxProps}>\n <Typography\n variant=\"body_sb1\"\n sx={{ color: theme.palette.neutralGrey[45] }}\n >\n Supported file formats\n </Typography>\n <Typography\n variant=\"body_sb1\"\n sx={{ color: theme.palette.neutralGrey[25], padding: '0 18px', textAlign: 'center' }}\n >\n {acceptedFileFormats}\n </Typography>\n </DnDSection>\n <DnDSection {...SectionBoxProps}>\n <Typography\n variant=\"body_sb1\"\n sx={{ color: theme.palette.neutralGrey[45] }}\n >\n Allowed number of slides\n </Typography>\n <Typography\n variant=\"body_sb1\"\n sx={{ color: theme.palette.neutralGrey[25] }}\n >\n {`You have uploaded ${slidesUploaded.toLocaleString()} slides on Lunit SCOPE.`}\n </Typography>\n <Typography\n variant=\"body_sb1\"\n sx={{ color: theme.palette.neutralGrey[25] }}\n >\n {`The number of slides cannot exceed ${maxSlideLimit.toLocaleString()}.`}\n </Typography>\n </DnDSection>\n </DnDMainBox>\n </BaseFileDnDZone>\n </FileDnDZoneContainer>\n );\n};\n\nexport default FileDnDZone;\n"],"names":["fontFamily","join","h1","fontWeight","fontSize","lineHeight","h2","h3","h4","h5","h6","h7","h8","h9","subtitle1","subtitle2","subtitle3","body_b1","body_b2","body_sb1","body_sb2","body_sb3","body_sb4","body_sb5","body_m1","body_m2","letterSpacing","body1","body2","body3","body4","body5","body6","body7","body8","small_body_b1","small_body_b2","small_body_b3","small_body_b4","small_body_b5","small_body_sb1","small_body_m1","small_body_m2","small_body_m3","small_body_m4","small_body_m5","small_body_m6","small_body_m7","small_body1","small_body2","small_body3","small_body4","small_body5","small_body_l1","small_body_l2","overline","textTransform","button1","button2","caption","SCROLLBAR_WIDTH","SMALL_SCROLLBAR_WIDTH","DRAWER_WIDTH_OPEN","DRAWER_WIDTH_CLOSE","brand","primary","secondary","text","disabled","background","common","lunitTeal","neutralGrey","yellow","orange","magenta","red","blue","green","purple","pdl1Tps","Cutoff1","Cutoff49","Cutoff50","PositiveTc","NegativeTc","pdl1Cps","Cutoff10","Ca","Cis","Pch","PcL","PositiveIc","NegativeIc","io","BmrkCutoff1","BmrkCutoff20","Inflamed","ImmuneEx","ImmuneDsrt","Cs","Lc","Tc","tumorPurity","DensityBar","Ntc","her2","Her2_Negative","Her2_1_Positive","Her2_2_Positive","Her2_3_Positive","erpr","Erpr_Negative","Erpr_1_Positive","Erpr_2_Positive","Erpr_3_Positive","Cutoff0","others","RowHover","DatePickerHover","Teal50Op20","Teal50Op18","Grn20Op32","Grn30OP32","alert","InfoBG","SuccessBG","ErrorBG","WarningBG","analysisStatus","Uploaded","Analyzing","Analyzed","FailedEnabled","FailedHover","FailedSelected","Ready","ReadyHover","ReadySelected","Inferred","InferredHover","InferredSelected","Invalid","InvalidHover","InvalidSelected","scope1","scope2","scope3","scope4","info","main","success","error","warning","html","boxSizing","fontFeatureSettings","body","width","height","margin","padding","overflow","color","backgroundColor","textDecoration","styleOverrides","borderRadius","border","backgroundClip","fill","stroke","typography","left","root","paddingLeft","paddingRight","borderWidth","borderColor","notchedOutline","input","boxShadow","WebkitTextFillColor","createTheme","leftDrawer","rightDrawer","palette","spacing","components","MuiCssBaseline","MuiInputBase","inputAdornedStart","inputAdornedEnd","MuiOutlinedInput","MuiTextField","textOverflow","defaultProps","variant","module","exports","require","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","d","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","commonStyle","display","flexDirection","alignItems","justifyContent","FileDnDZoneContainer","styled","Box","position","BaseFileDnDZone","top","gap","DnDSection","DnDMainBox","slidesUploaded","maxSlideLimit","acceptedFileFormats","WrapperProps","OuterBoxProps","InnerBoxProps","SectionBoxProps","sx","opacity","Typography","theme","textAlign","toLocaleString"],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(()=>{"use strict";var e={6421:(e,t,r)=>{r.d(t,{nQ:()=>h,tL:()=>m,oH:()=>n,r3:()=>a,Pj:()=>u,Wz:()=>p,zK:()=>c});var s=r(997),o=r(5692),i=r(5314);const l=e=>"large"===e?"14px":"medium"===e?"10px":"6px",n=(0,o.styled)(o.ListItem)({width:"100%"}),a=(0,o.styled)((({size:e,...t})=>(0,s.jsx)(o.ListItemButton,{...t})))((({theme:e,size:t})=>({borderRadius:"8px",padding:`${l(t)} 8px`,"&.Mui-selected":{background:"transparent"},"&:hover, &.Mui-selected:hover, &.Mui-focusVisible, &.Mui-selected.Mui-focusVisible":{backgroundColor:e.palette.neutralGrey[75]}}))),d={minWidth:"20px",height:"20px",color:"currentColor",svg:{width:"100%",height:"100%",color:"currentColor !important"}},c=(0,o.styled)(o.ListItemText)((({theme:e})=>({margin:0,[`& .${o.typographyClasses.body1}`]:{...e.typography.body5}}))),p=(0,o.styled)(o.ListItemIcon)((({theme:e})=>({...d,marginRight:e.spacing(2)}))),u=(0,o.styled)(o.ListItemIcon)((({theme:e})=>({...d,justifyContent:"flex-end",marginLeft:e.spacing(2)}))),h=(0,o.styled)(i.Check)({color:"#fff"}),m=(0,o.styled)(i.Dummy)({visibility:"hidden"})},9474:(e,t,r)=>{r.d(t,{Z:()=>a});var s=r(997),o=r(8103),i=r.n(o),l=r(5692);const n=(0,l.styled)(l.Typography)((({theme:e})=>({...e.typography.body_m1,color:e.palette.neutralGrey[45]}))),a=e=>{const{className:t,...r}=e;return(0,s.jsx)(n,{...r,className:i()("ListItemCaption",t)})}},5314:e=>{e.exports=require("@lunit/design-system-icons")},5692:e=>{e.exports=require("@mui/material")},8103:e=>{e.exports=require("clsx")},6689:e=>{e.exports=require("react")},997:e=>{e.exports=require("react/jsx-runtime")}},t={};function r(s){var o=t[s];if(void 0!==o)return o.exports;var i=t[s]={exports:{}};return e[s](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var s in t)r.o(t,s)&&!r.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};(()=>{r.r(s),r.d(s,{List:()=>d,ListItem:()=>p,ListItemCaption:()=>u.Z});var e=r(997),t=r(6689),o=r(5314),i=r(5692);const l=(0,i.styled)(i.List)((({theme:e})=>({padding:e.spacing(2)}))),n=(0,i.styled)(i.ListSubheader,{shouldForwardProp:e=>!["type","clickable"].includes(e.toString())})((({type:e,clickable:t,theme:r})=>({display:"flex",justifyContent:"space-between",alignItems:"center",height:"36px",padding:"0px 8px",backgroundColor:"transparent",..."bold"===e?{...r.typography.body_b1,color:r.palette.neutralGrey[0]}:{...r.typography.small_body_m1,color:r.palette.neutralGrey[40]},...t&&{cursor:"pointer"},svg:{width:"20px",height:"20px"}}))),a=(0,t.createContext)({size:"small",showCheck:!1}),d=({size:r="small",showCheck:s=!1,subheader:d,subheaderType:c="bold",open:p="visible",children:u,onOpen:h,onClose:m,...y})=>{const x=(0,t.useMemo)((()=>({size:r,showCheck:s})),[r,s]),b="visible"!==p;return(0,e.jsx)(a.Provider,{value:x,children:(0,e.jsx)(l,{...y,subheader:d?(0,e.jsxs)(n,{type:c,clickable:b,tabIndex:b?0:void 0,onClick:e=>{if("visible"===p)return;const t=p?m:h;t?.(e)},children:[d,b&&(p?(0,e.jsx)(o.ArrowDownSm,{}):(0,e.jsx)(o.ArrowUpSm,{}))]}):null,children:b?(0,e.jsx)(i.Collapse,{in:p,timeout:"auto",unmountOnExit:!0,children:u}):u})})};var c=r(6421);const p=({rootProps:r,className:s,classes:o,style:i,sx:l,label:n,startElement:d,endElement:p,selected:u,...h})=>{const{size:m,showCheck:y}=(0,t.useContext)(a),x=y?u?(0,e.jsx)(c.nQ,{}):(0,e.jsx)(c.tL,{}):null;return(0,e.jsx)(c.oH,{...r,disablePadding:!0,className:s,classes:o,style:i,sx:l,children:(0,e.jsxs)(c.r3,{...h,disableRipple:!0,component:h.component??"span",size:m,selected:u,children:[x&&(0,e.jsx)(c.Wz,{children:x}),d&&(0,e.jsx)(c.Wz,{children:d}),(0,e.jsx)(c.zK,{primary:n}),p&&(0,e.jsx)(c.Pj,{children:p})]})})};var u=r(9474)})(),module.exports=s})();
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components/List/index.js","mappings":"kJAEA,MAWA,EAXoBA,GACL,UAATA,EACK,OAEI,WAATA,EACK,OAGF,MCGIC,GAAiB,IAAAC,QAAO,EAAAC,SAAP,CAAiB,CAC7CC,MAAO,SAGIC,GAAuB,IAAAH,SAAO,EAAGF,UAASM,MACrD,SAAC,EAAAC,eAAc,IAAKD,KADc,EAEjC,EAAGE,QAAOR,WAAW,CACtBS,aAAc,MACdC,QAAS,GAAG,EAAWV,SACvB,iBAAkB,CAChBW,WAAY,eAEd,qFAAsF,CACpFC,gBAAiBJ,EAAMK,QAAQC,YAAY,SAIlCC,EAAa,CACxBC,SAAU,OACVC,OAAQ,OACRC,MAAO,eACPC,IAAK,CACHf,MAAO,OACPa,OAAQ,OACRC,MAAO,4BAIEE,GAAqB,IAAAlB,QAAO,EAAAmB,aAAP,EAAqB,EAAGb,YAAY,CACpEc,OAAQ,EACR,CAAC,MAAM,EAAAC,kBAAkBC,SAAU,IAC9BhB,EAAMiB,WAAWC,WAIXC,GAA0B,IAAAzB,QAAO,EAAA0B,aAAP,EAAqB,EAAGpB,YAAY,IACtEO,EACHc,YAAarB,EAAMsB,QAAQ,OA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AAUF,EAAc,OAAIhD,EAC5BmD,QAlBeC,IACzB,GAAa,YAATV,EACF,OAEF,MAAMW,EAAUX,EAAOG,EAAUD,EACjCS,IAAUD,EACX,EAYoC,UAExBZ,EACAQ,IAAgBN,GAAO,SAAC,EAAAY,YAAW,KAAM,SAAC,EAAAC,UAAS,QAEpD,KAAI,SAGTP,GACC,SAAC,EAAAQ,SAAQ,CACPC,GAAIf,EACJgB,QAAQ,OACRC,eAAa,WAEZhB,IAED,KAKT,E,cCtDH,MAoDA,EApDiB,EAEfiB,YACArE,YACAsE,UACAC,QACAC,KAEAC,QACAC,eACAC,aACAC,cACGhH,MAEH,MAAM,KAAEN,EAAI,UAAE0F,IAAc,IAAA6B,YAAW/B,GAEjCgC,EACA9B,EACE4B,GACK,SAAC,KAAS,KAEZ,SAAC,KAAS,IAEZ,KAGT,OACE,SAAC,KAAc,IACTP,EACJU,gBAAc,EACd/E,UAAWA,EACXsE,QAASA,EACTC,MAAOA,EACPC,GAAIA,EAAE,UAEN,UAAC,KAAoB,IACf5G,EACJoH,eAAa,EAEbC,UAAYrH,EAAcqH,WAAa,OACvC3H,KAAMA,EACNsH,SAAUA,EAAQ,UAEjBE,IAAgB,SAAC,KAAuB,UAAEA,IAC1CJ,IAAgB,SAAC,KAAuB,UAAEA,KAC3C,SAAC,KAAkB,CAACQ,QAAST,IAC5BE,IAAc,SAAC,KAAqB,UAAEA,QAI9C,E","sources":["webpack://@lunit/oui/./src/components/List/List.utils.ts","webpack://@lunit/oui/./src/components/List/ListItem.styled.tsx","webpack://@lunit/oui/./src/components/List/ListItemCaption.styled.tsx","webpack://@lunit/oui/./src/components/List/ListItemCaption.tsx","webpack://@lunit/oui/external commonjs \"@lunit/design-system-icons\"","webpack://@lunit/oui/external commonjs \"@mui/material\"","webpack://@lunit/oui/external commonjs \"clsx\"","webpack://@lunit/oui/external commonjs \"react\"","webpack://@lunit/oui/external commonjs \"react/jsx-runtime\"","webpack://@lunit/oui/webpack/bootstrap","webpack://@lunit/oui/webpack/runtime/compat get default export","webpack://@lunit/oui/webpack/runtime/define property getters","webpack://@lunit/oui/webpack/runtime/hasOwnProperty shorthand","webpack://@lunit/oui/webpack/runtime/make namespace object","webpack://@lunit/oui/./src/components/List/List.styled.ts","webpack://@lunit/oui/./src/components/List/List.tsx","webpack://@lunit/oui/./src/components/List/ListItem.tsx"],"sourcesContent":["import { ListSize } from './List.types';\n\nconst getPadding = (size: ListSize) => {\n if (size === 'large') {\n return '14px';\n }\n if (size === 'medium') {\n return '10px';\n }\n // 'small'\n return '6px';\n};\n\nexport default getPadding;\n","import React from 'react';\nimport {\n ListItem,\n ListItemButton,\n ListItemIcon,\n ListItemText,\n styled,\n typographyClasses,\n} from '@mui/material';\nimport { Check, Dummy } from '../../icons';\nimport getPadding from './List.utils';\nimport type { StyledListItemButtonProps } from './ListItem.types';\n\nexport const StyledListItem = styled(ListItem)({\n width: '100%',\n});\n\nexport const StyledListItemButton = styled(({ size, ...props }: StyledListItemButtonProps) => (\n <ListItemButton {...props} />\n))(({ theme, size }) => ({\n borderRadius: '8px',\n padding: `${getPadding(size)} 8px`,\n '&.Mui-selected': {\n background: 'transparent',\n },\n '&:hover, &.Mui-selected:hover, &.Mui-focusVisible, &.Mui-selected.Mui-focusVisible': {\n backgroundColor: theme.palette.neutralGrey[75],\n },\n}));\n\nexport const slotStyles = {\n minWidth: '20px',\n height: '20px',\n color: 'currentColor',\n svg: {\n width: '100%',\n height: '100%',\n color: 'currentColor !important',\n },\n};\n\nexport const StyledListItemText = styled(ListItemText)(({ theme }) => ({\n margin: 0,\n [`& .${typographyClasses.body1}`]: {\n ...theme.typography.body5,\n },\n}));\n\nexport const StyledListItemStartSlot = styled(ListItemIcon)(({ theme }) => ({\n ...slotStyles,\n marginRight: theme.spacing(2),\n}));\n\nexport const StyledListItemEndSlot = styled(ListItemIcon)(({ theme }) => ({\n ...slotStyles,\n justifyContent: 'flex-end',\n marginLeft: theme.spacing(2),\n}));\n\nexport const CheckIcon = styled(Check)({ color: '#fff' });\nexport const EmptyIcon = styled(Dummy)({ visibility: 'hidden' });\n","import { styled, Typography } from '@mui/material';\n\n// eslint-disable-next-line import/prefer-default-export\nexport const StyledListItemCaption = styled(Typography)(({ theme }) => ({\n ...theme.typography.body_m1,\n color: theme.palette.neutralGrey[45],\n}));\n","import React from 'react';\nimport clsx from 'clsx';\nimport { StyledListItemCaption } from './ListItemCaption.styled';\nimport { ListItemCaptionProps } from './ListItemCaption.types';\n\nexport const ListItemCaptionClassName = 'ListItemCaption';\n\nconst ListItemCaption = (props: ListItemCaptionProps) => {\n const { className, ...otherProps } = props;\n return (\n <StyledListItemCaption\n {...otherProps}\n className={clsx(ListItemCaptionClassName, className)}\n />\n );\n};\n\nexport default ListItemCaption;\n","module.exports = require(\"@lunit/design-system-icons\");","module.exports = require(\"@mui/material\");","module.exports = require(\"clsx\");","module.exports = require(\"react\");","module.exports = require(\"react/jsx-runtime\");","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import { styled, List, ListSubheader } from '@mui/material';\nimport type { ListSubheaderProps } from './List.types';\n\nexport const MuiList = styled(List)(({ theme }) => ({\n padding: theme.spacing(2),\n}));\n\nexport const MuiListSubheader = styled(ListSubheader, {\n shouldForwardProp: (prop) => !['type', 'clickable'].includes(prop.toString()),\n})<ListSubheaderProps>(({ type, clickable, theme }) => ({\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n height: '36px',\n padding: '0px 8px',\n backgroundColor: 'transparent',\n ...(type === 'bold'\n ? {\n ...theme.typography.body_b1,\n color: theme.palette.neutralGrey[0],\n }\n : {\n ...theme.typography.small_body_m1,\n color: theme.palette.neutralGrey[40],\n }),\n ...(clickable && { cursor: 'pointer' }),\n svg: {\n width: '20px',\n height: '20px',\n },\n}));\n","/* eslint-disable no-nested-ternary */\nimport React from 'react';\nimport { createContext, useMemo } from 'react';\nimport { ArrowDownSm, ArrowUpSm } from '../../icons';\nimport { Collapse } from '@mui/material';\nimport { MuiList, MuiListSubheader } from './List.styled';\nimport type { ListProps, ListContextValue } from './List.types';\n\nexport const ListContext = createContext<ListContextValue>({\n size: 'small',\n showCheck: false,\n});\n\nconst List = ({\n size = 'small',\n showCheck = false,\n subheader,\n subheaderType = 'bold',\n open = 'visible',\n children,\n onOpen,\n onClose,\n ...props\n}: ListProps) => {\n const contextValue = useMemo<ListContextValue>(() => ({ size, showCheck }), [size, showCheck]);\n\n const collapsible = open !== 'visible';\n\n const onSubheaderClick = ((event: React.MouseEvent<HTMLLIElement>) => {\n if (open === 'visible') {\n return;\n }\n const handler = open ? onClose : onOpen;\n handler?.(event);\n }) as React.ComponentProps<typeof MuiListSubheader>['onClick'];\n\n return (\n <ListContext.Provider value={contextValue}>\n <MuiList\n {...props}\n subheader={\n subheader ? (\n <MuiListSubheader\n type={subheaderType}\n clickable={collapsible}\n tabIndex={collapsible ? 0 : undefined}\n onClick={onSubheaderClick}\n >\n {subheader}\n {collapsible && (open ? <ArrowDownSm /> : <ArrowUpSm />)}\n </MuiListSubheader>\n ) : null\n }\n >\n {collapsible ? (\n <Collapse\n in={open}\n timeout=\"auto\"\n unmountOnExit\n >\n {children}\n </Collapse>\n ) : (\n children\n )}\n </MuiList>\n </ListContext.Provider>\n );\n};\n\nexport default List;\n","import React, { useContext } from 'react';\nimport { ListContext } from '../List/List';\nimport {\n StyledListItem,\n StyledListItemButton,\n StyledListItemText,\n StyledListItemStartSlot,\n StyledListItemEndSlot,\n CheckIcon,\n EmptyIcon,\n} from './ListItem.styled';\nimport type { ListItemComponent, ListItemProps } from './ListItem.types';\n\nconst ListItem = (({\n // Root props\n rootProps,\n className,\n classes,\n style,\n sx,\n // Button props\n label,\n startElement,\n endElement,\n selected,\n ...props\n}: ListItemProps) => {\n const { size, showCheck } = useContext(ListContext);\n\n const checkElement = (() => {\n if (showCheck) {\n if (selected) {\n return <CheckIcon />;\n }\n return <EmptyIcon />;\n }\n return null;\n })();\n\n return (\n <StyledListItem\n {...rootProps}\n disablePadding\n className={className}\n classes={classes}\n style={style}\n sx={sx}\n >\n <StyledListItemButton\n {...props}\n disableRipple\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n component={(props as any).component ?? 'span'}\n size={size}\n selected={selected}\n >\n {checkElement && <StyledListItemStartSlot>{checkElement}</StyledListItemStartSlot>}\n {startElement && <StyledListItemStartSlot>{startElement}</StyledListItemStartSlot>}\n <StyledListItemText primary={label} />\n {endElement && <StyledListItemEndSlot>{endElement}</StyledListItemEndSlot>}\n </StyledListItemButton>\n </StyledListItem>\n );\n}) as ListItemComponent;\n\nexport default ListItem;\n"],"names":["size","StyledListItem","styled","ListItem","width","StyledListItemButton","props","ListItemButton","theme","borderRadius","padding","background","backgroundColor","palette","neutralGrey","slotStyles","minWidth","height","color","svg","StyledListItemText","ListItemText","margin","typographyClasses","body1","typography","body5","StyledListItemStartSlot","ListItemIcon","marginRight","spacing","StyledListItemEndSlot","justifyContent","marginLeft","CheckIcon","Check","EmptyIcon","Dummy","visibility","StyledListItemCaption","Typography","body_m1","className","otherProps","module","exports","require","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","MuiList","List","MuiListSubheader","ListSubheader","shouldForwardProp","includes","toString","type","clickable","display","alignItems","body_b1","small_body_m1","cursor","ListContext","createContext","showCheck","subheader","subheaderType","open","children","onOpen","onClose","contextValue","useMemo","collapsible","Provider","tabIndex","onClick","event","handler","ArrowDownSm","ArrowUpSm","Collapse","in","timeout","unmountOnExit","rootProps","classes","style","sx","label","startElement","endElement","selected","useContext","checkElement","disablePadding","disableRipple","component","primary"],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(()=>{"use strict";var a={5692:a=>{a.exports=require("@mui/material")},997:a=>{a.exports=require("react/jsx-runtime")},9429:a=>{a.exports=JSON.parse('{"nm":"Comp 2","ddd":0,"h":600,"w":600,"meta":{"g":"@lottiefiles/toolkit-js 0.25.4"},"layers":[{"ty":4,"nm":"Shape Layer 1","sr":1,"st":0,"op":600.000024438501,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"td":1,"ao":0,"ks":{"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[300,300,0],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11}},"ef":[],"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Ellipse 1","ix":1,"cix":2,"np":3,"it":[{"ty":"el","bm":0,"hd":false,"mn":"ADBE Vector Shape - Ellipse","nm":"Ellipse Path 1","d":1,"p":{"a":0,"k":[0,0],"ix":3},"s":{"a":0,"k":[528,528],"ix":2}},{"ty":"gs","bm":0,"hd":false,"mn":"ADBE Vector Graphic - G-Stroke","nm":"Gradient Stroke 1","e":{"a":0,"k":[100,0],"ix":5},"g":{"p":3,"k":{"a":0,"k":[0,0.18823529411764706,0.8745098039215686,0.9882352941176471,0.485,0.07450980392156863,0.8980392156862745,0.6901960784313725,1,0,1,0.6627450980392157],"ix":8}},"t":1,"a":{"a":0,"k":0},"h":{"a":0,"k":0},"s":{"a":0,"k":[0,0],"ix":4},"lc":1,"lj":1,"ml":4,"o":{"a":0,"k":0,"ix":9},"w":{"a":0,"k":19,"ix":10}},{"ty":"gf","bm":0,"hd":false,"mn":"ADBE Vector Graphic - G-Fill","nm":"Gradient Fill 1","e":{"a":0,"k":[220,0],"ix":6},"g":{"p":3,"k":{"a":0,"k":[0,1,1,1,0.5,1,1,1,1,1,1,1,0,1,0.5,0.5,1,0],"ix":9}},"t":2,"a":{"a":0,"k":0,"ix":8},"h":{"a":0,"k":0,"ix":7},"s":{"a":0,"k":[0,0],"ix":5},"r":1,"o":{"a":0,"k":100,"ix":10}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[-4,0],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":1},{"ty":0,"nm":"Pre-comp 4","sr":1,"st":0,"op":127.000005172816,"ip":0,"hd":false,"ddd":0,"bm":0,"tt":1,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[300,300,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[300,300,0],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11}},"ef":[],"w":600,"h":600,"refId":"comp_0","ind":2}],"v":"5.5.5","fr":29.9700012207031,"op":66.0000026882351,"ip":0,"assets":[{"nm":"","id":"comp_0","layers":[{"ty":0,"nm":"Pre-comp 3","sr":1,"st":10.0000004073083,"op":127.000005172816,"ip":10.0000004073083,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[300,300,0],"ix":1},"s":{"a":0,"k":[-100,-100,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[408,272,0],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":99,"ix":11}},"ef":[],"w":600,"h":600,"refId":"comp_1","ind":1},{"ty":0,"nm":"Pre-comp 3","sr":1,"st":7.00000028511585,"op":124.000005050624,"ip":7.00000028511585,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[300,300,0],"ix":1},"s":{"a":0,"k":[-100,-100,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[186,226,0],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":55,"ix":11}},"ef":[],"w":600,"h":600,"refId":"comp_1","ind":2},{"ty":0,"nm":"Pre-comp 3","sr":1,"st":4.00000016292334,"op":121.000004928431,"ip":4.00000016292334,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[300,300,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[516,226,0],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11}},"ef":[],"w":600,"h":600,"refId":"comp_1","ind":3},{"ty":0,"nm":"Pre-comp 3","sr":1,"st":2.00000008146167,"op":119.000004846969,"ip":2.00000008146167,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[300,300,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[74,344,0],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11}},"ef":[],"w":600,"h":600,"refId":"comp_1","ind":4},{"ty":0,"nm":"Pre-comp 3","sr":1,"st":0,"op":117.000004765508,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[300,300,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[296,380,0],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11}},"ef":[],"w":600,"h":600,"refId":"comp_1","ind":5}]},{"nm":"","id":"comp_1","layers":[{"ty":0,"nm":"Pre-comp 2","sr":1,"st":0,"op":112.000004561854,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[300,300,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[300,240,0],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":74,"ix":11}},"ef":[],"w":600,"h":600,"refId":"comp_2","ind":1},{"ty":0,"nm":"Pre-comp 2","sr":1,"st":2.00000008146167,"op":114.000004643315,"ip":2.00000008146167,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[300,300,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[300,253,0],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":34,"ix":11}},"ef":[],"w":600,"h":600,"refId":"comp_2","ind":2},{"ty":0,"nm":"Pre-comp 2","sr":1,"st":4.00000016292334,"op":116.000004724777,"ip":4.00000016292334,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[300,300,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[300,267,0],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":13,"ix":11}},"ef":[],"w":600,"h":600,"refId":"comp_2","ind":3},{"ty":0,"nm":"Pre-comp 2","sr":1,"st":5.00000020365417,"op":117.000004765508,"ip":5.00000020365417,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[300,300,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[300,277,0],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":13,"ix":11}},"ef":[],"w":600,"h":600,"refId":"comp_2","ind":4}]},{"nm":"","id":"comp_2","layers":[{"ty":4,"nm":"Shape Layer 4","sr":1,"st":2.00000008146167,"op":112.000004561854,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[-100,100,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[300,340,0],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":3},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":57},{"s":[0],"t":63.0000025660426}],"ix":11}},"ef":[],"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Shape 1","ix":1,"cix":2,"np":3,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":false,"i":[[0,0],[99.107,97.913],[-21,17]],"o":[[0,0],[-83,-82],[38.022,-30.779]],"v":[[-4,194],[-2,10],[-4,-151]]},"ix":2}},{"ty":"gs","bm":0,"hd":false,"mn":"ADBE Vector Graphic - G-Stroke","nm":"Gradient Stroke 1","e":{"a":0,"k":[-5,-130],"ix":5},"g":{"p":3,"k":{"a":0,"k":[0,0.18823529411764706,0.8745098039215686,0.9882352941176471,0.485,0.07450980392156863,0.8980392156862745,0.6901960784313725,1,0,1,0.6627450980392157],"ix":8}},"t":1,"a":{"a":0,"k":0},"h":{"a":0,"k":0},"s":{"a":0,"k":[-4,152],"ix":4},"lc":2,"lj":1,"ml":4,"o":{"a":0,"k":100,"ix":9},"w":{"a":0,"k":19,"ix":10}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.0549,0.2627,0.4824],"ix":4},"r":1,"o":{"a":0,"k":0,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[0,0],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]},{"ty":"tm","bm":0,"hd":false,"mn":"ADBE Vector Filter - Trim","nm":"Trim Paths 2","ix":2,"e":{"a":1,"k":[{"o":{"x":0.66,"y":0},"i":{"x":0.34,"y":1},"s":[0],"t":0},{"s":[100],"t":48.0000019550801}],"ix":2},"o":{"a":0,"k":0,"ix":3},"s":{"a":1,"k":[{"o":{"x":0.66,"y":0},"i":{"x":0.34,"y":1},"s":[0],"t":17},{"s":[100],"t":65.0000026475043}],"ix":1},"m":1}],"ind":1},{"ty":4,"nm":"Shape Layer 1","sr":1,"st":0,"op":101.000004113814,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[300,300,0],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":3},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":57},{"s":[0],"t":63.0000025660426}],"ix":11}},"ef":[],"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Shape 1","ix":1,"cix":2,"np":3,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":false,"i":[[0,0],[99.107,97.913],[-21,17]],"o":[[0,0],[-83,-82],[38.022,-30.779]],"v":[[-4,194],[-2,10],[-4,-151]]},"ix":2}},{"ty":"gs","bm":0,"hd":false,"mn":"ADBE Vector Graphic - G-Stroke","nm":"Gradient Stroke 1","e":{"a":0,"k":[-5,-130],"ix":5},"g":{"p":3,"k":{"a":0,"k":[0,0,0.4666666666666667,1,0.485,0,0.596078431372549,0.8705882352941177,1,0,1,0.6627450980392157],"ix":8}},"t":1,"a":{"a":0,"k":0},"h":{"a":0,"k":0},"s":{"a":0,"k":[-4,152],"ix":4},"lc":2,"lj":1,"ml":4,"o":{"a":0,"k":100,"ix":9},"w":{"a":0,"k":19,"ix":10}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.0549,0.2627,0.4824],"ix":4},"r":1,"o":{"a":0,"k":0,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[0,0],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]},{"ty":"tm","bm":0,"hd":false,"mn":"ADBE Vector Filter - Trim","nm":"Trim Paths 1","ix":2,"e":{"a":1,"k":[{"o":{"x":0.66,"y":0},"i":{"x":0.34,"y":1},"s":[0],"t":0},{"s":[100],"t":48.0000019550801}],"ix":2},"o":{"a":0,"k":0,"ix":3},"s":{"a":1,"k":[{"o":{"x":0.66,"y":0},"i":{"x":0.34,"y":1},"s":[0],"t":17},{"s":[100],"t":65.0000026475043}],"ix":1},"m":1}],"ind":2}]}]}')},6502:a=>{a.exports=JSON.parse('{"nm":"Loading","ddd":0,"h":500,"w":500,"meta":{"g":"@lottiefiles/toolkit-js 0.25.4"},"layers":[{"ty":4,"nm":"Shape Layer 4","sr":1,"st":0,"op":30.0000012219251,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0},"i":{"x":0.833,"y":1},"s":[546,266,0],"t":13,"ti":[0,0,0],"to":[0,-11,0]},{"o":{"x":0.167,"y":0},"i":{"x":0.833,"y":1},"s":[546,200,0],"t":17,"ti":[0,-11,0],"to":[0,0,0]},{"s":[546,266,0],"t":21.0000008553475}],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11}},"ef":[],"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Ellipse 1","ix":1,"cix":2,"np":3,"it":[{"ty":"el","bm":0,"hd":false,"mn":"ADBE Vector Shape - Ellipse","nm":"Ellipse Path 1","d":1,"p":{"a":0,"k":[0,0],"ix":3},"s":{"a":0,"k":[45.137,45.137],"ix":2}},{"ty":"st","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Stroke","nm":"Stroke 1","lc":1,"lj":1,"ml":4,"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":8,"ix":5},"c":{"a":0,"k":[0,0.7882,0.9176],"ix":3}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0,0.7882,0.9176],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[-167.432,-17.432],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":1},{"ty":4,"nm":"Shape Layer 3","sr":1,"st":-359.00001462237,"op":30.0000012219251,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0},"i":{"x":0.833,"y":1},"s":[454,266,0],"t":9,"ti":[0,0,0],"to":[0,-11,0]},{"o":{"x":0.167,"y":0},"i":{"x":0.833,"y":1},"s":[454,200,0],"t":13,"ti":[0,-11,0],"to":[0,0,0]},{"s":[454,266,0],"t":17.0000006924242}],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11}},"ef":[],"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Ellipse 1","ix":1,"cix":2,"np":3,"it":[{"ty":"el","bm":0,"hd":false,"mn":"ADBE Vector Shape - Ellipse","nm":"Ellipse Path 1","d":1,"p":{"a":0,"k":[0,0],"ix":3},"s":{"a":0,"k":[45.137,45.137],"ix":2}},{"ty":"st","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Stroke","nm":"Stroke 1","lc":1,"lj":1,"ml":4,"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":8,"ix":5},"c":{"a":0,"k":[0,0.7882,0.9176],"ix":3}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0,0.7882,0.9176],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[-167.432,-17.432],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":2},{"ty":4,"nm":"Shape Layer 2","sr":1,"st":0,"op":30.0000012219251,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0},"i":{"x":0.833,"y":1},"s":[365,266,0],"t":4,"ti":[0,0,0],"to":[0,-11,0]},{"o":{"x":0.167,"y":0},"i":{"x":0.833,"y":1},"s":[365,200,0],"t":9,"ti":[0,-11,0],"to":[0,0,0]},{"s":[365,266,0],"t":13.0000005295009}],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11}},"ef":[],"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Ellipse 1","ix":1,"cix":2,"np":3,"it":[{"ty":"el","bm":0,"hd":false,"mn":"ADBE Vector Shape - Ellipse","nm":"Ellipse Path 1","d":1,"p":{"a":0,"k":[0,0],"ix":3},"s":{"a":0,"k":[45.137,45.137],"ix":2}},{"ty":"st","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Stroke","nm":"Stroke 1","lc":1,"lj":1,"ml":4,"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":8,"ix":5},"c":{"a":0,"k":[0,0.7882,0.9176],"ix":3}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0,0.7882,0.9176],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[-167.432,-17.432],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":3},{"ty":4,"nm":"Shape Layer 1","sr":1,"st":0,"op":30.0000012219251,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0},"i":{"x":0.833,"y":1},"s":[277,266,0],"t":0,"ti":[0,0,0],"to":[0,-11,0]},{"o":{"x":0.167,"y":0},"i":{"x":0.833,"y":1},"s":[277,200,0],"t":4,"ti":[0,-11,0],"to":[0,0,0]},{"s":[277,266,0],"t":9.00000036657752}],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11}},"ef":[],"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Ellipse 1","ix":1,"cix":2,"np":3,"it":[{"ty":"el","bm":0,"hd":false,"mn":"ADBE Vector Shape - Ellipse","nm":"Ellipse Path 1","d":1,"p":{"a":0,"k":[0,0],"ix":3},"s":{"a":0,"k":[45.137,45.137],"ix":2}},{"ty":"st","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Stroke","nm":"Stroke 1","lc":1,"lj":1,"ml":4,"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":8,"ix":5},"c":{"a":0,"k":[0,0.7882,0.9176],"ix":3}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0,0.7882,0.9176],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[-167.432,-17.432],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":4}],"v":"5.7.8","fr":29.9700012207031,"op":30.0000012219251,"ip":0,"assets":[]}')}},i={};function s(e){var k=i[e];if(void 0!==k)return k.exports;var t=i[e]={exports:{}};return a[e](t,t.exports,s),t.exports}s.d=(a,i)=>{for(var e in i)s.o(i,e)&&!s.o(a,e)&&Object.defineProperty(a,e,{enumerable:!0,get:i[e]})},s.o=(a,i)=>Object.prototype.hasOwnProperty.call(a,i),s.r=a=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})};var e={};(()=>{s.r(e),s.d(e,{LoadingIndicator:()=>m});var a=s(997);const i=require("@lottiefiles/react-lottie-player");var k=s(5692);const t=(0,k.styled)(k.Box)({position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.5)",zIndex:99999}),x=(0,k.styled)(k.Box)((({theme:a})=>({display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"440px",height:"360px",padding:`${a.spacing(13)} ${a.spacing(4)}`,borderRadius:"12px",backgroundColor:a.palette.neutralGrey[85],color:a.palette.neutralGrey[0],boxSizing:"border-box"}))),o=(0,k.styled)(k.Typography)((({theme:a})=>({...a.typography.h8,marginTop:a.spacing(12),marginBottom:a.spacing(5)}))),r=(0,k.styled)(k.Typography)((({theme:a})=>({...a.typography.body1,textAlign:"center"}))),l=s(6502),p=s(9429),m=({message:s,details:e,loadingAnimation:k="dot"})=>(0,a.jsx)(t,{children:(0,a.jsxs)(x,{children:[(0,a.jsx)(i.Player,{autoplay:!0,loop:!0,src:"dot"===k?l:p,style:{height:"112px",width:"140px"}}),(0,a.jsx)(o,{children:s}),(0,a.jsx)(r,{children:e||(0,a.jsxs)(a.Fragment,{children:["Please wait.",(0,a.jsx)("br",{}),"It may take a few minutes."]})})]})})})(),module.exports=e})();
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components/LoadingIndicator/index.js","mappings":"mCAAAA,EAAOC,QAAUC,QAAQ,gB,UCAzBF,EAAOC,QAAUC,QAAQ,oB,g/eCCrBC,EAA2B,CAAC,EAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaL,QAGrB,IAAID,EAASG,EAAyBE,GAAY,CAGjDJ,QAAS,CAAC,GAOX,OAHAO,EAAoBH,GAAUL,EAAQA,EAAOC,QAASG,GAG/CJ,EAAOC,OACf,CCrBAG,EAAoBK,EAAI,CAACR,EAASS,KACjC,IAAI,IAAIC,KAAOD,EACXN,EAAoBQ,EAAEF,EAAYC,KAASP,EAAoBQ,EAAEX,EAASU,IAC5EE,OAAOC,eAAeb,EAASU,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,IAE1E,ECNDP,EAAoBQ,EAAI,CAACK,EAAKC,IAAUL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,GCClFd,EAAoBkB,EAAKrB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,UACZM,IACC,gDAEE,kBAAM,sC","sources":["webpack://@lunit/oui/external commonjs \"@mui/material\"","webpack://@lunit/oui/external commonjs \"react/jsx-runtime\"","webpack://@lunit/oui/webpack/bootstrap","webpack://@lunit/oui/webpack/runtime/define property getters","webpack://@lunit/oui/webpack/runtime/hasOwnProperty shorthand","webpack://@lunit/oui/webpack/runtime/make namespace object","webpack://@lunit/oui/external commonjs \"@lottiefiles/react-lottie-player\"","webpack://@lunit/oui/./src/components/LoadingIndicator/LoadingIndicator.styled.tsx","webpack://@lunit/oui/./src/components/LoadingIndicator/LoadingIndicator.tsx"],"sourcesContent":["module.exports = require(\"@mui/material\");","module.exports = require(\"react/jsx-runtime\");","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@lottiefiles/react-lottie-player\");","import { Box, styled, Typography } from '@mui/material';\n\nexport const LoadingOverlay = styled(Box)({\n position: 'fixed',\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n backgroundColor: 'rgba(0, 0, 0, 0.5)',\n zIndex: 99999,\n});\n\nexport const LoadingIndicatorBox = styled(Box)(({ theme }) => ({\n display: 'flex',\n flexDirection: 'column',\n justifyContent: 'center',\n alignItems: 'center',\n position: 'absolute',\n top: '50%',\n left: '50%',\n transform: 'translate(-50%, -50%)',\n width: '440px',\n height: '360px',\n padding: `${theme.spacing(13)} ${theme.spacing(4)}`,\n borderRadius: '12px',\n backgroundColor: theme.palette.neutralGrey[85],\n color: theme.palette.neutralGrey[0],\n boxSizing: 'border-box',\n}));\n\nexport const LoadingMessage = styled(Typography)(({ theme }) => ({\n ...theme.typography.h8,\n marginTop: theme.spacing(12),\n marginBottom: theme.spacing(5),\n}));\n\nexport const LoadingDetails = styled(Typography)(({ theme }) => ({\n ...theme.typography.body1,\n textAlign: 'center',\n}));\n","import React from 'react';\n/* eslint-disable @typescript-eslint/no-var-requires */\nimport { Player } from '@lottiefiles/react-lottie-player';\nimport {\n LoadingOverlay,\n LoadingIndicatorBox,\n LoadingMessage,\n LoadingDetails,\n} from './LoadingIndicator.styled';\nimport type { LoadingIndicatorProps } from './LoadingIndicator.types';\n\nconst DotLoadingAnimation = require('./assets/DotLoadingAnimation.json');\nconst DnaLoadingAnimation = require('./assets/DnaLoadingAnimation.json');\n\nconst LoadingIndicator = ({\n message,\n details,\n loadingAnimation = 'dot',\n}: LoadingIndicatorProps) => {\n return (\n <LoadingOverlay>\n <LoadingIndicatorBox>\n <Player\n autoplay\n loop\n src={loadingAnimation === 'dot' ? DotLoadingAnimation : DnaLoadingAnimation}\n style={{ height: '112px', width: '140px' }}\n />\n <LoadingMessage>{message}</LoadingMessage>\n <LoadingDetails>\n {details || (\n <>\n Please wait.\n <br />\n It may take a few minutes.\n </>\n )}\n </LoadingDetails>\n </LoadingIndicatorBox>\n </LoadingOverlay>\n );\n};\n\nexport default LoadingIndicator;\n"],"names":["module","exports","require","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","d","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","LoadingOverlay","styled","Box","position","top","left","right","bottom","backgroundColor","zIndex","LoadingIndicatorBox","theme","display","flexDirection","justifyContent","alignItems","transform","width","height","padding","spacing","borderRadius","palette","neutralGrey","color","boxSizing","LoadingMessage","Typography","typography","h8","marginTop","marginBottom","LoadingDetails","body1","textAlign","DotLoadingAnimation","DnaLoadingAnimation","message","details","loadingAnimation","Player","autoplay","loop","src","style"],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(()=>{"use strict";var e={6421:(e,t,s)=>{s.d(t,{nQ:()=>l,tL:()=>d});var r=s(997),i=s(5692),o=s(5314);const a=e=>"large"===e?"14px":"medium"===e?"10px":"6px",n=((0,i.styled)(i.ListItem)({width:"100%"}),(0,i.styled)((({size:e,...t})=>(0,r.jsx)(i.ListItemButton,{...t})))((({theme:e,size:t})=>({borderRadius:"8px",padding:`${a(t)} 8px`,"&.Mui-selected":{background:"transparent"},"&:hover, &.Mui-selected:hover, &.Mui-focusVisible, &.Mui-selected.Mui-focusVisible":{backgroundColor:e.palette.neutralGrey[75]}}))),{minWidth:"20px",height:"20px",color:"currentColor",svg:{width:"100%",height:"100%",color:"currentColor !important"}}),l=((0,i.styled)(i.ListItemText)((({theme:e})=>({margin:0,[`& .${i.typographyClasses.body1}`]:{...e.typography.body5}}))),(0,i.styled)(i.ListItemIcon)((({theme:e})=>({...n,marginRight:e.spacing(2)}))),(0,i.styled)(i.ListItemIcon)((({theme:e})=>({...n,justifyContent:"flex-end",marginLeft:e.spacing(2)}))),(0,i.styled)(o.Check)({color:"#fff"})),d=(0,i.styled)(o.Dummy)({visibility:"hidden"})},9474:(e,t,s)=>{s.d(t,{Z:()=>l});var r=s(997),i=s(8103),o=s.n(i),a=s(5692);const n=(0,a.styled)(a.Typography)((({theme:e})=>({...e.typography.body_m1,color:e.palette.neutralGrey[45]}))),l=e=>{const{className:t,...s}=e;return(0,r.jsx)(n,{...s,className:o()("ListItemCaption",t)})}},5103:(e,t,s)=>{s.d(t,{p:()=>d,Z:()=>c});var r=s(997),i=s(6689),o=s(5692);const a=(0,i.forwardRef)((({size:e,className:t,...s},i)=>(0,r.jsx)(o.Menu,{...s,ref:i,PopoverClasses:{paper:t}}))),n=(0,o.styled)(a)((({size:e,theme:t})=>({backgroundColor:t.palette.neutralGrey[90],borderRadius:"8px",[`& > .${o.listClasses.root}`]:{display:"flex",flexDirection:"column",padding:"small"===e?t.spacing(3,4):t.spacing(5,7),gap:"small"===e?t.spacing(0):t.spacing(2)},[`& > .${o.listClasses.root} > .${o.dividerClasses.root}`]:{marginTop:0,marginBottom:0,marginLeft:"small"===e?t.spacing(-4):t.spacing(-7),marginRight:"small"===e?t.spacing(-4):t.spacing(-7),width:"auto"}}))),l=(0,o.styled)(o.ListSubheader)((({theme:e})=>({...e.typography.small_body_m1,display:"flex",alignItems:"center",backgroundColor:"transparent",height:"28px",padding:0,color:e.palette.neutralGrey[40]}))),d=(0,i.createContext)({size:"small",showCheck:!1}),c=(0,i.forwardRef)((({subheader:e,size:t="small",showCheck:s=!1,children:o,...a},c)=>{const p=(0,i.useMemo)((()=>({size:t,showCheck:s})),[t,s]);return(0,r.jsx)(d.Provider,{value:p,children:(0,r.jsxs)(n,{size:t,ref:c,...a,children:[e&&(0,r.jsx)(l,{children:e}),o]})})}))},6414:(e,t,s)=>{s.d(t,{Z:()=>g});var r=s(997),i=s(6689),o=s(9474),a=s(5103),n=s(6421),l=s(5692);const d=(0,l.styled)(l.MenuItem)((({size:e,theme:t})=>({[`&.${l.buttonBaseClasses.root}`]:{padding:"small"===e?t.spacing(2):t.spacing(2,4),margin:"small"===e?t.spacing(0,-2):t.spacing(0,-4),"&.Mui-selected":{background:"transparent"},"&:hover, &.Mui-selected:hover, &.Mui-focusVisible, &.Mui-selected.Mui-focusVisible":{borderRadius:"8px",backgroundColor:t.palette.neutralGrey[75]}}}))),c={minWidth:"20px",width:"20px",height:"20px",color:"currentColor",svg:{width:"100%",height:"100%",color:"currentColor !important"}},p=(0,l.styled)(l.ListItemIcon)((({theme:e})=>({[`.${l.menuItemClasses.root} &`]:{...c,marginRight:e.spacing(2)}}))),u=(0,l.styled)(l.ListItemIcon)((({theme:e})=>({[`.${l.menuItemClasses.root} &`]:{...c,justifyContent:"flex-end",marginLeft:e.spacing(2)}}))),m=(0,l.styled)(l.ListItemText)((({theme:e})=>({margin:0,[`& .${l.typographyClasses.body1}`]:{...e.typography.body5}}))),g=({icon:e,caption:t,label:s,selected:l,...c})=>{const{size:g,showCheck:h}=(0,i.useContext)(a.p),y=h?l?(0,r.jsx)(n.nQ,{}):e||(0,r.jsx)(n.tL,{}):e;return(0,r.jsxs)(d,{...c,size:g,disableRipple:!0,children:[y&&(0,r.jsx)(p,{children:y}),(0,r.jsx)(m,{primary:s}),t&&(0,r.jsx)(u,{children:(0,r.jsx)(o.Z,{children:t})})]})}},5314:e=>{e.exports=require("@lunit/design-system-icons")},5692:e=>{e.exports=require("@mui/material")},8103:e=>{e.exports=require("clsx")},6689:e=>{e.exports=require("react")},997:e=>{e.exports=require("react/jsx-runtime")}},t={};function s(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,s),o.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{s.r(r),s.d(r,{Menu:()=>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OAAOC,eAAejB,EAAS,aAAc,CAAEnB,OAAO,GAAO,E","sources":["webpack://@lunit/oui/./src/components/List/List.utils.ts","webpack://@lunit/oui/./src/components/List/ListItem.styled.tsx","webpack://@lunit/oui/./src/components/List/ListItemCaption.styled.tsx","webpack://@lunit/oui/./src/components/List/ListItemCaption.tsx","webpack://@lunit/oui/./src/components/Menu/Menu.styled.tsx","webpack://@lunit/oui/./src/components/Menu/Menu.tsx","webpack://@lunit/oui/./src/components/Menu/MenuItem.styled.ts","webpack://@lunit/oui/./src/components/Menu/MenuItem.tsx","webpack://@lunit/oui/external commonjs \"@lunit/design-system-icons\"","webpack://@lunit/oui/external commonjs \"@mui/material\"","webpack://@lunit/oui/external commonjs \"clsx\"","webpack://@lunit/oui/external commonjs \"react\"","webpack://@lunit/oui/external commonjs \"react/jsx-runtime\"","webpack://@lunit/oui/webpack/bootstrap","webpack://@lunit/oui/webpack/runtime/compat get default export","webpack://@lunit/oui/webpack/runtime/define property getters","webpack://@lunit/oui/webpack/runtime/hasOwnProperty shorthand","webpack://@lunit/oui/webpack/runtime/make namespace object"],"sourcesContent":["import { ListSize } from './List.types';\n\nconst getPadding = (size: ListSize) => {\n if (size === 'large') {\n return '14px';\n }\n if (size === 'medium') {\n return '10px';\n }\n // 'small'\n return '6px';\n};\n\nexport default getPadding;\n","import React from 'react';\nimport {\n ListItem,\n ListItemButton,\n ListItemIcon,\n ListItemText,\n styled,\n typographyClasses,\n} from '@mui/material';\nimport { Check, Dummy } from '../../icons';\nimport getPadding from './List.utils';\nimport type { StyledListItemButtonProps } from './ListItem.types';\n\nexport const StyledListItem = styled(ListItem)({\n width: '100%',\n});\n\nexport const StyledListItemButton = styled(({ size, ...props }: StyledListItemButtonProps) => (\n <ListItemButton {...props} />\n))(({ theme, size }) => ({\n borderRadius: '8px',\n padding: `${getPadding(size)} 8px`,\n '&.Mui-selected': {\n background: 'transparent',\n },\n '&:hover, &.Mui-selected:hover, &.Mui-focusVisible, &.Mui-selected.Mui-focusVisible': {\n backgroundColor: theme.palette.neutralGrey[75],\n },\n}));\n\nexport const slotStyles = {\n minWidth: '20px',\n height: '20px',\n color: 'currentColor',\n svg: {\n width: '100%',\n height: '100%',\n color: 'currentColor !important',\n },\n};\n\nexport const StyledListItemText = styled(ListItemText)(({ theme }) => ({\n margin: 0,\n [`& .${typographyClasses.body1}`]: {\n ...theme.typography.body5,\n },\n}));\n\nexport const StyledListItemStartSlot = styled(ListItemIcon)(({ theme }) => ({\n ...slotStyles,\n marginRight: theme.spacing(2),\n}));\n\nexport const StyledListItemEndSlot = styled(ListItemIcon)(({ theme }) => ({\n ...slotStyles,\n justifyContent: 'flex-end',\n marginLeft: theme.spacing(2),\n}));\n\nexport const CheckIcon = styled(Check)({ color: '#fff' });\nexport const EmptyIcon = styled(Dummy)({ visibility: 'hidden' });\n","import { styled, Typography } from '@mui/material';\n\n// eslint-disable-next-line import/prefer-default-export\nexport const StyledListItemCaption = styled(Typography)(({ theme }) => ({\n ...theme.typography.body_m1,\n color: theme.palette.neutralGrey[45],\n}));\n","import React from 'react';\nimport clsx from 'clsx';\nimport { StyledListItemCaption } from './ListItemCaption.styled';\nimport { ListItemCaptionProps } from './ListItemCaption.types';\n\nexport const ListItemCaptionClassName = 'ListItemCaption';\n\nconst ListItemCaption = (props: ListItemCaptionProps) => {\n const { className, ...otherProps } = props;\n return (\n <StyledListItemCaption\n {...otherProps}\n className={clsx(ListItemCaptionClassName, className)}\n />\n );\n};\n\nexport default ListItemCaption;\n","import React from 'react';\nimport { styled, Menu, listClasses, ListSubheader, dividerClasses } from '@mui/material';\nimport { forwardRef } from 'react';\nimport type { StyledMenuProps } from './Menu.types';\n\nconst ForwardRefMenu = forwardRef<HTMLDivElement, StyledMenuProps>(\n ({ size, className, ...props }: StyledMenuProps, ref) => (\n <Menu\n {...props}\n ref={ref}\n PopoverClasses={{ paper: className }}\n />\n ),\n);\n\nexport const StyledMenu = styled(ForwardRefMenu)(({ size, theme }) => ({\n backgroundColor: theme.palette.neutralGrey[90],\n borderRadius: '8px',\n [`& > .${listClasses.root}`]: {\n display: 'flex',\n flexDirection: 'column',\n padding: size === 'small' ? theme.spacing(3, 4) : theme.spacing(5, 7),\n gap: size === 'small' ? theme.spacing(0) : theme.spacing(2),\n },\n [`& > .${listClasses.root} > .${dividerClasses.root}`]: {\n marginTop: 0,\n marginBottom: 0,\n marginLeft: size === 'small' ? theme.spacing(-4) : theme.spacing(-7),\n marginRight: size === 'small' ? theme.spacing(-4) : theme.spacing(-7),\n width: 'auto',\n },\n}));\n\nexport const StyledListSubheader = styled(ListSubheader)(({ theme }) => ({\n ...theme.typography.small_body_m1,\n display: 'flex',\n alignItems: 'center',\n backgroundColor: 'transparent',\n height: '28px',\n padding: 0,\n color: theme.palette.neutralGrey[40],\n}));\n","import React, { createContext, forwardRef, useMemo } from 'react';\nimport { StyledListSubheader, StyledMenu } from './Menu.styled';\nimport type { MenuContextValue, MenuProps } from './Menu.types';\n\nexport const MenuContext = createContext<MenuContextValue>({\n size: 'small',\n showCheck: false,\n});\n\nconst Menu = forwardRef<HTMLDivElement, MenuProps>(\n ({ subheader, size = 'small', showCheck = false, children, ...props }: MenuProps, ref) => {\n const contextValue = useMemo<MenuContextValue>(() => ({ size, showCheck }), [size, showCheck]);\n return (\n <MenuContext.Provider value={contextValue}>\n <StyledMenu\n size={size}\n ref={ref}\n {...props}\n >\n {subheader && <StyledListSubheader>{subheader}</StyledListSubheader>}\n {children}\n </StyledMenu>\n </MenuContext.Provider>\n );\n },\n);\n\nexport default Menu;\n","import {\n MenuItem,\n styled,\n buttonBaseClasses,\n ListItemIcon,\n menuItemClasses,\n ListItemText,\n typographyClasses,\n} from '@mui/material';\nimport type { StyledMenuItemProps } from './MenuItem.types';\n\nexport { CheckIcon, EmptyIcon } from '../List/ListItem.styled';\n\nexport const StyledMenuItem = styled(MenuItem)<StyledMenuItemProps>(({ size, theme }) => {\n return {\n [`&.${buttonBaseClasses.root}`]: {\n padding: size === 'small' ? theme.spacing(2) : theme.spacing(2, 4),\n margin: size === 'small' ? theme.spacing(0, -2) : theme.spacing(0, -4),\n '&.Mui-selected': {\n background: 'transparent',\n },\n '&:hover, &.Mui-selected:hover, &.Mui-focusVisible, &.Mui-selected.Mui-focusVisible': {\n borderRadius: '8px',\n backgroundColor: theme.palette.neutralGrey[75],\n },\n },\n };\n});\n\nconst iconStyles = {\n minWidth: '20px',\n width: '20px',\n height: '20px',\n color: 'currentColor',\n svg: {\n width: '100%',\n height: '100%',\n color: 'currentColor !important',\n },\n};\n\nexport const StyledMenuItemStartIcon = styled(ListItemIcon)(({ theme }) => ({\n [`.${menuItemClasses.root} &`]: {\n ...iconStyles,\n marginRight: theme.spacing(2),\n },\n}));\n\nexport const StyledMenuItemEndIcon = styled(ListItemIcon)(({ theme }) => ({\n [`.${menuItemClasses.root} &`]: {\n ...iconStyles,\n justifyContent: 'flex-end',\n marginLeft: theme.spacing(2),\n },\n}));\n\nexport const StyledMenuItemText = styled(ListItemText)(({ theme }) => ({\n margin: 0,\n [`& .${typographyClasses.body1}`]: {\n ...theme.typography.body5,\n },\n}));\n","import React from 'react';\nimport { useContext } from 'react';\nimport ListItemCaption from '../List/ListItemCaption';\nimport { MenuContext } from '../Menu/Menu';\nimport {\n StyledMenuItem,\n StyledMenuItemStartIcon,\n StyledMenuItemText,\n StyledMenuItemEndIcon,\n CheckIcon,\n EmptyIcon,\n} from './MenuItem.styled';\nimport type { MenuItemProps } from './MenuItem.types';\n\nconst MenuItem = ({ icon: iconProp, caption, label, selected, ...props }: MenuItemProps) => {\n const { size, showCheck } = useContext(MenuContext);\n\n const icon = (() => {\n if (showCheck) {\n if (selected) {\n return <CheckIcon />;\n }\n return iconProp || <EmptyIcon />;\n }\n return iconProp;\n })();\n\n return (\n <StyledMenuItem\n {...props}\n size={size}\n disableRipple\n >\n {icon && <StyledMenuItemStartIcon>{icon}</StyledMenuItemStartIcon>}\n <StyledMenuItemText primary={label} />\n {caption && (\n <StyledMenuItemEndIcon>\n <ListItemCaption>{caption}</ListItemCaption>\n </StyledMenuItemEndIcon>\n )}\n </StyledMenuItem>\n );\n};\n\nexport default MenuItem;\n","module.exports = require(\"@lunit/design-system-icons\");","module.exports = require(\"@mui/material\");","module.exports = require(\"clsx\");","module.exports = require(\"react\");","module.exports = require(\"react/jsx-runtime\");","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};"],"names":["size","slotStyles","styled","ListItem","width","props","ListItemButton","theme","borderRadius","padding","background","backgroundColor","palette","neutralGrey","minWidth","height","color","svg","CheckIcon","ListItemText","margin","typographyClasses","body1","typography","body5","ListItemIcon","marginRight","spacing","justifyContent","marginLeft","Check","EmptyIcon","Dummy","visibility","StyledListItemCaption","Typography","body_m1","className","otherProps","ForwardRefMenu","forwardRef","ref","Menu","PopoverClasses","paper","StyledMenu","listClasses","root","display","flexDirection","gap","dividerClasses","marginTop","marginBottom","StyledListSubheader","ListSubheader","small_body_m1","alignItems","MenuContext","createContext","showCheck","subheader","children","contextValue","useMemo","Provider","value","StyledMenuItem","MenuItem","buttonBaseClasses","iconStyles","StyledMenuItemStartIcon","menuItemClasses","StyledMenuItemEndIcon","StyledMenuItemText","icon","iconProp","caption","label","selected","useContext","disableRipple","primary","ListItemCaption","module","exports","require","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag"],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(()=>{"use strict";var e={1758:(e,t,r)=>{r.d(t,{Z:()=>a});var o=r(997),n=r(5692);const s=(0,r(8442).styled)(n.Divider)((({theme:e,orientation:t})=>"vertical"===t?{background:e.palette.neutralGrey[65],border:"none",height:"100%",outline:"none",width:"1px"}:{background:e.palette.neutralGrey[65],border:"none",height:"1px",outline:"none",width:"100%"})),a=function({orientation:e="vertical",...t}){return(0,o.jsx)(s,{orientation:e,...t})}},6421:(e,t,r)=>{r.d(t,{nQ:()=>l,tL:()=>d});var o=r(997),n=r(5692),s=r(5314);const a=e=>"large"===e?"14px":"medium"===e?"10px":"6px",i=((0,n.styled)(n.ListItem)({width:"100%"}),(0,n.styled)((({size:e,...t})=>(0,o.jsx)(n.ListItemButton,{...t})))((({theme:e,size:t})=>({borderRadius:"8px",padding:`${a(t)} 8px`,"&.Mui-selected":{background:"transparent"},"&:hover, &.Mui-selected:hover, &.Mui-focusVisible, &.Mui-selected.Mui-focusVisible":{backgroundColor:e.palette.neutralGrey[75]}}))),{minWidth:"20px",height:"20px",color:"currentColor",svg:{width:"100%",height:"100%",color:"currentColor !important"}}),l=((0,n.styled)(n.ListItemText)((({theme:e})=>({margin:0,[`& .${n.typographyClasses.body1}`]:{...e.typography.body5}}))),(0,n.styled)(n.ListItemIcon)((({theme:e})=>({...i,marginRight:e.spacing(2)}))),(0,n.styled)(n.ListItemIcon)((({theme:e})=>({...i,justifyContent:"flex-end",marginLeft:e.spacing(2)}))),(0,n.styled)(s.Check)({color:"#fff"})),d=(0,n.styled)(s.Dummy)({visibility:"hidden"})},9474:(e,t,r)=>{r.d(t,{Z:()=>l});var o=r(997),n=r(8103),s=r.n(n),a=r(5692);const i=(0,a.styled)(a.Typography)((({theme:e})=>({...e.typography.body_m1,color:e.palette.neutralGrey[45]}))),l=e=>{const{className:t,...r}=e;return(0,o.jsx)(i,{...r,className:s()("ListItemCaption",t)})}},5103:(e,t,r)=>{r.d(t,{p:()=>d,Z:()=>p});var o=r(997),n=r(6689),s=r(5692);const a=(0,n.forwardRef)((({size:e,className:t,...r},n)=>(0,o.jsx)(s.Menu,{...r,ref:n,PopoverClasses:{paper:t}}))),i=(0,s.styled)(a)((({size:e,theme:t})=>({backgroundColor:t.palette.neutralGrey[90],borderRadius:"8px",[`& > .${s.listClasses.root}`]:{display:"flex",flexDirection:"column",padding:"small"===e?t.spacing(3,4):t.spacing(5,7),gap:"small"===e?t.spacing(0):t.spacing(2)},[`& > .${s.listClasses.root} > .${s.dividerClasses.root}`]:{marginTop:0,marginBottom:0,marginLeft:"small"===e?t.spacing(-4):t.spacing(-7),marginRight:"small"===e?t.spacing(-4):t.spacing(-7),width:"auto"}}))),l=(0,s.styled)(s.ListSubheader)((({theme:e})=>({...e.typography.small_body_m1,display:"flex",alignItems:"center",backgroundColor:"transparent",height:"28px",padding:0,color:e.palette.neutralGrey[40]}))),d=(0,n.createContext)({size:"small",showCheck:!1}),p=(0,n.forwardRef)((({subheader:e,size:t="small",showCheck:r=!1,children:s,...a},p)=>{const c=(0,n.useMemo)((()=>({size:t,showCheck:r})),[t,r]);return(0,o.jsx)(d.Provider,{value:c,children:(0,o.jsxs)(i,{size:t,ref:p,...a,children:[e&&(0,o.jsx)(l,{children:e}),s]})})}))},6414:(e,t,r)=>{r.d(t,{Z:()=>g});var o=r(997),n=r(6689),s=r(9474),a=r(5103),i=r(6421),l=r(5692);const d=(0,l.styled)(l.MenuItem)((({size:e,theme:t})=>({[`&.${l.buttonBaseClasses.root}`]:{padding:"small"===e?t.spacing(2):t.spacing(2,4),margin:"small"===e?t.spacing(0,-2):t.spacing(0,-4),"&.Mui-selected":{background:"transparent"},"&:hover, &.Mui-selected:hover, &.Mui-focusVisible, &.Mui-selected.Mui-focusVisible":{borderRadius:"8px",backgroundColor:t.palette.neutralGrey[75]}}}))),p={minWidth:"20px",width:"20px",height:"20px",color:"currentColor",svg:{width:"100%",height:"100%",color:"currentColor !important"}},c=(0,l.styled)(l.ListItemIcon)((({theme:e})=>({[`.${l.menuItemClasses.root} &`]:{...p,marginRight:e.spacing(2)}}))),u=(0,l.styled)(l.ListItemIcon)((({theme:e})=>({[`.${l.menuItemClasses.root} &`]:{...p,justifyContent:"flex-end",marginLeft:e.spacing(2)}}))),h=(0,l.styled)(l.ListItemText)((({theme:e})=>({margin:0,[`& .${l.typographyClasses.body1}`]:{...e.typography.body5}}))),g=({icon:e,caption:t,label:r,selected:l,...p})=>{const{size:g,showCheck:m}=(0,n.useContext)(a.p),x=m?l?(0,o.jsx)(i.nQ,{}):e||(0,o.jsx)(i.tL,{}):e;return(0,o.jsxs)(d,{...p,size:g,disableRipple:!0,children:[x&&(0,o.jsx)(c,{children:x}),(0,o.jsx)(h,{primary:r}),t&&(0,o.jsx)(u,{children:(0,o.jsx)(s.Z,{children:t})})]})}},3356:(e,t,r)=>{r.d(t,{dS:()=>o});const o=6},5314:e=>{e.exports=require("@lunit/design-system-icons")},5692:e=>{e.exports=require("@mui/material")},8442:e=>{e.exports=require("@mui/material/styles")},8103:e=>{e.exports=require("clsx")},6689:e=>{e.exports=require("react")},997:e=>{e.exports=require("react/jsx-runtime")}},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var s=t[o]={exports:{}};return e[o](s,s.exports,r),s.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{r.r(o),r.d(o,{Pagination:()=>y});var e=r(997),t=r(6689),n=r(5314),s=r(1758),a=r(5103),i=r(6414),l=r(5692),d=r(3356);const p=[25,50,75,100],c=(0,l.styled)(l.Box)((({theme:e})=>({...e.typography.body5,display:"flex",justifyContent:"space-between",alignItems:"center",borderTop:`1px solid ${e.palette.neutralGrey[90]}`,height:"48px",padding:"14px 0",color:e.palette.neutralGrey[40]}))),u={style:{maxHeight:378,width:136}},h=(0,l.styled)("div")({display:"flex",alignItems:"center",height:"20px"}),g=(0,l.styled)(l.Button)((({theme:e})=>({justifyContent:"flex-end",border:"1px solid transparent",minWidth:"auto",width:"58px",height:"28px",marginLeft:e.spacing(3),padding:"4px 4px 4px 8px",color:e.palette.neutralGrey[15],".MuiButton-endIcon":{margin:0},"&:hover":{background:"transparent",borderColor:e.palette.neutralGrey[40]},"&:focus-visible":{background:"transparent",borderColor:e.palette.scope1}}))),m=(0,l.styled)(l.Button)((({theme:e})=>({border:"1px solid transparent",minWidth:"auto",height:"28px",padding:e.spacing(.5),color:e.palette.neutralGrey[40],"&:hover":{background:e.palette.neutralGrey[70]},"&:disabled":{color:e.palette.neutralGrey[40],opacity:.4},".MuiButton-endIcon":{margin:0}}))),x=((0,l.styled)("div")((({theme:e})=>{return{padding:`0 ${t=e.spacing(5),"number"==typeof t?t-d.dS:`calc(${t} - ${d.dS}px)`} 0 ${e.spacing(5)}`};var t})),{borderWidth:"0",margin:"0 12px"}),y=function({count:r,page:o=1,perPage:l,totalPage:d,onPageChange:y,onPerPageChange:b}){const[f,v]=(0,t.useState)(null),[C,j]=(0,t.useState)(null),w=Boolean(f),I=Boolean(C),k=(0,t.useMemo)((()=>Array.from({length:d},((e,t)=>t+1))),[d]),M=l*(o-1)+1,L=Math.min(M+l-1,r),P=()=>{v(null)},z=()=>{j(null)};return(0,t.useEffect)((()=>{o>d&&y?.(null,d)}),[d,o,y]),(0,e.jsxs)(c,{children:[(0,e.jsxs)(h,{children:["Items per page",(0,e.jsx)(g,{endIcon:(0,e.jsx)(n.ArrowDown,{style:{transform:w?"rotate(180deg)":"rotate(0deg)"}}),onClick:e=>{v(e.currentTarget)},children:l}),(0,e.jsx)(a.Z,{showCheck:!0,anchorEl:f,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"right"},PaperProps:u,onClose:P,open:w,children:p.map((t=>(0,e.jsx)(i.Z,{selected:t===l,onClick:e=>{e.preventDefault(),b?.(e,t),P()},label:t},t)))}),(0,e.jsx)(s.Z,{orientation:"vertical",sx:x}),M,"-",L," of ",r," items"]}),(0,e.jsxs)(h,{children:["This page",(0,e.jsx)(g,{id:"selected-page",endIcon:(0,e.jsx)(n.ArrowDown,{style:{transform:I?"rotate(180deg)":"rotate(0deg)"}}),onClick:e=>{j(e.currentTarget)},children:o}),(0,e.jsx)(a.Z,{showCheck:!0,anchorEl:C,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"bottom",horizontal:"right"},PaperProps:u,onClose:z,open:I,children:k.map((t=>(0,e.jsx)(i.Z,{selected:t===o,onClick:e=>{e.preventDefault(),y?.(e,t),z()},label:t},t)))}),(0,e.jsx)(s.Z,{orientation:"vertical",sx:x}),(0,e.jsx)(m,{id:"prev-button",disabled:1===o,onClick:e=>{e.preventDefault(),y?.(e,o-1)},endIcon:(0,e.jsx)(n.ArrowDown,{style:{transform:"rotate(90deg)"}})}),(0,e.jsx)(m,{id:"next-button",disabled:o===d,onClick:e=>{e.preventDefault(),y?.(e,o+1)},endIcon:(0,e.jsx)(n.ArrowDown,{style:{transform:"rotate(-90deg)"}})})]})]})}})(),module.exports=o})();
|
|
2
|
+
//# sourceMappingURL=index.js.map
|