pxd 0.0.60 → 0.0.61

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 (61) hide show
  1. package/dist/components/active-graph/index.vue +1 -1
  2. package/dist/components/badge/index.vue +1 -1
  3. package/dist/components/button/index.vue +1 -1
  4. package/dist/components/checkbox/index.vue +1 -1
  5. package/dist/components/chip/index.vue +1 -1
  6. package/dist/components/choicebox/index.vue +1 -1
  7. package/dist/components/collapse-group/index.vue +1 -1
  8. package/dist/components/command-menu/index.vue +1 -1
  9. package/dist/components/config-provider/index.d.vue.ts +1 -1
  10. package/dist/components/ellipsis-text/index.vue +2 -2
  11. package/dist/components/error/index.vue +1 -1
  12. package/dist/components/hold-button/index.vue +3 -6
  13. package/dist/components/input/index.vue +2 -2
  14. package/dist/components/kbd/index.vue +1 -1
  15. package/dist/components/link-button/index.vue +2 -5
  16. package/dist/components/list-item/index.d.vue.ts +1 -1
  17. package/dist/components/list-item/index.vue +1 -1
  18. package/dist/components/loading-bar/index.vue +1 -1
  19. package/dist/components/note/index.vue +1 -1
  20. package/dist/components/pin-input/index.d.vue.ts +1 -1
  21. package/dist/components/pin-input/index.vue +2 -2
  22. package/dist/components/placeholder/index.vue +14 -12
  23. package/dist/components/popover/index.d.vue.ts +1 -1
  24. package/dist/components/popover/index.vue +1 -1
  25. package/dist/components/popover/types.d.ts +1 -2
  26. package/dist/components/progress/index.vue +2 -2
  27. package/dist/components/project-banner/index.vue +1 -1
  28. package/dist/components/radio/index.vue +1 -1
  29. package/dist/components/radio-group/index.vue +1 -1
  30. package/dist/components/scrollable/types.d.ts +1 -2
  31. package/dist/components/skeleton/index.vue +1 -1
  32. package/dist/components/slider/index.vue +2 -2
  33. package/dist/components/snippet/index.vue +2 -2
  34. package/dist/components/stack/index.vue +1 -1
  35. package/dist/components/switch/index.vue +1 -1
  36. package/dist/components/switch-item/index.vue +2 -2
  37. package/dist/components/text/index.vue +1 -1
  38. package/dist/components/textarea/index.vue +2 -2
  39. package/dist/components/time-picker/index.vue +1 -1
  40. package/dist/components/toggle/index.vue +1 -1
  41. package/dist/components/toggle-button/index.vue +3 -3
  42. package/dist/components/toggle-button-group/index.vue +3 -3
  43. package/dist/components/tooltip/types.d.ts +1 -2
  44. package/dist/components/virtual-list/index.vue +2 -2
  45. package/dist/composables/use-browser-observer.d.ts +1 -1
  46. package/dist/composables/use-delay-destroy.d.ts +1 -1
  47. package/dist/composables/use-focus-trap.d.ts +1 -1
  48. package/dist/composables/use-message.d.ts +1 -1
  49. package/dist/composables/use-repeat-action.d.ts +1 -1
  50. package/dist/composables/use-virtual-list.d.ts +1 -1
  51. package/dist/contexts/carousel.d.ts +1 -1
  52. package/dist/contexts/checkbox.d.ts +1 -1
  53. package/dist/contexts/choicebox.d.ts +1 -1
  54. package/dist/contexts/collapse.d.ts +1 -1
  55. package/dist/contexts/list.d.ts +1 -1
  56. package/dist/contexts/radio.d.ts +1 -1
  57. package/dist/contexts/resizable.d.ts +1 -1
  58. package/dist/contexts/switch.d.ts +1 -1
  59. package/dist/contexts/toggle-button.d.ts +1 -1
  60. package/dist/utils/ref.d.ts +1 -1
  61. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  <script setup>
2
2
  import { computed, onBeforeUnmount, shallowRef } from "vue";
3
- import { useConfigProvider } from "../../contexts/config-provider";
4
3
  import { useDelayChange } from "../../composables/use-delay-change";
4
+ import { useConfigProvider } from "../../contexts/config-provider";
5
5
  import { getAllDatesBetween } from "../../utils/date";
6
6
  import { getCssUnitValue } from "../../utils/format";
7
7
  import { getColorByThreshold } from "../../utils/get";
@@ -1,7 +1,7 @@
1
1
  <script setup>
2
+ import { tv } from "tailwind-variants";
2
3
  import { computed } from "vue";
3
4
  import { useConfigProvider } from "../../contexts/config-provider";
