diff --git a/core/client/src/features/share/index.ts b/core/client/src/features/share/index.ts index e69de29b..ed584959 100644 --- a/core/client/src/features/share/index.ts +++ b/core/client/src/features/share/index.ts @@ -0,0 +1 @@ +export * from './ui' diff --git a/core/client/src/features/share/ui/ShareLink.vue b/core/client/src/features/share/ui/ShareLink.vue index 0a10335a..8cf49ee4 100644 --- a/core/client/src/features/share/ui/ShareLink.vue +++ b/core/client/src/features/share/ui/ShareLink.vue @@ -1,14 +1,57 @@ diff --git a/core/client/src/features/share/ui/index.ts b/core/client/src/features/share/ui/index.ts new file mode 100644 index 00000000..6295c480 --- /dev/null +++ b/core/client/src/features/share/ui/index.ts @@ -0,0 +1 @@ +export { default as ShareLink } from './ShareLink.vue' diff --git a/core/client/src/shared/ui/_shortcuts/button.ts b/core/client/src/shared/ui/_shortcuts/button.ts index a66e40aa..24c634c9 100644 --- a/core/client/src/shared/ui/_shortcuts/button.ts +++ b/core/client/src/shared/ui/_shortcuts/button.ts @@ -4,7 +4,7 @@ export const staticBtn: Record<`${ButtonPrefix}-${string}` | ButtonPrefix, strin 'btn': 'inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:(outline-none ring-1 ring-neutral-950) disabled:(pointer-events-none opacity-50) [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 dark:focus-visible:ring-neutral-300', 'btn-default': 'bg-neutral-900 text-neutral-50 shadow hover:bg-neutral-900/90 dark:(bg-neutral-50 text-neutral-900 hover:bg-neutral-50/90)', - 'btn-secondary': 'bg-neutral-100 text-neutral-900 shadow-sm hover:bg-neutral-100/80 dark:(bg-#2e2e2e text-neutral-50 hover:bg-neutral-800/80)', + 'btn-secondary': 'bg-neutral-100 text-neutral-900 shadow-sm hover:bg-neutral-100/80 dark:(bg-#2e2e2e text-neutral-50 hover:bg-#2e2e2e/80)', 'btn-outline': 'border border-solid border-neutral-200 bg-white shadow-sm hover:(bg-neutral-100 text-neutral-900) dark:(border-neutral-700 bg-neutral-800 hover:bg-neutral-700/20 hover:text-neutral-50)', 'btn-ghost': 'bg-transparent hover:(bg-neutral-100 text-neutral-900) dark:(hover:bg-neutral-700/40 hover:text-neutral-50)', 'btn-dashed': 'border border-dashed border-neutral-200 bg-white shadow-sm hover:(bg-neutral-100 text-neutral-900) dark:(border-neutral-700 bg-neutral-800 hover:bg-neutral-700/20 hover:text-neutral-50)', diff --git a/core/client/src/shared/ui/_shortcuts/dialog.ts b/core/client/src/shared/ui/_shortcuts/dialog.ts index 3ed53b7c..4dd2072c 100644 --- a/core/client/src/shared/ui/_shortcuts/dialog.ts +++ b/core/client/src/shared/ui/_shortcuts/dialog.ts @@ -2,8 +2,8 @@ type DialogPrefix = 'dialog' export const staticDialog: Record<`${DialogPrefix}-${string}` | DialogPrefix, string> = { 'dialog': '', - 'dialog-overlay': 'fixed inset-0 z-50 bg-black/30', - 'dialog-content': 'fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border border-neutral-200 bg-white p-6 shadow-lg duration-200 sm:rounded-lg dark:(border-neutral-800 bg-neutral-800)', + 'dialog-overlay': 'fixed inset-0 z-999 bg-black/30', + 'dialog-content': 'fixed left-1/2 top-1/2 z-1000 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border border-neutral-200 bg-white p-6 shadow-lg duration-200 sm:rounded-lg dark:(border-neutral-800 bg-neutral-800)', 'dialog-close': 'absolute right-4 top-4 w-4 h-4 flex items-center justify-center rounded-sm opacity-70 ring-offset-0 transition-opacity hover:opacity-100 focus:outline-none focus:ring-0 disabled:pointer-events-none dark:(ring-offset-0 focus:ring-0)', 'dialog-title': 'text-lg font-semibold leading-none tracking-tight', 'dialog-description': 'text-sm text-neutral-500 dark:text-neutral-400', diff --git a/core/client/src/shared/ui/dialog/UiDialogContent.vue b/core/client/src/shared/ui/dialog/UiDialogContent.vue index aab56f03..58dc2fe0 100644 --- a/core/client/src/shared/ui/dialog/UiDialogContent.vue +++ b/core/client/src/shared/ui/dialog/UiDialogContent.vue @@ -28,15 +28,14 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits) @@ -45,7 +44,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits)
diff --git a/core/client/src/shared/ui/shimmer-button/ShimmerButton.vue b/core/client/src/shared/ui/shimmer-button/ShimmerButton.vue index 39d77399..65b4a9e6 100644 --- a/core/client/src/shared/ui/shimmer-button/ShimmerButton.vue +++ b/core/client/src/shared/ui/shimmer-button/ShimmerButton.vue @@ -23,7 +23,6 @@ withDefaults(defineProps(), { :class=" cn( 'btn btn-secondary z-0 relative overflow-hidden h-8 rounded-md px-3 dark:hover:bg-#2e2e2e', - 'transform-gpu transition-transform duration-300 ease-in-out active:translate-y-px', $props.class, ) " diff --git a/core/client/src/widgets/layout/ui/header/HeaderMain.vue b/core/client/src/widgets/layout/ui/header/HeaderMain.vue index a2846f94..a0ec3920 100644 --- a/core/client/src/widgets/layout/ui/header/HeaderMain.vue +++ b/core/client/src/widgets/layout/ui/header/HeaderMain.vue @@ -2,8 +2,8 @@ import type { Board } from '@/entities/board' import type { ProjectLink } from '@/shared/config/types-shared' import { type User, UserAvatar } from '@/entities/user' +import { ShareLink } from '@/features/share' import { useLayoutPaths } from '@/shared/lib/composables' -import { ShimmerButton } from '@/shared/ui' import { Icon } from '@iconify/vue' import { computed, shallowReactive, toRef } from 'vue' import { links } from '../../model' @@ -73,14 +73,7 @@ const { active } = useLayoutPaths(links, _projects)
- -
- - {{ $t('header.share') }} - - +