@wishket/design-system 1.17.3 → 1.17.4
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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use client";import{jsxs as t,jsx as e}from"react/jsx-runtime";import{twJoin as o}from"tailwind-merge";import{List as i}from"../List/List.js";import{useDropdown as
|
|
1
|
+
"use client";import{jsxs as t,jsx as e}from"react/jsx-runtime";import{twJoin as o}from"tailwind-merge";import{List as i}from"../List/List.js";import{useDropdown as s}from"../../../hooks/useDropdown.js";import{TextButton as n}from"./TextButtonDropdown.parts.js";
|
|
2
2
|
/**
|
|
3
3
|
* 텍스트 버튼 형태의 드롭다운 컴포넌트입니다.
|
|
4
4
|
*
|
|
@@ -27,6 +27,6 @@
|
|
|
27
27
|
* disabled={item.length === 0}
|
|
28
28
|
* />
|
|
29
29
|
* );
|
|
30
|
-
*/const l=({items:l,selectedItem:d,onItemClick:a,alignRight:r=!1,disabled:m=!1})=>{const{isListOpen:c,ref:u,focusedIndex:p,handleItemClick:f,toggleListOpen:x,handleKeyDown:g}=
|
|
31
|
-
return t("div",{"data-testid":"design-system-text-button-dropdown",className:"relative flex w-fit flex-col gap-1
|
|
32
|
-
/*#__PURE__*/e(
|
|
30
|
+
*/const l=({items:l,selectedItem:d,onItemClick:a,alignRight:r=!1,disabled:m=!1})=>{const{isListOpen:c,ref:u,focusedIndex:p,handleItemClick:f,toggleListOpen:x,handleKeyDown:g}=s({items:l,onItemClick:a});/*#__PURE__*/
|
|
31
|
+
return t("div",{"data-testid":"design-system-text-button-dropdown",className:"outline-hidden relative flex w-fit flex-col gap-1",ref:u,onKeyDown:g,tabIndex:0,children:[
|
|
32
|
+
/*#__PURE__*/e(n,{disabled:m,value:d.value,"data-testid":"design-system-text-button-dropdown--textButton",isListOpen:c,onClick:x}),c&&/*#__PURE__*/e("div",{className:o("absolute -bottom-2 z-40 translate-y-full transform transition-all",r?"right-0":"left-0 "),"data-testid":"design-system-text-button-dropdown--list",children:/*#__PURE__*/e(i.Root,{className:"max-h-full min-w-40 overflow-y-visible",children:l.map(((t,o)=>/*#__PURE__*/e(i.Item,{text:t.value,leadingIcon:t.leadingIcon,onClick:()=>f(t),selected:t.key===(null==d?void 0:d.key),isFocused:o===p},t.key)))})})]})};export{l as TextButtonDropdown};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{jsxs as e,jsx as t}from"react/jsx-runtime";import{twMerge as r,twJoin as
|
|
2
|
-
return e("button",i(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},
|
|
3
|
-
/*#__PURE__*/t(
|
|
4
|
-
/*#__PURE__*/t("span",{className:
|
|
1
|
+
import{jsxs as e,jsx as t}from"react/jsx-runtime";import{twMerge as r,twJoin as o}from"tailwind-merge";import"../../DataDisplays/Avatar/Avatar.js";import{Typography as n}from"../../Base/Typography/Typography.js";import"../../Base/Layouts/Box/Box.js";import"../../Base/Layouts/FullBleed/FullBleed.js";import"react";import{SystemIcon as a}from"../../DataDisplays/SystemIcon/SystemIcon.js";import"../../DataDisplays/SystemIcon/SystemIcon.constants.js";import"../../DataDisplays/Accordion/Accordion.js";function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}function c(e,t){if(null==e)return{};var r,o,n=function(e,t){if(null==e)return{};var r,o,n={},a=Object.keys(e);for(o=0;o<a.length;o++)r=a[o],t.indexOf(r)>=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}const l=l=>{var{value:p,isListOpen:y,disabled:u,className:m}=l,b=c(l,["value","isListOpen","disabled","className"]);/*#__PURE__*/
|
|
2
|
+
return e("button",i(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),o.forEach((function(t){s(e,t,r[t])}))}return e}({type:"button",className:r("outline-hidden flex items-center gap-2",u?"cursor-not-allowed":"cursor-pointer",m),disabled:u},b),{children:[
|
|
3
|
+
/*#__PURE__*/t(n,{variant:"body16",className:r("text-w-gray-600",u&&"text-w-gray-300"),children:p}),
|
|
4
|
+
/*#__PURE__*/t("span",{className:o("transition-transform duration-300",y&&"rotate-180"),children:/*#__PURE__*/t(a,{name:"medium_arrow_down",className:r("text-w-gray-600",u&&"text-w-gray-300")})})]}))};export{l as TextButton};
|
|
@@ -5,13 +5,12 @@ export interface TextFieldProps extends ComponentPropsWithoutRef<'input'> {
|
|
|
5
5
|
variant?: variant;
|
|
6
6
|
label?: string;
|
|
7
7
|
isError?: boolean;
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
leadingIcon?: MediumSystemIconName;
|
|
9
|
+
trailingIcon?: MediumSystemIconName;
|
|
10
10
|
supportMessage?: string;
|
|
11
11
|
measure?: string;
|
|
12
12
|
errorMessage?: string;
|
|
13
13
|
testId?: string;
|
|
14
|
-
isMaxLengthVisible?: boolean;
|
|
15
14
|
}
|
|
16
15
|
/**
|
|
17
16
|
* 사용자 입력을 받을 수 있는 텍스트 필드 컴포넌트입니다.
|
|
@@ -21,13 +20,12 @@ export interface TextFieldProps extends ComponentPropsWithoutRef<'input'> {
|
|
|
21
20
|
* @param {'default' | 'label'} [props.variant='default'] - 텍스트 필드의 변형 타입
|
|
22
21
|
* @param {string} [props.label] - 입력 필드의 라벨
|
|
23
22
|
* @param {boolean} [props.isError] - 오류 상태 표시 여부
|
|
24
|
-
* @param {MediumSystemIconName} [props.
|
|
25
|
-
* @param {MediumSystemIconName} [props.
|
|
23
|
+
* @param {MediumSystemIconName} [props.leadingIcon] - 시작 부분에 표시될 아이콘
|
|
24
|
+
* @param {MediumSystemIconName} [props.trailingIcon] - 끝 부분에 표시될 아이콘
|
|
26
25
|
* @param {string} [props.supportMessage] - 도움말 메시지
|
|
27
26
|
* @param {string} [props.measure] - 측정 단위
|
|
28
27
|
* @param {string} [props.errorMessage] - 오류 메시지
|
|
29
28
|
* @param {string} [props.testId] - 테스트용 ID
|
|
30
|
-
* @param {boolean} [props.isMaxLengthVisible=false] - 최대 길이 표시 여부
|
|
31
29
|
*
|
|
32
30
|
* @example
|
|
33
31
|
* // 기본 텍스트 필드
|
|
@@ -41,7 +39,7 @@ export interface TextFieldProps extends ComponentPropsWithoutRef<'input'> {
|
|
|
41
39
|
* variant="label"
|
|
42
40
|
* label="이름"
|
|
43
41
|
* placeholder="홍길동"
|
|
44
|
-
*
|
|
42
|
+
* leadingIcon="user"
|
|
45
43
|
* supportMessage="실명을 입력해주세요"
|
|
46
44
|
* />
|
|
47
45
|
*
|
|
@@ -51,7 +49,6 @@ export interface TextFieldProps extends ComponentPropsWithoutRef<'input'> {
|
|
|
51
49
|
* isError={true}
|
|
52
50
|
* errorMessage="필수 입력 항목입니다"
|
|
53
51
|
* maxLength={50}
|
|
54
|
-
* isMaxLengthVisible={true}
|
|
55
52
|
* />
|
|
56
53
|
*/
|
|
57
54
|
declare const TextField: import("react").ForwardRefExoticComponent<TextFieldProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use client";import{jsxs as e,jsx as r}from"react/jsx-runtime";import{forwardRef as t,useState as n,useEffect as o}from"react";import{twMerge as a}from"tailwind-merge";import{TextFieldContainer as
|
|
1
|
+
"use client";import{jsxs as e,jsx as r}from"react/jsx-runtime";import{forwardRef as t,useState as n,useEffect as o}from"react";import{twMerge as a}from"tailwind-merge";import{TextFieldContainer as l}from"../TextFieldContainer/TextFieldContainer.js";import{SupportTextContainer as i}from"../SupportTextContainer/SupportTextContainer.js";import"../Input/Input.js";import"../Input/PasswordInput.js";import{LabelInput as s}from"../Input/LabelInput.js";import{InputTypeSelector as c}from"../Input/InputTypeSelector.js";function u(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function p(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){u(e,r,t[r])}))}return e}function f(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 m(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}
|
|
2
2
|
/**
|
|
3
3
|
* 사용자 입력을 받을 수 있는 텍스트 필드 컴포넌트입니다.
|
|
4
4
|
*
|
|
@@ -7,13 +7,12 @@
|
|
|
7
7
|
* @param {'default' | 'label'} [props.variant='default'] - 텍스트 필드의 변형 타입
|
|
8
8
|
* @param {string} [props.label] - 입력 필드의 라벨
|
|
9
9
|
* @param {boolean} [props.isError] - 오류 상태 표시 여부
|
|
10
|
-
* @param {MediumSystemIconName} [props.
|
|
11
|
-
* @param {MediumSystemIconName} [props.
|
|
10
|
+
* @param {MediumSystemIconName} [props.leadingIcon] - 시작 부분에 표시될 아이콘
|
|
11
|
+
* @param {MediumSystemIconName} [props.trailingIcon] - 끝 부분에 표시될 아이콘
|
|
12
12
|
* @param {string} [props.supportMessage] - 도움말 메시지
|
|
13
13
|
* @param {string} [props.measure] - 측정 단위
|
|
14
14
|
* @param {string} [props.errorMessage] - 오류 메시지
|
|
15
15
|
* @param {string} [props.testId] - 테스트용 ID
|
|
16
|
-
* @param {boolean} [props.isMaxLengthVisible=false] - 최대 길이 표시 여부
|
|
17
16
|
*
|
|
18
17
|
* @example
|
|
19
18
|
* // 기본 텍스트 필드
|
|
@@ -27,7 +26,7 @@
|
|
|
27
26
|
* variant="label"
|
|
28
27
|
* label="이름"
|
|
29
28
|
* placeholder="홍길동"
|
|
30
|
-
*
|
|
29
|
+
* leadingIcon="user"
|
|
31
30
|
* supportMessage="실명을 입력해주세요"
|
|
32
31
|
* />
|
|
33
32
|
*
|
|
@@ -37,7 +36,6 @@
|
|
|
37
36
|
* isError={true}
|
|
38
37
|
* errorMessage="필수 입력 항목입니다"
|
|
39
38
|
* maxLength={50}
|
|
40
|
-
* isMaxLengthVisible={true}
|
|
41
39
|
* />
|
|
42
|
-
*/(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
|
|
43
|
-
/*#__PURE__*/r("label",{role:"input-box",className:j?"cursor-not-allowed":"cursor-text",children:/*#__PURE__*/e(
|
|
40
|
+
*/(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 b=/*#__PURE__*/t(((t,u)=>{var{type:b,name:d,value:g,onChange:y,maxLength:O,disabled:j=!1,placeholder:h,label:x,testId:I,measure:v,isError:w,trailingIcon:P,leadingIcon:S,errorMessage:C,supportMessage:E,variant:F="default",className:L,onBlur:M}=t,T=m(t,["type","name","value","onChange","maxLength","disabled","placeholder","label","testId","measure","isError","trailingIcon","leadingIcon","errorMessage","supportMessage","variant","className","onBlur"]);const[D,N]=n(!1),[k,B]=n(0),q=p({variant:F,type:b,name:d,value:g,placeholder:h,label:x,maxLength:O,onChange:y,isFocused:D,isError:w,onFocus:()=>{N(!0)},disabled:j,onBlur:e=>{N(!1),M&&M(e)}},T),z=w||E||O;return o((()=>{"string"==typeof g&&O&&B(g.length)}),[g,O]),/*#__PURE__*/e("div",{className:a("tracking-default flex w-full select-none flex-col gap-2",L),"data-testid":I,children:[
|
|
41
|
+
/*#__PURE__*/r("label",{role:"input-box",className:j?"cursor-not-allowed":"cursor-text",children:/*#__PURE__*/e(l,{leadingIcon:S,trailingIcon:P,measure:v,isFocused:D,isError:w,isDisabled:j,children:["label"===F&&/*#__PURE__*/r(s,f(p({isFixed:!!h},q),{ref:u})),"default"===F&&/*#__PURE__*/r(c,f(p({},q),{ref:u}))]})}),z&&/*#__PURE__*/r(i,{errorMessage:C,supportMessage:E,currentLength:k,maxLength:O})]})}));b.displayName="TextField";export{b as TextField};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as e,jsx as r}from"react/jsx-runtime";import{twMerge as t}from"tailwind-merge";import{Typography as
|
|
1
|
+
import{jsxs as e,jsx as r}from"react/jsx-runtime";import{twMerge as t}from"tailwind-merge";import{Typography as a}from"../../Base/Typography/Typography.js";import{Box as i}from"../../Base/Layouts/Box/Box.js";import"../../Base/Layouts/FullBleed/FullBleed.js";import"../../DataDisplays/Avatar/Avatar.js";import"react";import{SystemIcon as s}from"../../DataDisplays/SystemIcon/SystemIcon.js";import"../../DataDisplays/SystemIcon/SystemIcon.constants.js";import"../../DataDisplays/Accordion/Accordion.js";const o=({children:o,className:n,leadingIcon:l,trailingIcon:d,isLeadingIconSolid:m,isTrailingIconSolid:c,measure:y,isFocused:p,isDisabled:g,isError:x,onClick:w,isTextarea:f,isAutoComplete:u,testId:h})=>/*#__PURE__*/e(i,{className:t("group flex w-full items-center gap-3 overflow-hidden rounded-xl border px-4 py-[11px]",g?"border-w-gray-200":x?"border-w-red-500":p?"border-primary":"border-w-gray-200 hover:border-primary",g?"bg-w-gray-10":"bg-w-white",g&&"cursor-not-allowed",f&&"relative p-0",u&&"flex-wrap",n),"data-testid":h||"design-system--text-field-container",onClick:w,children:[l&&/*#__PURE__*/r(s,{name:l,solid:m,className:t("shrink-0 text-w-gray-600",g&&"text-w-gray-300"),testId:"design-system--text-field-container-leading-icon"}),o,y&&/*#__PURE__*/r(a,{variant:"body16",className:t("w-fit shrink-0 text-w-gray-400",g&&"text-w-gray-300"),children:y}),d&&/*#__PURE__*/r(s,{name:d,solid:c,className:t("shrink-0 text-w-gray-600",g&&"text-w-gray-300"),testId:"design-system--text-field-container-trailing-icon"})]});export{o as TextFieldContainer};
|
|
@@ -30,6 +30,6 @@
|
|
|
30
30
|
* supportMessage="추가 설명이 필요한 경우 이곳에 표시됩니다"
|
|
31
31
|
* />
|
|
32
32
|
* ```
|
|
33
|
-
*/const n=({selectedItem:n,items:a,onItemClick:d,placeholder:p,disabled:m,isError:c,errorMessage:u,supportMessage:x,className:f})=>{const{isListOpen:g,focusedIndex:I,ref:
|
|
34
|
-
return e("div",{"data-testid":"design-system--textFieldDropdown",ref:
|
|
35
|
-
/*#__PURE__*/o(r,{placeholder:p,value:null==n?void 0:n.value,leadingIcon:null==n?void 0:n.leadingIcon,disabled:m,isListOpen:g,onClick:v,error:c,className:f}),y&&/*#__PURE__*/o(t,{errorMessage:u,supportMessage:x}),g&&/*#__PURE__*/o(s,{className:"absolute top-[54px] z-40 w-full",children:/*#__PURE__*/o(l.Root,{children:a.map(((e,s)=>/*#__PURE__*/o(l.Item,{text:e.value,leadingIcon:e.leadingIcon,onClick:()=>
|
|
33
|
+
*/const n=({selectedItem:n,items:a,onItemClick:d,placeholder:p,disabled:m,isError:c,errorMessage:u,supportMessage:x,className:f})=>{const{isListOpen:g,focusedIndex:I,ref:h,handleItemClick:k,toggleListOpen:v,handleKeyDown:w}=i({items:a,onItemClick:d,disabled:m}),y=!!x||!!u;/*#__PURE__*/
|
|
34
|
+
return e("div",{"data-testid":"design-system--textFieldDropdown",ref:h,className:"outline-hidden relative flex w-full flex-col gap-2",onKeyDown:w,tabIndex:0,children:[
|
|
35
|
+
/*#__PURE__*/o(r,{placeholder:p,value:null==n?void 0:n.value,leadingIcon:null==n?void 0:n.leadingIcon,disabled:m,isListOpen:g,onClick:v,error:c,className:f}),y&&/*#__PURE__*/o(t,{errorMessage:u,supportMessage:x}),g&&/*#__PURE__*/o(s,{className:"absolute top-[54px] z-40 w-full",children:/*#__PURE__*/o(l.Root,{children:a.map(((e,s)=>/*#__PURE__*/o(l.Item,{text:e.value,leadingIcon:e.leadingIcon,onClick:()=>k(e),selected:e.key===(null==n?void 0:n.key),isFocused:s===I},e.key)))})})]})};export{n as TextFieldDropdown};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{jsxs as t,jsx as e}from"react/jsx-runtime";import{twJoin as s}from"tailwind-merge";import"
|
|
2
|
-
/*#__PURE__*/e(
|
|
3
|
-
/*#__PURE__*/e("div",{className:s("transition-transform duration-300",l&&"rotate-180"),children:/*#__PURE__*/e(
|
|
1
|
+
import{jsxs as t,jsx as e}from"react/jsx-runtime";import{twJoin as s}from"tailwind-merge";import"../../DataDisplays/Avatar/Avatar.js";import{Typography as a}from"../../Base/Typography/Typography.js";import"../../Base/Layouts/Box/Box.js";import"../../Base/Layouts/FullBleed/FullBleed.js";import"react";import{SystemIcon as r}from"../../DataDisplays/SystemIcon/SystemIcon.js";import"../../DataDisplays/SystemIcon/SystemIcon.constants.js";import"../../DataDisplays/Accordion/Accordion.js";import{TextFieldContainer as o}from"../TextFieldContainer/TextFieldContainer.js";const i=({placeholder:i,value:m="",isListOpen:l,disabled:n=!1,error:c,onClick:d,className:y})=>/*#__PURE__*/t(o,{isDisabled:n,isFocused:l,isError:c,testId:"design-system--selectBox",onClick:d,className:y,children:[
|
|
2
|
+
/*#__PURE__*/e(a,{"data-testid":"design-system--selectBox-text",variant:"body16",className:s(n&&m?"text-w-gray-300":n&&!m?"text-w-gray-200":m?"text-w-gray-600":"text-w-gray-300","w-full"),children:m||i}),
|
|
3
|
+
/*#__PURE__*/e("div",{className:s("transition-transform duration-300",l&&"rotate-180"),children:/*#__PURE__*/e(r,{name:"medium_arrow_down",className:n?"text-w-gray-300":"text-w-gray-600",testId:"design-system--selectBox-icon"})})]});export{i as SelectBox};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use client";import{jsxs as e,jsx as t}from"react/jsx-runtime";import{useState as r}from"react";import{twMerge as n,twJoin as o}from"tailwind-merge";import{Box as
|
|
1
|
+
"use client";import{jsxs as e,jsx as t}from"react/jsx-runtime";import{useState as r}from"react";import{twMerge as n,twJoin as o}from"tailwind-merge";import{Box as a}from"../../Base/Layouts/Box/Box.js";import"../../Base/Layouts/FullBleed/FullBleed.js";import"../../DataDisplays/Avatar/Avatar.js";import{SystemIcon as l}from"../../DataDisplays/SystemIcon/SystemIcon.js";import"../../DataDisplays/SystemIcon/SystemIcon.constants.js";import"../../DataDisplays/Accordion/Accordion.js";import{TextFieldContainer as i}from"../TextFieldContainer/TextFieldContainer.js";import{SupportTextContainer as s}from"../SupportTextContainer/SupportTextContainer.js";function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){m(e,t,r[t])}))}return e}function c(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}
|
|
2
2
|
/**
|
|
3
3
|
* 사용자가 여러 줄의 텍스트를 입력할 수 있는 textarea 컴포넌트입니다.
|
|
4
4
|
*
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
* />
|
|
42
42
|
* </div>
|
|
43
43
|
* ```
|
|
44
|
-
*/(e,t);if(Object.getOwnPropertySymbols){var
|
|
45
|
-
return e(
|
|
46
|
-
/*#__PURE__*/e(i,{isDisabled:j,isError:p,isFocused:
|
|
47
|
-
/*#__PURE__*/t("textarea",
|
|
44
|
+
*/(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)&&(o[r]=e[r])}return o}const p=m=>{var{isError:p=!1,size:f="md",resize:d=!1,isLengthVisible:g=!1,supportText:x,errorText:y,maxLength:h,value:b,disabled:j,name:O,onChange:v,onBlur:w}=m,S=c(m,["isError","size","resize","isLengthVisible","supportText","errorText","maxLength","value","disabled","name","onChange","onBlur"]);const[D,z]=r(!1),B=p||x||g;/*#__PURE__*/
|
|
45
|
+
return e(a,{"data-testid":"design-system-textarea",className:n("flex w-full flex-col gap-2","full"===f?"h-full":"h-fit"),children:[
|
|
46
|
+
/*#__PURE__*/e(i,{isDisabled:j,isError:p,isFocused:D,isTextarea:!0,className:o("full"===f&&"h-full"),children:[
|
|
47
|
+
/*#__PURE__*/t("textarea",u({"data-testid":"design-system-textarea--textarea",className:n("outline-hidden scrollbar-list tracking-default placeholder:tracking-default w-full overflow-y-scroll py-[11px] pl-4 font-[inherit] font-normal text-w-gray-600 placeholder:font-[inherit] placeholder:text-w-gray-300","sm"===f?"min-h-[118px]":"md"===f?"min-h-[238px]":"lg"===f?"min-h-[358px]":"full"===f?"min-h-full":void 0,d?"resize-y":"resize-none",j&&"resize-none"),name:O,value:b,disabled:j,onChange:v,maxLength:h,onFocus:e=>{z(!0)},onBlur:e=>{z(!1),w&&w(e)}},S)),d&&/*#__PURE__*/t(l,{name:"small_resizer",className:"absolute bottom-[5px] right-[5px] text-w-gray-400",testId:"design-system-textarea--resize-icon"})]}),B&&/*#__PURE__*/t(s,{errorMessage:y,supportMessage:x,currentLength:(null==b?void 0:b.toString().length)||0,maxLength:h})]})};export{p as Textarea};
|
|
@@ -13,6 +13,7 @@ export * from './Radio';
|
|
|
13
13
|
export * from './RadioCard';
|
|
14
14
|
export * from './RadioList';
|
|
15
15
|
export * from './RadioGroup';
|
|
16
|
+
export * from './RadioListItem';
|
|
16
17
|
export * from './SearchField';
|
|
17
18
|
export * from './SegmentedControl';
|
|
18
19
|
export * from './Switch';
|
|
@@ -31,3 +32,4 @@ export * from './FilterList';
|
|
|
31
32
|
export * from './Input';
|
|
32
33
|
export * from './SupportTextContainer';
|
|
33
34
|
export * from './TextFieldContainer';
|
|
35
|
+
export * from './FileUploader';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, PropsWithChildren } from 'react';
|
|
2
|
+
import { BoxProps } from '../../Base/Layouts/Box/Box';
|
|
3
|
+
/**
|
|
4
|
+
* 카드 레이아웃 컴포넌트입니다.
|
|
5
|
+
*
|
|
6
|
+
* @component
|
|
7
|
+
*
|
|
8
|
+
* @description
|
|
9
|
+
* 그림자와 둥근 모서리를 가진 카드 컨테이너입니다.
|
|
10
|
+
* Header, Content, Footer 서브 컴포넌트를 조합하여 사용할 수 있습니다.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```tsx
|
|
14
|
+
* // 기본 사용
|
|
15
|
+
* <Card>
|
|
16
|
+
* <Card.Header>
|
|
17
|
+
* <Typography variant="title48">제목</Typography>
|
|
18
|
+
* </Card.Header>
|
|
19
|
+
* <Card.Content>
|
|
20
|
+
* <Typography>내용</Typography>
|
|
21
|
+
* </Card.Content>
|
|
22
|
+
* <Card.Footer>
|
|
23
|
+
* <Button>확인</Button>
|
|
24
|
+
* </Card.Footer>
|
|
25
|
+
* </Card>
|
|
26
|
+
|
|
27
|
+
*
|
|
28
|
+
* // Content만 사용
|
|
29
|
+
* <Card>
|
|
30
|
+
* <Card.Content>
|
|
31
|
+
* <Typography>내용만</Typography>
|
|
32
|
+
* </Card.Content>
|
|
33
|
+
* </Card>
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
declare const Card: {
|
|
37
|
+
({ children, ...rest }: PropsWithChildren<ComponentPropsWithoutRef<"section">>): import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
Header: ({ children, ...rest }: PropsWithChildren<ComponentPropsWithoutRef<"header">>) => import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
Content: ({ className, children, ...rest }: BoxProps) => import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
Footer: ({ children, ...rest }: PropsWithChildren<ComponentPropsWithoutRef<"footer">>) => import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
};
|
|
42
|
+
export { Card };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Card } from './Card';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
interface FieldsetProps extends ComponentProps<'fieldset'> {
|
|
3
|
+
legend: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
isRequired?: boolean;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Form 요소들을 그룹화하는 Fieldset 컴포넌트입니다.
|
|
9
|
+
* HTML `<fieldset>` 요소를 기반으로 접근성을 고려하여 구현되었습니다.
|
|
10
|
+
*
|
|
11
|
+
* @component
|
|
12
|
+
* @param {Object} props
|
|
13
|
+
* @param {string} props.legend - Fieldset의 제목 (필수)
|
|
14
|
+
* @param {string} [props.description] - Fieldset에 대한 부가 설명
|
|
15
|
+
* @param {boolean} [props.isRequired=false] - 필수 입력 여부 표시 (legend 옆에 * 표시)
|
|
16
|
+
* @param {React.ReactNode} props.children - Fieldset 내부에 들어갈 form 요소들
|
|
17
|
+
* @param {string} [props.className] - 추가적인 CSS 클래스
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* // 기본 사용
|
|
21
|
+
* <Fieldset legend="개인정보">
|
|
22
|
+
* <TextField label="이름" />
|
|
23
|
+
* <TextField label="이메일" />
|
|
24
|
+
* </Fieldset>
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* // 필수 표시 및 설명 추가
|
|
28
|
+
* <Fieldset
|
|
29
|
+
* legend="필수 정보"
|
|
30
|
+
* isRequired
|
|
31
|
+
* description="아래 항목은 필수로 입력해야 합니다."
|
|
32
|
+
* >
|
|
33
|
+
* <CheckboxListItem label="이용약관 동의" />
|
|
34
|
+
* <CheckboxListItem label="개인정보 처리방침 동의" />
|
|
35
|
+
* </Fieldset>
|
|
36
|
+
*/
|
|
37
|
+
declare const Fieldset: ({ legend, description, isRequired, children, className, ...props }: FieldsetProps) => import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
export { Fieldset };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Fieldset } from './Fieldset';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3
3
|
}),[t]),/*#__PURE__*/e(y.Provider,{value:{activeTab:i,currentActiveTab:t,handleTabClick:e=>{e!==i&&(null==n||n(e),a(e))}},children:r})},h=({children:r,className:t})=>{const c=n.toArray(r);/*#__PURE__*/
|
|
4
4
|
return e(d,{className:s("relative block w-full",t),"data-testid":"design-system-boxTab--container",children:/*#__PURE__*/e(d,{children:/*#__PURE__*/e(d,{className:l("inline-flex w-full"),children:c.map(((r,t)=>{const n=/*#__PURE__*/i(r,{isFirst:0===t,isLast:t===c.length-1});/*#__PURE__*/
|
|
5
|
-
return e(a,{children:n},t)}))})})})},g=({children:t,index:n,className:i,isFirst:a,isLast:c,disabled:o=!1,href:s})=>{const{handleTabClick:u,activeTab:f}=r(y),h=n===f,g={tabIndex:0,"data-testid":`design-system-boxTab--item-${n}`,className:l("group flex w-full cursor-pointer items-center border border-w-gray-200 bg-w-white px-6 py-4 hover:bg-w-gray-10","relative","-ml-px",h&&"z-[1] border-primary bg-primary-10 hover:bg-primary-10",a&&"ml-0 rounded-l-xl",c&&"rounded-r-xl",i),onClick:()=>{!o&&u(n)}},O=/*#__PURE__*/e(d,{className:l("relative flex w-full flex-row items-center justify-center font-normal text-w-gray-600",h&&"font-medium text-primary"),children:/*#__PURE__*/e(b,{variant:"
|
|
5
|
+
return e(a,{children:n},t)}))})})})},g=({children:t,index:n,className:i,isFirst:a,isLast:c,disabled:o=!1,href:s})=>{const{handleTabClick:u,activeTab:f}=r(y),h=n===f,g={tabIndex:0,"data-testid":`design-system-boxTab--item-${n}`,className:l("group flex w-full cursor-pointer items-center border border-w-gray-200 bg-w-white px-6 py-4 hover:bg-w-gray-10","relative","-ml-px",h&&"z-[1] border-primary bg-primary-10 hover:bg-primary-10",a&&"ml-0 rounded-l-xl",c&&"rounded-r-xl",i),onClick:()=>{!o&&u(n)}},O=/*#__PURE__*/e(d,{className:l("relative flex w-full flex-row items-center justify-center font-normal text-w-gray-600",h&&"font-medium text-primary"),children:/*#__PURE__*/e(b,{variant:"body16",className:"relative",children:t})});return s?/*#__PURE__*/e("a",p(m({href:s},g),{children:O})):/*#__PURE__*/e(d,p(m({},g),{children:O}))},O=({children:t,index:n})=>{const{activeTab:i}=r(y);return i===n&&/*#__PURE__*/e(d,{"data-testid":"design-system-boxTab--content",children:t})};
|
|
6
6
|
/**
|
|
7
7
|
* BoxTab의 최상위 컴포넌트입니다.
|
|
8
8
|
* 탭의 상태를 관리하고 하위 컴포넌트에 Context를 제공합니다.
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
|
|
3
|
-
isOpen: boolean;
|
|
4
|
-
onClose: () => void;
|
|
5
|
-
direction?: 'left' | 'right' | 'top' | 'bottom';
|
|
6
|
-
size?: 'full' | 'half' | 'third' | 'quarter';
|
|
7
|
-
className?: string;
|
|
8
|
-
}
|
|
2
|
+
import { DrawerProps } from './Drawer.types';
|
|
9
3
|
/**
|
|
10
4
|
* 화면의 가장자리에서 슬라이딩되어 나타나는 서랍형 컴포넌트입니다.
|
|
11
5
|
*
|
|
@@ -35,3 +29,4 @@ export interface DrawerProps {
|
|
|
35
29
|
*/
|
|
36
30
|
declare const Drawer: ({ isOpen, onClose, direction, size, className, children, }: PropsWithChildren<DrawerProps>) => import("react/jsx-runtime").JSX.Element;
|
|
37
31
|
export { Drawer };
|
|
32
|
+
export type { DrawerProps } from './Drawer.types';
|
|
@@ -1,56 +1,56 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* GNB(Global Navigation Bar) 리스트 컴포넌트
|
|
3
|
+
*
|
|
4
|
+
* @description
|
|
5
|
+
* 드롭다운 형태의 GNB 메뉴 리스트를 제공합니다.
|
|
6
|
+
* - 사용자 정보 포함/미포함 두 가지 형태
|
|
7
|
+
*
|
|
3
8
|
* @module GNBList
|
|
4
|
-
* @property {Component} Root -
|
|
5
|
-
* @property {Component} UserInfo - 사용자 정보
|
|
6
|
-
* @property {Component} List - 메뉴
|
|
7
|
-
* @property {Component} SubList - 서브 메뉴
|
|
8
|
-
* @property {Component} Item - 메뉴 아이템
|
|
9
|
+
* @property {Component} Root - 메뉴 컨테이너
|
|
10
|
+
* @property {Component} UserInfo - 사용자 정보 영역
|
|
11
|
+
* @property {Component} List - 메인 메뉴 그룹
|
|
12
|
+
* @property {Component} SubList - 서브 메뉴 그룹
|
|
13
|
+
* @property {Component} Item - 메뉴 아이템
|
|
9
14
|
*
|
|
10
15
|
* @example
|
|
11
16
|
* // 기본 메뉴 리스트
|
|
12
|
-
* <GNBList.Root
|
|
17
|
+
* <GNBList.Root>
|
|
13
18
|
* <GNBList.List>
|
|
14
|
-
* <GNBList.Item
|
|
15
|
-
* <GNBList.Item
|
|
19
|
+
* <GNBList.Item href="/projects">프로젝트</GNBList.Item>
|
|
20
|
+
* <GNBList.Item href="/request">의뢰하기</GNBList.Item>
|
|
21
|
+
* <GNBList.Item href="/support" hasNew>고객센터</GNBList.Item>
|
|
16
22
|
* </GNBList.List>
|
|
23
|
+
* <GNBList.SubList>
|
|
24
|
+
* <GNBList.Item href="/settings">설정</GNBList.Item>
|
|
25
|
+
* </GNBList.SubList>
|
|
17
26
|
* </GNBList.Root>
|
|
18
27
|
*
|
|
19
28
|
* @example
|
|
20
|
-
* // 사용자
|
|
21
|
-
* <GNBList.Root
|
|
29
|
+
* // 사용자 정보 포함 메뉴
|
|
30
|
+
* <GNBList.Root withUserInfo>
|
|
22
31
|
* <GNBList.UserInfo
|
|
23
|
-
*
|
|
24
|
-
* email="
|
|
32
|
+
* username="홍길동"
|
|
33
|
+
* email="hong@example.com"
|
|
25
34
|
* imgUrl="/profile.jpg"
|
|
35
|
+
* onClick={() => handleProfileEdit()}
|
|
26
36
|
* >
|
|
27
|
-
* <Button>프로필 수정</Button>
|
|
37
|
+
* <Button size="sm">프로필 수정</Button>
|
|
38
|
+
* <Button size="sm" variant="outlined">내 프로젝트</Button>
|
|
28
39
|
* </GNBList.UserInfo>
|
|
29
40
|
* <GNBList.List>
|
|
30
|
-
* <GNBList.Item>계정 설정</GNBList.Item>
|
|
31
|
-
* <GNBList.Item
|
|
41
|
+
* <GNBList.Item href="/account">계정 설정</GNBList.Item>
|
|
42
|
+
* <GNBList.Item href="/notifications" hasNew>알림</GNBList.Item>
|
|
32
43
|
* </GNBList.List>
|
|
33
44
|
* <GNBList.SubList>
|
|
34
|
-
* <GNBList.Item>로그아웃</GNBList.Item>
|
|
45
|
+
* <GNBList.Item href="/logout">로그아웃</GNBList.Item>
|
|
35
46
|
* </GNBList.SubList>
|
|
36
47
|
* </GNBList.Root>
|
|
37
|
-
*
|
|
38
|
-
* @example
|
|
39
|
-
* // 선택 상태가 있는 메뉴 리스트
|
|
40
|
-
* <GNBList.Root type="main">
|
|
41
|
-
* <GNBList.List>
|
|
42
|
-
* <GNBList.Item isSelected>현재 메뉴</GNBList.Item>
|
|
43
|
-
* <GNBList.Item onClick={() => handleNavigation('/other')}>
|
|
44
|
-
* 다른 메뉴
|
|
45
|
-
* </GNBList.Item>
|
|
46
|
-
* </GNBList.List>
|
|
47
|
-
* </GNBList.Root>
|
|
48
48
|
*/
|
|
49
49
|
declare const GNBList: {
|
|
50
|
-
Root: ({
|
|
51
|
-
UserInfo: ({ imgUrl,
|
|
50
|
+
Root: ({ withUserInfo, children, className, }: import("./GNBList.types").GNBListRootProps) => import("react/jsx-runtime").JSX.Element;
|
|
51
|
+
UserInfo: ({ imgUrl, username, email, children, onClick, }: import("./GNBList.types").UserInfoProps) => import("react/jsx-runtime").JSX.Element;
|
|
52
52
|
List: ({ children }: import("react").PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
53
53
|
SubList: ({ children }: import("react").PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
54
|
-
Item: ({ hasNew, children, className, textClassName, ...rest }: import("./GNBList.types").GNBListItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
54
|
+
Item: ({ hasNew, children, className, textClassName, href, ...rest }: import("./GNBList.types").GNBListItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
55
55
|
};
|
|
56
56
|
export { GNBList };
|
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
"use client";import{Item as t,SubList as s,List as o,UserInfo as e,Root as i}from"./GNBList.parts.js";
|
|
2
2
|
/**
|
|
3
3
|
* GNB(Global Navigation Bar) 리스트 컴포넌트
|
|
4
|
+
*
|
|
5
|
+
* @description
|
|
6
|
+
* 드롭다운 형태의 GNB 메뉴 리스트를 제공합니다.
|
|
7
|
+
* - 사용자 정보 포함/미포함 두 가지 형태
|
|
8
|
+
*
|
|
4
9
|
* @module GNBList
|
|
5
|
-
* @property {Component} Root -
|
|
6
|
-
* @property {Component} UserInfo - 사용자 정보
|
|
7
|
-
* @property {Component} List - 메뉴
|
|
8
|
-
* @property {Component} SubList - 서브 메뉴
|
|
9
|
-
* @property {Component} Item - 메뉴 아이템
|
|
10
|
+
* @property {Component} Root - 메뉴 컨테이너
|
|
11
|
+
* @property {Component} UserInfo - 사용자 정보 영역
|
|
12
|
+
* @property {Component} List - 메인 메뉴 그룹
|
|
13
|
+
* @property {Component} SubList - 서브 메뉴 그룹
|
|
14
|
+
* @property {Component} Item - 메뉴 아이템
|
|
10
15
|
*
|
|
11
16
|
* @example
|
|
12
17
|
* // 기본 메뉴 리스트
|
|
13
|
-
* <GNBList.Root
|
|
18
|
+
* <GNBList.Root>
|
|
14
19
|
* <GNBList.List>
|
|
15
|
-
* <GNBList.Item
|
|
16
|
-
* <GNBList.Item
|
|
20
|
+
* <GNBList.Item href="/projects">프로젝트</GNBList.Item>
|
|
21
|
+
* <GNBList.Item href="/request">의뢰하기</GNBList.Item>
|
|
22
|
+
* <GNBList.Item href="/support" hasNew>고객센터</GNBList.Item>
|
|
17
23
|
* </GNBList.List>
|
|
24
|
+
* <GNBList.SubList>
|
|
25
|
+
* <GNBList.Item href="/settings">설정</GNBList.Item>
|
|
26
|
+
* </GNBList.SubList>
|
|
18
27
|
* </GNBList.Root>
|
|
19
28
|
*
|
|
20
29
|
* @example
|
|
21
|
-
* // 사용자
|
|
22
|
-
* <GNBList.Root
|
|
30
|
+
* // 사용자 정보 포함 메뉴
|
|
31
|
+
* <GNBList.Root withUserInfo>
|
|
23
32
|
* <GNBList.UserInfo
|
|
24
|
-
*
|
|
25
|
-
* email="
|
|
33
|
+
* username="홍길동"
|
|
34
|
+
* email="hong@example.com"
|
|
26
35
|
* imgUrl="/profile.jpg"
|
|
36
|
+
* onClick={() => handleProfileEdit()}
|
|
27
37
|
* >
|
|
28
|
-
* <Button>프로필 수정</Button>
|
|
38
|
+
* <Button size="sm">프로필 수정</Button>
|
|
39
|
+
* <Button size="sm" variant="outlined">내 프로젝트</Button>
|
|
29
40
|
* </GNBList.UserInfo>
|
|
30
41
|
* <GNBList.List>
|
|
31
|
-
* <GNBList.Item>계정 설정</GNBList.Item>
|
|
32
|
-
* <GNBList.Item
|
|
42
|
+
* <GNBList.Item href="/account">계정 설정</GNBList.Item>
|
|
43
|
+
* <GNBList.Item href="/notifications" hasNew>알림</GNBList.Item>
|
|
33
44
|
* </GNBList.List>
|
|
34
45
|
* <GNBList.SubList>
|
|
35
|
-
* <GNBList.Item>로그아웃</GNBList.Item>
|
|
46
|
+
* <GNBList.Item href="/logout">로그아웃</GNBList.Item>
|
|
36
47
|
* </GNBList.SubList>
|
|
37
48
|
* </GNBList.Root>
|
|
38
|
-
*
|
|
39
|
-
* @example
|
|
40
|
-
* // 선택 상태가 있는 메뉴 리스트
|
|
41
|
-
* <GNBList.Root type="main">
|
|
42
|
-
* <GNBList.List>
|
|
43
|
-
* <GNBList.Item isSelected>현재 메뉴</GNBList.Item>
|
|
44
|
-
* <GNBList.Item onClick={() => handleNavigation('/other')}>
|
|
45
|
-
* 다른 메뉴
|
|
46
|
-
* </GNBList.Item>
|
|
47
|
-
* </GNBList.List>
|
|
48
|
-
* </GNBList.Root>
|
|
49
49
|
*/const r={Root:i,UserInfo:e,List:o,SubList:s,Item:t};export{r as GNBList};
|