pxd 0.1.6 → 0.1.7

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 (44) hide show
  1. package/dist/components/backtop/index.d.vue.ts +1 -1
  2. package/dist/components/bubble/index.d.vue.ts +1 -1
  3. package/dist/components/bubble-group/index.d.vue.ts +10 -3
  4. package/dist/components/bubble-group/index.vue +23 -3
  5. package/dist/components/bubble-group/types.d.ts +1 -0
  6. package/dist/components/checkbox/index.vue +1 -1
  7. package/dist/components/choicebox-item/index.vue +1 -1
  8. package/dist/components/code-block/index.vue +3 -3
  9. package/dist/components/collapse/index.vue +4 -4
  10. package/dist/components/date-picker/index.d.vue.ts +11 -1
  11. package/dist/components/date-picker/index.vue +4 -2
  12. package/dist/components/link-button/index.d.vue.ts +1 -1
  13. package/dist/components/list/index.d.vue.ts +1 -1
  14. package/dist/components/marching-ants/index.d.vue.ts +1 -1
  15. package/dist/components/marquee/index.d.vue.ts +3 -3
  16. package/dist/components/mention/index.d.vue.ts +3 -1
  17. package/dist/components/mention/index.vue +4 -0
  18. package/dist/components/menu/index.d.vue.ts +3 -1
  19. package/dist/components/menu/index.vue +4 -0
  20. package/dist/components/message/index.d.vue.ts +1 -1
  21. package/dist/components/pin-input/index.d.vue.ts +1 -1
  22. package/dist/components/questionnaire/index.vue +17 -10
  23. package/dist/components/radio/index.vue +1 -1
  24. package/dist/components/rating/index.d.vue.ts +1 -1
  25. package/dist/components/reveal/index.d.vue.ts +1 -1
  26. package/dist/components/select/index.d.vue.ts +8 -4
  27. package/dist/components/select/index.vue +13 -6
  28. package/dist/components/shimmer-text/index.d.vue.ts +1 -1
  29. package/dist/components/split-button/index.d.vue.ts +3 -1
  30. package/dist/components/split-button/index.vue +4 -0
  31. package/dist/components/time-picker/index.d.vue.ts +11 -1
  32. package/dist/components/time-picker/index.vue +4 -2
  33. package/dist/components/toc/index.d.vue.ts +4 -1
  34. package/dist/components/toc/index.vue +65 -8
  35. package/dist/components/toc/types.d.ts +10 -1
  36. package/dist/components/tooltip/index.d.vue.ts +1 -1
  37. package/dist/components/tour/index.d.vue.ts +2 -2
  38. package/dist/components/tree/index.d.vue.ts +1 -1
  39. package/dist/components/virtual-list/index.d.vue.ts +1 -0
  40. package/dist/components/virtual-list/index.vue +2 -1
  41. package/dist/composables/use-virtual-list.d.ts +20 -0
  42. package/dist/composables/use-virtual-list.js +30 -9
  43. package/dist/styles/styles.css +1 -1
  44. package/package.json +1 -1
