@wishket/design-system 1.17.3 → 2.0.1
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/README.md +1 -1
- package/dist/Components/Base/Layouts/FullBleed/FullBleed.js +1 -1
- package/dist/Components/Base/Layouts/FullBleed/FullBleed.utils.js +1 -1
- package/dist/Components/Base/TextWithIcons/TextWithIcons.d.ts +1 -1
- package/dist/Components/Base/TextWithIcons/TextWithIcons.js +2 -2
- package/dist/Components/Base/Typography/Typography.d.ts +1 -1
- package/dist/Components/Base/Typography/Typography.js +3 -3
- package/dist/Components/Base/Typography/Typography.types.d.ts +13 -12
- package/dist/Components/DataDisplays/Accordion/Accordion.js +8 -8
- package/dist/Components/DataDisplays/Avatar/Avatar.d.ts +2 -1
- package/dist/Components/DataDisplays/Avatar/Avatar.js +5 -4
- package/dist/Components/DataDisplays/Divider/Divider.d.ts +3 -20
- package/dist/Components/DataDisplays/Divider/Divider.js +10 -6
- package/dist/Components/DataDisplays/Label/Label.js +1 -1
- package/dist/Components/DataDisplays/Li/Li.d.ts +5 -68
- package/dist/Components/DataDisplays/Li/Li.js +7 -7
- package/dist/Components/DataDisplays/ProductIcon/Icons/Achieve.d.ts +1 -1
- package/dist/Components/DataDisplays/ProductIcon/Icons/Bookmark.d.ts +1 -1
- package/dist/Components/DataDisplays/ProductIcon/Icons/BubbleStar.d.ts +1 -1
- package/dist/Components/DataDisplays/ProductIcon/Icons/BubbleStars.d.ts +1 -1
- package/dist/Components/DataDisplays/ProductIcon/Icons/Building.d.ts +1 -1
- package/dist/Components/DataDisplays/ProductIcon/Icons/Calendar.d.ts +1 -1
- package/dist/Components/DataDisplays/ProductIcon/Icons/CardConfirm.d.ts +1 -1
- package/dist/Components/DataDisplays/ProductIcon/Icons/CardWrite.d.ts +1 -1
- package/dist/Components/DataDisplays/ProductIcon/Icons/Congrats.d.ts +1 -1
- package/dist/Components/DataDisplays/ProductIcon/Icons/ContractPen.d.ts +1 -1
- package/dist/Components/DataDisplays/ProductIcon/Icons/Credit.d.ts +1 -1
- package/dist/Components/DataDisplays/ProductIcon/Icons/Database.d.ts +1 -1
- package/dist/Components/DataDisplays/ProductIcon/Icons/Design.d.ts +1 -1
- package/dist/Components/DataDisplays/ProductIcon/Icons/Discount.d.ts +1 -1
- package/dist/Components/DataDisplays/ProductIcon/Icons/DocumentCloud.d.ts +1 -1
- package/dist/Components/DataDisplays/ProductIcon/Icons/DocumentSuccess.d.ts +1 -1
- package/dist/Components/DataDisplays/ProductIcon/Icons/Email.d.ts +1 -1
- package/dist/Components/DataDisplays/ProductIcon/Icons/HandShake.d.ts +1 -1
- package/dist/Components/DataDisplays/ProductIcon/Icons/HandThumb.d.ts +1 -1
- package/dist/Components/DataDisplays/ProductIcon/Icons/Idea.d.ts +1 -1
- package/dist/Components/DataDisplays/ProductIcon/Icons/Lock.d.ts +1 -1
- package/dist/Components/DataDisplays/ProductIcon/Icons/Logout.d.ts +1 -1
- package/dist/Components/DataDisplays/ProductIcon/Icons/MemoWrite.d.ts +1 -1
- package/dist/Components/DataDisplays/ProductIcon/Icons/MobileConfirm.d.ts +1 -1
- package/dist/Components/DataDisplays/ProductIcon/Icons/Package.d.ts +1 -1
- package/dist/Components/DataDisplays/ProductIcon/Icons/PaperCertify.d.ts +1 -1
- package/dist/Components/DataDisplays/ProductIcon/Icons/PaperClip.d.ts +1 -1
- package/dist/Components/DataDisplays/ProductIcon/Icons/PaperClipClock.d.ts +1 -1
- package/dist/Components/DataDisplays/ProductIcon/Icons/PaperClock.d.ts +1 -1
- package/dist/Components/DataDisplays/ProductIcon/Icons/PaperConfirm.d.ts +1 -1
- package/dist/Components/DataDisplays/ProductIcon/Icons/PaperContract.d.ts +1 -1
- package/dist/Components/DataDisplays/ProductIcon/Icons/PaperHold.d.ts +1 -1
- package/dist/Components/DataDisplays/ProductIcon/Icons/PaperOverlap.d.ts +1 -1
- package/dist/Components/DataDisplays/ProductIcon/Icons/PaperPen.d.ts +1 -1
- package/dist/Components/DataDisplays/ProductIcon/Icons/PaperProject.d.ts +1 -1
- package/dist/Components/DataDisplays/ProductIcon/Icons/PaperSecurity.d.ts +1 -1
- package/dist/Components/DataDisplays/ProductIcon/Icons/PersonFreelancer.d.ts +1 -1
- package/dist/Components/DataDisplays/ProductIcon/Icons/PersonOffice.d.ts +1 -1
- package/dist/Components/DataDisplays/ProductIcon/Icons/PersonSmile.d.ts +1 -1
- package/dist/Components/DataDisplays/ProductIcon/Icons/Public.d.ts +1 -1
- package/dist/Components/DataDisplays/ProductIcon/Icons/Receipt.d.ts +1 -1
- package/dist/Components/DataDisplays/ProductIcon/Icons/Repair.d.ts +1 -1
- package/dist/Components/DataDisplays/ProductIcon/Icons/Search.d.ts +1 -1
- package/dist/Components/DataDisplays/ProductIcon/Icons/SearchConfirm.d.ts +1 -1
- package/dist/Components/DataDisplays/ProductIcon/Icons/ShieldConfirm.d.ts +1 -1
- package/dist/Components/DataDisplays/ProductIcon/Icons/ShieldWon.d.ts +1 -1
- package/dist/Components/DataDisplays/ProductIcon/Icons/Shopping.d.ts +1 -1
- package/dist/Components/DataDisplays/ProductIcon/Icons/WebDevelopment.d.ts +1 -1
- package/dist/Components/DataDisplays/ProductIcon/Icons/WebDomain.d.ts +1 -1
- package/dist/Components/DataDisplays/ProductIcon/Icons/WebPayment.d.ts +1 -1
- package/dist/Components/DataDisplays/ProductIcon/Icons/WebSecurity.d.ts +1 -1
- package/dist/Components/DataDisplays/ProductIcon/Icons/WidePaperConfirm.d.ts +1 -1
- package/dist/Components/DataDisplays/ProductIcon/Icons/WidePaperPayment.d.ts +1 -1
- package/dist/Components/DataDisplays/ProductIcon/Icons/WidePaperPlan.d.ts +1 -1
- package/dist/Components/DataDisplays/ProductIcon/Icons/WidePaperStructure.d.ts +1 -1
- package/dist/Components/DataDisplays/ProductIcon/Icons/Won.d.ts +1 -1
- package/dist/Components/DataDisplays/ProductIcon/ProductIcon.constants.d.ts +9 -5
- package/dist/Components/DataDisplays/ProductIcon/ProductIcon.js +5 -8
- package/dist/Components/DataDisplays/ProductIcon/ProductIcon.part.types.d.ts +5 -0
- package/dist/Components/DataDisplays/ProductIcon/ProductIcon.types.d.ts +4 -11
- package/dist/Components/DataDisplays/SkillLabel/SkillLabel.parts.js +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Large/LargeAccountSetting.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Large/LargeAnswer.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Large/LargeArrowDown.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Large/LargeArrowLeft.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Large/LargeArrowRight.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Large/LargeArrowUp.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Large/LargeBell.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Large/LargeBubble.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Large/LargeCollection.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Large/LargeCollectionAdd.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Large/LargeDelete.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Large/LargeDrawer.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Large/LargeFilter.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Large/LargeHeart.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Large/LargeHome.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Large/LargeLike.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Large/LargeLink.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Large/LargePlus.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Large/LargeQuestion.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Large/LargeReset.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Large/LargeScrap.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Large/LargeSearch.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Large/LargeSend.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Large/LargeService.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Large/LargeShare.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Large/LargeStar.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Large/LargeTop.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Large/LargeUserImageAvatar.d.ts +1 -2
- package/dist/Components/DataDisplays/SystemIcon/Icons/Large/LargeUserImageAvatar.js +4 -4
- package/dist/Components/DataDisplays/SystemIcon/Icons/Medium/MediumAi.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Medium/MediumAnswer.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Medium/MediumArrowDown.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Medium/MediumArrowLeft.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Medium/MediumArrowRight.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Medium/MediumArrowUp.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Medium/MediumBell.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Medium/MediumBubble.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Medium/MediumCalendar.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Medium/MediumCaution.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Medium/MediumCautionTriangle.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Medium/MediumCheck.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Medium/MediumClip.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Medium/MediumCollection.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Medium/MediumCompass.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Medium/MediumDelete.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Medium/MediumEdit.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Medium/MediumError.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Medium/MediumEye.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Medium/MediumEyeSlash.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Medium/MediumFilter.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Medium/MediumFire.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Medium/MediumGlassesMinus.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Medium/MediumGlassesPlus.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Medium/MediumHashTag.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Medium/MediumHeart.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Medium/MediumHighlight.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Medium/MediumInformation.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Medium/MediumLink.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Medium/MediumList.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Medium/MediumMagic.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Medium/MediumMenuDown.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Medium/MediumMenuUp.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Medium/MediumMinus.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Medium/MediumMoreOptions.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Medium/MediumPersonAdd.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Medium/MediumPin.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Medium/MediumPlus.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Medium/MediumPopular.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Medium/MediumPrivate.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Medium/MediumPublic.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Medium/MediumQuestion.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Medium/MediumQuestionNew.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Medium/MediumRename.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Medium/MediumReply.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Medium/MediumReset.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Medium/MediumScrap.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Medium/MediumSearch.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Medium/MediumSend.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Medium/MediumShare.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Medium/MediumStar.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Medium/MediumSuccess.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Medium/MediumTrash.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Medium/MediumUpload.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Medium/MediumWait.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Small/SmallArrowDown.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Small/SmallArrowLeft.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Small/SmallArrowRight.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Small/SmallArrowUp.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Small/SmallBell.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Small/SmallCamera.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Small/SmallCat.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Small/SmallCheck.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Small/SmallCollection.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Small/SmallDelete.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Small/SmallEdit.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Small/SmallEye.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Small/SmallHeart.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Small/SmallIndeterminate.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Small/SmallInformation.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Small/SmallLike.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Small/SmallLink.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Small/SmallList.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Small/SmallMoreOptions.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Small/SmallPlay.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Small/SmallPlus.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Small/SmallPrivate.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Small/SmallPublic.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Small/SmallRadioDot.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Small/SmallResizer.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Small/SmallScrap.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Small/SmallShare.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Small/SmallSlash.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Small/SmallStar.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Small/SmallStop.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Small/SmallTrash.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Small/SmallWait.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Social/SocialFacebook.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Social/SocialGoogle.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Social/SocialLinkedIn.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Social/SocialNaver.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Social/SocialX.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Social/WishketBlog.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Social/WishketFacebook.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/Icons/Social/WishketNaverBlog.d.ts +1 -1
- package/dist/Components/DataDisplays/SystemIcon/SystemIcon.constants.d.ts +6 -1
- package/dist/Components/DataDisplays/SystemIcon/SystemIcon.part.types.d.ts +6 -0
- package/dist/Components/DataDisplays/SystemIcon/SystemIcon.types.d.ts +4 -12
- package/dist/Components/Feedbacks/DialogBox/DialogBox.js +2 -2
- package/dist/Components/Feedbacks/GlobalLoadingIndicator/GlobalLoadingIndicator.d.ts +18 -10
- package/dist/Components/Feedbacks/GlobalLoadingIndicator/GlobalLoadingIndicator.js +16 -7
- package/dist/Components/Feedbacks/LoadingIndicator/LoadingIndicator.d.ts +2 -21
- package/dist/Components/Feedbacks/LoadingIndicator/LoadingIndicator.js +9 -6
- package/dist/Components/Feedbacks/LoadingIndicator/LoadingIndicator.types.d.ts +2 -0
- package/dist/Components/Feedbacks/MessageBar/MessageBar.js +5 -5
- package/dist/Components/Feedbacks/MessageBox/MessageBox.js +6 -6
- package/dist/Components/Feedbacks/MessageBox/MessageBox.parts.js +3 -3
- package/dist/Components/Feedbacks/SnackBar/SnackBar.d.ts +1 -1
- package/dist/Components/Feedbacks/SnackBar/SnackBar.js +5 -11
- package/dist/Components/Feedbacks/SnackBar/SnackBar.types.d.ts +1 -0
- package/dist/Components/Feedbacks/Tooltip/PlainTooltip/PlainTooltip.d.ts +30 -0
- package/dist/Components/Feedbacks/Tooltip/PlainTooltip/PlainTooltip.js +31 -0
- package/dist/Components/Feedbacks/{PlainTooltip → Tooltip/PlainTooltip}/PlainTooltip.parts.d.ts +1 -1
- package/dist/Components/Feedbacks/Tooltip/PlainTooltip/PlainTooltip.parts.js +1 -0
- package/dist/Components/Feedbacks/Tooltip/PlainTooltip/index.d.ts +1 -0
- package/dist/Components/Feedbacks/Tooltip/RichTooltip/RichTooltip.d.ts +33 -0
- package/dist/Components/Feedbacks/Tooltip/RichTooltip/RichTooltip.js +32 -0
- package/dist/Components/Feedbacks/Tooltip/RichTooltip/index.d.ts +1 -0
- package/dist/Components/Feedbacks/Tooltip/Tooltip.d.ts +24 -0
- package/dist/Components/Feedbacks/Tooltip/Tooltip.js +25 -0
- package/dist/Components/Feedbacks/Tooltip/Tooltip.types.d.ts +19 -0
- package/dist/Components/Feedbacks/Tooltip/index.d.ts +4 -0
- package/dist/Components/Feedbacks/index.d.ts +1 -2
- package/dist/Components/Inputs/AutoCompleteList/AutoCompleteList.js +4 -4
- package/dist/Components/Inputs/AutoCompleteList/AutoCompleteList.parts.js +4 -4
- package/dist/Components/Inputs/Button/Button.d.ts +7 -13
- package/dist/Components/Inputs/Button/Button.js +2 -51
- package/dist/Components/Inputs/Button/Button.types.d.ts +3 -10
- package/dist/Components/Inputs/Calendar/Calendar.js +8 -8
- package/dist/Components/Inputs/Calendar/Calendar.parts.js +7 -7
- package/dist/Components/Inputs/Checkbox/Checkbox.types.d.ts +1 -1
- package/dist/Components/Inputs/CheckboxCard/CheckboxCard.js +1 -1
- package/dist/Components/Inputs/CheckboxCard/CheckboxCard.parts.js +3 -3
- package/dist/Components/Inputs/CheckboxCard/CheckboxCard.types.d.ts +1 -1
- package/dist/Components/Inputs/CheckboxListItem/CheckboxListItem.d.ts +1 -1
- package/dist/Components/Inputs/CheckboxListItem/CheckboxListItem.js +3 -3
- package/dist/Components/Inputs/ChoiceChip/ChoiceChip.js +6 -6
- package/dist/Components/Inputs/CommentArea/CommentArea.js +9 -9
- package/dist/Components/Inputs/FileUploader/FileUploader.d.ts +45 -0
- package/dist/Components/Inputs/FileUploader/FileUploader.hooks.d.ts +20 -0
- package/dist/Components/Inputs/FileUploader/FileUploader.hooks.js +1 -0
- package/dist/Components/Inputs/FileUploader/FileUploader.js +48 -0
- package/dist/Components/Inputs/FileUploader/FileUploader.parts.d.ts +10 -0
- package/dist/Components/Inputs/FileUploader/FileUploader.parts.js +11 -0
- package/dist/Components/Inputs/FileUploader/FileUploader.types.d.ts +19 -0
- package/dist/Components/Inputs/FileUploader/FileUploader.utils.d.ts +4 -0
- package/dist/Components/Inputs/FileUploader/FileUploader.utils.js +1 -0
- package/dist/Components/Inputs/FileUploader/index.d.ts +2 -0
- package/dist/Components/Inputs/FilterChip/FilterChip.js +5 -5
- package/dist/Components/Inputs/FilterList/FilterList.js +16 -14
- package/dist/Components/Inputs/IconButton/IconButton.d.ts +6 -4
- package/dist/Components/Inputs/IconButton/IconButton.js +7 -8
- package/dist/Components/Inputs/IconButtonDropdown/IconButtonDropdown.js +4 -4
- package/dist/Components/Inputs/Input/Input.js +1 -1
- package/dist/Components/Inputs/Input/LabelInput.js +3 -3
- package/dist/Components/Inputs/Input/PasswordInput.js +4 -4
- package/dist/Components/Inputs/InputChip/InputChip.js +3 -3
- package/dist/Components/Inputs/List/List.js +4 -4
- package/dist/Components/Inputs/MultiColumnList/MultiColumnList.parts.js +2 -2
- package/dist/Components/Inputs/RadioCard/RadioCard.js +1 -1
- package/dist/Components/Inputs/RadioCard/RadioCard.parts.js +4 -4
- package/dist/Components/Inputs/RadioList/RadioList.js +2 -2
- package/dist/Components/Inputs/RadioList/parts/index.d.ts +0 -1
- package/dist/Components/Inputs/RadioListItem/RadioListItem.d.ts +10 -0
- package/dist/Components/Inputs/RadioListItem/RadioListItem.js +5 -0
- package/dist/Components/Inputs/RadioListItem/index.d.ts +1 -0
- package/dist/Components/Inputs/RangeSlider/RangeSlider.js +2 -2
- package/dist/Components/Inputs/SearchField/SearchField.js +3 -3
- package/dist/Components/Inputs/SegmentedControl/SegmentedControl.js +1 -1
- package/dist/Components/Inputs/SupportTextContainer/SupportTextContainer.d.ts +3 -2
- package/dist/Components/Inputs/SupportTextContainer/SupportTextContainer.js +3 -3
- package/dist/Components/Inputs/TextButton/TextButton.d.ts +5 -2
- package/dist/Components/Inputs/TextButton/TextButton.js +7 -4
- package/dist/Components/Inputs/TextButton/TextButton.types.d.ts +2 -0
- package/dist/Components/Inputs/TextButtonDropdown/TextButtonDropdown.js +4 -4
- package/dist/Components/Inputs/TextButtonDropdown/TextButtonDropdown.parts.js +4 -4
- package/dist/Components/Inputs/TextField/TextField.d.ts +5 -8
- package/dist/Components/Inputs/TextField/TextField.js +6 -8
- package/dist/Components/Inputs/TextFieldContainer/TextFieldContainer.js +1 -1
- package/dist/Components/Inputs/TextFieldDropdown/TextFieldDropdown.js +3 -3
- package/dist/Components/Inputs/TextFieldDropdown/TextFieldDropdown.parts.js +3 -3
- package/dist/Components/Inputs/Textarea/Textarea.js +5 -5
- package/dist/Components/Inputs/index.d.ts +2 -0
- package/dist/Components/Layouts/Card/Card.d.ts +42 -0
- package/dist/Components/Layouts/Card/index.d.ts +1 -0
- package/dist/Components/Layouts/Fieldset/Fieldset.d.ts +38 -0
- package/dist/Components/Layouts/Fieldset/index.d.ts +1 -0
- package/dist/Components/Layouts/index.d.ts +2 -0
- package/dist/Components/Navigations/BoxTab/BoxTab.parts.js +1 -1
- package/dist/Components/Navigations/Drawer/Drawer.d.ts +2 -7
- package/dist/Components/Navigations/Drawer/Drawer.styles.d.ts +1 -1
- package/dist/Components/Navigations/Drawer/Drawer.types.d.ts +7 -0
- package/dist/Components/Navigations/GNBList/GNBList.d.ts +30 -30
- package/dist/Components/Navigations/GNBList/GNBList.js +27 -27
- package/dist/Components/Navigations/GNBList/GNBList.parts.d.ts +114 -20
- package/dist/Components/Navigations/GNBList/GNBList.parts.js +64 -16
- package/dist/Components/Navigations/GNBList/GNBList.types.d.ts +4 -4
- package/dist/Components/Navigations/Menu/Menu.js +3 -3
- package/dist/Components/Navigations/Pagination/Pagination.parts.js +2 -2
- package/dist/Components/Navigations/TableOfContents/TableOfContents.js +1 -1
- package/dist/Components/Navigations/TextTab/TextTab.parts.js +4 -4
- package/dist/Components/Wrappers/WithBadge/WithBadge.js +2 -2
- package/dist/Components/Wrappers/WithSnackBar/WithSnackBar.js +3 -3
- package/dist/Components/Wrappers/index.d.ts +0 -1
- package/dist/cjs/Components/Base/Layouts/FullBleed/FullBleed.js +1 -1
- package/dist/cjs/Components/Base/Layouts/FullBleed/FullBleed.utils.js +1 -1
- package/dist/cjs/Components/Base/TextWithIcons/TextWithIcons.js +2 -2
- package/dist/cjs/Components/Base/Typography/Typography.js +3 -3
- package/dist/cjs/Components/DataDisplays/Accordion/Accordion.js +8 -8
- package/dist/cjs/Components/DataDisplays/Avatar/Avatar.js +5 -4
- package/dist/cjs/Components/DataDisplays/Divider/Divider.js +24 -1
- package/dist/cjs/Components/DataDisplays/Label/Label.js +1 -1
- package/dist/cjs/Components/DataDisplays/Li/Li.js +7 -8
- package/dist/cjs/Components/DataDisplays/ProductIcon/ProductIcon.js +2 -8
- package/dist/cjs/Components/DataDisplays/SkillLabel/SkillLabel.parts.js +1 -1
- package/dist/cjs/Components/DataDisplays/SystemIcon/Icons/Large/LargeUserImageAvatar.js +4 -4
- package/dist/cjs/Components/Feedbacks/DialogBox/DialogBox.js +2 -2
- package/dist/cjs/Components/Feedbacks/LoadingIndicator/LoadingIndicator.js +28 -5
- package/dist/cjs/Components/Feedbacks/MessageBar/MessageBar.js +3 -3
- package/dist/cjs/Components/Feedbacks/MessageBox/MessageBox.js +5 -5
- package/dist/cjs/Components/Feedbacks/MessageBox/MessageBox.parts.js +3 -3
- package/dist/cjs/Components/Feedbacks/SnackBar/SnackBar.js +6 -11
- package/dist/cjs/Components/Feedbacks/Tooltip/PlainTooltip/PlainTooltip.js +31 -0
- package/dist/cjs/Components/Feedbacks/Tooltip/PlainTooltip/PlainTooltip.parts.js +1 -0
- package/dist/cjs/Components/Feedbacks/Tooltip/RichTooltip/RichTooltip.js +32 -0
- package/dist/cjs/Components/Feedbacks/Tooltip/Tooltip.js +26 -0
- package/dist/cjs/Components/Inputs/AutoCompleteList/AutoCompleteList.js +4 -4
- package/dist/cjs/Components/Inputs/AutoCompleteList/AutoCompleteList.parts.js +4 -4
- package/dist/cjs/Components/Inputs/Button/Button.js +2 -51
- package/dist/cjs/Components/Inputs/Calendar/Calendar.js +6 -6
- package/dist/cjs/Components/Inputs/Calendar/Calendar.parts.js +7 -7
- package/dist/cjs/Components/Inputs/CheckboxCard/CheckboxCard.js +1 -1
- package/dist/cjs/Components/Inputs/CheckboxCard/CheckboxCard.parts.js +2 -2
- package/dist/cjs/Components/Inputs/CheckboxListItem/CheckboxListItem.js +3 -3
- package/dist/cjs/Components/Inputs/ChoiceChip/ChoiceChip.js +5 -5
- package/dist/cjs/Components/Inputs/CommentArea/CommentArea.js +9 -9
- package/dist/cjs/Components/Inputs/FileUploader/FileUploader.hooks.js +1 -0
- package/dist/cjs/Components/Inputs/FileUploader/FileUploader.js +6 -0
- package/dist/cjs/Components/Inputs/FileUploader/FileUploader.parts.js +11 -0
- package/dist/cjs/Components/Inputs/FileUploader/FileUploader.utils.js +1 -0
- package/dist/cjs/Components/Inputs/FilterChip/FilterChip.js +4 -4
- package/dist/cjs/Components/Inputs/FilterList/FilterList.js +15 -13
- package/dist/cjs/Components/Inputs/IconButton/IconButton.js +6 -7
- package/dist/cjs/Components/Inputs/IconButtonDropdown/IconButtonDropdown.js +3 -3
- package/dist/cjs/Components/Inputs/Input/Input.js +1 -1
- package/dist/cjs/Components/Inputs/Input/LabelInput.js +3 -3
- package/dist/cjs/Components/Inputs/Input/PasswordInput.js +4 -4
- package/dist/cjs/Components/Inputs/InputChip/InputChip.js +2 -2
- package/dist/cjs/Components/Inputs/List/List.js +4 -4
- package/dist/cjs/Components/Inputs/MultiColumnList/MultiColumnList.parts.js +2 -2
- package/dist/cjs/Components/Inputs/RadioCard/RadioCard.js +1 -1
- package/dist/cjs/Components/Inputs/RadioCard/RadioCard.parts.js +4 -4
- package/dist/cjs/Components/Inputs/RadioList/RadioList.js +1 -1
- package/dist/cjs/Components/Inputs/RadioListItem/RadioListItem.js +5 -0
- package/dist/cjs/Components/Inputs/RangeSlider/RangeSlider.js +5 -5
- package/dist/cjs/Components/Inputs/SearchField/SearchField.js +5 -5
- package/dist/cjs/Components/Inputs/SegmentedControl/SegmentedControl.js +1 -1
- package/dist/cjs/Components/Inputs/SupportTextContainer/SupportTextContainer.js +3 -3
- package/dist/cjs/Components/Inputs/TextButton/TextButton.js +6 -3
- package/dist/cjs/Components/Inputs/TextButtonDropdown/TextButtonDropdown.js +1 -1
- package/dist/cjs/Components/Inputs/TextButtonDropdown/TextButtonDropdown.parts.js +4 -4
- package/dist/cjs/Components/Inputs/TextField/TextField.js +6 -8
- package/dist/cjs/Components/Inputs/TextFieldContainer/TextFieldContainer.js +1 -1
- package/dist/cjs/Components/Inputs/TextFieldDropdown/TextFieldDropdown.js +3 -3
- package/dist/cjs/Components/Inputs/TextFieldDropdown/TextFieldDropdown.parts.js +2 -2
- package/dist/cjs/Components/Inputs/Textarea/Textarea.js +4 -4
- package/dist/cjs/Components/Navigations/BoxTab/BoxTab.parts.js +1 -1
- package/dist/cjs/Components/Navigations/GNBList/GNBList.js +27 -27
- package/dist/cjs/Components/Navigations/GNBList/GNBList.parts.js +40 -16
- package/dist/cjs/Components/Navigations/Menu/Menu.js +2 -2
- package/dist/cjs/Components/Navigations/Pagination/Pagination.parts.js +2 -2
- package/dist/cjs/Components/Navigations/TableOfContents/TableOfContents.js +1 -1
- package/dist/cjs/Components/Navigations/TextTab/TextTab.parts.js +5 -5
- package/dist/cjs/Components/Wrappers/WithBadge/WithBadge.js +1 -1
- package/dist/cjs/Components/Wrappers/WithSnackBar/WithSnackBar.js +2 -2
- package/dist/cjs/constants/colors/colors.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/config/config.css +215 -0
- package/dist/config/tailwind.config.js +1 -64
- package/dist/config/tailwindcss-grid-areas.js +155 -0
- package/dist/constants/colors/colors.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +21 -5
- package/dist/Components/Feedbacks/PlainTooltip/PlainTooltip.d.ts +0 -44
- package/dist/Components/Feedbacks/PlainTooltip/PlainTooltip.js +0 -37
- package/dist/Components/Feedbacks/PlainTooltip/PlainTooltip.parts.js +0 -1
- package/dist/Components/Feedbacks/PlainTooltip/index.d.ts +0 -2
- package/dist/Components/Feedbacks/RichTooltip/RichTooltip.d.ts +0 -34
- package/dist/Components/Feedbacks/RichTooltip/RichTooltip.js +0 -27
- package/dist/Components/Feedbacks/RichTooltip/index.d.ts +0 -2
- package/dist/Components/Inputs/Button/Button.parts.d.ts +0 -2
- package/dist/Components/Inputs/Button/Button.parts.js +0 -2
- package/dist/Components/Inputs/RadioList/parts/RadioListItem.d.ts +0 -10
- package/dist/Components/Inputs/RadioList/parts/RadioListItem.js +0 -4
- package/dist/Components/Wrappers/WithRichTooltip/WithRichTooltip.d.ts +0 -39
- package/dist/Components/Wrappers/WithRichTooltip/WithRichTooltip.js +0 -32
- package/dist/Components/Wrappers/WithRichTooltip/index.d.ts +0 -1
- package/dist/cjs/Components/Feedbacks/PlainTooltip/PlainTooltip.js +0 -37
- package/dist/cjs/Components/Feedbacks/PlainTooltip/PlainTooltip.parts.js +0 -1
- package/dist/cjs/Components/Feedbacks/RichTooltip/RichTooltip.js +0 -1
- package/dist/cjs/Components/Inputs/Button/Button.parts.js +0 -2
- package/dist/cjs/Components/Inputs/RadioList/parts/RadioListItem.js +0 -4
- package/dist/cjs/Components/Wrappers/WithRichTooltip/WithRichTooltip.js +0 -3
- package/dist/config/tailwind-plugins.js +0 -90
- package/dist/types.d.ts +0 -32
package/README.md
CHANGED
|
@@ -75,7 +75,7 @@ import { Typography } from '@wishket/design-system';
|
|
|
75
75
|
|
|
76
76
|
export const Home = () => {
|
|
77
77
|
return (
|
|
78
|
-
<Typography variant="
|
|
78
|
+
<Typography variant="title48" className='bg-w-cyan-500'>Hello, World!</Typography>
|
|
79
79
|
);
|
|
80
80
|
}
|
|
81
81
|
|
|
@@ -10,4 +10,4 @@
|
|
|
10
10
|
*/(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}const s=/*#__PURE__*/t(((t,d)=>{var{className:s,insideContainerClassName:m,maxWidth:f="1200px",paddingAdjustment:b=8.5,children:u}=t,y=p(t,["className","insideContainerClassName","maxWidth","paddingAdjustment","children"]);
|
|
11
11
|
// TODO: 스크롤바 너비를 제외한 viewport width 계산을 더 나은 방식으로 할 수 있도록 개선(layout shift 방지)
|
|
12
12
|
const[g,x]=r((()=>a())),O=l(m,"mobile"),h=l(m,"tablet"),j=l(m,"desktop");n((()=>{x(a())}),[]);const v={"--dynamic-padding-left-tablet":`max(${h.left||h.x}px, ${O.left||O.x}px)`,"--dynamic-padding-right-tablet":`max(${h.right||h.x}px, ${O.right||O.x}px)`,"--dynamic-padding-left-desktop":`calc(max(calc((100dvw - ${f})/2 + ${O.left||O.x}px + ${b}px), ${j.x}px))`,"--dynamic-padding-right-desktop":`calc(max(calc((100dvw - ${f})/2 + ${O.right||O.x}px + ${b}px), ${j.x}px))`},w={"--dynamic-bleed-width":`calc(100dvw - ${g}px)`};/*#__PURE__*/
|
|
13
|
-
return e("div",{"data-testid":"design-system-full-bleed",children:/*#__PURE__*/e("div",{"data-testid":"design-system-full-bleed--container",className:i("relative left-1/2 top-0 h-full w-[var(--dynamic-bleed-width)] -translate-x-1/2",s),style:w,children:/*#__PURE__*/e("div",o(c({"data-testid":"design-system-full-bleed--container-inside",className:i("flex w-full overflow-x-auto px-5
|
|
13
|
+
return e("div",{"data-testid":"design-system-full-bleed",children:/*#__PURE__*/e("div",{"data-testid":"design-system-full-bleed--container",className:i("relative left-1/2 top-0 h-full w-[var(--dynamic-bleed-width)] -translate-x-1/2",s),style:w,children:/*#__PURE__*/e("div",o(c({"data-testid":"design-system-full-bleed--container-inside",className:i("scrollbar-hide flex w-full overflow-x-auto px-5","tablet:pl-[var(--dynamic-padding-left-tablet)] tablet:pr-[var(--dynamic-padding-right-tablet)]","desktop:pl-[var(--dynamic-padding-left-desktop)] desktop:pr-[var(--dynamic-padding-right-desktop)]",m),style:v,ref:d},y),{children:u}))})})}));s.displayName="FullBleed";export{s as FullBleed};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function t(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const e=(r,n="mobile")=>{const i={mobile:{x:20,left:0,right:0},tablet:{x:20,left:0,right:0},desktop:{x:36,left:0,right:0}};if(!r){if("tablet"===n){const t=e(r,"mobile");return{x:t.x,left:t.left,right:t.right}}return i[n]}const o=r.split(" "),l="mobile"===n?"":`${n}:`;if(!o.some((t=>t.startsWith(l
|
|
1
|
+
function t(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const e=(r,n="mobile")=>{const i={mobile:{x:20,left:0,right:0},tablet:{x:20,left:0,right:0},desktop:{x:36,left:0,right:0}};if(!r){if("tablet"===n){const t=e(r,"mobile");return{x:t.x,left:t.left,right:t.right}}return i[n]}const o=r.split(" "),l="mobile"===n?"":`${n}:`;if(!o.some((t=>t.startsWith(`${l}px-`)||t.startsWith(`${l}pl-`)||t.startsWith(`${l}pr-`)))&&"tablet"===n)return e(r,"mobile");const c=function(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(r){t(e,r,n[r])}))}return e}({},i[n]),s=o.find((t=>t===`${l}px-${c.x/4}`||t.startsWith(`${l}px-`)));
|
|
2
2
|
// px 처리
|
|
3
3
|
if(s){const t=4*Number(s.replace(l,"").replace("px-",""));c.x=t}
|
|
4
4
|
// pl 처리
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsxs as t,Fragment as e,jsx as i}from"react/jsx-runtime";import{twJoin as s}from"tailwind-merge";import
|
|
2
|
-
/*#__PURE__*/i(
|
|
1
|
+
import{jsxs as t,Fragment as e,jsx as i}from"react/jsx-runtime";import{twJoin as s}from"tailwind-merge";import{SystemIcon as a}from"../../DataDisplays/SystemIcon/SystemIcon.js";import"../../DataDisplays/SystemIcon/SystemIcon.constants.js";import{Typography as r}from"../Typography/Typography.js";import{Box as n}from"../Layouts/Box/Box.js";import"../Layouts/FullBleed/FullBleed.js";const o=({text:o,leadingIcon:m,trailingIcon:l,isTextSmall:c=!1,isGray:d=!1,isUnderline:y=!1})=>/*#__PURE__*/t(e,{children:[m&&/*#__PURE__*/i(n,{"data-testid":"design-system-text-with-icons--icon--left",className:"w-fit",children:/*#__PURE__*/i(a,{name:m,className:s(d?"text-w-gray-600":"text-primary-500")})}),
|
|
2
|
+
/*#__PURE__*/i(n,{"data-testid":"design-system-text-with-icons--text",className:"w-fit",children:/*#__PURE__*/i(r,{variant:c?"body14":"body16",className:s("align-baseline font-medium",d?"text-w-gray-600":"text-primary-500",y?"underline decoration-1 underline-offset-2":""),children:o})}),l&&/*#__PURE__*/i(n,{"data-testid":"design-system-text-with-icons--icon--right",className:"w-fit",children:/*#__PURE__*/i(a,{name:l,className:s(d?"text-w-gray-600":"text-primary-500")})})]});export{o as TextWithIcons};
|
|
@@ -3,7 +3,7 @@ import { TypographyProps } from './Typography.types';
|
|
|
3
3
|
* Typography
|
|
4
4
|
* @param {Object} props
|
|
5
5
|
* @param {React.ReactNode} props.children - Typography 내부에 들어갈 컨텐츠
|
|
6
|
-
* @param {string} props.variant - 텍스트 스타일 variant ('
|
|
6
|
+
* @param {string} props.variant - 텍스트 스타일 variant ('title48' | 'title32' | 'title24' | 'subTitle20' | 'subTitle18' | 'contents18' | 'contents16' | 'body16' | 'body14' | 'body13' | 'caption12' | 'caption11')
|
|
7
7
|
* @param {string} [props.className] - 추가적인 CSS 클래스
|
|
8
8
|
* @param {keyof JSX.IntrinsicElements} [props.as='span'] - 렌더링할 HTML 요소
|
|
9
9
|
*/
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import{jsx as t}from"react/jsx-runtime";import{twMerge as e}from"tailwind-merge";function n(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function r(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):function(t){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e.push.apply(e,n)}return e}(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})),t}function o(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},c=Object.keys(t);for(r=0;r<c.length;r++)n=c[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);for(r=0;r<c.length;r++)n=c[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}const c=[{name:"
|
|
2
|
-
return t(u,r(function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),o.forEach((function(e){n(t,e,r[e])}))}return t}({className:e("tracking-default",
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{twMerge as e}from"tailwind-merge";function n(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function r(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):function(t){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e.push.apply(e,n)}return e}(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})),t}function o(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},c=Object.keys(t);for(r=0;r<c.length;r++)n=c[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);for(r=0;r<c.length;r++)n=c[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}const c=[{name:"title48",class:"typo-title48"},{name:"title32",class:"typo-title32"},{name:"title28",class:"typo-title28"},{name:"title24",class:"typo-title24"},{name:"subTitle20",class:"typo-subTitle20"},{name:"subTitle18",class:"typo-subTitle18"},{name:"contents18",class:"typo-contents18"},{name:"contents16",class:"typo-contents16"},{name:"body16",class:"typo-body16"},{name:"body14",class:"typo-body14"},{name:"body13",class:"typo-body13"},{name:"caption12",class:"typo-caption12"},{name:"caption11",class:"typo-caption11"}],a=a=>{var s,{children:l,variant:i,className:p,as:y="span"}=a,b=o(a,["children","variant","className","as"]);const u=y||"span",m=(null===(s=c.find((t=>t.name===i)))||void 0===s?void 0:s.class)||"";/*#__PURE__*/
|
|
2
|
+
return t(u,r(function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),o.forEach((function(e){n(t,e,r[e])}))}return t}({className:e("tracking-default",m,p)},b),{children:l}))};
|
|
3
3
|
/**
|
|
4
4
|
* Typography
|
|
5
5
|
* @param {Object} props
|
|
6
6
|
* @param {React.ReactNode} props.children - Typography 내부에 들어갈 컨텐츠
|
|
7
|
-
* @param {string} props.variant - 텍스트 스타일 variant ('
|
|
7
|
+
* @param {string} props.variant - 텍스트 스타일 variant ('title48' | 'title32' | 'title24' | 'subTitle20' | 'subTitle18' | 'contents18' | 'contents16' | 'body16' | 'body14' | 'body13' | 'caption12' | 'caption11')
|
|
8
8
|
* @param {string} [props.className] - 추가적인 CSS 클래스
|
|
9
9
|
* @param {keyof JSX.IntrinsicElements} [props.as='span'] - 렌더링할 HTML 요소
|
|
10
10
|
*/export{a as Typography};
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { ElementType, PropsWithChildren } from 'react';
|
|
2
2
|
export declare const typographyVariants: {
|
|
3
|
-
readonly
|
|
4
|
-
readonly
|
|
5
|
-
readonly
|
|
6
|
-
readonly
|
|
7
|
-
readonly
|
|
8
|
-
readonly
|
|
9
|
-
readonly
|
|
10
|
-
readonly
|
|
11
|
-
readonly
|
|
12
|
-
readonly
|
|
13
|
-
readonly
|
|
14
|
-
readonly
|
|
3
|
+
readonly title48: "title48";
|
|
4
|
+
readonly title32: "title32";
|
|
5
|
+
readonly title28: "title28";
|
|
6
|
+
readonly title24: "title24";
|
|
7
|
+
readonly subTitle20: "subTitle20";
|
|
8
|
+
readonly subTitle18: "subTitle18";
|
|
9
|
+
readonly contents18: "contents18";
|
|
10
|
+
readonly contents16: "contents16";
|
|
11
|
+
readonly body16: "body16";
|
|
12
|
+
readonly body14: "body14";
|
|
13
|
+
readonly body13: "body13";
|
|
14
|
+
readonly caption12: "caption12";
|
|
15
|
+
readonly caption11: "caption11";
|
|
15
16
|
};
|
|
16
17
|
export type TypographyVariants = (typeof typographyVariants)[keyof typeof typographyVariants];
|
|
17
18
|
export interface TypographyProps extends PropsWithChildren {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use client";import{jsx as
|
|
1
|
+
"use client";import{jsx as e,jsxs as r}from"react/jsx-runtime";import{useState as t,useId as o}from"react";import{twJoin as a}from"tailwind-merge";import{Typography as i}from"../../Base/Typography/Typography.js";import{Box as n}from"../../Base/Layouts/Box/Box.js";import"../../Base/Layouts/FullBleed/FullBleed.js";import{SystemIcon as l}from"../SystemIcon/SystemIcon.js";import"../SystemIcon/SystemIcon.constants.js";import{TextLink as s}from"../../Navigations/TextLink/TextLink.js";
|
|
2
2
|
/**
|
|
3
3
|
* 아코디언 컨테이너 컴포넌트
|
|
4
4
|
*
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* </Accordion.Item>
|
|
20
20
|
* </Accordion>
|
|
21
21
|
* ```
|
|
22
|
-
*/const
|
|
22
|
+
*/const c=({children:r})=>/*#__PURE__*/e(n,{className:"flex w-full flex-col gap-6 p-6",children:r});
|
|
23
23
|
/**
|
|
24
24
|
* 아코디언의 개별 아이템 컴포넌트
|
|
25
25
|
*
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
* <p>콘텐츠 내용</p>
|
|
51
51
|
* </Accordion.Item>
|
|
52
52
|
* ```
|
|
53
|
-
*/
|
|
54
|
-
return
|
|
55
|
-
/*#__PURE__*/
|
|
56
|
-
/*#__PURE__*/
|
|
57
|
-
/*#__PURE__*/
|
|
58
|
-
/*#__PURE__*/
|
|
53
|
+
*/c.Item=({title:c,href:m,linkText:d,linkTarget:f="_blank",children:u})=>{const[p,x]=t(!1),b=o(),h=m&&d&&f;/*#__PURE__*/
|
|
54
|
+
return r(n,{className:"flex w-full flex-col border-b border-w-gray-200 pb-6 last:border-b-0 last:pb-0",children:[
|
|
55
|
+
/*#__PURE__*/r("button",{type:"button",className:"box-border flex cursor-pointer items-center justify-between gap-6 text-left",onClick:()=>x(!p),"aria-expanded":p,"aria-controls":`accordionregion-${b}`,id:`accordionbutton-${b}`,children:[
|
|
56
|
+
/*#__PURE__*/e(i,{variant:"subTitle18",className:"w-full font-medium text-w-gray-900",children:c}),
|
|
57
|
+
/*#__PURE__*/e(n,{className:a("transition-transform duration-300 ease-in-out",p?"rotate-180":"rotate-0"),children:/*#__PURE__*/e(l,{name:"medium_arrow_down"})})]}),
|
|
58
|
+
/*#__PURE__*/e(n,{role:"region",id:`accordionregion-${b}`,"aria-labelledby":`accordionbutton-${b}`,className:a("w-full overflow-hidden transition-all duration-300 ease-in-out",p?"max-h-screen":"max-h-0"),children:/*#__PURE__*/r(n,{className:"mt-4 flex flex-col gap-4",children:[u,h&&/*#__PURE__*/e(s,{href:m,text:d,target:f,trailingIcon:"medium_arrow_right"})]})})]})};export{c as Accordion};
|
|
@@ -6,6 +6,7 @@ export interface AvatarProps {
|
|
|
6
6
|
isEditable?: boolean;
|
|
7
7
|
onClick?: () => void;
|
|
8
8
|
hasBorder?: boolean;
|
|
9
|
+
defaultAvatarColor?: string;
|
|
9
10
|
}
|
|
10
|
-
declare const MemoizedAvatar: import("react").MemoExoticComponent<({ size, name, imgUrl, isEditable, onClick, hasBorder, }: AvatarProps) => import("react/jsx-runtime").JSX.Element>;
|
|
11
|
+
declare const MemoizedAvatar: import("react").MemoExoticComponent<({ size, name, imgUrl, isEditable, onClick, hasBorder, defaultAvatarColor, }: AvatarProps) => import("react/jsx-runtime").JSX.Element>;
|
|
11
12
|
export { MemoizedAvatar as Avatar };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use client";import{jsxs as e,jsx as t}from"react/jsx-runtime";import{twMerge as a,twJoin as r}from"tailwind-merge";import{memo as s,useState as i}from"react";import{SystemIcon as o}from"../SystemIcon/SystemIcon.js";import"../SystemIcon/SystemIcon.constants.js";import{Typography as
|
|
2
|
-
return e(
|
|
3
|
-
/*#__PURE__*/t(
|
|
1
|
+
"use client";import{jsxs as e,jsx as t}from"react/jsx-runtime";import{twMerge as a,twJoin as r}from"tailwind-merge";import{memo as s,useState as i}from"react";import{SystemIcon as o}from"../SystemIcon/SystemIcon.js";import"../SystemIcon/SystemIcon.constants.js";import{Typography as l}from"../../Base/Typography/Typography.js";import{Box as n}from"../../Base/Layouts/Box/Box.js";import"../../Base/Layouts/FullBleed/FullBleed.js";const m=({size:e="md",name:a,imgUrl:s,isMonogram:n,avatarStyle:m,defaultAvatarColor:d})=>{const[c,u]=i(!1),g=null==a?void 0:a.slice(0,1);return s&&!c?/*#__PURE__*/t("img",{src:s,alt:"",width:80,height:80,className:"h-full w-full object-cover","data-testid":"design-system-avatar--image",onError:()=>u(!0)}):n?/*#__PURE__*/t(l,{variant:m[e].char,className:"cursor-default select-none text-w-white",children:g}):/*#__PURE__*/t(o,{name:"large_user_image_avatar",className:r("h-full w-full",d),testId:"design-system-avatar--default-image"})},d=/*#__PURE__*/s((({size:s="md",name:i,imgUrl:l,isEditable:d=!1,onClick:c,hasBorder:u=!0,defaultAvatarColor:g="text-w-gray-200"})=>{const y=!l&&!!i,f={sm:{container:"size-[22px]",char:"caption12",editButton:"hidden"},md:{container:"size-8",char:"body16",editButton:"size-4"},lg:{container:"size-12",char:"title28",editButton:"size-5"},xl:{container:"size-20",char:"title32",editButton:"size-6"}};/*#__PURE__*/
|
|
2
|
+
return e(n,{className:a("relative z-0 h-fit w-fit",d&&"cursor-pointer"),onClick:c,children:[
|
|
3
|
+
/*#__PURE__*/t(n,{"data-testid":"design-system-avatar--container",className:a(f[s].container,"flex items-center justify-center overflow-hidden rounded-full",y&&"bg-primary",u&&"border border-w-gray-200"),children:/*#__PURE__*/t(m,{size:s,name:i,imgUrl:l,isMonogram:y,avatarStyle:f,defaultAvatarColor:g})}),!y&&d&&/*#__PURE__*/t(n,{className:a("absolute bottom-0 right-0 z-10 flex items-center justify-center rounded-full bg-w-white shadow-graysmall",f[s].editButton),"data-testid":"design-system-avatar--edit-button",children:/*#__PURE__*/t(o,{name:"small_camera",solid:!0,className:r("md"===s&&"size-3"),testId:"design-system-avatar--edit-button-icon"})})]})}));
|
|
4
4
|
/**
|
|
5
5
|
* Avatar 컴포넌트는 사용자의 프로필 이미지, 모노그램, 또는 기본 아이콘을 표시합니다.
|
|
6
6
|
* @component
|
|
@@ -10,6 +10,7 @@ return e(l,{className:a("relative z-0 h-fit w-fit",d&&"cursor-pointer"),onClick:
|
|
|
10
10
|
* @param {string} [props.imgUrl] - 이미지 URL
|
|
11
11
|
* @param {boolean} [props.isEditable=false] - 수정 아이콘 여부
|
|
12
12
|
* @param {boolean} [props.hasBorder=true] - 테두리 여부
|
|
13
|
+
* @param {AvatarColor} [props.defaultAvatarColor='text-w-gray-200'] - 기본 아이콘 색상
|
|
13
14
|
* @param {() => void} [props.onClick] - 클릭 시 실행될 콜백 함수
|
|
14
15
|
* @returns {JSX.Element} Avatar component
|
|
15
16
|
* @example
|
|
@@ -21,4 +22,4 @@ return e(l,{className:a("relative z-0 h-fit w-fit",d&&"cursor-pointer"),onClick:
|
|
|
21
22
|
*
|
|
22
23
|
* // Editable avatar
|
|
23
24
|
* <Avatar name="John Doe" isEditable={true} onClick={() => handleEdit()} />
|
|
24
|
-
*/export{d as Avatar};
|
|
25
|
+
*/d.displayName="Avatar";export{d as Avatar};
|
|
@@ -1,25 +1,8 @@
|
|
|
1
1
|
export interface DividerProps {
|
|
2
2
|
isVertical?: boolean;
|
|
3
|
-
|
|
3
|
+
color?: 'gray' | 'light' | 'dark' | 'blue';
|
|
4
|
+
height?: 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
4
5
|
className?: string;
|
|
5
6
|
}
|
|
6
|
-
|
|
7
|
-
* 콘텐츠 사이에 시각적 구분선을 생성하는 컴포넌트
|
|
8
|
-
* @param {Object} props
|
|
9
|
-
* @param {boolean} [props.isVertical=false] - true일 경우 세로 구분선, false일 경우 가로 구분선
|
|
10
|
-
* @param {boolean} [props.isSub=false] - true일 경우 연한 회색, false일 경우 진한 회색 사용
|
|
11
|
-
* @param {string} [props.className] - 추가적인 CSS 클래스
|
|
12
|
-
* @returns {JSX.Element} 구분선 요소
|
|
13
|
-
* @example
|
|
14
|
-
* // 가로 구분선
|
|
15
|
-
* <Divider />
|
|
16
|
-
*
|
|
17
|
-
* // 세로 구분선
|
|
18
|
-
* <Divider isVertical />
|
|
19
|
-
*
|
|
20
|
-
* // 연한 회색의 구분선
|
|
21
|
-
* <Divider isSub />
|
|
22
|
-
*
|
|
23
|
-
*/
|
|
24
|
-
declare const Divider: ({ isVertical, isSub, className, }: DividerProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare const Divider: ({ isVertical, color, height, className, }: DividerProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
8
|
export { Divider };
|
|
@@ -1,19 +1,23 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{twMerge as l}from"tailwind-merge";
|
|
2
2
|
/**
|
|
3
3
|
* 콘텐츠 사이에 시각적 구분선을 생성하는 컴포넌트
|
|
4
4
|
* @param {Object} props
|
|
5
5
|
* @param {boolean} [props.isVertical=false] - true일 경우 세로 구분선, false일 경우 가로 구분선
|
|
6
|
-
* @param {
|
|
6
|
+
* @param {'gray' | 'light' | 'dark' | 'blue'} [props.color='gray'] - 구분선 색상
|
|
7
|
+
* @param {'sm' | 'md' | 'lg' | 'xl' | 'full'} [props.height] - 세로 구분선의 높이 (isVertical=true일 때만 적용, 기본값: full)
|
|
7
8
|
* @param {string} [props.className] - 추가적인 CSS 클래스
|
|
8
9
|
* @returns {JSX.Element} 구분선 요소
|
|
9
10
|
* @example
|
|
10
11
|
* // 가로 구분선
|
|
11
12
|
* <Divider />
|
|
12
13
|
*
|
|
13
|
-
* // 세로 구분선
|
|
14
|
+
* // 세로 구분선 (부모 높이 필요)
|
|
14
15
|
* <Divider isVertical />
|
|
15
16
|
*
|
|
16
|
-
* //
|
|
17
|
-
* <Divider
|
|
17
|
+
* // 고정 높이 세로 구분선
|
|
18
|
+
* <Divider isVertical height="md" />
|
|
18
19
|
*
|
|
19
|
-
|
|
20
|
+
* // 부모 높이에 맞는 세로 구분선
|
|
21
|
+
* <Divider isVertical height="full" />
|
|
22
|
+
*
|
|
23
|
+
*/const a={gray:"bg-w-gray-200",light:"bg-w-gray-100",dark:"bg-w-bluegray-500",blue:"bg-w-bluegray-50"},e={sm:"h-3",md:"h-[13px]",lg:"h-3.5",xl:"h-4",full:"h-full"},g=({isVertical:g=!1,color:i="gray",height:t="full",className:s})=>/*#__PURE__*/r("div",{"data-testid":"design-system-divider",role:"separator",className:l("shrink-0",g?"w-px":"h-px w-full",g&&e[t],a[i],s)});export{g as Divider};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";import{jsxs as e,jsx as r}from"react/jsx-runtime";import{useContext as t,createContext as n,Children as o,isValidElement as a}from"react";import{twMerge as i}from"tailwind-merge";import{Typography as s}from"../../Base/Typography/Typography.js";import{Box as c}from"../../Base/Layouts/Box/Box.js";import"../../Base/Layouts/FullBleed/FullBleed.js";import{SystemIcon as y}from"../SystemIcon/SystemIcon.js";import"../SystemIcon/SystemIcon.constants.js";function p(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function l(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{},n=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),n.forEach((function(r){p(e,r,t[r])}))}return e}function m(e,r){return r=null!=r?r:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):function(e){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r.push.apply(r,t)}return r}(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})),e}function b(e,r){if(null==e)return{};var t,n,o=function(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}const g=/*#__PURE__*/n({type:"",variant:"",size:""}),u={Root:e=>{var{children:t,className:n,size:s="md",type:y="text",variant:p="primary",ref:u,canHover:d=!1}=e,f=b(e,["children","className","size","type","variant","ref","canHover"]);const O=o.toArray(t),j=O.length-1,w=e=>/*#__PURE__*/a(e)&&"function"==typeof e.type&&e.type.toString().includes("icon"),v=w(O[0]),x=w(O[j]);/*#__PURE__*/
|
|
2
2
|
return r(g.Provider,{value:{type:y,variant:p,size:s},children:/*#__PURE__*/r(c,m(l({"data-testid":"design-system-label",className:i("flex w-fit items-center","sm"===s&&"gap-1","md"===s&&"gap-1.5",(()=>{const e="sm"===s,r="rounded-lg px-2";if("text"!==y)return i(r,"outlined"===y?e?"border py-px":"border py-0":e?"py-0.5":"py-px",v&&"pl-1.5",x&&"pr-1.5")})(),d&&"cursor-pointer",(()=>{const e="outlined"===y;if("text"!==y)return"gray"===p?e?d?"bg-w-gray-10 border-w-gray-200 hover:border-w-gray-400":"bg-w-gray-10 border-w-gray-200":d?"bg-w-gray-10 hover:bg-w-gray-200":"bg-w-gray-10":e?d?"bg-primary-50 border-primary-200 hover:border-primary":"bg-primary-50 border-primary-200":d?"bg-primary-50 hover:bg-primary-100":"bg-primary-50"})(),n)},f),{children:t}))})},Text:({children:e,className:n})=>{const{type:o,variant:a,size:c}=t(g);/*#__PURE__*/
|
|
3
|
-
return r(s,{variant:"md"===c?"
|
|
3
|
+
return r(s,{variant:"md"===c?"body14":"caption12","data-testid":"design-system-label--text",className:i("select-none text-w-gray-600",!("text"===o)&&"primary"===a&&"text-primary",n),children:e})},Icon:({children:n,className:o,icon:a})=>{const{type:s,variant:p}=t(g);/*#__PURE__*/
|
|
4
4
|
return e(c,{"data-testid":"design-system-label--icon",className:i("aspect-w-[14px] size-[14px] shrink-0 object-contain",!a&&o),children:[a&&/*#__PURE__*/r(y,{name:a,className:i("text-w-gray-400","primary"===p&&"text-primary","text"===s&&"text-w-gray-400",o)}),n]})}};
|
|
5
5
|
/**
|
|
6
6
|
* @component Root
|
|
@@ -1,17 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
variant?: Variant;
|
|
5
|
-
bulletClassName?: string;
|
|
6
|
-
bulletSize?: number;
|
|
7
|
-
gap?: number;
|
|
8
|
-
className?: string;
|
|
9
|
-
}
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export declare const Bullet: () => import("react/jsx-runtime").JSX.Element;
|
|
10
3
|
/**
|
|
11
4
|
* 리스트 아이템 컴포넌트입니다.
|
|
12
5
|
*
|
|
13
6
|
* @param {Object} props - 컴포넌트 프로퍼티
|
|
14
|
-
* @param {Variant} [props.variant] - 텍스트 타이포그래피 variant (기본값:
|
|
7
|
+
* @param {Variant} [props.variant] - 텍스트 타이포그래피 variant (기본값: body16)
|
|
15
8
|
* @param {string} [props.bulletClassName] - 리스트 아이템 불릿 클래스명 (기본값: 'text-w-bluegray-300')
|
|
16
9
|
* @param {number} [props.bulletSize] - 리스트 아이템 불릿 크기 (지름, 기본값: 3)
|
|
17
10
|
* @param {number} [props.gap] - 불릿과 children 간격 (기본값: 2)
|
|
@@ -22,7 +15,7 @@ interface LiProps {
|
|
|
22
15
|
* <Li>내용을 적어줍니다.</Li>
|
|
23
16
|
*
|
|
24
17
|
* // 타이포그래피 variant 변경
|
|
25
|
-
* <Li variant="
|
|
18
|
+
* <Li variant="title28">내용을 적어줍니다.</Li>
|
|
26
19
|
*
|
|
27
20
|
* // 불릿 색상 조절
|
|
28
21
|
* <Li bulletClassName="text-w-red-800">내용을 적어줍니다.</Li>
|
|
@@ -37,61 +30,5 @@ interface LiProps {
|
|
|
37
30
|
* <Li className="text-w-red-800">내용을 적어줍니다.</Li>
|
|
38
31
|
*
|
|
39
32
|
*/
|
|
40
|
-
declare const Li: ({ children,
|
|
33
|
+
declare const Li: ({ children, className, ...rest }: HTMLAttributes<HTMLLIElement>) => import("react/jsx-runtime").JSX.Element;
|
|
41
34
|
export default Li;
|
|
42
|
-
export declare const typographyStyles: {
|
|
43
|
-
title1: {
|
|
44
|
-
fontSize: string;
|
|
45
|
-
lineHeight: string;
|
|
46
|
-
};
|
|
47
|
-
title2: {
|
|
48
|
-
fontSize: string;
|
|
49
|
-
lineHeight: string;
|
|
50
|
-
};
|
|
51
|
-
title3: {
|
|
52
|
-
fontSize: string;
|
|
53
|
-
lineHeight: string;
|
|
54
|
-
};
|
|
55
|
-
subTitle1: {
|
|
56
|
-
fontSize: string;
|
|
57
|
-
lineHeight: string;
|
|
58
|
-
};
|
|
59
|
-
subTitle2: {
|
|
60
|
-
fontSize: string;
|
|
61
|
-
lineHeight: string;
|
|
62
|
-
};
|
|
63
|
-
contents1: {
|
|
64
|
-
fontSize: string;
|
|
65
|
-
lineHeight: string;
|
|
66
|
-
};
|
|
67
|
-
contents2: {
|
|
68
|
-
fontSize: string;
|
|
69
|
-
lineHeight: string;
|
|
70
|
-
};
|
|
71
|
-
body1: {
|
|
72
|
-
fontSize: string;
|
|
73
|
-
lineHeight: string;
|
|
74
|
-
};
|
|
75
|
-
body2: {
|
|
76
|
-
fontSize: string;
|
|
77
|
-
lineHeight: string;
|
|
78
|
-
};
|
|
79
|
-
body3: {
|
|
80
|
-
fontSize: string;
|
|
81
|
-
lineHeight: string;
|
|
82
|
-
};
|
|
83
|
-
caption1: {
|
|
84
|
-
fontSize: string;
|
|
85
|
-
lineHeight: string;
|
|
86
|
-
};
|
|
87
|
-
caption2: {
|
|
88
|
-
fontSize: string;
|
|
89
|
-
lineHeight: string;
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
|
-
type Variant = keyof typeof typographyStyles;
|
|
93
|
-
export declare const BulletIcon: ({ size, variant, className, }: {
|
|
94
|
-
size?: number;
|
|
95
|
-
variant?: Variant;
|
|
96
|
-
className?: string;
|
|
97
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import{jsxs as e,jsx as
|
|
1
|
+
import{jsxs as e,jsx as r}from"react/jsx-runtime";import{twMerge as t}from"tailwind-merge";function n(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(e,r){return r=null!=r?r:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):function(e){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r.push.apply(r,t)}return r}(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})),e}function c(e,r){if(null==e)return{};var t,n,o=function(e,r){if(null==e)return{};var t,n,o={},c=Object.keys(e);for(n=0;n<c.length;n++)t=c[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)t=c[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}const l=()=>/*#__PURE__*/r("svg",{xmlns:"http://www.w3.org/2000/svg",width:"3",height:"3",viewBox:"0 0 3 3",fill:"none",className:"shrink-0",children:/*#__PURE__*/r("circle",{cx:"1.5",cy:"1.5",r:"1.5",fill:"currentColor"})}),i=i=>{var{children:s,className:a}=i,u=c(i,["children","className"]);const f=`${(null==a?void 0:a.includes("typo-"))?"":"typo-body14"} ${a||""}`.trim();/*#__PURE__*/
|
|
2
|
+
return e("li",o(function(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{},o=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),o.forEach((function(r){n(e,r,t[r])}))}return e}({className:t("flex gap-2 text-w-gray-500",f)},u),{children:[
|
|
3
|
+
/*#__PURE__*/r("span",{className:"inline-flex h-[1lh] shrink-0 items-center",children:/*#__PURE__*/r(l,{})}),
|
|
4
|
+
/*#__PURE__*/r("span",{children:s})]}))};
|
|
2
5
|
/**
|
|
3
6
|
* 리스트 아이템 컴포넌트입니다.
|
|
4
7
|
*
|
|
5
8
|
* @param {Object} props - 컴포넌트 프로퍼티
|
|
6
|
-
* @param {Variant} [props.variant] - 텍스트 타이포그래피 variant (기본값:
|
|
9
|
+
* @param {Variant} [props.variant] - 텍스트 타이포그래피 variant (기본값: body16)
|
|
7
10
|
* @param {string} [props.bulletClassName] - 리스트 아이템 불릿 클래스명 (기본값: 'text-w-bluegray-300')
|
|
8
11
|
* @param {number} [props.bulletSize] - 리스트 아이템 불릿 크기 (지름, 기본값: 3)
|
|
9
12
|
* @param {number} [props.gap] - 불릿과 children 간격 (기본값: 2)
|
|
@@ -14,7 +17,7 @@ import{jsxs as e,jsx as i}from"react/jsx-runtime";import{twMerge as t}from"tailw
|
|
|
14
17
|
* <Li>내용을 적어줍니다.</Li>
|
|
15
18
|
*
|
|
16
19
|
* // 타이포그래피 variant 변경
|
|
17
|
-
* <Li variant="
|
|
20
|
+
* <Li variant="title28">내용을 적어줍니다.</Li>
|
|
18
21
|
*
|
|
19
22
|
* // 불릿 색상 조절
|
|
20
23
|
* <Li bulletClassName="text-w-red-800">내용을 적어줍니다.</Li>
|
|
@@ -28,7 +31,4 @@ import{jsxs as e,jsx as i}from"react/jsx-runtime";import{twMerge as t}from"tailw
|
|
|
28
31
|
* // 커스텀 클래스와 함께 사용
|
|
29
32
|
* <Li className="text-w-red-800">내용을 적어줍니다.</Li>
|
|
30
33
|
*
|
|
31
|
-
*/
|
|
32
|
-
/*#__PURE__*/i(s,{size:p,variant:n,className:a}),
|
|
33
|
-
/*#__PURE__*/i("span",{children:l})]}),o={title1:{fontSize:"48px",lineHeight:"64px"},title2:{fontSize:"32px",lineHeight:"48px"},title3:{fontSize:"24px",lineHeight:"36px"},subTitle1:{fontSize:"20px",lineHeight:"30px"},subTitle2:{fontSize:"18px",lineHeight:"28px"},contents1:{fontSize:"18px",lineHeight:"32px"},contents2:{fontSize:"16px",lineHeight:"30px"},body1:{fontSize:"16px",lineHeight:"26px"},body2:{fontSize:"14px",lineHeight:"24px"},body3:{fontSize:"13px",lineHeight:"20px"},caption1:{fontSize:"12px",lineHeight:"18px"},caption2:{fontSize:"11px",lineHeight:"14px"}},s=({size:e=3,variant:n="body1",className:s})=>{var p;const a=e/2,x=4*e,r=(null===(p=o[n])||void 0===p?void 0:p.lineHeight)||"26px",h=parseInt(r)/2-x/2;/*#__PURE__*/
|
|
34
|
-
return i(l,{className:t("flex-shrink-0",s),style:{marginTop:`${h}px`,width:`${x}px`,height:`${x}px`},"data-testid":"design-system-li-bullet-container",children:/*#__PURE__*/i("svg",{width:x,height:x,viewBox:`0 0 ${x} ${x}`,fill:"none",xmlns:"http://www.w3.org/2000/svg","data-testid":"design-system-li-bullet",children:/*#__PURE__*/i("circle",{cx:x/2,cy:x/2,r:a,fill:"currentColor"})})})};export{s as BulletIcon,n as default,o as typographyStyles};
|
|
34
|
+
*/export{l as Bullet,i as default};
|