@hina-ui/vue 1.3.1 → 1.5.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 (215) hide show
  1. package/dist/index.js +4336 -2180
  2. package/dist/index.js.map +1 -1
  3. package/dist/types/components/dialog/Dialog.vue.d.ts +3 -1
  4. package/dist/types/components/dialog/Dialog.vue.d.ts.map +1 -1
  5. package/dist/types/components/drawer/Drawer.vue.d.ts +21 -14
  6. package/dist/types/components/drawer/Drawer.vue.d.ts.map +1 -1
  7. package/dist/types/components/drawer/drawer.variants.d.ts +10 -1
  8. package/dist/types/components/drawer/drawer.variants.d.ts.map +1 -1
  9. package/dist/types/components/dropdown-menu/DropdownMenu.vue.d.ts +4 -1
  10. package/dist/types/components/dropdown-menu/DropdownMenu.vue.d.ts.map +1 -1
  11. package/dist/types/components/hover-card/HoverCard.vue.d.ts +10 -7
  12. package/dist/types/components/hover-card/HoverCard.vue.d.ts.map +1 -1
  13. package/dist/types/components/hover-card/HoverCardAnchor.vue.d.ts +29 -0
  14. package/dist/types/components/hover-card/HoverCardAnchor.vue.d.ts.map +1 -0
  15. package/dist/types/components/hover-card/composables/useHoverCardAnchor.d.ts +22 -0
  16. package/dist/types/components/hover-card/composables/useHoverCardAnchor.d.ts.map +1 -0
  17. package/dist/types/components/image/Image.vue.d.ts +3 -1
  18. package/dist/types/components/image/Image.vue.d.ts.map +1 -1
  19. package/dist/types/components/image/composables/useImageGroupState.d.ts.map +1 -1
  20. package/dist/types/components/image/image.variants.d.ts +1 -1
  21. package/dist/types/components/lightbox/Lightbox.vue.d.ts.map +1 -1
  22. package/dist/types/components/lightbox/LightboxChrome.vue.d.ts +4 -0
  23. package/dist/types/components/lightbox/LightboxChrome.vue.d.ts.map +1 -1
  24. package/dist/types/components/lightbox/LightboxToolbar.vue.d.ts +4 -0
  25. package/dist/types/components/lightbox/LightboxToolbar.vue.d.ts.map +1 -1
  26. package/dist/types/components/lightbox/composables/useLightboxFrames.d.ts +4 -1
  27. package/dist/types/components/lightbox/composables/useLightboxFrames.d.ts.map +1 -1
  28. package/dist/types/components/lightbox/composables/useLightboxLarge.d.ts +1 -0
  29. package/dist/types/components/lightbox/composables/useLightboxLarge.d.ts.map +1 -1
  30. package/dist/types/components/lightbox/composables/useLightboxLayout.d.ts +17 -0
  31. package/dist/types/components/lightbox/composables/useLightboxLayout.d.ts.map +1 -0
  32. package/dist/types/components/lightbox/composables/useLightboxPhase.d.ts +1 -1
  33. package/dist/types/components/lightbox/composables/useLightboxPhase.d.ts.map +1 -1
  34. package/dist/types/components/lightbox/composables/useLightboxPose.d.ts.map +1 -1
  35. package/dist/types/components/lightbox/composables/useLightboxRotation.d.ts +5 -1
  36. package/dist/types/components/lightbox/composables/useLightboxRotation.d.ts.map +1 -1
  37. package/dist/types/components/lightbox/composables/useLightboxZoom.d.ts +10 -1
  38. package/dist/types/components/lightbox/composables/useLightboxZoom.d.ts.map +1 -1
  39. package/dist/types/components/lightbox/lightbox.variants.d.ts +2 -0
  40. package/dist/types/components/lightbox/lightbox.variants.d.ts.map +1 -0
  41. package/dist/types/components/lightbox/types.d.ts +7 -1
  42. package/dist/types/components/lightbox/types.d.ts.map +1 -1
  43. package/dist/types/components/lightbox/utils/pose.d.ts +2 -2
  44. package/dist/types/components/lightbox/utils/pose.d.ts.map +1 -1
  45. package/dist/types/components/lightbox/utils/source.d.ts +4 -0
  46. package/dist/types/components/lightbox/utils/source.d.ts.map +1 -0
  47. package/dist/types/components/lightbox/utils/zoom.d.ts +8 -4
  48. package/dist/types/components/lightbox/utils/zoom.d.ts.map +1 -1
  49. package/dist/types/components/pagination/Pagination.vue.d.ts +59 -0
  50. package/dist/types/components/pagination/Pagination.vue.d.ts.map +1 -0
  51. package/dist/types/components/pagination/PaginationContent.vue.d.ts +23 -0
  52. package/dist/types/components/pagination/PaginationContent.vue.d.ts.map +1 -0
  53. package/dist/types/components/pagination/PaginationControl.vue.d.ts +10 -0
  54. package/dist/types/components/pagination/PaginationControl.vue.d.ts.map +1 -0
  55. package/dist/types/components/pagination/PaginationEllipsis.vue.d.ts +23 -0
  56. package/dist/types/components/pagination/PaginationEllipsis.vue.d.ts.map +1 -0
  57. package/dist/types/components/pagination/PaginationInfo.vue.d.ts +24 -0
  58. package/dist/types/components/pagination/PaginationInfo.vue.d.ts.map +1 -0
  59. package/dist/types/components/pagination/PaginationJump.vue.d.ts +7 -0
  60. package/dist/types/components/pagination/PaginationJump.vue.d.ts.map +1 -0
  61. package/dist/types/components/pagination/PaginationPage.vue.d.ts +20 -0
  62. package/dist/types/components/pagination/PaginationPage.vue.d.ts.map +1 -0
  63. package/dist/types/components/pagination/PaginationPages.vue.d.ts +27 -0
  64. package/dist/types/components/pagination/PaginationPages.vue.d.ts.map +1 -0
  65. package/dist/types/components/pagination/PaginationPopup.vue.d.ts +8 -0
  66. package/dist/types/components/pagination/PaginationPopup.vue.d.ts.map +1 -0
  67. package/dist/types/components/pagination/PaginationSize.vue.d.ts +7 -0
  68. package/dist/types/components/pagination/PaginationSize.vue.d.ts.map +1 -0
  69. package/dist/types/components/pagination/composables/usePagination.d.ts +25 -0
  70. package/dist/types/components/pagination/composables/usePagination.d.ts.map +1 -0
  71. package/dist/types/components/pagination/composables/usePaginationEllipsis.d.ts +34 -0
  72. package/dist/types/components/pagination/composables/usePaginationEllipsis.d.ts.map +1 -0
  73. package/dist/types/components/pagination/composables/usePaginationJump.d.ts +8 -0
  74. package/dist/types/components/pagination/composables/usePaginationJump.d.ts.map +1 -0
  75. package/dist/types/components/pagination/composables/usePaginationPageTooltip.d.ts +3 -0
  76. package/dist/types/components/pagination/composables/usePaginationPageTooltip.d.ts.map +1 -0
  77. package/dist/types/components/pagination/composables/usePaginationWindow.d.ts +188 -0
  78. package/dist/types/components/pagination/composables/usePaginationWindow.d.ts.map +1 -0
  79. package/dist/types/components/pagination/context.d.ts +19 -0
  80. package/dist/types/components/pagination/context.d.ts.map +1 -0
  81. package/dist/types/components/pagination/pagination.variants.d.ts +68 -0
  82. package/dist/types/components/pagination/pagination.variants.d.ts.map +1 -0
  83. package/dist/types/components/pagination/types.d.ts +23 -0
  84. package/dist/types/components/pagination/types.d.ts.map +1 -0
  85. package/dist/types/components/pagination/utils/ranges.d.ts +3 -0
  86. package/dist/types/components/pagination/utils/ranges.d.ts.map +1 -0
  87. package/dist/types/components/popover/Popover.vue.d.ts +4 -1
  88. package/dist/types/components/popover/Popover.vue.d.ts.map +1 -1
  89. package/dist/types/components/range-slider/RangeSlider.vue.d.ts +1 -0
  90. package/dist/types/components/range-slider/RangeSlider.vue.d.ts.map +1 -1
  91. package/dist/types/components/sheet/Sheet.vue.d.ts +21 -14
  92. package/dist/types/components/sheet/Sheet.vue.d.ts.map +1 -1
  93. package/dist/types/components/sheet/sheet.variants.d.ts +54 -3
  94. package/dist/types/components/sheet/sheet.variants.d.ts.map +1 -1
  95. package/dist/types/components/slider/Slider.vue.d.ts +1 -0
  96. package/dist/types/components/slider/Slider.vue.d.ts.map +1 -1
  97. package/dist/types/components/slider/slider.variants.d.ts.map +1 -1
  98. package/dist/types/components/tooltip/Tooltip.vue.d.ts +4 -15
  99. package/dist/types/components/tooltip/Tooltip.vue.d.ts.map +1 -1
  100. package/dist/types/components/tooltip/TooltipBubble.vue.d.ts +20 -0
  101. package/dist/types/components/tooltip/TooltipBubble.vue.d.ts.map +1 -0
  102. package/dist/types/components/tooltip/TooltipDirectiveRoot.d.ts +33 -0
  103. package/dist/types/components/tooltip/TooltipDirectiveRoot.d.ts.map +1 -0
  104. package/dist/types/components/tooltip/composables/useTooltipTarget.d.ts +2 -0
  105. package/dist/types/components/tooltip/composables/useTooltipTarget.d.ts.map +1 -0
  106. package/dist/types/components/tooltip/directive.d.ts +4 -0
  107. package/dist/types/components/tooltip/directive.d.ts.map +1 -0
  108. package/dist/types/components/tooltip/types.d.ts +14 -0
  109. package/dist/types/components/tooltip/types.d.ts.map +1 -0
  110. package/dist/types/components/tooltip/utils/directiveContext.d.ts +10 -0
  111. package/dist/types/components/tooltip/utils/directiveContext.d.ts.map +1 -0
  112. package/dist/types/components/tree-select/TreeSelect.vue.d.ts +6 -1
  113. package/dist/types/components/tree-select/TreeSelect.vue.d.ts.map +1 -1
  114. package/dist/types/components/tree-select/TreeSelectSearch.vue.d.ts +22 -0
  115. package/dist/types/components/tree-select/TreeSelectSearch.vue.d.ts.map +1 -0
  116. package/dist/types/components/tree-select/composables/useTreeSelect.d.ts +35 -0
  117. package/dist/types/components/tree-select/composables/useTreeSelect.d.ts.map +1 -0
  118. package/dist/types/components/tree-select/tree-select.variants.d.ts +1 -1
  119. package/dist/types/components/tree-select/tree-select.variants.d.ts.map +1 -1
  120. package/dist/types/components/tree-select/utils/filterTree.d.ts +7 -0
  121. package/dist/types/components/tree-select/utils/filterTree.d.ts.map +1 -0
  122. package/dist/types/index.d.ts +10 -1
  123. package/dist/types/index.d.ts.map +1 -1
  124. package/dist/types/lib/anchored-overlay.d.ts +12 -2
  125. package/dist/types/lib/anchored-overlay.d.ts.map +1 -1
  126. package/dist/types/lib/overlay-anchor.d.ts +16 -0
  127. package/dist/types/lib/overlay-anchor.d.ts.map +1 -0
  128. package/dist/types/lib/overlay-positioner.d.ts +3 -0
  129. package/dist/types/lib/overlay-positioner.d.ts.map +1 -0
  130. package/dist/types/lib/pointer-corridor.d.ts +7 -0
  131. package/dist/types/lib/pointer-corridor.d.ts.map +1 -0
  132. package/dist/types/lib/scroll-viewport.d.ts +9 -0
  133. package/dist/types/lib/scroll-viewport.d.ts.map +1 -0
  134. package/dist/types/lib/useDirection.d.ts +7 -0
  135. package/dist/types/lib/useDirection.d.ts.map +1 -0
  136. package/dist/types/locale/en-US.d.ts.map +1 -1
  137. package/dist/types/locale/index.d.ts.map +1 -1
  138. package/dist/types/locale/types.d.ts +13 -0
  139. package/dist/types/locale/types.d.ts.map +1 -1
  140. package/dist/types/locale/zh-CN.d.ts.map +1 -1
  141. package/package.json +1 -1
  142. package/src/components/badge/badge.variants.ts +1 -1
  143. package/src/components/dialog/Dialog.vue +5 -1
  144. package/src/components/drawer/Drawer.vue +69 -32
  145. package/src/components/drawer/drawer.variants.ts +6 -2
  146. package/src/components/dropdown-menu/DropdownMenu.vue +18 -5
  147. package/src/components/hover-card/HoverCard.vue +39 -16
  148. package/src/components/hover-card/HoverCardAnchor.vue +18 -0
  149. package/src/components/hover-card/composables/useHoverCardAnchor.ts +151 -0
  150. package/src/components/image/Image.vue +2 -0
  151. package/src/components/image/composables/useImageGroupState.ts +9 -1
  152. package/src/components/image/image.variants.ts +1 -1
  153. package/src/components/lightbox/Lightbox.vue +23 -17
  154. package/src/components/lightbox/LightboxChrome.vue +7 -1
  155. package/src/components/lightbox/LightboxToolbar.vue +16 -2
  156. package/src/components/lightbox/composables/useLightboxFrames.ts +108 -12
  157. package/src/components/lightbox/composables/useLightboxLarge.ts +4 -1
  158. package/src/components/lightbox/composables/useLightboxLayout.ts +44 -0
  159. package/src/components/lightbox/composables/useLightboxPhase.ts +12 -4
  160. package/src/components/lightbox/composables/useLightboxPose.ts +17 -19
  161. package/src/components/lightbox/composables/useLightboxRotation.ts +14 -4
  162. package/src/components/lightbox/composables/useLightboxZoom.ts +51 -9
  163. package/src/components/lightbox/lightbox.variants.ts +5 -0
  164. package/src/components/lightbox/types.ts +5 -1
  165. package/src/components/lightbox/utils/pose.ts +13 -6
  166. package/src/components/lightbox/utils/source.ts +17 -0
  167. package/src/components/lightbox/utils/zoom.ts +21 -7
  168. package/src/components/pagination/Pagination.vue +118 -0
  169. package/src/components/pagination/PaginationContent.vue +29 -0
  170. package/src/components/pagination/PaginationControl.vue +42 -0
  171. package/src/components/pagination/PaginationEllipsis.vue +67 -0
  172. package/src/components/pagination/PaginationInfo.vue +18 -0
  173. package/src/components/pagination/PaginationJump.vue +32 -0
  174. package/src/components/pagination/PaginationPage.vue +34 -0
  175. package/src/components/pagination/PaginationPages.vue +43 -0
  176. package/src/components/pagination/PaginationPopup.vue +92 -0
  177. package/src/components/pagination/PaginationSize.vue +30 -0
  178. package/src/components/pagination/composables/usePagination.ts +76 -0
  179. package/src/components/pagination/composables/usePaginationEllipsis.ts +269 -0
  180. package/src/components/pagination/composables/usePaginationJump.ts +23 -0
  181. package/src/components/pagination/composables/usePaginationPageTooltip.ts +23 -0
  182. package/src/components/pagination/composables/usePaginationWindow.ts +116 -0
  183. package/src/components/pagination/context.ts +23 -0
  184. package/src/components/pagination/pagination.variants.ts +32 -0
  185. package/src/components/pagination/types.ts +19 -0
  186. package/src/components/pagination/utils/ranges.ts +12 -0
  187. package/src/components/popover/Popover.vue +17 -7
  188. package/src/components/range-slider/RangeSlider.vue +6 -0
  189. package/src/components/sheet/Sheet.vue +67 -24
  190. package/src/components/sheet/sheet.variants.ts +17 -4
  191. package/src/components/slider/Slider.vue +6 -0
  192. package/src/components/slider/slider.variants.ts +1 -0
  193. package/src/components/tooltip/Tooltip.vue +10 -33
  194. package/src/components/tooltip/TooltipBubble.vue +36 -0
  195. package/src/components/tooltip/TooltipDirectiveRoot.ts +61 -0
  196. package/src/components/tooltip/composables/useTooltipTarget.ts +56 -0
  197. package/src/components/tooltip/directive.ts +54 -0
  198. package/src/components/tooltip/types.ts +15 -0
  199. package/src/components/tooltip/utils/directiveContext.ts +32 -0
  200. package/src/components/tree-select/TreeSelect.vue +90 -61
  201. package/src/components/tree-select/TreeSelectSearch.vue +48 -0
  202. package/src/components/tree-select/composables/useTreeSelect.ts +130 -0
  203. package/src/components/tree-select/tree-select.variants.ts +2 -2
  204. package/src/components/tree-select/utils/filterTree.ts +19 -0
  205. package/src/index.ts +10 -1
  206. package/src/lib/anchored-overlay.ts +28 -19
  207. package/src/lib/overlay-anchor.ts +65 -0
  208. package/src/lib/overlay-positioner.ts +25 -0
  209. package/src/lib/pointer-corridor.ts +26 -0
  210. package/src/lib/scroll-viewport.ts +8 -0
  211. package/src/lib/useDirection.ts +31 -0
  212. package/src/locale/en-US.ts +15 -1
  213. package/src/locale/index.ts +1 -0
  214. package/src/locale/types.ts +13 -0
  215. package/src/locale/zh-CN.ts +15 -1
