Parcourir la source

[stdf]更新版本至1.0.6

dufu1991 il y a 1 an
Parent
commit
e9a2047e49

+ 4 - 0
docs/mds/components/input/version.md

@@ -1,3 +1,7 @@
+## 1.0.6
+
+- [!tag|B|3|]修复切换亮暗模式时,输入框 placeholder 字体颜色不跟随变化的问题。
+
 ## 1.0.5
 
 - [!tag|B|3|]输入数字时不允许小数点开头。

+ 4 - 0
docs/mds/components/input/version_en.md

@@ -1,3 +1,7 @@
+## 1.0.6
+
+- [!tag|B|3|] Fix the problem that the input box placeholder font color does not follow the change when the light and dark mode is switched.
+
 ## 1.0.5
 
 - [!tag|B|3|] Do not allow decimal points to start when entering numbers.

+ 4 - 0
docs/mds/guide/changelog.md

@@ -1,3 +1,7 @@
+## 1.0.6 <font size=1>2025-04-27</font>
+
+- 修复 Input 组件,详见 [Input](https://stdf.design/components?nav=input&tab=4)。
+
 ## 1.0.5 <font size=1>2025-04-27</font>
 
 - 修复 Input 组件,详见 [Input](https://stdf.design/components?nav=input&tab=4)。

+ 4 - 0
docs/mds/guide/changelog_en.md

@@ -1,3 +1,7 @@
+## 1.0.6 <font size=1>2025-04-27</font>
+
+- Fixed Input component, please see [Input](https://stdf.design/components?nav=input&tab=4).
+
 ## 1.0.5 <font size=1>2025-04-27</font>
 
 - Fixed Input component, please see [Input](https://stdf.design/components?nav=input&tab=4).

+ 4 - 4
docs/site/src/routes/+page.svelte

@@ -519,9 +519,9 @@
 					href="/guide"
 					onmouseenter={() => (showConfetti = true)}
 					onmouseleave={() => (showConfetti = false)}
-					class="bg-primary hover:bg-primary/80 dark:bg-dark hover:dark:bg-dark/80 group relative rounded-sm px-6 py-2 text-white transition-all dark:text-black"
+					class="bg-primary hover:bg-primary/80 dark:bg-dark hover:dark:bg-dark/80 group relative rounded-sm px-4 py-2 text-white transition-all dark:text-black"
 				>
-					<div class="group flex items-center gap-1">
+					<div class="group flex items-center gap-2">
 						{isZh ? '开始使用' : 'Get Started'}
 						<div class="size-3 translate-y-px">
 							<svg viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -531,12 +531,12 @@
 									width="10"
 									height="2"
 									fill="currentColor"
-									class="group-hover:scale-x-135 transition-all duration-500 group-hover:-translate-x-2 group-hover:-translate-y-2"
+									class="scale-x-135 -translate-x-2 -translate-y-2 transition-all duration-500 group-hover:translate-x-0 group-hover:translate-y-0"
 								/>
 								<path
 									d="M8.48535 7.07129L1.41406 14.1426L0 12.7275L5.65625 7.07031L0 1.41406L1.41406 0L8.48535 7.07129Z"
 									fill="currentColor"
-									class="transition-all duration-500 group-hover:translate-x-2"
+									class="translate-x-2 transition-all duration-500 group-hover:translate-x-0"
 								/>
 							</svg>
 						</div>

+ 1 - 1
packages/stdf/package.json

@@ -1,6 +1,6 @@
 {
 	"name": "stdf",
-	"version": "1.0.5",
+	"version": "1.0.6",
 	"description": "Mobile web component library based on Svelte and Tailwind",
 	"author": "any-tdf",
 	"funding": "https://stdf.design?fund",

+ 5 - 4
packages/stdf/src/lib/components/input/Input.svelte

@@ -318,7 +318,7 @@
 								{rows}
 								inputmode={mode as 'none' | 'text' | 'decimal' | 'numeric' | 'tel' | 'email' | 'search' | 'url'}
 								placeholder={placeholder !== '' ? placeholder : title !== '' ? inputLang.pleaseInput + ' ' + title : ''}
-								class="focus:outline-hidden w-full bg-transparent font-semibold {inputPosition === 'left'
+								class="focus:outline-hidden w-full bg-transparent font-semibold text-black dark:text-white {inputPosition === 'left'
 									? 'text-left'
 									: 'text-right'} {disabled ? 'cursor-not-allowed opacity-50' : ''}"
 								onfocus={onFocus}
@@ -337,7 +337,8 @@
 								use:typeAction
 								inputmode={mode as 'none' | 'text' | 'decimal' | 'numeric' | 'tel' | 'email' | 'search' | 'url'}
 								placeholder={placeholder !== '' ? placeholder : title !== '' ? inputLang.pleaseInput + ' ' + title : ''}
-								class="focus:outline-hidden w-full whitespace-normal bg-transparent font-semibold {inputPosition === 'left'
+								class="focus:outline-hidden w-full whitespace-normal bg-transparent font-semibold text-black dark:text-white {inputPosition ===
+								'left'
 									? 'text-left'
 									: 'text-right'} {disabled ? 'cursor-not-allowed opacity-50' : ''}"
 								onfocus={onFocus}
@@ -395,11 +396,11 @@
 				></div>
 			{/if}
 		</div>
-		<div class="text-gay6 flex px-2 {tip === null ? 'justify-end' : 'justify-between'}">
+		<div class="flex px-2 {tip === null ? 'justify-end' : 'justify-between'}">
 			{#if tipChild}
 				{@render tipChild?.()}
 			{:else if tip === null}{:else}
-				<div class="text-sm text-gray-400">
+				<div class="text-xs text-gray-400">
 					{tip}
 				</div>
 			{/if}