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.
- package/dist/components/active-graph/index.vue +1 -1
- package/dist/components/badge/index.vue +1 -1
- package/dist/components/button/index.vue +1 -1
- package/dist/components/checkbox/index.vue +1 -1
- package/dist/components/chip/index.vue +1 -1
- package/dist/components/choicebox/index.vue +1 -1
- package/dist/components/collapse-group/index.vue +1 -1
- package/dist/components/command-menu/index.vue +1 -1
- package/dist/components/config-provider/index.d.vue.ts +1 -1
- package/dist/components/ellipsis-text/index.vue +2 -2
- package/dist/components/error/index.vue +1 -1
- package/dist/components/hold-button/index.vue +3 -6
- package/dist/components/input/index.vue +2 -2
- package/dist/components/kbd/index.vue +1 -1
- package/dist/components/link-button/index.vue +2 -5
- package/dist/components/list-item/index.d.vue.ts +1 -1
- package/dist/components/list-item/index.vue +1 -1
- package/dist/components/loading-bar/index.vue +1 -1
- package/dist/components/note/index.vue +1 -1
- package/dist/components/pin-input/index.d.vue.ts +1 -1
- package/dist/components/pin-input/index.vue +2 -2
- package/dist/components/placeholder/index.vue +14 -12
- package/dist/components/popover/index.d.vue.ts +1 -1
- package/dist/components/popover/index.vue +1 -1
- package/dist/components/popover/types.d.ts +1 -2
- package/dist/components/progress/index.vue +2 -2
- package/dist/components/project-banner/index.vue +1 -1
- package/dist/components/radio/index.vue +1 -1
- package/dist/components/radio-group/index.vue +1 -1
- package/dist/components/scrollable/types.d.ts +1 -2
- package/dist/components/skeleton/index.vue +1 -1
- package/dist/components/slider/index.vue +2 -2
- package/dist/components/snippet/index.vue +2 -2
- package/dist/components/stack/index.vue +1 -1
- package/dist/components/switch/index.vue +1 -1
- package/dist/components/switch-item/index.vue +2 -2
- package/dist/components/text/index.vue +1 -1
- package/dist/components/textarea/index.vue +2 -2
- package/dist/components/time-picker/index.vue +1 -1
- package/dist/components/toggle/index.vue +1 -1
- package/dist/components/toggle-button/index.vue +3 -3
- package/dist/components/toggle-button-group/index.vue +3 -3
- package/dist/components/tooltip/types.d.ts +1 -2
- package/dist/components/virtual-list/index.vue +2 -2
- package/dist/composables/use-browser-observer.d.ts +1 -1
- package/dist/composables/use-delay-destroy.d.ts +1 -1
- package/dist/composables/use-focus-trap.d.ts +1 -1
- package/dist/composables/use-message.d.ts +1 -1
- package/dist/composables/use-repeat-action.d.ts +1 -1
- package/dist/composables/use-virtual-list.d.ts +1 -1
- package/dist/contexts/carousel.d.ts +1 -1
- package/dist/contexts/checkbox.d.ts +1 -1
- package/dist/contexts/choicebox.d.ts +1 -1
- package/dist/contexts/collapse.d.ts +1 -1
- package/dist/contexts/list.d.ts +1 -1
- package/dist/contexts/radio.d.ts +1 -1
- package/dist/contexts/resizable.d.ts +1 -1
- package/dist/contexts/switch.d.ts +1 -1
- package/dist/contexts/toggle-button.d.ts +1 -1
- package/dist/utils/ref.d.ts +1 -1
- 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,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,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,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 {
|
|
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
|
|
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
|
|
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: "
|
|
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
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
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,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,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,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
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 {
|
|
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,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,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,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 { 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>;
|
package/dist/contexts/list.d.ts
CHANGED
package/dist/contexts/radio.d.ts
CHANGED
|
@@ -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>;
|
package/dist/utils/ref.d.ts
CHANGED
|
@@ -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