@@ -27,7 +27,9 @@ type __VLS_ModelProps = {
27
27
  'open'?: boolean;
28
28
  };
29
29
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
30
- declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
30
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
31
+ viewport: import("vue").ComputedRef<HTMLElement | undefined>;
32
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
31
33
  "update:open": (value: boolean | undefined) => any;
32
34
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
33
35
  "onUpdate:open"?: ((value: boolean | undefined) => any) | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"Dialog.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/dialog/Dialog.vue"],"names":[],"mappings":"AA6JE,OAAO,EAA6B,KAAK,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAIlF,KAAK,WAAW,GAAG;IACf,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,IAAI,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC,CAAA;IAC7B,SAAS,CAAC,EAAE,QAAQ,GAAG,KAAK,GAAG,QAAQ,CAAA;IACvC,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AAMJ,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,IAAI,OAAO,CAAA;IACnB,IAAI,CAAC,IAAI,OAAO,CAAA;IAChB,KAAK,CAAC,IAAI,OAAO,CAAA;IACjB,IAAI,CAAC,CAAC,KAAK,EAAE;QAAE,KAAK,EAAE,MAAM,IAAI,CAA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AC,IAAI,OAAO,CAAA;IACnB,IAAI,CAAC,IAAI,OAAO,CAAA;IAChB,KAAK,CAAC,IAAI,OAAO,CAAA;IACjB,IAAI,CAAC,CAAC,KAAK,EAAE;QAAE,KAAK,EAAE,MAAM,IAAI,CAAA;KAAE,GAAG,OAAO,CAAA;IAC5C,OAAO,CAAC,CAAC,KAAK,EAAE;QAAE,KAAK,EAAE,MAAM,IAAI,CAAA;KAAE,GAAG,OAAO,CAAA;IAC/C,MAAM,CAAC,CAAC,KAAK,EAAE;QAAE,KAAK,EAAE,MAAM,IAAI,CAAA;KAAE,GAAG,OAAO,CAAA;CAC/C,CAAC;AAmBJ,KAAK,gBAAgB,GAAG;IACxB,MAAM,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC;AAMF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AAuYxD,QAAA,MAAM,UAAU;;;;;;;;YAnbD,OAAO;cACL,OAAO;YACT,OAAO;6EAsbpB,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -3,33 +3,40 @@ type __VLS_Props = {
