@youcan/celeste 0.6.63 → 0.6.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/celeste.css
CHANGED
|
@@ -2387,7 +2387,7 @@ to {
|
|
|
2387
2387
|
.celeste-text-input-button[inline=true][data-v-00ed5aef]:hover {
|
|
2388
2388
|
background-color: transparent !important;
|
|
2389
2389
|
}/* stylelint-disable no-descending-specificity */
|
|
2390
|
-
.celeste-text-input-wrapper[data-v-
|
|
2390
|
+
.celeste-text-input-wrapper[data-v-89cd60b5] {
|
|
2391
2391
|
--celeste-text-input-border-color: var(--color-stroke-soft-200);
|
|
2392
2392
|
--celeste-text-input-drop-shadow: var(--shadow-regular-xs);
|
|
2393
2393
|
--celeste-text-input-icon-color: var(--color-text-soft-400);
|
|
@@ -2410,28 +2410,28 @@ to {
|
|
|
2410
2410
|
font: var(--paragraph-sm);
|
|
2411
2411
|
gap: var(--input-gap);
|
|
2412
2412
|
}
|
|
2413
|
-
.celeste-text-input-wrapper[size=xs][data-v-
|
|
2413
|
+
.celeste-text-input-wrapper[size=xs][data-v-89cd60b5] {
|
|
2414
2414
|
--input-gap: 8px;
|
|
2415
2415
|
--input-height: 32px;
|
|
2416
2416
|
--input-radius: var(--radius-8);
|
|
2417
2417
|
--input-padding: calc(var(--spacing-8) - var(--spacing-2));
|
|
2418
2418
|
}
|
|
2419
|
-
.celeste-text-input-wrapper[size=sm][data-v-
|
|
2419
|
+
.celeste-text-input-wrapper[size=sm][data-v-89cd60b5] {
|
|
2420
2420
|
--input-gap: 6px;
|
|
2421
2421
|
--input-height: 36px;
|
|
2422
2422
|
--input-radius: var(--radius-8);
|
|
2423
2423
|
--input-padding: var(--spacing-8);
|
|
2424
2424
|
}
|
|
2425
|
-
.celeste-text-input-wrapper[size=md][data-v-
|
|
2425
|
+
.celeste-text-input-wrapper[size=md][data-v-89cd60b5] {
|
|
2426
2426
|
--input-gap: 6px;
|
|
2427
2427
|
--input-height: 40px;
|
|
2428
2428
|
--input-radius: var(--radius-10);
|
|
2429
2429
|
--input-padding: var(--spacing-10);
|
|
2430
2430
|
}
|
|
2431
|
-
.celeste-text-input-wrapper[has-error=true][data-v-
|
|
2431
|
+
.celeste-text-input-wrapper[has-error=true][data-v-89cd60b5] {
|
|
2432
2432
|
--celeste-text-input-border-color: var(--color-state-error-base);
|
|
2433
2433
|
}
|
|
2434
|
-
.celeste-text-input-wrapper .celeste-text-input[data-v-
|
|
2434
|
+
.celeste-text-input-wrapper .celeste-text-input[data-v-89cd60b5] {
|
|
2435
2435
|
width: 100%;
|
|
2436
2436
|
height: 100%;
|
|
2437
2437
|
padding: 0;
|
|
@@ -2441,43 +2441,52 @@ to {
|
|
|
2441
2441
|
color: inherit;
|
|
2442
2442
|
font: inherit;
|
|
2443
2443
|
}
|
|
2444
|
-
.celeste-text-input-wrapper .celeste-text-input[data-v-
|
|
2444
|
+
.celeste-text-input-wrapper .celeste-text-input[data-v-89cd60b5]::-moz-placeholder {
|
|
2445
2445
|
-moz-transition: color var(--animation-fast) ease-out;
|
|
2446
2446
|
transition: color var(--animation-fast) ease-out;
|
|
2447
2447
|
color: var(--celeste-text-input-placeholder-color);
|
|
2448
2448
|
}
|
|
2449
|
-
.celeste-text-input-wrapper .celeste-text-input[data-v-
|
|
2449
|
+
.celeste-text-input-wrapper .celeste-text-input[data-v-89cd60b5]::placeholder {
|
|
2450
2450
|
transition: color var(--animation-fast) ease-out;
|
|
2451
2451
|
color: var(--celeste-text-input-placeholder-color);
|
|
2452
2452
|
}
|
|
2453
|
-
.celeste-text-input-wrapper .celeste-text-input[type=search][data-v-
|
|
2453
|
+
.celeste-text-input-wrapper .celeste-text-input[type=search][data-v-89cd60b5]::-webkit-search-cancel-button {
|
|
2454
2454
|
display: none;
|
|
2455
2455
|
-webkit-appearance: none;
|
|
2456
2456
|
appearance: none;
|
|
2457
2457
|
}
|
|
2458
|
-
.celeste-text-input-wrapper .celeste-text-input[type=search][data-v-
|
|
2458
|
+
.celeste-text-input-wrapper .celeste-text-input[type=search][data-v-89cd60b5]::-webkit-search-decoration {
|
|
2459
2459
|
display: none;
|
|
2460
2460
|
-webkit-appearance: none;
|
|
2461
2461
|
appearance: none;
|
|
2462
2462
|
}
|
|
2463
|
-
.celeste-text-input-wrapper[data-v-
|
|
2463
|
+
.celeste-text-input-wrapper[data-v-89cd60b5]:has(.celeste-text-input-leading-node) {
|
|
2464
2464
|
padding-inline-start: 0;
|
|
2465
2465
|
}
|
|
2466
|
-
.celeste-text-input-wrapper[data-v-
|
|
2466
|
+
.celeste-text-input-wrapper[data-v-89cd60b5]:has(.celeste-text-input-trailing-node) {
|
|
2467
2467
|
padding-inline-end: 0;
|
|
2468
2468
|
}
|
|
2469
|
-
.celeste-text-input-wrapper[data-v-
|
|
2469
|
+
.celeste-text-input-wrapper[data-v-89cd60b5]:has(.celeste-text-input:focus) {
|
|
2470
2470
|
--celeste-text-input-border-color: var(--color-stroke-strong-950);
|
|
2471
2471
|
--celeste-text-input-placeholder-color: var(--color-text-sub-600);
|
|
2472
2472
|
--celeste-text-input-icon-color: var(--color-text-sub-600);
|
|
2473
2473
|
--celeste-text-input-affix-color: var(--color-text-sub-600);
|
|
2474
2474
|
outline-color: var(--color-stroke-soft-200);
|
|
2475
2475
|
}
|
|
2476
|
-
.celeste-text-input-wrapper:has(.celeste-text-input:focus)[has-error=true][data-v-
|
|
2476
|
+
.celeste-text-input-wrapper:has(.celeste-text-input:focus)[has-error=true][data-v-89cd60b5] {
|
|
2477
2477
|
--celeste-text-input-border-color: var(--color-state-error-base);
|
|
2478
2478
|
outline-color: var(--color-state-error-lighter);
|
|
2479
2479
|
}
|
|
2480
|
-
.celeste-text-input-wrapper[data-v-
|
|
2480
|
+
.celeste-text-input-wrapper input[data-v-89cd60b5]:-webkit-autofill,
|
|
2481
|
+
.celeste-text-input-wrapper input[data-v-89cd60b5]:-webkit-autofill:hover,
|
|
2482
|
+
.celeste-text-input-wrapper input[data-v-89cd60b5]:-webkit-autofill:focus,
|
|
2483
|
+
.celeste-text-input-wrapper input[data-v-89cd60b5]:-webkit-autofill:active {
|
|
2484
|
+
-webkit-transition: background-color 5000s ease-in-out 0s;
|
|
2485
|
+
transition: background-color 5000s ease-in-out 0s;
|
|
2486
|
+
-webkit-background-clip: text;
|
|
2487
|
+
background-clip: text;
|
|
2488
|
+
}
|
|
2489
|
+
.celeste-text-input-wrapper[data-v-89cd60b5]:has(.celeste-text-input:disabled) {
|
|
2481
2490
|
--celeste-text-input-border-color: transparent;
|
|
2482
2491
|
--celeste-text-input-drop-shadow: none;
|
|
2483
2492
|
--celeste-text-input-affix-background-color: var(--color-bg-weak-50);
|
|
@@ -2489,56 +2498,56 @@ to {
|
|
|
2489
2498
|
color: var(--color-text-disabled-300);
|
|
2490
2499
|
pointer-events: none;
|
|
2491
2500
|
}
|
|
2492
|
-
.celeste-text-input-wrapper:has(.celeste-text-input:disabled) .celeste-text-input[data-v-
|
|
2501
|
+
.celeste-text-input-wrapper:has(.celeste-text-input:disabled) .celeste-text-input[data-v-89cd60b5]::-moz-placeholder {
|
|
2493
2502
|
color: currentcolor;
|
|
2494
2503
|
}
|
|
2495
|
-
.celeste-text-input-wrapper:has(.celeste-text-input:disabled) .celeste-text-input[data-v-
|
|
2504
|
+
.celeste-text-input-wrapper:has(.celeste-text-input:disabled) .celeste-text-input[data-v-89cd60b5]::placeholder {
|
|
2496
2505
|
color: currentcolor;
|
|
2497
2506
|
}
|
|
2498
|
-
.celeste-text-input-wrapper:has(.celeste-text-input:disabled) .celeste-text-input-clear-button[data-v-
|
|
2507
|
+
.celeste-text-input-wrapper:has(.celeste-text-input:disabled) .celeste-text-input-clear-button[data-v-89cd60b5] {
|
|
2499
2508
|
color: var(--color-text-disabled-300);
|
|
2500
2509
|
pointer-events: none;
|
|
2501
2510
|
}
|
|
2502
|
-
.celeste-text-input-wrapper[data-v-
|
|
2511
|
+
.celeste-text-input-wrapper[data-v-89cd60b5]:has(.celeste-text-input:hover:not(:focus, :disabled)):not(:has(.celeste-text-input-node)) {
|
|
2503
2512
|
--celeste-text-input-border-color: transparent;
|
|
2504
2513
|
}
|
|
2505
|
-
.celeste-text-input-wrapper[data-v-
|
|
2514
|
+
.celeste-text-input-wrapper[data-v-89cd60b5]:has(.celeste-text-input:hover:not(:focus, :disabled)):not(:has(.celeste-text-input-node:hover)) {
|
|
2506
2515
|
--celeste-text-input-icon-color: var(--color-text-sub-600);
|
|
2507
2516
|
--celeste-text-input-placeholder-color: var(--color-text-sub-600);
|
|
2508
2517
|
background-color: var(--color-bg-weak-50);
|
|
2509
2518
|
}
|
|
2510
|
-
.celeste-text-input-wrapper .celeste-text-input-icon[data-v-
|
|
2519
|
+
.celeste-text-input-wrapper .celeste-text-input-icon[data-v-89cd60b5] {
|
|
2511
2520
|
flex-shrink: 0;
|
|
2512
2521
|
width: 20px;
|
|
2513
2522
|
height: 20px;
|
|
2514
2523
|
transition: all var(--animation-fast) ease-out;
|
|
2515
2524
|
color: var(--celeste-text-input-icon-color);
|
|
2516
2525
|
}
|
|
2517
|
-
.celeste-text-input-wrapper[data-v-
|
|
2518
|
-
.celeste-text-input-wrapper[data-v-
|
|
2526
|
+
.celeste-text-input-wrapper[data-v-89cd60b5] .celeste-text-input-node.celeste-text-input-leading-node,
|
|
2527
|
+
.celeste-text-input-wrapper[data-v-89cd60b5] .celeste-text-input-node.celeste-text-input-trailing-node {
|
|
2519
2528
|
height: calc(var(--input-height) - var(--spacing-2)) !important;
|
|
2520
2529
|
}
|
|
2521
|
-
[dir=ltr] .celeste-text-input-wrapper[data-v-
|
|
2530
|
+
[dir=ltr] .celeste-text-input-wrapper[data-v-89cd60b5] .celeste-text-input-node.celeste-text-input-leading-node {
|
|
2522
2531
|
border-right: 1px solid var(--color-stroke-soft-200) !important;
|
|
2523
2532
|
border-radius: var(--input-radius) 0 0 var(--input-radius) !important;
|
|
2524
2533
|
}
|
|
2525
|
-
[dir=ltr] .celeste-text-input-wrapper[data-v-
|
|
2534
|
+
[dir=ltr] .celeste-text-input-wrapper[data-v-89cd60b5] .celeste-text-input-node.celeste-text-input-trailing-node {
|
|
2526
2535
|
border-left: 1px solid var(--color-stroke-soft-200) !important;
|
|
2527
2536
|
border-radius: 0 var(--input-radius) var(--input-radius) 0 !important;
|
|
2528
2537
|
}
|
|
2529
|
-
[dir=rtl] .celeste-text-input-wrapper[data-v-
|
|
2538
|
+
[dir=rtl] .celeste-text-input-wrapper[data-v-89cd60b5] .celeste-text-input-node.celeste-text-input-leading-node {
|
|
2530
2539
|
border-left: 1px solid var(--color-stroke-soft-200) !important;
|
|
2531
2540
|
border-radius: 0 var(--input-radius) var(--input-radius) 0 !important;
|
|
2532
2541
|
}
|
|
2533
|
-
[dir=rtl] .celeste-text-input-wrapper[data-v-
|
|
2542
|
+
[dir=rtl] .celeste-text-input-wrapper[data-v-89cd60b5] .celeste-text-input-node.celeste-text-input-trailing-node {
|
|
2534
2543
|
border-right: 1px solid var(--color-stroke-soft-200) !important;
|
|
2535
2544
|
border-radius: var(--input-radius) 0 0 var(--input-radius) !important;
|
|
2536
2545
|
}
|
|
2537
|
-
.celeste-text-input-wrapper[data-v-
|
|
2546
|
+
.celeste-text-input-wrapper[data-v-89cd60b5] .celeste-text-input-node.celeste-text-input-leading-node {
|
|
2538
2547
|
border-right: 1px solid var(--color-stroke-soft-200) !important;
|
|
2539
2548
|
border-radius: var(--input-radius) 0 0 var(--input-radius) !important;
|
|
2540
2549
|
}
|
|
2541
|
-
.celeste-text-input-wrapper[data-v-
|
|
2550
|
+
.celeste-text-input-wrapper[data-v-89cd60b5] .celeste-text-input-node.celeste-text-input-trailing-node {
|
|
2542
2551
|
border-left: 1px solid var(--color-stroke-soft-200) !important;
|
|
2543
2552
|
border-radius: 0 var(--input-radius) var(--input-radius) 0 !important;
|
|
2544
2553
|
}.celeste-color-swatch[data-v-e0b25a98] {
|
package/dist/cjs/text-input.js
CHANGED
|
@@ -116,5 +116,5 @@ const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
|
|
|
116
116
|
};
|
|
117
117
|
}
|
|
118
118
|
});
|
|
119
|
-
const TextInput = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
119
|
+
const TextInput = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-89cd60b5"]]);
|
|
120
120
|
module.exports = TextInput;
|
package/dist/es/text-input.js
CHANGED
|
@@ -115,7 +115,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
115
115
|
};
|
|
116
116
|
}
|
|
117
117
|
});
|
|
118
|
-
const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
118
|
+
const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-89cd60b5"]]);
|
|
119
119
|
export {
|
|
120
120
|
TextInput as default
|
|
121
121
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@youcan/celeste",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.65",
|
|
5
5
|
"author": "YouCan <tech@youcan.shop>",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"youcan",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"radix-vue": "^1.9.12",
|
|
45
45
|
"tinycolor2": "^1.6.0",
|
|
46
46
|
"vue-sonner": "^2.0.2",
|
|
47
|
-
"@youcan/celeste-icons": "0.6.
|
|
48
|
-
"@youcan/celeste-tokens": "0.6.
|
|
47
|
+
"@youcan/celeste-icons": "0.6.65",
|
|
48
|
+
"@youcan/celeste-tokens": "0.6.65"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@chromatic-com/storybook": "^4.1.1",
|
|
@@ -195,6 +195,14 @@ export interface TextInputProps extends /* @vue-ignore */ InputHTMLAttributes {
|
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
197
|
|
|
198
|
+
input:-webkit-autofill,
|
|
199
|
+
input:-webkit-autofill:hover,
|
|
200
|
+
input:-webkit-autofill:focus,
|
|
201
|
+
input:-webkit-autofill:active {
|
|
202
|
+
transition: background-color 5000s ease-in-out 0s;
|
|
203
|
+
background-clip: text;
|
|
204
|
+
}
|
|
205
|
+
|
|
198
206
|
&:has(.celeste-text-input:disabled) {
|
|
199
207
|
--celeste-text-input-border-color: transparent;
|
|
200
208
|
--celeste-text-input-drop-shadow: none;
|