diff --git a/web/app/components/datasets/create/step-one/index.module.css b/web/app/components/datasets/create/step-one/index.module.css
index bb8dd9b895..9658724a89 100644
--- a/web/app/components/datasets/create/step-one/index.module.css
+++ b/web/app/components/datasets/create/step-one/index.module.css
@@ -3,9 +3,6 @@
top: 0;
left: 0;
padding: 42px 64px 12px 0;
- font-weight: 600;
- font-size: 18px;
- line-height: 28px;
}
.form {
@@ -14,38 +11,22 @@
}
.dataSourceItem {
- @apply box-border relative grow shrink-0 flex items-center p-3 h-14 bg-white rounded-xl cursor-pointer;
- border: 0.5px solid #EAECF0;
- box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
- font-weight: 500;
- font-size: 14px;
- line-height: 20px;
- color: #101828;
+ @apply relative grow shrink-0 flex items-center p-3 h-14 bg-components-option-card-option-bg rounded-xl
+ cursor-pointer border border-components-option-card-option-border text-text-secondary;
}
.dataSourceItem:hover {
- background-color: #f5f8ff;
- border: 0.5px solid #B2CCFF;
- box-shadow: 0px 12px 16px -4px rgba(16, 24, 40, 0.08), 0px 4px 6px -2px rgba(16, 24, 40, 0.03);
+ @apply bg-components-option-card-option-bg-hover border border-components-option-card-option-border-hover shadow-xs shadow-shadow-shadow-3;
}
.dataSourceItem.active {
- background-color: #f5f8ff;
- border: 1.5px solid #528BFF;
- box-shadow: 0px 1px 3px rgba(16, 24, 40, 0.1), 0px 1px 2px rgba(16, 24, 40, 0.06);
-}
-
-.dataSourceItem.disabled {
- background-color: #f9fafb;
- border: 0.5px solid #EAECF0;
- box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
- cursor: default;
+ @apply bg-components-option-card-option-selected-bg border border-components-option-card-option-selected-border
+ shadow-emulate-border shadow-components-option-card-option-selected-border;
}
+.dataSourceItem.disabled,
.dataSourceItem.disabled:hover {
- background-color: #f9fafb;
- border: 0.5px solid #EAECF0;
- box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
+ @apply bg-components-option-card-option-bg border-[0.5px] border-components-option-card-option-border cursor-not-allowed text-text-disabled shadow-none;
}
.comingTag {
@@ -64,17 +45,9 @@
}
.datasetIcon {
- @apply flex mr-2 w-8 h-8 rounded-lg bg-center bg-no-repeat;
- background-color: #F5FAFF;
+ @apply flex mr-2 w-8 h-8 rounded-lg bg-center bg-no-repeat bg-text-primary-on-surface border-[0.5px] border-divider-regular backdrop-blur-sm;
background-image: url(../assets/file.svg);
background-size: 16px;
- border: 0.5px solid #D1E9FF;
-}
-
-.dataSourceItem:active .datasetIcon,
-.dataSourceItem:hover .datasetIcon {
- background-color: #F5F8FF;
- border: 0.5px solid #E0EAFF;
}
.datasetIcon.notion {
@@ -97,54 +70,7 @@
background-color: #eaecf0;
}
-.notionConnectionTip {
- display: flex;
- flex-direction: column;
- align-items: flex-start;
- padding: 24px;
- width: 640px;
- background: #F9FAFB;
- border-radius: 16px;
-}
-
.notionIcon {
- display: flex;
- padding: 12px;
- width: 48px;
- height: 48px;
- background: #fff center no-repeat url(../assets/notion.svg);
+ background: var(--color-components-card-bg) center no-repeat url(../assets/notion.svg);
background-size: 24px;
- border: 0.5px solid #EAECF5;
- box-shadow: 0px 12px 16px -4px rgba(16, 24, 40, 0.08), 0px 4px 6px -2px rgba(16, 24, 40, 0.03);
- border-radius: 12px;
-}
-
-.notionConnectionTip .title {
- position: relative;
- margin: 24px 0 4px;
- font-style: normal;
- font-weight: 600;
- font-size: 16px;
- line-height: 24px;
- color: #374151;
-}
-
-.notionConnectionTip .title::after {
- content: '';
- position: absolute;
- top: -6px;
- right: -12px;
- width: 16px;
- height: 16px;
- background: center no-repeat url(../assets/Icon-3-dots.svg);
- background-size: contain;
-}
-
-.notionConnectionTip .tip {
- margin-bottom: 20px;
- font-style: normal;
- font-weight: 400;
- font-size: 13px;
- line-height: 18px;
- color: #6B7280;
}
\ No newline at end of file
diff --git a/web/app/components/datasets/create/step-one/index.tsx b/web/app/components/datasets/create/step-one/index.tsx
index 2cca003b39..c5c79d4b62 100644
--- a/web/app/components/datasets/create/step-one/index.tsx
+++ b/web/app/components/datasets/create/step-one/index.tsx
@@ -19,6 +19,7 @@ import { useDatasetDetailContext } from '@/context/dataset-detail'
import { useProviderContext } from '@/context/provider-context'
import VectorSpaceFull from '@/app/components/billing/vector-space-full'
import classNames from '@/utils/classnames'
+import { Icon3Dots } from '@/app/components/base/icons/src/vender/line/others'
type IStepOneProps = {
datasetId?: string
@@ -48,10 +49,15 @@ export const NotionConnector = ({ onSetting }: NotionConnectorProps) => {
const { t } = useTranslation()
return (
-
-
-
{t('datasetCreation.stepOne.notionSyncTitle')}
-
{t('datasetCreation.stepOne.notionSyncTip')}
+
+
+
+
+ {t('datasetCreation.stepOne.notionSyncTitle')}
+
+
+
{t('datasetCreation.stepOne.notionSyncTip')}
+
)
@@ -132,7 +138,9 @@ const StepOne = ({
{
shouldShowDataSourceTypeList && (
-
{t('datasetCreation.steps.one')}
+
+ {t('datasetCreation.steps.one')}
+
)
}
{
@@ -141,6 +149,7 @@ const StepOne = ({
= ({
return (