pxd 0.0.44 → 0.0.45

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 (122) hide show
  1. package/dist/components/active-graph/index.d.vue.ts +2 -2
  2. package/dist/components/active-graph/index.vue.d.ts +2 -2
  3. package/dist/components/avatar/index.vue +1 -1
  4. package/dist/components/backtop/index.d.vue.ts +2 -2
  5. package/dist/components/backtop/index.vue.d.ts +2 -2
  6. package/dist/components/badge/index.d.vue.ts +2 -2
  7. package/dist/components/badge/index.vue +1 -1
  8. package/dist/components/badge/index.vue.d.ts +2 -2
  9. package/dist/components/browser/index.d.vue.ts +2 -2
  10. package/dist/components/browser/index.vue +3 -1
  11. package/dist/components/browser/index.vue.d.ts +2 -2
  12. package/dist/components/button/index.d.vue.ts +4 -4
  13. package/dist/components/button/index.vue.d.ts +4 -4
  14. package/dist/components/carousel-group/index.d.vue.ts +2 -2
  15. package/dist/components/carousel-group/index.vue +1 -1
  16. package/dist/components/carousel-group/index.vue.d.ts +2 -2
  17. package/dist/components/checkbox-group/index.d.vue.ts +4 -4
  18. package/dist/components/checkbox-group/index.vue.d.ts +4 -4
  19. package/dist/components/choicebox/index.d.vue.ts +3 -3
  20. package/dist/components/choicebox/index.vue.d.ts +3 -3
  21. package/dist/components/choicebox-group/index.d.vue.ts +2 -2
  22. package/dist/components/choicebox-group/index.vue.d.ts +2 -2
  23. package/dist/components/command-menu/index.d.vue.ts +3 -3
  24. package/dist/components/command-menu/index.vue +6 -2
  25. package/dist/components/command-menu/index.vue.d.ts +3 -3
  26. package/dist/components/command-menu-item/index.d.vue.ts +2 -2
  27. package/dist/components/command-menu-item/index.vue.d.ts +2 -2
  28. package/dist/components/config-provider/index.d.vue.ts +2 -2
  29. package/dist/components/config-provider/index.vue.d.ts +2 -2
  30. package/dist/components/countdown/index.d.vue.ts +2 -2
  31. package/dist/components/countdown/index.vue.d.ts +2 -2
  32. package/dist/components/dash-line/index.d.vue.ts +13 -0
  33. package/dist/components/dash-line/index.vue +78 -0
  34. package/dist/components/dash-line/index.vue.d.ts +13 -0
  35. package/dist/components/description/index.d.vue.ts +2 -2
  36. package/dist/components/description/index.vue.d.ts +2 -2
  37. package/dist/components/drawer/index.d.vue.ts +7 -6
  38. package/dist/components/drawer/index.vue +7 -2
  39. package/dist/components/drawer/index.vue.d.ts +7 -6
  40. package/dist/components/fader/index.vue +4 -3
  41. package/dist/components/hold-button/index.d.vue.ts +4 -4
  42. package/dist/components/hold-button/index.vue.d.ts +4 -4
  43. package/dist/components/index.d.ts +1 -0
  44. package/dist/components/index.js +1 -0
  45. package/dist/components/input/index.d.vue.ts +4 -4
  46. package/dist/components/input/index.vue +6 -5
  47. package/dist/components/input/index.vue.d.ts +4 -4
  48. package/dist/components/intersection-observer/index.d.vue.ts +3 -3
  49. package/dist/components/intersection-observer/index.vue +2 -2
  50. package/dist/components/intersection-observer/index.vue.d.ts +3 -3
  51. package/dist/components/kbd/index.vue +1 -1
  52. package/dist/components/link-button/index.d.vue.ts +5 -5
  53. package/dist/components/link-button/index.vue.d.ts +5 -5
  54. package/dist/components/list/index.d.vue.ts +2 -2
  55. package/dist/components/list/index.vue +5 -4
  56. package/dist/components/list/index.vue.d.ts +2 -2
  57. package/dist/components/material/index.d.vue.ts +2 -2
  58. package/dist/components/material/index.vue.d.ts +2 -2
  59. package/dist/components/menu/index.d.vue.ts +3 -3
  60. package/dist/components/menu/index.vue.d.ts +3 -3
  61. package/dist/components/message/index.vue +6 -2
  62. package/dist/components/modal/index.d.vue.ts +7 -6
  63. package/dist/components/modal/index.vue +7 -2
  64. package/dist/components/modal/index.vue.d.ts +7 -6
  65. package/dist/components/note/index.vue +2 -2
  66. package/dist/components/number-input/index.d.vue.ts +4 -4
  67. package/dist/components/number-input/index.vue +4 -8
  68. package/dist/components/number-input/index.vue.d.ts +4 -4
  69. package/dist/components/overlay/index.d.vue.ts +2 -2
  70. package/dist/components/overlay/index.vue +33 -26
  71. package/dist/components/overlay/index.vue.d.ts +2 -2
  72. package/dist/components/overlay/overlay-stack.d.ts +3 -0
  73. package/dist/components/overlay/overlay-stack.js +17 -0
  74. package/dist/components/pagination/index.d.vue.ts +2 -2
  75. package/dist/components/pagination/index.vue +2 -2
  76. package/dist/components/pagination/index.vue.d.ts +2 -2
  77. package/dist/components/placeholder/index.d.vue.ts +12 -4
  78. package/dist/components/placeholder/index.vue +15 -19
  79. package/dist/components/placeholder/index.vue.d.ts +12 -4
  80. package/dist/components/popover/index.d.vue.ts +2 -2
  81. package/dist/components/popover/index.vue.d.ts +2 -2
  82. package/dist/components/progress/index.d.vue.ts +1 -1
  83. package/dist/components/progress/index.vue.d.ts +1 -1
  84. package/dist/components/radio-group/index.d.vue.ts +4 -4
  85. package/dist/components/radio-group/index.vue.d.ts +4 -4
  86. package/dist/components/scrollable/index.vue +2 -2
  87. package/dist/components/slider/index.d.vue.ts +1 -1
  88. package/dist/components/slider/index.vue.d.ts +1 -1
  89. package/dist/components/snippet/index.vue +3 -2
  90. package/dist/components/stack/index.d.vue.ts +2 -2
  91. package/dist/components/stack/index.vue.d.ts +2 -2
  92. package/dist/components/teleport/index.d.vue.ts +3 -3
  93. package/dist/components/teleport/index.vue.d.ts +3 -3
  94. package/dist/components/text/index.d.vue.ts +2 -2
  95. package/dist/components/text/index.vue.d.ts +2 -2
  96. package/dist/components/textarea/index.d.vue.ts +4 -4
  97. package/dist/components/textarea/index.vue.d.ts +4 -4
  98. package/dist/components/time-picker/index.d.vue.ts +2 -2
  99. package/dist/components/time-picker/index.vue +2 -2
  100. package/dist/components/time-picker/index.vue.d.ts +2 -2
  101. package/dist/components/toggle/index.d.vue.ts +5 -5
  102. package/dist/components/toggle/index.vue.d.ts +5 -5
  103. package/dist/components/tooltip/index.d.vue.ts +3 -3
  104. package/dist/components/tooltip/index.vue.d.ts +3 -3
  105. package/dist/composables/index.d.ts +1 -0
  106. package/dist/composables/index.js +1 -0
  107. package/dist/composables/use-focus-trap.d.ts +9 -1
  108. package/dist/composables/use-focus-trap.js +33 -51
  109. package/dist/composables/use-lock-scroll.d.ts +5 -0
  110. package/dist/composables/use-lock-scroll.js +40 -0
  111. package/dist/composables/use-repeat-action.js +3 -2
  112. package/dist/index.d.ts +1 -1
  113. package/dist/index.js +1 -1
  114. package/dist/styles/source.css +4 -2
  115. package/dist/styles/styles.css +2 -2
  116. package/dist/styles/tw.css +4 -2
  117. package/dist/utils/dom.d.ts +1 -0
  118. package/dist/utils/dom.js +12 -0
  119. package/dist/utils/event.js +12 -20
  120. package/dist/utils/get.js +1 -1
  121. package/package.json +18 -17
  122. package/volar.d.ts +1 -0
