@remember-web/primitive 0.0.0-alpha.1 → 0.0.0-alpha.10
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/primitive/src/Avatars/Avatar/index.cjs +3 -3
- package/dist/primitive/src/Avatars/Avatar/index.cjs.map +1 -1
- package/dist/primitive/src/Avatars/Avatar/index.d.ts +1 -1
- package/dist/primitive/src/Avatars/Avatar/index.d.ts.map +1 -1
- package/dist/primitive/src/Avatars/Avatar/{index.js → index.mjs} +4 -4
- package/dist/primitive/src/Avatars/Avatar/index.mjs.map +1 -0
- package/dist/primitive/src/Avatars/Avatar/styles.cjs +4 -1
- package/dist/primitive/src/Avatars/Avatar/styles.cjs.map +1 -1
- package/dist/primitive/src/Avatars/Avatar/{styles.js → styles.mjs} +5 -2
- package/dist/primitive/src/Avatars/Avatar/styles.mjs.map +1 -0
- package/dist/primitive/src/Badge/{Badge.js → Badge.mjs} +3 -3
- package/dist/primitive/src/Badge/Badge.mjs.map +1 -0
- package/dist/primitive/src/Badge/style.cjs +6 -7
- package/dist/primitive/src/Badge/style.cjs.map +1 -1
- package/dist/primitive/src/Badge/style.mjs +29 -0
- package/dist/primitive/src/Badge/style.mjs.map +1 -0
- package/dist/primitive/src/Badge/{utils.js → utils.mjs} +2 -2
- package/dist/primitive/src/Badge/utils.mjs.map +1 -0
- package/dist/primitive/src/Buttons/Button/Button.stories.d.ts +1 -1
- package/dist/primitive/src/Buttons/Button/{const.js → const.mjs} +1 -1
- package/dist/primitive/src/Buttons/Button/const.mjs.map +1 -0
- package/dist/primitive/src/Buttons/Button/{index.js → index.mjs} +8 -8
- package/dist/primitive/src/Buttons/Button/index.mjs.map +1 -0
- package/dist/primitive/src/Buttons/Button/styles.cjs +7 -7
- package/dist/primitive/src/Buttons/Button/styles.cjs.map +1 -1
- package/dist/primitive/src/Buttons/Button/styles.mjs +26 -0
- package/dist/primitive/src/Buttons/Button/styles.mjs.map +1 -0
- package/dist/primitive/src/Common/Divider/index.cjs +4 -4
- package/dist/primitive/src/Common/Divider/index.cjs.map +1 -1
- package/dist/primitive/src/Common/Divider/{index.js → index.mjs} +5 -4
- package/dist/primitive/src/Common/Divider/index.mjs.map +1 -0
- package/dist/primitive/src/Common/Flex/index.cjs +5 -5
- package/dist/primitive/src/Common/Flex/index.cjs.map +1 -1
- package/dist/primitive/src/Common/Flex/{index.js → index.mjs} +6 -5
- package/dist/primitive/src/Common/Flex/index.mjs.map +1 -0
- package/dist/primitive/src/Common/Grid/index.cjs +4 -4
- package/dist/primitive/src/Common/Grid/index.cjs.map +1 -1
- package/dist/primitive/src/Common/Grid/{index.js → index.mjs} +5 -4
- package/dist/primitive/src/Common/Grid/index.mjs.map +1 -0
- package/dist/primitive/src/Common/Spinner/{index.js → index.mjs} +2 -2
- package/dist/primitive/src/Common/Spinner/index.mjs.map +1 -0
- package/dist/primitive/src/Common/Spinner/styles.cjs +6 -6
- package/dist/primitive/src/Common/Spinner/styles.cjs.map +1 -1
- package/dist/primitive/src/Common/Spinner/styles.mjs +15 -0
- package/dist/primitive/src/Common/Spinner/styles.mjs.map +1 -0
- package/dist/primitive/src/Common/Typography/{index.js → index.mjs} +2 -2
- package/dist/primitive/src/Common/Typography/index.mjs.map +1 -0
- package/dist/primitive/src/Common/Typography/styles.cjs +4 -4
- package/dist/primitive/src/Common/Typography/styles.cjs.map +1 -1
- package/dist/primitive/src/Common/Typography/{styles.js → styles.mjs} +5 -4
- package/dist/primitive/src/Common/Typography/styles.mjs.map +1 -0
- package/dist/primitive/src/Control/BaseToggle/ToggleIcon/{index.js → index.mjs} +1 -1
- package/dist/primitive/src/Control/BaseToggle/ToggleIcon/index.mjs.map +1 -0
- package/dist/primitive/src/Control/BaseToggle/{index.js → index.mjs} +8 -8
- package/dist/primitive/src/Control/BaseToggle/index.mjs.map +1 -0
- package/dist/primitive/src/Control/BaseToggle/styles.cjs +8 -5
- package/dist/primitive/src/Control/BaseToggle/styles.cjs.map +1 -1
- package/dist/primitive/src/Control/BaseToggle/styles.mjs +18 -0
- package/dist/primitive/src/Control/BaseToggle/styles.mjs.map +1 -0
- package/dist/primitive/src/Control/{Checkbox.js → Checkbox.mjs} +2 -2
- package/dist/primitive/src/Control/Checkbox.mjs.map +1 -0
- package/dist/primitive/src/Control/{Radio.js → Radio.mjs} +2 -2
- package/dist/primitive/src/Control/Radio.mjs.map +1 -0
- package/dist/primitive/src/Control/Switch/{index.js → index.mjs} +2 -2
- package/dist/primitive/src/Control/Switch/index.mjs.map +1 -0
- package/dist/primitive/src/Control/Switch/styles.cjs +14 -8
- package/dist/primitive/src/Control/Switch/styles.cjs.map +1 -1
- package/dist/primitive/src/Control/Switch/styles.mjs +26 -0
- package/dist/primitive/src/Control/Switch/styles.mjs.map +1 -0
- package/dist/primitive/src/Control/Toggle.cjs +4 -4
- package/dist/primitive/src/Control/Toggle.cjs.map +1 -1
- package/dist/primitive/src/Control/{Toggle.js → Toggle.mjs} +6 -5
- package/dist/primitive/src/Control/Toggle.mjs.map +1 -0
- package/dist/primitive/src/Floating/DropdownMenu/{DropdownMenuSection.js → DropdownMenuSection.mjs} +2 -2
- package/dist/primitive/src/Floating/DropdownMenu/DropdownMenuSection.mjs.map +1 -0
- package/dist/primitive/src/Floating/DropdownMenu/{index.js → index.mjs} +4 -4
- package/dist/primitive/src/Floating/DropdownMenu/index.mjs.map +1 -0
- package/dist/primitive/src/Floating/DropdownMenu/styles.cjs +19 -10
- package/dist/primitive/src/Floating/DropdownMenu/styles.cjs.map +1 -1
- package/dist/primitive/src/Floating/DropdownMenu/{styles.js → styles.mjs} +21 -11
- package/dist/primitive/src/Floating/DropdownMenu/styles.mjs.map +1 -0
- package/dist/primitive/src/Floating/Popover/{index.js → index.mjs} +2 -2
- package/dist/primitive/src/Floating/Popover/index.mjs.map +1 -0
- package/dist/primitive/src/Floating/Popover/styles.cjs +6 -6
- package/dist/primitive/src/Floating/Popover/styles.cjs.map +1 -1
- package/dist/primitive/src/Floating/Popover/styles.mjs +19 -0
- package/dist/primitive/src/Floating/Popover/styles.mjs.map +1 -0
- package/dist/primitive/src/Floating/Tooltip/{index.js → index.mjs} +4 -4
- package/dist/primitive/src/Floating/Tooltip/index.mjs.map +1 -0
- package/dist/primitive/src/Floating/Tooltip/styles.cjs +14 -8
- package/dist/primitive/src/Floating/Tooltip/styles.cjs.map +1 -1
- package/dist/primitive/src/Floating/Tooltip/styles.mjs +39 -0
- package/dist/primitive/src/Floating/Tooltip/styles.mjs.map +1 -0
- package/dist/primitive/src/Floating/Tooltip/{types.js → types.mjs} +1 -1
- package/dist/primitive/src/Floating/Tooltip/types.mjs.map +1 -0
- package/dist/primitive/src/Inputs/Select/DesignedSelect/{const.js → const.mjs} +1 -1
- package/dist/primitive/src/Inputs/Select/DesignedSelect/const.mjs.map +1 -0
- package/dist/primitive/src/Inputs/Select/DesignedSelect/{index.js → index.mjs} +7 -7
- package/dist/primitive/src/Inputs/Select/DesignedSelect/index.mjs.map +1 -0
- package/dist/primitive/src/Inputs/Select/DesignedSelect/styles.cjs +24 -15
- package/dist/primitive/src/Inputs/Select/DesignedSelect/styles.cjs.map +1 -1
- package/dist/primitive/src/Inputs/Select/DesignedSelect/styles.mjs +49 -0
- package/dist/primitive/src/Inputs/Select/DesignedSelect/styles.mjs.map +1 -0
- package/dist/primitive/src/Inputs/Select/NativeSelect/Option/{index.js → index.mjs} +1 -1
- package/dist/primitive/src/Inputs/Select/NativeSelect/Option/index.mjs.map +1 -0
- package/dist/primitive/src/Inputs/Select/NativeSelect/{index.js → index.mjs} +3 -3
- package/dist/primitive/src/Inputs/Select/NativeSelect/index.mjs.map +1 -0
- package/dist/primitive/src/Inputs/Select/NativeSelect/styles.cjs +9 -6
- package/dist/primitive/src/Inputs/Select/NativeSelect/styles.cjs.map +1 -1
- package/dist/primitive/src/Inputs/Select/NativeSelect/styles.mjs +27 -0
- package/dist/primitive/src/Inputs/Select/NativeSelect/styles.mjs.map +1 -0
- package/dist/primitive/src/Inputs/Select/Option/{index.js → index.mjs} +1 -1
- package/dist/primitive/src/Inputs/Select/Option/index.mjs.map +1 -0
- package/dist/primitive/src/Inputs/Select/{index.js → index.mjs} +6 -6
- package/dist/primitive/src/Inputs/Select/index.mjs.map +1 -0
- package/dist/primitive/src/Inputs/Select/styles.cjs +8 -5
- package/dist/primitive/src/Inputs/Select/styles.cjs.map +1 -1
- package/dist/primitive/src/Inputs/Select/styles.mjs +24 -0
- package/dist/primitive/src/Inputs/Select/styles.mjs.map +1 -0
- package/dist/primitive/src/Inputs/Select/{utils.js → utils.mjs} +1 -1
- package/dist/primitive/src/Inputs/Select/utils.mjs.map +1 -0
- package/dist/primitive/src/Inputs/TextInput/TextInput.stories.d.ts +1 -1
- package/dist/primitive/src/Inputs/TextInput/{index.js → index.mjs} +2 -2
- package/dist/primitive/src/Inputs/TextInput/index.mjs.map +1 -0
- package/dist/primitive/src/Inputs/TextInput/styles.cjs +34 -13
- package/dist/primitive/src/Inputs/TextInput/styles.cjs.map +1 -1
- package/dist/primitive/src/Inputs/TextInput/styles.mjs +50 -0
- package/dist/primitive/src/Inputs/TextInput/styles.mjs.map +1 -0
- package/dist/primitive/src/Logos/EnvLabel/{index.js → index.mjs} +1 -1
- package/dist/primitive/src/Logos/EnvLabel/index.mjs.map +1 -0
- package/dist/primitive/src/Logos/RememberLogo/{index.js → index.mjs} +2 -2
- package/dist/primitive/src/Logos/RememberLogo/index.mjs.map +1 -0
- package/dist/primitive/src/Logos/RememberMobileLogo/{index.js → index.mjs} +1 -1
- package/dist/primitive/src/Logos/RememberMobileLogo/index.mjs.map +1 -0
- package/dist/primitive/src/Logos/RememberServiceLogo/{index.js → index.mjs} +8 -8
- package/dist/primitive/src/Logos/RememberServiceLogo/index.mjs.map +1 -0
- package/dist/primitive/src/Logos/RememberServiceLogo/style.cjs +4 -4
- package/dist/primitive/src/Logos/RememberServiceLogo/style.cjs.map +1 -1
- package/dist/primitive/src/Logos/RememberServiceLogo/style.mjs +10 -0
- package/dist/primitive/src/Logos/RememberServiceLogo/style.mjs.map +1 -0
- package/dist/primitive/src/Logos/RememberSquareLogo/{index.js → index.mjs} +1 -1
- package/dist/primitive/src/Logos/RememberSquareLogo/index.mjs.map +1 -0
- package/dist/primitive/src/Modals/Dialog/{index.js → index.mjs} +3 -3
- package/dist/primitive/src/Modals/Dialog/index.mjs.map +1 -0
- package/dist/primitive/src/Modals/Dialog/styles.cjs +26 -11
- package/dist/primitive/src/Modals/Dialog/styles.cjs.map +1 -1
- package/dist/primitive/src/Modals/Dialog/styles.mjs +34 -0
- package/dist/primitive/src/Modals/Dialog/styles.mjs.map +1 -0
- package/dist/primitive/src/Paginations/CompactPagination/{index.js → index.mjs} +4 -4
- package/dist/primitive/src/Paginations/CompactPagination/index.mjs.map +1 -0
- package/dist/primitive/src/Paginations/Pagination/{index.js → index.mjs} +4 -4
- package/dist/primitive/src/Paginations/Pagination/index.mjs.map +1 -0
- package/dist/primitive/src/Paginations/styles.cjs +37 -13
- package/dist/primitive/src/Paginations/styles.cjs.map +1 -1
- package/dist/primitive/src/Paginations/styles.mjs +48 -0
- package/dist/primitive/src/Paginations/styles.mjs.map +1 -0
- package/dist/primitive/src/Paginations/{usePagination.js → usePagination.mjs} +1 -1
- package/dist/primitive/src/Paginations/usePagination.mjs.map +1 -0
- package/dist/primitive/src/hooks/{useMouseEventAway.js → useMouseEventAway.mjs} +1 -1
- package/dist/primitive/src/hooks/useMouseEventAway.mjs.map +1 -0
- package/dist/primitive/src/index.cjs +0 -18
- package/dist/primitive/src/index.cjs.map +1 -1
- package/dist/primitive/src/index.d.ts +0 -1
- package/dist/primitive/src/index.d.ts.map +1 -1
- package/dist/primitive/src/index.mjs +26 -0
- package/dist/primitive/src/index.mjs.map +1 -0
- package/dist/shared/utils/{common.js → common.mjs} +1 -1
- package/dist/shared/utils/common.mjs.map +1 -0
- package/dist/shared/utils/{style.js → style.mjs} +1 -1
- package/dist/shared/utils/style.mjs.map +1 -0
- package/package.json +8 -7
- package/src/Avatars/Avatar/index.tsx +2 -2
- package/src/index.ts +0 -1
- package/dist/primitive/src/Avatars/Avatar/index.js.map +0 -1
- package/dist/primitive/src/Avatars/Avatar/styles.js.map +0 -1
- package/dist/primitive/src/Badge/Badge.js.map +0 -1
- package/dist/primitive/src/Badge/style.js +0 -29
- package/dist/primitive/src/Badge/style.js.map +0 -1
- package/dist/primitive/src/Badge/utils.js.map +0 -1
- package/dist/primitive/src/Buttons/Button/const.js.map +0 -1
- package/dist/primitive/src/Buttons/Button/index.js.map +0 -1
- package/dist/primitive/src/Buttons/Button/styles.js +0 -25
- package/dist/primitive/src/Buttons/Button/styles.js.map +0 -1
- package/dist/primitive/src/Common/Divider/index.js.map +0 -1
- package/dist/primitive/src/Common/Flex/index.js.map +0 -1
- package/dist/primitive/src/Common/Grid/index.js.map +0 -1
- package/dist/primitive/src/Common/Spinner/index.js.map +0 -1
- package/dist/primitive/src/Common/Spinner/styles.js +0 -14
- package/dist/primitive/src/Common/Spinner/styles.js.map +0 -1
- package/dist/primitive/src/Common/Typography/index.js.map +0 -1
- package/dist/primitive/src/Common/Typography/styles.js.map +0 -1
- package/dist/primitive/src/Control/BaseToggle/ToggleIcon/index.js.map +0 -1
- package/dist/primitive/src/Control/BaseToggle/index.js.map +0 -1
- package/dist/primitive/src/Control/BaseToggle/styles.js +0 -14
- package/dist/primitive/src/Control/BaseToggle/styles.js.map +0 -1
- package/dist/primitive/src/Control/Checkbox.js.map +0 -1
- package/dist/primitive/src/Control/Radio.js.map +0 -1
- package/dist/primitive/src/Control/Switch/index.js.map +0 -1
- package/dist/primitive/src/Control/Switch/styles.js +0 -19
- package/dist/primitive/src/Control/Switch/styles.js.map +0 -1
- package/dist/primitive/src/Control/Toggle.js.map +0 -1
- package/dist/primitive/src/Floating/DropdownMenu/DropdownMenuSection.js.map +0 -1
- package/dist/primitive/src/Floating/DropdownMenu/index.js.map +0 -1
- package/dist/primitive/src/Floating/DropdownMenu/styles.js.map +0 -1
- package/dist/primitive/src/Floating/Popover/index.js.map +0 -1
- package/dist/primitive/src/Floating/Popover/styles.js +0 -18
- package/dist/primitive/src/Floating/Popover/styles.js.map +0 -1
- package/dist/primitive/src/Floating/Tooltip/index.js.map +0 -1
- package/dist/primitive/src/Floating/Tooltip/styles.js +0 -32
- package/dist/primitive/src/Floating/Tooltip/styles.js.map +0 -1
- package/dist/primitive/src/Floating/Tooltip/types.js.map +0 -1
- package/dist/primitive/src/Gnb/GnbComplete.stories.d.ts +0 -47
- package/dist/primitive/src/Gnb/GnbComplete.stories.d.ts.map +0 -1
- package/dist/primitive/src/Gnb/const.cjs +0 -23
- package/dist/primitive/src/Gnb/const.cjs.map +0 -1
- package/dist/primitive/src/Gnb/const.d.ts +0 -13
- package/dist/primitive/src/Gnb/const.d.ts.map +0 -1
- package/dist/primitive/src/Gnb/const.js +0 -21
- package/dist/primitive/src/Gnb/const.js.map +0 -1
- package/dist/primitive/src/Gnb/css.cjs +0 -24
- package/dist/primitive/src/Gnb/css.cjs.map +0 -1
- package/dist/primitive/src/Gnb/css.d.ts +0 -7
- package/dist/primitive/src/Gnb/css.d.ts.map +0 -1
- package/dist/primitive/src/Gnb/css.js +0 -14
- package/dist/primitive/src/Gnb/css.js.map +0 -1
- package/dist/primitive/src/Gnb/index.cjs +0 -63
- package/dist/primitive/src/Gnb/index.cjs.map +0 -1
- package/dist/primitive/src/Gnb/index.d.ts +0 -24
- package/dist/primitive/src/Gnb/index.d.ts.map +0 -1
- package/dist/primitive/src/Gnb/index.js +0 -47
- package/dist/primitive/src/Gnb/index.js.map +0 -1
- package/dist/primitive/src/Gnb/parts/GnbDropdownLinkItem/index.cjs +0 -41
- package/dist/primitive/src/Gnb/parts/GnbDropdownLinkItem/index.cjs.map +0 -1
- package/dist/primitive/src/Gnb/parts/GnbDropdownLinkItem/index.d.ts +0 -8
- package/dist/primitive/src/Gnb/parts/GnbDropdownLinkItem/index.d.ts.map +0 -1
- package/dist/primitive/src/Gnb/parts/GnbDropdownLinkItem/index.js +0 -31
- package/dist/primitive/src/Gnb/parts/GnbDropdownLinkItem/index.js.map +0 -1
- package/dist/primitive/src/Gnb/parts/GnbHamburgerMenu/GnbHamburger.stories.d.ts +0 -12
- package/dist/primitive/src/Gnb/parts/GnbHamburgerMenu/GnbHamburger.stories.d.ts.map +0 -1
- package/dist/primitive/src/Gnb/parts/GnbHamburgerMenu/index.cjs +0 -48
- package/dist/primitive/src/Gnb/parts/GnbHamburgerMenu/index.cjs.map +0 -1
- package/dist/primitive/src/Gnb/parts/GnbHamburgerMenu/index.d.ts +0 -34
- package/dist/primitive/src/Gnb/parts/GnbHamburgerMenu/index.d.ts.map +0 -1
- package/dist/primitive/src/Gnb/parts/GnbHamburgerMenu/index.js +0 -41
- package/dist/primitive/src/Gnb/parts/GnbHamburgerMenu/index.js.map +0 -1
- package/dist/primitive/src/Gnb/parts/GnbHamburgerMenu/parts/GnbHamburgerAccordion.cjs +0 -30
- package/dist/primitive/src/Gnb/parts/GnbHamburgerMenu/parts/GnbHamburgerAccordion.cjs.map +0 -1
- package/dist/primitive/src/Gnb/parts/GnbHamburgerMenu/parts/GnbHamburgerAccordion.d.ts +0 -7
- package/dist/primitive/src/Gnb/parts/GnbHamburgerMenu/parts/GnbHamburgerAccordion.d.ts.map +0 -1
- package/dist/primitive/src/Gnb/parts/GnbHamburgerMenu/parts/GnbHamburgerAccordion.js +0 -23
- package/dist/primitive/src/Gnb/parts/GnbHamburgerMenu/parts/GnbHamburgerAccordion.js.map +0 -1
- package/dist/primitive/src/Gnb/parts/GnbHamburgerMenu/style.cjs +0 -27
- package/dist/primitive/src/Gnb/parts/GnbHamburgerMenu/style.cjs.map +0 -1
- package/dist/primitive/src/Gnb/parts/GnbHamburgerMenu/style.d.ts +0 -18
- package/dist/primitive/src/Gnb/parts/GnbHamburgerMenu/style.d.ts.map +0 -1
- package/dist/primitive/src/Gnb/parts/GnbHamburgerMenu/style.js +0 -17
- package/dist/primitive/src/Gnb/parts/GnbHamburgerMenu/style.js.map +0 -1
- package/dist/primitive/src/Gnb/parts/GnbHoverSubNavi/GnbHoverSubNavi.stories.d.ts +0 -12
- package/dist/primitive/src/Gnb/parts/GnbHoverSubNavi/GnbHoverSubNavi.stories.d.ts.map +0 -1
- package/dist/primitive/src/Gnb/parts/GnbHoverSubNavi/index.cjs +0 -44
- package/dist/primitive/src/Gnb/parts/GnbHoverSubNavi/index.cjs.map +0 -1
- package/dist/primitive/src/Gnb/parts/GnbHoverSubNavi/index.d.ts +0 -23
- package/dist/primitive/src/Gnb/parts/GnbHoverSubNavi/index.d.ts.map +0 -1
- package/dist/primitive/src/Gnb/parts/GnbHoverSubNavi/index.js +0 -37
- package/dist/primitive/src/Gnb/parts/GnbHoverSubNavi/index.js.map +0 -1
- package/dist/primitive/src/Gnb/parts/GnbHoverSubNavi/style.cjs +0 -28
- package/dist/primitive/src/Gnb/parts/GnbHoverSubNavi/style.cjs.map +0 -1
- package/dist/primitive/src/Gnb/parts/GnbHoverSubNavi/style.d.ts +0 -9
- package/dist/primitive/src/Gnb/parts/GnbHoverSubNavi/style.d.ts.map +0 -1
- package/dist/primitive/src/Gnb/parts/GnbHoverSubNavi/style.js +0 -19
- package/dist/primitive/src/Gnb/parts/GnbHoverSubNavi/style.js.map +0 -1
- package/dist/primitive/src/Gnb/parts/GnbNotification/GnbNotification.stories.d.ts +0 -14
- package/dist/primitive/src/Gnb/parts/GnbNotification/GnbNotification.stories.d.ts.map +0 -1
- package/dist/primitive/src/Gnb/parts/GnbNotification/index.cjs +0 -57
- package/dist/primitive/src/Gnb/parts/GnbNotification/index.cjs.map +0 -1
- package/dist/primitive/src/Gnb/parts/GnbNotification/index.d.ts +0 -26
- package/dist/primitive/src/Gnb/parts/GnbNotification/index.d.ts.map +0 -1
- package/dist/primitive/src/Gnb/parts/GnbNotification/index.js +0 -50
- package/dist/primitive/src/Gnb/parts/GnbNotification/index.js.map +0 -1
- package/dist/primitive/src/Gnb/parts/GnbNotification/parts/NotificationItem.cjs +0 -51
- package/dist/primitive/src/Gnb/parts/GnbNotification/parts/NotificationItem.cjs.map +0 -1
- package/dist/primitive/src/Gnb/parts/GnbNotification/parts/NotificationItem.d.ts +0 -14
- package/dist/primitive/src/Gnb/parts/GnbNotification/parts/NotificationItem.d.ts.map +0 -1
- package/dist/primitive/src/Gnb/parts/GnbNotification/parts/NotificationItem.js +0 -44
- package/dist/primitive/src/Gnb/parts/GnbNotification/parts/NotificationItem.js.map +0 -1
- package/dist/primitive/src/Gnb/parts/GnbNotification/style.cjs +0 -49
- package/dist/primitive/src/Gnb/parts/GnbNotification/style.cjs.map +0 -1
- package/dist/primitive/src/Gnb/parts/GnbNotification/style.d.ts +0 -20
- package/dist/primitive/src/Gnb/parts/GnbNotification/style.d.ts.map +0 -1
- package/dist/primitive/src/Gnb/parts/GnbNotification/style.js +0 -32
- package/dist/primitive/src/Gnb/parts/GnbNotification/style.js.map +0 -1
- package/dist/primitive/src/Gnb/parts/GnbProfile/GnbProfile.stories.d.ts +0 -31
- package/dist/primitive/src/Gnb/parts/GnbProfile/GnbProfile.stories.d.ts.map +0 -1
- package/dist/primitive/src/Gnb/parts/GnbProfile/index.cjs +0 -64
- package/dist/primitive/src/Gnb/parts/GnbProfile/index.cjs.map +0 -1
- package/dist/primitive/src/Gnb/parts/GnbProfile/index.d.ts +0 -25
- package/dist/primitive/src/Gnb/parts/GnbProfile/index.d.ts.map +0 -1
- package/dist/primitive/src/Gnb/parts/GnbProfile/index.js +0 -55
- package/dist/primitive/src/Gnb/parts/GnbProfile/index.js.map +0 -1
- package/dist/primitive/src/Gnb/parts/GnbProfile/parts/BusinessUserShortInfo.cjs +0 -33
- package/dist/primitive/src/Gnb/parts/GnbProfile/parts/BusinessUserShortInfo.cjs.map +0 -1
- package/dist/primitive/src/Gnb/parts/GnbProfile/parts/BusinessUserShortInfo.d.ts +0 -4
- package/dist/primitive/src/Gnb/parts/GnbProfile/parts/BusinessUserShortInfo.d.ts.map +0 -1
- package/dist/primitive/src/Gnb/parts/GnbProfile/parts/BusinessUserShortInfo.js +0 -27
- package/dist/primitive/src/Gnb/parts/GnbProfile/parts/BusinessUserShortInfo.js.map +0 -1
- package/dist/primitive/src/Gnb/parts/GnbProfile/parts/MyInfo.cjs +0 -31
- package/dist/primitive/src/Gnb/parts/GnbProfile/parts/MyInfo.cjs.map +0 -1
- package/dist/primitive/src/Gnb/parts/GnbProfile/parts/MyInfo.d.ts +0 -10
- package/dist/primitive/src/Gnb/parts/GnbProfile/parts/MyInfo.d.ts.map +0 -1
- package/dist/primitive/src/Gnb/parts/GnbProfile/parts/MyInfo.js +0 -25
- package/dist/primitive/src/Gnb/parts/GnbProfile/parts/MyInfo.js.map +0 -1
- package/dist/primitive/src/Gnb/parts/GnbProfile/parts/MyPasses.cjs +0 -33
- package/dist/primitive/src/Gnb/parts/GnbProfile/parts/MyPasses.cjs.map +0 -1
- package/dist/primitive/src/Gnb/parts/GnbProfile/parts/MyPasses.d.ts +0 -8
- package/dist/primitive/src/Gnb/parts/GnbProfile/parts/MyPasses.d.ts.map +0 -1
- package/dist/primitive/src/Gnb/parts/GnbProfile/parts/MyPasses.js +0 -27
- package/dist/primitive/src/Gnb/parts/GnbProfile/parts/MyPasses.js.map +0 -1
- package/dist/primitive/src/Gnb/parts/GnbProfile/parts/MyPassesDetail.cjs +0 -32
- package/dist/primitive/src/Gnb/parts/GnbProfile/parts/MyPassesDetail.cjs.map +0 -1
- package/dist/primitive/src/Gnb/parts/GnbProfile/parts/MyPassesDetail.d.ts +0 -9
- package/dist/primitive/src/Gnb/parts/GnbProfile/parts/MyPassesDetail.d.ts.map +0 -1
- package/dist/primitive/src/Gnb/parts/GnbProfile/parts/MyPassesDetail.js +0 -25
- package/dist/primitive/src/Gnb/parts/GnbProfile/parts/MyPassesDetail.js.map +0 -1
- package/dist/primitive/src/Gnb/parts/GnbProfile/parts/UserShortInfo.cjs +0 -52
- package/dist/primitive/src/Gnb/parts/GnbProfile/parts/UserShortInfo.cjs.map +0 -1
- package/dist/primitive/src/Gnb/parts/GnbProfile/parts/UserShortInfo.d.ts +0 -7
- package/dist/primitive/src/Gnb/parts/GnbProfile/parts/UserShortInfo.d.ts.map +0 -1
- package/dist/primitive/src/Gnb/parts/GnbProfile/parts/UserShortInfo.js +0 -50
- package/dist/primitive/src/Gnb/parts/GnbProfile/parts/UserShortInfo.js.map +0 -1
- package/dist/primitive/src/Gnb/parts/GnbProfile/style.cjs +0 -43
- package/dist/primitive/src/Gnb/parts/GnbProfile/style.cjs.map +0 -1
- package/dist/primitive/src/Gnb/parts/GnbProfile/style.d.ts +0 -17
- package/dist/primitive/src/Gnb/parts/GnbProfile/style.d.ts.map +0 -1
- package/dist/primitive/src/Gnb/parts/GnbProfile/style.js +0 -26
- package/dist/primitive/src/Gnb/parts/GnbProfile/style.js.map +0 -1
- package/dist/primitive/src/Gnb/parts/GnbProfile/types.d.ts +0 -11
- package/dist/primitive/src/Gnb/parts/GnbProfile/types.d.ts.map +0 -1
- package/dist/primitive/src/Gnb/style.cjs +0 -44
- package/dist/primitive/src/Gnb/style.cjs.map +0 -1
- package/dist/primitive/src/Gnb/style.d.ts +0 -15
- package/dist/primitive/src/Gnb/style.d.ts.map +0 -1
- package/dist/primitive/src/Gnb/style.js +0 -26
- package/dist/primitive/src/Gnb/style.js.map +0 -1
- package/dist/primitive/src/Inputs/Select/DesignedSelect/const.js.map +0 -1
- package/dist/primitive/src/Inputs/Select/DesignedSelect/index.js.map +0 -1
- package/dist/primitive/src/Inputs/Select/DesignedSelect/styles.js +0 -39
- package/dist/primitive/src/Inputs/Select/DesignedSelect/styles.js.map +0 -1
- package/dist/primitive/src/Inputs/Select/NativeSelect/Option/index.js.map +0 -1
- package/dist/primitive/src/Inputs/Select/NativeSelect/index.js.map +0 -1
- package/dist/primitive/src/Inputs/Select/NativeSelect/styles.js +0 -23
- package/dist/primitive/src/Inputs/Select/NativeSelect/styles.js.map +0 -1
- package/dist/primitive/src/Inputs/Select/Option/index.js.map +0 -1
- package/dist/primitive/src/Inputs/Select/index.js.map +0 -1
- package/dist/primitive/src/Inputs/Select/styles.js +0 -20
- package/dist/primitive/src/Inputs/Select/styles.js.map +0 -1
- package/dist/primitive/src/Inputs/Select/utils.js.map +0 -1
- package/dist/primitive/src/Inputs/TextInput/index.js.map +0 -1
- package/dist/primitive/src/Inputs/TextInput/styles.js +0 -28
- package/dist/primitive/src/Inputs/TextInput/styles.js.map +0 -1
- package/dist/primitive/src/Logos/EnvLabel/index.js.map +0 -1
- package/dist/primitive/src/Logos/RememberLogo/index.js.map +0 -1
- package/dist/primitive/src/Logos/RememberMobileLogo/index.js.map +0 -1
- package/dist/primitive/src/Logos/RememberServiceLogo/index.js.map +0 -1
- package/dist/primitive/src/Logos/RememberServiceLogo/style.js +0 -9
- package/dist/primitive/src/Logos/RememberServiceLogo/style.js.map +0 -1
- package/dist/primitive/src/Logos/RememberSquareLogo/index.js.map +0 -1
- package/dist/primitive/src/Modals/Dialog/index.js.map +0 -1
- package/dist/primitive/src/Modals/Dialog/styles.js +0 -18
- package/dist/primitive/src/Modals/Dialog/styles.js.map +0 -1
- package/dist/primitive/src/Paginations/CompactPagination/index.js.map +0 -1
- package/dist/primitive/src/Paginations/Pagination/index.js.map +0 -1
- package/dist/primitive/src/Paginations/styles.js +0 -23
- package/dist/primitive/src/Paginations/styles.js.map +0 -1
- package/dist/primitive/src/Paginations/usePagination.js.map +0 -1
- package/dist/primitive/src/hooks/useMouseEventAway.js.map +0 -1
- package/dist/primitive/src/index.js +0 -33
- package/dist/primitive/src/index.js.map +0 -1
- package/dist/shared/utils/common.js.map +0 -1
- package/dist/shared/utils/style.js.map +0 -1
- package/src/Gnb/GnbComplete.stories.tsx +0 -758
- package/src/Gnb/const.ts +0 -22
- package/src/Gnb/css.tsx +0 -94
- package/src/Gnb/index.tsx +0 -70
- package/src/Gnb/parts/GnbDropdownLinkItem/index.tsx +0 -37
- package/src/Gnb/parts/GnbHamburgerMenu/GnbHamburger.stories.tsx +0 -90
- package/src/Gnb/parts/GnbHamburgerMenu/index.tsx +0 -48
- package/src/Gnb/parts/GnbHamburgerMenu/parts/GnbHamburgerAccordion.tsx +0 -20
- package/src/Gnb/parts/GnbHamburgerMenu/style.tsx +0 -99
- package/src/Gnb/parts/GnbHoverSubNavi/GnbHoverSubNavi.stories.tsx +0 -47
- package/src/Gnb/parts/GnbHoverSubNavi/index.tsx +0 -45
- package/src/Gnb/parts/GnbHoverSubNavi/style.tsx +0 -42
- package/src/Gnb/parts/GnbNotification/GnbNotification.stories.tsx +0 -234
- package/src/Gnb/parts/GnbNotification/index.tsx +0 -60
- package/src/Gnb/parts/GnbNotification/parts/NotificationItem.tsx +0 -63
- package/src/Gnb/parts/GnbNotification/style.tsx +0 -149
- package/src/Gnb/parts/GnbProfile/GnbProfile.stories.tsx +0 -156
- package/src/Gnb/parts/GnbProfile/index.tsx +0 -65
- package/src/Gnb/parts/GnbProfile/parts/BusinessUserShortInfo.tsx +0 -20
- package/src/Gnb/parts/GnbProfile/parts/MyInfo.tsx +0 -25
- package/src/Gnb/parts/GnbProfile/parts/MyPasses.tsx +0 -25
- package/src/Gnb/parts/GnbProfile/parts/MyPassesDetail.tsx +0 -26
- package/src/Gnb/parts/GnbProfile/parts/UserShortInfo.tsx +0 -45
- package/src/Gnb/parts/GnbProfile/style.ts +0 -117
- package/src/Gnb/parts/GnbProfile/types.ts +0 -12
- package/src/Gnb/style.tsx +0 -316
|
@@ -1,234 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
|
-
|
|
4
|
-
import { GnbNotification } from '@/Gnb';
|
|
5
|
-
|
|
6
|
-
const meta = {
|
|
7
|
-
parameters: { layout: 'fullscreen' },
|
|
8
|
-
title: 'Gnb/Gnb/notification',
|
|
9
|
-
} satisfies Meta<typeof GnbNotification>;
|
|
10
|
-
type Story = StoryObj<typeof GnbNotification>;
|
|
11
|
-
export default meta;
|
|
12
|
-
|
|
13
|
-
export const Default = {
|
|
14
|
-
render(args: Story) {
|
|
15
|
-
return (
|
|
16
|
-
<div style={{ minHeight: 300, padding: 24 }}>
|
|
17
|
-
<div
|
|
18
|
-
style={{
|
|
19
|
-
display: 'grid',
|
|
20
|
-
height: 60,
|
|
21
|
-
gridAutoColumns: 'max-content',
|
|
22
|
-
}}
|
|
23
|
-
>
|
|
24
|
-
<GnbNotification>
|
|
25
|
-
<GnbNotification.Content>
|
|
26
|
-
{[...dummy.notifications].map((v) => (
|
|
27
|
-
<>
|
|
28
|
-
<GnbNotification.Item
|
|
29
|
-
key={`${v.id}!`}
|
|
30
|
-
serviceType={v.serviceType}
|
|
31
|
-
title={v.title}
|
|
32
|
-
description={v.description}
|
|
33
|
-
imageUrl={v.imageUrl}
|
|
34
|
-
rounded={v.imageShape === 'circle'}
|
|
35
|
-
updatedAt={v.updatedAt}
|
|
36
|
-
/>
|
|
37
|
-
<GnbNotification.Item
|
|
38
|
-
key={`${v.id}#`}
|
|
39
|
-
as="a"
|
|
40
|
-
href="#"
|
|
41
|
-
serviceType={v.serviceType}
|
|
42
|
-
title={`${v.title} as <a> tag`}
|
|
43
|
-
description={v.description}
|
|
44
|
-
imageUrl={v.imageUrl}
|
|
45
|
-
rounded={v.imageShape === 'circle'}
|
|
46
|
-
updatedAt={v.updatedAt}
|
|
47
|
-
/>
|
|
48
|
-
<GnbNotification.Item
|
|
49
|
-
key={`${v.id}@`}
|
|
50
|
-
as="button"
|
|
51
|
-
serviceType={v.serviceType}
|
|
52
|
-
title={`${v.title} as <button> tag`}
|
|
53
|
-
description={v.description}
|
|
54
|
-
imageUrl={v.imageUrl}
|
|
55
|
-
rounded={v.imageShape === 'circle'}
|
|
56
|
-
updatedAt={v.updatedAt}
|
|
57
|
-
/>
|
|
58
|
-
</>
|
|
59
|
-
))}
|
|
60
|
-
</GnbNotification.Content>
|
|
61
|
-
</GnbNotification>
|
|
62
|
-
</div>
|
|
63
|
-
|
|
64
|
-
<br />
|
|
65
|
-
<p> empty </p>
|
|
66
|
-
<div
|
|
67
|
-
style={{
|
|
68
|
-
display: 'grid',
|
|
69
|
-
height: 60,
|
|
70
|
-
gridAutoColumns: 'max-content',
|
|
71
|
-
}}
|
|
72
|
-
>
|
|
73
|
-
<GnbNotification
|
|
74
|
-
ButtonSlot={<GnbNotification.Button count={5} />}
|
|
75
|
-
{...args}
|
|
76
|
-
>
|
|
77
|
-
<GnbNotification.Content>
|
|
78
|
-
<GnbNotification.Empty />
|
|
79
|
-
</GnbNotification.Content>
|
|
80
|
-
</GnbNotification>
|
|
81
|
-
</div>
|
|
82
|
-
</div>
|
|
83
|
-
);
|
|
84
|
-
},
|
|
85
|
-
} as const;
|
|
86
|
-
|
|
87
|
-
const dummy = {
|
|
88
|
-
avatarImageUrl:
|
|
89
|
-
'https://remember-cdn.rememberapp.co.kr/production/uploads/namecards/2024/01/19/10/45/584930364/avatars/60fca3968ae993e50ee3d3f63d76069b/preview.png?1705628719=&expiresAt=2024-03-09T14%3A54%3A13.281%2B09%3A00',
|
|
90
|
-
userProfiles: {
|
|
91
|
-
B2C_EMPTY: { email: 'hj.k@dramancompany.com' },
|
|
92
|
-
B2C: {
|
|
93
|
-
name: '김회준',
|
|
94
|
-
},
|
|
95
|
-
B2B: {
|
|
96
|
-
name: '김회준',
|
|
97
|
-
companyName: '(주)드라마앤컴패니',
|
|
98
|
-
},
|
|
99
|
-
},
|
|
100
|
-
notifications: [
|
|
101
|
-
{
|
|
102
|
-
id: 129,
|
|
103
|
-
serviceType: '모임주소록',
|
|
104
|
-
category: 'gathering_joined',
|
|
105
|
-
title: '박철준 님이 "드라마앤컴퍼니 회사주소록"에 참여했습니다',
|
|
106
|
-
description: null,
|
|
107
|
-
imageUrl: 'https://cdn.rememberapp.co.kr/images/empty-avatar.png',
|
|
108
|
-
imageShape: 'circle',
|
|
109
|
-
action: 'gathering_member_detail',
|
|
110
|
-
args: {
|
|
111
|
-
gatheringId: 30,
|
|
112
|
-
memberId: 163021,
|
|
113
|
-
},
|
|
114
|
-
confirmedAt: '2024-02-14T16:18:54.000+09:00',
|
|
115
|
-
createdAt: '2024-02-14T15:22:24.000+09:00',
|
|
116
|
-
updatedAt: '2024-02-14T15:22:24.000+09:00',
|
|
117
|
-
button: null,
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
id: 128,
|
|
121
|
-
category: 'team_joined',
|
|
122
|
-
serviceType: '팀명함첩',
|
|
123
|
-
title: '박철준님이 드라마앤컴퍼니에 참여했습니다',
|
|
124
|
-
description: null,
|
|
125
|
-
imageUrl: 'https://cdn.rememberapp.co.kr/images/empty-avatar.png',
|
|
126
|
-
imageShape: 'circle',
|
|
127
|
-
action: 'team_members',
|
|
128
|
-
args: {
|
|
129
|
-
teamId: 20,
|
|
130
|
-
invited_member: 347153,
|
|
131
|
-
},
|
|
132
|
-
confirmedAt: '2024-02-14T16:18:54.000+09:00',
|
|
133
|
-
createdAt: '2024-02-14T15:21:46.000+09:00',
|
|
134
|
-
updatedAt: '2024-02-14T15:21:46.000+09:00',
|
|
135
|
-
button: null,
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
id: 127,
|
|
139
|
-
category: 'relation_request_accepted',
|
|
140
|
-
serviceType: '새로운 인맥',
|
|
141
|
-
title: '권소정님과 1촌이 되었습니다',
|
|
142
|
-
description: null,
|
|
143
|
-
imageUrl: 'https://cdn.rememberapp.co.kr/images/empty-avatar.png',
|
|
144
|
-
imageShape: 'circle',
|
|
145
|
-
action: 'stack',
|
|
146
|
-
args: {
|
|
147
|
-
stackIds: [428250563],
|
|
148
|
-
campaign: 'cd_live_request_accepted',
|
|
149
|
-
},
|
|
150
|
-
confirmedAt: '2024-02-14T11:40:02.000+09:00',
|
|
151
|
-
createdAt: '2024-02-14T10:16:50.000+09:00',
|
|
152
|
-
updatedAt: '2024-02-14T10:16:50.000+09:00',
|
|
153
|
-
button: null,
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
id: 126,
|
|
157
|
-
category: 'live_join_anniversary',
|
|
158
|
-
serviceType: '인맥소식',
|
|
159
|
-
title: '정지수님의 입사 2주년 입니다',
|
|
160
|
-
description: '(주)드라마앤컴퍼니 입사 2주년입니다. 축하해 주세요!',
|
|
161
|
-
imageUrl:
|
|
162
|
-
'https://career-cdn.rememberapp.co.kr/upload/open_profile/images/1638286/profile/2023/08/01/01/27/5ce3cea26a93cf512833d85ed4236124/original.jpg?1690820879',
|
|
163
|
-
imageShape: 'circle',
|
|
164
|
-
action: 'stack',
|
|
165
|
-
args: {
|
|
166
|
-
cardIds: [587612487],
|
|
167
|
-
stackIds: [428250559],
|
|
168
|
-
campaign: 'cd_join_anniversary',
|
|
169
|
-
news_type: 'join_anniversary',
|
|
170
|
-
gift_button: true,
|
|
171
|
-
entry: 'cd_join_anniversary',
|
|
172
|
-
},
|
|
173
|
-
confirmedAt: '2024-02-14T11:40:02.000+09:00',
|
|
174
|
-
createdAt: '2024-02-14T03:54:14.000+09:00',
|
|
175
|
-
updatedAt: '2024-02-14T03:54:14.000+09:00',
|
|
176
|
-
button: null,
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
id: 125,
|
|
180
|
-
category: 'relation_request_accepted',
|
|
181
|
-
serviceType: '새로운 인맥',
|
|
182
|
-
title: '김평호님과 1촌이 되었습니다',
|
|
183
|
-
description: null,
|
|
184
|
-
imageUrl:
|
|
185
|
-
'https://remember-cdn.rememberapp.co.kr/production/uploads/namecards/2023/02/21/09/21/431996884/avatars/8f7f98dffa9823a93005b519aa3e96ae/original.jpg?1706400496',
|
|
186
|
-
imageShape: 'circle',
|
|
187
|
-
action: 'stack',
|
|
188
|
-
args: {
|
|
189
|
-
stackIds: [428250505],
|
|
190
|
-
campaign: 'cd_live_request_accepted',
|
|
191
|
-
},
|
|
192
|
-
confirmedAt: '2024-02-13T20:04:52.000+09:00',
|
|
193
|
-
createdAt: '2024-02-13T18:50:33.000+09:00',
|
|
194
|
-
updatedAt: '2024-02-13T18:50:33.000+09:00',
|
|
195
|
-
button: null,
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
id: 124,
|
|
199
|
-
category: 'relation_request_accepted',
|
|
200
|
-
serviceType: '새로운 인맥',
|
|
201
|
-
title: '허연경님과 1촌이 되었습니다',
|
|
202
|
-
description: null,
|
|
203
|
-
imageUrl: 'https://cdn.rememberapp.co.kr/images/empty-avatar.png',
|
|
204
|
-
imageShape: 'circle',
|
|
205
|
-
action: 'stack',
|
|
206
|
-
args: {
|
|
207
|
-
stackIds: [428250594],
|
|
208
|
-
campaign: 'cd_live_request_accepted',
|
|
209
|
-
},
|
|
210
|
-
confirmedAt: '2024-02-13T16:09:33.000+09:00',
|
|
211
|
-
createdAt: '2024-02-13T15:00:01.000+09:00',
|
|
212
|
-
updatedAt: '2024-02-13T15:00:01.000+09:00',
|
|
213
|
-
button: null,
|
|
214
|
-
},
|
|
215
|
-
{
|
|
216
|
-
id: 123,
|
|
217
|
-
category: 'gathering_joined',
|
|
218
|
-
serviceType: '모임주소록',
|
|
219
|
-
title: '안유신 님이 "드라마앤컴퍼니 회사주소록"에 참여했습니다',
|
|
220
|
-
description: null,
|
|
221
|
-
imageUrl: 'https://cdn.rememberapp.co.kr/images/empty-avatar.png',
|
|
222
|
-
imageShape: 'circle',
|
|
223
|
-
action: 'gathering_member_detail',
|
|
224
|
-
args: {
|
|
225
|
-
gatheringId: 30,
|
|
226
|
-
memberId: 162892,
|
|
227
|
-
},
|
|
228
|
-
confirmedAt: '2024-02-13T16:09:33.000+09:00',
|
|
229
|
-
createdAt: '2024-02-13T14:59:41.000+09:00',
|
|
230
|
-
updatedAt: '2024-02-13T14:59:41.000+09:00',
|
|
231
|
-
button: null,
|
|
232
|
-
},
|
|
233
|
-
],
|
|
234
|
-
};
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import type { PropsWithChildren, ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
import type { PopoverProps } from '@/Floating/Popover';
|
|
4
|
-
import Popover from '@/Floating/Popover';
|
|
5
|
-
import NotificationItem from '@/Gnb/parts/GnbNotification/parts/NotificationItem';
|
|
6
|
-
import type { GetStyledComponentProps } from '@remember-web/shared/types/styles';
|
|
7
|
-
import { IconAlarmM } from '@remember-web/icon';
|
|
8
|
-
import { badgePseudo } from '@';
|
|
9
|
-
import { primary100 } from '@remember-web/mixin';
|
|
10
|
-
|
|
11
|
-
import {
|
|
12
|
-
StyledNotificationButton,
|
|
13
|
-
StyledNotificationContent,
|
|
14
|
-
StyledNotificationEmpty,
|
|
15
|
-
} from './style';
|
|
16
|
-
|
|
17
|
-
export type GnbNotificationProps = PropsWithChildren<
|
|
18
|
-
{
|
|
19
|
-
ButtonSlot?: ReactNode;
|
|
20
|
-
} & PopoverProps
|
|
21
|
-
>;
|
|
22
|
-
|
|
23
|
-
export const GnbNotification = ({
|
|
24
|
-
children,
|
|
25
|
-
ButtonSlot = <GnbNotification.Button />,
|
|
26
|
-
...props
|
|
27
|
-
}: GnbNotificationProps) => (
|
|
28
|
-
<Popover {...props}>
|
|
29
|
-
{ButtonSlot}
|
|
30
|
-
{children}
|
|
31
|
-
</Popover>
|
|
32
|
-
);
|
|
33
|
-
|
|
34
|
-
GnbNotification.Content = StyledNotificationContent;
|
|
35
|
-
|
|
36
|
-
GnbNotification.Empty = StyledNotificationEmpty;
|
|
37
|
-
GnbNotification.Item = NotificationItem;
|
|
38
|
-
GnbNotification.Button = ({
|
|
39
|
-
count,
|
|
40
|
-
...props
|
|
41
|
-
}: GnbNotificationButtonProps & { count?: number }) => (
|
|
42
|
-
<Popover.Trigger>
|
|
43
|
-
<StyledNotificationButton data-is-mobile-popover-hidden {...props}>
|
|
44
|
-
<span
|
|
45
|
-
role="button"
|
|
46
|
-
tabIndex={0}
|
|
47
|
-
{...(count ? badgePseudo.getBadgeAttr({ current: count }) : null)}
|
|
48
|
-
>
|
|
49
|
-
<IconAlarmM color={primary100} />
|
|
50
|
-
</span>
|
|
51
|
-
</StyledNotificationButton>
|
|
52
|
-
</Popover.Trigger>
|
|
53
|
-
);
|
|
54
|
-
|
|
55
|
-
export type GnbNotificationButtonProps = Omit<
|
|
56
|
-
GetStyledComponentProps<typeof StyledNotificationButton>,
|
|
57
|
-
'children'
|
|
58
|
-
>;
|
|
59
|
-
|
|
60
|
-
export type { NotificationItemProps as GnbNotificationItemProps } from './parts/NotificationItem';
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
StyledNotificationContentText,
|
|
6
|
-
StyledNotificationDescription,
|
|
7
|
-
StyledNotificationItem,
|
|
8
|
-
StyledNotificationItemContent,
|
|
9
|
-
StyledNotificationTitle,
|
|
10
|
-
StyledNotificationUpdatedAt,
|
|
11
|
-
StyledServiceTitle,
|
|
12
|
-
} from '@/Gnb/parts/GnbNotification/style';
|
|
13
|
-
import type { GetStyledComponentProps } from '@remember-web/shared/types/styles';
|
|
14
|
-
import { Avatar } from '@/Avatars';
|
|
15
|
-
import type { AvatarProps } from '@/Avatars/Avatar';
|
|
16
|
-
|
|
17
|
-
export type NotificationItemProps<ComponentAs> = GetStyledComponentProps<
|
|
18
|
-
typeof StyledNotificationItem,
|
|
19
|
-
ComponentAs
|
|
20
|
-
> & {
|
|
21
|
-
serviceType: ReactNode;
|
|
22
|
-
title: ReactNode;
|
|
23
|
-
description?: ReactNode;
|
|
24
|
-
updatedAt: ReactNode;
|
|
25
|
-
imageUrl?: AvatarProps['imageUrl'];
|
|
26
|
-
rounded?: AvatarProps['rounded'];
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
export default function NotificationItem<ComponentAs>({
|
|
30
|
-
serviceType,
|
|
31
|
-
title,
|
|
32
|
-
description,
|
|
33
|
-
updatedAt,
|
|
34
|
-
imageUrl,
|
|
35
|
-
rounded,
|
|
36
|
-
...props
|
|
37
|
-
}: NotificationItemProps<ComponentAs>) {
|
|
38
|
-
return (
|
|
39
|
-
<StyledNotificationItem {...props}>
|
|
40
|
-
<StyledServiceTitle>{serviceType}</StyledServiceTitle>
|
|
41
|
-
<StyledNotificationItemContent>
|
|
42
|
-
<StyledNotificationContentText>
|
|
43
|
-
<StyledNotificationTitle>{title}</StyledNotificationTitle>
|
|
44
|
-
{description && (
|
|
45
|
-
<StyledNotificationDescription>
|
|
46
|
-
{description}
|
|
47
|
-
</StyledNotificationDescription>
|
|
48
|
-
)}
|
|
49
|
-
<StyledNotificationUpdatedAt>{updatedAt}</StyledNotificationUpdatedAt>
|
|
50
|
-
</StyledNotificationContentText>
|
|
51
|
-
|
|
52
|
-
{imageUrl && (
|
|
53
|
-
<Avatar
|
|
54
|
-
size="large"
|
|
55
|
-
border={{ width: 'none' }}
|
|
56
|
-
rounded={rounded}
|
|
57
|
-
imageUrl={imageUrl}
|
|
58
|
-
/>
|
|
59
|
-
)}
|
|
60
|
-
</StyledNotificationItemContent>
|
|
61
|
-
</StyledNotificationItem>
|
|
62
|
-
);
|
|
63
|
-
}
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
bg200,
|
|
5
|
-
bg300,
|
|
6
|
-
contents000,
|
|
7
|
-
contents150,
|
|
8
|
-
contents200,
|
|
9
|
-
divider,
|
|
10
|
-
getTypographyStyles,
|
|
11
|
-
secondary100,
|
|
12
|
-
} from '@remember-web/mixin';
|
|
13
|
-
import { defaultGridButtonCss, fullPopoverContentCss } from '@/Gnb/css';
|
|
14
|
-
import { getBadgePseudoCss } from '@/Badge/style';
|
|
15
|
-
import { StyledPopoverContent } from '@/Floating/Popover/styles';
|
|
16
|
-
|
|
17
|
-
export const StyledNotificationItem = styled.div`
|
|
18
|
-
&:where(button, a) {
|
|
19
|
-
${defaultGridButtonCss};
|
|
20
|
-
|
|
21
|
-
&:hover,
|
|
22
|
-
&:focus-visible {
|
|
23
|
-
background-color: ${bg200};
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&:active {
|
|
27
|
-
background-color: ${bg300};
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
&:where(a) {
|
|
32
|
-
text-decoration: none;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
& {
|
|
36
|
-
display: flex;
|
|
37
|
-
flex-direction: column;
|
|
38
|
-
place-items: start;
|
|
39
|
-
box-sizing: border-box;
|
|
40
|
-
width: 100%;
|
|
41
|
-
padding: 10px 20px;
|
|
42
|
-
gap: 8px;
|
|
43
|
-
content-visibility: auto;
|
|
44
|
-
|
|
45
|
-
color: ${contents000};
|
|
46
|
-
}
|
|
47
|
-
`;
|
|
48
|
-
|
|
49
|
-
export const StyledNotificationEmpty = styled.div.attrs((p) => ({
|
|
50
|
-
children: '받은 알림이 아직 없습니다',
|
|
51
|
-
...p,
|
|
52
|
-
}))`
|
|
53
|
-
${getTypographyStyles('Headline4_M')}
|
|
54
|
-
font-weight: 500;
|
|
55
|
-
|
|
56
|
-
color: ${contents200};
|
|
57
|
-
display: flex;
|
|
58
|
-
align-items: center;
|
|
59
|
-
justify-content: center;
|
|
60
|
-
width: 100%;
|
|
61
|
-
height: 100%;
|
|
62
|
-
padding: 130px 0;
|
|
63
|
-
`;
|
|
64
|
-
|
|
65
|
-
export const StyledServiceTitle = styled.strong`
|
|
66
|
-
${getTypographyStyles('Body2_B')}
|
|
67
|
-
font-weight: 500;
|
|
68
|
-
color: ${secondary100};
|
|
69
|
-
`;
|
|
70
|
-
|
|
71
|
-
export const StyledNotificationItemContent = styled.div`
|
|
72
|
-
display: grid;
|
|
73
|
-
|
|
74
|
-
grid-template-columns: 1fr auto;
|
|
75
|
-
gap: 8px;
|
|
76
|
-
width: 100%;
|
|
77
|
-
`;
|
|
78
|
-
|
|
79
|
-
export const StyledNotificationContent = styled(StyledPopoverContent)`
|
|
80
|
-
${fullPopoverContentCss};
|
|
81
|
-
|
|
82
|
-
min-width: 360px;
|
|
83
|
-
max-height: 440px;
|
|
84
|
-
|
|
85
|
-
${StyledNotificationItem} {
|
|
86
|
-
border-bottom: 1px solid ${divider};
|
|
87
|
-
|
|
88
|
-
&:first-child {
|
|
89
|
-
padding-top: 16px;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
&:last-child {
|
|
93
|
-
border-bottom: none;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
&:last-child(1),
|
|
97
|
-
&:last-child(2),
|
|
98
|
-
&:last-child(3) {
|
|
99
|
-
border-bottom: 1px solid ${divider};
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
`;
|
|
103
|
-
|
|
104
|
-
StyledNotificationContent.defaultProps = {
|
|
105
|
-
align: 'end',
|
|
106
|
-
sideOffset: -12,
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
export const StyledNotificationContentText = styled.div`
|
|
110
|
-
display: flex;
|
|
111
|
-
flex-direction: column;
|
|
112
|
-
flex: 1;
|
|
113
|
-
gap: 8px;
|
|
114
|
-
`;
|
|
115
|
-
|
|
116
|
-
export const StyledNotificationTitle = styled.b`
|
|
117
|
-
${getTypographyStyles('Body1_M')}
|
|
118
|
-
font-weight: 500;
|
|
119
|
-
line-height: 19px;
|
|
120
|
-
`;
|
|
121
|
-
|
|
122
|
-
export const StyledNotificationDescription = styled.p`
|
|
123
|
-
${getTypographyStyles('Body1_M')}
|
|
124
|
-
font-weight: 500;
|
|
125
|
-
padding-inline: unset;
|
|
126
|
-
margin-block: unset;
|
|
127
|
-
color: ${contents150};
|
|
128
|
-
`;
|
|
129
|
-
|
|
130
|
-
export const StyledNotificationUpdatedAt = styled.span`
|
|
131
|
-
${getTypographyStyles('Body2_M')}
|
|
132
|
-
font-weight: 500;
|
|
133
|
-
color: ${contents200};
|
|
134
|
-
`;
|
|
135
|
-
|
|
136
|
-
export const StyledNotificationButton = styled(StyledNotificationDescription)`
|
|
137
|
-
display: grid;
|
|
138
|
-
place-content: center;
|
|
139
|
-
|
|
140
|
-
> span {
|
|
141
|
-
${defaultGridButtonCss};
|
|
142
|
-
position: relative;
|
|
143
|
-
display: block;
|
|
144
|
-
height: 24px;
|
|
145
|
-
width: 24px;
|
|
146
|
-
max-height: 24px;
|
|
147
|
-
${getBadgePseudoCss()};
|
|
148
|
-
}
|
|
149
|
-
`;
|
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
/* eslint-disable react-hooks/rules-of-hooks */
|
|
2
|
-
import React, { useState } from 'react';
|
|
3
|
-
|
|
4
|
-
import { Flex } from '@';
|
|
5
|
-
import { contents300, secondary100 } from '@remember-web/mixin';
|
|
6
|
-
|
|
7
|
-
import { GnbProfile } from '.';
|
|
8
|
-
|
|
9
|
-
const meta = {
|
|
10
|
-
parameters: { layout: 'fullscreen' },
|
|
11
|
-
title: 'Gnb/Gnb/profile',
|
|
12
|
-
argTypes: {
|
|
13
|
-
profileType: {
|
|
14
|
-
control: 'radio',
|
|
15
|
-
options: ['B2B', 'B2C', 'B2C_EMPTY'],
|
|
16
|
-
},
|
|
17
|
-
profileImage: {
|
|
18
|
-
if: { arg: 'profileType' },
|
|
19
|
-
control: 'radio',
|
|
20
|
-
options: [undefined, '있음'],
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
args: {
|
|
24
|
-
profileType: 'B2C',
|
|
25
|
-
},
|
|
26
|
-
} as const;
|
|
27
|
-
|
|
28
|
-
export default meta;
|
|
29
|
-
|
|
30
|
-
type Args = {
|
|
31
|
-
profileType: (typeof meta)['argTypes']['profileType']['options'][number];
|
|
32
|
-
profileImage: (typeof meta)['argTypes']['profileImage']['options'][number];
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
export const Default = {
|
|
36
|
-
render({ profileType, profileImage }: Args) {
|
|
37
|
-
const [isOpenProfile, setIsOpenProfile] = useState(false);
|
|
38
|
-
|
|
39
|
-
return (
|
|
40
|
-
<div style={{ minHeight: 300, padding: 24 }}>
|
|
41
|
-
<div
|
|
42
|
-
style={{
|
|
43
|
-
display: 'grid',
|
|
44
|
-
height: 60,
|
|
45
|
-
gridAutoColumns: 'max-content',
|
|
46
|
-
}}
|
|
47
|
-
>
|
|
48
|
-
<GnbProfile
|
|
49
|
-
open={isOpenProfile}
|
|
50
|
-
onOpenChange={setIsOpenProfile}
|
|
51
|
-
ButtonContentSlot={
|
|
52
|
-
profileType === 'B2C' || profileType === 'B2C_EMPTY' ? (
|
|
53
|
-
<GnbProfile.UserShortInfo
|
|
54
|
-
avatarImageUrl={profileImage}
|
|
55
|
-
{...dummy.userProfiles[profileType]}
|
|
56
|
-
/>
|
|
57
|
-
) : (
|
|
58
|
-
<GnbProfile.BusinessUserShortInfo
|
|
59
|
-
avatarImageUrl={profileImage}
|
|
60
|
-
{...dummy.userProfiles.B2B}
|
|
61
|
-
/>
|
|
62
|
-
)
|
|
63
|
-
}
|
|
64
|
-
>
|
|
65
|
-
<GnbProfile.Content>
|
|
66
|
-
<GnbProfile.Section>
|
|
67
|
-
{profileType === 'B2C' && (
|
|
68
|
-
<GnbProfile.MyInfo
|
|
69
|
-
name="홍길동"
|
|
70
|
-
anchorProps={{
|
|
71
|
-
href: 'https://profile.alpha.rememberapp.co.kr',
|
|
72
|
-
}}
|
|
73
|
-
/>
|
|
74
|
-
)}
|
|
75
|
-
|
|
76
|
-
{profileType === 'B2C_EMPTY' && (
|
|
77
|
-
<GnbProfile.MyInfo
|
|
78
|
-
name={dummy.userProfiles.B2C_EMPTY.email}
|
|
79
|
-
anchorProps={{
|
|
80
|
-
href: 'https://profile.alpha.rememberapp.co.kr',
|
|
81
|
-
}}
|
|
82
|
-
/>
|
|
83
|
-
)}
|
|
84
|
-
{profileType === 'B2B' && (
|
|
85
|
-
<GnbProfile.MyPasses
|
|
86
|
-
anchorProps={{
|
|
87
|
-
href: 'https://profile.alpha.rememberapp.co.kr',
|
|
88
|
-
}}
|
|
89
|
-
>
|
|
90
|
-
<GnbProfile.MyPassesDetail
|
|
91
|
-
InfoSlot={
|
|
92
|
-
<>
|
|
93
|
-
인재검색 <b style={{ fontWeight: 600 }}>500건</b>
|
|
94
|
-
</>
|
|
95
|
-
}
|
|
96
|
-
StatusSlot="발송가능"
|
|
97
|
-
/>
|
|
98
|
-
</GnbProfile.MyPasses>
|
|
99
|
-
)}
|
|
100
|
-
</GnbProfile.Section>
|
|
101
|
-
<GnbProfile.Section title="커리어 소식">
|
|
102
|
-
<GnbProfile.LinkItem href="#">
|
|
103
|
-
<Flex justify="space-between" width="100%">
|
|
104
|
-
<span>받은 제안</span>
|
|
105
|
-
<span style={{ color: secondary100 }}>4</span>
|
|
106
|
-
</Flex>
|
|
107
|
-
</GnbProfile.LinkItem>
|
|
108
|
-
<GnbProfile.LinkItem href="#">
|
|
109
|
-
<Flex justify="space-between" width="100%">
|
|
110
|
-
<span>지원 현황</span>
|
|
111
|
-
<span style={{ color: contents300 }}>0</span>
|
|
112
|
-
</Flex>
|
|
113
|
-
</GnbProfile.LinkItem>
|
|
114
|
-
</GnbProfile.Section>
|
|
115
|
-
<GnbProfile.Section title="커리어 활동">
|
|
116
|
-
<GnbProfile.LinkItem href="#">
|
|
117
|
-
지원 중인 공고
|
|
118
|
-
</GnbProfile.LinkItem>
|
|
119
|
-
<GnbProfile.LinkItem href="#">저장한 공고</GnbProfile.LinkItem>
|
|
120
|
-
<GnbProfile.LinkItem href="#">조회한 공고</GnbProfile.LinkItem>
|
|
121
|
-
<GnbProfile.LinkItem href="#">관심 기업</GnbProfile.LinkItem>
|
|
122
|
-
</GnbProfile.Section>
|
|
123
|
-
<GnbProfile.Section title="더 보기">
|
|
124
|
-
<GnbProfile.LinkItem href="#">공지사항</GnbProfile.LinkItem>
|
|
125
|
-
<GnbProfile.LinkItem href="#">
|
|
126
|
-
도움말 및 1:1 문의
|
|
127
|
-
</GnbProfile.LinkItem>
|
|
128
|
-
<GnbProfile.LinkItem href="#">설정</GnbProfile.LinkItem>
|
|
129
|
-
</GnbProfile.Section>
|
|
130
|
-
<GnbProfile.Section data-only-desktop>
|
|
131
|
-
<GnbProfile.LinkItem href="#" style={{ color: secondary100 }}>
|
|
132
|
-
로그아웃
|
|
133
|
-
</GnbProfile.LinkItem>
|
|
134
|
-
</GnbProfile.Section>
|
|
135
|
-
</GnbProfile.Content>
|
|
136
|
-
</GnbProfile>
|
|
137
|
-
</div>
|
|
138
|
-
</div>
|
|
139
|
-
);
|
|
140
|
-
},
|
|
141
|
-
} as const;
|
|
142
|
-
|
|
143
|
-
const dummy = {
|
|
144
|
-
avatarImageUrl:
|
|
145
|
-
'https://remember-cdn.rememberapp.co.kr/production/uploads/namecards/2024/01/19/10/45/584930364/avatars/60fca3968ae993e50ee3d3f63d76069b/preview.png?1705628719=&expiresAt=2024-03-09T14%3A54%3A13.281%2B09%3A00',
|
|
146
|
-
userProfiles: {
|
|
147
|
-
B2C_EMPTY: { email: 'hj.k@dramancompany.com' },
|
|
148
|
-
B2C: {
|
|
149
|
-
name: '김회준',
|
|
150
|
-
},
|
|
151
|
-
B2B: {
|
|
152
|
-
name: '김회준',
|
|
153
|
-
companyName: '(주)드라마앤컴패니',
|
|
154
|
-
},
|
|
155
|
-
},
|
|
156
|
-
};
|