@youcan/celeste 0.6.66 → 0.6.68

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
@@ -3205,17 +3205,18 @@ to {
3205
3205
  display: flex;
3206
3206
  align-items: center;
3207
3207
  gap: var(--spacing-10);
3208
- }.celeste-digit-input-slot[data-v-86327944] {
3208
+ }.celeste-digit-input-slot[data-v-a9112549] {
3209
3209
  --celeste-digit-input-border-color: var(--color-stroke-soft-200);
3210
3210
  --celeste-digit-input-drop-shadow: var(--shadow-regular-xs);
3211
3211
  --celeste-digit-input-placeholder-color: var(--color-text-soft-400);
3212
3212
  display: flex;
3213
3213
  box-sizing: border-box;
3214
3214
  flex-grow: 1;
3215
+ flex-shrink: 1;
3215
3216
  align-items: center;
3216
3217
  justify-content: center;
3217
- width: 64px;
3218
- height: 64px;
3218
+ min-width: 40px;
3219
+ max-width: 64px;
3219
3220
  padding: 0;
3220
3221
  transition: all var(--animation-fast) ease-out;
3221
3222
  border: 1px solid var(--celeste-digit-input-border-color);
@@ -3227,22 +3228,23 @@ to {
3227
3228
  color: var(--color-text-strong-950);
3228
3229
  font: var(--title-h5-title);
3229
3230
  text-align: center;
3231
+ aspect-ratio: 1;
3230
3232
  }
3231
- .celeste-digit-input-slot[data-v-86327944]::-moz-placeholder {
3233
+ .celeste-digit-input-slot[data-v-a9112549]::-moz-placeholder {
3232
3234
  -moz-transition: color var(--animation-fast) ease-out;
3233
3235
  transition: color var(--animation-fast) ease-out;
3234
3236
  color: var(--celeste-digit-input-placeholder-color);
3235
3237
  }
3236
- .celeste-digit-input-slot[data-v-86327944]::placeholder {
3238
+ .celeste-digit-input-slot[data-v-a9112549]::placeholder {
3237
3239
  transition: color var(--animation-fast) ease-out;
3238
3240
  color: var(--celeste-digit-input-placeholder-color);
3239
3241
  }
3240
- .celeste-digit-input-slot[data-v-86327944]:focus {
3242
+ .celeste-digit-input-slot[data-v-a9112549]:focus {
3241
3243
  --celeste-digit-input-border-color: var(--color-stroke-strong-950);
3242
3244
  --celeste-digit-input-placeholder-color: var(--color-text-sub-600);
3243
3245
  outline-color: var(--color-stroke-soft-200);
3244
3246
  }
3245
- .celeste-digit-input-slot[data-v-86327944]:disabled {
3247
+ .celeste-digit-input-slot[data-v-a9112549]:disabled {
3246
3248
  --celeste-digit-input-border-color: transparent;
3247
3249
  --celeste-digit-input-drop-shadow: none;
3248
3250
  --celeste-digit-input-placeholder-color: var(--color-text-disabled-300);
@@ -3251,26 +3253,27 @@ to {
3251
3253
  color: var(--color-text-disabled-300);
3252
3254
  pointer-events: none;
3253
3255
  }
3254
- .celeste-digit-input-slot[data-v-86327944]:disabled::-moz-placeholder {
3256
+ .celeste-digit-input-slot[data-v-a9112549]:disabled::-moz-placeholder {
3255
3257
  color: currentcolor;
3256
3258
  }
3257
- .celeste-digit-input-slot[data-v-86327944]:disabled::placeholder {
3259
+ .celeste-digit-input-slot[data-v-a9112549]:disabled::placeholder {
3258
3260
  color: currentcolor;
3259
3261
  }
3260
- [data-error=true] .celeste-digit-input-slot[data-v-86327944] {
3262
+ [data-error=true] .celeste-digit-input-slot[data-v-a9112549] {
3261
3263
  --celeste-digit-input-border-color: var(--color-state-error-base);
3262
3264
  }
3263
- [data-error=true] .celeste-digit-input-slot[data-v-86327944]:focus {
3265
+ [data-error=true] .celeste-digit-input-slot[data-v-a9112549]:focus {
3264
3266
  --celeste-digit-input-border-color: var(--color-state-error-base);
3265
3267
  outline-color: var(--color-state-error-lighter);
3266
3268
  }
3267
- .celeste-digit-input-slot[data-v-86327944]:hover:not(:focus, :disabled) {
3269
+ .celeste-digit-input-slot[data-v-a9112549]:hover:not(:focus, :disabled) {
3268
3270
  --celeste-digit-input-border-color: transparent;
3269
3271
  --celeste-digit-input-placeholder-color: var(--color-text-sub-600);
3270
3272
  background-color: var(--color-bg-weak-50);
3271
- }.celeste-digit-input[data-v-be93d7bf] {
3273
+ }.celeste-digit-input[data-v-86bf03a4] {
3272
3274
  display: flex;
3273
3275
  align-items: center;
3276
+ max-width: 100%;
3274
3277
  gap: var(--spacing-10);
3275
3278
  }[data-v-3bd71ed1] .celeste-dropdown-menu-content {
3276
3279
  --dropdown-min-width: 250px;
@@ -3381,9 +3384,10 @@ to {
3381
3384
  width: 100%;
3382
3385
  height: 1px;
3383
3386
  background-color: var(--color-stroke-soft-200);
3384
- }[data-v-ba978953] .celeste-dropdown-menu-sub-content {
3387
+ }[data-v-a7fc7ec9] .celeste-dropdown-menu-sub-content {
3385
3388
  --dropdown-min-width: 250px;
3386
3389
  --dropdown-max-width: 350px;
3390
+ --dropdown-max-height: 300px;
3387
3391
  display: flex;
3388
3392
  z-index: 50;
3389
3393
  box-sizing: border-box;
@@ -3391,9 +3395,10 @@ to {
3391
3395
  width: 100%;
3392
3396
  min-width: var(--dropdown-min-width);
3393
3397
  max-width: var(--dropdown-max-width);
3398
+ max-height: var(--dropdown-max-height);
3394
3399
  margin-block-start: var(--spacing-10);
3395
3400
  padding: var(--spacing-8);
3396
- overflow: hidden;
3401
+ overflow: hidden auto;
3397
3402
  transform-origin: var(--radix-popper-transform-origin);
3398
3403
  animation: var(--animation-fast) ease-out forwards;
3399
3404
  border: 1px solid var(--color-stroke-soft-200);
@@ -3403,19 +3408,19 @@ to {
3403
3408
  gap: var(--spacing-4);
3404
3409
  scale: 0.95;
3405
3410
  }
3406
- [data-v-ba978953] .celeste-dropdown-menu-sub-content[data-state=open] {
3407
- animation-name: open-ba978953;
3411
+ [data-v-a7fc7ec9] .celeste-dropdown-menu-sub-content[data-state=open] {
3412
+ animation-name: open-a7fc7ec9;
3408
3413
  }
3409
- [data-v-ba978953] .celeste-dropdown-menu-sub-content[data-state=closed] {
3410
- animation-name: close-ba978953;
3414
+ [data-v-a7fc7ec9] .celeste-dropdown-menu-sub-content[data-state=closed] {
3415
+ animation-name: close-a7fc7ec9;
3411
3416
  }
3412
- @keyframes open-ba978953 {
3417
+ @keyframes open-a7fc7ec9 {
3413
3418
  to {
3414
3419
  opacity: 1;
3415
3420
  scale: 1;
3416
3421
  }
3417
3422
  }
3418
- @keyframes close-ba978953 {
3423
+ @keyframes close-a7fc7ec9 {
3419
3424
  from {
3420
3425
  opacity: 1;
3421
3426
  scale: 1;
@@ -25,5 +25,5 @@ const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
25
25
  };
26
26
  }
27
27
  });
28
- const digitInputSlot = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-86327944"]]);
28
+ const digitInputSlot = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-a9112549"]]);
29
29
  module.exports = digitInputSlot;
@@ -43,5 +43,5 @@ const _sfc_main = /* @__PURE__ */ Mo.defineComponent({
43
43
  };
44
44
  }
45
45
  });
46
- const digitInput = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-be93d7bf"]]);
46
+ const digitInput = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__scopeId", "data-v-86bf03a4"]]);
47
47
  module.exports = digitInput;
@@ -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;
@@ -24,7 +24,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
24
24
  };
25
25
  }
26
26
  });
27
- const digitInputSlot = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-86327944"]]);
27
+ const digitInputSlot = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a9112549"]]);
28
28
  export {
29
29
  digitInputSlot as default
30
30
  };
@@ -42,7 +42,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
42
42
  };
43
43
  }
44
44
  });
45
- const digitInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-be93d7bf"]]);
45
+ const digitInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-86bf03a4"]]);
46
46
  export {
47
47
  digitInput as default
48
48
  };
@@ -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
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@youcan/celeste",
3
3
  "type": "module",
4
- "version": "0.6.66",
4
+ "version": "0.6.68",
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.66",
48
- "@youcan/celeste-tokens": "0.6.66"
47
+ "@youcan/celeste-icons": "0.6.68",
48
+ "@youcan/celeste-tokens": "0.6.68"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@chromatic-com/storybook": "^4.1.1",
@@ -24,10 +24,11 @@ const forwardedProps = useForwardProps(delegatedProps);
24
24
  display: flex;
25
25
  box-sizing: border-box;
26
26
  flex-grow: 1;
27
+ flex-shrink: 1;
27
28
  align-items: center;
28
29
  justify-content: center;
29
- width: 64px;
30
- height: 64px;
30
+ min-width: 40px;
31
+ max-width: 64px;
31
32
  padding: 0;
32
33
  transition: all var(--animation-fast) ease-out;
33
34
  border: 1px solid var(--celeste-digit-input-border-color);
@@ -39,6 +40,7 @@ const forwardedProps = useForwardProps(delegatedProps);
39
40
  color: var(--color-text-strong-950);
40
41
  font: var(--title-h5-title);
41
42
  text-align: center;
43
+ aspect-ratio: 1;
42
44
 
43
45
  &::placeholder {
44
46
  transition: color var(--animation-fast) ease-out;
@@ -32,6 +32,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits);
32
32
  .celeste-digit-input {
33
33
  display: flex;
34
34
  align-items: center;
35
+ max-width: 100%;
35
36
  gap: var(--spacing-10);
36
37
  }
37
38
  </style>
@@ -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);