pxd 0.1.8 → 0.2.0

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 (244) hide show
  1. package/README.md +2 -2
  2. package/dist/components/_internal/calendar-day.d.vue.ts +15 -13
  3. package/dist/components/_internal/dismiss-container.d.vue.ts +5 -3
  4. package/dist/components/_internal/fragment-container.d.vue.ts +5 -3
  5. package/dist/components/_internal/mention-editor.d.vue.ts +3 -1
  6. package/dist/components/_internal/mention-editor.vue +9 -3
  7. package/dist/components/_internal/step-item.d.vue.ts +5 -3
  8. package/dist/components/_internal/tree-node.d.vue.ts +37 -33
  9. package/dist/components/_internal/tree-node.vue +17 -3
  10. package/dist/components/active-graph/index.d.vue.ts +7 -5
  11. package/dist/components/active-graph/index.vue +63 -63
  12. package/dist/components/approval-card/index.d.vue.ts +5 -3
  13. package/dist/components/avatar/index.d.vue.ts +7 -5
  14. package/dist/components/avatar/index.vue +1 -1
  15. package/dist/components/backtop/index.d.vue.ts +6 -4
  16. package/dist/components/backtop/index.vue +71 -38
  17. package/dist/components/backtop/types.d.ts +1 -0
  18. package/dist/components/badge/index.d.vue.ts +7 -5
  19. package/dist/components/book/index.d.vue.ts +9 -7
  20. package/dist/components/border-beam/index.d.vue.ts +5 -3
  21. package/dist/components/breadcrumb/index.d.vue.ts +5 -3
  22. package/dist/components/breadcrumb-item/index.d.vue.ts +7 -5
  23. package/dist/components/browser/index.d.vue.ts +5 -3
  24. package/dist/components/browser/index.vue +1 -1
  25. package/dist/components/bubble/index.d.vue.ts +14 -12
  26. package/dist/components/bubble/index.vue +8 -6
  27. package/dist/components/bubble/types.d.ts +1 -1
  28. package/dist/components/bubble-group/index.d.vue.ts +17 -14
  29. package/dist/components/bubble-group/index.vue +121 -9
  30. package/dist/components/bubble-group/types.d.ts +1 -1
  31. package/dist/components/button/index.d.vue.ts +9 -7
  32. package/dist/components/button/index.vue +6 -3
  33. package/dist/components/button-group/index.d.vue.ts +5 -3
  34. package/dist/components/calendar/index.d.vue.ts +20 -18
  35. package/dist/components/card/index.d.vue.ts +9 -7
  36. package/dist/components/carousel/index.d.vue.ts +13 -11
  37. package/dist/components/checkbox/index.d.vue.ts +5 -3
  38. package/dist/components/checkbox-group/index.d.vue.ts +5 -3
  39. package/dist/components/checkerboard/index.d.vue.ts +5 -3
  40. package/dist/components/chip/index.d.vue.ts +5 -3
  41. package/dist/components/choicebox/index.d.vue.ts +5 -3
  42. package/dist/components/choicebox/types.d.ts +2 -2
  43. package/dist/components/choicebox-item/index.d.vue.ts +9 -7
  44. package/dist/components/choicebox-item/index.vue +9 -5
  45. package/dist/components/choicebox-item/types.d.ts +1 -1
  46. package/dist/components/code-block/index.d.vue.ts +7 -5
  47. package/dist/components/code-block/index.vue +6 -6
  48. package/dist/components/collapse/index.d.vue.ts +7 -5
  49. package/dist/components/collapse-group/index.d.vue.ts +5 -3
  50. package/dist/components/command-menu/index.d.vue.ts +12 -10
  51. package/dist/components/command-menu/index.vue +1 -1
  52. package/dist/components/config-provider/index.d.vue.ts +5 -14
  53. package/dist/components/confirm-popover/index.d.vue.ts +16 -14
  54. package/dist/components/confirm-popover/index.vue +1 -1
  55. package/dist/components/context-usage/index.vue +19 -12
  56. package/dist/components/copy-button/index.d.vue.ts +7 -5
  57. package/dist/components/countdown/index.d.vue.ts +17 -16
  58. package/dist/components/countdown/index.vue +3 -8
  59. package/dist/components/countdown/types.d.ts +1 -1
  60. package/dist/components/date-picker/index.d.vue.ts +5 -3
  61. package/dist/components/description/index.d.vue.ts +7 -5
  62. package/dist/components/description/index.vue +5 -2
  63. package/dist/components/description/types.d.ts +1 -1
  64. package/dist/components/drawer/index.d.vue.ts +13 -11
  65. package/dist/components/drawer/index.vue +1 -1
  66. package/dist/components/effort-slider/index.vue +47 -47
  67. package/dist/components/empty-state/index.d.vue.ts +11 -9
  68. package/dist/components/empty-state/index.vue +2 -2
  69. package/dist/components/empty-state/types.d.ts +1 -1
  70. package/dist/components/error/index.d.vue.ts +5 -3
  71. package/dist/components/error/index.vue +1 -1
  72. package/dist/components/fader/index.d.vue.ts +2 -0
  73. package/dist/components/fader/index.vue +55 -29
  74. package/dist/components/fader/types.d.ts +2 -1
  75. package/dist/components/grid/index.d.vue.ts +5 -3
  76. package/dist/components/grid-item/index.d.vue.ts +5 -3
  77. package/dist/components/hint/index.d.vue.ts +15 -13
  78. package/dist/components/hold-button/index.d.vue.ts +9 -7
  79. package/dist/components/hue-text/index.d.vue.ts +7 -5
  80. package/dist/components/image-preview/index.d.vue.ts +24 -7
  81. package/dist/components/image-preview/index.vue +122 -23
  82. package/dist/components/image-preview/types.d.ts +9 -1
  83. package/dist/components/input/index.d.vue.ts +7 -5
  84. package/dist/components/input/index.vue +1 -1
  85. package/dist/components/intersection-observer/index.d.vue.ts +7 -5
  86. package/dist/components/kbd/index.d.vue.ts +5 -3
  87. package/dist/components/kbd/index.vue +1 -1
  88. package/dist/components/label/index.d.vue.ts +5 -3
  89. package/dist/components/link-button/index.d.vue.ts +10 -8
  90. package/dist/components/list/index.d.vue.ts +12 -10
  91. package/dist/components/list/index.vue +36 -43
  92. package/dist/components/list/types.d.ts +5 -5
  93. package/dist/components/list-group/index.vue +1 -1
  94. package/dist/components/list-item/index.d.vue.ts +5 -3
  95. package/dist/components/list-item/index.vue +16 -6
  96. package/dist/components/loading-dots/index.vue +0 -1
  97. package/dist/components/loading-mask/index.d.vue.ts +13 -1
  98. package/dist/components/loading-mask/index.vue +5 -3
  99. package/dist/components/marching-ants/index.d.vue.ts +6 -4
  100. package/dist/components/marquee/index.d.vue.ts +12 -10
  101. package/dist/components/material/index.d.vue.ts +5 -3
  102. package/dist/components/mention/index.d.vue.ts +17 -13
  103. package/dist/components/mention/index.vue +35 -3
  104. package/dist/components/mention/types.d.ts +11 -0
  105. package/dist/components/menu/index.d.vue.ts +16 -14
  106. package/dist/components/message/index.d.vue.ts +1 -1
  107. package/dist/components/modal/index.d.vue.ts +13 -11
  108. package/dist/components/modal/index.vue +2 -2
  109. package/dist/components/note/index.d.vue.ts +9 -7
  110. package/dist/components/number-input/index.d.vue.ts +15 -13
  111. package/dist/components/number-input/index.vue +7 -3
  112. package/dist/components/overlay/index.d.vue.ts +5 -3
  113. package/dist/components/pagination/index.d.vue.ts +5 -3
  114. package/dist/components/pagination/index.vue +2 -2
  115. package/dist/components/pin-input/index.d.vue.ts +1 -1
  116. package/dist/components/pin-input/index.vue +1 -1
  117. package/dist/components/placeholder/index.d.vue.ts +5 -3
  118. package/dist/components/popover/index.vue +4 -5
  119. package/dist/components/progress/index.d.vue.ts +5 -3
  120. package/dist/components/project-banner/index.d.vue.ts +9 -7
  121. package/dist/components/radial-burst/index.d.vue.ts +5 -3
  122. package/dist/components/radio/index.d.vue.ts +5 -3
  123. package/dist/components/radio-group/index.d.vue.ts +5 -3
  124. package/dist/components/rating/index.d.vue.ts +1 -1
  125. package/dist/components/reactions/index.d.vue.ts +5 -3
  126. package/dist/components/reasoning/index.d.vue.ts +6 -4
  127. package/dist/components/reasoning/index.vue +14 -12
  128. package/dist/components/reasoning/types.d.ts +5 -7
  129. package/dist/components/resizable/index.d.vue.ts +11 -9
  130. package/dist/components/resizable/index.vue +2 -2
  131. package/dist/components/reveal/index.d.vue.ts +6 -4
  132. package/dist/components/rolling-number/index.d.vue.ts +1 -1
  133. package/dist/components/scroll-progress/index.d.vue.ts +7 -5
  134. package/dist/components/scroll-text/index.d.vue.ts +6 -3
  135. package/dist/components/scroll-text/index.vue +11 -2
  136. package/dist/components/scroll-text/types.d.ts +1 -0
  137. package/dist/components/scrollable/index.d.vue.ts +5 -3
  138. package/dist/components/scrollable/index.vue +119 -179
  139. package/dist/components/search-input/index.d.vue.ts +7 -5
  140. package/dist/components/select/index.d.vue.ts +22 -20
  141. package/dist/components/select/index.vue +2 -2
  142. package/dist/components/shimmer-text/index.d.vue.ts +6 -4
  143. package/dist/components/skeleton/index.d.vue.ts +5 -3
  144. package/dist/components/slider/index.vue +74 -74
  145. package/dist/components/spinner/index.vue +0 -1
  146. package/dist/components/spinner-dots/index.vue +0 -1
  147. package/dist/components/split-button/index.d.vue.ts +18 -16
  148. package/dist/components/stack/index.d.vue.ts +5 -3
  149. package/dist/components/steps/index.d.vue.ts +9 -7
  150. package/dist/components/steps/index.vue +3 -3
  151. package/dist/components/stick-to-bottom/index.d.vue.ts +13 -10
  152. package/dist/components/stick-to-bottom/index.vue +25 -10
  153. package/dist/components/stick-to-bottom/types.d.ts +2 -1
  154. package/dist/components/swipe-cell/index.d.vue.ts +21 -19
  155. package/dist/components/switch/index.d.vue.ts +5 -3
  156. package/dist/components/switch/index.vue +1 -1
  157. package/dist/components/switch-item/index.d.vue.ts +5 -3
  158. package/dist/components/tabs/index.vue +1 -1
  159. package/dist/components/teleport/index.d.vue.ts +7 -5
  160. package/dist/components/text/index.d.vue.ts +5 -3
  161. package/dist/components/textarea/index.vue +1 -1
  162. package/dist/components/time-picker/index.d.vue.ts +5 -3
  163. package/dist/components/time-picker/index.vue +3 -8
  164. package/dist/components/timeline-item/index.d.vue.ts +7 -5
  165. package/dist/components/toc/index.d.vue.ts +11 -9
  166. package/dist/components/toc/index.vue +81 -62
  167. package/dist/components/todo-list/index.d.vue.ts +25 -23
  168. package/dist/components/todo-list/index.vue +2 -3
  169. package/dist/components/todo-list/types.d.ts +1 -1
  170. package/dist/components/toggle/index.d.vue.ts +7 -5
  171. package/dist/components/toggle/index.vue +1 -1
  172. package/dist/components/toggle-button/index.d.vue.ts +5 -3
  173. package/dist/components/toggle-button/index.vue +1 -1
  174. package/dist/components/toggle-button-group/index.d.vue.ts +5 -3
  175. package/dist/components/tool-call/index.d.vue.ts +15 -1
  176. package/dist/components/tool-call/index.vue +26 -16
  177. package/dist/components/tooltip/index.d.vue.ts +11 -9
  178. package/dist/components/tour/index.d.vue.ts +2 -2
  179. package/dist/components/tour/index.vue +1 -1
  180. package/dist/components/tour/types.d.ts +1 -1
  181. package/dist/components/tree/index.d.vue.ts +44 -42
  182. package/dist/components/tree/index.vue +16 -12
  183. package/dist/components/virtual-list/index.d.vue.ts +13 -10
  184. package/dist/components/virtual-list/index.vue +10 -5
  185. package/dist/components/virtual-list/types.d.ts +2 -1
  186. package/dist/composables/_internal/use-details-collapse.d.ts +2 -1
  187. package/dist/composables/_internal/use-focus-trap.d.ts +1 -2
  188. package/dist/composables/_internal/use-forward-ref-expose.d.ts +1 -1
  189. package/dist/composables/_internal/use-list-keyboard-controller.d.ts +1 -1
  190. package/dist/composables/_internal/use-list-navigation.d.ts +2 -1
  191. package/dist/composables/_internal/use-list-search.d.ts +2 -1
  192. package/dist/composables/_internal/use-list-search.js +1 -3
  193. package/dist/composables/_internal/use-mention-editor.d.ts +10 -5
  194. package/dist/composables/_internal/use-mention-editor.js +97 -25
  195. package/dist/composables/_internal/use-message-group.d.ts +1 -1
  196. package/dist/composables/_internal/use-overlay-manager.d.ts +1 -1
  197. package/dist/composables/_internal/use-remote-search.d.ts +2 -1
  198. package/dist/composables/_internal/use-selected-list-item.d.ts +1 -1
  199. package/dist/composables/_internal/use-swipe-gesture.d.ts +1 -2
  200. package/dist/composables/_internal/use-tailwind-variant.js +1 -1
  201. package/dist/composables/_internal/use-tour-target.d.ts +1 -1
  202. package/dist/composables/_internal/use-tree.d.ts +2 -2
  203. package/dist/composables/_internal/use-word-limit.d.ts +2 -1
  204. package/dist/composables/use-countdown.d.ts +2 -7
  205. package/dist/composables/use-countdown.js +6 -6
  206. package/dist/composables/use-deferred-value.d.ts +2 -1
  207. package/dist/composables/use-delay-change.d.ts +2 -1
  208. package/dist/composables/use-delay-destroy.d.ts +2 -2
  209. package/dist/composables/use-intersection-observer.d.ts +1 -1
  210. package/dist/composables/use-mutation-observer.d.ts +1 -1
  211. package/dist/composables/use-mutation-observer.js +4 -1
  212. package/dist/composables/use-outside-click.d.ts +1 -2
  213. package/dist/composables/use-repeat-action.d.ts +1 -2
  214. package/dist/composables/use-resize-observer.d.ts +1 -1
  215. package/dist/composables/use-scrollspy.d.ts +2 -1
  216. package/dist/composables/use-stick-to-bottom.d.ts +6 -2
  217. package/dist/composables/use-stick-to-bottom.js +18 -2
  218. package/dist/composables/use-virtual-list.d.ts +9 -3
  219. package/dist/composables/use-virtual-list.js +92 -48
  220. package/dist/constants/size.d.ts +1 -0
  221. package/dist/constants/size.js +1 -0
  222. package/dist/constants/tooltip-variants.d.ts +1 -1
  223. package/dist/constants/tooltip-variants.js +1 -1
  224. package/dist/index.d.ts +1 -1
  225. package/dist/index.js +1 -1
  226. package/dist/locales/en-us.d.ts +0 -11
  227. package/dist/locales/en-us.js +0 -11
  228. package/dist/locales/zh-cn.d.ts +0 -11
  229. package/dist/locales/zh-cn.js +0 -11
  230. package/dist/styles/styles.css +2 -2
  231. package/dist/types/shared/props.d.ts +4 -0
  232. package/dist/types/shared/utils.d.ts +4 -1
  233. package/dist/utils/_internal/mention-html.d.ts +32 -0
  234. package/dist/utils/_internal/mention-html.js +45 -17
  235. package/dist/utils/_internal/observer.d.ts +2 -1
  236. package/dist/utils/dom.d.ts +5 -6
  237. package/dist/utils/dom.js +5 -31
  238. package/dist/utils/event.d.ts +0 -1
  239. package/dist/utils/event.js +0 -3
  240. package/dist/utils/helper.d.ts +1 -4
  241. package/dist/utils/mention-html.js +13 -38
  242. package/dist/version.d.ts +1 -0
  243. package/dist/version.js +1 -0
  244. package/package.json +12 -12
