@citruslime/ui 4.0.2-beta.16 → 4.0.2-beta.17

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.
@@ -1,7 +1,7 @@
1
1
  import { Icon } from "@iconify/vue";
2
2
  import { defineComponent, ref, createElementBlock, openBlock, renderSlot, normalizeProps, guardReactiveProps, Fragment, createElementVNode, normalizeClass, createVNode, unref, Transition, withCtx, withDirectives, mergeProps, vShow, createBlock, Teleport, renderList, toDisplayString, createCommentVNode, computed, createTextVNode, mergeModels, useModel, watch, createSlots, vModelDynamic, shallowRef, toValue, toRefs, withKeys, onMounted, onUnmounted, withModifiers, nextTick, useAttrs, resolveComponent, inject, vModelCheckbox, watchEffect, vModelText, useCssVars, toHandlers, normalizeStyle, isRef, useSlots, provide } from "vue";
3
3
  import { generateStringId, highlightText, isTouchDevice, validateEmail as validateEmail$1, escapeStringForRegExp } from "@citruslime/utils";
4
- import { useFocusWithin, onKeyDown, toArray, unrefElement, tryOnScopeDispose, onClickOutside, useBreakpoints, breakpointsTailwind, useTimeoutFn, useMouseInElement, useThrottle, useMediaQuery, useDebounceFn, useMouse, useDraggable, defaultDocument, tryOnMounted, useThrottleFn, useWindowSize, useElementSize, useElementBounding } from "@vueuse/core";
4
+ import { useFocusWithin, onKeyDown, toArray, unrefElement, tryOnScopeDispose, onClickOutside, useBreakpoints, breakpointsTailwind, useTimeoutFn, useMouseInElement, useMediaQuery, useThrottle, useDebounceFn, useMouse, useDraggable, defaultDocument, tryOnMounted, useThrottleFn, useWindowSize, useElementSize, useElementBounding } from "@vueuse/core";
5
5
  import { useI18n, createI18n } from "vue-i18n";
6
6
  import { createFocusTrap } from "focus-trap";
7
7
  import { copy } from "@citruslime/vue-utils";
@@ -3602,6 +3602,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
3602
3602
  setup(__props, { emit: __emit }) {
3603
3603
  const props = __props;
3604
3604
  const emit = __emit;
3605
+ const isMediumScreen = useMediaQuery("(max-height: 911px)");
3605
3606
  const { t: t2 } = useI18n();
3606
3607
  const quickDateGroups = computed(() => {
3607
3608
  const groups = [];
@@ -3636,19 +3637,25 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
3636
3637
  return (_ctx, _cache) => {
3637
3638
  return openBlock(), createElementBlock("div", _hoisted_1$G, [
3638
3639
  createElementVNode("div", null, toDisplayString(unref(t2)("quickDates.quickDatesHeader")), 1),
3639
- (openBlock(true), createElementBlock(Fragment, null, renderList(quickDateGroups.value, (group, index2) => {
3640
- return openBlock(), createElementBlock("div", {
3641
- key: index2,
3642
- class: "cl:pt-2"
3643
- }, [
3644
- createVNode(_sfc_main$S, {
3645
- dates: group,
3646
- "selected-quick-date": _ctx.selectedQuickDate,
3647
- onQuickDateSelected: _cache[0] || (_cache[0] = ($event) => emit("quick-date-selected", $event))
3648
- }, null, 8, ["dates", "selected-quick-date"]),
3649
- index2 < quickDateGroups.value.length - 1 ? (openBlock(), createElementBlock("div", _hoisted_2$v)) : createCommentVNode("", true)
3650
- ]);
3651
- }), 128))
3640
+ createElementVNode("div", {
3641
+ class: normalizeClass({
3642
+ "cl:max-h-[100px] cl:overflow-y-auto": unref(isMediumScreen)
3643
+ })
3644
+ }, [
3645
+ (openBlock(true), createElementBlock(Fragment, null, renderList(quickDateGroups.value, (group, index2) => {
3646
+ return openBlock(), createElementBlock("div", {
3647
+ key: index2,
3648
+ class: "cl:pt-2"
3649
+ }, [
3650
+ createVNode(_sfc_main$S, {
3651
+ dates: group,
3652
+ "selected-quick-date": _ctx.selectedQuickDate,
3653
+ onQuickDateSelected: _cache[0] || (_cache[0] = ($event) => emit("quick-date-selected", $event))
3654
+ }, null, 8, ["dates", "selected-quick-date"]),
3655
+ index2 < quickDateGroups.value.length - 1 ? (openBlock(), createElementBlock("div", _hoisted_2$v)) : createCommentVNode("", true)
3656
+ ]);
3657
+ }), 128))
3658
+ ], 2)
3652
3659
  ]);
3653
3660
  };
3654
3661
  }