@tipp/ui 1.5.0 → 1.5.2
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/app/index.cjs +201 -187
- package/dist/app/index.cjs.map +1 -1
- package/dist/app/index.js +36 -36
- package/dist/app/platform/coach-question-list.cjs +7 -7
- package/dist/app/platform/coach-question-list.cjs.map +1 -1
- package/dist/app/platform/coach-question-list.js +16 -16
- package/dist/app/platform/edit-coaching-time.cjs +18 -18
- package/dist/app/platform/edit-coaching-time.cjs.map +1 -1
- package/dist/app/platform/edit-coaching-time.js +26 -26
- package/dist/app/platform/edit-service-type.cjs +10 -10
- package/dist/app/platform/edit-service-type.cjs.map +1 -1
- package/dist/app/platform/edit-service-type.js +25 -25
- package/dist/app/platform/goal-manage-card-edit.cjs +14 -14
- package/dist/app/platform/goal-manage-card-edit.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-edit.js +24 -24
- package/dist/app/platform/goal-manage-card-read.cjs +16 -16
- package/dist/app/platform/goal-manage-card-read.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-read.js +17 -17
- package/dist/app/platform/on-offline-radio-card.js +23 -23
- package/dist/app/platform/report-card.cjs +7 -7
- package/dist/app/platform/report-card.cjs.map +1 -1
- package/dist/app/platform/report-card.js +23 -23
- package/dist/app/platform/reservation-card.cjs +28 -28
- package/dist/app/platform/reservation-card.cjs.map +1 -1
- package/dist/app/platform/reservation-card.js +24 -24
- package/dist/app/platform/session-card.cjs +122 -108
- package/dist/app/platform/session-card.cjs.map +1 -1
- package/dist/app/platform/session-card.js +27 -27
- package/dist/app/platform/session-review-simple-read.cjs +8 -8
- package/dist/app/platform/session-review-simple-read.cjs.map +1 -1
- package/dist/app/platform/session-review-simple-read.js +17 -17
- package/dist/app/platform/userInfos/coaching-customer-info/index.cjs +17 -17
- package/dist/app/platform/userInfos/coaching-customer-info/index.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/index.js +20 -20
- package/dist/app/platform/userInfos/coaching-customer-info/large.cjs +8 -8
- package/dist/app/platform/userInfos/coaching-customer-info/large.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/large.js +17 -17
- package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs +13 -13
- package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/medium.js +17 -17
- package/dist/app/platform/userInfos/coaching-customer-info/small.cjs +11 -11
- package/dist/app/platform/userInfos/coaching-customer-info/small.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/small.js +17 -17
- package/dist/app/platform/userInfos/session-user-info-detail.cjs +11 -11
- package/dist/app/platform/userInfos/session-user-info-detail.cjs.map +1 -1
- package/dist/app/platform/userInfos/session-user-info-detail.js +17 -17
- package/dist/app/platform/userInfos/utils.js +16 -16
- package/dist/atoms/button.d.cts +1 -1
- package/dist/atoms/button.d.ts +1 -1
- package/dist/atoms/dialog.cjs +55 -81
- package/dist/atoms/dialog.cjs.map +1 -1
- package/dist/atoms/dialog.d.cts +2 -0
- package/dist/atoms/dialog.d.ts +2 -0
- package/dist/atoms/dialog.js +3 -3
- package/dist/atoms/index.cjs +145 -131
- package/dist/atoms/index.cjs.map +1 -1
- package/dist/atoms/index.js +39 -39
- package/dist/chunk-2M2IFCSK.js +52 -0
- package/dist/chunk-2M2IFCSK.js.map +1 -0
- package/dist/chunk-2OS7X2DG.js +138 -0
- package/dist/chunk-2OS7X2DG.js.map +1 -0
- package/dist/chunk-36JB7UOF.js +138 -0
- package/dist/chunk-36JB7UOF.js.map +1 -0
- package/dist/chunk-4T4KKREE.js +30 -0
- package/dist/chunk-4T4KKREE.js.map +1 -0
- package/dist/chunk-5327PTNJ.js +138 -0
- package/dist/chunk-5327PTNJ.js.map +1 -0
- package/dist/chunk-547DJCAJ.js +74 -0
- package/dist/chunk-547DJCAJ.js.map +1 -0
- package/dist/chunk-5AAS42YG.js +98 -0
- package/dist/chunk-5AAS42YG.js.map +1 -0
- package/dist/chunk-5E3TLMRW.js +138 -0
- package/dist/chunk-5E3TLMRW.js.map +1 -0
- package/dist/chunk-5FP6SWXJ.js +203 -0
- package/dist/chunk-5FP6SWXJ.js.map +1 -0
- package/dist/chunk-6GXQGGUZ.js +64 -0
- package/dist/chunk-6GXQGGUZ.js.map +1 -0
- package/dist/chunk-6Y3Z5OIX.js +101 -0
- package/dist/chunk-6Y3Z5OIX.js.map +1 -0
- package/dist/chunk-7EDPO2Y5.js +138 -0
- package/dist/chunk-7EDPO2Y5.js.map +1 -0
- package/dist/chunk-7OJSWKHZ.js +138 -0
- package/dist/chunk-7OJSWKHZ.js.map +1 -0
- package/dist/chunk-7TWIGS7O.js +101 -0
- package/dist/chunk-7TWIGS7O.js.map +1 -0
- package/dist/chunk-7WLDXOOO.js +350 -0
- package/dist/chunk-7WLDXOOO.js.map +1 -0
- package/dist/chunk-7ZEWNVHJ.js +192 -0
- package/dist/chunk-7ZEWNVHJ.js.map +1 -0
- package/dist/chunk-AGPJA7IM.js +110 -0
- package/dist/chunk-AGPJA7IM.js.map +1 -0
- package/dist/chunk-AKKAPBO4.js +52 -0
- package/dist/chunk-AKKAPBO4.js.map +1 -0
- package/dist/chunk-AOCMD34M.js +138 -0
- package/dist/chunk-AOCMD34M.js.map +1 -0
- package/dist/chunk-AP5ARKJL.js +138 -0
- package/dist/chunk-AP5ARKJL.js.map +1 -0
- package/dist/chunk-B6XJ2W4L.js +243 -0
- package/dist/chunk-B6XJ2W4L.js.map +1 -0
- package/dist/chunk-C24NCIRF.js +138 -0
- package/dist/chunk-C24NCIRF.js.map +1 -0
- package/dist/chunk-C3QWDJ3D.js +145 -0
- package/dist/chunk-C3QWDJ3D.js.map +1 -0
- package/dist/chunk-CCYMLZTF.js +73 -0
- package/dist/chunk-CCYMLZTF.js.map +1 -0
- package/dist/chunk-CEMVFONQ.js +104 -0
- package/dist/chunk-CEMVFONQ.js.map +1 -0
- package/dist/chunk-CJ3XXETF.js +109 -0
- package/dist/chunk-CJ3XXETF.js.map +1 -0
- package/dist/chunk-EBSM7TV4.js +101 -0
- package/dist/chunk-EBSM7TV4.js.map +1 -0
- package/dist/chunk-FMCDZEXR.js +58 -0
- package/dist/chunk-FMCDZEXR.js.map +1 -0
- package/dist/chunk-GZRUTEDV.js +101 -0
- package/dist/chunk-GZRUTEDV.js.map +1 -0
- package/dist/chunk-H623KT6H.js +138 -0
- package/dist/chunk-H623KT6H.js.map +1 -0
- package/dist/chunk-I55PKI44.js +57 -0
- package/dist/chunk-I55PKI44.js.map +1 -0
- package/dist/chunk-IE5GRQOQ.js +112 -0
- package/dist/chunk-IE5GRQOQ.js.map +1 -0
- package/dist/chunk-IFHIVCXR.js +76 -0
- package/dist/chunk-IFHIVCXR.js.map +1 -0
- package/dist/chunk-IVGPZUCB.js +203 -0
- package/dist/chunk-IVGPZUCB.js.map +1 -0
- package/dist/chunk-JTEQ25Z5.js +101 -0
- package/dist/chunk-JTEQ25Z5.js.map +1 -0
- package/dist/chunk-JXRHM4PD.js +138 -0
- package/dist/chunk-JXRHM4PD.js.map +1 -0
- package/dist/chunk-JZXYBYIV.js +39 -0
- package/dist/chunk-JZXYBYIV.js.map +1 -0
- package/dist/chunk-KJMWCR2G.js +101 -0
- package/dist/chunk-KJMWCR2G.js.map +1 -0
- package/dist/chunk-LQT6ZGLA.js +138 -0
- package/dist/chunk-LQT6ZGLA.js.map +1 -0
- package/dist/chunk-LWPBL4WG.js +243 -0
- package/dist/chunk-LWPBL4WG.js.map +1 -0
- package/dist/chunk-M5G5KMUE.js +76 -0
- package/dist/chunk-M5G5KMUE.js.map +1 -0
- package/dist/chunk-MI2LODDO.js +138 -0
- package/dist/chunk-MI2LODDO.js.map +1 -0
- package/dist/chunk-MODBHLOL.js +138 -0
- package/dist/chunk-MODBHLOL.js.map +1 -0
- package/dist/chunk-MOZLM3CP.js +171 -0
- package/dist/chunk-MOZLM3CP.js.map +1 -0
- package/dist/chunk-MR4FQ4H6.js +93 -0
- package/dist/chunk-MR4FQ4H6.js.map +1 -0
- package/dist/chunk-NFTADDQN.js +138 -0
- package/dist/chunk-NFTADDQN.js.map +1 -0
- package/dist/chunk-NHC6ZFBA.js +138 -0
- package/dist/chunk-NHC6ZFBA.js.map +1 -0
- package/dist/chunk-NPSJEUC6.js +138 -0
- package/dist/chunk-NPSJEUC6.js.map +1 -0
- package/dist/chunk-OUZT3SDR.js +59 -0
- package/dist/chunk-OUZT3SDR.js.map +1 -0
- package/dist/chunk-PMLOM6GM.js +138 -0
- package/dist/chunk-PMLOM6GM.js.map +1 -0
- package/dist/chunk-PWD34ME3.js +76 -0
- package/dist/chunk-PWD34ME3.js.map +1 -0
- package/dist/chunk-PWPVK2HB.js +112 -0
- package/dist/chunk-PWPVK2HB.js.map +1 -0
- package/dist/chunk-Q64HDW6R.js +109 -0
- package/dist/chunk-Q64HDW6R.js.map +1 -0
- package/dist/chunk-QJ4FYN6G.js +76 -0
- package/dist/chunk-QJ4FYN6G.js.map +1 -0
- package/dist/chunk-QLPJXYNG.js +30 -0
- package/dist/chunk-QLPJXYNG.js.map +1 -0
- package/dist/chunk-QNYWSY5P.js +164 -0
- package/dist/chunk-QNYWSY5P.js.map +1 -0
- package/dist/chunk-R255GZPB.js +35 -0
- package/dist/chunk-R255GZPB.js.map +1 -0
- package/dist/chunk-RGH3ADLO.js +101 -0
- package/dist/chunk-RGH3ADLO.js.map +1 -0
- package/dist/chunk-RLFG5TCU.js +98 -0
- package/dist/chunk-RLFG5TCU.js.map +1 -0
- package/dist/chunk-STD6C6HS.js +52 -0
- package/dist/chunk-STD6C6HS.js.map +1 -0
- package/dist/chunk-TCF7B3N3.js +101 -0
- package/dist/chunk-TCF7B3N3.js.map +1 -0
- package/dist/chunk-TJ564MUO.js +145 -0
- package/dist/chunk-TJ564MUO.js.map +1 -0
- package/dist/chunk-TJSCVJT2.js +138 -0
- package/dist/chunk-TJSCVJT2.js.map +1 -0
- package/dist/chunk-TMDNIBIV.js +64 -0
- package/dist/chunk-TMDNIBIV.js.map +1 -0
- package/dist/chunk-TW5EULWR.js +93 -0
- package/dist/chunk-TW5EULWR.js.map +1 -0
- package/dist/chunk-UB6KOKKQ.js +138 -0
- package/dist/chunk-UB6KOKKQ.js.map +1 -0
- package/dist/chunk-UDV652HT.js +145 -0
- package/dist/chunk-UDV652HT.js.map +1 -0
- package/dist/chunk-UVJASJN4.js +64 -0
- package/dist/chunk-UVJASJN4.js.map +1 -0
- package/dist/chunk-VXTOWVUI.js +203 -0
- package/dist/chunk-VXTOWVUI.js.map +1 -0
- package/dist/chunk-VYGMNI7T.js +138 -0
- package/dist/chunk-VYGMNI7T.js.map +1 -0
- package/dist/chunk-W4QKUPPN.js +138 -0
- package/dist/chunk-W4QKUPPN.js.map +1 -0
- package/dist/chunk-WOVEXBEW.js +64 -0
- package/dist/chunk-WOVEXBEW.js.map +1 -0
- package/dist/chunk-WVBFSWKT.js +104 -0
- package/dist/chunk-WVBFSWKT.js.map +1 -0
- package/dist/chunk-X3SEOKG4.js +243 -0
- package/dist/chunk-X3SEOKG4.js.map +1 -0
- package/dist/chunk-XBYZM24U.js +112 -0
- package/dist/chunk-XBYZM24U.js.map +1 -0
- package/dist/chunk-XEJG52Y3.js +112 -0
- package/dist/chunk-XEJG52Y3.js.map +1 -0
- package/dist/chunk-XEJNYJF6.js +80 -0
- package/dist/chunk-XEJNYJF6.js.map +1 -0
- package/dist/chunk-XGFGTMZU.js +350 -0
- package/dist/chunk-XGFGTMZU.js.map +1 -0
- package/dist/chunk-XKB7JSXW.js +171 -0
- package/dist/chunk-XKB7JSXW.js.map +1 -0
- package/dist/chunk-XNOQPF6O.js +171 -0
- package/dist/chunk-XNOQPF6O.js.map +1 -0
- package/dist/chunk-Y2MNPJCI.js +73 -0
- package/dist/chunk-Y2MNPJCI.js.map +1 -0
- package/dist/chunk-Y2TFOMTA.js +30 -0
- package/dist/chunk-Y2TFOMTA.js.map +1 -0
- package/dist/chunk-YHW5PCCE.js +57 -0
- package/dist/chunk-YHW5PCCE.js.map +1 -0
- package/dist/chunk-YK2IAHKI.js +138 -0
- package/dist/chunk-YK2IAHKI.js.map +1 -0
- package/dist/chunk-YVWOLJ44.js +101 -0
- package/dist/chunk-YVWOLJ44.js.map +1 -0
- package/dist/chunk-ZAQQ6H6W.js +30 -0
- package/dist/chunk-ZAQQ6H6W.js.map +1 -0
- package/dist/chunk-ZUL5FOQW.js +203 -0
- package/dist/chunk-ZUL5FOQW.js.map +1 -0
- package/dist/chunk-ZW34437K.js +138 -0
- package/dist/chunk-ZW34437K.js.map +1 -0
- package/dist/chunk-ZW37CDPD.js +243 -0
- package/dist/chunk-ZW37CDPD.js.map +1 -0
- package/dist/index.cjs +325 -311
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +5 -3
- package/dist/index.css.map +1 -1
- package/dist/index.js +68 -68
- package/dist/layouts/index.js +16 -16
- package/dist/layouts/response-display.js +16 -16
- package/dist/molecules/date-picker/date-picker-button.cjs +12 -12
- package/dist/molecules/date-picker/date-picker-button.cjs.map +1 -1
- package/dist/molecules/date-picker/date-picker-button.js +18 -18
- package/dist/molecules/date-picker/index.js +2 -2
- package/dist/molecules/expand-table/index.cjs +12 -12
- package/dist/molecules/expand-table/index.cjs.map +1 -1
- package/dist/molecules/expand-table/index.js +19 -19
- package/dist/molecules/expand-table/row.js +16 -16
- package/dist/molecules/index.cjs +46 -46
- package/dist/molecules/index.cjs.map +1 -1
- package/dist/molecules/index.js +23 -23
- package/dist/molecules/learning-post.js +2 -2
- package/dist/molecules/navigation.js +16 -16
- package/dist/molecules/radio-button-card.js +16 -16
- package/dist/molecules/tag-selector.js +17 -17
- package/dist/molecules/time-select.js +16 -16
- package/package.json +3 -3
- package/src/atoms/dialog.tsx +32 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/app/platform/userInfos/session-user-info-detail.tsx","../../../../src/atoms/box.tsx","../../../../src/atoms/button.tsx","../../../../src/utils/convert-button-size.ts","../../../../src/atoms/data-list.tsx","../../../../src/atoms/toast.tsx","../../../../src/atoms/flex.tsx","../../../../src/atoms/grid.tsx","../../../../src/atoms/heading.tsx","../../../../src/atoms/separator.tsx","../../../../src/app/platform/userInfos/utils.tsx"],"sourcesContent":["import React from 'react';\nimport { Box, DataList, Flex, Grid, Heading, Separator } from '../../../atoms';\nimport type { Customer, Session } from './utils';\nimport { infoList, renderDataListItem, sessionList } from './utils';\n\nexport interface SessionUserInfoDetailProps {\n customer: Customer;\n session: Session;\n}\n\nfunction SectionWrapper({\n title,\n children,\n}: {\n title: string;\n children: React.ReactElement;\n}): JSX.Element {\n return (\n <Box>\n <Grid align=\"center\" columns=\"auto 1fr\" gap=\"3\" mb=\"5\">\n <Heading variant=\"heading5\">{title}</Heading>\n\n <Separator size=\"4\" />\n </Grid>\n {children}\n </Box>\n );\n}\n\nexport function SessionUserInfoDetail({\n customer,\n session,\n}: SessionUserInfoDetailProps): React.ReactElement {\n return (\n <Flex direction=\"column\" gap=\"6\">\n <SectionWrapper title=\"세션 정보\">\n <DataList.Root>\n {sessionList.map((info) => renderDataListItem(info, session))}\n </DataList.Root>\n </SectionWrapper>\n\n <SectionWrapper title=\"회원 정보\">\n <DataList.Root>\n {infoList.map((info) => renderDataListItem(info, customer))}\n </DataList.Root>\n </SectionWrapper>\n </Flex>\n );\n}\n","export { Box, type BoxProps } from '@radix-ui/themes';\n","import React, { forwardRef, useMemo } from 'react';\nimport { Button as RadixButton } from '@radix-ui/themes';\nimport { convertSize } from '../utils/convert-button-size';\nimport type { ButtonProps } from './button.type';\n\nexport const Button = forwardRef<HTMLButtonElement, ButtonProps>(\n (props, ref): React.ReactElement => {\n const { size, style, variant, ...restProps } = props;\n\n const radixSize = useMemo(() => {\n return convertSize(size);\n }, [size]);\n\n const mergedStyle = useMemo<ButtonProps['style']>(() => {\n const baseStyle = {\n background: variant === 'transparent' ? 'transparent' : undefined,\n fontWeight: 400,\n };\n return { ...baseStyle, ...style };\n }, [style, variant]);\n\n const radixVariant = useMemo(() => {\n if (variant === 'transparent') return 'ghost';\n return variant;\n }, [variant]);\n\n return (\n <RadixButton\n style={mergedStyle}\n variant={radixVariant}\n {...restProps}\n ref={ref}\n size={radixSize}\n />\n );\n }\n);\n\nButton.displayName = 'Button';\n","import { type ButtonProps as RadixButtonProps } from '@radix-ui/themes';\nimport type { Breakpoint } from '@radix-ui/themes/props';\nimport type { ButtonProps } from '../atoms/button.type';\n\nexport const convertSizeStr = (\n size: ButtonProps['size']\n): '1' | '2' | '3' | '4' => {\n switch (size) {\n case 'small':\n return '1';\n case 'medium':\n return '2';\n case 'large':\n return '3';\n default:\n return '2';\n }\n};\n\nexport const convertSizeResponse = (\n size: ButtonProps['size']\n): RadixButtonProps['size'] => {\n if (typeof size === 'string' || typeof size === 'undefined') {\n return convertSizeStr(size);\n }\n const radixSize: RadixButtonProps['size'] = {};\n let key: Breakpoint = 'initial';\n for (key in size) {\n radixSize[key] = convertSizeStr(size[key]);\n }\n return radixSize;\n};\n\nexport const convertSize = (\n size: ButtonProps['size']\n): RadixButtonProps['size'] => {\n if (typeof size === 'string') {\n return convertSizeStr(size);\n }\n return convertSizeResponse(size);\n};\n","export { DataList } from '@radix-ui/themes';\n","import { InfoCircledIcon } from '@radix-ui/react-icons';\nimport {\n ToastContainer as ToastifyContainer,\n type ToastContainerProps,\n} from 'react-toastify';\n\nexport { toast } from 'react-toastify';\n\nfunction CloseButton(): React.ReactNode {\n return null;\n}\n\nexport function ToastContainer(props: ToastContainerProps): React.ReactElement {\n return (\n <ToastifyContainer\n autoClose={5000}\n closeButton={CloseButton}\n closeOnClick\n draggable\n hideProgressBar\n icon={<InfoCircledIcon />}\n newestOnTop\n pauseOnFocusLoss\n pauseOnHover\n position=\"bottom-right\"\n rtl={false}\n style={{ zIndex: 999999 }}\n {...props}\n />\n );\n}\n","export { Flex, type FlexProps } from '@radix-ui/themes';\n","export { Grid, type GridProps } from '@radix-ui/themes';\n","import {\n Heading as RadixHeading,\n type HeadingProps as RadixHeadingProps,\n} from '@radix-ui/themes';\nimport { useMemo } from 'react';\n\nexport { Heading as RadixHeading } from '@radix-ui/themes';\n\nexport type HeadingProps = RadixHeadingProps & {\n variant?: 'heading1' | 'heading2' | 'heading3' | 'heading4' | 'heading5';\n};\n\nexport function Heading(props: HeadingProps): React.ReactElement {\n const { size, children, variant, ...rest } = props;\n const radixSize = useMemo<RadixHeadingProps['size']>(() => {\n switch (variant) {\n case 'heading1':\n return '7';\n case 'heading2':\n return '6';\n case 'heading3':\n return '5';\n case 'heading4':\n return '4';\n case 'heading5':\n return '3';\n default:\n return size;\n }\n }, [size, variant]);\n\n return (\n <RadixHeading {...rest} size={radixSize}>\n {children}\n </RadixHeading>\n );\n}\n","export { Separator, type SeparatorProps } from '@radix-ui/themes';\n","import type { ProjectStatus } from '@tipp/biz-utils';\nimport { format } from 'date-fns';\nimport { CopyIcon } from '@radix-ui/react-icons';\nimport { Button, DataList, toast } from '../../../atoms';\n\nexport interface CoachingCustomerInfoProps {\n customer?: Customer;\n session?: Session;\n children?: React.ReactElement;\n}\n\nexport interface Customer {\n username: string;\n email: string;\n gender: string;\n birthdate: Date;\n phone: string;\n company: string;\n team: string;\n position: string;\n level: string;\n}\n\nexport interface Session {\n state: ProjectStatus;\n totalSession: number;\n restSession: number;\n nextSessionDate?: Date;\n nextSessionType?: string;\n expiredAt: Date;\n}\n\nexport interface DataListItems<T> {\n label: string;\n getValue: (original?: T) => string | undefined;\n copyable?: boolean;\n}\n\nexport const infoList: DataListItems<Customer>[] = [\n { label: '이름', getValue: (customer) => customer?.username },\n { label: '성별', getValue: (customer) => customer?.email },\n {\n label: '생년월일',\n getValue: (customer) =>\n customer?.birthdate && format(customer.birthdate, 'yyyy.MM.dd'),\n },\n { label: '부서', getValue: (customer) => customer?.team },\n { label: '직책', getValue: (customer) => customer?.position },\n { label: '직급', getValue: (customer) => customer?.level },\n { label: '이메일', getValue: (customer) => customer?.email, copyable: true },\n {\n label: '전화번호',\n getValue: (customer) => customer?.phone,\n copyable: true,\n },\n];\n\nexport const sessionList: DataListItems<Session>[] = [\n {\n label: '진행중인 세션',\n getValue: (session) =>\n `${session?.restSession || '-'}회차/${session?.totalSession || '-'}회차`,\n },\n {\n label: '다음 세션 일시',\n getValue: (session) =>\n session?.nextSessionDate\n ? format(session.nextSessionDate, 'yyyy년 MM월 dd일 HH시 mm분')\n : '-',\n },\n {\n label: '다음 세션 참여 방식',\n getValue: (session) => session?.nextSessionType || '-',\n },\n {\n label: '코칭 만료 기한',\n getValue: (session) =>\n session?.expiredAt ? format(session.expiredAt, 'yyyy년 MM월 dd일') : '-',\n },\n];\n\nexport const renderItem = <T extends object>(\n info: DataListItems<T>,\n data?: T\n): JSX.Element => {\n const value = info.getValue(data);\n return (\n <>\n {value || '-'}\n {info.copyable && value ? <CopyButton value={value} /> : null}\n </>\n );\n};\n\nexport const renderDataListItem = <T extends object>(\n info: DataListItems<T>,\n data?: T\n): React.ReactElement => {\n return (\n <DataList.Item key={info.label}>\n <DataList.Label>{info.label}</DataList.Label>\n <DataList.Value>{renderItem(info, data)}</DataList.Value>\n </DataList.Item>\n );\n};\n\nexport function CopyButton(props: { value: string }): JSX.Element {\n return (\n <Button\n color=\"gray\"\n onClick={() => {\n void navigator.clipboard.writeText(props.value);\n toast.success('복사되었습니다.');\n }}\n style={{ marginLeft: '0', marginTop: '0' }}\n variant=\"transparent\"\n >\n <CopyIcon />\n </Button>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,oBAAmC;;;ACAnC,mBAA2C;AAC3C,IAAAA,iBAAsC;;;ACG/B,IAAM,iBAAiB,CAC5B,SAC0B;AAC1B,UAAQ,MAAM;AAAA,IACZ,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AACH,aAAO;AAAA,IACT;AACE,aAAO;AAAA,EACX;AACF;AA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AS,eAAe;AAAA,EACtB;AAAA,EACA;AACF,GAGgB;AACd,SACE,8CAAC,qBACC;AAAA,kDAAC,uBAAK,OAAM,UAAS,SAAQ,YAAW,KAAI,KAAI,IAAG,KACjD;AAAA,mDAACC,UAAA,EAAQ,SAAQ,YAAY,iBAAM;AAAA,MAEnC,6CAAC,4BAAU,MAAK,KAAI;AAAA,OACtB;AAAA,IACC;AAAA,KACH;AAEJ;AAEO,SAAS,sBAAsB;AAAA,EACpC;AAAA,EACA;AACF,GAAmD;AACjD,SACE,8CAAC,uBAAK,WAAU,UAAS,KAAI,KAC3B;AAAA,iDAAC,kBAAe,OAAM,6BACpB,uDAAC,wBAAS,MAAT,EACE,sBAAY,IAAI,CAAC,SAAS,mBAAmB,MAAM,OAAO,CAAC,GAC9D,GACF;AAAA,IAEA,6CAAC,kBAAe,OAAM,6BACpB,uDAAC,wBAAS,MAAT,EACE,mBAAS,IAAI,CAAC,SAAS,mBAAmB,MAAM,QAAQ,CAAC,GAC5D,GACF;AAAA,KACF;AAEJ;","names":["import_themes","RadixButton","import_themes","import_react_toastify","import_jsx_runtime","import_themes","import_themes","import_themes","import_react","import_jsx_runtime","Heading","RadixHeading","import_themes","import_react_icons","import_jsx_runtime","import_jsx_runtime","Heading"]}
|
|
1
|
+
{"version":3,"sources":["../../../../src/app/platform/userInfos/session-user-info-detail.tsx","../../../../src/atoms/box.tsx","../../../../src/atoms/button.tsx","../../../../src/utils/convert-button-size.ts","../../../../src/atoms/data-list.tsx","../../../../src/atoms/toast.tsx","../../../../src/atoms/heading.tsx","../../../../src/atoms/flex.tsx","../../../../src/atoms/grid.tsx","../../../../src/atoms/separator.tsx","../../../../src/app/platform/userInfos/utils.tsx"],"sourcesContent":["import React from 'react';\nimport { Box, DataList, Flex, Grid, Heading, Separator } from '../../../atoms';\nimport type { Customer, Session } from './utils';\nimport { infoList, renderDataListItem, sessionList } from './utils';\n\nexport interface SessionUserInfoDetailProps {\n customer: Customer;\n session: Session;\n}\n\nfunction SectionWrapper({\n title,\n children,\n}: {\n title: string;\n children: React.ReactElement;\n}): JSX.Element {\n return (\n <Box>\n <Grid align=\"center\" columns=\"auto 1fr\" gap=\"3\" mb=\"5\">\n <Heading variant=\"heading5\">{title}</Heading>\n\n <Separator size=\"4\" />\n </Grid>\n {children}\n </Box>\n );\n}\n\nexport function SessionUserInfoDetail({\n customer,\n session,\n}: SessionUserInfoDetailProps): React.ReactElement {\n return (\n <Flex direction=\"column\" gap=\"6\">\n <SectionWrapper title=\"세션 정보\">\n <DataList.Root>\n {sessionList.map((info) => renderDataListItem(info, session))}\n </DataList.Root>\n </SectionWrapper>\n\n <SectionWrapper title=\"회원 정보\">\n <DataList.Root>\n {infoList.map((info) => renderDataListItem(info, customer))}\n </DataList.Root>\n </SectionWrapper>\n </Flex>\n );\n}\n","export { Box, type BoxProps } from '@radix-ui/themes';\n","import React, { forwardRef, useMemo } from 'react';\nimport { Button as RadixButton } from '@radix-ui/themes';\nimport { convertSize } from '../utils/convert-button-size';\nimport type { ButtonProps } from './button.type';\n\nexport const Button = forwardRef<HTMLButtonElement, ButtonProps>(\n (props, ref): React.ReactElement => {\n const { size, style, variant, ...restProps } = props;\n\n const radixSize = useMemo(() => {\n return convertSize(size);\n }, [size]);\n\n const mergedStyle = useMemo<ButtonProps['style']>(() => {\n const baseStyle = {\n background: variant === 'transparent' ? 'transparent' : undefined,\n fontWeight: 400,\n };\n return { ...baseStyle, ...style };\n }, [style, variant]);\n\n const radixVariant = useMemo(() => {\n if (variant === 'transparent') return 'ghost';\n return variant;\n }, [variant]);\n\n return (\n <RadixButton\n style={mergedStyle}\n variant={radixVariant}\n {...restProps}\n ref={ref}\n size={radixSize}\n />\n );\n }\n);\n\nButton.displayName = 'Button';\n","import { type ButtonProps as RadixButtonProps } from '@radix-ui/themes';\nimport type { Breakpoint } from '@radix-ui/themes/props';\nimport type { ButtonProps } from '../atoms/button.type';\n\nexport const convertSizeStr = (\n size: ButtonProps['size']\n): '1' | '2' | '3' | '4' => {\n switch (size) {\n case 'small':\n return '1';\n case 'medium':\n return '2';\n case 'large':\n return '3';\n default:\n return '2';\n }\n};\n\nexport const convertSizeResponse = (\n size: ButtonProps['size']\n): RadixButtonProps['size'] => {\n if (typeof size === 'string' || typeof size === 'undefined') {\n return convertSizeStr(size);\n }\n const radixSize: RadixButtonProps['size'] = {};\n let key: Breakpoint = 'initial';\n for (key in size) {\n radixSize[key] = convertSizeStr(size[key]);\n }\n return radixSize;\n};\n\nexport const convertSize = (\n size: ButtonProps['size']\n): RadixButtonProps['size'] => {\n if (typeof size === 'string') {\n return convertSizeStr(size);\n }\n return convertSizeResponse(size);\n};\n","export { DataList } from '@radix-ui/themes';\n","import { InfoCircledIcon } from '@radix-ui/react-icons';\nimport {\n ToastContainer as ToastifyContainer,\n type ToastContainerProps,\n} from 'react-toastify';\n\nexport { toast } from 'react-toastify';\n\nfunction CloseButton(): React.ReactNode {\n return null;\n}\n\nexport function ToastContainer(props: ToastContainerProps): React.ReactElement {\n return (\n <ToastifyContainer\n autoClose={5000}\n closeButton={CloseButton}\n closeOnClick\n draggable\n hideProgressBar\n icon={<InfoCircledIcon />}\n newestOnTop\n pauseOnFocusLoss\n pauseOnHover\n position=\"bottom-right\"\n rtl={false}\n style={{ zIndex: 999999 }}\n {...props}\n />\n );\n}\n","import {\n Heading as RadixHeading,\n type HeadingProps as RadixHeadingProps,\n} from '@radix-ui/themes';\nimport { useMemo } from 'react';\n\nexport { Heading as RadixHeading } from '@radix-ui/themes';\n\nexport type HeadingProps = RadixHeadingProps & {\n variant?: 'heading1' | 'heading2' | 'heading3' | 'heading4' | 'heading5';\n};\n\nexport function Heading(props: HeadingProps): React.ReactElement {\n const { size, children, variant, ...rest } = props;\n const radixSize = useMemo<RadixHeadingProps['size']>(() => {\n switch (variant) {\n case 'heading1':\n return '7';\n case 'heading2':\n return '6';\n case 'heading3':\n return '5';\n case 'heading4':\n return '4';\n case 'heading5':\n return '3';\n default:\n return size;\n }\n }, [size, variant]);\n\n return (\n <RadixHeading {...rest} size={radixSize}>\n {children}\n </RadixHeading>\n );\n}\n","export { Flex, type FlexProps } from '@radix-ui/themes';\n","export { Grid, type GridProps } from '@radix-ui/themes';\n","export { Separator, type SeparatorProps } from '@radix-ui/themes';\n","import type { ProjectStatus } from '@tipp/biz-utils';\nimport { format } from 'date-fns';\nimport { CopyIcon } from '@radix-ui/react-icons';\nimport { Button, DataList, toast } from '../../../atoms';\n\nexport interface CoachingCustomerInfoProps {\n customer?: Customer;\n session?: Session;\n children?: React.ReactElement;\n}\n\nexport interface Customer {\n username: string;\n email: string;\n gender: string;\n birthdate: Date;\n phone: string;\n company: string;\n team: string;\n position: string;\n level: string;\n}\n\nexport interface Session {\n state: ProjectStatus;\n totalSession: number;\n restSession: number;\n nextSessionDate?: Date;\n nextSessionType?: string;\n expiredAt: Date;\n}\n\nexport interface DataListItems<T> {\n label: string;\n getValue: (original?: T) => string | undefined;\n copyable?: boolean;\n}\n\nexport const infoList: DataListItems<Customer>[] = [\n { label: '이름', getValue: (customer) => customer?.username },\n { label: '성별', getValue: (customer) => customer?.email },\n {\n label: '생년월일',\n getValue: (customer) =>\n customer?.birthdate && format(customer.birthdate, 'yyyy.MM.dd'),\n },\n { label: '부서', getValue: (customer) => customer?.team },\n { label: '직책', getValue: (customer) => customer?.position },\n { label: '직급', getValue: (customer) => customer?.level },\n { label: '이메일', getValue: (customer) => customer?.email, copyable: true },\n {\n label: '전화번호',\n getValue: (customer) => customer?.phone,\n copyable: true,\n },\n];\n\nexport const sessionList: DataListItems<Session>[] = [\n {\n label: '진행중인 세션',\n getValue: (session) =>\n `${session?.restSession || '-'}회차/${session?.totalSession || '-'}회차`,\n },\n {\n label: '다음 세션 일시',\n getValue: (session) =>\n session?.nextSessionDate\n ? format(session.nextSessionDate, 'yyyy년 MM월 dd일 HH시 mm분')\n : '-',\n },\n {\n label: '다음 세션 참여 방식',\n getValue: (session) => session?.nextSessionType || '-',\n },\n {\n label: '코칭 만료 기한',\n getValue: (session) =>\n session?.expiredAt ? format(session.expiredAt, 'yyyy년 MM월 dd일') : '-',\n },\n];\n\nexport const renderItem = <T extends object>(\n info: DataListItems<T>,\n data?: T\n): JSX.Element => {\n const value = info.getValue(data);\n return (\n <>\n {value || '-'}\n {info.copyable && value ? <CopyButton value={value} /> : null}\n </>\n );\n};\n\nexport const renderDataListItem = <T extends object>(\n info: DataListItems<T>,\n data?: T\n): React.ReactElement => {\n return (\n <DataList.Item key={info.label}>\n <DataList.Label>{info.label}</DataList.Label>\n <DataList.Value>{renderItem(info, data)}</DataList.Value>\n </DataList.Item>\n );\n};\n\nexport function CopyButton(props: { value: string }): JSX.Element {\n return (\n <Button\n color=\"gray\"\n onClick={() => {\n void navigator.clipboard.writeText(props.value);\n toast.success('복사되었습니다.');\n }}\n style={{ marginLeft: '0', marginTop: '0' }}\n variant=\"transparent\"\n >\n <CopyIcon />\n </Button>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,oBAAmC;;;ACAnC,mBAA2C;AAC3C,IAAAA,iBAAsC;;;ACG/B,IAAM,iBAAiB,CAC5B,SAC0B;AAC1B,UAAQ,MAAM;AAAA,IACZ,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AACH,aAAO;AAAA,IACT;AACE,aAAO;AAAA,EACX;AACF;AAEO,IAAM,sBAAsB,CACjC,SAC6B;AAC7B,MAAI,OAAO,SAAS,YAAY,OAAO,SAAS,aAAa;AAC3D,WAAO,eAAe,IAAI;AAAA,EAC5B;AACA,QAAM,YAAsC,CAAC;AAC7C,MAAI,MAAkB;AACtB,OAAK,OAAO,MAAM;AAChB,cAAU,GAAG,IAAI,eAAe,KAAK,GAAG,CAAC;AAAA,EAC3C;AACA,SAAO;AACT;AAEO,IAAM,cAAc,CACzB,SAC6B;AAC7B,MAAI,OAAO,SAAS,UAAU;AA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,8CAAC,uBAAK,WAAU,UAAS,KAAI,KAC3B;AAAA,iDAAC,kBAAe,OAAM,6BACpB,uDAAC,wBAAS,MAAT,EACE,sBAAY,IAAI,CAAC,SAAS,mBAAmB,MAAM,OAAO,CAAC,GAC9D,GACF;AAAA,IAEA,6CAAC,kBAAe,OAAM,6BACpB,uDAAC,wBAAS,MAAT,EACE,mBAAS,IAAI,CAAC,SAAS,mBAAmB,MAAM,QAAQ,CAAC,GAC5D,GACF;AAAA,KACF;AAEJ;","names":["import_themes","RadixButton","import_themes","import_react_toastify","import_jsx_runtime","import_themes","import_react","import_jsx_runtime","Heading","RadixHeading","import_themes","import_themes","import_themes","import_react_icons","import_jsx_runtime","import_jsx_runtime","Heading"]}
|
|
@@ -1,49 +1,53 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SessionUserInfoDetail
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-STD6C6HS.js";
|
|
4
4
|
import "../../../chunk-JDY5555T.js";
|
|
5
5
|
import "../../../chunk-A6W2ZWYA.js";
|
|
6
6
|
import "../../../chunk-SRZ6X74X.js";
|
|
7
|
+
import "../../../chunk-EW6OPYEW.js";
|
|
8
|
+
import "../../../chunk-VOQU7ZOV.js";
|
|
9
|
+
import "../../../chunk-ZZYFULUQ.js";
|
|
7
10
|
import "../../../chunk-5H3YPCZK.js";
|
|
8
11
|
import "../../../chunk-FR2GDOU2.js";
|
|
9
12
|
import "../../../chunk-74DX4CU7.js";
|
|
10
13
|
import "../../../chunk-OYM4XCHQ.js";
|
|
11
14
|
import "../../../chunk-YJ7ZFOYL.js";
|
|
12
15
|
import "../../../chunk-5ZITU5L7.js";
|
|
13
|
-
import "../../../chunk-
|
|
14
|
-
import "../../../chunk-
|
|
16
|
+
import "../../../chunk-365QMK4D.js";
|
|
17
|
+
import "../../../chunk-YO3BQW6S.js";
|
|
15
18
|
import "../../../chunk-6IVCARWS.js";
|
|
16
19
|
import "../../../chunk-6DJOIRMF.js";
|
|
17
20
|
import "../../../chunk-FPD73OHW.js";
|
|
18
21
|
import "../../../chunk-ZKZDVS7G.js";
|
|
19
22
|
import "../../../chunk-MUNMDHRF.js";
|
|
20
23
|
import "../../../chunk-TVDKGMBI.js";
|
|
21
|
-
import "../../../chunk-
|
|
24
|
+
import "../../../chunk-O3T3TM3V.js";
|
|
22
25
|
import "../../../chunk-XQOL7UBI.js";
|
|
23
26
|
import "../../../chunk-TULWX7D6.js";
|
|
24
27
|
import "../../../chunk-SIM6HKVI.js";
|
|
25
28
|
import "../../../chunk-RKHPVH2G.js";
|
|
26
29
|
import "../../../chunk-5AVBYDPB.js";
|
|
27
|
-
import "../../../chunk-
|
|
28
|
-
import "../../../chunk-
|
|
30
|
+
import "../../../chunk-ODNY3R6A.js";
|
|
31
|
+
import "../../../chunk-HYITAA4J.js";
|
|
32
|
+
import "../../../chunk-4WFMOFN2.js";
|
|
29
33
|
import "../../../chunk-WKFZ5MMN.js";
|
|
30
34
|
import "../../../chunk-ACVANQJ4.js";
|
|
31
35
|
import "../../../chunk-2DZ2Y3JI.js";
|
|
32
36
|
import "../../../chunk-QDZS4B6A.js";
|
|
33
37
|
import "../../../chunk-EGEQY3KT.js";
|
|
34
|
-
import "../../../chunk-
|
|
35
|
-
import "../../../chunk-
|
|
38
|
+
import "../../../chunk-MIMJ7LON.js";
|
|
39
|
+
import "../../../chunk-IQEEPHOY.js";
|
|
36
40
|
import "../../../chunk-LHCDPZ5E.js";
|
|
37
41
|
import "../../../chunk-OHMOP5PV.js";
|
|
38
42
|
import "../../../chunk-LZJR77Q2.js";
|
|
39
43
|
import "../../../chunk-Q37G2GS6.js";
|
|
40
44
|
import "../../../chunk-VTJZMOSP.js";
|
|
41
|
-
import "../../../chunk-
|
|
45
|
+
import "../../../chunk-AGPJA7IM.js";
|
|
42
46
|
import "../../../chunk-CYYWMYE7.js";
|
|
43
|
-
import "../../../chunk-ODNY3R6A.js";
|
|
44
|
-
import "../../../chunk-HYITAA4J.js";
|
|
45
47
|
import "../../../chunk-O3DNDMV3.js";
|
|
46
|
-
import "../../../chunk-
|
|
48
|
+
import "../../../chunk-HK224ADT.js";
|
|
49
|
+
import "../../../chunk-EWD4AO5N.js";
|
|
50
|
+
import "../../../chunk-YGL6SWKN.js";
|
|
47
51
|
import "../../../chunk-4Y5BEXVN.js";
|
|
48
52
|
import "../../../chunk-NAL2USH5.js";
|
|
49
53
|
import "../../../chunk-52MVZ6AN.js";
|
|
@@ -53,16 +57,12 @@ import "../../../chunk-LQY4RKWI.js";
|
|
|
53
57
|
import "../../../chunk-ZD7MNMED.js";
|
|
54
58
|
import "../../../chunk-B6XJN6EC.js";
|
|
55
59
|
import "../../../chunk-2ZQK7NTN.js";
|
|
56
|
-
import "../../../chunk-
|
|
57
|
-
import "../../../chunk-IQEEPHOY.js";
|
|
60
|
+
import "../../../chunk-UNTA4JJU.js";
|
|
58
61
|
import "../../../chunk-J242TTFH.js";
|
|
59
62
|
import "../../../chunk-EAXUQEO5.js";
|
|
60
63
|
import "../../../chunk-YJCCE5WP.js";
|
|
61
64
|
import "../../../chunk-3SSSCLJ5.js";
|
|
62
|
-
import "../../../chunk-EWD4AO5N.js";
|
|
63
|
-
import "../../../chunk-YGL6SWKN.js";
|
|
64
65
|
import "../../../chunk-UAN5JXP3.js";
|
|
65
|
-
import "../../../chunk-UNTA4JJU.js";
|
|
66
66
|
import "../../../chunk-N552FDTV.js";
|
|
67
67
|
export {
|
|
68
68
|
SessionUserInfoDetail
|
|
@@ -7,46 +7,50 @@ import {
|
|
|
7
7
|
} from "../../../chunk-JDY5555T.js";
|
|
8
8
|
import "../../../chunk-A6W2ZWYA.js";
|
|
9
9
|
import "../../../chunk-SRZ6X74X.js";
|
|
10
|
+
import "../../../chunk-EW6OPYEW.js";
|
|
11
|
+
import "../../../chunk-VOQU7ZOV.js";
|
|
12
|
+
import "../../../chunk-ZZYFULUQ.js";
|
|
10
13
|
import "../../../chunk-5H3YPCZK.js";
|
|
11
14
|
import "../../../chunk-FR2GDOU2.js";
|
|
12
15
|
import "../../../chunk-74DX4CU7.js";
|
|
13
16
|
import "../../../chunk-OYM4XCHQ.js";
|
|
14
17
|
import "../../../chunk-YJ7ZFOYL.js";
|
|
15
18
|
import "../../../chunk-5ZITU5L7.js";
|
|
16
|
-
import "../../../chunk-
|
|
17
|
-
import "../../../chunk-
|
|
19
|
+
import "../../../chunk-365QMK4D.js";
|
|
20
|
+
import "../../../chunk-YO3BQW6S.js";
|
|
18
21
|
import "../../../chunk-6IVCARWS.js";
|
|
19
22
|
import "../../../chunk-6DJOIRMF.js";
|
|
20
23
|
import "../../../chunk-FPD73OHW.js";
|
|
21
24
|
import "../../../chunk-ZKZDVS7G.js";
|
|
22
25
|
import "../../../chunk-MUNMDHRF.js";
|
|
23
26
|
import "../../../chunk-TVDKGMBI.js";
|
|
24
|
-
import "../../../chunk-
|
|
27
|
+
import "../../../chunk-O3T3TM3V.js";
|
|
25
28
|
import "../../../chunk-XQOL7UBI.js";
|
|
26
29
|
import "../../../chunk-TULWX7D6.js";
|
|
27
30
|
import "../../../chunk-SIM6HKVI.js";
|
|
28
31
|
import "../../../chunk-RKHPVH2G.js";
|
|
29
32
|
import "../../../chunk-5AVBYDPB.js";
|
|
30
|
-
import "../../../chunk-
|
|
31
|
-
import "../../../chunk-
|
|
33
|
+
import "../../../chunk-ODNY3R6A.js";
|
|
34
|
+
import "../../../chunk-HYITAA4J.js";
|
|
35
|
+
import "../../../chunk-4WFMOFN2.js";
|
|
32
36
|
import "../../../chunk-WKFZ5MMN.js";
|
|
33
37
|
import "../../../chunk-ACVANQJ4.js";
|
|
34
38
|
import "../../../chunk-2DZ2Y3JI.js";
|
|
35
39
|
import "../../../chunk-QDZS4B6A.js";
|
|
36
40
|
import "../../../chunk-EGEQY3KT.js";
|
|
37
|
-
import "../../../chunk-
|
|
38
|
-
import "../../../chunk-
|
|
41
|
+
import "../../../chunk-MIMJ7LON.js";
|
|
42
|
+
import "../../../chunk-IQEEPHOY.js";
|
|
39
43
|
import "../../../chunk-LHCDPZ5E.js";
|
|
40
44
|
import "../../../chunk-OHMOP5PV.js";
|
|
41
45
|
import "../../../chunk-LZJR77Q2.js";
|
|
42
46
|
import "../../../chunk-Q37G2GS6.js";
|
|
43
47
|
import "../../../chunk-VTJZMOSP.js";
|
|
44
|
-
import "../../../chunk-
|
|
48
|
+
import "../../../chunk-AGPJA7IM.js";
|
|
45
49
|
import "../../../chunk-CYYWMYE7.js";
|
|
46
|
-
import "../../../chunk-ODNY3R6A.js";
|
|
47
|
-
import "../../../chunk-HYITAA4J.js";
|
|
48
50
|
import "../../../chunk-O3DNDMV3.js";
|
|
49
|
-
import "../../../chunk-
|
|
51
|
+
import "../../../chunk-HK224ADT.js";
|
|
52
|
+
import "../../../chunk-EWD4AO5N.js";
|
|
53
|
+
import "../../../chunk-YGL6SWKN.js";
|
|
50
54
|
import "../../../chunk-4Y5BEXVN.js";
|
|
51
55
|
import "../../../chunk-NAL2USH5.js";
|
|
52
56
|
import "../../../chunk-52MVZ6AN.js";
|
|
@@ -56,16 +60,12 @@ import "../../../chunk-LQY4RKWI.js";
|
|
|
56
60
|
import "../../../chunk-ZD7MNMED.js";
|
|
57
61
|
import "../../../chunk-B6XJN6EC.js";
|
|
58
62
|
import "../../../chunk-2ZQK7NTN.js";
|
|
59
|
-
import "../../../chunk-
|
|
60
|
-
import "../../../chunk-IQEEPHOY.js";
|
|
63
|
+
import "../../../chunk-UNTA4JJU.js";
|
|
61
64
|
import "../../../chunk-J242TTFH.js";
|
|
62
65
|
import "../../../chunk-EAXUQEO5.js";
|
|
63
66
|
import "../../../chunk-YJCCE5WP.js";
|
|
64
67
|
import "../../../chunk-3SSSCLJ5.js";
|
|
65
|
-
import "../../../chunk-EWD4AO5N.js";
|
|
66
|
-
import "../../../chunk-YGL6SWKN.js";
|
|
67
68
|
import "../../../chunk-UAN5JXP3.js";
|
|
68
|
-
import "../../../chunk-UNTA4JJU.js";
|
|
69
69
|
import "../../../chunk-N552FDTV.js";
|
|
70
70
|
export {
|
|
71
71
|
CopyButton,
|
package/dist/atoms/button.d.cts
CHANGED
|
@@ -4,7 +4,7 @@ import React__default from 'react';
|
|
|
4
4
|
|
|
5
5
|
declare const Button: React__default.ForwardRefExoticComponent<Omit<_radix_ui_themes.ButtonProps, "size" | "variant"> & {
|
|
6
6
|
size?: _radix_ui_themes_dist_esm_props_prop_def_js.Responsive<"small" | "medium" | "large"> | undefined;
|
|
7
|
-
variant?: "solid" | "soft" | "surface" | "outline" | "classic" | "ghost" |
|
|
7
|
+
variant?: "transparent" | "solid" | "soft" | "surface" | "outline" | "classic" | "ghost" | undefined;
|
|
8
8
|
} & React__default.RefAttributes<HTMLButtonElement>>;
|
|
9
9
|
|
|
10
10
|
export { Button };
|
package/dist/atoms/button.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import React__default from 'react';
|
|
|
4
4
|
|
|
5
5
|
declare const Button: React__default.ForwardRefExoticComponent<Omit<_radix_ui_themes.ButtonProps, "size" | "variant"> & {
|
|
6
6
|
size?: _radix_ui_themes_dist_esm_props_prop_def_js.Responsive<"small" | "medium" | "large"> | undefined;
|
|
7
|
-
variant?: "solid" | "soft" | "surface" | "outline" | "classic" | "ghost" |
|
|
7
|
+
variant?: "transparent" | "solid" | "soft" | "surface" | "outline" | "classic" | "ghost" | undefined;
|
|
8
8
|
} & React__default.RefAttributes<HTMLButtonElement>>;
|
|
9
9
|
|
|
10
10
|
export { Button };
|
package/dist/atoms/dialog.cjs
CHANGED
|
@@ -64,87 +64,19 @@ __export(dialog_exports, {
|
|
|
64
64
|
module.exports = __toCommonJS(dialog_exports);
|
|
65
65
|
var RadixDialog = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
66
66
|
var import_react_icons2 = require("@radix-ui/react-icons");
|
|
67
|
-
var
|
|
68
|
-
|
|
69
|
-
// src/atoms/button.tsx
|
|
70
|
-
var import_react = require("react");
|
|
71
|
-
var import_themes = require("@radix-ui/themes");
|
|
72
|
-
|
|
73
|
-
// src/utils/convert-button-size.ts
|
|
74
|
-
var convertSizeStr = (size) => {
|
|
75
|
-
switch (size) {
|
|
76
|
-
case "small":
|
|
77
|
-
return "1";
|
|
78
|
-
case "medium":
|
|
79
|
-
return "2";
|
|
80
|
-
case "large":
|
|
81
|
-
return "3";
|
|
82
|
-
default:
|
|
83
|
-
return "2";
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
var convertSizeResponse = (size) => {
|
|
87
|
-
if (typeof size === "string" || typeof size === "undefined") {
|
|
88
|
-
return convertSizeStr(size);
|
|
89
|
-
}
|
|
90
|
-
const radixSize = {};
|
|
91
|
-
let key = "initial";
|
|
92
|
-
for (key in size) {
|
|
93
|
-
radixSize[key] = convertSizeStr(size[key]);
|
|
94
|
-
}
|
|
95
|
-
return radixSize;
|
|
96
|
-
};
|
|
97
|
-
var convertSize = (size) => {
|
|
98
|
-
if (typeof size === "string") {
|
|
99
|
-
return convertSizeStr(size);
|
|
100
|
-
}
|
|
101
|
-
return convertSizeResponse(size);
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
// src/atoms/button.tsx
|
|
105
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
106
|
-
var Button = (0, import_react.forwardRef)(
|
|
107
|
-
(props, ref) => {
|
|
108
|
-
const _a = props, { size, style, variant } = _a, restProps = __objRest(_a, ["size", "style", "variant"]);
|
|
109
|
-
const radixSize = (0, import_react.useMemo)(() => {
|
|
110
|
-
return convertSize(size);
|
|
111
|
-
}, [size]);
|
|
112
|
-
const mergedStyle = (0, import_react.useMemo)(() => {
|
|
113
|
-
const baseStyle = {
|
|
114
|
-
background: variant === "transparent" ? "transparent" : void 0,
|
|
115
|
-
fontWeight: 400
|
|
116
|
-
};
|
|
117
|
-
return __spreadValues(__spreadValues({}, baseStyle), style);
|
|
118
|
-
}, [style, variant]);
|
|
119
|
-
const radixVariant = (0, import_react.useMemo)(() => {
|
|
120
|
-
if (variant === "transparent")
|
|
121
|
-
return "ghost";
|
|
122
|
-
return variant;
|
|
123
|
-
}, [variant]);
|
|
124
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
125
|
-
import_themes.Button,
|
|
126
|
-
__spreadProps(__spreadValues({
|
|
127
|
-
style: mergedStyle,
|
|
128
|
-
variant: radixVariant
|
|
129
|
-
}, restProps), {
|
|
130
|
-
ref,
|
|
131
|
-
size: radixSize
|
|
132
|
-
})
|
|
133
|
-
);
|
|
134
|
-
}
|
|
135
|
-
);
|
|
136
|
-
Button.displayName = "Button";
|
|
67
|
+
var import_themes4 = require("@radix-ui/themes");
|
|
68
|
+
var import_react2 = require("react");
|
|
137
69
|
|
|
138
70
|
// src/atoms/toast.tsx
|
|
139
71
|
var import_react_icons = require("@radix-ui/react-icons");
|
|
140
72
|
var import_react_toastify = require("react-toastify");
|
|
141
73
|
var import_react_toastify2 = require("react-toastify");
|
|
142
|
-
var
|
|
74
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
143
75
|
function CloseButton() {
|
|
144
76
|
return null;
|
|
145
77
|
}
|
|
146
78
|
function ToastContainer(props) {
|
|
147
|
-
return /* @__PURE__ */ (0,
|
|
79
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
148
80
|
import_react_toastify.ToastContainer,
|
|
149
81
|
__spreadValues({
|
|
150
82
|
autoClose: 5e3,
|
|
@@ -152,7 +84,7 @@ function ToastContainer(props) {
|
|
|
152
84
|
closeOnClick: true,
|
|
153
85
|
draggable: true,
|
|
154
86
|
hideProgressBar: true,
|
|
155
|
-
icon: /* @__PURE__ */ (0,
|
|
87
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_icons.InfoCircledIcon, {}),
|
|
156
88
|
newestOnTop: true,
|
|
157
89
|
pauseOnFocusLoss: true,
|
|
158
90
|
pauseOnHover: true,
|
|
@@ -163,6 +95,35 @@ function ToastContainer(props) {
|
|
|
163
95
|
);
|
|
164
96
|
}
|
|
165
97
|
|
|
98
|
+
// src/atoms/heading.tsx
|
|
99
|
+
var import_themes = require("@radix-ui/themes");
|
|
100
|
+
var import_react = require("react");
|
|
101
|
+
var import_themes2 = require("@radix-ui/themes");
|
|
102
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
103
|
+
function Heading2(props) {
|
|
104
|
+
const _a = props, { size, children, variant } = _a, rest = __objRest(_a, ["size", "children", "variant"]);
|
|
105
|
+
const radixSize = (0, import_react.useMemo)(() => {
|
|
106
|
+
switch (variant) {
|
|
107
|
+
case "heading1":
|
|
108
|
+
return "7";
|
|
109
|
+
case "heading2":
|
|
110
|
+
return "6";
|
|
111
|
+
case "heading3":
|
|
112
|
+
return "5";
|
|
113
|
+
case "heading4":
|
|
114
|
+
return "4";
|
|
115
|
+
case "heading5":
|
|
116
|
+
return "3";
|
|
117
|
+
default:
|
|
118
|
+
return size;
|
|
119
|
+
}
|
|
120
|
+
}, [size, variant]);
|
|
121
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_themes.Heading, __spreadProps(__spreadValues({}, rest), { size: radixSize, children }));
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// src/atoms/icon-button.tsx
|
|
125
|
+
var import_themes3 = require("@radix-ui/themes");
|
|
126
|
+
|
|
166
127
|
// src/atoms/dialog.tsx
|
|
167
128
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
168
129
|
var preventDefault = (e) => {
|
|
@@ -177,7 +138,9 @@ function Content2(props) {
|
|
|
177
138
|
minWidth,
|
|
178
139
|
maxHeight,
|
|
179
140
|
height,
|
|
180
|
-
minHeight
|
|
141
|
+
minHeight,
|
|
142
|
+
title,
|
|
143
|
+
buttons
|
|
181
144
|
} = _a, rest = __objRest(_a, [
|
|
182
145
|
"children",
|
|
183
146
|
"style",
|
|
@@ -186,10 +149,17 @@ function Content2(props) {
|
|
|
186
149
|
"minWidth",
|
|
187
150
|
"maxHeight",
|
|
188
151
|
"height",
|
|
189
|
-
"minHeight"
|
|
152
|
+
"minHeight",
|
|
153
|
+
"title",
|
|
154
|
+
"buttons"
|
|
190
155
|
]);
|
|
191
|
-
|
|
192
|
-
|
|
156
|
+
const containerRef = (0, import_react2.useRef)(null);
|
|
157
|
+
if (typeof document !== "undefined") {
|
|
158
|
+
const container = document.getElementsByClassName("radix-themes")[0];
|
|
159
|
+
containerRef.current = container;
|
|
160
|
+
}
|
|
161
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(RadixDialog.Portal, { container: containerRef.current, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_themes4.Theme, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(RadixDialog.Overlay, { className: "DialogOverlay", children: [
|
|
162
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
193
163
|
RadixDialog.Content,
|
|
194
164
|
__spreadProps(__spreadValues({
|
|
195
165
|
className: "DialogContent",
|
|
@@ -203,10 +173,14 @@ function Content2(props) {
|
|
|
203
173
|
minHeight
|
|
204
174
|
}, style)
|
|
205
175
|
}, rest), {
|
|
206
|
-
children:
|
|
207
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.
|
|
208
|
-
|
|
209
|
-
|
|
176
|
+
children: [
|
|
177
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_themes4.Flex, { gap: "2", justify: "between", children: [
|
|
178
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(RadixDialog.Title, { asChild: true, children: typeof title === "string" ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Heading2, { variant: "heading3", children: title }) : title }),
|
|
179
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(RadixDialog.Close, { asChild: true, className: "DialogClose", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_themes3.IconButton, { color: "gray", variant: "ghost", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react_icons2.Cross1Icon, {}) }) })
|
|
180
|
+
] }),
|
|
181
|
+
children,
|
|
182
|
+
buttons ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_themes4.Flex, { gap: "3", justify: "end", mt: "3", children: buttons }) : null
|
|
183
|
+
]
|
|
210
184
|
})
|
|
211
185
|
),
|
|
212
186
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ToastContainer, {})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/atoms/dialog.tsx","../../src/atoms/
|
|
1
|
+
{"version":3,"sources":["../../src/atoms/dialog.tsx","../../src/atoms/toast.tsx","../../src/atoms/heading.tsx","../../src/atoms/icon-button.tsx"],"sourcesContent":["import * as RadixDialog from '@radix-ui/react-dialog';\nimport { Cross1Icon } from '@radix-ui/react-icons';\nimport { Flex, Theme } from '@radix-ui/themes';\nimport { useRef } from 'react';\nimport { ToastContainer } from './toast';\nimport { Heading } from './heading';\nimport { IconButton } from './icon-button';\n\ntype ContentProps = RadixDialog.DialogContentProps & {\n width?: string;\n maxWidth?: string;\n minWidth?: string;\n height?: string;\n maxHeight?: string;\n minHeight?: string;\n title?: React.ReactNode;\n buttons?: React.ReactElement;\n};\n\nconst preventDefault: RadixDialog.DialogContentProps['onPointerDownOutside'] = (\n e\n) => {\n e.preventDefault();\n};\n\nfunction Content(props: ContentProps): React.ReactElement {\n const {\n children,\n style = {},\n width,\n maxWidth,\n minWidth,\n maxHeight,\n height,\n minHeight,\n title,\n buttons,\n ...rest\n } = props;\n\n const containerRef = useRef<Element | null>(null);\n\n if (typeof document !== 'undefined') {\n const container = document.getElementsByClassName('radix-themes')[0];\n containerRef.current = container;\n }\n\n return (\n <RadixDialog.Portal container={containerRef.current}>\n <Theme asChild>\n <RadixDialog.Overlay className=\"DialogOverlay\">\n <RadixDialog.Content\n className=\"DialogContent\"\n onPointerDownOutside={preventDefault}\n style={{\n width,\n maxWidth,\n minWidth,\n maxHeight,\n height,\n minHeight,\n ...style,\n }}\n {...rest}\n >\n <Flex gap=\"2\" justify=\"between\">\n <RadixDialog.Title asChild>\n {typeof title === 'string' ? (\n <Heading variant=\"heading3\">{title}</Heading>\n ) : (\n title\n )}\n </RadixDialog.Title>\n <RadixDialog.Close asChild className=\"DialogClose\">\n <IconButton color=\"gray\" variant=\"ghost\">\n <Cross1Icon />\n </IconButton>\n </RadixDialog.Close>\n </Flex>\n {children}\n {buttons ? (\n <Flex gap=\"3\" justify=\"end\" mt=\"3\">\n {buttons}\n </Flex>\n ) : null}\n </RadixDialog.Content>\n <ToastContainer />\n </RadixDialog.Overlay>\n </Theme>\n </RadixDialog.Portal>\n );\n}\n\nfunction Close({\n children,\n ...rest\n}: RadixDialog.DialogCloseProps): React.ReactElement {\n return (\n <RadixDialog.Close asChild {...rest}>\n {children}\n </RadixDialog.Close>\n );\n}\n\nfunction Trigger({\n children,\n ...rest\n}: RadixDialog.DialogTriggerProps): React.ReactElement {\n return (\n <RadixDialog.Trigger asChild {...rest}>\n {children}\n </RadixDialog.Trigger>\n );\n}\n\nexport const Dialog = {\n Root: RadixDialog.Root,\n Trigger,\n Content,\n Close,\n Description: RadixDialog.Description,\n Title: RadixDialog.Title,\n};\n","import { InfoCircledIcon } from '@radix-ui/react-icons';\nimport {\n ToastContainer as ToastifyContainer,\n type ToastContainerProps,\n} from 'react-toastify';\n\nexport { toast } from 'react-toastify';\n\nfunction CloseButton(): React.ReactNode {\n return null;\n}\n\nexport function ToastContainer(props: ToastContainerProps): React.ReactElement {\n return (\n <ToastifyContainer\n autoClose={5000}\n closeButton={CloseButton}\n closeOnClick\n draggable\n hideProgressBar\n icon={<InfoCircledIcon />}\n newestOnTop\n pauseOnFocusLoss\n pauseOnHover\n position=\"bottom-right\"\n rtl={false}\n style={{ zIndex: 999999 }}\n {...props}\n />\n );\n}\n","import {\n Heading as RadixHeading,\n type HeadingProps as RadixHeadingProps,\n} from '@radix-ui/themes';\nimport { useMemo } from 'react';\n\nexport { Heading as RadixHeading } from '@radix-ui/themes';\n\nexport type HeadingProps = RadixHeadingProps & {\n variant?: 'heading1' | 'heading2' | 'heading3' | 'heading4' | 'heading5';\n};\n\nexport function Heading(props: HeadingProps): React.ReactElement {\n const { size, children, variant, ...rest } = props;\n const radixSize = useMemo<RadixHeadingProps['size']>(() => {\n switch (variant) {\n case 'heading1':\n return '7';\n case 'heading2':\n return '6';\n case 'heading3':\n return '5';\n case 'heading4':\n return '4';\n case 'heading5':\n return '3';\n default:\n return size;\n }\n }, [size, variant]);\n\n return (\n <RadixHeading {...rest} size={radixSize}>\n {children}\n </RadixHeading>\n );\n}\n","export { IconButton, type IconButtonProps } from '@radix-ui/themes';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAA6B;AAC7B,IAAAA,sBAA2B;AAC3B,IAAAC,iBAA4B;AAC5B,IAAAC,gBAAuB;;;ACHvB,yBAAgC;AAChC,4BAGO;AAEP,IAAAC,yBAAsB;AAcV;AAZZ,SAAS,cAA+B;AACtC,SAAO;AACT;AAEO,SAAS,eAAe,OAAgD;AAC7E,SACE;AAAA,IAAC,sBAAAC;AAAA,IAAA;AAAA,MACC,WAAW;AAAA,MACX,aAAa;AAAA,MACb,cAAY;AAAA,MACZ,WAAS;AAAA,MACT,iBAAe;AAAA,MACf,MAAM,4CAAC,sCAAgB;AAAA,MACvB,aAAW;AAAA,MACX,kBAAgB;AAAA,MAChB,cAAY;AAAA,MACZ,UAAS;AAAA,MACT,KAAK;AAAA,MACL,OAAO,EAAE,QAAQ,OAAO;AAAA,OACpB;AAAA,EACN;AAEJ;;;AC9BA,oBAGO;AACP,mBAAwB;AAExB,IAAAC,iBAAwC;AA0BpC,IAAAC,sBAAA;AApBG,SAASC,SAAQ,OAAyC;AAC/D,QAA6C,YAArC,QAAM,UAAU,QAb1B,IAa+C,IAAT,iBAAS,IAAT,CAA5B,QAAM,YAAU;AACxB,QAAM,gBAAY,sBAAmC,MAAM;AACzD,YAAQ,SAAS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,EAAkB,SAAO,MACvB,iBAAO,UAAU,WAChB,6CAACC,UAAA,EAAQ,SAAQ,YAAY,iBAAM,IAEnC,OAEJ;AAAA,YACA,6CAAa,mBAAZ,EAAkB,SAAO,MAAC,WAAU,eACnC,uDAAC,6BAAW,OAAM,QAAO,SAAQ,SAC/B,uDAAC,kCAAW,GACd,GACF;AAAA,aACF;AAAA,UACC;AAAA,UACA,UACC,6CAAC,uBAAK,KAAI,KAAI,SAAQ,OAAM,IAAG,KAC5B,mBACH,IACE;AAAA;AAAA;AAAA,IACN;AAAA,IACA,6CAAC,kBAAe;AAAA,KAClB,GACF,GACF;AAEJ;AAEA,SAASC,OAAM,IAGsC;AAHtC,eACb;AAAA;AAAA,EA9FF,IA6Fe,IAEV,iBAFU,IAEV;AAAA,IADH;AAAA;AAGA,SACE,6CAAa,mBAAZ,+BAAkB,SAAO,QAAK,OAA9B,EACE,WACH;AAEJ;AAEA,SAASC,SAAQ,IAGsC;AAHtC,eACf;AAAA;AAAA,EAzGF,IAwGiB,IAEZ,iBAFY,IAEZ;AAAA,IADH;AAAA;AAGA,SACE,6CAAa,qBAAZ,+BAAoB,SAAO,QAAK,OAAhC,EACE,WACH;AAEJ;AAEO,IAAM,SAAS;AAAA,EACpB,MAAkB;AAAA,EAClB,SAAAA;AAAA,EACA,SAAAH;AAAA,EACA,OAAAE;AAAA,EACA,aAAyB;AAAA,EACzB,OAAmB;AACrB;","names":["import_react_icons","import_themes","import_react","import_react_toastify","ToastifyContainer","import_themes","import_jsx_runtime","Heading","RadixHeading","import_themes","import_jsx_runtime","Content","Heading","Close","Trigger"]}
|
package/dist/atoms/dialog.d.cts
CHANGED
|
@@ -8,6 +8,8 @@ type ContentProps = Dialog$1.DialogContentProps & {
|
|
|
8
8
|
height?: string;
|
|
9
9
|
maxHeight?: string;
|
|
10
10
|
minHeight?: string;
|
|
11
|
+
title?: React.ReactNode;
|
|
12
|
+
buttons?: React.ReactElement;
|
|
11
13
|
};
|
|
12
14
|
declare function Content(props: ContentProps): React.ReactElement;
|
|
13
15
|
declare function Close({ children, ...rest }: Dialog$1.DialogCloseProps): React.ReactElement;
|
package/dist/atoms/dialog.d.ts
CHANGED
|
@@ -8,6 +8,8 @@ type ContentProps = Dialog$1.DialogContentProps & {
|
|
|
8
8
|
height?: string;
|
|
9
9
|
maxHeight?: string;
|
|
10
10
|
minHeight?: string;
|
|
11
|
+
title?: React.ReactNode;
|
|
12
|
+
buttons?: React.ReactElement;
|
|
11
13
|
};
|
|
12
14
|
declare function Content(props: ContentProps): React.ReactElement;
|
|
13
15
|
declare function Close({ children, ...rest }: Dialog$1.DialogCloseProps): React.ReactElement;
|
package/dist/atoms/dialog.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Dialog
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-AGPJA7IM.js";
|
|
4
4
|
import "../chunk-CYYWMYE7.js";
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-O3DNDMV3.js";
|
|
6
|
+
import "../chunk-HK224ADT.js";
|
|
7
7
|
import "../chunk-N552FDTV.js";
|
|
8
8
|
export {
|
|
9
9
|
Dialog
|