@@ -1,12 +1,14 @@
1
1
  import type { NoteProps } from './types';
2
- declare var __VLS_1: {}, __VLS_8: {}, __VLS_10: {};
3
- type __VLS_Slots = {} & {
4
- label?: (props: typeof __VLS_1) => any;
5
- } & {
6
- default?: (props: typeof __VLS_8) => any;
7
- } & {
8
- action?: (props: typeof __VLS_10) => any;
2
+ declare const __VLS_template: () => {
3
+ __VLS_Slots: {
4
+ label?: (props: {}) => any;
5
+ } & {
6
+ default?: (props: {}) => any;
7
+ } & {
8
+ action?: (props: {}) => any;
9
+ };
9
10
  };
11
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
10
12
  declare const __VLS_base: import("vue").DefineComponent<NoteProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NoteProps> & Readonly<{}>, {
11
13
  label: string | number | boolean | null;
12
14
  variant: import("./types").NoteVariant;
@@ -1,18 +1,20 @@
1
1
  import type { NumberInputProps } from './types';
2
- declare var __VLS_14: {}, __VLS_21: {}, __VLS_24: {}, __VLS_26: {}, __VLS_33: {}, __VLS_40: {};
3
- type __VLS_Slots = {} & {
4
- minusIcon?: (props: typeof __VLS_14) => any;
5
- } & {
6
- prefix?: (props: typeof __VLS_21) => any;
7
- } & {
8
- suffix?: (props: typeof __VLS_24) => any;
9
- } & {
10
- plusIcon?: (props: typeof __VLS_26) => any;
11
- } & {
12
- minusIcon?: (props: typeof __VLS_33) => any;
13
- } & {
14
- plusIcon?: (props: typeof __VLS_40) => any;
2
+ declare const __VLS_template: () => {
3
+ __VLS_Slots: {
4
+ minusIcon?: (props: {}) => any;
5
+ } & {
6
+ prefix?: (props: {}) => any;
7
+ } & {
8
+ suffix?: (props: {}) => any;
9
+ } & {
10
+ plusIcon?: (props: {}) => any;
11
+ } & {
12
+ minusIcon?: (props: {}) => any;
13
+ } & {
14
+ plusIcon?: (props: {}) => any;
15
+ };
15
16
  };
17
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
16
18
  declare const __VLS_base: import("vue").DefineComponent<NumberInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
19
  change: (args_0: number | null | undefined, args_1: Event) => any;
18
20
  "update:model-value": (args_0: number | null | undefined) => any;
@@ -143,6 +143,10 @@ function formatWithThousands(value) {
143
143
  const decPart = dotIndex === -1 ? "" : str.slice(dotIndex);
144
144
  return intPart.replace(REGEXPS["thousands-separator"], props.thousandsSeparator) + decPart;
145
145
  }
146
+ function parseInputValue(value) {
147
+ const plain = props.thousands ? value.split(props.thousandsSeparator).join("") : value;
148
+ return Number.parseFloat(plain);
149
+ }
146
150
  function toPrecision(value) {
147
151
  if (!value) {
148
152
  return value;
@@ -224,12 +228,12 @@ function onInputBlur(event) {
224
228
  function onInputInput(value) {
225
229
  const normalized = value.replace(REGEXPS["remove-leading-zeros"], "$1");
226
230
  inputData.userInput = normalized;
227
- const newValue = normalized === "" ? null : Number.parseFloat(normalized);
231
+ const newValue = normalized === "" ? null : parseInputValue(normalized);
228
232
  inputData.currentValue = toPrecision(newValue ?? 0);
229
233
  modelValue.value = inputData.currentValue;
230
234
  }
231
235
  function onInputChange(value, event) {
232
- let newValue = toPrecision(value === "" ? null : Number.parseFloat(value));
236
+ let newValue = toPrecision(value === "" ? null : parseInputValue(value));
233
237
  if (isNumber(newValue)) {
234
238
  newValue = clampToRange(newValue);
235
239
  }
@@ -245,7 +249,6 @@ watch(() => props.modelValue, (newVal, oldVal) => {
245
249
  <template>
246
250
  <PInput
247
251
  data-number-input
248
- v-bind="$attrs"
249
252
  :min="min"
250
253
  :max="max"
251
254
  align="center"
@@ -257,6 +260,7 @@ watch(() => props.modelValue, (newVal, oldVal) => {
257
260
  :model-value="inputValue"
258
261
  :default-prefix-style="false"
259
262
  :default-suffix-style="false"
263
+ v-bind="$attrs"
260
264
  @blur="onInputBlur"
261
265
  @focus="onInputFocus"
262
266
  @change="onInputChange"
@@ -1,8 +1,10 @@
1
1
  import type { OverlayProps } from './types';
2
- declare var __VLS_13: {};
3
- type __VLS_Slots = {} & {
4
- default?: (props: typeof __VLS_13) => any;
2
+ declare const __VLS_template: () => {
3
+ __VLS_Slots: {
4
+ default?: (props: {}) => any;
5
+ };
5
6
  };
7
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
6
8
  declare const __VLS_base: import("vue").DefineComponent<OverlayProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
9
  "update:model-value": (args_0: boolean) => any;
8
10
  click: (args_0: PointerEvent) => any;
@@ -1,8 +1,10 @@
1
1
  import type { PaginationProps } from './types';
2
- declare var __VLS_12: {};
3
- type __VLS_Slots = {} & {
4
- default?: (props: typeof __VLS_12) => any;
2
+ declare const __VLS_template: () => {
3
+ __VLS_Slots: {
4
+ default?: (props: {}) => any;
5
+ };
5
6
  };
7
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
6
8
  declare const __VLS_base: import("vue").DefineComponent<PaginationProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PaginationProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
9
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
8
10
  declare const _default: typeof __VLS_export;
@@ -32,7 +32,7 @@ const configProvider = useConfigProvider();
32
32
  >
33
33
  <span
34
34
  secondary
35
- class="text-[0.8125rem] text-foreground-secondary group-hover:text-foreground motion-safe:transition-colors"
35
+ class="text-xs text-foreground-secondary group-hover:text-foreground motion-safe:transition-colors"
36
36
  >
37
37
  {{ configProvider.locale.compare.prev }}
38
38
  </span>
@@ -54,7 +54,7 @@ const configProvider = useConfigProvider();
54
54
  >
55
55
  <span
56
56
  secondary
57
- class="text-[0.8125rem] text-foreground-secondary group-hover:text-foreground motion-safe:transition-colors"
57
+ class="text-xs text-foreground-secondary group-hover:text-foreground motion-safe:transition-colors"
58
58
  >
59
59
  {{ configProvider.locale.compare.next }}
60
60
  </span>
@@ -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
- type: "numeric" | "alphabetic" | "alphanumeric" | "numeric-password" | "alphabetic-password" | "alphanumeric-password";
15
14
  length: number;
15
+ type: "numeric" | "alphabetic" | "alphanumeric" | "numeric-password" | "alphabetic-password" | "alphanumeric-password";
16
16
  modelValue: string;
17
17
  placeholder: string;
18
18
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -77,7 +77,7 @@ const { classes } = useTailwindVariant({
77
77
  variants: {
78
78
  size: {
79
79
  xs: `${BASIC_HEIGHTS.xs} text-xs`,
80
- sm: `${BASIC_HEIGHTS.sm} text-[0.8125rem]`,
80
+ sm: `${BASIC_HEIGHTS.sm} text-sm`,
81
81
  md: `${BASIC_HEIGHTS.md} text-sm`,
82
82
  lg: `${BASIC_HEIGHTS.lg} text-base`
83
83
  },
@@ -1,8 +1,10 @@
1
1
  import type { PlaceholderProps } from './types';
2
- declare var __VLS_1: {};
3
- type __VLS_Slots = {} & {
4
- default?: (props: typeof __VLS_1) => any;
2
+ declare const __VLS_template: () => {
3
+ __VLS_Slots: {
4
+ default?: (props: {}) => any;
5
+ };
5
6
  };
7
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
6
8
  declare const __VLS_base: import("vue").DefineComponent<PlaceholderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PlaceholderProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
9
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
8
10
  declare const _default: typeof __VLS_export;
@@ -356,18 +356,17 @@ function syncWidth() {
356
356
  const maxWidth = getCssUnitValue(props.maxWidth);
357
357
  wrapper.style.minWidth = maxWidth ? `min(${triggerWidth}px, ${maxWidth})` : `${triggerWidth}px`;
358
358
  }
359
- // A subpixel transform blurs text; snap to the device pixel grid like floating-ui's useFloating.
360
359
  function roundByDPR(value) {
361
360
  const dpr = window.devicePixelRatio || 1;
362
361
  return Math.round(value * dpr) / dpr;
363
362
  }
364
363
  function getPositionMiddleware() {
365
364
  return [
365
+ props.autoPosition && flip(),
366
366
  shift({
367
367
  padding: 4,
368
368
  crossAxis: true
369
369
  }),
370
- props.autoPosition && flip(),
371
370
  props.showArrow && arrow({ element: arrowRef.value }),
372
371
  props.closeOnInvisible && hide({ strategy: "escaped" }),
373
372
  props.closeOnInvisible && hide({ strategy: "referenceHidden" })
@@ -675,19 +674,19 @@ defineExpose({
675
674
  :class="wrapperClass"
676
675
  :style="wrapperStyle"
677
676
  :aria-labelledby="ariaLabelledby"
678
- class="pxd-popover--wrapper sm:max-w-(--popover-max-width) max-sm:max-w-full fixed isolate z-(--popover-index) flex max-h-full will-change-transform outline-none data-[interactive=false]:pointer-events-none data-[visible=false]:pointer-events-none data-[visible=false]:transition-none! motion-reduce:data-[visible=false]:invisible"
677
+ class="pxd-popover--wrapper sm:max-w-(--popover-max-width) fixed isolate z-(--popover-index) flex max-h-full max-w-full will-change-transform outline-none data-[interactive=false]:pointer-events-none data-[visible=false]:pointer-events-none data-[visible=false]:transition-none! motion-reduce:data-[visible=false]:invisible"
679
678
  @keydown="onWrapperKeydown"
680
679
  @pointerenter="onWrapperPointerEnter"
681
680
  @pointerleave="onWrapperPointerLeave"
682
681
  >
683
682
  <div
684
- class="pxd-popover--container pointer-events-none relative z-1 min-h-inherit w-full default-transition-duration default-transition-timing-function"
683
+ class="pxd-popover--container pointer-events-none relative z-1 min-h-inherit w-full max-w-inherit default-transition-duration default-transition-timing-function"
685
684
  :data-transition-type="adaptive ? 'fade-slide' : 'fade-scale'"
686
685
  :data-enter-motion="configProvider.enterMotion"
687
686
  :data-leave-motion="configProvider.leaveMotion"
688
687
  >
689
688
  <div
690
- class="pxd-popover--content h-full max-h-inherit overflow-auto"
689
+ class="pxd-popover--content h-full max-h-inherit max-w-inherit overflow-auto"
691
690
  :class="contentClass"
692
691
  >
693
692
  <slot
@@ -1,8 +1,10 @@
1
1
  import type { ProgressProps } from './types';
2
- declare var __VLS_1: {};
3
- type __VLS_Slots = {} & {
4
- default?: (props: typeof __VLS_1) => any;
2
+ declare const __VLS_template: () => {
3
+ __VLS_Slots: {
4
+ default?: (props: {}) => any;
5
+ };
5
6
  };
7
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
6
8
  declare const __VLS_base: import("vue").DefineComponent<ProgressProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProgressProps> & Readonly<{}>, {
7
9
  label: string | number | boolean;
8
10
  variant: "secondary" | import("../../types/shared/props.js").ComponentVariant;
@@ -1,12 +1,14 @@
1
1
  import type { ProjectBannerProps } from './types';
2
- declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {};
3
- type __VLS_Slots = {} & {
4
- icon?: (props: typeof __VLS_1) => any;
5
- } & {
6
- default?: (props: typeof __VLS_3) => any;
7
- } & {
8
- action?: (props: typeof __VLS_5) => any;
2
+ declare const __VLS_template: () => {
3
+ __VLS_Slots: {
4
+ icon?: (props: {}) => any;
5
+ } & {
6
+ default?: (props: {}) => any;
7
+ } & {
8
+ action?: (props: {}) => any;
9
+ };
9
10
  };
11
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
10
12
  declare const __VLS_base: import("vue").DefineComponent<ProjectBannerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProjectBannerProps> & Readonly<{}>, {
11
13
  variant: import("./types").ProjectBannerVariant;
12
14
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -1,8 +1,10 @@
1
1
  import type { RadialBurstProps } from './types';
2
- declare var __VLS_1: {};
3
- type __VLS_Slots = {} & {
4
- default?: (props: typeof __VLS_1) => any;
2
+ declare const __VLS_template: () => {
3
+ __VLS_Slots: {
4
+ default?: (props: {}) => any;
5
+ };
5
6
  };
7
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
6
8
  declare const __VLS_base: import("vue").DefineComponent<RadialBurstProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<RadialBurstProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
9
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
8
10
  declare const _default: typeof __VLS_export;
@@ -1,8 +1,10 @@
1
1
  import type { RadioProps } from './types';
2
- declare var __VLS_1: {};
3
- type __VLS_Slots = {} & {
4
- default?: (props: typeof __VLS_1) => any;
2
+ declare const __VLS_template: () => {
3
+ __VLS_Slots: {
4
+ default?: (props: {}) => any;
5
+ };
5
6
  };
7
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
6
8
  declare const __VLS_base: import("vue").DefineComponent<RadioProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
9
  change: (args_0: NonNullable<import("../../types/shared/props.js").ComponentValue | undefined>) => any;
8
10
  "update:model-value": (args_0: NonNullable<import("../../types/shared/props.js").ComponentValue | undefined>) => any;
@@ -1,8 +1,10 @@
1
1
  import type { RadioGroupProps } from './types';
2
- declare var __VLS_7: {};
3
- type __VLS_Slots = {} & {
4
- default?: (props: typeof __VLS_7) => any;
2
+ declare const __VLS_template: () => {
3
+ __VLS_Slots: {
4
+ default?: (props: {}) => any;
5
+ };
5
6
  };
7
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
6
8
  declare const __VLS_base: import("vue").DefineComponent<RadioGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
9
  change: (args_0: NonNullable<import("../../types/shared/props.js").ComponentValue | undefined>) => any;
8
10
  "update:model-value": (args_0: NonNullable<import("../../types/shared/props.js").ComponentValue | undefined>) => any;
@@ -6,11 +6,11 @@ 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;
9
10
  disabled: boolean;
10
11
  modelValue: number;
11
12
  readonly: boolean;
12
13
  clearable: boolean;
13
- count: number;
14
14
  allowHalf: boolean;
15
15
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
16
  declare const _default: typeof __VLS_export;
@@ -1,10 +1,12 @@
1
1
  import type { Reaction, ReactionsProps } from './types';
2
2
  declare function pick(emoji: string): void;
3
3
  declare function toggle(emoji: string): void;
4
- declare var __VLS_7: {};
5
- type __VLS_Slots = {} & {
6
- default?: (props: typeof __VLS_7) => any;
4
+ declare const __VLS_template: () => {
5
+ __VLS_Slots: {
6
+ default?: (props: {}) => any;
7
+ };
7
8
  };
9
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
8
10
  declare const __VLS_base: import("vue").DefineComponent<ReactionsProps, {
9
11
  pick: typeof pick;
10
12
  toggle: typeof toggle;
@@ -1,10 +1,12 @@
1
1
  import type { ReasoningProps } from './types';
2
- declare var __VLS_17: {};
3
- type __VLS_Slots = {} & {
4
- default?: (props: typeof __VLS_17) => any;
2
+ declare const __VLS_template: () => {
3
+ __VLS_Slots: {
4
+ default?: (props: {}) => any;
5
+ };
5
6
  };
7
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
6
8
  declare const __VLS_base: import("vue").DefineComponent<ReasoningProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ReasoningProps> & Readonly<{}>, {
7
- variant: import("./types").ReasoningVariant;
9
+ variant: "default" | "simple";
8
10
  expand: boolean;
9
11
  streaming: boolean;
10
12
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -3,13 +3,21 @@ import BrainIcon from "@gdsicon/vue/brain";
3
3
  import ChevronRightIcon from "@gdsicon/vue/chevron-right";
4
4
  import { shallowRef } from "vue";
5
5
  import { useDetailsCollapse } from "../../composables/_internal/use-details-collapse.js";
6
- import { useConfigProvider } from "../../contexts/config-provider.js";
7
6
  import PShimmerText from "../shimmer-text/index.vue";
8
7
  defineOptions({
9
8
  name: "PReasoning",
10
9
  inheritAttrs: false
11
10
  });
12
11
  const props = defineProps({
12
+ title: {
13
+ type: null,
14
+ required: false
15
+ },
16
+ expand: {
17
+ type: Boolean,
18
+ required: false,
19
+ default: true
20
+ },
13
21
  variant: {
14
22
  type: String,
15
23
  required: false,
@@ -20,18 +28,12 @@ const props = defineProps({
20
28
  required: false,
21
29
  default: true
22
30
  },
23
- expand: {
24
- type: Boolean,
25
- required: false,
26
- default: true
27
- },
28
- title: {
29
- type: null,
31
+ shimmerVariant: {
32
+ type: String,
30
33
  required: false
31
34
  }
32
35
  });
33
36
  const contentRef = shallowRef();
34
- const configProvider = useConfigProvider();
35
37
  const { isOpen, detailsOpen, onToggleClick, onDetailsToggle } = useDetailsCollapse(contentRef, () => props.expand);
36
38
  </script>
37
39
 
@@ -54,8 +56,8 @@ const { isOpen, detailsOpen, onToggleClick, onDetailsToggle } = useDetailsCollap
54
56
  >
55
57
  <BrainIcon class="size-em shrink-0" />
56
58
 
57
- <PShimmerText class="pxd-reasoning--title leading-inherit" :disabled="!streaming">
58
- {{ title ?? configProvider.locale.reasoning[streaming ? "thinking" : "thought"] }}
59
+ <PShimmerText :variant="shimmerVariant" class="pxd-reasoning--title leading-inherit" :disabled="!streaming">
60
+ {{ title }}
59
61
  </PShimmerText>
60
62
 
61
63
  <ChevronRightIcon
@@ -74,7 +76,7 @@ const { isOpen, detailsOpen, onToggleClick, onDetailsToggle } = useDetailsCollap
74
76
  :class="isOpen ? 'grid-template-rows-1fr' : 'grid-template-rows-0fr'"
75
77
  >
76
78
  <div
77
- class="pxd-reasoning--content"
79
+ class="pxd-reasoning--content whitespace-normal"
78
80
  :class="{
79
81
  'p-3 text-sm border-t text-foreground-secondary': variant === 'default',
80
82
  'mbs-1.5 text-sm ms-1.5 py-1 ps-3 border-l text-foreground-secondary': variant === 'simple'
@@ -1,12 +1,10 @@
1
1
  import type { ComponentText } from '../../types/shared/props'
2
-
3
- export type ReasoningVariant = 'default' | 'simple'
2
+ import { ShimmerTextVariant } from '../shimmer-text/types'
4
3
 
5
4
  export interface ReasoningProps {
6
- variant?: ReasoningVariant
7
- streaming?: boolean
8
- /** Expanded state, applied whenever the value changes. */
9
- expand?: boolean
10
- /** Title text; falls back to `locale.reasoning.thinking` / `thought`. */
11
5
  title?: ComponentText
6
+ expand?: boolean
7
+ variant?: 'default' | 'simple'
8
+ streaming?: boolean
9
+ shimmerVariant?: ShimmerTextVariant
12
10
  }
@@ -1,15 +1,17 @@
1
1
  import type { ResizableProps } from './types';
2
2
  declare function reset(): void;
3
- declare var __VLS_1: {
4
- size: number;
5
- }, __VLS_3: {
6
- size: number;
7
- };
8
- type __VLS_Slots = {} & {
9
- leading?: (props: typeof __VLS_1) => any;
10
- } & {
11
- trailing?: (props: typeof __VLS_3) => any;
3
+ declare const __VLS_template: () => {
4
+ __VLS_Slots: {
5
+ leading?: (props: {
6
+ size: number;
7
+ }) => any;
8
+ } & {
9
+ trailing?: (props: {
10
+ size: number;
11
+ }) => any;
12
+ };
12
13
  };
14
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
13
15
  declare const __VLS_base: import("vue").DefineComponent<ResizableProps, {
14
16
  getPanelSizes: () => number[];
15
17
  reset: typeof reset;
@@ -479,7 +479,7 @@ defineExpose({
479
479
  :data-collapsed="collapsed || void 0"
480
480
  :data-flush="isFlush || void 0"
481
481
  :data-orientation="direction"
482
- class="pxd-resizable--handle group relative shrink-0 touch-none self-focus-ring select-none hover:after:delay-200 aria-disabled:cursor-default after:motion-safe:transition-colors"
482
+ class="pxd-resizable--handle group relative z-1 shrink-0 touch-none self-focus-ring select-none hover:after:delay-200 aria-disabled:cursor-default after:motion-safe:transition-colors"
483
483
  @pointerdown="handlePointerDown"
484
484
  @pointermove="handlePointerMove"
485
485
  @pointerup="handlePointerUp"
@@ -490,7 +490,7 @@ defineExpose({
490
490
  >
491
491
  <span
492
492
  v-if="handle"
493
- class="pxd-resizable--handle-thumb pointer-events-none absolute z-1 block -translate-x-1/2 -translate-y-1/2 rounded-full bg-gray-300 group-hover:bg-primary group-hover:delay-200"
493
+ class="pxd-resizable--handle-thumb pointer-events-none absolute block -translate-x-1/2 -translate-y-1/2 rounded-full bg-gray-300 group-hover:bg-primary group-hover:delay-200"
494
494
  :class="isHorizontal ? 'w-1 h-6 left-0 top-1/2' : 'w-6 h-1 top-0 left-1/2'"
495
495
  />
496
496
  </div>
@@ -1,11 +1,13 @@
1
1
  import type { RevealProps } from './types';
2
- declare var __VLS_1: {};
3
- type __VLS_Slots = {} & {
4
- default?: (props: typeof __VLS_1) => any;
2
+ declare const __VLS_template: () => {
3
+ __VLS_Slots: {
4
+ default?: (props: {}) => any;
5
+ };
5
6
  };
7
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
6
8
  declare const __VLS_base: import("vue").DefineComponent<RevealProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<RevealProps> & Readonly<{}>, {
7
- duration: string | number;
8
9
  delay: string | number;
10
+ duration: string | number;
9
11
  threshold: number | number[];
10
12
  direction: import("../../types/shared/props.js").BasePosition;
11
13
  trigger: import("./types").RevealTrigger;
@@ -8,8 +8,8 @@ declare const __VLS_export: import("vue").DefineComponent<RollingNumberProps, {
8
8
  onFinish?: (() => any) | undefined;
9
9
  }>, {
10
10
  value: string | number;
11
- mode: "scroll" | "tween";
12
11
  duration: number;
12
+ mode: "scroll" | "tween";
13
13
  thousands: boolean;
14
14
  animateOnMount: boolean;
15
15
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -1,10 +1,12 @@
1
1
  import type { ScrollProgressProps } from './types';
2
- declare var __VLS_1: {
3
- percentage: number;
4
- };
5
- type __VLS_Slots = {} & {
6
- default?: (props: typeof __VLS_1) => any;
2
+ declare const __VLS_template: () => {
3
+ __VLS_Slots: {
4
+ default?: (props: {
5
+ percentage: number;
6
+ }) => any;
7
+ };
7
8
  };
9
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
8
10
  declare const __VLS_base: import("vue").DefineComponent<ScrollProgressProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
11
  change: (percentage: number) => any;
10
12
  }, string, import("vue").PublicProps, Readonly<ScrollProgressProps> & Readonly<{
@@ -1,11 +1,14 @@
1
1
  import type { ScrollTextProps } from './types';
2
- declare var __VLS_7: {};
3
- type __VLS_Slots = {} & {
4
- default?: (props: typeof __VLS_7) => any;
2
+ declare const __VLS_template: () => {
3
+ __VLS_Slots: {
4
+ default?: (props: {}) => any;
5
+ };
5
6
  };
7
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
6
8
  declare const __VLS_base: import("vue").DefineComponent<ScrollTextProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ScrollTextProps> & Readonly<{}>, {
7
9
  text: string | number | null;
8
10
  as: import("../../types/shared/props.js").ComponentAs;
11
+ threshold: number;
9
12
  speed: string | number;
10
13
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
14
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -22,6 +22,11 @@ const props = defineProps({
22
22
  type: [Number, String],
23
23
  required: false,
24
24
  default: 40
25
+ },
26
+ threshold: {
27
+ type: Number,
28
+ required: false,
29
+ default: 10
25
30
  }
26
31
  });
27
32
  const MIN_DURATION = 1;
@@ -59,7 +64,7 @@ function syncOverflow(force = false) {
59
64
  return;
60
65
  }
61
66
  const distance = nextContent - nextWrap;
62
- const nextOverflowing = distance > 1;
67
+ const nextOverflowing = distance > props.threshold;
63
68
  if (!nextOverflowing) {
64
69
  clearOverflow();
65
70
  return;
@@ -76,7 +81,11 @@ function syncOverflow(force = false) {
76
81
  "--scroll-text-duration": `${Math.max(distance / nextSpeed, MIN_DURATION)}s`
77
82
  };
78
83
  }
79
- watch(() => [props.text, toSpeed(props.speed)], () => {
84
+ watch(() => [
85
+ props.text,
86
+ toSpeed(props.speed),
87
+ props.threshold
88
+ ], () => {
80
89
  syncOverflow(true);
81
90
  }, { flush: "post" });
82
91
  // The first measurement is deferred to a rAF instead of running synchronously in
@@ -4,4 +4,5 @@ export interface ScrollTextProps {
4
4
  as?: ComponentAs
5
5
  text?: ComponentText
6
6
  speed?: number | string
7
+ threshold?: number
7
8
  }
@@ -2,10 +2,12 @@ import type { ComponentDirection } from '../../types/shared/props';
2
2
  import type { ScrollableProps } from './types';
3
3
  declare function scrollTo(top: number, left: number): void;
4
4
  declare function forceUpdate(): void;
5
- declare var __VLS_1: {};
6
- type __VLS_Slots = {} & {
7
- default?: (props: typeof __VLS_1) => any;
5
+ declare const __VLS_template: () => {
6
+ __VLS_Slots: {
7
+ default?: (props: {}) => any;
8
+ };
8
9
  };
10
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
9
11
  declare const __VLS_base: import("vue").DefineComponent<ScrollableProps, {
10
12
  scrollTo: typeof scrollTo;
11
13
  forceUpdate: typeof forceUpdate;