3
3
  description?: string;
4
4
  side?: 'start' | 'end';
5
5
  size?: 'sm' | 'md' | 'lg';
6
+ header?: boolean;
7
+ closable?: boolean;
6
8
  locked?: boolean;
7
9
  class?: string;
8
10
  };
9
- declare function close(): void;
11
+ type __VLS_Slots = {
12
+ default?(): unknown;
13
+ icon?(): unknown;
14
+ title?(): unknown;
15
+ body?(props: {
16
+ close: () => void;
17
+ }): unknown;
18
+ content?(props: {
19
+ close: () => void;
20
+ }): unknown;
21
+ footer?(props: {
22
+ close: () => void;
23
+ }): unknown;
24
+ };
10
25
  type __VLS_ModelProps = {
11
26
  'open'?: boolean;
12
27
  };
13
28
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
14
- declare var __VLS_14: {}, __VLS_83: {
15
- close: typeof close;
16
- }, __VLS_85: {
17
- close: typeof close;
18
- };
19
- type __VLS_Slots = {} & {
20
- default?: (props: typeof __VLS_14) => any;
21
- } & {
22
- content?: (props: typeof __VLS_83) => any;
23
- } & {
24
- footer?: (props: typeof __VLS_85) => any;
25
- };
26
- declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
29
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
30
+ viewport: import("vue").ComputedRef<HTMLElement | undefined>;
31
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
27
32
  "update:open": (value: boolean | undefined) => any;
28
33
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
29
34
  "onUpdate:open"?: ((value: boolean | undefined) => any) | undefined;
