@ap-gen/ui 1.0.3 → 1.0.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/dist/components/breadcrumb/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/esm/index.mjs +1 -1
- package/esm/index.mjs.map +1 -1
- package/package.json +1 -1
package/esm/index.mjs
CHANGED
|
@@ -1179,7 +1179,7 @@ var _path;function _extends(){return _extends=Object.assign?Object.assign.bind()
|
|
|
1179
1179
|
|
|
1180
1180
|
const ICONS={add,person,addPhotoAlternate,airconditioner,airplane,alarm_fill,alarm,computer,alignCenter,alignLeft,alignRight,apartment_fill,apartment,apparel_fill,apparel,ar_fill,ar,colorize,aroundView,arrowDown,arrowDownward,arrowLeft,arrowRight,arrowUp,arrowUpward,arrowBackIos,arrowForwardIos,back,backup,bank_fill,bank,barcode,birthday_fill,birthday,bluetooth,bookmark_fill,bookmark,box_fill,box,bracketDown,bracketLeft,bracketRight,bracketUp,brush_fill,brush,bubble_fill,bubble,building_fill,building,bulb_fill,bulb,bus_fill,bus,calculator_fill,calculator,calendar_fill,calendar,calendarCheck_fill,calendarCheck,calendarClock_fill,calendarClock,call_fill,call,callMiss_fill,callMiss,camera_fill,camera,cameraRotate_fill,cameraRotate,car_fill,car,card_fill,card,cardAdd_fill,cardAdd,cardRemove_fill,cardRemove,cart_fill,cart,cash_fill,cash,cashDouble_fill,cashDouble,change,chart,chartArea,check,formatBold,formatItalic,formatAlignLeft,formatAlignCenter,formatAlignRight,superscript,subscript,formatUnderlined,formatListBulleted,formatListNumbered,church_fill,church,chevronRight,circleAdd_fill,circleAdd,circleCharge_fill,circleCharge,circleCheck_fill,circleCheck,circleClose_fill,circleClose,circleCompare_fill,circleCompare,publish,circleDown_fill,circleDown,circleDownload_fill,circleDownload,circleDropDown_fill,circleDropDown,circleInfo_fill,circleInfo,circleLeft_fill,circleLeft,circleMore_fill,circleMore,circleNotice_fill,circleNotice,circleNotification_fill,circleNotification,circlePause_fill,circlePause,circlePlay_fill,circlePlay,circleQuestion_fill,circleQuestion,circleRefresh_fill,circleRefresh,circleRemove_fill,circleRemove,circleRight_fill,circleRight,circleStop_fill,circleStop,circleUp_fill,circleUp,clock_fill,clock,close,cloud_fill,cloud,cloudy_fill,cloudy,coffee_fill,coffee,coin_fill,coin,color_fill,color,compare_fill,compare,construction_fill,construction,contactless_fill,contactless,copy_fill,copy,crop,cropLandscape_fill,cropLandscape,cropPortrait_fill,cropPortrait,cropSquare_fill,cropSquare,cuolumn_fill,cuolumn,darkmode_fill,darkmode,data,database_fill,database,decrease,discount,discover_fill,discover,document_fill,document: document$1,door_fill,door,download,dropDown,dropUp,draft,dragIndicator,error,effects,eraser_fill,eraser,exclamationMark,expand,expandMore,eyeOff_fill,eyeOff,eyeOn_fill,eyeOn,faceBad_fill,faceBad,faceDissatisfied_fill,faceDissatisfied,faceHappy_fill,faceHappy,faceId_fill,faceId,faceNeutral_fill,faceNeutral,faceSmile_fill,faceSmile,fastfood_fill,fastfood,favorite_fill,favorite,feed_fill,feed,feedStack_fill,feedStack,field_fill,field,file_fill,file,fileAdd_fill,fileAdd,fileDownload_fill,fileDownload,fileEmpty_fill,fileEmpty,fileScan_fill,fileScan,fileSearch_fill,fileSearch,filter,filterList,fingerSlideHorizontal_fill,fingerSlideHorizontal,fire_fill,fire,flag_fill,flag,flashAuto_fill,flashAuto,flashOff_fill,flashOff,flashOn_fill,flashOn,flat,folder_fill,folder,folderOpen_fill,folderOpen,front,game_fill,game,gavel,gift,global: global$1,globalFind,gps,graph,grid_fill,grid,group_fill,group,handle,hashtag,headset_fill,headset,heart_fill,heart,history,hospital_fill,hospital,house_fill,house,houseAdd_fill,houseAdd,houseChange_fill,houseChange,houseHand_fill,houseHand,houseMoney_fill,houseMoney,houses_fill,houses,illuminance,image_fill,image,imageAdd_fill,imageAdd,increase,internet,key_fill,key,keyboard_fill,keyboard,koreaAnalyze,lab_fill,lab,leaf_fill,leaf,line,lineStack,location_fill,location,locationOff_fill,locationOff,lock_fill,lock,login,logout,mail_fill,mail,map_fill,map,marker_fill,marker,markerAdd_fill,markerAdd,markerCheck_fill,markerCheck,markerRemove_fill,markerRemove,markerWarn_fill,markerWarn,market_fill,market,measure_fill,measure,menu,message_fill,message,messageDot_fill,messageDot,messageEmpty_fill,messageEmpty,moon_fill,moon,moreHorizotal,moreVertical,music,navigation_fill,navigation,network_fill,network,networkFind_fill,networkFind,networkOff_fill,networkOff,news_fill,news,notes_fill,notes,notification_fill,notification,notificationBadge_fill,notificationBadge,notificationOff_fill,notificationOff,notificationRing_fill,notificationRing,open,openLink,panorama_fill,panorama,parking,pause_fill,pause,people_fill,people,pet_fill,pet,phone_fill,phone,phoneCheck_fill,phoneCheck,phoneWarn_fill,phoneWarn,pill_fill,pill,pinchOut_fill,pinchOut,place_fill,place,placeholder,play_fill,play,point_fill,point,profile_fill,profile,protect_fill,protect,puzzle_fill,puzzle,qr,questionMark,raining_fill,raining,ratateLeft,receipt_fill,receipt,record_fill,record,redo,reduction,refresh,remove,repair_fill,repair,reply,restraunt,rocket_fill,rocket,rotateRight,saving_fill,saving,school_fill,school,search,send_fill,send,server_fill,server,settings_fill,settings,share,sharelink,shield_fill,shield,shieldCheck_fill,shieldCheck,shieldLock_fill,shieldLock,ship_fill,switchIcon,ship,snow,snowing_fill,snowing,sofa_fill,sofa,spanner_fill,spanner,speed_fill,speed,starFull,starHalf,stop_fill,stop,stream_fill,stream,streaming_fill,streaming,subway_fill,subway,subwayStation,sun_fill,sun,support_fill,support,tag_fill,tag,taxi_fill,taxi,temperature,thumbDown_fill,thumbDown,thumbUp_fill,thumbUp,thunder_fill,thunder,ticket_fill,ticket,timer_fill,timer,touch_fill,touch,translate,transportation_fill,transportation,trashcan_fill,trashcan,tree_fill,tree,trend_fill,trend,trophy_fill,trophy,truck_fill,truck,undo,unlimit,unlock_fill,unlock,user_fill,user,userFind_fill,userFind,userInvite_fill,userInvite,userProtect_fill,userProtect,userSetting_fill,userSetting,userVerified_fill,userVerified,verified_fill,verified,video_fill,video,visibilityOff,visibility,voice_fill,voice,voiceOff_fill,voiceOff,voiceRecord,volumeHigh_fill,volumeHigh,volumeLow_fill,volumeLow,volumeMute_fill,volumeMute,vote_fill,vote,walk,wallet_fill,wallet,warning_fill,warning,water_fill,water,wifi,wind,write_fill,write};function Icon({name,fill,stroke,size=24,...props}){const theme=useTheme();if(!name){throw new Error("name은 필수입니당")}if(!ICONS[name]){throw new Error("존재하지 않는 아이콘 이름입니다.")}const IconComp=ICONS[name];const realFill=fill?fill.startsWith("#")||fill==="transparent"?fill:getNestedValue(theme.colors,fill):fill;const realStroke=stroke?stroke.startsWith("#")||stroke==="transparent"?stroke:getNestedValue(theme.colors,stroke):stroke;return /*#__PURE__*/React__default.createElement(IconComp,{fill:realFill,stroke:realStroke,width:size,height:size,viewBox:`0 0 24 24`,...props})}
|
|
1181
1181
|
|
|
1182
|
-
function Breadcrumb({items,onClick}){return /*#__PURE__*/jsx(Wrapper$q,{children:items.map((item,index)=>{const isCurrent=index===items.length-1;return /*#__PURE__*/jsxs(React__default.Fragment,{children:[index>0&&/*#__PURE__*/jsx(Icon,{name:"chevronRight",size:16,fill:"color.foreground.neutral.quarternary"}),/*#__PURE__*/jsx(Item$4,{onClick:onClick,children:/*#__PURE__*/jsx(Text,{variant:"BodyM",color:isCurrent?"color.foreground.neutral.primary":"color.foreground.neutral.tertiary",children:item.label})},index)]},index)})})}const Wrapper$q=styled.div`
|
|
1182
|
+
function Breadcrumb({items,onClick}){return /*#__PURE__*/jsx(Wrapper$q,{children:items.map((item,index)=>{const isCurrent=index===items.length-1;return /*#__PURE__*/jsxs(React__default.Fragment,{children:[index>0&&/*#__PURE__*/jsx(Icon,{name:"chevronRight",size:16,fill:"color.foreground.neutral.quarternary"}),/*#__PURE__*/jsx(Item$4,{onClick:()=>onClick(item.path),children:/*#__PURE__*/jsx(Text,{variant:"BodyM",color:isCurrent?"color.foreground.neutral.primary":"color.foreground.neutral.tertiary",children:item.label})},index)]},index)})})}const Wrapper$q=styled.div`
|
|
1183
1183
|
display: inline-flex;
|
|
1184
1184
|
padding: 0px 2px;
|
|
1185
1185
|
justify-content: center;
|