@@ -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
@@ -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;
@@ -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,14 +13,14 @@ 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;
@@ -228,7 +228,7 @@ onBeforeUnmount(() => {
228
228
  :key="i"
229
229
  :data-index="i"
230
230
  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 }"
231
+ :class="{ 'bg-primary!': i === correctIndex }"
232
232
  />
233
233
  </slot>
234
234
  </div>
@@ -13,14 +13,14 @@ 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;
@@ -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>;
@@ -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;
@@ -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;
@@ -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;
@@ -0,0 +1,78 @@
1
+ <script setup>
2
+ import { computed } from "vue";
3
+ import { getCssUnitValue } from "../../utils/format";
4
+ defineOptions({
5
+ name: "PDashLine"
6
+ });
7
+ const props = defineProps({
8
+ position: { type: [String, Array], required: false, default: () => ["top"] },
9
+ lineSize: { type: [String, Number], required: false },
10
+ dashSize: { type: [String, Number], required: false },
11
+ color: { type: String, required: false },
12
+ gap: { type: [String, Number], required: false }
13
+ });
14
+ const computedStyle = computed(() => ({
15
+ "--dash-line-color": props.color,
16
+ "--dash-line-dash": getCssUnitValue(props.dashSize),
17
+ "--dash-line-size": getCssUnitValue(props.lineSize),
18
+ "--dash-line-gap": getCssUnitValue(props.gap)
19
+ }));
20
+ </script>
21
+
22
+ <template>
23
+ <div class="pxd-dash-line relative max-w-full min-w-full" :data-position="position" :style="computedStyle" />
24
+ </template>
25
+
26
+ <style lang="postcss">
27
+ .pxd-dash-line {
28
+ --g: var(--dash-line-gap, 8px);
29
+ --d: var(--dash-line-dash, 8px);
30
+ --s: var(--dash-line-size, 1px);
31
+ --c: var(--dash-line-color, var(--color-gray-600));
32
+
33
+ &[data-position*="top"]::before,
34
+ &[data-position*="bottom"]::after,
35
+ &[data-position*="left"]::before,
36
+ &[data-position*="right"]::after {
37
+ content: '';
38
+ position: absolute;
39
+ pointer-events: none;
40
+ background-image: repeating-linear-gradient(to var(--p),
41
+ var(--c) 0 var(--d),
42
+ transparent var(--d) calc(var(--d) + var(--g)));
43
+ }
44
+
45
+ &[data-position*="top"]::before {
46
+ top: 0;
47
+ }
48
+
49
+ &[data-position*="bottom"]::after {
50
+ bottom: 0;
51
+ }
52
+
53
+ &[data-position*="left"]::before {
54
+ left: 0;
55
+ }
56
+
57
+ &[data-position*="right"]::after {
58
+ right: 0;
59
+ }
60
+
61
+ &[data-position*="top"]::before,
62
+ &[data-position*="bottom"]::after {
63
+ --p: right;
64
+ left: 0;
65
+ right: 0;
66
+ width: 100%;
67
+ height: var(--s);
68
+ }
69
+
70
+ &[data-position*="left"]::before,
71
+ &[data-position*="right"]::after {
72
+ --p: bottom;
73
+ top: 0;
74
+ bottom: 0;
75
+ width: var(--s);
76
+ }
77
+ }
78
+ </style>
@@ -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;
@@ -3,11 +3,11 @@ interface Props {
3
3
  content?: string;
4
4
  tooltip?: string;
5
5
  }
6
- declare var __VLS_1: {}, __VLS_12: {};
6
+ declare var __VLS_1: {}, __VLS_14: {};
7
7
  type __VLS_Slots = {} & {
8
8
  title?: (props: typeof __VLS_1) => any;
9
9
  } & {
10
- content?: (props: typeof __VLS_12) => any;
10
+ content?: (props: typeof __VLS_14) => any;
11
11
  };
12
12
  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>;
13
13
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -3,11 +3,11 @@ interface Props {
3
3
  content?: string;
4
4
  tooltip?: string;
5
5
  }
6
- declare var __VLS_1: {}, __VLS_12: {};
6
+ declare var __VLS_1: {}, __VLS_14: {};
7
7
  type __VLS_Slots = {} & {
8
8
  title?: (props: typeof __VLS_1) => any;
9
9
  } & {
10
- content?: (props: typeof __VLS_12) => any;
10
+ content?: (props: typeof __VLS_14) => any;
11
11
  };
12
12
  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>;
13
13
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;