@youcan/celeste 0.6.65 → 0.6.67

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-89cd60b5] {
2390
+ .celeste-text-input-wrapper[data-v-c60663fe] {
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-89cd60b5] {
2413
+ .celeste-text-input-wrapper[size=xs][data-v-c60663fe] {
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-89cd60b5] {
2419
+ .celeste-text-input-wrapper[size=sm][data-v-c60663fe] {
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-89cd60b5] {
2425
+ .celeste-text-input-wrapper[size=md][data-v-c60663fe] {
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-89cd60b5] {
2431
+ .celeste-text-input-wrapper[has-error=true][data-v-c60663fe] {
2432
2432
  --celeste-text-input-border-color: var(--color-state-error-base);
2433
2433
  }
2434
- .celeste-text-input-wrapper .celeste-text-input[data-v-89cd60b5] {
2434
+ .celeste-text-input-wrapper .celeste-text-input[data-v-c60663fe] {
2435
2435
  width: 100%;
2436
2436
  height: 100%;
2437
2437
  padding: 0;
@@ -2441,52 +2441,49 @@ to {
2441
2441
  color: inherit;
2442
2442
  font: inherit;
2443
2443
  }
2444
- .celeste-text-input-wrapper .celeste-text-input[data-v-89cd60b5]::-moz-placeholder {
2444
+ .celeste-text-input-wrapper .celeste-text-input[data-v-c60663fe]::-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-89cd60b5]::placeholder {
2449
+ .celeste-text-input-wrapper .celeste-text-input[data-v-c60663fe]::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-89cd60b5]::-webkit-search-cancel-button {
2453
+ .celeste-text-input-wrapper .celeste-text-input[type=search][data-v-c60663fe]::-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-89cd60b5]::-webkit-search-decoration {
2458
+ .celeste-text-input-wrapper .celeste-text-input[type=search][data-v-c60663fe]::-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-89cd60b5]:has(.celeste-text-input-leading-node) {
2463
+ .celeste-text-input-wrapper[data-v-c60663fe]:has(.celeste-text-input-leading-node) {
2464
2464
  padding-inline-start: 0;
2465
2465
  }
2466
- .celeste-text-input-wrapper[data-v-89cd60b5]:has(.celeste-text-input-trailing-node) {
2466
+ .celeste-text-input-wrapper[data-v-c60663fe]:has(.celeste-text-input-trailing-node) {
2467
2467
  padding-inline-end: 0;
2468
2468
  }
2469
- .celeste-text-input-wrapper[data-v-89cd60b5]:has(.celeste-text-input:focus) {
2469
+ .celeste-text-input-wrapper[data-v-c60663fe]: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-89cd60b5] {
2476
+ .celeste-text-input-wrapper:has(.celeste-text-input:focus)[has-error=true][data-v-c60663fe] {
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 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 {
2480
+ .celeste-text-input-wrapper[data-v-c60663fe] input:-webkit-autofill {
2484
2481
  -webkit-transition: background-color 5000s ease-in-out 0s;
2485
2482
  transition: background-color 5000s ease-in-out 0s;
2486
2483
  -webkit-background-clip: text;
2487
2484
  background-clip: text;
2488
2485
  }
2489
- .celeste-text-input-wrapper[data-v-89cd60b5]:has(.celeste-text-input:disabled) {
2486
+ .celeste-text-input-wrapper[data-v-c60663fe]:has(.celeste-text-input:disabled) {
2490
2487
  --celeste-text-input-border-color: transparent;
2491
2488
  --celeste-text-input-drop-shadow: none;
2492
2489
  --celeste-text-input-affix-background-color: var(--color-bg-weak-50);
@@ -2498,56 +2495,56 @@ to {
2498
2495
  color: var(--color-text-disabled-300);
2499
2496
  pointer-events: none;
2500
2497
  }
2501
- .celeste-text-input-wrapper:has(.celeste-text-input:disabled) .celeste-text-input[data-v-89cd60b5]::-moz-placeholder {
2498
+ .celeste-text-input-wrapper:has(.celeste-text-input:disabled) .celeste-text-input[data-v-c60663fe]::-moz-placeholder {
2502
2499
  color: currentcolor;
2503
2500
  }
2504
- .celeste-text-input-wrapper:has(.celeste-text-input:disabled) .celeste-text-input[data-v-89cd60b5]::placeholder {
2501
+ .celeste-text-input-wrapper:has(.celeste-text-input:disabled) .celeste-text-input[data-v-c60663fe]::placeholder {
2505
2502
  color: currentcolor;
2506
2503
  }
2507
- .celeste-text-input-wrapper:has(.celeste-text-input:disabled) .celeste-text-input-clear-button[data-v-89cd60b5] {
2504
+ .celeste-text-input-wrapper:has(.celeste-text-input:disabled) .celeste-text-input-clear-button[data-v-c60663fe] {
2508
2505
  color: var(--color-text-disabled-300);
2509
2506
  pointer-events: none;
2510
2507
  }
2511
- .celeste-text-input-wrapper[data-v-89cd60b5]:has(.celeste-text-input:hover:not(:focus, :disabled)):not(:has(.celeste-text-input-node)) {
2508
+ .celeste-text-input-wrapper[data-v-c60663fe]:has(.celeste-text-input:hover:not(:focus, :disabled)):not(:has(.celeste-text-input-node)) {
2512
2509
  --celeste-text-input-border-color: transparent;
2513
2510
  }
2514
- .celeste-text-input-wrapper[data-v-89cd60b5]:has(.celeste-text-input:hover:not(:focus, :disabled)):not(:has(.celeste-text-input-node:hover)) {
2511
+ .celeste-text-input-wrapper[data-v-c60663fe]:has(.celeste-text-input:hover:not(:focus, :disabled)):not(:has(.celeste-text-input-node:hover)) {
2515
2512
  --celeste-text-input-icon-color: var(--color-text-sub-600);
2516
2513
  --celeste-text-input-placeholder-color: var(--color-text-sub-600);
2517
2514
  background-color: var(--color-bg-weak-50);
2518
2515
  }
2519
- .celeste-text-input-wrapper .celeste-text-input-icon[data-v-89cd60b5] {
2516
+ .celeste-text-input-wrapper .celeste-text-input-icon[data-v-c60663fe] {
2520
2517
  flex-shrink: 0;
2521
2518
  width: 20px;
2522
2519
  height: 20px;
2523
2520
  transition: all var(--animation-fast) ease-out;
2524
2521
  color: var(--celeste-text-input-icon-color);
2525
2522
  }
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 {
2523
+ .celeste-text-input-wrapper[data-v-c60663fe] .celeste-text-input-node.celeste-text-input-leading-node,
2524
+ .celeste-text-input-wrapper[data-v-c60663fe] .celeste-text-input-node.celeste-text-input-trailing-node {
2528
2525
  height: calc(var(--input-height) - var(--spacing-2)) !important;
2529
2526
  }
2530
- [dir=ltr] .celeste-text-input-wrapper[data-v-89cd60b5] .celeste-text-input-node.celeste-text-input-leading-node {
2527
+ [dir=ltr] .celeste-text-input-wrapper[data-v-c60663fe] .celeste-text-input-node.celeste-text-input-leading-node {
2531
2528
  border-right: 1px solid var(--color-stroke-soft-200) !important;
2532
2529
  border-radius: var(--input-radius) 0 0 var(--input-radius) !important;
2533
2530
  }
2534
- [dir=ltr] .celeste-text-input-wrapper[data-v-89cd60b5] .celeste-text-input-node.celeste-text-input-trailing-node {
2531
+ [dir=ltr] .celeste-text-input-wrapper[data-v-c60663fe] .celeste-text-input-node.celeste-text-input-trailing-node {
2535
2532
  border-left: 1px solid var(--color-stroke-soft-200) !important;
2536
2533
  border-radius: 0 var(--input-radius) var(--input-radius) 0 !important;
2537
2534
  }
2538
- [dir=rtl] .celeste-text-input-wrapper[data-v-89cd60b5] .celeste-text-input-node.celeste-text-input-leading-node {
2535
+ [dir=rtl] .celeste-text-input-wrapper[data-v-c60663fe] .celeste-text-input-node.celeste-text-input-leading-node {
2539
2536
  border-left: 1px solid var(--color-stroke-soft-200) !important;
2540
2537
  border-radius: 0 var(--input-radius) var(--input-radius) 0 !important;
2541
2538
  }
2542
- [dir=rtl] .celeste-text-input-wrapper[data-v-89cd60b5] .celeste-text-input-node.celeste-text-input-trailing-node {
2539
+ [dir=rtl] .celeste-text-input-wrapper[data-v-c60663fe] .celeste-text-input-node.celeste-text-input-trailing-node {
2543
2540
  border-right: 1px solid var(--color-stroke-soft-200) !important;
2544
2541
  border-radius: var(--input-radius) 0 0 var(--input-radius) !important;
2545
2542
  }
2546
- .celeste-text-input-wrapper[data-v-89cd60b5] .celeste-text-input-node.celeste-text-input-leading-node {
2543
+ .celeste-text-input-wrapper[data-v-c60663fe] .celeste-text-input-node.celeste-text-input-leading-node {
2547
2544
  border-right: 1px solid var(--color-stroke-soft-200) !important;
2548
2545
  border-radius: var(--input-radius) 0 0 var(--input-radius) !important;
2549
2546
  }
2550
- .celeste-text-input-wrapper[data-v-89cd60b5] .celeste-text-input-node.celeste-text-input-trailing-node {
2547
+ .celeste-text-input-wrapper[data-v-c60663fe] .celeste-text-input-node.celeste-text-input-trailing-node {
2551
2548
  border-left: 1px solid var(--color-stroke-soft-200) !important;
2552
2549
  border-radius: 0 var(--input-radius) var(--input-radius) 0 !important;
2553
2550
  }.celeste-color-swatch[data-v-e0b25a98] {
@@ -3384,9 +3381,10 @@ to {
3384
3381
  width: 100%;
3385
3382
  height: 1px;
3386
3383
  background-color: var(--color-stroke-soft-200);
3387
- }[data-v-ba978953] .celeste-dropdown-menu-sub-content {
3384
+ }[data-v-a7fc7ec9] .celeste-dropdown-menu-sub-content {
3388
3385
  --dropdown-min-width: 250px;
3389
3386
  --dropdown-max-width: 350px;
3387
+ --dropdown-max-height: 300px;
3390
3388
  display: flex;
3391
3389
  z-index: 50;
3392
3390
  box-sizing: border-box;
@@ -3394,9 +3392,10 @@ to {
3394
3392
  width: 100%;
3395
3393
  min-width: var(--dropdown-min-width);
3396
3394
  max-width: var(--dropdown-max-width);
3395
+ max-height: var(--dropdown-max-height);
3397
3396
  margin-block-start: var(--spacing-10);
3398
3397
  padding: var(--spacing-8);
3399
- overflow: hidden;
3398
+ overflow: hidden auto;
3400
3399
  transform-origin: var(--radix-popper-transform-origin);
3401
3400
  animation: var(--animation-fast) ease-out forwards;
3402
3401
  border: 1px solid var(--color-stroke-soft-200);
@@ -3406,19 +3405,19 @@ to {
3406
3405
  gap: var(--spacing-4);
3407
3406
  scale: 0.95;
3408
3407
  }
3409
- [data-v-ba978953] .celeste-dropdown-menu-sub-content[data-state=open] {
3410
- animation-name: open-ba978953;
3408
+ [data-v-a7fc7ec9] .celeste-dropdown-menu-sub-content[data-state=open] {
3409
+ animation-name: open-a7fc7ec9;
3411
3410
  }
3412
- [data-v-ba978953] .celeste-dropdown-menu-sub-content[data-state=closed] {
3413
- animation-name: close-ba978953;
3411
+ [data-v-a7fc7ec9] .celeste-dropdown-menu-sub-content[data-state=closed] {
3412
+ animation-name: close-a7fc7ec9;
3414
3413
  }
3415
- @keyframes open-ba978953 {
3414
+ @keyframes open-a7fc7ec9 {
3416
3415
  to {
3417
3416
  opacity: 1;
3418
3417
  scale: 1;
3419
3418
  }
3420
3419
  }
3421
- @keyframes close-ba978953 {
3420
+ @keyframes close-a7fc7ec9 {
3422
3421
  from {
3423
3422
  opacity: 1;
3424
3423
  scale: 1;
@@ -47,5 +47,5 @@ const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
47
47
  };
48
48
  }
49
49
  });
50
- const dropdownMenuSubContent = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-ba978953"]]);
50
+ const dropdownMenuSubContent = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-a7fc7ec9"]]);
51
51
  module.exports = dropdownMenuSubContent;
@@ -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-89cd60b5"]]);
119
+ const TextInput = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-c60663fe"]]);
120
120
  module.exports = TextInput;
@@ -46,7 +46,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
46
46
  };
47
47
  }
48
48
  });
49
- const dropdownMenuSubContent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ba978953"]]);
49
+ const dropdownMenuSubContent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a7fc7ec9"]]);
50
50
  export {
51
51
  dropdownMenuSubContent as default
52
52
  };
@@ -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-89cd60b5"]]);
118
+ const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c60663fe"]]);
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.65",
4
+ "version": "0.6.67",
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.65",
48
- "@youcan/celeste-tokens": "0.6.65"
47
+ "@youcan/celeste-icons": "0.6.67",
48
+ "@youcan/celeste-tokens": "0.6.67"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@chromatic-com/storybook": "^4.1.1",
@@ -33,6 +33,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits);
33
33
  :deep(.celeste-dropdown-menu-sub-content) {
34
34
  --dropdown-min-width: 250px;
35
35
  --dropdown-max-width: 350px;
36
+ --dropdown-max-height: 300px;
36
37
 
37
38
  display: flex;
38
39
  z-index: 50;
@@ -41,9 +42,10 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits);
41
42
  width: 100%;
42
43
  min-width: var(--dropdown-min-width);
43
44
  max-width: var(--dropdown-max-width);
45
+ max-height: var(--dropdown-max-height);
44
46
  margin-block-start: var(--spacing-10);
45
47
  padding: var(--spacing-8);
46
- overflow: hidden;
48
+ overflow: hidden auto;
47
49
  transform-origin: var(--radix-popper-transform-origin);
48
50
  animation: var(--animation-fast) ease-out forwards;
49
51
  border: 1px solid var(--color-stroke-soft-200);
@@ -195,10 +195,12 @@ 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 {
198
+ :deep(
199
+ input:-webkit-autofill,
200
+ input:-webkit-autofill:hover,
201
+ input:-webkit-autofill:focus,
202
+ input:-webkit-autofill:active
203
+ ) {
202
204
  transition: background-color 5000s ease-in-out 0s;
203
205
  background-clip: text;
204
206
  }