diff --git a/package-lock.json b/package-lock.json
index 4f0d885..d6d91a2 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "alley-components",
- "version": "0.2.5",
+ "version": "0.2.6",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "alley-components",
- "version": "0.2.5",
+ "version": "0.2.6",
"devDependencies": {
"@rollup/plugin-typescript": "^11.1.6",
"rollup-plugin-external-globals": "^0.9.2",
diff --git a/package.json b/package.json
index 5ce93e3..ea376c5 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "alley-components",
- "version": "0.2.5",
+ "version": "0.2.6",
"repository": "https://github.com/alley-rs/alley-components",
"keywords": [
"solid",
diff --git a/packages/components/input/index.scss b/packages/components/input/index.scss
index e4ddff9..e01275b 100644
--- a/packages/components/input/index.scss
+++ b/packages/components/input/index.scss
@@ -15,9 +15,9 @@ $base: "alley-input";
--alley-input-warning-active-shadow: 0 0 0 2px rgba(255, 215, 5, 0.1);
--alley-input-hover-bg: #ffffff;
--alley-input-active-bg: #ffffff;
+ --alley-input-input-font-size-sm: 12px;
--alley-input-input-font-size: 14px;
--alley-input-input-font-size-lg: 16px;
- --alley-input-input-font-size-sm: 14px;
width: 100%;
text-overflow: ellipsis;
@@ -61,24 +61,21 @@ $base: "alley-input";
}
&-small {
- padding: var(--alley-input-padding-block-sm) var(--alley-input-padding-inline-sm);
+ padding: var(--alley-input-padding-block-sm)
+ var(--alley-input-padding-inline-sm);
font-size: var(--alley-input-input-font-size-sm);
border-radius: var(--alley-border-radius-sm);
-
- &::placeholder {
- font-size: 12px;
- }
}
&-large {
- padding: var(--alley-input-padding-block-lg) var(--alley-input-padding-inline-lg);
+ padding: var(--alley-input-padding-block-lg)
+ var(--alley-input-padding-inline-lg);
font-size: var(--alley-input-input-font-size-lg);
border-radius: var(--alley-border-radius-lg);
line-height: var(--alley-line-height-lg);
}
&-space-compact-item {
-
&:hover,
&:focus,
&:focus-within {
diff --git a/src/components/buttons.tsx b/src/components/buttons.tsx
index 395b9e1..3965df1 100644
--- a/src/components/buttons.tsx
+++ b/src/components/buttons.tsx
@@ -1,6 +1,6 @@
import { For, createSignal } from "solid-js";
import { Button, Divider, Flex, Space } from "../../packages";
-import { SizeType } from "~/interface";
+import type { SizeType } from "~/interface";
import { AiOutlineDownload, AiOutlineSearch } from "solid-icons/ai";
const Types = () => {
diff --git a/src/components/list.tsx b/src/components/list.tsx
index d582dc6..dd0bb91 100644
--- a/src/components/list.tsx
+++ b/src/components/list.tsx
@@ -38,7 +38,7 @@ const List = () => {
}
title={item}
- description={item + "的描述文字"}
+ description={`${item}的描述文字`}
extra={} />}
/>
)}
diff --git a/src/components/toast.tsx b/src/components/toast.tsx
index d3908de..23b6125 100644
--- a/src/components/toast.tsx
+++ b/src/components/toast.tsx
@@ -1,6 +1,6 @@
import { For, createSignal } from "solid-js";
-import { Alert, AlertProps, Button, Flex, Toast } from "~/index";
-import { Placement } from "~/interface";
+import { Alert, type AlertProps, Button, Flex, Toast } from "~/index";
+import type { Placement } from "~/interface";
const randomBool = () => Boolean(Math.round(Math.random()));
diff --git a/src/index.tsx b/src/index.tsx
index d7ad516..a0a6b4e 100644
--- a/src/index.tsx
+++ b/src/index.tsx
@@ -4,6 +4,6 @@ import "./index.scss";
import App from "./App";
-const root = document.getElementById("root");
+const root = document.getElementById("root") as HTMLElement;
-render(() => , root!);
+render(() => , root);