pxd 0.0.44 → 0.0.46

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.
Files changed (172) hide show
  1. package/dist/components/_internal/fragment-container.d.ts +2 -0
  2. package/dist/components/_internal/fragment-container.js +25 -0
  3. package/dist/components/active-graph/index.d.vue.ts +2 -2
  4. package/dist/components/active-graph/index.vue.d.ts +2 -2
  5. package/dist/components/avatar/index.vue +1 -1
  6. package/dist/components/backtop/index.d.vue.ts +2 -2
  7. package/dist/components/backtop/index.vue.d.ts +2 -2
  8. package/dist/components/badge/index.d.vue.ts +2 -2
  9. package/dist/components/badge/index.vue +2 -2
  10. package/dist/components/badge/index.vue.d.ts +2 -2
  11. package/dist/components/browser/index.d.vue.ts +2 -2
  12. package/dist/components/browser/index.vue +3 -1
  13. package/dist/components/browser/index.vue.d.ts +2 -2
  14. package/dist/components/button/index.d.vue.ts +4 -4
  15. package/dist/components/button/index.vue +1 -1
  16. package/dist/components/button/index.vue.d.ts +4 -4
  17. package/dist/components/carousel-group/index.d.vue.ts +2 -3
  18. package/dist/components/carousel-group/index.vue +17 -5
  19. package/dist/components/carousel-group/index.vue.d.ts +2 -3
  20. package/dist/components/checkbox-group/index.d.vue.ts +4 -4
  21. package/dist/components/checkbox-group/index.vue.d.ts +4 -4
  22. package/dist/components/choicebox/index.d.vue.ts +3 -3
  23. package/dist/components/choicebox/index.vue +1 -1
  24. package/dist/components/choicebox/index.vue.d.ts +3 -3
  25. package/dist/components/choicebox-group/index.d.vue.ts +2 -2
  26. package/dist/components/choicebox-group/index.vue +1 -1
  27. package/dist/components/choicebox-group/index.vue.d.ts +2 -2
  28. package/dist/components/command-menu/index.d.vue.ts +3 -3
  29. package/dist/components/command-menu/index.vue +6 -2
  30. package/dist/components/command-menu/index.vue.d.ts +3 -3
  31. package/dist/components/command-menu-item/index.d.vue.ts +2 -2
  32. package/dist/components/command-menu-item/index.vue.d.ts +2 -2
  33. package/dist/components/config-provider/index.d.vue.ts +2 -2
  34. package/dist/components/config-provider/index.vue +1 -1
  35. package/dist/components/config-provider/index.vue.d.ts +2 -2
  36. package/dist/components/countdown/index.d.vue.ts +2 -2
  37. package/dist/components/countdown/index.vue.d.ts +2 -2
  38. package/dist/components/dash-line/index.d.vue.ts +13 -0
  39. package/dist/components/dash-line/index.vue +78 -0
  40. package/dist/components/dash-line/index.vue.d.ts +13 -0
  41. package/dist/components/description/index.d.vue.ts +2 -2
  42. package/dist/components/description/index.vue.d.ts +2 -2
  43. package/dist/components/drawer/index.d.vue.ts +7 -6
  44. package/dist/components/drawer/index.vue +7 -2
  45. package/dist/components/drawer/index.vue.d.ts +7 -6
  46. package/dist/components/error/index.d.vue.ts +2 -2
  47. package/dist/components/error/index.vue +1 -1
  48. package/dist/components/error/index.vue.d.ts +2 -2
  49. package/dist/components/fader/index.vue +8 -24
  50. package/dist/components/hold-button/index.d.vue.ts +4 -4
  51. package/dist/components/hold-button/index.vue.d.ts +4 -4
  52. package/dist/components/index.d.ts +2 -1
  53. package/dist/components/index.js +2 -1
  54. package/dist/components/input/index.d.vue.ts +8 -9
  55. package/dist/components/input/index.vue +68 -71
  56. package/dist/components/input/index.vue.d.ts +8 -9
  57. package/dist/components/intersection-observer/index.d.vue.ts +3 -3
  58. package/dist/components/intersection-observer/index.vue +5 -5
  59. package/dist/components/intersection-observer/index.vue.d.ts +3 -3
  60. package/dist/components/kbd/index.vue +1 -1
  61. package/dist/components/link-button/index.d.vue.ts +5 -5
  62. package/dist/components/link-button/index.vue +1 -1
  63. package/dist/components/link-button/index.vue.d.ts +5 -5
  64. package/dist/components/list/index.d.vue.ts +2 -2
  65. package/dist/components/list/index.vue +5 -4
  66. package/dist/components/list/index.vue.d.ts +2 -2
  67. package/dist/components/list-item/index.vue +1 -1
  68. package/dist/components/material/index.d.vue.ts +2 -2
  69. package/dist/components/material/index.vue.d.ts +2 -2
  70. package/dist/components/menu/index.d.vue.ts +2 -2
  71. package/dist/components/menu/index.vue +1 -7
  72. package/dist/components/menu/index.vue.d.ts +2 -2
  73. package/dist/components/message/index.vue +6 -2
  74. package/dist/components/modal/index.d.vue.ts +7 -6
  75. package/dist/components/modal/index.vue +7 -2
  76. package/dist/components/modal/index.vue.d.ts +7 -6
  77. package/dist/components/noise-background/index.d.vue.ts +19 -0
  78. package/dist/components/noise-background/index.vue +18 -0
  79. package/dist/components/noise-background/index.vue.d.ts +19 -0
  80. package/dist/components/note/index.d.vue.ts +3 -3
  81. package/dist/components/note/index.vue +3 -3
  82. package/dist/components/note/index.vue.d.ts +3 -3
  83. package/dist/components/number-input/index.d.vue.ts +4 -4
  84. package/dist/components/number-input/index.vue +5 -9
  85. package/dist/components/number-input/index.vue.d.ts +4 -4
  86. package/dist/components/overlay/index.d.vue.ts +2 -2
  87. package/dist/components/overlay/index.vue +33 -26
  88. package/dist/components/overlay/index.vue.d.ts +2 -2
  89. package/dist/components/overlay/overlay-stack.d.ts +3 -0
  90. package/dist/components/overlay/overlay-stack.js +17 -0
  91. package/dist/components/pagination/index.d.vue.ts +2 -2
  92. package/dist/components/pagination/index.vue +2 -2
  93. package/dist/components/pagination/index.vue.d.ts +2 -2
  94. package/dist/components/pin-input/index.d.vue.ts +3 -14
  95. package/dist/components/pin-input/index.vue +28 -40
  96. package/dist/components/pin-input/index.vue.d.ts +3 -14
  97. package/dist/components/placeholder/index.d.vue.ts +12 -4
  98. package/dist/components/placeholder/index.vue +14 -20
  99. package/dist/components/placeholder/index.vue.d.ts +12 -4
  100. package/dist/components/popover/index.d.vue.ts +8 -18
  101. package/dist/components/popover/index.vue +71 -284
  102. package/dist/components/popover/index.vue.d.ts +8 -18
  103. package/dist/components/progress/index.d.vue.ts +1 -1
  104. package/dist/components/progress/index.vue.d.ts +1 -1
  105. package/dist/components/radio-group/index.d.vue.ts +4 -4
  106. package/dist/components/radio-group/index.vue.d.ts +4 -4
  107. package/dist/components/scrollable/index.vue +2 -2
  108. package/dist/components/slider/index.d.vue.ts +1 -1
  109. package/dist/components/slider/index.vue.d.ts +1 -1
  110. package/dist/components/snippet/index.vue +3 -2
  111. package/dist/components/stack/index.d.vue.ts +2 -2
  112. package/dist/components/stack/index.vue +1 -1
  113. package/dist/components/stack/index.vue.d.ts +2 -2
  114. package/dist/components/status-dot/index.d.vue.ts +3 -2
  115. package/dist/components/status-dot/index.vue +1 -1
  116. package/dist/components/status-dot/index.vue.d.ts +3 -2
  117. package/dist/components/teleport/index.d.vue.ts +3 -3
  118. package/dist/components/teleport/index.vue.d.ts +3 -3
  119. package/dist/components/text/index.d.vue.ts +2 -2
  120. package/dist/components/text/index.vue +1 -1
  121. package/dist/components/text/index.vue.d.ts +2 -2
  122. package/dist/components/textarea/index.d.vue.ts +6 -17
  123. package/dist/components/textarea/index.vue +25 -33
  124. package/dist/components/textarea/index.vue.d.ts +6 -17
  125. package/dist/components/time-picker/index.d.vue.ts +9 -2
  126. package/dist/components/time-picker/index.vue +76 -93
  127. package/dist/components/time-picker/index.vue.d.ts +9 -2
  128. package/dist/components/toggle/index.d.vue.ts +6 -9
  129. package/dist/components/toggle/index.vue +32 -41
  130. package/dist/components/toggle/index.vue.d.ts +6 -9
  131. package/dist/components/tooltip/index.d.vue.ts +3 -3
  132. package/dist/components/tooltip/index.vue +1 -1
  133. package/dist/components/tooltip/index.vue.d.ts +3 -3
  134. package/dist/composables/index.d.ts +1 -0
  135. package/dist/composables/index.js +1 -0
  136. package/dist/composables/use-focus-trap.d.ts +9 -1
  137. package/dist/composables/use-focus-trap.js +33 -51
  138. package/dist/composables/use-lock-scroll.d.ts +5 -0
  139. package/dist/composables/use-lock-scroll.js +40 -0
  140. package/dist/composables/use-outside-click.js +8 -2
  141. package/dist/composables/use-repeat-action.js +3 -2
  142. package/dist/index.d.ts +1 -1
  143. package/dist/index.js +1 -1
  144. package/dist/styles/source.css +8 -5
  145. package/dist/styles/styles.css +2 -2
  146. package/dist/styles/tw.css +8 -5
  147. package/dist/types/components/error.d.ts +1 -1
  148. package/dist/types/components/input.d.ts +1 -1
  149. package/dist/utils/debounce.d.ts +1 -1
  150. package/dist/utils/debounce.js +1 -1
  151. package/dist/utils/dom.d.ts +1 -0
  152. package/dist/utils/dom.js +12 -0
  153. package/dist/utils/event.js +12 -20
  154. package/dist/utils/get.d.ts +0 -8
  155. package/dist/utils/get.js +1 -126
  156. package/dist/utils/index.d.ts +11 -0
  157. package/dist/utils/index.js +11 -0
  158. package/dist/utils/throttle.d.ts +7 -1
  159. package/dist/utils/throttle.js +16 -1
  160. package/package.json +25 -18
  161. package/volar.d.ts +2 -1
  162. package/dist/components/keep-alive-container/index.d.vue.ts +0 -13
  163. package/dist/components/keep-alive-container/index.vue +0 -11
  164. package/dist/components/keep-alive-container/index.vue.d.ts +0 -13
  165. package/dist/utils/debounce/compat.d.ts +0 -143
  166. package/dist/utils/debounce/compat.js +0 -47
  167. package/dist/utils/debounce/index.d.ts +0 -73
  168. package/dist/utils/debounce/index.js +0 -60
  169. package/dist/utils/throttle/compat.d.ts +0 -79
  170. package/dist/utils/throttle/compat.js +0 -9
  171. package/dist/utils/throttle/index.d.ts +0 -53
  172. package/dist/utils/throttle/index.js +0 -34
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,25 @@
1
+ import { defineComponent, h, version } from "vue";
2
+ export default defineComponent({
3
+ name: "FragmentContainer",
4
+ functional: true,
5
+ render: (() => {
6
+ if (version.startsWith("2")) {
7
+ return function(_, context) {
8
+ const slots = context.slots().default;
9
+ if (!slots || !slots.length) {
10
+ return null;
11
+ }
12
+ let renderAs = slots[0];
13
+ if (slots.length > 1) {
14
+ renderAs = h("div", { class: "pxd-fragment-container", ref: context.data?.ref }, slots);
15
+ } else if (context.data?.ref && !renderAs.data?.ref) {
16
+ renderAs.data.ref = context.data?.ref;
17
+ }
18
+ return renderAs;
19
+ };
20
+ }
21
+ return function() {
22
+ return this.$slots.default?.();
23
+ };
24
+ })()
25
+ });
@@ -21,11 +21,11 @@ interface TooltipInfo {
21
21
  left: number;
22
22
  top: number;
23
23
  }
