@photoroom/ui 0.1.200 → 0.1.201

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.
@@ -1 +1 @@
1
- {"version":3,"file":"ReferenceImageFooter.d.ts","sourceRoot":"","sources":["../../../../src/components/input/FloatingInput/ReferenceImageFooter.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,SAAS,CAAC;AAO5D,KAAK,yBAAyB,GAAG;IAC/B,eAAe,EAAE,4BAA4B,CAAC;IAC9C,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,+BAA+B,yBAAyB,4CAgF5F,CAAC"}
1
+ {"version":3,"file":"ReferenceImageFooter.d.ts","sourceRoot":"","sources":["../../../../src/components/input/FloatingInput/ReferenceImageFooter.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,SAAS,CAAC;AAE5D,KAAK,yBAAyB,GAAG;IAC/B,eAAe,EAAE,4BAA4B,CAAC;IAC9C,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,+BAA+B,yBAAyB,4CA2C5F,CAAC"}
package/hooks/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./useCarousel";
2
2
  export * from "./useCheckGroup";
3
3
  export * from "./useControlledState";
4
+ export * from "./useDragToScroll";
4
5
  export * from "./useFocusKeyNav";
5
6
  export * from "./useFuse";
6
7
  export * from "./useImageLoadStatus";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC"}
@@ -0,0 +1,15 @@
1
+ export type UseDragToScrollOptions = {
2
+ disabled?: boolean;
3
+ };
4
+ export type UseDragToScroll = {
5
+ ref: React.RefObject<HTMLDivElement | null>;
6
+ onPointerDown: (e: React.PointerEvent<HTMLDivElement>) => void;
7
+ onClickCapture: (e: React.MouseEvent<HTMLDivElement>) => void;
8
+ };
9
+ /**
10
+ * Click-and-drag horizontal scrolling for an overflow-x container. Spread the
11
+ * returned `ref`, `onPointerDown` and `onClickCapture` onto the scroller. Pair
12
+ * with `touch-action: pan-x` so touch panning still works.
13
+ */
14
+ export declare const useDragToScroll: ({ disabled, }?: UseDragToScrollOptions) => UseDragToScroll;
15
+ //# sourceMappingURL=useDragToScroll.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDragToScroll.d.ts","sourceRoot":"","sources":["../../src/hooks/useDragToScroll.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,sBAAsB,GAAG;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAC5C,aAAa,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;IAC/D,cAAc,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;CAC/D,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAAI,gBAE7B,sBAA2B,KAAG,eAuDhC,CAAC"}