generated from Klectr/KTemplate
feat/text-support #9
@ -3,7 +3,6 @@ import { TextSignal, focusedItem } from "../signals"
|
|||||||
import { useDebounce } from "../utils/useDebounce"
|
import { useDebounce } from "../utils/useDebounce"
|
||||||
import texts, { TextCardType } from "../signals/texts"
|
import texts, { TextCardType } from "../signals/texts"
|
||||||
import { LayerEnum } from "../utils/enums"
|
import { LayerEnum } from "../utils/enums"
|
||||||
import { isTheme } from "../utils/isTheme"
|
|
||||||
|
|
||||||
namespace TextItem {
|
namespace TextItem {
|
||||||
export interface TextCardProps {
|
export interface TextCardProps {
|
||||||
@ -13,7 +12,6 @@ namespace TextItem {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function TextItem({ key: itemKey, data: item }: TextItem.TextCardProps) {
|
export function TextItem({ key: itemKey, data: item }: TextItem.TextCardProps) {
|
||||||
const saved = signal(true)
|
|
||||||
const pressed = signal(false)
|
const pressed = signal(false)
|
||||||
const newX = useRef(0)
|
const newX = useRef(0)
|
||||||
const newY = useRef(0)
|
const newY = useRef(0)
|
||||||
|
@ -42,22 +42,5 @@ export function TextButton() {
|
|||||||
<path d="M8 12h8" />
|
<path d="M8 12h8" />
|
||||||
</svg>
|
</svg>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
<svg
|
|
||||||
onclick={_handleClick}
|
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
|
||||||
width="24"
|
|
||||||
height="24"
|
|
||||||
viewBox="0 0 24 24"
|
|
||||||
fill="none"
|
|
||||||
stroke="currentColor"
|
|
||||||
stroke-width="2"
|
|
||||||
stroke-linecap="round"
|
|
||||||
stroke-linejoin="round"
|
|
||||||
className={defaultClassName}
|
|
||||||
>
|
|
||||||
<path d="M4 20h16" />
|
|
||||||
<path d="m6 16 6-12 6 12" />
|
|
||||||
<path d="M8 12h8" />
|
|
||||||
</svg>
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user