@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.
- package/components/input/FloatingInput/ReferenceImageFooter.d.ts.map +1 -1
- package/hooks/index.d.ts +1 -0
- package/hooks/index.d.ts.map +1 -1
- package/hooks/useDragToScroll.d.ts +15 -0
- package/hooks/useDragToScroll.d.ts.map +1 -0
- package/index.css +1 -1
- package/index.mjs +5267 -5243
- package/package.json +1 -1
|
@@ -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;
|
|
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
package/hooks/index.d.ts.map
CHANGED
|
@@ -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"}
|