Skip to content

Commit

Permalink
release: @tiptiz/icons v0.0.1
Browse files Browse the repository at this point in the history
current existing icons
  • Loading branch information
aolyang committed Jan 16, 2025
1 parent b909476 commit a04d0fa
Show file tree
Hide file tree
Showing 55 changed files with 80 additions and 82 deletions.
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"@tiptap/extension-history": "^2.10.3",
"@tiptap/pm": "^2.10.3",
"@tiptap/react": "^2.10.4",
"@tiptiz/editor-icons": "workspace:*",
"@tiptiz/icons": "workspace:*",
"@tiptiz/rich-suits": "workspace:*",
"clsx": "^2.1.1",
"emoji-picker-element": "^1.26.0",
Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/editor-toolbars/Blockquote.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ediBlockquote } from "@tiptiz/editor-icons"
import { ediBlockquote } from "@tiptiz/icons"

import IconBar from "@/components/IconBar"

Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/editor-toolbars/BulletList.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Icon } from "@mdi/react"
import { ediBulletList, ediListCircle, ediListDisc, ediListSquare } from "@tiptiz/editor-icons"
import { ediBulletList, ediListCircle, ediListDisc, ediListSquare } from "@tiptiz/icons"

import PlainTextSelect from "@/components/PlainTextSelect"

Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/editor-toolbars/CheckList.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ediCheckList } from "@tiptiz/editor-icons"
import { ediCheckList } from "@tiptiz/icons"

import IconBar from "@/components/IconBar"

Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/editor-toolbars/CodeBlock.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ediCodeBlock } from "@tiptiz/editor-icons"
import { ediCodeBlock } from "@tiptiz/icons"

import IconBar from "@/components/IconBar"

Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/editor-toolbars/ColorFill.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Icon, Stack } from "@mdi/react"
import { Button, Tooltip } from "@mui/material"
import { ediColorFill, ediColorHelper } from "@tiptiz/editor-icons"
import { ediColorFill, ediColorHelper } from "@tiptiz/icons"

interface ColorTextProps {
color?: string
Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/editor-toolbars/ColorText.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Icon, Stack } from "@mdi/react"
import { Button, Tooltip } from "@mui/material"
import { ediColorHelper, ediColorText } from "@tiptiz/editor-icons"
import { ediColorHelper, ediColorText } from "@tiptiz/icons"

interface ColorTextProps {
color?: string
Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/editor-toolbars/Emoji.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ediEmoji } from "@tiptiz/editor-icons"
import { ediEmoji } from "@tiptiz/icons"

import IconBar from "@/components/IconBar"

Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/editor-toolbars/FontBold.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ediBold } from "@tiptiz/editor-icons"
import { ediBold } from "@tiptiz/icons"

import IconBar from "@/components/IconBar"

Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/editor-toolbars/FontItalic.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ediItalic } from "@tiptiz/editor-icons"
import { ediItalic } from "@tiptiz/icons"

import IconBar from "@/components/IconBar"

Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/editor-toolbars/FontSizeMinus.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ediFontSizeMinus } from "@tiptiz/editor-icons"
import { ediFontSizeMinus } from "@tiptiz/icons"

import IconBar from "@/components/IconBar"

Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/editor-toolbars/FontSizePus.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ediFontSizePlus } from "@tiptiz/editor-icons"
import { ediFontSizePlus } from "@tiptiz/icons"

import IconBar from "@/components/IconBar"

Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/editor-toolbars/FontStrike.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ediStrike } from "@tiptiz/editor-icons"
import { ediStrike } from "@tiptiz/icons"

import IconBar from "@/components/IconBar"

Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/editor-toolbars/FontSubscript.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ediSubscript } from "@tiptiz/editor-icons"
import { ediSubscript } from "@tiptiz/icons"

import IconBar from "@/components/IconBar"

Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/editor-toolbars/FontSuperscript.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ediSuperscript } from "@tiptiz/editor-icons"
import { ediSuperscript } from "@tiptiz/icons"

import IconBar from "@/components/IconBar"

Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/editor-toolbars/FontUnderline.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ediUnderline } from "@tiptiz/editor-icons"
import { ediUnderline } from "@tiptiz/icons"

import IconBar from "@/components/IconBar"

Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/editor-toolbars/FormatBrush.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ediBrush } from "@tiptiz/editor-icons"
import { ediBrush } from "@tiptiz/icons"