24
- declare var __VLS_6: {
24
+ declare var __VLS_7: {
25
25
  data: TooltipInfo;
26
26
  };
27
27
  type __VLS_Slots = {} & {
28
- tooltip?: (props: typeof __VLS_6) => any;
28
+ tooltip?: (props: typeof __VLS_7) => any;
29
29
  };
30
30
  declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
31
31
  "cell-click": (args_0: MouseEvent, args_1: string) => any;
@@ -21,11 +21,11 @@ interface TooltipInfo {
21
21
  left: number;
22
22
  top: number;
23
23
  }
24
- declare var __VLS_6: {
24
+ declare var __VLS_7: {
25
25
  data: TooltipInfo;
26
26
  };
27
27
  type __VLS_Slots = {} & {
28
- tooltip?: (props: typeof __VLS_6) => any;
28
+ tooltip?: (props: typeof __VLS_7) => any;
29
29
  };
30
30
  declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
31
31
  "cell-click": (args_0: MouseEvent, args_1: string) => any;
@@ -84,7 +84,7 @@ defineExpose({
84
84
  }
85
85
 
86
86
  &::before {
87
- background-image: linear-gradient(270deg, var(--color-gray-alpha-100), var(--color-gray-alpha-400), var(--color-gray-alpha-400), var(--color-gray-alpha-100));
87
+ background-image: linear-gradient(270deg, var(--color-gray-alpha-100), var(--color-gray-alpha-300), var(--color-gray-alpha-300), var(--color-gray-alpha-100));
88
88
  background-size: 400% 100%;
89
89
  }
90
90
 
@@ -4,9 +4,9 @@ interface Props {
4
4
  zIndex?: string | number;
5
5
  visibleThreshold?: number;
6
6
  }
7
- declare var __VLS_6: {};
7
+ declare var __VLS_7: {};
8
8
  type __VLS_Slots = {} & {
9
- default?: (props: typeof __VLS_6) => any;
9
+ default?: (props: typeof __VLS_7) => any;
10
10
  };
11
11
  declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
12
12
  visibleThreshold: number;
@@ -4,9 +4,9 @@ interface Props {
4
4
  zIndex?: string | number;
5
5
  visibleThreshold?: number;
6
6
  }
7
- declare var __VLS_6: {};
7
+ declare var __VLS_7: {};
8
8
  type __VLS_Slots = {} & {
9
- default?: (props: typeof __VLS_6) => any;
9
+ default?: (props: typeof __VLS_7) => any;
10
10
  };
11
11
  declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
12
12
  visibleThreshold: number;
@@ -34,9 +34,9 @@ declare const VARIANTS: {
34
34
  trial: string;
35
35
  turborepo: string;
36
36
  };
37
- declare var __VLS_7: {};
37
+ declare var __VLS_8: {};
38
38
  type __VLS_Slots = {} & {
39
- default?: (props: typeof __VLS_7) => any;
39
+ default?: (props: typeof __VLS_8) => any;
40
40
  };
41
41
  declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
42
42
  as: ComponentAs;
@@ -43,7 +43,7 @@ const VARIANTS = {
43
43
  const config = useConfigProvider();
44
44
  const computedClass = computed(() => {
45
45
  const classes = [
46
- "pxd-badge font-medium font-sans gap-1 inline-flex items-center justify-center rounded-full text-nowrap whitespace-nowrap !no-underline motion-safe:transition-all",
46
+ "pxd-badge font-medium gap-1 inline-flex items-center justify-center rounded-full font-sans text-nowrap whitespace-nowrap no-underline! motion-safe:transition-all",
47
47
  getFallbackValue(props.variant, VARIANTS, "gray"),
48
48
  getFallbackValue(props.size, SIZES, config.size),
49
49
  props.variant
@@ -68,7 +68,7 @@ const badgeAttrs = computed(() => {
68
68
  <template>
69
69
  <Component :is="as" :class="computedClass" v-bind="badgeAttrs">
70
70
  <slot />
71
- </component>
71
+ </Component>
72
72
  </template>
73
73
 
74
74
  <style lang="postcss">
@@ -34,9 +34,9 @@ declare const VARIANTS: {
34
34
  trial: string;
35
35
  turborepo: string;
36
36
  };
37
- declare var __VLS_7: {};
37
+ declare var __VLS_8: {};
38
38
  type __VLS_Slots = {} & {
39
- default?: (props: typeof __VLS_7) => any;
39
+ default?: (props: typeof __VLS_8) => any;
40
40
  };
41
41
  declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
42
42
  as: ComponentAs;
@@ -1,9 +1,9 @@
1
1
  interface Props {
2
2
  address?: string;
3
3
  }
4
- declare var __VLS_38: {};
4
+ declare var __VLS_40: {};
5
5
  type __VLS_Slots = {} & {
6
- default?: (props: typeof __VLS_38) => any;
6
+ default?: (props: typeof __VLS_40) => any;
7
7
  };
8
8
  declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
9
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -4,6 +4,7 @@ import CheckIcon from "@gdsicon/vue/check";
4
4
  import CopyIcon from "@gdsicon/vue/copy";
5
5
  import LockClosedIcon from "@gdsicon/vue/lock-closed";
6
6
  import RefreshClockwiseIcon from "@gdsicon/vue/refresh-clockwise";
7
+ import { computed } from "vue";
7
8
  import { useCopyClick } from "../../composables/use-copy-click";
8
9
  import PButton from "../button/index.vue";
9
10
  defineOptions({
@@ -13,6 +14,7 @@ defineProps({
13
14
  address: { type: String, required: false }
14
15
  });
15
16
  const { isCopied, copyText } = useCopyClick();
17
+ const renderIcon = computed(() => isCopied.value ? CheckIcon : CopyIcon);
16
18
  </script>
17
19
 
18
20
  <template>
@@ -42,7 +44,7 @@ const { isCopied, copyText } = useCopyClick();
42
44
 
43
45
  <PButton variant="ghost" size="xs" shape="rounded" class="size-6" icon @click="copyText(address)">
44
46
  <Transition name="pxd-transition--fade-scale" mode="out-in">
45
- <Component :is="isCopied ? CheckIcon : CopyIcon" class="text-sm text-foreground-secondary" />
47
+ <Component :is="renderIcon" class="text-sm text-foreground-secondary" />
46
48
  </Transition>
47
49
  </PButton>
48
50
  </div>
@@ -1,9 +1,9 @@
1
1
  interface Props {
2
2
  address?: string;
3
3
  }
4
- declare var __VLS_38: {};
4
+ declare var __VLS_40: {};
5
5
  type __VLS_Slots = {} & {
6
- default?: (props: typeof __VLS_38) => any;
6
+ default?: (props: typeof __VLS_40) => any;
7
7
  };
8
8
  declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
9
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -1,11 +1,11 @@
1
1
  import type { ButtonProps } from '../../types/components/button';
2
- declare var __VLS_15: {}, __VLS_17: {}, __VLS_19: {};
2
+ declare var __VLS_16: {}, __VLS_18: {}, __VLS_20: {};
3
3
  type __VLS_Slots = {} & {
4
- prefix?: (props: typeof __VLS_15) => any;
4
+ prefix?: (props: typeof __VLS_16) => any;
5
5
  } & {
6
- default?: (props: typeof __VLS_17) => any;
6
+ default?: (props: typeof __VLS_18) => any;
7
7
  } & {
8
- suffix?: (props: typeof __VLS_19) => any;
8
+ suffix?: (props: typeof __VLS_20) => any;
9
9
  };
10
10
  declare const __VLS_base: import("vue").DefineComponent<ButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
11
  click: (args_0: MouseEvent) => any;
@@ -106,5 +106,5 @@ function onButtonDblClick(event) {
106
106
  </span>
107
107
 
108
108
  <slot name="suffix" />
109
- </component>
109
+ </Component>
110
110
  </template>
@@ -1,11 +1,11 @@
1
1
  import type { ButtonProps } from '../../types/components/button';
2
- declare var __VLS_15: {}, __VLS_17: {}, __VLS_19: {};
2
+ declare var __VLS_16: {}, __VLS_18: {}, __VLS_20: {};
3
3
  type __VLS_Slots = {} & {
4
- prefix?: (props: typeof __VLS_15) => any;
4
+ prefix?: (props: typeof __VLS_16) => any;
5
5
  } & {
6
- default?: (props: typeof __VLS_17) => any;
6
+ default?: (props: typeof __VLS_18) => any;
7
7
  } & {
8
- suffix?: (props: typeof __VLS_19) => any;
8
+ suffix?: (props: typeof __VLS_20) => any;
9
9
  };
10
10
  declare const __VLS_base: import("vue").DefineComponent<ButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
11
  click: (args_0: MouseEvent) => any;
@@ -13,18 +13,17 @@ declare const __VLS_base: import("vue").DefineComponent<CarouselGroupProps, {},
13
13
  }, string, import("vue").PublicProps, Readonly<CarouselGroupProps> & Readonly<{
14
14
  onChange?: ((index: number) => any) | undefined;
15
15
  }>, {
16
- height: number | string;
17
16
  index: number;
18
- direction: import("../../types/shared").ComponentDirection;
17
+ height: number | string;
19
18
  loop: boolean;
20
19
  arrow: boolean;
21
20
  autoplay: boolean;
22
21
  interval: number;
23
22
  indicator: boolean;
23
+ direction: import("../../types/shared").ComponentDirection;
24
24
  indicatorType: "dot" | "line";
25
25
  indicatorPosition: import("../../types/shared").BasePosition;
26
26
  pauseOnHover: boolean;
27
- toggleOnWheel: boolean;
28
27
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
29
28
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
30
29
  declare const _default: typeof __VLS_export;
@@ -20,7 +20,7 @@ const props = defineProps({
20
20
  indicatorType: { type: String, required: false, default: "line" },
21
21
  indicatorPosition: { type: String, required: false, default: "bottom" },
22
22
  pauseOnHover: { type: Boolean, required: false, default: true },
23
- toggleOnWheel: { type: Boolean, required: false, default: true }
23
+ toggleOnWheel: { type: Boolean, required: false }
24
24
  });
25
25
  const emits = defineEmits(["change"]);
26
26
  const THROTTLE_INTERVALS = 550;
@@ -71,12 +71,24 @@ function onWheelToggle(ev) {
71
71
  if (!props.toggleOnWheel) {
72
72
  return;
73
73
  }
74
+ const length = carousels.value.length;
75
+ if (length <= 1) {
76
+ return;
77
+ }
74
78
  const delta = ev.deltaY > 0 ? 1 : -1;
75
- onToggleClick(delta);
76
- const index = virtualIndex.value;
77
- if (!props.loop && (index !== 0 && index !== carousels.value.length - 1)) {
79
+ const indexBefore = virtualIndex.value;
80
+ const lastIndex = length - 1;
81
+ if (!props.loop) {
82
+ const isAtFirstAndGoPrev = indexBefore <= 0 && delta < 0;
83
+ const isAtLastAndGoNext = indexBefore >= lastIndex && delta > 0;
84
+ if (isAtFirstAndGoPrev || isAtLastAndGoNext) {
85
+ return;
86
+ }
87
+ }
88
+ if (ev.cancelable) {
78
89
  ev.preventDefault();
79
90
  }
91
+ onToggleClick(delta);
80
92
  }
81
93
  function resetContainerPosition(resetIndex) {
82
94
  const containerClassList = sliderRef.value.classList;
@@ -228,7 +240,7 @@ onBeforeUnmount(() => {
228
240
  :key="i"
229
241
  :data-index="i"
230
242
  class="pxd-carousel-group--indicator-item relative h-(--h) w-(--w) cursor-pointer appearance-none rounded-full bg-gray-alpha-200 self-focus-ring outline-none hover:bg-gray-alpha-400 motion-safe:transition-colors"
231
- :class="{ '!bg-primary': i === correctIndex }"
243
+ :class="{ 'bg-primary!': i === correctIndex }"
232
244
  />
233
245
  </slot>
234
246
  </div>
@@ -13,18 +13,17 @@ declare const __VLS_base: import("vue").DefineComponent<CarouselGroupProps, {},
13
13
  }, string, import("vue").PublicProps, Readonly<CarouselGroupProps> & Readonly<{
14
14
  onChange?: ((index: number) => any) | undefined;
15
15
  }>, {
16
- height: number | string;
17
16
  index: number;
18
- direction: import("../../types/shared").ComponentDirection;
17
+ height: number | string;
19
18
  loop: boolean;
20
19
  arrow: boolean;
21
20
  autoplay: boolean;
22
21
  interval: number;
23
22
  indicator: boolean;
23
+ direction: import("../../types/shared").ComponentDirection;
24
24
  indicatorType: "dot" | "line";
25
25
  indicatorPosition: import("../../types/shared").BasePosition;
26
26
  pauseOnHover: boolean;
27
- toggleOnWheel: boolean;
28
27
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
29
28
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
30
29
  declare const _default: typeof __VLS_export;
@@ -1,19 +1,19 @@
1
1
  import type { CheckboxGroupProps } from '../../types/components/checkbox';
2
2
  declare function isCheckedAll(): boolean;
3
3
  declare function isCheckedPartial(): boolean;
4
- declare var __VLS_6: {};
4
+ declare var __VLS_8: {};
5
5
  type __VLS_Slots = {} & {
6
- default?: (props: typeof __VLS_6) => any;
6
+ default?: (props: typeof __VLS_8) => any;
7
7
  };
8
8
  declare const __VLS_base: import("vue").DefineComponent<CheckboxGroupProps, {
9
9
  isCheckedAll: typeof isCheckedAll;
10
10
  isCheckedPartial: typeof isCheckedPartial;
11
11
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
- "update:modelValue": (args_0: import("../../types/shared").ComponentValue[]) => any;
13
12
  change: (args_0: import("../../types/shared").ComponentValue[]) => any;
13
+ "update:modelValue": (args_0: import("../../types/shared").ComponentValue[]) => any;
14
14
  }, string, import("vue").PublicProps, Readonly<CheckboxGroupProps> & Readonly<{
15
- "onUpdate:modelValue"?: ((args_0: import("../../types/shared").ComponentValue[]) => any) | undefined;
16
15
  onChange?: ((args_0: import("../../types/shared").ComponentValue[]) => any) | undefined;
16
+ "onUpdate:modelValue"?: ((args_0: import("../../types/shared").ComponentValue[]) => any) | undefined;
17
17
  }>, {
18
18
  options: import("../../types/shared").ComponentOption[];
19
19
  modelValue: import("../../types/shared").ComponentValue[];
@@ -1,19 +1,19 @@
1
1
  import type { CheckboxGroupProps } from '../../types/components/checkbox';
2
2
  declare function isCheckedAll(): boolean;
3
3
  declare function isCheckedPartial(): boolean;
4
- declare var __VLS_6: {};
4
+ declare var __VLS_8: {};
5
5
  type __VLS_Slots = {} & {
6
- default?: (props: typeof __VLS_6) => any;
6
+ default?: (props: typeof __VLS_8) => any;
7
7
  };
8
8
  declare const __VLS_base: import("vue").DefineComponent<CheckboxGroupProps, {
9
9
  isCheckedAll: typeof isCheckedAll;
10
10
  isCheckedPartial: typeof isCheckedPartial;
11
11
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
- "update:modelValue": (args_0: import("../../types/shared").ComponentValue[]) => any;
13
12
  change: (args_0: import("../../types/shared").ComponentValue[]) => any;
13
+ "update:modelValue": (args_0: import("../../types/shared").ComponentValue[]) => any;
14
14
  }, string, import("vue").PublicProps, Readonly<CheckboxGroupProps> & Readonly<{
15
- "onUpdate:modelValue"?: ((args_0: import("../../types/shared").ComponentValue[]) => any) | undefined;
16
15
  onChange?: ((args_0: import("../../types/shared").ComponentValue[]) => any) | undefined;
16
+ "onUpdate:modelValue"?: ((args_0: import("../../types/shared").ComponentValue[]) => any) | undefined;
17
17
  }>, {
18
18
  options: import("../../types/shared").ComponentOption[];
19
19
  modelValue: import("../../types/shared").ComponentValue[];
@@ -1,9 +1,9 @@
1
1
  import type { ChoiceboxProps } from '../../types/components/choicebox';
2
- declare var __VLS_7: {}, __VLS_9: {};
2
+ declare var __VLS_8: {}, __VLS_10: {};
3
3
  type __VLS_Slots = {} & {
4
- label?: (props: typeof __VLS_7) => any;
4
+ label?: (props: typeof __VLS_8) => any;
5
5
  } & {
6
- description?: (props: typeof __VLS_9) => any;
6
+ description?: (props: typeof __VLS_10) => any;
7
7
  };
8
8
  declare const __VLS_base: import("vue").DefineComponent<ChoiceboxProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ChoiceboxProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
9
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -41,7 +41,7 @@ const computedAttrs = computed(() => {
41
41
  </slot>
42
42
  </span>
43
43
  </div>
44
- </component>
44
+ </Component>
45
45
  </template>
46
46
 
47
47
  <style lang="postcss">
@@ -1,9 +1,9 @@
1
1
  import type { ChoiceboxProps } from '../../types/components/choicebox';
2
- declare var __VLS_7: {}, __VLS_9: {};
2
+ declare var __VLS_8: {}, __VLS_10: {};
3
3
  type __VLS_Slots = {} & {
4
- label?: (props: typeof __VLS_7) => any;
4
+ label?: (props: typeof __VLS_8) => any;
5
5
  } & {
6
- description?: (props: typeof __VLS_9) => any;
6
+ description?: (props: typeof __VLS_10) => any;
7
7
  };
8
8
  declare const __VLS_base: import("vue").DefineComponent<ChoiceboxProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ChoiceboxProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
9
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -1,9 +1,9 @@
1
1
  import type { ChoiceboxGroupProps } from '../../types/components/choicebox';
2
- declare var __VLS_1: {}, __VLS_8: {};
2
+ declare var __VLS_1: {}, __VLS_9: {};
3
3
  type __VLS_Slots = {} & {
4
4
  label?: (props: typeof __VLS_1) => any;
5
5
  } & {
6
- default?: (props: typeof __VLS_8) => any;
6
+ default?: (props: typeof __VLS_9) => any;
7
7
  };
8
8
  declare const __VLS_base: import("vue").DefineComponent<ChoiceboxGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
9
  "update:modelValue": (args_0: NonNullable<import("../../types/shared").ComponentValue | import("../../types/shared").ComponentValue[] | undefined>) => any;
@@ -65,6 +65,6 @@ provideChoiceboxGroupModelValue(modelValue);
65
65
  v-bind="option"
66
66
  />
67
67
  </slot>
68
- </component>
68
+ </Component>
69
69
  </div>
70
70
  </template>
@@ -1,9 +1,9 @@
1
1
  import type { ChoiceboxGroupProps } from '../../types/components/choicebox';
2
- declare var __VLS_1: {}, __VLS_8: {};
2
+ declare var __VLS_1: {}, __VLS_9: {};
3
3
  type __VLS_Slots = {} & {
4
4
  label?: (props: typeof __VLS_1) => any;
5
5
  } & {
6
- default?: (props: typeof __VLS_8) => any;
6
+ default?: (props: typeof __VLS_9) => any;
7
7
  };
8
8
  declare const __VLS_base: import("vue").DefineComponent<ChoiceboxGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
9
  "update:modelValue": (args_0: NonNullable<import("../../types/shared").ComponentValue | import("../../types/shared").ComponentValue[] | undefined>) => any;
@@ -7,11 +7,11 @@ interface Props {
7
7
  closeOnPressEscape?: boolean;
8
8
  closeOnClickOverlay?: boolean;
9
9
  }
10
- declare var __VLS_27: {}, __VLS_29: {};
10
+ declare var __VLS_30: {}, __VLS_32: {};
11
11
  type __VLS_Slots = {} & {
12
- default?: (props: typeof __VLS_27) => any;
12
+ default?: (props: typeof __VLS_30) => any;
13
13
  } & {
14
- footer?: (props: typeof __VLS_29) => any;
14
+ footer?: (props: typeof __VLS_32) => any;
15
15
  };
16
16
  declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
17
  select: (args_0: MouseEvent, args_1: ListOptionSelected) => any;
@@ -1,7 +1,8 @@
1
1
  <script setup>
2
- import { nextTick, shallowRef } from "vue";
2
+ import { computed, nextTick, shallowRef } from "vue";
3
3
  import { useConfigProvider } from "../../composables/use-config-provider-context";
4
4
  import { useDeferredValue } from "../../composables/use-deferred-value";
5
+ import { PRESET_MEDIA_QUERIES, useMediaQuery } from "../../composables/use-media-query";
5
6
  import { useModelValue } from "../../composables/use-model-value";
6
7
  import { provideListFilterValue } from "../../contexts/list";
7
8
  import { getUniqueId } from "../../utils/uid";
@@ -28,6 +29,8 @@ const emits = defineEmits(["update:modelValue", "select", "show", "hide"]);
28
29
  const uniqueId = getUniqueId();
29
30
  const config = useConfigProvider();
30
31
  const modelValue = useModelValue(props, emits);
32
+ const isDesktop = useMediaQuery(PRESET_MEDIA_QUERIES.SM_UP);
33
+ const modalInitialFocus = computed(() => isDesktop.value ? `#${uniqueId}` : false);
31
34
  const listRef = shallowRef();
32
35
  const isEmptyResult = shallowRef(false);
33
36
  const {
@@ -70,6 +73,7 @@ provideListFilterValue(deferredFilterKeyword);
70
73
  class="pxd-command-menu max-sm:dvh-80"
71
74
  content-class="!p-0 overflow-hidden"
72
75
  wrapper-class="sm:top-1/8 sm:translate-y-0"
76
+ :initial-focus="modalInitialFocus"
73
77
  :close-on-press-escape="closeOnPressEscape"
74
78
  :close-on-click-overlay="closeOnClickOverlay"
75
79
  @show="showModal"
@@ -97,7 +101,7 @@ provideListFilterValue(deferredFilterKeyword);
97
101
  <PButton
98
102
  v-if="closeOnPressEscape"
99
103
  size="xs"
100
- class="!px-0 text-xs shrink-0"
104
+ class="px-0! text-xs shrink-0"
101
105
  @click="closeModal"
102
106
  >
103
107
  Esc
@@ -7,11 +7,11 @@ interface Props {
7
7
  closeOnPressEscape?: boolean;
8
8
  closeOnClickOverlay?: boolean;
9
9
  }
10
- declare var __VLS_27: {}, __VLS_29: {};
10
+ declare var __VLS_30: {}, __VLS_32: {};
11
11
  type __VLS_Slots = {} & {
12
- default?: (props: typeof __VLS_27) => any;
12
+ default?: (props: typeof __VLS_30) => any;
13
13
  } & {
14
- footer?: (props: typeof __VLS_29) => any;
14
+ footer?: (props: typeof __VLS_32) => any;
15
15
  };
16
16
  declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
17
  select: (args_0: MouseEvent, args_1: ListOptionSelected) => any;
@@ -1,6 +1,6 @@
1
- declare var __VLS_6: {};
1
+ declare var __VLS_8: {};
2
2
  type __VLS_Slots = {} & {
3
- default?: (props: typeof __VLS_6) => any;
3
+ default?: (props: typeof __VLS_8) => any;
4
4
  };
5
5
  declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
6
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -1,6 +1,6 @@
1
- declare var __VLS_6: {};
1
+ declare var __VLS_8: {};
2
2
  type __VLS_Slots = {} & {
3
- default?: (props: typeof __VLS_6) => any;
3
+ default?: (props: typeof __VLS_8) => any;
4
4
  };
5
5
  declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
6
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -3,9 +3,9 @@ import type { ComponentAs } from '../../types/shared';
3
3
  interface Props extends ConfigProviderProps {
4
4
  as?: ComponentAs;
5
5
  }
6
- declare var __VLS_7: {};
6
+ declare var __VLS_8: {};
7
7
  type __VLS_Slots = {} & {
8
- default?: (props: typeof __VLS_7) => any;
8
+ default?: (props: typeof __VLS_8) => any;
9
9
  };
10
10
  declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
11
11
  size: import("../../types/shared").ComponentSize;
@@ -15,5 +15,5 @@ provideConfigProvider(props);
15
15
  <template>
16
16
  <Component :is="as" class="pxd-config-provider">
17
17
  <slot />
18
- </component>
18
+ </Component>
19
19
  </template>
@@ -3,9 +3,9 @@ import type { ComponentAs } from '../../types/shared';
3
3
  interface Props extends ConfigProviderProps {
4
4
  as?: ComponentAs;
5
5
  }
6
- declare var __VLS_7: {};
6
+ declare var __VLS_8: {};
7
7
  type __VLS_Slots = {} & {
8
- default?: (props: typeof __VLS_7) => any;
8
+ default?: (props: typeof __VLS_8) => any;
9
9
  };
10
10
  declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
11
11
  size: import("../../types/shared").ComponentSize;
@@ -25,12 +25,12 @@ declare const __VLS_base: import("vue").DefineComponent<Props, {
25
25
  ms: any;
26
26
  }>;
27
27
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
28
- reset: () => any;
29
28
  change: (active: boolean) => any;
29
+ reset: () => any;
30
30
  finish: () => any;
31
31
  }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
32
- onReset?: (() => any) | undefined;
33
32
  onChange?: ((active: boolean) => any) | undefined;
33
+ onReset?: (() => any) | undefined;
34
34
  onFinish?: (() => any) | undefined;
35
35
  }>, {
36
36
  endTime: number;
@@ -25,12 +25,12 @@ declare const __VLS_base: import("vue").DefineComponent<Props, {
25
25
  ms: any;
26
26
  }>;
27
27
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
28
- reset: () => any;
29
28
  change: (active: boolean) => any;
29
+ reset: () => any;
30
30
  finish: () => any;
31
31
  }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
32
- onReset?: (() => any) | undefined;
33
32
  onChange?: ((active: boolean) => any) | undefined;
33
+ onReset?: (() => any) | undefined;
34
34
  onFinish?: (() => any) | undefined;
35
35
  }>, {
36
36
  endTime: number;
@@ -0,0 +1,13 @@
1
+ import type { BasePosition } from '../../types/shared';
2
+ interface Props {
3
+ position?: BasePosition | BasePosition[];
4
+ lineSize?: string | number;
5
+ dashSize?: string | number;
6
+ color?: string;
7
+ gap?: string | number;
8
+ }
9
+ declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
10
+ position: BasePosition | BasePosition[];
11
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;