4
- import { tv } from "tailwind-variants";
5
5
  defineOptions({
6
6
  name: "PBadge",
7
7
  inheritAttrs: false
@@ -1,9 +1,9 @@
1
1
  <script setup>
2
+ import { tv } from "tailwind-variants";
2
3
  import { computed } from "vue";
3
4
  import { useConfigProvider } from "../../contexts/config-provider";
4
5
  import { isTruthyProp } from "../../utils/format";
5
6
  import PSpinner from "../spinner/index.vue";
6
- import { tv } from "tailwind-variants";
7
7
  defineOptions({
8
8
  name: "PButton",
9
9
  inheritAttrs: false
@@ -1,11 +1,11 @@
1
1
  <script setup>
2
2
  import CheckIcon from "@gdsicon/vue/check";
3
3
  import MinusIcon from "@gdsicon/vue/minus";
4
+ import { tv } from "tailwind-variants";
4
5
  import { computed } from "vue";
5
6
  import { useModelValue } from "../../composables/use-model-value";
6
7
  import { useCheckboxGroupContext } from "../../contexts/checkbox";
7
8
  import { getUniqueId } from "../../utils/uid";
8
- import { tv } from "tailwind-variants";
9
9
  defineOptions({
10
10
  name: "PCheckbox",
11
11
  inheritAttrs: false,
@@ -1,7 +1,7 @@
1
1
  <script setup>
2
+ import { tv } from "tailwind-variants";
2
3
  import { computed } from "vue";
3
4
  import { getCssUnitValue, isTruthyProp } from "../../utils/format";
4
- import { tv } from "tailwind-variants";
5
5
  defineOptions({
6
6
  name: "PChip",
7
7
  inheritAttrs: false
@@ -1,9 +1,9 @@
1
1
  <script setup>
2
2
  import { computed, markRaw } from "vue";
3
+ import { provideChoiceboxContext } from "../../contexts/choicebox";
3
4
  import PCheckboxGroup from "../checkbox-group/index.vue";
4
5
  import PChoiceboxItem from "../choicebox-item/index.vue";
5
6
  import PRadioGroup from "../radio-group/index.vue";
6
- import { provideChoiceboxContext } from "../../contexts/choicebox";
7
7
  defineOptions({
8
8
  name: "PChoicebox",
9
9
  inheritAttrs: false,
@@ -1,7 +1,7 @@
1
1
  <script setup>
2
2
  import { computed, ref } from "vue";
3
- import { useConfigProvider } from "../../contexts/config-provider";
4
3
  import { provideCollapseGroupContext } from "../../contexts/collapse";
4
+ import { useConfigProvider } from "../../contexts/config-provider";
5
5
  import { getFallbackValue } from "../../utils/get";
6
6
  defineOptions({
7
7
  name: "PCollapseGroup",
@@ -1,9 +1,9 @@
1
1
  <script setup>
2
2
  import { nextTick, shallowRef } from "vue";
3
- import { useConfigProvider } from "../../contexts/config-provider";
4
3
  import { useDeferredValue } from "../../composables/use-deferred-value";
5
4
  import { PRESET_MEDIA_QUERIES, useMediaQuery } from "../../composables/use-media-query";
6
5
  import { useModelValue } from "../../composables/use-model-value";
6
+ import { useConfigProvider } from "../../contexts/config-provider";
7
7
  import { provideListFilterValue } from "../../contexts/list";
8
8
  import { getUniqueId } from "../../utils/uid";
9
9
  import PButton from "../button/index.vue";
@@ -1,5 +1,5 @@
1
- import type { ConfigProviderProps } from './types';
2
1
  import type { ComponentAs } from '../../types/shared';
2
+ import type { ConfigProviderProps } from './types';
3
3
  interface Props extends ConfigProviderProps {
4
4
  as?: ComponentAs;
5
5
  }
@@ -1,9 +1,9 @@
1
1
  <script setup>
2
+ import { twMerge } from "tailwind-merge";
2
3
  import { shallowRef, computed, nextTick, watch } from "vue";
3
4
  import { useResizeObserver } from "../../composables/use-browser-observer";
4
- import { isServer } from "../../utils/is";
5
5
  import { getStyle } from "../../utils/dom";
6
- import { twMerge } from "tailwind-merge";
6
+ import { isServer } from "../../utils/is";
7
7
  defineOptions({
8
8
  name: "PEllipsisText",
9
9
  inheritAttrs: false
@@ -1,10 +1,10 @@
1
1
  <script setup>
2
2
  import ExternalIcon from "@gdsicon/vue/external";
3
3
  import StopIcon from "@gdsicon/vue/stop";
4
+ import { tv } from "tailwind-variants";
4
5
  import { computed } from "vue";
5
6
  import { useConfigProvider } from "../../contexts/config-provider";
6
7
  import { isExternalLink } from "../../utils/format";
7
- import { tv } from "tailwind-variants";
8
8
  defineOptions({
9
9
  name: "PError",
10
10
  inheritAttrs: false
@@ -1,11 +1,10 @@
1
1
  <script setup>
2
- import { computed, onBeforeUnmount, shallowRef, useAttrs } from "vue";
2
+ import { computed, onBeforeUnmount, shallowRef } from "vue";
3
3
  import { getStyle } from "../../utils/dom";
4
4
  import { off, once } from "../../utils/event";
5
5
  import PButton from "../button/index.vue";
6
6
  defineOptions({
7
- name: "PHoldButton",
8
- inheritAttrs: false
7
+ name: "PHoldButton"
9
8
  });
10
9
  const props = defineProps({
11
10
  vibrate: { type: Boolean, required: false, default: true },
@@ -23,7 +22,6 @@ const props = defineProps({
23
22
  fullWidth: { type: Boolean, required: false }
24
23
  });
25
24
  const emits = defineEmits(["confirm", "canceled", "finished", "pointerup", "pointerdown"]);
26
- const attrs = useAttrs();
27
25
  const status = shallowRef("idle");
28
26
  const computedAttrs = computed(() => {
29
27
  const { scalable, durations, maskColor, cancelable, ...rest } = props;
@@ -35,8 +33,7 @@ const computedAttrs = computed(() => {
35
33
  effective: status.value !== "canceled"
36
34
  }
37
35
  ],
38
- ...rest,
39
- ...attrs
36
+ ...rest
40
37
  };
41
38
  });
42
39
  const computedStyle = computed(() => {
@@ -2,13 +2,13 @@
2
2
  import CrossIcon from "@gdsicon/vue/cross";
3
3
  import EyeIcon from "@gdsicon/vue/eye";
4
4
  import EyeOffIcon from "@gdsicon/vue/eye-off";
5
+ import { tv } from "tailwind-variants";
5
6
  import { computed, shallowRef } from "vue";
6
- import { useConfigProvider } from "../../contexts/config-provider";
7
7
  import { useModelValue } from "../../composables/use-model-value";
8
+ import { useConfigProvider } from "../../contexts/config-provider";
8
9
  import { NOOP } from "../../utils/event";
9
10
  import { isTruthyProp } from "../../utils/format";
10
11
  import { getUniqueId } from "../../utils/uid";
11
- import { tv } from "tailwind-variants";
12
12
  defineOptions({
13
13
  name: "PInput",
14
14
  inheritAttrs: false,
@@ -1,6 +1,6 @@
1
1
  <script setup>
2
- import { useConfigProvider } from "../../contexts/config-provider";
3
2
  import { computed } from "vue";
3
+ import { useConfigProvider } from "../../contexts/config-provider";
4
4
  import { getFallbackValue } from "../../utils/get";
5
5
  defineOptions({
6
6
  name: "PKbd",
@@ -1,11 +1,10 @@
1
1
  <script setup>
2
2
  import ExternalIcon from "@gdsicon/vue/external";
3
- import { computed, useAttrs } from "vue";
3
+ import { computed } from "vue";
4
4
  import { isExternalLink } from "../../utils/format";
5
5
  import PButton from "../button/index.vue";
6
6
  defineOptions({
7
- name: "PLinkButton",
8
- inheritAttrs: false
7
+ name: "PLinkButton"
9
8
  });
10
9
  const props = defineProps({
11
10
  href: { type: String, required: true },
@@ -16,11 +15,9 @@ const props = defineProps({
16
15
  externalIcon: { type: Boolean, required: false }
17
16
  });
18
17
  const emits = defineEmits(["click"]);
19
- const attrs = useAttrs();
20
18
  const computedAttrs = computed(() => {
21
19
  const { externalIcon, text, href, ...restProps } = props;
22
20
  const baseAttrs = {
23
- ...attrs,
24
21
  ...restProps,
25
22
  class: "pxd-link-button",
26
23
  rel: "noopener noreferrer",
@@ -8,7 +8,7 @@ declare const __VLS_base: import("vue").DefineComponent<ListItemProps, {}, {}, {
8
8
  }, string, import("vue").PublicProps, Readonly<ListItemProps> & Readonly<{
9
9
  onClick?: ((args_0: import("../list/types").ListOptionSelected, args_1: MouseEvent) => any) | undefined;
10
10
  }>, {
11
- type: "error" | "default" | "warning" | "separator";
11
+ type: "default" | "error" | "warning" | "separator";
12
12
  as: import("../../types/shared").ComponentAs;
13
13
  disabled: boolean;
14
14
  keywords: string[];
@@ -1,9 +1,9 @@
1
1
  <script setup>
2
+ import { tv } from "tailwind-variants";
2
3
  import { computed, shallowRef } from "vue";
3
4
  import { useListContext, useListFilterValue } from "../../contexts/list";
4
5
  import { unrefElement } from "../../utils/ref";
5
6
  import { getUniqueId } from "../../utils/uid";
6
- import { tv } from "tailwind-variants";
7
7
  defineOptions({
8
8
  name: "PListItem",
9
9
  inheritAttrs: false
@@ -1,11 +1,11 @@
1
1
  <script setup>
2
+ import { tv } from "tailwind-variants";
2
3
  import { computed, onBeforeUnmount, onMounted, shallowRef } from "vue";
3
4
  import { UPDATE_LOADING_BAR_EVENT_NAME } from "../../composables/use-loading-bar";
4
5
  import { cachedOff, cachedOn } from "../../utils/event";
5
6
  import { clampValue, isTruthyProp } from "../../utils/format";
6
7
  import { isServer } from "../../utils/is";
7
8
  import PTeleport from "../teleport/index.vue";
8
- import { tv } from "tailwind-variants";
9
9
  defineOptions({
10
10
  name: "PLoadingBar",
11
11
  inheritAttrs: false
@@ -3,10 +3,10 @@ import CheckCircleIcon from "@gdsicon/vue/check-circle";
3
3
  import InformationIcon from "@gdsicon/vue/information";
4
4
  import StopIcon from "@gdsicon/vue/stop";
5
5
  import WarningIcon from "@gdsicon/vue/warning";
6
+ import { tv } from "tailwind-variants";
6
7
  import { computed, h } from "vue";
7
8
  import { useConfigProvider } from "../../contexts/config-provider";
8
9
  import { isTruthyProp } from "../../utils/format";
9
- import { tv } from "tailwind-variants";
10
10
  defineOptions({
11
11
  name: "PNote",
12
12
  inheritAttrs: false
@@ -12,8 +12,8 @@ declare const __VLS_export: import("vue").DefineComponent<PinInputProps, {
12
12
  "onUpdate:modelValue"?: ((args_0: string) => any) | undefined;
13
13
  }>, {
14
14
  length: number;
15
- placeholder: string;
16
15
  type: "numeric" | "alphabetic" | "alphanumeric" | "numeric-password" | "alphabetic-password" | "alphanumeric-password";
16
+ placeholder: string;
17
17
  modelValue: string;
18
18
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
19
  declare const _default: typeof __VLS_export;
@@ -1,9 +1,9 @@
1
1
  <script setup>
2
+ import { tv } from "tailwind-variants";
2
3
  import { computed, shallowRef, watch } from "vue";
3
- import { useConfigProvider } from "../../contexts/config-provider";
4
4
  import { useModelValue } from "../../composables/use-model-value";
5
+ import { useConfigProvider } from "../../contexts/config-provider";
5
6
  import { isTruthyProp } from "../../utils/format";
6
- import { tv } from "tailwind-variants";
7
7
  defineOptions({
8
8
  name: "PPinInput",
9
9
  inheritAttrs: false,
@@ -1,7 +1,7 @@
1
1
  <script setup>
2
+ import { invert } from "es-toolkit";
2
3
  import { computed } from "vue";
3
4
  import { getCssUnitValue } from "../../utils/format";
4
- import { invert } from "es-toolkit";
5
5
  defineOptions({
6
6
  name: "PPlaceholder",
7
7
  inheritAttrs: false
@@ -37,16 +37,18 @@ const computedStyle = computed(() => {
37
37
  }
38
38
 
39
39
  --placeholder-deg: -45deg;
40
- background: linear-gradient(
41
- var(--placeholder-deg),
42
- var(--placeholder-color) 12.5%,
43
- #0000 12.5%,
44
- #0000 50%,
45
- var(--placeholder-color) 50%,
46
- var(--placeholder-color) 62.5%,
47
- #0000 62.5%,
48
- #0000 100%
49
- )
50
- 0 0 / var(--placeholder-gap, 12px) var(--placeholder-gap, 12px) padding-box;
40
+ background-image: linear-gradient(
41
+ var(--placeholder-deg),
42
+ var(--placeholder-color) 12.5%,
43
+ #0000 12.5%,
44
+ #0000 50%,
45
+ var(--placeholder-color) 50%,
46
+ var(--placeholder-color) 62.5%,
47
+ #0000 62.5%,
48
+ #0000 100%
49
+ );
50
+ background-clip: padding-box;
51
+ background-position: 0 0;
52
+ background-size: var(--placeholder-gap, 12px) var(--placeholder-gap, 12px);
51
53
  }
52
54
  </style>
@@ -25,9 +25,9 @@ declare const __VLS_base: import("vue").DefineComponent<PopoverProps, {
25
25
  "onOutside-click"?: ((args_0: MouseEvent) => any) | undefined;
26
26
  "onTrigger-click"?: ((args_0: PointerEvent) => any) | undefined;
27
27
  }>, {
28
+ position: import("../../types/shared").ComponentPosition;
28
29
  offset: number;
29
30
  trigger: PopoverTrigger | PopoverTrigger[];
30
- position: import("../../types/shared").ComponentPosition;
31
31
  showDelay: number;
32
32
  hideDelay: number;
33
33
  arrowColor: string;
@@ -4,10 +4,10 @@ import { computed, onBeforeUnmount, shallowRef, watch } from "vue";
4
4
  import { useDelayDestroy } from "../../composables/use-delay-destroy";
5
5
  import { useLockScroll } from "../../composables/use-lock-scroll";
6
6
  import { useOutsideClick } from "../../composables/use-outside-click";
7
+ import { useConfigProvider } from "../../contexts/config-provider";
7
8
  import { debounce } from "../../utils/debounce";
8
9
  import { cachedOff, cachedOn, sleep } from "../../utils/event";
9
10
  import { getCssUnitValue, toArray } from "../../utils/format";
10
- import { useConfigProvider } from "../../contexts/config-provider";
11
11
  import PTeleport from "../teleport/index.vue";
12
12
  defineOptions({
13
13
  name: "PPopover",
@@ -1,6 +1,5 @@
1
- import type { CSSProperties } from 'vue'
2
-
3
1
  import type { ComponentClass, ComponentPosition } from '../../types/shared'
2
+ import type { CSSProperties } from 'vue'
4
3
 
5
4
  export type PopoverTrigger = 'click' | 'hover' | 'focus' | 'contextmenu' | 'manual'
6
5
 
@@ -1,10 +1,10 @@
1
1
  <script setup>
2
+ import { tv } from "tailwind-variants";
2
3
  import { computed } from "vue";
3
- import { useConfigProvider } from "../../contexts/config-provider";
4
4
  import { useModelValue } from "../../composables/use-model-value";
5
+ import { useConfigProvider } from "../../contexts/config-provider";
5
6
  import { isTruthyProp } from "../../utils/format";
6
7
  import { getColorByThreshold } from "../../utils/get";
7
- import { tv } from "tailwind-variants";
8
8
  defineOptions({
9
9
  name: "PProgress",
10
10
  inheritAttrs: false,
@@ -1,6 +1,6 @@
1
1
  <script setup>
2
- import { computed } from "vue";
3
2
  import { tv } from "tailwind-variants";
3
+ import { computed } from "vue";
4
4
  defineOptions({
5
5
  name: "PProjectBanner",
6
6
  inheritAttrs: false
@@ -1,9 +1,9 @@
1
1
  <script setup>
2
+ import { tv } from "tailwind-variants";
2
3
  import { computed } from "vue";
3
4
  import { useModelValue } from "../../composables/use-model-value";
4
5
  import { useRadioGroupContext } from "../../contexts/radio";
5
6
  import { getUniqueId } from "../../utils/uid";
6
- import { tv } from "tailwind-variants";
7
7
  defineOptions({
8
8
  name: "PRadio",
9
9
  inheritAttrs: false,
@@ -1,8 +1,8 @@
1
1
  <script setup>
2
2
  import { provideRadioGroupContext } from "../../contexts/radio";
3
+ import { getUniqueId } from "../../utils/uid";
3
4
  import PRadio from "../radio/index.vue";
4
5
  import PStack from "../stack/index.vue";
5
- import { getUniqueId } from "../../utils/uid";
6
6
  defineOptions({
7
7
  name: "PRadioGroup",
8
8
  inheritAttrs: false,
@@ -1,6 +1,5 @@
1
- import type { CSSProperties } from 'vue'
2
-
3
1
  import type { ComponentClass, ComponentDirection, Nullable } from '../../types/shared'
2
+ import type { CSSProperties } from 'vue'
4
3
 
5
4
  export interface ScrollableProps {
6
5
  fader?: boolean
@@ -1,7 +1,7 @@
1
1
  <script setup>
2
+ import { tv } from "tailwind-variants";
2
3
  import { computed } from "vue";
3
4
  import { getCssUnitValue, increaseWithUnit } from "../../utils/format";
4
- import { tv } from "tailwind-variants";
5
5
  defineOptions({
6
6
  name: "PSkeleton",
7
7
  inheritAttrs: false
@@ -1,10 +1,10 @@
1
1
  <script setup>
2
2
  import { computed, onBeforeUnmount, shallowRef } from "vue";
3
- import { useConfigProvider } from "../../contexts/config-provider";
4
3
  import { useModelValue } from "../../composables/use-model-value";
4
+ import { useConfigProvider } from "../../contexts/config-provider";
5
5
  import { cachedOff, cachedOn, once } from "../../utils/event";
6
- import { getFallbackValue } from "../../utils/get";
7
6
  import { NOOP } from "../../utils/event";
7
+ import { getFallbackValue } from "../../utils/get";
8
8
  import { throttleByRaf } from "../../utils/throttle";
9
9
  defineOptions({
10
10
  name: "PSlider",
@@ -1,11 +1,11 @@
1
1
  <script setup>
2
2
  import CheckIcon from "@gdsicon/vue/check";
3
3
  import CopyIcon from "@gdsicon/vue/copy";
4
+ import { tv } from "tailwind-variants";
4
5
  import { computed } from "vue";
5
- import { useConfigProvider } from "../../contexts/config-provider";
6
6
  import { useCopyClick } from "../../composables/use-copy-click";
7
+ import { useConfigProvider } from "../../contexts/config-provider";
7
8
  import { getCssUnitValue, isTruthyProp, toArray } from "../../utils/format";
8
- import { tv } from "tailwind-variants";
9
9
  defineOptions({
10
10
  name: "PSnippet",
11
11
  inheritAttrs: false
@@ -1,7 +1,7 @@
1
1
  <script setup>
2
+ import { tv } from "tailwind-variants";
2
3
  import { computed } from "vue";
3
4
  import { getResponsiveValue } from "../../utils/responsive";
4
- import { tv } from "tailwind-variants";
5
5
  defineOptions({
6
6
  name: "PStack",
7
7
  inheritAttrs: false
@@ -1,7 +1,7 @@
1
1
  <script setup>
2
2
  import { computed } from "vue";
3
- import { useConfigProvider } from "../../contexts/config-provider";
4
3
  import { useModelValue } from "../../composables/use-model-value";
4
+ import { useConfigProvider } from "../../contexts/config-provider";
5
5
  import { provideSwitchContext } from "../../contexts/switch";
6
6
  import { getFallbackValue } from "../../utils/get";
7
7
  import { getUniqueId } from "../../utils/uid";
@@ -1,9 +1,9 @@
1
1
  <script setup>
2
+ import { tv } from "tailwind-variants";
2
3
  import { computed } from "vue";
3
- import { useSwitchContext } from "../../contexts/switch";
4
4
  import { useModelValue } from "../../composables/use-model-value";
5
+ import { useSwitchContext } from "../../contexts/switch";
5
6
  import { getUniqueId } from "../../utils/uid";
6
- import { tv } from "tailwind-variants";
7
7
  defineOptions({
8
8
  name: "PSwitchItem",
9
9
  inheritAttrs: false,
@@ -1,8 +1,8 @@
1
1
  <script setup>
2
+ import { tv } from "tailwind-variants";
2
3
  import { computed } from "vue";
3
4
  import { getCssUnitValue } from "../../utils/format";
4
5
  import { getResponsiveValue } from "../../utils/responsive";
5
- import { tv } from "tailwind-variants";
6
6
  defineOptions({
7
7
  name: "PText",
8
8
  inheritAttrs: false
@@ -1,10 +1,10 @@
1
1
  <script setup>
2
+ import { tv } from "tailwind-variants";
2
3
  import { computed } from "vue";
3
- import { useConfigProvider } from "../../contexts/config-provider";
4
4
  import { useModelValue } from "../../composables/use-model-value";
5
+ import { useConfigProvider } from "../../contexts/config-provider";
5
6
  import { isTruthyProp } from "../../utils/format";
6
7
  import { getUniqueId } from "../../utils/uid";
7
- import { tv } from "tailwind-variants";
8
8
  defineOptions({
9
9
  name: "PTextarea",
10
10
  inheritAttrs: false,
@@ -1,8 +1,8 @@
1
1
  <script setup>
2
2
  import CalendarIcon from "@gdsicon/vue/calendar";
3
3
  import { computed, shallowRef, watch } from "vue";
4
- import { useConfigProvider } from "../../contexts/config-provider";
5
4
  import { usePopoverResponsive } from "../../composables/use-popover-responsive";
5
+ import { useConfigProvider } from "../../contexts/config-provider";
6
6
  import { dayjs } from "../../utils/date";
7
7
  import { clampValue } from "../../utils/format";
8
8
  import PButton from "../button/index.vue";
@@ -1,8 +1,8 @@
1
1
  <script setup>
2
2
  import LoaderCircleIcon from "@gdsicon/vue/loader-circle";
3
3
  import { computed } from "vue";
4
- import { useConfigProvider } from "../../contexts/config-provider";
5
4
  import { useModelValue } from "../../composables/use-model-value";
5
+ import { useConfigProvider } from "../../contexts/config-provider";
6
6
  import { getFallbackValue } from "../../utils/get";
7
7
  import { getUniqueId } from "../../utils/uid";
8
8
  defineOptions({
@@ -1,10 +1,10 @@
1
1
  <script setup>
2
+ import { tv } from "tailwind-variants";
2
3
  import { computed } from "vue";
3
- import { useConfigProvider } from "../../contexts/config-provider";
4
4
  import { useModelValue } from "../../composables/use-model-value";
5
- import { tv } from "tailwind-variants";
6
- import { toArray } from "../../utils/format";
5
+ import { useConfigProvider } from "../../contexts/config-provider";
7
6
  import { useToggleButtonGroupContext } from "../../contexts/toggle-button";
7
+ import { toArray } from "../../utils/format";
8
8
  defineOptions({
9
9
  name: "PToggleButton",
10
10
  inheritAttrs: false,
@@ -1,10 +1,10 @@
1
1
  <script setup>
2
+ import { tv } from "tailwind-variants";
3
+ import { computed } from "vue";
2
4
  import { useConfigProvider } from "../../contexts/config-provider";
5
+ import { provideToggleButtonGroupContext } from "../../contexts/toggle-button";
3
6
  import PStack from "../stack/index.vue";
4
7
  import PToggleButton from "../toggle-button/index.vue";
5
- import { computed } from "vue";
6
- import { tv } from "tailwind-variants";
7
- import { provideToggleButtonGroupContext } from "../../contexts/toggle-button";
8
8
  defineOptions({
9
9
  name: "PToggleButtonGroup",
10
10
  inheritAttrs: false,
@@ -1,6 +1,5 @@
1
- import type { CSSProperties } from 'vue'
2
-
3
1
  import type { ComponentClass, ComponentPosition, ComponentVariant } from '../../types/shared'
2
+ import type { CSSProperties } from 'vue'
4
3
 
5
4
  export interface TooltipProps {
6
5
  offset?: number
@@ -1,7 +1,7 @@
1
1
  <script setup>
2
- import { useVirtualList } from "../../composables/use-virtual-list";
3
- import { shallowRef } from "vue";
4
2
  import LoaderCircleIcon from "@gdsicon/vue/loader-circle";
3
+ import { shallowRef } from "vue";
4
+ import { useVirtualList } from "../../composables/use-virtual-list";
5
5
  defineOptions({
6
6
  name: "PVirtualList",
7
7
  inheritAttrs: false
@@ -1,5 +1,5 @@
1
- import type { MaybeRefOrGetter, Ref } from 'vue';
2
1
  import type { Nullable } from '../types/shared/utils';
2
+ import type { MaybeRefOrGetter, Ref } from 'vue';
3
3
  export declare const useIntersectionObserver: (target: TargetRef, callback: IntersectionObserverCallback, options?: IntersectionObserverInit) => ObserverResults<IntersectionObserver>;
4
4
  export declare const useMutationObserver: (target: TargetRef, callback: MutationCallback, options?: MutationObserverInit) => ObserverResults<MutationObserver>;
5
5
  export declare const useResizeObserver: (target: TargetRef, callback: ResizeObserverCallback, options?: ResizeObserverOptions) => ObserverResults<ResizeObserver>;
@@ -1,5 +1,5 @@
1
- import type { MaybeRefOrGetter, Ref } from 'vue';
2
1
  import type { Nullable } from '../types/shared';
2
+ import type { MaybeRefOrGetter, Ref } from 'vue';
3
3
  interface Options {
4
4
  delay?: number;
5
5
  renderChange?: (v: boolean) => void;
@@ -1,6 +1,6 @@
1
+ import type { MaybeElementRef } from '../types/shared/utils';
1
2
  import type { Options as FocusTrapOptions } from 'focus-trap';
2
3
  import { type MaybeRefOrGetter } from 'vue';
3
- import type { MaybeElementRef } from '../types/shared/utils';
4
4
  export interface UseFocusTrapOptions extends FocusTrapOptions {
5
5
  autoFocusElement?: string | boolean;
6
6
  }
@@ -1,6 +1,6 @@
1
- import type { VNode } from 'vue';
2
1
  import type { ButtonProps } from '../components/button/types';
3
2
  import type { ComponentClass } from '../types/shared/props';
3
+ import type { VNode } from 'vue';
4
4
  type MessageContent = string | VNode;
5
5
  type PromiseMessageHandler = MessageContent | ((data: unknown) => MessageContent);
6
6
  interface Action {
@@ -1,5 +1,5 @@
1
- import type { MaybeRefOrGetter } from 'vue';
2
1
  import type { Callback } from '../types/shared/utils';
2
+ import type { MaybeRefOrGetter } from 'vue';
3
3
  interface Options {
4
4
  action: Callback;
5
5
  disabled?: MaybeRefOrGetter<boolean>;
@@ -1,7 +1,7 @@
1
+ import type { MaybeElementRef } from '../types/shared';
1
2
  import type { VirtualItem } from '@tanstack/virtual-core';
2
3
  import type { ComponentPublicInstance } from 'vue';
3
4
  import { Virtualizer } from '@tanstack/virtual-core';
4
- import type { MaybeElementRef } from '../types/shared';
5
5
  export interface VirtualListItem extends VirtualItem {
6
6
  key: string | number;
7
7
  }
@@ -1,5 +1,5 @@
1
- import type { Ref } from 'vue';
2
1
  import type { CarouselProps } from '../components/carousel/types';
2
+ import type { Ref } from 'vue';
3
3
  export interface CarouselState {
4
4
  uid: string;
5
5
  translateItem: (index: number, activeIndex: number) => void;
@@ -1,5 +1,5 @@
1
- import type { EmitFn } from 'vue';
2
1
  import type { CheckboxGroupProps, CheckboxGroupEmits } from '../components/checkbox-group/types';
2
+ import type { EmitFn } from 'vue';
3
3
  export interface CheckboxGroupContext {
4
4
  props: CheckboxGroupProps;
5
5
  emits: EmitFn<CheckboxGroupEmits>;
@@ -1,5 +1,5 @@
1
- import type { EmitFn } from 'vue';
2
1
  import type { ChoiceboxEmits, ChoiceboxProps } from '../components/choicebox/types';
2
+ import type { EmitFn } from 'vue';
3
3
  interface ChoiceboxContext {
4
4
  props: ChoiceboxProps;
5
5
  emits: EmitFn<ChoiceboxEmits>;
@@ -1,5 +1,5 @@
1
- import type { Ref } from 'vue';
2
1
  import type { CollapseGroupProps } from '../components/collapse-group/types';
2
+ import type { Ref } from 'vue';
3
3
  export interface CollapseGroupContext {
4
4
  expandedIds: Ref<Set<string>>;
5
5
  props: CollapseGroupProps;
@@ -1,5 +1,5 @@
1
- import type { Ref } from 'vue';
2
1
  import type { ListOption } from '../components/list/types';
2
+ import type { Ref } from 'vue';
3
3
  export interface ListContext {
4
4
  activeValue: Ref<string>;
5
5
  onOptionClick: ListOption['onClick'];
@@ -1,5 +1,5 @@
1
- import type { EmitFn } from 'vue';
2
1
  import type { RadioGroupEmits, RadioGroupProps } from '../components/radio-group/types';
2
+ import type { EmitFn } from 'vue';
3
3
  export interface RadioGroupContext {
4
4
  name: string;
5
5
  props: RadioGroupProps;
@@ -1,5 +1,5 @@
1
- import type { Ref } from 'vue';
2
1
  import type { ComponentDirection } from '../types/shared/props';
2
+ import type { Ref } from 'vue';
3
3
  interface PanelConfig {
4
4
  id: string;
5
5
  order: number;
@@ -1,5 +1,5 @@
1
- import type { EmitFn } from 'vue';
2
1
  import type { SwitchEmits, SwitchProps } from '../components/switch/types';
2
+ import type { EmitFn } from 'vue';
3
3
  export interface SwitchContext {
4
4
  name: string;
5
5
  props: SwitchProps;
@@ -1,5 +1,5 @@
1
- import type { EmitFn } from 'vue';
2
1
  import type { ToggleButtonGroupProps, ToggleButtonGroupEmits } from '../components/toggle-button-group/types';
2
+ import type { EmitFn } from 'vue';
3
3
  export interface ToggleButtonGroupContext {
4
4
  props: ToggleButtonGroupProps;
5
5
  emits: EmitFn<ToggleButtonGroupEmits>;
@@ -1,5 +1,5 @@
1
- import type { ComponentPublicInstance, MaybeRefOrGetter } from 'vue';
2
1
  import type { MaybeElement } from '../types/shared/utils';
2
+ import type { ComponentPublicInstance, MaybeRefOrGetter } from 'vue';
3
3
  export type UnRefElementReturn<T extends MaybeElement = MaybeElement> = T extends ComponentPublicInstance ? Exclude<MaybeElement, ComponentPublicInstance> : T | undefined;
4
4
  export declare function toValue<T>(source: MaybeRefOrGetter<T>): T;
5
5
  export declare function unrefElement<T extends MaybeElement>(elRef: MaybeRefOrGetter<T>): UnRefElementReturn<T>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pxd",
3
- "version": "0.0.60",
3
+ "version": "0.0.61",
4
4
  "description": "A Vue 2.7 & 3.2 universal component library. Built-in light/dark theme. PC & mobile ready. Animation-free mode supported.",
5
5
  "keywords": [
6
6
  "component library",