import IconBar from "@/components/IconBar"

Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/editor-toolbars/FormatClear.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ediEraser } from "@tiptiz/editor-icons"
import { ediEraser } from "@tiptiz/icons"

import IconBar from "@/components/IconBar"

Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/editor-toolbars/HeadingLevel.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Icon } from "@mdi/react"
import { ediHeading1, ediHeading2, ediHeading3, ediHeading4, ediHeading5, ediHeading6 } from "@tiptiz/editor-icons"
import { ediHeading1, ediHeading2, ediHeading3, ediHeading4, ediHeading5, ediHeading6 } from "@tiptiz/icons"

import PlainTextSelect from "@/components/PlainTextSelect"

Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/editor-toolbars/InsertImage.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ediImage } from "@tiptiz/editor-icons"
import { ediImage } from "@tiptiz/icons"

import IconBar from "@/components/IconBar"

Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/editor-toolbars/LiftList.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ediLiftList } from "@tiptiz/editor-icons"
import { ediLiftList } from "@tiptiz/icons"

import IconBar from "@/components/IconBar"

Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/editor-toolbars/LineHeight.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Icon } from "@mdi/react"
import { ediLineHeight } from "@tiptiz/editor-icons"
import { ediLineHeight } from "@tiptiz/icons"

import PlainTextDropdown from "../PlainTextDropdown"

Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/editor-toolbars/Margin.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Icon } from "@mdi/react"
import { ediMargin } from "@tiptiz/editor-icons"
import { ediMargin } from "@tiptiz/icons"

import PlainTextDropdown from "@/components/PlainTextDropdown"

Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/editor-toolbars/PageBreak.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ediPageBreak } from "@tiptiz/editor-icons"
import { ediPageBreak } from "@tiptiz/icons"

import IconBar from "@/components/IconBar"

Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/editor-toolbars/Redo.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ediRedo } from "@tiptiz/editor-icons"
import { ediRedo } from "@tiptiz/icons"

import IconBar from "@/components/IconBar"

Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/editor-toolbars/SinkList.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ediSinkList } from "@tiptiz/editor-icons"
import { ediSinkList } from "@tiptiz/icons"

import IconBar from "@/components/IconBar"

Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/editor-toolbars/TableAddColAfter.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ediTableAddColAfter } from "@tiptiz/editor-icons"
import { ediTableAddColAfter } from "@tiptiz/icons"

import IconBar from "@/components/IconBar"

Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/editor-toolbars/TableAddColBefore.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ediTableAddColBefore } from "@tiptiz/editor-icons"
import { ediTableAddColBefore } from "@tiptiz/icons"

import IconBar from "@/components/IconBar"

Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/editor-toolbars/TableAddRowAfter.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ediTableAddRowAfter } from "@tiptiz/editor-icons"
import { ediTableAddRowAfter } from "@tiptiz/icons"

import IconBar from "@/components/IconBar"

Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/editor-toolbars/TableAddRowBefore.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ediTableAddRowBefore } from "@tiptiz/editor-icons"
import { ediTableAddRowBefore } from "@tiptiz/icons"

import IconBar from "@/components/IconBar"

Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/editor-toolbars/TableColRemove.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ediTableColumnRemove } from "@tiptiz/editor-icons"
import { ediTableColumnRemove } from "@tiptiz/icons"

import IconBar from "@/components/IconBar"

Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/editor-toolbars/TableMergeCells.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ediTableMergeCells } from "@tiptiz/editor-icons"
import { ediTableMergeCells } from "@tiptiz/icons"

import IconBar from "@/components/IconBar"

Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/editor-toolbars/TableNew.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ediTableNew } from "@tiptiz/editor-icons"
import { ediTableNew } from "@tiptiz/icons"

import IconBar from "@/components/IconBar"

Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/editor-toolbars/TableRefresh.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ediTableRefresh } from "@tiptiz/editor-icons"
import { ediTableRefresh } from "@tiptiz/icons"

import IconBar from "@/components/IconBar"

Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/editor-toolbars/TableRemoveAll.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ediTableRemove } from "@tiptiz/editor-icons"
import { ediTableRemove } from "@tiptiz/icons"