30
35
  }>, {
31
36
  size: "sm" | "md" | "lg";
37
+ header: boolean;
32
38
  side: "start" | "end";
39
+ closable: boolean;
33
40
  locked: boolean;
34
41
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
35
42
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -1 +1 @@
1
- {"version":3,"file":"Drawer.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/drawer/Drawer.vue"],"names":[],"mappings":"AAuHE,KAAK,WAAW,GAAG;IACf,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,IAAI,CAAC,EAAE,OAAO,GAAG,KAAK,CAAA;IACtB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;IACzB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,KAAK,CAAC,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AA;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AAMJ,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,IAAI,OAAO,CAAA;IACnB,IAAI,CAAC,IAAI,OAAO,CAAA;IAChB,KAAK,CAAC,IAAI,OAAO,CAAA;IACjB,IAAI,CAAC,CAAC,KAAK,EAAE;QAAE,KAAK,EAAE,MAAM,IAAI,CAAA;KAAE,GAAG,OAAO,CAAA;IAC5C,OAAO,CAAC,CAAC,KAAK,EAAE;QAAE,KAAK,EAAE,MAAM,IAAI,CAAA;KAAE,GAAG,OAAO,CAAA;IAC/C,MAAM,CAAC,CAAC,KAAK,EAAE;QAAE,KAAK,EAAE,MAAM,IAAI,CAAA;KAAE,GAAG,OAAO,CAAA;CAC/C,CAAC;AAmBJ,KAAK,gBAAgB,GAAG;IACxB,MAAM,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC;AAMF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AAyXxD,QAAA,MAAM,UAAU;;;;;;;UAtaH,IAAI,GAAG,IAAI,GAAG,IAAI;YAChB,OAAO;UAFT,OAAO,GAAG,KAAK;cAGX,OAAO;YACT,OAAO;6EAwapB,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -1,5 +1,8 @@
1
1
  import { type VariantProps } from '../../lib/tv';
2
2
  export declare const drawerCard: import("tailwind-variants").TVReturnType<{
3
+ padded: {
4
+ true: "gap-4 py-(--hn-panel-p)";
5
+ };
3
6
  side: {
4
7
  start: "start-0";
5
8
  end: "end-0";
@@ -9,7 +12,10 @@ export declare const drawerCard: import("tailwind-variants").TVReturnType<{
9
12
  md: "w-90";
10
13
  lg: "w-120";
11
14
  };
12
- }, undefined, "", {
15
+ }, undefined, string[], {
16
+ padded: {
17
+ true: "gap-4 py-(--hn-panel-p)";
18
+ };
13
19
  side: {
14
20
  start: "start-0";
15
21
  end: "end-0";
@@ -20,6 +26,9 @@ export declare const drawerCard: import("tailwind-variants").TVReturnType<{
20
26
  lg: "w-120";
21
27
  };
22
28
  }, undefined, import("tailwind-variants").TVReturnTypeLike<{
29
+ padded: {
30
+ true: "gap-4 py-(--hn-panel-p)";
31
+ };
23
32
  side: {
24
33
  start: "start-0";
25
34
  end: "end-0";
@@ -1 +1 @@
1
- {"version":3,"file":"drawer.variants.d.ts","sourceRoot":"","sources":["../../../../src/components/drawer/drawer.variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,cAAc,CAAA;AAEpD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAcrB,CAAA;AAEF,MAAM,MAAM,cAAc,GAAG,YAAY,CAAC,OAAO,UAAU,CAAC,CAAA"}
1
+ {"version":3,"file":"drawer.variants.d.ts","sourceRoot":"","sources":["../../../../src/components/drawer/drawer.variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,cAAc,CAAA;AAEpD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAkBrB,CAAA;AAEF,MAAM,MAAM,cAAc,GAAG,YAAY,CAAC,OAAO,UAAU,CAAC,CAAA"}
@@ -1,6 +1,8 @@
1
+ import type { OverlayAnchor, OverlayPositionStrategy } from '../../lib/overlay-anchor';
1
2
  type __VLS_Props = {
2
3
  label?: string;
3
- anchor?: HTMLElement | null;
4
+ anchor?: OverlayAnchor | null;
5
+ updatePositionStrategy?: OverlayPositionStrategy;
4
6
  modal?: boolean;
5
7
  dir?: 'ltr' | 'rtl';
6
8
  side?: 'top' | 'right' | 'bottom' | 'left';
@@ -34,6 +36,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
34
36
  side: "top" | "right" | "bottom" | "left";
35
37
  align: "start" | "center" | "end";
36
38
  sideOffset: number;
39
+ updatePositionStrategy: OverlayPositionStrategy;
37
40
  modal: boolean;
38
41
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
39
42
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownMenu.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/dropdown-menu/DropdownMenu.vue"],"names":[],"mappings":"AAgGE,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,WAAW,GAAG,IAAI,CAAA;IAC3B,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,GAAG,CAAC,EAAE,KAAK,GAAG,KAAK,CAAA;IACnB,IAAI,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAA;IAC1C,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAA;IAClC,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AASJ,KAAK,WAAW,GAAG;IAAE,OAAO,CAAC,IAAI,OAAO,CAAC;IAAC,OAAO,CAAC,IAAI,OAAO,CAAA;CAAE,CAAC;AAalE,KAAK,gBAAgB,GAAG;IACxB,MAAM,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC;AAMF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AA2IxD,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;UA7KH,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM;WAClC,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,OAAO,GAAG,QAAQ,GAAG,MAAM;WAClC,OAAO,GAAG,QAAQ,GAAG,KAAK;gBACrB,MAAM;4BALM,uBAAuB;WACxC,OAAO;6EA6MnB,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -1,4 +1,7 @@
1
+ import type { OverlayAnchor, OverlayPositionStrategy } from '../../lib/overlay-anchor';
1
2
  type __VLS_Props = {
3
+ anchor?: OverlayAnchor | null;
4
+ updatePositionStrategy?: OverlayPositionStrategy;
2
5
  side?: 'top' | 'right' | 'bottom' | 'left';
3
6
  align?: 'start' | 'center' | 'end';
4
7
  sideOffset?: number;
@@ -6,17 +9,16 @@ type __VLS_Props = {
6
9
  closeDelay?: number;
7
10
  padded?: boolean;
8
11
  class?: string;
12
+ positionerClass?: string;
13
+ };
14
+ type __VLS_Slots = {
15
+ default?(): unknown;
16
+ content?(): unknown;
9
17
  };
10
18
  type __VLS_ModelProps = {
11
19
  'open'?: boolean;
12
20
  };
13
21
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
14
- declare var __VLS_14: {}, __VLS_34: {};
15
- type __VLS_Slots = {} & {
16
- default?: (props: typeof __VLS_14) => any;
17
- } & {
18
- content?: (props: typeof __VLS_34) => any;
19
- };
20
22
  declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
23
  "update:open": (value: boolean | undefined) => any;
22
24
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
@@ -25,9 +27,10 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
25
27
  side: "top" | "right" | "bottom" | "left";
26
28
  align: "start" | "center" | "end";
27
29
  sideOffset: number;
30
+ updatePositionStrategy: OverlayPositionStrategy;
28
31
  padded: boolean;
29
- openDelay: number;
30
32
  closeDelay: number;
33
+ openDelay: number;
31
34
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
32
35
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
33
36
  declare const _default: typeof __VLS_export;
@@ -1 +1 @@
1
- {"version":3,"file":"HoverCard.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/hover-card/HoverCard.vue"],"names":[],"mappings":"AA8DE,KAAK,WAAW,GAAG;IACf,IAAI,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAA;IAC1C,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAA;IAClC,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AAgBN,KAAK,gBAAgB,GAAG;IACxB,MAAM,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC;AAaF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AA6GxD,QAAA,IAAI,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AAC/C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAKhD,QAAA,MAAM,UAAU;;;;;UA3JH,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM;WAClC,O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,UAAU;;;;;UApMH,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM;WAClC,OAAO,GAAG,QAAQ,GAAG,KAAK;gBACrB,MAAM;4BAHM,uBAAuB;YAMvC,OAAO;gBADH,MAAM;eADP,MAAM;6EAqMtB,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -0,0 +1,29 @@
1
+ import type { OverlayAnchor, OverlayPositionStrategy } from '../../lib/overlay-anchor';
2
+ type __VLS_Props = {
3
+ anchor?: OverlayAnchor | null;
4
+ updatePositionStrategy: OverlayPositionStrategy;
5
+ external: boolean;
6
+ closeDelay: number;
7
+ positionerClass?: string;
8
+ };
9
+ declare var __VLS_1: {
10
+ reference: {
11
+ getBoundingClientRect: () => Pick<DOMRect, "x" | "y" | "width" | "height" | "top" | "right" | "bottom" | "left">;
12
+ contextElement?: Element;
13
+ } | undefined;
14
+ contentRef: (value: Element | import("vue").ComponentPublicInstance | null) => void;
15
+ present: boolean;
16
+ };
17
+ type __VLS_Slots = {} & {
18
+ default?: (props: typeof __VLS_1) => any;
19
+ };
20
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
22
+ declare const _default: typeof __VLS_export;
23
+ export default _default;
24
+ type __VLS_WithSlots<T, S> = T & {
25
+ new (): {
26
+ $slots: S;
27
+ };
28
+ };
29
+ //# sourceMappingURL=HoverCardAnchor.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HoverCardAnchor.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/hover-card/HoverCardAnchor.vue"],"names":[],"mappings":"AAqBE,OAAO,KAAK,EAAE,aAAa,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAA;AAItF,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,aAAa,GAAG,IAAI,CAAA;IAC7B,sBAAsB,EAAE,uBAAuB,CAAA;IAC/C,QAAQ,EAAE,OAAO,CAAA;IACjB,UAAU,EAAE,MAAM,CAAA;IAClB,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB,CAAC;AA6BJ,QAAA,IAAI,OAAO;;;;;;;CAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAG/C,QAAA,MAAM,UAAU,kSAEd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { type ComponentPublicInstance } from 'vue';
2
+ import { type OverlayAnchor, type OverlayPositionStrategy } from '../../../lib/overlay-anchor';
3
+ interface HoverCardAnchorOptions {
4
+ anchor?: OverlayAnchor | null;
5
+ updatePositionStrategy: OverlayPositionStrategy;
6
+ external: boolean;
7
+ closeDelay: number;
8
+ positionerClass?: string;
9
+ }
10
+ export declare function useHoverCardAnchor(props: HoverCardAnchorOptions): {
11
+ reference: import("vue").ShallowRef<{
12
+ getBoundingClientRect: () => Pick<DOMRect, "x" | "y" | "width" | "height" | "top" | "right" | "bottom" | "left">;
13
+ contextElement?: Element;
14
+ } | undefined, {
15
+ getBoundingClientRect: () => Pick<DOMRect, "x" | "y" | "width" | "height" | "top" | "right" | "bottom" | "left">;
16
+ contextElement?: Element;
17
+ } | undefined>;
18
+ contentRef: (value: Element | ComponentPublicInstance | null) => void;
19
+ present: import("vue").ComputedRef<boolean>;
20
+ };
21
+ export {};
22
+ //# sourceMappingURL=useHoverCardAnchor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useHoverCardAnchor.d.ts","sourceRoot":"","sources":["../../../../../src/components/hover-card/composables/useHoverCardAnchor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmC,KAAK,uBAAuB,EAAE,MAAM,KAAK,CAAA;AAGnF,OAAO,EAGL,KAAK,aAAa,EAClB,KAAK,uBAAuB,EAC7B,MAAM,6BAA6B,CAAA;AAKpC,UAAU,sBAAsB;IAC9B,MAAM,CAAC,EAAE,aAAa,GAAG,IAAI,CAAA;IAC7B,sBAAsB,EAAE,uBAAuB,CAAA;IAC/C,QAAQ,EAAE,OAAO,CAAA;IACjB,UAAU,EAAE,MAAM,CAAA;IAClB,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,sBAAsB;;;;;;;;wBA4HnC,OAAO,GAAG,uBAAuB,GAAG,IAAI;;EAKpE"}
@@ -1,4 +1,5 @@
1
1
  import { type StyleValue } from 'vue';
2
+ import type { LightboxItem } from '../lightbox/types';
2
3
  import { type ImageVariants } from './image.variants';
3
4
  type __VLS_Props = {
4
5
  src?: string;
@@ -11,6 +12,7 @@ type __VLS_Props = {
11
12
  skeleton?: boolean;
12
13
  eager?: boolean;
13
14
  preview?: boolean | string;
15
+ previewSize?: LightboxItem['previewSize'];
14
16
  draggable?: boolean;
15
17
  class?: string;
16
18
  style?: StyleValue;
@@ -42,9 +44,9 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
42
44
  lazy: boolean;
43
45
  fit: "fill" | "none" | "cover" | "contain" | "scale-down";
44
46
  alt: string;
47
+ eager: boolean;
45
48
  rootMargin: string;
46
49
  skeleton: boolean;
47
- eager: boolean;
48
50
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
49
51
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
50
52
  declare const _default: typeof __VLS_export;
@@ -1 +1 @@
1
- {"version":3,"file":"Image.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/image/Image.vue"],"names":[],"mappings":"AA0IE,OAAO,EAAuD,KAAK,UAAU,EAAE,MAAM,KAAK,CAAA;AAO1F,OAAO,EAAoB,KAAK,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAOvE,KAAK,WAAW,GAAG;IACf,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,GAAG,CAAC,EAAE,aAAa,CAAC,KAAK,CAAC,CAAA;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,UAAU,CAAA;IAClB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,UAAU,CAAA;CACxB,CAAC;AAmMN,QAAA,IAAuB,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AACvF,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,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roupState.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAGxD,wBAAgB,kBAAkB;;;;EA8BjC"}
1
+ {"version":3,"file":"useImageGroupState.d.ts","sourceRoot":"","sources":["../../../../../src/components/image/composables/useImageGroupState.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAGxD,wBAAgB,kBAAkB;;;;EAsCjC"}
@@ -3,7 +3,7 @@ export declare const imageRoot: import("tailwind-variants").TVReturnType<{
3
3
  preview: {
4
4
  true: "hn-focus-ring cursor-zoom-in";
5
5
  };
6
- }, undefined, "relative block w-full overflow-hidden", {
6
+ }, undefined, "relative isolate block w-full overflow-hidden", {
7
7
  preview: {
8
8
  true: "hn-focus-ring cursor-zoom-in";
9
9
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Lightbox.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/lightbox/Lightbox.vue"],"names":[],"mappings":"AAiRE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAI3C,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,YAAY,EAAE,CAAA;IACrB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AA4JJ,KAAK,gBAAgB,GAAG;IACxB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAMF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AAoTxD,QAAA,MAAM,YAAY;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"Lightbox.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/lightbox/Lightbox.vue"],"names":[],"mappings":"AAwRE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAI3C,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,YAAY,EAAE,CAAA;IACrB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AAmKJ,KAAK,gBAAgB,GAAG;IACxB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAMF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AA+TxD,QAAA,MAAM,YAAY;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -4,6 +4,8 @@ type __VLS_Props = {
4
4
  items: LightboxItem[];
5
5
  index: number;
6
6
  zoomed: boolean;
7
+ canZoomIn: boolean;
8
+ atOriginal: boolean;
7
9
  waiting: boolean;
8
10
  loop: boolean;
9
11
  presence: MotionValue<number>;
@@ -21,6 +23,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
21
23
  zoomOut: () => any;
22
24
  download: () => any;
23
25
  reset: () => any;
26
+ original: () => any;
24
27
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
25
28
  onRotate?: (() => any) | undefined;
26
29
  onSelect?: ((index: number) => any) | undefined;
@@ -30,6 +33,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
30
33
  onZoomOut?: (() => any) | undefined;
31
34
  onDownload?: (() => any) | undefined;
32
35
  onReset?: (() => any) | undefined;
36
+ onOriginal?: (() => any) | undefined;
33
37
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
34
38
  declare const _default: typeof __VLS_export;
35
39
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"LightboxChrome.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/lightbox/LightboxChrome.vue"],"names":[],"mappings":"AAqHE,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,UAAU,CAAA;AA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AY;AAAxC,wBAAyC"}
@@ -3,6 +3,8 @@ type __VLS_Props = {
3
3
  items: LightboxItem[];
4
4
  index: number;
5
5
  zoomed: boolean;
6
+ canZoomIn: boolean;
7
+ atOriginal: boolean;
6
8
  };
7
9
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
10
  rotate: () => any;
@@ -11,6 +13,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
11
13
  zoomOut: () => any;
12
14
  download: () => any;
13
15
  reset: () => any;
16
+ original: () => any;
14
17
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
15
18
  onRotate?: (() => any) | undefined;
16
19
  onSelect?: ((index: number) => any) | undefined;
@@ -18,6 +21,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
18
21
  onZoomOut?: (() => any) | undefined;
19
22
  onDownload?: (() => any) | undefined;
20
23
  onReset?: (() => any) | undefined;
24
+ onOriginal?: (() => any) | undefined;
21
25
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
26
  declare const _default: typeof __VLS_export;
23
27
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"LightboxToolbar.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/lightbox/LightboxToolbar.vue"],"names":[],"mappings":"AAgFE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAI3C,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,YAAY,EAAE,CAAA;IACrB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,OAAO,CAAA;CAChB,CAAC;AAsRJ,QAAA,MAAM,YAAY;;;;;;;;;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"LightboxToolbar.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/lightbox/LightboxToolbar.vue"],"names":[],"mappings":"AA8FE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAI3C,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,YAAY,EAAE,CAAA;IACrB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,OAAO,CAAA;IACf,SAAS,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,OAAO,CAAA;CACpB,CAAC;AAkUJ,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -3,10 +3,13 @@ import { type Rect } from '../utils/pose';
3
3
  import type { Size } from '../utils/zoom';
4
4
  export declare function useLightboxFrames(items: () => LightboxItem[]): {
5
5
  stage: import("vue").ShallowRef<Size, Size>;
6
+ area: import("vue").ShallowRef<Rect, Rect>;
6
7
  measure: (el: HTMLElement | undefined) => void;
7
- read: () => void;
8
+ read: (current?: () => LightboxItem | undefined) => Promise<void> | undefined;
8
9
  learn: (id: string, img: HTMLImageElement) => void;
10
+ learnPreview: (item: LightboxItem | undefined, img: HTMLImageElement | undefined) => void;
9
11
  naturalOf: (item: LightboxItem | undefined) => Size | undefined;
12
+ displayOf: (item: LightboxItem | undefined) => Size | undefined;
10
13
  frameOf: (item: LightboxItem | undefined) => Rect;
11
14
  };
12
15
  //# sourceMappingURL=useLightboxFrames.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useLightboxFrames.d.ts","sourceRoot":"","sources":["../../../../../src/components/lightbox/composables/useLightboxFrames.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAC5C,OAAO,EAAW,KAAK,IAAI,EAAE,MAAM,eAAe,CAAA;AAClD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAEzC,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,YAAY,EAAE;;kBAItC,WAAW,GAAG,SAAS;;gBAazB,MAAM,OAAO,gBAAgB;sBAKvB,YAAY,GAAG,SAAS,KAAG,IAAI,GAAG,SAAS;oBAI7C,YAAY,GAAG,SAAS,KAAG,IAAI;EAMvD"}
1
+ {"version":3,"file":"useLightboxFrames.d.ts","sourceRoot":"","sources":["../../../../../src/components/lightbox/composables/useLightboxFrames.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAC5C,OAAO,EAAW,KAAK,IAAI,EAAE,MAAM,eAAe,CAAA;AAClD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAczC,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,YAAY,EAAE;;;kBAOtC,WAAW,GAAG,SAAS;qBAuBpB,MAAM,YAAY,GAAG,SAAS,KAAG,OAAO,CAAC,IAAI,CAAC,GAAG,SAAS;gBAkC/D,MAAM,OAAO,gBAAgB;yBAoBpB,YAAY,GAAG,SAAS,OAAO,gBAAgB,GAAG,SAAS;sBAN9D,YAAY,GAAG,SAAS,KAAG,IAAI,GAAG,SAAS;sBAmB3C,YAAY,GAAG,SAAS,KAAG,IAAI,GAAG,SAAS;oBAQ7C,YAAY,GAAG,SAAS,KAAG,IAAI;EAWvD"}
@@ -4,5 +4,6 @@ export declare function useLightboxLarge(item: () => LightboxItem | undefined, a
4
4
  src: import("vue").ShallowRef<string | undefined, string | undefined>;
5
5
  ready: import("vue").ShallowRef<boolean, boolean>;
6
6
  waiting: import("vue").ShallowRef<boolean, boolean>;
7
+ image: import("vue").ShallowRef<HTMLImageElement | undefined, HTMLImageElement | undefined>;
7
8
  };
8
9
  //# sourceMappingURL=useLightboxLarge.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useLightboxLarge.d.ts","sourceRoot":"","sources":["../../../../../src/components/lightbox/composables/useLightboxLarge.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAE5C,eAAO,MAAM,mBAAmB,MAAM,CAAA;AAEtC,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,YAAY,GAAG,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO;;;;EAwD3F"}
1
+ {"version":3,"file":"useLightboxLarge.d.ts","sourceRoot":"","sources":["../../../../../src/components/lightbox/composables/useLightboxLarge.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAE5C,eAAO,MAAM,mBAAmB,MAAM,CAAA;AAEtC,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,YAAY,GAAG,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO;;;;;EA2D3F"}
@@ -0,0 +1,17 @@
1
+ import type { LightboxItem } from '../types';
2
+ import type { useLightboxFrames } from './useLightboxFrames';
3
+ import type { useLightboxLarge } from './useLightboxLarge';
4
+ import type { useLightboxPhase } from './useLightboxPhase';
5
+ import type { useLightboxZoom } from './useLightboxZoom';
6
+ export declare function useLightboxLayout(options: {
7
+ stage: () => HTMLElement | undefined;
8
+ current: () => LightboxItem | undefined;
9
+ frames: ReturnType<typeof useLightboxFrames>;
10
+ large: ReturnType<typeof useLightboxLarge>;
11
+ phase: ReturnType<typeof useLightboxPhase>;
12
+ zoom: ReturnType<typeof useLightboxZoom>;
13
+ measure: () => void;
14
+ }): {
15
+ learn: (id: string, img: HTMLImageElement) => void;
16
+ };
17
+ //# sourceMappingURL=useLightboxLayout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useLightboxLayout.d.ts","sourceRoot":"","sources":["../../../../../src/components/lightbox/composables/useLightboxLayout.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAC5C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAC5D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAC1D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAC1D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAExD,wBAAgB,iBAAiB,CAAC,OAAO,EAAE;IACzC,KAAK,EAAE,MAAM,WAAW,GAAG,SAAS,CAAA;IACpC,OAAO,EAAE,MAAM,YAAY,GAAG,SAAS,CAAA;IACvC,MAAM,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAA;IAC5C,KAAK,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAA;IAC1C,KAAK,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAA;IAC1C,IAAI,EAAE,UAAU,CAAC,OAAO,eAAe,CAAC,CAAA;IACxC,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;gBASoB,MAAM,OAAO,gBAAgB;EAkBjD"}
@@ -8,7 +8,7 @@ export declare function useLightboxPhase(options: {
8
8
  locked: Ref<boolean>;
9
9
  motion: ReturnType<typeof useLightboxMotion>;
10
10
  pose: () => Pose | null;
11
- prepare: () => void;
11
+ prepare: () => void | Promise<void>;
12
12
  layout: () => void;
13
13
  }): {
14
14
  current: () => LightboxPhase;
@@ -1 +1 @@
1
- {"version":3,"file":"useLightboxPhase.d.ts","sourceRoot":"","sources":["../../../../../src/components/lightbox/composables/useLightboxPhase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,GAAG,EAAE,MAAM,KAAK,CAAA;AACpD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAC5D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAEzC,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,GAAG,SAAS,CAAA;AAEtE,wBAAgB,gBAAgB,CAAC,OAAO,EAAE;IACxC,IAAI,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IAClB,OAAO,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IACrB,MAAM,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IACpB,MAAM,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAA;IAC5C,IAAI,EAAE,MAAM,IAAI,GAAG,IAAI,CAAA;IACvB,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB;;;;;;EA4CA"}
1
+ {"version":3,"file":"useLightboxPhase.d.ts","sourceRoot":"","sources":["../../../../../src/components/lightbox/composables/useLightboxPhase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwC,KAAK,GAAG,EAAE,MAAM,KAAK,CAAA;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAC5D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAEzC,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,GAAG,SAAS,CAAA;AAEtE,wBAAgB,gBAAgB,CAAC,OAAO,EAAE;IACxC,IAAI,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IAClB,OAAO,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IACrB,MAAM,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IACpB,MAAM,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAA;IAC5C,IAAI,EAAE,MAAM,IAAI,GAAG,IAAI,CAAA;IACvB,OAAO,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IACnC,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB;;;;;;EAoDA"}
@@ -1 +1 @@
1
- {"version":3,"file":"useLightboxPose.d.ts","sourceRoot":"","sources":["../../../../../src/components/lightbox/composables/useLightboxPose.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAC5D,OAAO,EAAY,KAAK,IAAI,EAAa,MAAM,eAAe,CAAA;AAE9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAE5C,wBAAgB,eAAe,CAC7B,MAAM,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,EAC5C,OAAO,EAAE,MAAM,YAAY,GAAG,SAAS;sBAmBhB,IAAI,GAAG,IAAI;EAWnC"}
1
+ {"version":3,"file":"useLightboxPose.d.ts","sourceRoot":"","sources":["../../../../../src/components/lightbox/composables/useLightboxPose.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAC5D,OAAO,EAAY,KAAK,IAAI,EAAE,MAAM,eAAe,CAAA;AAGnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAE5C,wBAAgB,eAAe,CAC7B,MAAM,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,EAC5C,OAAO,EAAE,MAAM,YAAY,GAAG,SAAS;sBAEhB,IAAI,GAAG,IAAI;EAyBnC"}
@@ -4,11 +4,15 @@ export declare function useLightboxRotation(frames: ReturnType<typeof useLightbo
4
4
  rotationOf: (item: LightboxItem | undefined) => number;
5
5
  baseOf: (item: LightboxItem | undefined) => number;
6
6
  geometry: () => {
7
+ original: number;
8
+ secondary: number;
9
+ max: number;
7
10
  fit: {
8
11
  width: number;
9
12
  height: number;
10
13
  };
11
- stage: import("../utils/zoom").Size;
14
+ frame: import("../utils/pose").Rect;
15
+ stage: import("../utils/pose").Rect;
12
16
  base: number;
13
17
  };
14
18
  clear: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"useLightboxRotation.d.ts","sourceRoot":"","sources":["../../../../../src/components/lightbox/composables/useLightboxRotation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAG5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAE5C,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,EAC5C,OAAO,EAAE,MAAM,YAAY,GAAG,SAAS;uBAIb,YAAY,GAAG,SAAS,KAAG,MAAM;mBAIrC,YAAY,GAAG,SAAS,KAAG,MAAM;;;;;;;;;;mBAmBnC,MAAM;iBAON,YAAY,GAAG,SAAS;EAK7C"}
1
+ {"version":3,"file":"useLightboxRotation.d.ts","sourceRoot":"","sources":["../../../../../src/components/lightbox/composables/useLightboxRotation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAG5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAE5C,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,EAC5C,OAAO,EAAE,MAAM,YAAY,GAAG,SAAS;uBAIb,YAAY,GAAG,SAAS,KAAG,MAAM;mBAIrC,YAAY,GAAG,SAAS,KAAG,MAAM;;;;;;;;;;;;;;mBA6BnC,MAAM;iBAON,YAAY,GAAG,SAAS;EAK7C"}
@@ -9,10 +9,19 @@ export interface PinchStart {
9
9
  }
10
10
  export declare function useLightboxZoom(motion: ReturnType<typeof useLightboxMotion>, geometry: () => {
11
11
  fit: Size;
12
+ frame: Size;
12
13
  stage: Size;
13
14
  base: number;
15
+ original: number;
16
+ secondary: number;
17
+ max: number;
14
18
  }): {
15
- zoomed: import("vue").ShallowRef<boolean, boolean>;
19
+ zoomed: import("vue").ComputedRef<boolean>;
20
+ canZoomIn: import("vue").ComputedRef<boolean>;
21
+ canToggle: import("vue").ComputedRef<boolean>;
22
+ atOriginal: import("vue").ComputedRef<boolean>;
23
+ original: () => void;
24
+ reflow: (update: () => void) => void;
16
25
  zoom: () => number;
17
26
  isZoomed: () => boolean;
18
27
  zoomTo: (level: number, focal: Point, name?: TransitionName) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"useLightboxZoom.d.ts","sourceRoot":"","sources":["../../../../../src/components/lightbox/composables/useLightboxZoom.ts"],"names":[],"mappings":"AAEA,OAAO,EAAwB,KAAK,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAC3E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAE5D,OAAO,EAcL,KAAK,KAAK,EACV,KAAK,IAAI,EACV,MAAM,eAAe,CAAA;AAEtB,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,KAAK,CAAA;IACV,MAAM,EAAE,KAAK,CAAA;CACd;AAED,wBAAgB,eAAe,CAC7B,MAAM,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,EAC5C,QAAQ,EAAE,MAAM;IAAE,GAAG,EAAE,IAAI,CAAC;IAAC,KAAK,EAAE,IAAI,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE;;;;oBAmCjC,MAAM,SAAS,KAAK,SAAQ,cAAc;sBAQxC,CAAC,GAAG,CAAC,CAAC;;mBAQT,MAAM,SAAS,KAAK,YAAY,OAAO;uBAMnC,KAAK;mBAIT,UAAU,OAAO,KAAK,SAAS,MAAM;oBAMpC,KAAK;kBAIP,KAAK,SAAS,KAAK;;EA4CzC"}
1
+ {"version":3,"file":"useLightboxZoom.d.ts","sourceRoot":"","sources":["../../../../../src/components/lightbox/composables/useLightboxZoom.ts"],"names":[],"mappings":"AAEA,OAAO,EAAwB,KAAK,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAC3E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAE5D,OAAO,EAeL,KAAK,KAAK,EACV,KAAK,IAAI,EACV,MAAM,eAAe,CAAA;AAEtB,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,KAAK,CAAA;IACV,MAAM,EAAE,KAAK,CAAA;CACd;AAED,wBAAgB,eAAe,CAC7B,MAAM,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,EAC5C,QAAQ,EAAE,MAAM;IACd,GAAG,EAAE,IAAI,CAAA;IACT,KAAK,EAAE,IAAI,CAAA;IACX,KAAK,EAAE,IAAI,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;IACjB,GAAG,EAAE,MAAM,CAAA;CACZ;;;;;;qBA2EuB,MAAM,IAAI;;;oBApCX,MAAM,SAAS,KAAK,SAAQ,cAAc;sBAQxC,CAAC,GAAG,CAAC,CAAC;;mBAQT,MAAM,SAAS,KAAK,YAAY,OAAO;uBAMnC,KAAK;mBAIT,UAAU,OAAO,KAAK,SAAS,MAAM;oBAMpC,KAAK;kBA4BP,KAAK,SAAS,KAAK;;EAiDzC"}
@@ -0,0 +1,2 @@
1
+ export declare const lightboxStage: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "dark fixed inset-0 z-(--hn-z-overlay) touch-none p-4 outline-none select-none sm:p-6", {} | {}, undefined, import("tailwind-variants").TVReturnTypeLike<unknown, undefined>>;
2
+ //# sourceMappingURL=lightbox.variants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lightbox.variants.d.ts","sourceRoot":"","sources":["../../../../src/components/lightbox/lightbox.variants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,iPAExB,CAAA"}
@@ -1,10 +1,16 @@
1
1
  import type { ImageVariants } from '../image/image.variants';
2
+ import type { Rect } from './utils/pose';
3
+ export type LightboxSource = HTMLImageElement | Rect;
2
4
  export interface LightboxItem {
3
5
  id: string;
4
6
  src: string;
5
7
  preview?: string;
8
+ previewSize?: {
9
+ width: number;
10
+ height: number;
11
+ };
6
12
  alt: string;
7
13
  fit?: ImageVariants['fit'];
8
- source?: () => HTMLImageElement | null | undefined;
14
+ source?: () => LightboxSource | null | undefined;
9
15
  }
10
16
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/lightbox/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AAE5D,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAA;IACV,GAAG,EAAE,MAAM,CAAA;IACX,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,CAAC,EAAE,aAAa,CAAC,KAAK,CAAC,CAAA;IAC1B,MAAM,CAAC,EAAE,MAAM,gBAAgB,GAAG,IAAI,GAAG,SAAS,CAAA;CACnD"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/lightbox/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AAC5D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAExC,MAAM,MAAM,cAAc,GAAG,gBAAgB,GAAG,IAAI,CAAA;AAEpD,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAA;IACV,GAAG,EAAE,MAAM,CAAA;IACX,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,WAAW,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAA;IAC/C,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,CAAC,EAAE,aAAa,CAAC,KAAK,CAAC,CAAA;IAC1B,MAAM,CAAC,EAAE,MAAM,cAAc,GAAG,IAAI,GAAG,SAAS,CAAA;CACjD"}
@@ -29,10 +29,10 @@ export declare const DISMISS_SCALE = 0.7;
29
29
  export declare const DISMISS_TRAVEL = 0.3;
30
30
  export declare const DISMISS_COMMIT = 0.5;
31
31
  export declare const DISMISS_VELOCITY = 600;
32
- export declare function fitRect(natural: Size, stage: Size, rotation?: number): Rect;
32
+ export declare function fitRect(natural: Size, stage: Size & Partial<Pick<Rect, 'x' | 'y'>>, rotation?: number): Rect;
33
33
  export declare function renderedRect(box: Rect, natural: Size, fit?: ImageVariants['fit']): Rect;
34
34
  export declare function openPose(frame: Rect, box: Rect, natural: Size, fit?: ImageVariants['fit'], radius?: number | Corners, clipBox?: Rect): Pose;
35
- export declare function baseScale(frame: Size, stage: Size, rotation: number): number;
35
+ export declare function baseScale(frame: Size, stage: Size, rotation: number, natural: Size): number;
36
36
  export declare function dismissProgress(offsetY: number, stageHeight: number): number;
37
37
  export declare function shouldDismiss(offsetY: number, velocityY: number, stageHeight: number): boolean;
38
38
  //# sourceMappingURL=pose.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pose.d.ts","sourceRoot":"","sources":["../../../../../src/components/lightbox/utils/pose.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA;AACrC,OAAO,EAAwB,KAAK,IAAI,EAAE,MAAM,QAAQ,CAAA;AAExD,MAAM,WAAW,IAAI;IACnB,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;IACT,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,IAAI;IACnB,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;IACT,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,eAAO,MAAM,SAAS,EAAE,IAMvB,CAAA;AACD,eAAO,MAAM,aAAa;;;;CAA8D,CAAA;AACxF,eAAO,MAAM,aAAa;;;;CAAsD,CAAA;AAChF,eAAO,MAAM,aAAa,MAAM,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CAG5E;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAG9F"}
@@ -0,0 +1,4 @@
1
+ import type { LightboxSource } from '../types';
2
+ import type { Rect } from './pose';
3
+ export declare function sourceRect(source: LightboxSource | null | undefined): Rect | null;
4
+ //# sourceMappingURL=source.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"source.d.ts","sourceRoot":"","sources":["../../../../../src/components/lightbox/utils/source.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAC9C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAElC,wBAAgB,UAAU,CAAC,MAAM,EAAE,cAAc,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,GAAG,IAAI,CAajF"}