diff --git a/packages/nc-gui-v2/app.vue b/packages/nc-gui-v2/app.vue index 241f5f526c..46c1784d71 100644 --- a/packages/nc-gui-v2/app.vue +++ b/packages/nc-gui-v2/app.vue @@ -1,11 +1,17 @@ diff --git a/packages/nc-gui-v2/assets/css/color.css b/packages/nc-gui-v2/assets/css/color.css deleted file mode 100644 index 4788c60656..0000000000 --- a/packages/nc-gui-v2/assets/css/color.css +++ /dev/null @@ -1,4 +0,0 @@ -:root { - --primary: #00b786; - --secondary: #8ceaf6; -} diff --git a/packages/nc-gui-v2/assets/css/global.css b/packages/nc-gui-v2/assets/css/global.css index fe1fd47c04..530ad1ccb5 100644 --- a/packages/nc-gui-v2/assets/css/global.css +++ b/packages/nc-gui-v2/assets/css/global.css @@ -1,4 +1,3 @@ -@import './color.css'; html { font-size: 16px; word-spacing: 1px; @@ -8,30 +7,10 @@ html { -webkit-font-smoothing: antialiased; box-sizing: border-box; } + body { font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, Vazirmatn, sans-serif; } -*, *:before, *:after { - box-sizing: border-box; - margin: 0; -} -.btn, .pointer { - cursor: pointer; -} -.primary { - color: var(--primary); -} -.secondary { - color: var(--secondary); -} -.btn-primary { - background-color: var(--primary); - color: #fff; -} -.btn-secondary { - background-color: var(--secondary); - color: #000; -} /* Apply Vazirmatn for rtl diff --git a/packages/nc-gui-v2/assets/style.css b/packages/nc-gui-v2/assets/style.css deleted file mode 100644 index 5feb4e1631..0000000000 --- a/packages/nc-gui-v2/assets/style.css +++ /dev/null @@ -1,19 +0,0 @@ -::-webkit-scrollbar { - width: .7em; - height: .7em -} - -::-webkit-scrollbar-button { - background: #77777722 -} - -::-webkit-scrollbar-track-piece { - background: #66666622 -} - -::-webkit-scrollbar-thumb { - background: #888; - border-radius: .7em; - border: .15em solid #00000000; - background-clip: padding-box; -} diff --git a/packages/nc-gui-v2/assets/style-v2.scss b/packages/nc-gui-v2/assets/style.scss similarity index 84% rename from packages/nc-gui-v2/assets/style-v2.scss rename to packages/nc-gui-v2/assets/style.scss index 2ff1b5e33b..6cd7093b8f 100644 --- a/packages/nc-gui-v2/assets/style-v2.scss +++ b/packages/nc-gui-v2/assets/style.scss @@ -1,9 +1,9 @@ @import 'ant-design-vue/dist/antd.variable.min.css'; -@import 'ant-design-vue/dist/antd.min.css'; :root { --header-height: 50px; --toolbar-height: 48px; + --tw-text-opacity: 1; } .ant-layout-header { @@ -27,21 +27,8 @@ main { overflow-x: hidden; } -nav, -nav .v-list { - @apply dark:(!bg-gray-900 text-white) -} - -.v-divider { - @apply dark:bg-white -} - a { - @apply prose text-primary underline hover:opacity-75 dark:(text-secondary); -} - -h1, h2, h3, h4, h5, h6, p, label, button, textarea, select { - @apply dark:(!text-white); + @apply !text-primary !underline hover:!text-accent; } .nc-icon { @@ -62,7 +49,7 @@ h1, h2, h3, h4, h5, h6, p, label, button, textarea, select { &:hover { .nc-icon { - @apply text-pink-500; + @apply text-accent; } } } @@ -99,7 +86,7 @@ h1, h2, h3, h4, h5, h6, p, label, button, textarea, select { // for highlighting toolbar menu item .nc-active-btn > .ant-btn{ - @apply bg-primary/20 hover:(bg-primary/20); + @apply bg-primary bg-opacity-20 hover:(bg-primary bg-opacity-20); } .nc-locked-overlay { @@ -159,25 +146,23 @@ h1, h2, h3, h4, h5, h6, p, label, button, textarea, select { .page-leave-active, .layout-enter-active, .layout-leave-active { - @apply transition-opacity duration-300 ease-in-out; + @apply transition-all duration-200 ease; } -.page-enter-active, -.page-leave-active, -.layout-enter-active, -.layout-leave-active { +.page-enter-from, +.page-leave-to, +.layout-enter-from, +.layout-leave-to { @apply opacity-0; } .slide-enter-active, .slide-leave-active { @apply transition-all duration-200 ease-in-out; - transform: translate(100%, 0); } -.slide-enter, - -.slide-leave-active { +.slide-enter-from, +.slide-leave-to { transform: translate(-100%, 0); } @@ -190,8 +175,8 @@ h1, h2, h3, h4, h5, h6, p, label, button, textarea, select { @apply ring ring-xl; } -.glow-enter, -.glow-leave-active { +.glow-enter-from, +.glow-leave-to { @apply opacity-0; } @@ -205,11 +190,11 @@ h1, h2, h3, h4, h5, h6, p, label, button, textarea, select { } &:hover::after { - @apply transform scale-110 ring ring-pink-500; + @apply transform scale-110 ring ring-accent; } &:active::after { - @apply ring ring-pink-500; + @apply ring ring-accent; } } @@ -246,10 +231,14 @@ h1, h2, h3, h4, h5, h6, p, label, button, textarea, select { } .ant-dropdown-menu-item, .ant-menu-item { - @apply !py-0 active:(ring ring-pink-500); + @apply !py-0 active:(ring ring-accent); } .ant-dropdown-menu-title-content, .ant-menu-title-content { @apply !py-0; } + +.ant-dropdown-menu-submenu-title{ + @apply !pr-2; +} diff --git a/packages/nc-gui-v2/components.d.ts b/packages/nc-gui-v2/components.d.ts index 81c6f68b43..9b0fa75f45 100644 --- a/packages/nc-gui-v2/components.d.ts +++ b/packages/nc-gui-v2/components.d.ts @@ -15,9 +15,11 @@ declare module '@vue/runtime-core' { ACardMeta: typeof import('ant-design-vue/es')['CardMeta'] ACarousel: typeof import('ant-design-vue/es')['Carousel'] ACheckbox: typeof import('ant-design-vue/es')['Checkbox'] + ACheckboxGroup: typeof import('ant-design-vue/es')['CheckboxGroup'] ACol: typeof import('ant-design-vue/es')['Col'] ACollapse: typeof import('ant-design-vue/es')['Collapse'] ACollapsePanel: typeof import('ant-design-vue/es')['CollapsePanel'] + AConfigProvider: typeof import('ant-design-vue/es')['ConfigProvider'] ADatePicker: typeof import('ant-design-vue/es')['DatePicker'] ADivider: typeof import('ant-design-vue/es')['Divider'] ADrawer: typeof import('ant-design-vue/es')['Drawer'] @@ -32,6 +34,7 @@ declare module '@vue/runtime-core' { AInputSearch: typeof import('ant-design-vue/es')['InputSearch'] ALayout: typeof import('ant-design-vue/es')['Layout'] ALayoutContent: typeof import('ant-design-vue/es')['LayoutContent'] + ALayoutFooter: typeof import('ant-design-vue/es')['LayoutFooter'] ALayoutHeader: typeof import('ant-design-vue/es')['LayoutHeader'] ALayoutSider: typeof import('ant-design-vue/es')['LayoutSider'] AList: typeof import('ant-design-vue/es')['List'] @@ -69,6 +72,9 @@ declare module '@vue/runtime-core' { BiFiletypeXlsx: typeof import('~icons/bi/filetype-xlsx')['default'] CilFullscreen: typeof import('~icons/cil/fullscreen')['default'] CilFullscreenExit: typeof import('~icons/cil/fullscreen-exit')['default'] + ClarityColorPickerLine: typeof import('~icons/clarity/color-picker-line')['default'] + ClarityColorPickerSolid: typeof import('~icons/clarity/color-picker-solid')['default'] + ClarityImageLine: typeof import('~icons/clarity/image-line')['default'] ClaritySuccessLine: typeof import('~icons/clarity/success-line')['default'] EvaEmailOutline: typeof import('~icons/eva/email-outline')['default'] IcBaselineMoreVert: typeof import('~icons/ic/baseline-more-vert')['default'] @@ -76,6 +82,9 @@ declare module '@vue/runtime-core' { IcRoundEdit: typeof import('~icons/ic/round-edit')['default'] IcRoundKeyboardArrowDown: typeof import('~icons/ic/round-keyboard-arrow-down')['default'] IcRoundSearch: typeof import('~icons/ic/round-search')['default'] + LogosGoogleGmail: typeof import('~icons/logos/google-gmail')['default'] + LogosRedditIcon: typeof import('~icons/logos/reddit-icon')['default'] + LogosSwagger: typeof import('~icons/logos/swagger')['default'] MaterialSymbolsArrowCircleLeftRounded: typeof import('~icons/material-symbols/arrow-circle-left-rounded')['default'] MaterialSymbolsArrowCircleRightRounded: typeof import('~icons/material-symbols/arrow-circle-right-rounded')['default'] MaterialSymbolsAttachFile: typeof import('~icons/material-symbols/attach-file')['default'] @@ -90,7 +99,10 @@ declare module '@vue/runtime-core' { MdiAccount: typeof import('~icons/mdi/account')['default'] MdiAccountCircle: typeof import('~icons/mdi/account-circle')['default'] MdiAccountGroup: typeof import('~icons/mdi/account-group')['default'] + MdiAccountGroupIcon: typeof import('~icons/mdi/account-group-icon')['default'] + MdiAccountIcon: typeof import('~icons/mdi/account-icon')['default'] MdiAccountOutline: typeof import('~icons/mdi/account-outline')['default'] + MdiAccountPlus: typeof import('~icons/mdi/account-plus')['default'] MdiAccountPlusOutline: typeof import('~icons/mdi/account-plus-outline')['default'] MdiAccountSupervisorOutline: typeof import('~icons/mdi/account-supervisor-outline')['default'] MdiAlphaA: typeof import('~icons/mdi/alpha-a')['default'] @@ -99,6 +111,8 @@ declare module '@vue/runtime-core' { MdiArrowLeftBold: typeof import('~icons/mdi/arrow-left-bold')['default'] MdiAt: typeof import('~icons/mdi/at')['default'] MdiBackburger: typeof import('~icons/mdi/backburger')['default'] + MdiBookOpenOutline: typeof import('~icons/mdi/book-open-outline')['default'] + MdiBookOpenPageVariantOutline: typeof import('~icons/mdi/book-open-page-variant-outline')['default'] MdiBugOutline: typeof import('~icons/mdi/bug-outline')['default'] MdiCalculator: typeof import('~icons/mdi/calculator')['default'] MdiCalendarMonth: typeof import('~icons/mdi/calendar-month')['default'] @@ -108,6 +122,7 @@ declare module '@vue/runtime-core' { MdiCheck: typeof import('~icons/mdi/check')['default'] MdiChevronDoubleLeft: typeof import('~icons/mdi/chevron-double-left')['default'] MdiChevronDown: typeof import('~icons/mdi/chevron-down')['default'] + MdiChevronLeft: typeof import('~icons/mdi/chevron-left')['default'] MdiClose: typeof import('~icons/mdi/close')['default'] MdiCloseBox: typeof import('~icons/mdi/close-box')['default'] MdiCloseCircle: typeof import('~icons/mdi/close-circle')['default'] @@ -115,6 +130,7 @@ declare module '@vue/runtime-core' { MdiCloseThick: typeof import('~icons/mdi/close-thick')['default'] MdiCodeJson: typeof import('~icons/mdi/code-json')['default'] MdiCog: typeof import('~icons/mdi/cog')['default'] + MdiCommentTextOutline: typeof import('~icons/mdi/comment-text-outline')['default'] MdiContentCopy: typeof import('~icons/mdi/content-copy')['default'] MdiContentSave: typeof import('~icons/mdi/content-save')['default'] MdiCurrencyUsd: typeof import('~icons/mdi/currency-usd')['default'] @@ -147,10 +163,12 @@ declare module '@vue/runtime-core' { MdiFunction: typeof import('~icons/mdi/function')['default'] MdiGestureDoubleTap: typeof import('~icons/mdi/gesture-double-tap')['default'] MdiGithub: typeof import('~icons/mdi/github')['default'] + MdiGmail: typeof import('~icons/mdi/gmail')['default'] MdiGridLarge: typeof import('~icons/mdi/grid-large')['default'] MdiHeart: typeof import('~icons/mdi/heart')['default'] MdiHook: typeof import('~icons/mdi/hook')['default'] MdiInformation: typeof import('~icons/mdi/information')['default'] + MdiJson: typeof import('~icons/mdi/json')['default'] MdiKeyboardReturn: typeof import('~icons/mdi/keyboard-return')['default'] MdiKeyPlus: typeof import('~icons/mdi/key-plus')['default'] MdiKeyStar: typeof import('~icons/mdi/key-star')['default'] @@ -158,6 +176,7 @@ declare module '@vue/runtime-core' { MdiLinkVariant: typeof import('~icons/mdi/link-variant')['default'] MdiLinkVariantRemove: typeof import('~icons/mdi/link-variant-remove')['default'] MdiLoading: typeof import('~icons/mdi/loading')['default'] + MdiLockOutlineIcon: typeof import('~icons/mdi/lock-outline-icon')['default'] MdiLogin: typeof import('~icons/mdi/login')['default'] MdiLogout: typeof import('~icons/mdi/logout')['default'] MdiMagnify: typeof import('~icons/mdi/magnify')['default'] @@ -194,6 +213,7 @@ declare module '@vue/runtime-core' { MdiThumbUp: typeof import('~icons/mdi/thumb-up')['default'] MdiTrashCan: typeof import('~icons/mdi/trash-can')['default'] MdiTwitter: typeof import('~icons/mdi/twitter')['default'] + MdiUpload: typeof import('~icons/mdi/upload')['default'] MdiUploadOutline: typeof import('~icons/mdi/upload-outline')['default'] MdiViewListOutline: typeof import('~icons/mdi/view-list-outline')['default'] MdiWhatsapp: typeof import('~icons/mdi/whatsapp')['default'] diff --git a/packages/nc-gui-v2/components/cell/Decimal.vue b/packages/nc-gui-v2/components/cell/Decimal.vue index 8b5c2db0ec..42c37612ee 100644 --- a/packages/nc-gui-v2/components/cell/Decimal.vue +++ b/packages/nc-gui-v2/components/cell/Decimal.vue @@ -27,7 +27,7 @@ const focus: VNodeRef = (el) => (el as HTMLInputElement)?.focus() v-if="editEnabled" :ref="focus" v-model="vModel" - class="outline-none pa-0 border-none w-full h-full prose-sm" + class="outline-none p-0 border-none w-full h-full prose-sm" type="number" step="0.1" @blur="editEnabled = false" diff --git a/packages/nc-gui-v2/components/cell/Float.vue b/packages/nc-gui-v2/components/cell/Float.vue index 4a4f4f724f..69e35c19fe 100644 --- a/packages/nc-gui-v2/components/cell/Float.vue +++ b/packages/nc-gui-v2/components/cell/Float.vue @@ -27,7 +27,7 @@ const focus: VNodeRef = (el) => (el as HTMLInputElement)?.focus() v-if="editEnabled" :ref="focus" v-model="vModel" - class="outline-none pa-0 border-none w-full h-full prose-sm" + class="outline-none p-0 border-none w-full h-full prose-sm" type="number" step="0.1" @blur="editEnabled = false" diff --git a/packages/nc-gui-v2/components/cell/Integer.vue b/packages/nc-gui-v2/components/cell/Integer.vue index ba6c1cd2e4..25d67997b9 100644 --- a/packages/nc-gui-v2/components/cell/Integer.vue +++ b/packages/nc-gui-v2/components/cell/Integer.vue @@ -31,7 +31,7 @@ function onKeyDown(evt: KeyboardEvent) { v-if="editEnabled" :ref="focus" v-model="vModel" - class="outline-none pa-0 border-none w-full h-full prose-sm" + class="outline-none p-0 border-none w-full h-full prose-sm" type="number" @blur="editEnabled = false" @keydown="onKeyDown" diff --git a/packages/nc-gui-v2/components/cell/Text.vue b/packages/nc-gui-v2/components/cell/Text.vue index 3ae7cbc189..2c8e54d0d7 100644 --- a/packages/nc-gui-v2/components/cell/Text.vue +++ b/packages/nc-gui-v2/components/cell/Text.vue @@ -19,6 +19,12 @@ const focus: VNodeRef = (el) => (el as HTMLInputElement)?.focus() diff --git a/packages/nc-gui-v2/components/cell/attachment/Carousel.vue b/packages/nc-gui-v2/components/cell/attachment/Carousel.vue index e57c41520a..74fcf8deb9 100644 --- a/packages/nc-gui-v2/components/cell/attachment/Carousel.vue +++ b/packages/nc-gui-v2/components/cell/attachment/Carousel.vue @@ -55,7 +55,7 @@ onClickOutside(carouselRef, () => {

{{ selectedImage && selectedImage.title }}

@@ -133,7 +133,7 @@ onClickOutside(carouselRef, () => { } .ant-carousel :deep(.slick-arrow.custom-slick-arrow) { - @apply text-4xl text-white hover:text-primary active:text-pink-500 opacity-100 cursor-pointer z-1; + @apply text-4xl text-white hover:text-primary active:text-accent opacity-100 cursor-pointer z-1; } .ant-carousel :deep(.custom-slick-arrow:before) { display: none; diff --git a/packages/nc-gui-v2/components/cell/attachment/Modal.vue b/packages/nc-gui-v2/components/cell/attachment/Modal.vue index 58d6117ff6..8b754b4bfd 100644 --- a/packages/nc-gui-v2/components/cell/attachment/Modal.vue +++ b/packages/nc-gui-v2/components/cell/attachment/Modal.vue @@ -66,7 +66,7 @@ function onClick(item: Record) { class="nc-attach-file group" @click="open" > - + Attach File
@@ -83,9 +83,9 @@ function onClick(item: Record) { - +
Drop here
@@ -154,8 +154,8 @@ function onClick(item: Record) { .nc-attachment-modal { .nc-attach-file { @apply select-none cursor-pointer color-transition flex items-center gap-1 border-1 p-2 rounded - @apply hover:(bg-primary/10 text-primary ring); - @apply active:(ring-pink-500 bg-primary/20); + @apply hover:(bg-primary bg-opacity-10 text-primary ring); + @apply active:(ring-accent bg-primary bg-opacity-20); } .nc-attachment-item { @@ -176,7 +176,7 @@ function onClick(item: Record) { } &:active::after { - @apply ring ring-pink-500 shadow transform scale-103; + @apply ring ring-accent shadow transform scale-103; } } } @@ -185,7 +185,7 @@ function onClick(item: Record) { @apply bg-white absolute bottom-2 right-2; @apply transition-opacity duration-150 ease-in opacity-0 hover:ring; @apply cursor-pointer rounded shadow flex items-center p-1 border-1; - @apply active:(ring border-0 ring-pink-500); + @apply active:(ring border-0 ring-accent); } .nc-attachment-remove { diff --git a/packages/nc-gui-v2/components/cell/attachment/index.vue b/packages/nc-gui-v2/components/cell/attachment/index.vue index f2e47339b7..7d534b761a 100644 --- a/packages/nc-gui-v2/components/cell/attachment/index.vue +++ b/packages/nc-gui-v2/components/cell/attachment/index.vue @@ -100,16 +100,16 @@ const { isSharedForm } = useSmartsheetStoreOrThrow() v-model="isOverDropZone" inline :target="currentCellRef" - class="text-white text-lg ring ring-pink-500 bg-gray-700/75 flex items-center justify-center gap-2 backdrop-blur-xl" + class="text-white text-lg ring ring-accent bg-gray-700/75 flex items-center justify-center gap-2 backdrop-blur-xl" > - Drop here + Drop here
@@ -118,7 +118,7 @@ const { isSharedForm } = useSmartsheetStoreOrThrow()
- +
Add file(s)
@@ -160,14 +160,14 @@ const { isSharedForm } = useSmartsheetStoreOrThrow()
-
+
diff --git a/packages/nc-gui-v2/components/dashboard/TreeView.vue b/packages/nc-gui-v2/components/dashboard/TreeView.vue index 4e2827f107..74e081dedb 100644 --- a/packages/nc-gui-v2/components/dashboard/TreeView.vue +++ b/packages/nc-gui-v2/components/dashboard/TreeView.vue @@ -220,12 +220,9 @@ function openTableCreateDialog() {