import IconBar from "@/components/IconBar"

Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/editor-toolbars/TableRowRemove.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ediTableRowRemove } from "@tiptiz/editor-icons"
import { ediTableRowRemove } from "@tiptiz/icons"

import IconBar from "@/components/IconBar"

Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/editor-toolbars/TableSplitCell.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ediTableSplitCell } from "@tiptiz/editor-icons"
import { ediTableSplitCell } from "@tiptiz/icons"

import IconBar from "@/components/IconBar"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ediToggleTableHeaderCell } from "@tiptiz/editor-icons"
import { ediToggleTableHeaderCell } from "@tiptiz/icons"

import IconBar from "@/components/IconBar"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ediToggleTableHeaderLeft } from "@tiptiz/editor-icons"
import { ediToggleTableHeaderLeft } from "@tiptiz/icons"

import IconBar from "@/components/IconBar"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ediToggleTableHeaderTop } from "@tiptiz/editor-icons"
import { ediToggleTableHeaderTop } from "@tiptiz/icons"

import IconBar from "@/components/IconBar"

Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/editor-toolbars/TextAlignCenter.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ediAlignCenter } from "@tiptiz/editor-icons"
import { ediAlignCenter } from "@tiptiz/icons"

import IconBar from "@/components/IconBar"

Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/editor-toolbars/TextAlignJustify.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ediAlignJustify } from "@tiptiz/editor-icons"
import { ediAlignJustify } from "@tiptiz/icons"

import IconBar from "@/components/IconBar"

Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/editor-toolbars/TextAlignLeft.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ediAlignLeft } from "@tiptiz/editor-icons"
import { ediAlignLeft } from "@tiptiz/icons"

import IconBar from "@/components/IconBar"

Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/editor-toolbars/TextAlignRight.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ediAlignRight } from "@tiptiz/editor-icons"
import { ediAlignRight } from "@tiptiz/icons"

import IconBar from "@/components/IconBar"

Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/editor-toolbars/TextIndentDec.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ediIndentDec } from "@tiptiz/editor-icons"
import { ediIndentDec } from "@tiptiz/icons"

import IconBar from "@/components/IconBar"

Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/editor-toolbars/TextIndentInc.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ediIndentInc } from "@tiptiz/editor-icons"
import { ediIndentInc } from "@tiptiz/icons"

import IconBar from "@/components/IconBar"

Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/editor-toolbars/Undo.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ediUndo } from "@tiptiz/editor-icons"
import { ediUndo } from "@tiptiz/icons"

import IconBar from "@/components/IconBar"

Expand Down
32 changes: 16 additions & 16 deletions docs/src/components/page-index/ToolbarAllIcons.tsx
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
"use client"