@@ -10,7 +10,7 @@ declare const __VLS_base: import("vue").DefineComponent<BacktopProps, {}, {}, {}
10
10
  }>, {
11
11
  appendToBody: boolean;
12
12
  visibleThreshold: number;
13
- scrollTarget: "bottom" | "top";
13
+ scrollTarget: "top" | "bottom";
14
14
  scrollBehavior: ScrollBehavior;
15
15
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
16
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -12,8 +12,8 @@ type __VLS_Slots = {} & {
12
12
  footer?: (props: typeof __VLS_19) => any;
13
13
  };
14
14
  declare const __VLS_base: import("vue").DefineComponent<BubbleProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BubbleProps> & Readonly<{}>, {
15
- role: "user" | "system" | "assistant";
16
15
  variant: "default" | "ghost";
16
+ role: "user" | "system" | "assistant";
17
17
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
18
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
19
19
  declare const _default: typeof __VLS_export;
@@ -2,13 +2,20 @@ import type { BubbleGroupProps } from './types';
2
2
  declare var __VLS_8: {
3
3
  item: any;
4
4
  index: number;
5
- }, __VLS_10: {};
5
+ }, __VLS_11: {
6
+ item: any;
7
+ index: number;
8
+ }, __VLS_13: {};
6
9
  type __VLS_Slots = {} & {
7
10
  item?: (props: typeof __VLS_8) => any;
8
11
  } & {
9
- default?: (props: typeof __VLS_10) => any;
12
+ item?: (props: typeof __VLS_11) => any;
13
+ } & {
14
+ default?: (props: typeof __VLS_13) => any;
10
15
  };
11
- declare const __VLS_base: import("vue").DefineComponent<BubbleGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BubbleGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
+ declare const __VLS_base: import("vue").DefineComponent<BubbleGroupProps, {
17
+ scrollSource: import("../../composables/use-virtual-list.js").VirtualListScrollSource;
18
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BubbleGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
19
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
13
20
  declare const _default: typeof __VLS_export;
14
21
  export default _default;
@@ -12,6 +12,10 @@ const props = defineProps({
12
12
  type: Array,
13
13
  required: false
14
14
  },
15
+ virtual: {
16
+ type: Boolean,
17
+ required: false
18
+ },
15
19
  dataKey: {
16
20
  type: String,
17
21
  required: false
@@ -26,7 +30,9 @@ const props = defineProps({
26
30
  }
27
31
  });
28
32
  const stickRef = shallowRef();
29
- const { totalSize, virtualItems, measureElement } = useVirtualList(() => stickRef.value?.containerRef ?? null, {
33
+ const isVirtual = computed(() => props.virtual === true && !!props.data);
34
+ const { totalSize, virtualItems, measureElement, scrollSource } = useVirtualList(() => stickRef.value?.containerRef ?? null, {
35
+ enabled: () => isVirtual.value,
30
36
  get dataKey() {
31
37
  return props.dataKey;
32
38
  },
@@ -41,7 +47,7 @@ const { totalSize, virtualItems, measureElement } = useVirtualList(() => stickRe
41
47
  }
42
48
  });
43
49
  const contentStyle = computed(() => {
44
- if (!props.data) {
50
+ if (!isVirtual.value) {
45
51
  return undefined;
46
52
  }
47
53
  return {
@@ -49,6 +55,9 @@ const contentStyle = computed(() => {
49
55
  containIntrinsicSize: `auto ${totalSize.value}px`
50
56
  };
51
57
  });
58
+ function getDataItemKey(item, index) {
59
+ return (props.dataKey ? item[props.dataKey] : index) ?? index;
60
+ }
52
61
  watch(() => props.data?.length, (newLen, oldLen) => {
53
62
  if (!props.data || !newLen || !oldLen || newLen <= oldLen) {
54
63
  return;
@@ -60,6 +69,7 @@ watch(() => props.data?.length, (newLen, oldLen) => {
60
69
  onMounted(() => {
61
70
  stickRef.value?.forceStickToBottom();
62
71
  });
72
+ defineExpose({ scrollSource });
63
73
  </script>
64
74
 
65
75
  <template>
@@ -72,7 +82,7 @@ onMounted(() => {
72
82
  :content-style="contentStyle"
73
83
  v-bind="$attrs"
74
84
  >
75
- <template v-if="data">
85
+ <template v-if="data && virtual">
76
86
  <div
77
87
  v-for="virtualItem in virtualItems"
78
88
  :key="virtualItem.key"
@@ -85,6 +95,16 @@ onMounted(() => {
85
95
  </div>
86
96
  </template>
87
97
 
98
+ <template v-else-if="data">
99
+ <div
100
+ v-for="(item, index) in data"
101
+ :key="getDataItemKey(item, index)"
102
+ class="pxd-bubble-group--item sibling:pbs-2 w-full"
103
+ >
104
+ <slot name="item" :item="item" :index="index" />
105
+ </div>
106
+ </template>
107
+
88
108
  <slot v-else />
89
109
 
90
110
  <template #action>
@@ -1,5 +1,6 @@
1
1
  export interface BubbleGroupProps {
2
2
  data?: readonly any[]
3
+ virtual?: boolean
3
4
  dataKey?: string
4
5
  itemSize?: number
5
6
  overScan?: number
@@ -122,7 +122,7 @@ function onInputChange(event) {
122
122
  role="checkbox"
123
123
  :aria-selected="isSelected"
124
124
  :data-disabled="isDisabled"
125
- class="pxd-checkbox group/checkbox relative gap-2 inline-flex max-w-full cursor-pointer touch-manipulation items-center data-[disabled=true]:cursor-not-allowed data-[disabled=true]:text-gray-500"
125
+ class="pxd-checkbox group/checkbox gap-2 relative inline-flex max-w-full cursor-pointer touch-manipulation items-center data-[disabled=true]:cursor-not-allowed data-[disabled=true]:text-gray-500"
126
126
  :for="uniqueId"
127
127
  v-bind="$attrs"
128
128
  >
@@ -140,7 +140,7 @@ function onInputChange(event) {
140
140
  v-bind="attrs"
141
141
  >
142
142
  <div
143
- class="pxd-choicebox-item--option relative p-3 flex items-center justify-between motion-safe:transition-colors"
143
+ class="pxd-choicebox-item--option p-3 relative flex items-center justify-between motion-safe:transition-colors"
144
144
  >
145
145
  <input
146
146
  :id="inputId"
@@ -244,7 +244,7 @@ onUnmounted(() => {
244
244
 
245
245
  <div
246
246
  v-if="hasHeader"
247
- class="pxd-code-block--header gap-2 ps-3 pe-1 h-9 flex items-center rounded-t-lg border bg-background-200"
247
+ class="pxd-code-block--header gap-2 ps-3 pe-0.75 h-9 flex items-center rounded-t-lg border bg-background-200"
248
248
  >
249
249
  <slot name="header">
250
250
  <FileIcon class="size-4 shrink-0 text-gray-900" aria-hidden="true" />
@@ -260,7 +260,7 @@ onUnmounted(() => {
260
260
  class="px-2 gap-1 flex h-full cursor-pointer items-center rounded-md bg-background-200 text-[13px] whitespace-nowrap text-gray-900 group-hover/select:bg-gray-200 has-focus-visible:self-focus-ring motion-safe:transition-colors"
261
261
  >
262
262
  <span class="truncate">{{ activeSwitcherLabel }}</span>
263
- <ChevronDownIcon class="size-3.5 shrink-0" />
263
+ <ChevronDownIcon class="size-3 shrink-0" />
264
264
  </div>
265
265
 
266
266
  <select
@@ -341,7 +341,7 @@ onUnmounted(() => {
341
341
 
342
342
  <div
343
343
  v-if="copyBtn !== 'hidden' && !hasHeader"
344
- class="end-3 top-3 max-sm:opacity-100 absolute focus-within:opacity-100 motion-safe:transition-opacity"
344
+ class="end-3.5 top-2 max-sm:opacity-100 absolute focus-within:opacity-100 motion-safe:transition-opacity"
345
345
  :class="{ 'opacity-0 group-hover/code-block:opacity-100': copyBtn === 'hover' }"
346
346
  >
347
347
  <PCopyButton icon size="sm" variant="ghost" :text="code" @copy="onCopy" />
@@ -1,5 +1,5 @@
1
1
  <script setup>
2
- import ChevronDownIcon from "@gdsicon/vue/chevron-down";
2
+ import ChevronRightIcon from "@gdsicon/vue/chevron-right";
3
3
  import { onBeforeUnmount, shallowRef, watch } from "vue";
4
4
  import { useDetailsCollapse } from "../../composables/_internal/use-details-collapse.js";
5
5
  import { useCollapseGroupContext } from "../../contexts/collapse.js";
@@ -28,7 +28,7 @@ function onTriggerClick(ev) {
28
28
  emits("toggle", ev);
29
29
  onToggleClick();
30
30
  }
31
- watch(isOpen, (open) => {
31
+ watch(() => isOpen.value, (open) => {
32
32
  const group = collapseGroup;
33
33
  if (!group || group.props.multiple) {
34
34
  return;
@@ -69,9 +69,9 @@ onBeforeUnmount(() => {
69
69
  </slot>
70
70
  </h3>
71
71
 
72
- <ChevronDownIcon
72
+ <ChevronRightIcon
73
73
  class="size-4 shrink-0 motion-safe:transition-transform"
74
- :class="{ '-rotate-180': detailsOpen }"
74
+ :class="{ 'rotate-90': isOpen }"
75
75
  />
76
76
  </summary>
77
77
 
@@ -1,6 +1,10 @@
1
1
  import type { ComponentDateTimeValue } from '../../types/shared/props';
2
2
  import type { DatePickerProps } from './types';
3
- declare const __VLS_export: import("vue").DefineComponent<DatePickerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
+ declare var __VLS_20: {};
4
+ type __VLS_Slots = {} & {
5
+ suffix?: (props: typeof __VLS_20) => any;
6
+ };
7
+ declare const __VLS_base: import("vue").DefineComponent<DatePickerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4
8
  change: (args_0: ComponentDateTimeValue) => any;
5
9
  "update:model-value": (args_0: ComponentDateTimeValue) => any;
6
10
  }, string, import("vue").PublicProps, Readonly<DatePickerProps> & Readonly<{
@@ -12,5 +16,11 @@ declare const __VLS_export: import("vue").DefineComponent<DatePickerProps, {}, {
12
16
  suffixIcon: boolean;
13
17
  labelFormat: string;
14
18
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
15
20
  declare const _default: typeof __VLS_export;
16
21
  export default _default;
22
+ type __VLS_WithSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
@@ -276,8 +276,10 @@ watch(() => props.modelValue, updateDayjsDateTime, { immediate: true });
276
276
  @clear="onInputValueChange"
277
277
  @change="onInputValueChange"
278
278
  >
279
- <template v-if="suffixIcon" #suffix>
280
- <CalendarIcon class="me-3" />
279
+ <template #suffix>
280
+ <slot name="suffix">
281
+ <CalendarIcon v-if="suffixIcon" class="me-3" />
282
+ </slot>
281
283
  </template>
282
284
  </PInput>
283
285
 
@@ -12,8 +12,8 @@ declare const __VLS_base: import("vue").DefineComponent<LinkButtonProps, {}, {},
12
12
  }, string, import("vue").PublicProps, Readonly<LinkButtonProps> & Readonly<{
13
13
  onClick?: ((args_0: MouseEvent) => any) | undefined;
14
14
  }>, {
15
- target: "_blank" | "_self" | "_parent" | "_top";
16
15
  align: "center" | "left" | "right";
16
+ target: "_blank" | "_self" | "_parent" | "_top";
17
17
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
18
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
19
19
  declare const _default: typeof __VLS_export;
@@ -27,10 +27,10 @@ declare const __VLS_base: import("vue").DefineComponent<ListProps, {
27
27
  }>, {
28
28
  options: import("./types").ListOptionEntry[];
29
29
  itemSize: number;
30
+ virtual: boolean;
30
31
  overScan: number;
31
32
  loop: boolean;
32
33
  defaultActiveIndex: number;
33
- virtual: boolean;
34
34
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
35
35
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
36
36
  declare const _default: typeof __VLS_export;
@@ -9,8 +9,8 @@ declare const __VLS_base: import("vue").DefineComponent<MarchingAntsProps, {
9
9
  select: typeof select;
10
10
  deselect: typeof deselect;
11
11
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MarchingAntsProps> & Readonly<{}>, {
12
- color: string;
13
12
  as: import("../../types/shared/props.js").ComponentAs;
13
+ color: string;
14
14
  gap: string | number;
15
15
  lineSize: string | number;
16
16
  dashSize: string | number;
@@ -17,11 +17,11 @@ declare const __VLS_base: import("vue").DefineComponent<MarqueeProps, {
17
17
  onClick?: ((args_0: MouseEvent) => any) | undefined;
18
18
  onReplay?: (() => any) | undefined;
19
19
  }>, {
20
- delay: string | number;
21
20
  text: string | number | null;
22
- background: string;
23
- color: string;
24
21
  as: import("../../types/shared/props.js").ComponentAs;
22
+ color: string;
23
+ delay: string | number;
24
+ background: string;
25
25
  pauseOnHover: boolean;
26
26
  speed: string | number;
27
27
  scrollable: boolean;
@@ -5,11 +5,13 @@ declare var __VLS_28: {
5
5
  index: number;
6
6
  group: import("../list/types").ListOptionGroup | undefined;
7
7
  groupIndex: number | undefined;
8
- }, __VLS_31: {};
8
+ }, __VLS_31: {}, __VLS_33: {};
9
9
  type __VLS_Slots = {} & {
10
10
  item?: (props: typeof __VLS_28) => any;
11
11
  } & {
12
12
  empty?: (props: typeof __VLS_31) => any;
13
+ } & {
14
+ footer?: (props: typeof __VLS_33) => any;
13
15
  };
14
16
  declare const __VLS_base: import("vue").DefineComponent<MentionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
17
  change: (args_0: string) => any;
@@ -246,6 +246,10 @@ watch(listOptions, async () => {
246
246
  </slot>
247
247
  </template>
248
248
  </PList>
249
+
250
+ <div v-if="$slots.footer" class="pxd-mention--footer p-2 border-t">
251
+ <slot name="footer" />
252
+ </div>
249
253
  </template>
250
254
  </PPopover>
251
255
  </template>
@@ -7,11 +7,13 @@ declare var __VLS_9: {
7
7
  index: number;
8
8
  group: import("../list/types").ListOptionGroup | undefined;
9
9
  groupIndex: number | undefined;
10
- };
10
+ }, __VLS_23: {};
11
11
  type __VLS_Slots = {} & {
12
12
  default?: (props: typeof __VLS_9) => any;
13
13
  } & {
14
14
  item?: (props: typeof __VLS_21) => any;
15
+ } & {
16
+ footer?: (props: typeof __VLS_23) => any;
15
17
  };
16
18
  declare const __VLS_base: import("vue").DefineComponent<MenuProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
19
  change: (args_0: ListModelValue) => any;
@@ -128,6 +128,10 @@ watch(popoverVisible, async (visible) => {
128
128
  <slot name="item" v-bind="itemSlotProps" />
129
129
  </template>
130
130
  </PList>
131
+
132
+ <div v-if="$slots.footer" class="pxd-menu--footer p-2 border-t">
133
+ <slot name="footer" />
134
+ </div>
131
135
  </template>
132
136
  </PPopover>
133
137
  </template>
@@ -139,7 +139,7 @@ declare const __VLS_export: import("vue").DefineComponent<MessageProps, {
139
139
  }>, {
140
140
  max: number;
141
141
  group: string;
142
- position: import("../../types/shared/props.js").ComponentPosition<"bottom" | "top">;
142
+ position: import("../../types/shared/props.js").ComponentPosition<"top" | "bottom">;
143
143
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
144
144
  declare const _default: typeof __VLS_export;
145
145
  export default _default;
@@ -11,8 +11,8 @@ declare const __VLS_export: import("vue").DefineComponent<PinInputProps, {
11
11
  onChange?: ((args_0: string) => any) | undefined;
12
12
  "onUpdate:model-value"?: ((args_0: string) => any) | undefined;
13
13
  }>, {
14
- length: number;
15
14
  type: "numeric" | "alphabetic" | "alphanumeric" | "numeric-password" | "alphabetic-password" | "alphanumeric-password";
15
+ length: number;
16
16
  modelValue: string;
17
17
  placeholder: string;
18
18
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -1,5 +1,5 @@
1
1
  <script setup>
2
- import ChevronDownIcon from "@gdsicon/vue/chevron-down";
2
+ import ChevronRightIcon from "@gdsicon/vue/chevron-right";
3
3
  import CrossIcon from "@gdsicon/vue/cross";
4
4
  import QuestionIcon from "@gdsicon/vue/question";
5
5
  import { computed, shallowReactive, shallowRef, watch } from "vue";
@@ -229,9 +229,9 @@ watch(() => props.questions, () => {
229
229
  <!-- preventDefault is load-bearing: stopping propagation alone would leave
230
230
  the summary's native disclosure default action free to run. -->
231
231
  <PButton
232
- variant="ghost"
233
- size="sm"
234
232
  icon
233
+ size="xs"
234
+ variant="ghost"
235
235
  :title="configProvider.locale.questionnaire.skipAll"
236
236
  :aria-label="configProvider.locale.questionnaire.skipAll"
237
237
  @click.prevent.stop="skipAllQuestions"
@@ -242,7 +242,7 @@ watch(() => props.questions, () => {
242
242
 
243
243
  <div
244
244
  ref="contentRef"
245
- class="grid-template-cols-1fr grid overflow-hidden motion-safe:transition-[grid-template-rows]"
245
+ class="grid-template-cols-1fr grid overflow-hidden rounded-b-xl motion-safe:transition-[grid-template-rows]"
246
246
  :class="isOpen ? 'grid-template-rows-1fr' : 'grid-template-rows-0fr'"
247
247
  >
248
248
  <div class="pxd-questionnaire--content border-t">
@@ -277,29 +277,31 @@ watch(() => props.questions, () => {
277
277
  >
278
278
  <div v-if="questions.length > 1" class="gap-1 flex items-center">
279
279
  <PButton
280
+ icon
281
+ size="xs"
280
282
  variant="ghost"
281
283
  :class="{ 'pointer-events-none opacity-50': !currentIndex }"
282
- icon
283
284
  :title="configProvider.locale.questionnaire.prev"
284
285
  :aria-label="configProvider.locale.questionnaire.prev"
285
286
  :aria-disabled="!currentIndex"
286
287
  @click="toggleCurrentIndex(-1)"
287
288
  >
288
- <ChevronDownIcon class="rotate-90" aria-hidden="true" />
289
+ <ChevronRightIcon class="rotate-180" aria-hidden="true" />
289
290
  </PButton>
290
291
 
291
292
  <PButton
293
+ icon
294
+ size="xs"
292
295
  variant="ghost"
293
296
  :class="{
294
297
  'pointer-events-none opacity-50': currentIndex >= questions.length - 1
295
298
  }"
296
- icon
297
299
  :title="configProvider.locale.questionnaire.next"
298
300
  :aria-label="configProvider.locale.questionnaire.next"
299
301
  :aria-disabled="currentIndex >= questions.length - 1"
300
302
  @click="toggleCurrentIndex(1)"
301
303
  >
302
- <ChevronDownIcon class="-rotate-90" aria-hidden="true" />
304
+ <ChevronRightIcon aria-hidden="true" />
303
305
  </PButton>
304
306
 
305
307
  <span class="text-sm ms-2 text-foreground-secondary tabular-nums select-none">
@@ -308,11 +310,16 @@ watch(() => props.questions, () => {
308
310
  </div>
309
311
 
310
312
  <div class="gap-2 ms-auto flex items-center">
311
- <PButton variant="ghost" @click="skipCurrentQuestion">
313
+ <PButton size="xs" variant="ghost" @click="skipCurrentQuestion">
312
314
  {{ configProvider.locale.interaction.skip }}
313
315
  </PButton>
314
316
 
315
- <PButton v-show="showSubmitButton" variant="primary" @click="onSubmitAnswers">
317
+ <PButton
318
+ size="xs"
319
+ v-show="showSubmitButton"
320
+ variant="primary"
321
+ @click="onSubmitAnswers"
322
+ >
316
323
  {{ configProvider.locale.interaction.submit }}
317
324
  </PButton>
318
325
  </div>
@@ -70,7 +70,7 @@ function onInputChange() {
70
70
  role="radio"
71
71
  :aria-selected="isSelected"
72
72
  :data-disabled="isDisabled"
73
- class="pxd-radio group/radio relative gap-2 inline-flex max-w-full cursor-pointer touch-manipulation items-center data-[disabled=true]:cursor-not-allowed data-[disabled=true]:text-gray-500"
73
+ class="pxd-radio group/radio gap-2 relative inline-flex max-w-full cursor-pointer touch-manipulation items-center data-[disabled=true]:cursor-not-allowed data-[disabled=true]:text-gray-500"
74
74
  :for="uniqueId"
75
75
  v-bind="$attrs"
76
76
  >
@@ -6,9 +6,9 @@ declare const __VLS_export: import("vue").DefineComponent<RatingProps, {}, {}, {
6
6
  onChange?: ((args_0: number) => any) | undefined;
7
7
  "onUpdate:model-value"?: ((args_0: number) => any) | undefined;
8
8
  }>, {
9
- count: number;
10
9
  disabled: boolean;
11
10
  modelValue: number;
11
+ count: number;
12
12
  readonly: boolean;
13
13
  clearable: boolean;
14
14
  allowHalf: boolean;
@@ -4,8 +4,8 @@ type __VLS_Slots = {} & {
4
4
  default?: (props: typeof __VLS_1) => any;
5
5
  };
6
6
  declare const __VLS_base: import("vue").DefineComponent<RevealProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<RevealProps> & Readonly<{}>, {
7
- delay: string | number;
8
7
  duration: string | number;
8
+ delay: string | number;
9
9
  threshold: number | number[];
10
10
  direction: import("../../types/shared/props.js").BasePosition;
11
11
  trigger: import("./types").RevealTrigger;
@@ -2,20 +2,24 @@ import type { ListModelValue } from '../list/types';
2
2
  import type { SelectProps } from './types';
3
3
  declare var __VLS_16: {}, __VLS_18: {
4
4
  label: string;
5
- }, __VLS_36: {
5
+ }, __VLS_21: {}, __VLS_38: {
6
6
  item: import("../list/types").ListOption;
7
7
  index: number;
8
8
  group: import("../list/types").ListOptionGroup | undefined;
9
9
  groupIndex: number | undefined;
10
- }, __VLS_39: {};
10
+ }, __VLS_41: {}, __VLS_43: {};
11
11
  type __VLS_Slots = {} & {
12
12
  prefix?: (props: typeof __VLS_16) => any;
13
13
  } & {
14
14
  default?: (props: typeof __VLS_18) => any;
15
15
  } & {
16
- item?: (props: typeof __VLS_36) => any;
16
+ suffix?: (props: typeof __VLS_21) => any;
17
17
  } & {
18
- empty?: (props: typeof __VLS_39) => any;
18
+ item?: (props: typeof __VLS_38) => any;
19
+ } & {
20
+ empty?: (props: typeof __VLS_41) => any;
21
+ } & {
22
+ footer?: (props: typeof __VLS_43) => any;
19
23
  };
20
24
  declare const __VLS_base: import("vue").DefineComponent<SelectProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
25
  change: (args_0: ListModelValue) => any;
@@ -1,5 +1,5 @@
1
1
  <script setup>
2
- import ChevronRightIcon from "@gdsicon/vue/chevron-right";
2
+ import ChevronDownIcon from "@gdsicon/vue/chevron-down";
3
3
  import { computed, nextTick, shallowRef, watch } from "vue";
4
4
  import { useListFilter } from "../../composables/_internal/use-list-filter.js";
5
5
  import { useListKeyboardController } from "../../composables/_internal/use-list-keyboard-controller.js";
@@ -194,11 +194,14 @@ watch(listOptions, async () => {
194
194
  {{ placeholder }}
195
195
  </template>
196
196
 
197
- <template v-if="suffixIcon" #suffix>
198
- <ChevronRightIcon
199
- class="text-sm me-1.5 text-foreground-secondary motion-safe:transition-transform"
200
- :class="{ 'rotate-90': popoverVisible }"
201
- />
197
+ <template #suffix>
198
+ <slot name="suffix">
199
+ <ChevronDownIcon
200
+ v-if="suffixIcon"
201
+ class="text-sm me-1.5 text-foreground-secondary motion-safe:transition-transform"
202
+ :class="{ 'rotate-180': popoverVisible }"
203
+ />
204
+ </slot>
202
205
  </template>
203
206
  </PButton>
204
207
 
@@ -254,6 +257,10 @@ watch(listOptions, async () => {
254
257
  </slot>
255
258
  </template>
256
259
  </PList>
260
+
261
+ <div v-if="$slots.footer" class="pxd-select--footer p-2 border-t">
262
+ <slot name="footer" />
263
+ </div>
257
264
  </template>
258
265
  </PPopover>
259
266
  </template>
@@ -4,8 +4,8 @@ type __VLS_Slots = {} & {
4
4
  default?: (props: typeof __VLS_1) => any;
5
5
  };
6
6
  declare const __VLS_base: import("vue").DefineComponent<ShimmerTextProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ShimmerTextProps> & Readonly<{}>, {
7
- color: string | ShimmerGradientStop[];
8
7
  disabled: boolean;
8
+ color: string | ShimmerGradientStop[];
9
9
  durations: number;
10
10
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
11
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -6,13 +6,15 @@ declare var __VLS_13: {
6
6
  index: number;
7
7
  group: import("../list/types.js").ListOptionGroup | undefined;
8
8
  groupIndex: number | undefined;
9
- };
9
+ }, __VLS_31: {};
10
10
  type __VLS_Slots = {} & {
11
11
  default?: (props: typeof __VLS_13) => any;
12
12
  } & {
13
13
  icon?: (props: typeof __VLS_21) => any;
14
14
  } & {
15
15
  item?: (props: typeof __VLS_29) => any;
16
+ } & {
17
+ footer?: (props: typeof __VLS_31) => any;
16
18
  };
17
19
  declare const __VLS_base: import("vue").DefineComponent<SplitButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
18
20
  change: (args_0: import("../list/types.js").ListModelValue) => any;
@@ -89,5 +89,9 @@ const computedSize = computed(() => props.size || configProvider.size);
89
89
  <template v-if="$slots.item" #item="itemSlotProps">
90
90
  <slot name="item" v-bind="itemSlotProps" />
91
91
  </template>
92
+
93
+ <template v-if="$slots.footer">
94
+ <slot name="footer" />
95
+ </template>
92
96
  </PMenu>
93
97
  </template>
@@ -1,5 +1,9 @@
1
1
  import type { TimePickerProps } from './types';
2
- declare const __VLS_export: import("vue").DefineComponent<TimePickerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
2
+ declare var __VLS_21: {};
3
+ type __VLS_Slots = {} & {
4
+ suffix?: (props: typeof __VLS_21) => any;
5
+ };
6
+ declare const __VLS_base: import("vue").DefineComponent<TimePickerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
7
  change: (args_0: import("../../types/shared/props.js").ComponentDateTimeValue) => any;
4
8
  "update:model-value": (args_0: import("../../types/shared/props.js").ComponentDateTimeValue) => any;
5
9
  }, string, import("vue").PublicProps, Readonly<TimePickerProps> & Readonly<{
@@ -13,5 +17,11 @@ declare const __VLS_export: import("vue").DefineComponent<TimePickerProps, {}, {
13
17
  presets: import("./types").DateTimePreset<Date>[];
14
18
  showSeconds: boolean;
15
19
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
20
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
16
21
  declare const _default: typeof __VLS_export;
17
22
  export default _default;
23
+ type __VLS_WithSlots<T, S> = T & {
24
+ new (): {
25
+ $slots: S;
26
+ };
27
+ };
@@ -296,8 +296,10 @@ onBeforeUnmount(() => {
296
296
  @change="onInputValueChange"
297
297
  @keydown.enter="togglePopoverVisible(true)"
298
298
  >
299
- <template v-if="suffixIcon" #suffix>
300
- <ClockIcon class="me-3" />
299
+ <template #suffix>
300
+ <slot name="suffix">
301
+ <ClockIcon v-if="suffixIcon" class="me-3" />
302
+ </slot>
301
303
  </template>
302
304
  </PInput>
303
305