feat: brand new version of icons (#3496)

This commit is contained in:
JimmFly
2023-08-01 13:51:30 +08:00
committed by GitHub
parent 16e22e614b
commit 70f3508005
8 changed files with 24 additions and 23 deletions

View File

@@ -22,7 +22,7 @@
"@blocksuite/blocks": "0.0.0-20230730071529-580daeb9-nightly", "@blocksuite/blocks": "0.0.0-20230730071529-580daeb9-nightly",
"@blocksuite/editor": "0.0.0-20230730071529-580daeb9-nightly", "@blocksuite/editor": "0.0.0-20230730071529-580daeb9-nightly",
"@blocksuite/global": "0.0.0-20230730071529-580daeb9-nightly", "@blocksuite/global": "0.0.0-20230730071529-580daeb9-nightly",
"@blocksuite/icons": "^2.1.27", "@blocksuite/icons": "^2.1.29",
"@blocksuite/lit": "0.0.0-20230730071529-580daeb9-nightly", "@blocksuite/lit": "0.0.0-20230730071529-580daeb9-nightly",
"@blocksuite/store": "0.0.0-20230730071529-580daeb9-nightly", "@blocksuite/store": "0.0.0-20230730071529-580daeb9-nightly",
"@dnd-kit/core": "^6.0.8", "@dnd-kit/core": "^6.0.8",

View File

@@ -34,7 +34,7 @@
"@blocksuite/blocks": "0.0.0-20230730071529-580daeb9-nightly", "@blocksuite/blocks": "0.0.0-20230730071529-580daeb9-nightly",
"@blocksuite/editor": "0.0.0-20230730071529-580daeb9-nightly", "@blocksuite/editor": "0.0.0-20230730071529-580daeb9-nightly",
"@blocksuite/global": "0.0.0-20230730071529-580daeb9-nightly", "@blocksuite/global": "0.0.0-20230730071529-580daeb9-nightly",
"@blocksuite/icons": "^2.1.27", "@blocksuite/icons": "^2.1.29",
"@blocksuite/lit": "0.0.0-20230730071529-580daeb9-nightly", "@blocksuite/lit": "0.0.0-20230730071529-580daeb9-nightly",
"@blocksuite/store": "0.0.0-20230730071529-580daeb9-nightly", "@blocksuite/store": "0.0.0-20230730071529-580daeb9-nightly",
"react": "18.2.0", "react": "18.2.0",

View File

@@ -55,7 +55,7 @@
"@blocksuite/blocks": "0.0.0-20230730071529-580daeb9-nightly", "@blocksuite/blocks": "0.0.0-20230730071529-580daeb9-nightly",
"@blocksuite/editor": "0.0.0-20230730071529-580daeb9-nightly", "@blocksuite/editor": "0.0.0-20230730071529-580daeb9-nightly",
"@blocksuite/global": "0.0.0-20230730071529-580daeb9-nightly", "@blocksuite/global": "0.0.0-20230730071529-580daeb9-nightly",
"@blocksuite/icons": "^2.1.27", "@blocksuite/icons": "^2.1.29",
"@blocksuite/lit": "0.0.0-20230730071529-580daeb9-nightly", "@blocksuite/lit": "0.0.0-20230730071529-580daeb9-nightly",
"@blocksuite/store": "0.0.0-20230730071529-580daeb9-nightly", "@blocksuite/store": "0.0.0-20230730071529-580daeb9-nightly",
"@types/react": "^18.2.17", "@types/react": "^18.2.17",

View File

@@ -5,9 +5,10 @@ import type {
VariableMap, VariableMap,
} from '@affine/env/filter'; } from '@affine/env/filter';
import { import {
DateTimeIcon, CreatedIcon,
FavoritedIcon, FavoriteIcon,
MultiSelectIcon, TagsIcon,
UpdatedIcon,
} from '@blocksuite/icons'; } from '@blocksuite/icons';
import type { ReactElement } from 'react'; import type { ReactElement } from 'react';
@@ -29,19 +30,19 @@ export type FilterVariable = {
export const variableDefineMap = { export const variableDefineMap = {
Created: { Created: {
type: () => tDate.create(), type: () => tDate.create(),
icon: <DateTimeIcon />, icon: <CreatedIcon />,
}, },
Updated: { Updated: {
type: () => tDate.create(), type: () => tDate.create(),
icon: <DateTimeIcon />, icon: <UpdatedIcon />,
}, },
'Is Favourited': { 'Is Favourited': {
type: () => tBoolean.create(), type: () => tBoolean.create(),
icon: <FavoritedIcon />, icon: <FavoriteIcon />,
}, },
Tags: { Tags: {
type: meta => tArray(tTag.create({ tags: meta.tags.options })), type: meta => tArray(tTag.create({ tags: meta.tags.options })),
icon: <MultiSelectIcon />, icon: <TagsIcon />,
}, },
// Imported: { // Imported: {
// type: tBoolean.create(), // type: tBoolean.create(),

View File

@@ -19,7 +19,7 @@
}, },
"dependencies": { "dependencies": {
"@affine/component": "workspace:*", "@affine/component": "workspace:*",
"@blocksuite/icons": "^2.1.27", "@blocksuite/icons": "^2.1.29",
"@toeverything/plugin-infra": "workspace:*", "@toeverything/plugin-infra": "workspace:*",
"foxact": "^0.2.17", "foxact": "^0.2.17",
"link-preview-js": "^3.0.4" "link-preview-js": "^3.0.4"

View File

@@ -16,7 +16,7 @@
}, },
"dependencies": { "dependencies": {
"@affine/component": "workspace:*", "@affine/component": "workspace:*",
"@blocksuite/icons": "^2.1.27", "@blocksuite/icons": "^2.1.29",
"@toeverything/plugin-infra": "workspace:*" "@toeverything/plugin-infra": "workspace:*"
}, },
"devDependencies": { "devDependencies": {

View File

@@ -15,7 +15,7 @@
}, },
"dependencies": { "dependencies": {
"@affine/component": "workspace:*", "@affine/component": "workspace:*",
"@blocksuite/icons": "^2.1.27", "@blocksuite/icons": "^2.1.29",
"@toeverything/plugin-infra": "workspace:*", "@toeverything/plugin-infra": "workspace:*",
"@toeverything/theme": "^0.7.9", "@toeverything/theme": "^0.7.9",
"clsx": "^2.0.0", "clsx": "^2.0.0",

View File

@@ -80,7 +80,7 @@ __metadata:
dependencies: dependencies:
"@affine/component": "workspace:*" "@affine/component": "workspace:*"
"@affine/plugin-cli": "workspace:*" "@affine/plugin-cli": "workspace:*"
"@blocksuite/icons": ^2.1.27 "@blocksuite/icons": ^2.1.29
"@toeverything/plugin-infra": "workspace:*" "@toeverything/plugin-infra": "workspace:*"
foxact: ^0.2.17 foxact: ^0.2.17
link-preview-js: ^3.0.4 link-preview-js: ^3.0.4
@@ -114,7 +114,7 @@ __metadata:
"@blocksuite/blocks": 0.0.0-20230730071529-580daeb9-nightly "@blocksuite/blocks": 0.0.0-20230730071529-580daeb9-nightly
"@blocksuite/editor": 0.0.0-20230730071529-580daeb9-nightly "@blocksuite/editor": 0.0.0-20230730071529-580daeb9-nightly
"@blocksuite/global": 0.0.0-20230730071529-580daeb9-nightly "@blocksuite/global": 0.0.0-20230730071529-580daeb9-nightly
"@blocksuite/icons": ^2.1.27 "@blocksuite/icons": ^2.1.29
"@blocksuite/lit": 0.0.0-20230730071529-580daeb9-nightly "@blocksuite/lit": 0.0.0-20230730071529-580daeb9-nightly
"@blocksuite/store": 0.0.0-20230730071529-580daeb9-nightly "@blocksuite/store": 0.0.0-20230730071529-580daeb9-nightly
"@dnd-kit/core": ^6.0.8 "@dnd-kit/core": ^6.0.8
@@ -205,7 +205,7 @@ __metadata:
"@blocksuite/blocks": 0.0.0-20230730071529-580daeb9-nightly "@blocksuite/blocks": 0.0.0-20230730071529-580daeb9-nightly
"@blocksuite/editor": 0.0.0-20230730071529-580daeb9-nightly "@blocksuite/editor": 0.0.0-20230730071529-580daeb9-nightly
"@blocksuite/global": 0.0.0-20230730071529-580daeb9-nightly "@blocksuite/global": 0.0.0-20230730071529-580daeb9-nightly
"@blocksuite/icons": ^2.1.27 "@blocksuite/icons": ^2.1.29
"@blocksuite/lit": 0.0.0-20230730071529-580daeb9-nightly "@blocksuite/lit": 0.0.0-20230730071529-580daeb9-nightly
"@blocksuite/store": 0.0.0-20230730071529-580daeb9-nightly "@blocksuite/store": 0.0.0-20230730071529-580daeb9-nightly
"@dnd-kit/core": ^6.0.8 "@dnd-kit/core": ^6.0.8
@@ -386,7 +386,7 @@ __metadata:
dependencies: dependencies:
"@affine/component": "workspace:*" "@affine/component": "workspace:*"
"@affine/plugin-cli": "workspace:*" "@affine/plugin-cli": "workspace:*"
"@blocksuite/icons": ^2.1.27 "@blocksuite/icons": ^2.1.29
"@toeverything/plugin-infra": "workspace:*" "@toeverything/plugin-infra": "workspace:*"
languageName: unknown languageName: unknown
linkType: soft linkType: soft
@@ -411,7 +411,7 @@ __metadata:
dependencies: dependencies:
"@affine/component": "workspace:*" "@affine/component": "workspace:*"
"@affine/plugin-cli": "workspace:*" "@affine/plugin-cli": "workspace:*"
"@blocksuite/icons": ^2.1.27 "@blocksuite/icons": ^2.1.29
"@toeverything/plugin-infra": "workspace:*" "@toeverything/plugin-infra": "workspace:*"
"@toeverything/theme": ^0.7.9 "@toeverything/theme": ^0.7.9
clsx: ^2.0.0 clsx: ^2.0.0
@@ -607,7 +607,7 @@ __metadata:
"@blocksuite/blocks": 0.0.0-20230730071529-580daeb9-nightly "@blocksuite/blocks": 0.0.0-20230730071529-580daeb9-nightly
"@blocksuite/editor": 0.0.0-20230730071529-580daeb9-nightly "@blocksuite/editor": 0.0.0-20230730071529-580daeb9-nightly
"@blocksuite/global": 0.0.0-20230730071529-580daeb9-nightly "@blocksuite/global": 0.0.0-20230730071529-580daeb9-nightly
"@blocksuite/icons": ^2.1.27 "@blocksuite/icons": ^2.1.29
"@blocksuite/lit": 0.0.0-20230730071529-580daeb9-nightly "@blocksuite/lit": 0.0.0-20230730071529-580daeb9-nightly
"@blocksuite/store": 0.0.0-20230730071529-580daeb9-nightly "@blocksuite/store": 0.0.0-20230730071529-580daeb9-nightly
"@storybook/addon-actions": ^7.1.1 "@storybook/addon-actions": ^7.1.1
@@ -3377,13 +3377,13 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@blocksuite/icons@npm:^2.1.27": "@blocksuite/icons@npm:^2.1.29":
version: 2.1.27 version: 2.1.29
resolution: "@blocksuite/icons@npm:2.1.27" resolution: "@blocksuite/icons@npm:2.1.29"
peerDependencies: peerDependencies:
"@types/react": ^18.0.25 "@types/react": ^18.0.25
react: ^18.2.0 react: ^18.2.0
checksum: eeee4b02479ad4a79c6e11fd150c7921dd87ab5dff0b770b5a70306b2d100af259fe41be44e5d9e215b24af33da9f39e40c59be452b4b4d96b452f9a4f176341 checksum: f853a709fc74aa79c4deb8d19d5554f0c18f5cafdef617338fdbc85fcc9b45e7adfa79ec27cf01e2dc6af6cb278efececfbac5da1cbc6cfe031d8f1abe73607b
languageName: node languageName: node
linkType: hard linkType: hard