import { Checkbox, FormControlLabel } from "@mui/material"
import { ediBrush, ediEraser, ediRedo, ediUndo } from "@tiptiz/editor-icons"
import { ediFontSizeMinus, ediFontSizePlus } from "@tiptiz/editor-icons"
import { ediHeading1, ediHeading2, ediHeading3, ediHeading4, ediHeading5, ediHeading6 } from "@tiptiz/editor-icons"
import { ediHeadingDec, ediHeadingHash, ediHeadingInc } from "@tiptiz/editor-icons"
import { ediBold, ediItalic, ediStrike, ediSubscript, ediSuperscript, ediUnderline } from "@tiptiz/editor-icons"
import { ediColorFill, ediColorHelper, ediColorText } from "@tiptiz/editor-icons"
import { ediAlignCenter, ediAlignJustify, ediAlignLeft, ediAlignRight } from "@tiptiz/editor-icons"
import { ediIndentDec, ediIndentInc } from "@tiptiz/editor-icons"
import { ediBulletList, ediCheckList, ediListCircle, ediListDisc, ediListSquare } from "@tiptiz/editor-icons"
import { ediLiftList, ediSinkList } from "@tiptiz/editor-icons"
import { ediBlockquote, ediCodeBlock, ediEmoji, ediHorizontalRule, ediImage } from "@tiptiz/editor-icons"
import { ediBrush, ediEraser, ediRedo, ediUndo } from "@tiptiz/icons"
import { ediFontSizeMinus, ediFontSizePlus } from "@tiptiz/icons"
import { ediHeading1, ediHeading2, ediHeading3, ediHeading4, ediHeading5, ediHeading6 } from "@tiptiz/icons"
import { ediHeadingDec, ediHeadingHash, ediHeadingInc } from "@tiptiz/icons"
import { ediBold, ediItalic, ediStrike, ediSubscript, ediSuperscript, ediUnderline } from "@tiptiz/icons"
import { ediColorFill, ediColorHelper, ediColorText } from "@tiptiz/icons"
import { ediAlignCenter, ediAlignJustify, ediAlignLeft, ediAlignRight } from "@tiptiz/icons"
import { ediIndentDec, ediIndentInc } from "@tiptiz/icons"
import { ediBulletList, ediCheckList, ediListCircle, ediListDisc, ediListSquare } from "@tiptiz/icons"
import { ediLiftList, ediSinkList } from "@tiptiz/icons"
import { ediBlockquote, ediCodeBlock, ediEmoji, ediHorizontalRule, ediImage } from "@tiptiz/icons"
import {
ediTableAddColAfter,
ediTableAddColBefore,
ediTableAddRowAfter,
ediTableAddRowBefore
} from "@tiptiz/editor-icons"
import { ediTableNew, ediTableRefresh, ediTableRemove } from "@tiptiz/editor-icons"
import { ediTableColumnRemove, ediTableMergeCells, ediTableRowRemove, ediTableSplitCell } from "@tiptiz/editor-icons"
import { ediToggleTableHeaderCell, ediToggleTableHeaderLeft, ediToggleTableHeaderTop } from "@tiptiz/editor-icons"
import { ediPageBreak } from "@tiptiz/editor-icons"
} from "@tiptiz/icons"
import { ediTableNew, ediTableRefresh, ediTableRemove } from "@tiptiz/icons"
import { ediTableColumnRemove, ediTableMergeCells, ediTableRowRemove, ediTableSplitCell } from "@tiptiz/icons"
import { ediToggleTableHeaderCell, ediToggleTableHeaderLeft, ediToggleTableHeaderTop } from "@tiptiz/icons"
import { ediPageBreak } from "@tiptiz/icons"
import { useEffect, useState } from "react"

import IconBar from "@/components/IconBar"
Expand Down
2 changes: 1 addition & 1 deletion docs/src/content/en/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import ToolbarReallySmall from "@/components/page-index/ToolbarReallySmall"
<Heading />

```bash
pnpm add @tiptiz/editor-icons
pnpm add @tiptiz/icons
```

<TiptapEditor>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/content/zh/docs/resources/icons.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pnpm i @tiptiz/icons
```

```js
import { ediUndo, ediRedo } from "@tiptiz/editor-icons"
import { ediUndo, ediRedo } from "@tiptiz/icons"
import { Icon } from "@mdi/react"

<Icon path={ediUndo} size={1} />
Expand Down
2 changes: 1 addition & 1 deletion docs/src/content/zh/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import ToolbarReallySmall from "@/components/page-index/ToolbarReallySmall"
<Heading />

```bash
pnpm add @tiptiz/editor-icons
pnpm add @tiptiz/icons
```

<TiptapEditor>
Expand Down
2 changes: 1 addition & 1 deletion packages/tiptiz-editor-icons/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ https://github.com/Templarian/MaterialDesign-JS?tab=readme-ov-file#readme

```jsx
import { mdiIcon } from "@mdi/js"
import { ediUndo, ediRedo } from "@tiptiz/editor-icons"
import { ediUndo, ediRedo } from "@tiptiz/icons"

import { Icon } from "@mdi/react"

Expand Down
15 changes: 8 additions & 7 deletions packages/tiptiz-editor-icons/package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
{
"name": "@tiptiz/editor-icons",
"name": "@tiptiz/icons",
"version": "0.0.1",
"license": "MIT",
"type": "module",
"repository": "https://github.com/tiptiz/editor.git",
"author": "aolyang <[email protected]>",
"exports": {
".": {
"import": "./src/index.ts"
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts"
}
},
"devDependencies": {
"@mdi/js": "^7.4.47"
},
"peerDependencies": {
"@mdi/js": "^7.4.47"
"files": ["dist", "README.md"],
"scripts": {
"build": "tsup src/index.ts --format esm,cjs --sourcemap && tsup src/index.ts --format esm --dts-only"
}
}
Loading

0 comments on commit a04d0fa

Please sign in to comment.