@papernote/ui 1.10.8 → 1.10.9

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.
@@ -27,7 +27,7 @@ export interface SwipeableListItemProps {
27
27
  rightActions?: SwipeListAction[];
28
28
  /** Width per action button in pixels (default: 72) */
29
29
  actionWidth?: number;
30
- /** Enable full swipe to trigger first action (default: false) */
30
+ /** Enable full swipe to trigger first action (default: true) */
31
31
  fullSwipe?: boolean;
32
32
  /** Full swipe threshold as percentage of container width (default: 0.5) */
33
33
  fullSwipeThreshold?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"SwipeableListItem.d.ts","sourceRoot":"","sources":["../../src/components/SwipeableListItem.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAExE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,uCAAuC;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,wDAAwD;IACxD,KAAK,EAAE,aAAa,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,CAAC;IAC9E,6BAA6B;IAC7B,IAAI,EAAE,UAAU,CAAC;IACjB,6BAA6B;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,mCAAmC;IACnC,OAAO,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACrC;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,wBAAwB;IACxB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,6DAA6D;IAC7D,WAAW,CAAC,EAAE,eAAe,EAAE,CAAC;IAChC,6DAA6D;IAC7D,YAAY,CAAC,EAAE,eAAe,EAAE,CAAC;IACjC,sDAAsD;IACtD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iEAAiE;IACjE,SAAS,CAAC,EAAE,OAAO,CAAC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C,6DAA6D;IAC7D,YAAY,CAAC,EAAE,eAAe,EAAE,CAAC;IACjC,sDAAsD;IACtD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gEAAgE;IAChE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,2EAA2E;IAC3E,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,iCAAiC;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,4BAA4B;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wCAAwC;IACxC,aAAa,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,KAAK,IAAI,CAAC;CAC9D;AAcD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,QAAQ,EACR,WAAgB,EAChB,YAAiB,EACjB,WAAgB,EAChB,SAAgB,EAChB,kBAAwB,EACxB,QAAgB,EAChB,SAAc,EACd,aAAa,GACd,EAAE,sBAAsB,2CAgexB;AAED,eAAe,iBAAiB,CAAC"}
package/dist/index.d.ts CHANGED
@@ -3032,7 +3032,7 @@ interface SwipeableListItemProps {
3032
3032
  rightActions?: SwipeListAction[];
3033
3033
  /** Width per action button in pixels (default: 72) */
3034
3034
  actionWidth?: number;
3035
- /** Enable full swipe to trigger first action (default: false) */
3035
+ /** Enable full swipe to trigger first action (default: true) */
3036
3036
  fullSwipe?: boolean;
3037
3037
  /** Full swipe threshold as percentage of container width (default: 0.5) */
3038
3038
  fullSwipeThreshold?: number;
package/dist/index.esm.js CHANGED
@@ -8155,7 +8155,7 @@ const getColorClasses = (color) => {
8155
8155
  * </SwipeableListItem>
8156
8156
  * ```
8157
8157
  */
8158
- function SwipeableListItem({ children, leftActions = [], rightActions = [], actionWidth = 72, fullSwipe = false, fullSwipeThreshold = 0.5, disabled = false, className = '', onSwipeChange, }) {
8158
+ function SwipeableListItem({ children, leftActions = [], rightActions = [], actionWidth = 72, fullSwipe = true, fullSwipeThreshold = 0.5, disabled = false, className = '', onSwipeChange, }) {
8159
8159
  const containerRef = useRef(null);
8160
8160
  const [isDragging, setIsDragging] = useState(false);
8161
8161
  const [offsetX, setOffsetX] = useState(0);
@@ -12301,52 +12301,44 @@ function getAugmentedNamespace(n) {
12301
12301
  * (A1, A1:C5, ...)
12302
12302
  */
12303
12303
 
12304
- var collection;
12305
- var hasRequiredCollection;
12306
-
12307
- function requireCollection () {
12308
- if (hasRequiredCollection) return collection;
12309
- hasRequiredCollection = 1;
12310
- class Collection {
12304
+ let Collection$3 = class Collection {
12311
12305
 
12312
- constructor(data, refs) {
12313
- if (data == null && refs == null) {
12314
- this._data = [];
12315
- this._refs = [];
12316
- } else {
12317
- if (data.length !== refs.length)
12318
- throw Error('Collection: data length should match references length.');
12319
- this._data = data;
12320
- this._refs = refs;
12321
- }
12322
- }
12306
+ constructor(data, refs) {
12307
+ if (data == null && refs == null) {
12308
+ this._data = [];
12309
+ this._refs = [];
12310
+ } else {
12311
+ if (data.length !== refs.length)
12312
+ throw Error('Collection: data length should match references length.');
12313
+ this._data = data;
12314
+ this._refs = refs;
12315
+ }
12316
+ }
12323
12317
 
12324
- get data() {
12325
- return this._data;
12326
- }
12318
+ get data() {
12319
+ return this._data;
12320
+ }
12327
12321
 
12328
- get refs() {
12329
- return this._refs;
12330
- }
12322
+ get refs() {
12323
+ return this._refs;
12324
+ }
12331
12325
 
12332
- get length() {
12333
- return this._data.length;
12334
- }
12326
+ get length() {
12327
+ return this._data.length;
12328
+ }
12335
12329
 
12336
- /**
12337
- * Add data and references to this collection.
12338
- * @param {{}} obj - data
12339
- * @param {{}} ref - reference
12340
- */
12341
- add(obj, ref) {
12342
- this._data.push(obj);
12343
- this._refs.push(ref);
12344
- }
12345
- }
12330
+ /**
12331
+ * Add data and references to this collection.
12332
+ * @param {{}} obj - data
12333
+ * @param {{}} ref - reference
12334
+ */
12335
+ add(obj, ref) {
12336
+ this._data.push(obj);
12337
+ this._refs.push(ref);
12338
+ }
12339
+ };
12346
12340
 
12347
- collection = Collection;
12348
- return collection;
12349
- }
12341
+ var collection = Collection$3;
12350
12342
 
12351
12343
  var helpers;
12352
12344
  var hasRequiredHelpers;
@@ -12355,7 +12347,7 @@ function requireHelpers () {
12355
12347
  if (hasRequiredHelpers) return helpers;
12356
12348
  hasRequiredHelpers = 1;
12357
12349
  const FormulaError = requireError();
12358
- const Collection = requireCollection();
12350
+ const Collection = collection;
12359
12351
 
12360
12352
  const Types = {
12361
12353
  NUMBER: 0,
@@ -22009,7 +22001,7 @@ var engineering = EngineeringFunctions;
22009
22001
 
22010
22002
  const FormulaError$b = requireError();
22011
22003
  const {FormulaHelpers: FormulaHelpers$8, Types: Types$6, WildCard, Address: Address$3} = requireHelpers();
22012
- const Collection$2 = requireCollection();
22004
+ const Collection$2 = collection;
22013
22005
  const H$5 = FormulaHelpers$8;
22014
22006
 
22015
22007
  const ReferenceFunctions$1 = {
@@ -33637,7 +33629,7 @@ var parsing = {
33637
33629
  const FormulaError$4 = requireError();
33638
33630
  const {Address: Address$1} = requireHelpers();
33639
33631
  const {Prefix: Prefix$1, Postfix: Postfix$1, Infix: Infix$1, Operators: Operators$1} = operators;
33640
- const Collection$1 = requireCollection();
33632
+ const Collection$1 = collection;
33641
33633
  const MAX_ROW$1 = 1048576, MAX_COLUMN$1 = 16384;
33642
33634
  const {NotAllInputParsedException} = require$$4;
33643
33635
 
@@ -34399,7 +34391,7 @@ var hooks$1 = {
34399
34391
  const FormulaError$2 = requireError();
34400
34392
  const {FormulaHelpers: FormulaHelpers$1, Types, Address} = requireHelpers();
34401
34393
  const {Prefix, Postfix, Infix, Operators} = operators;
34402
- const Collection = requireCollection();
34394
+ const Collection = collection;
34403
34395
  const MAX_ROW = 1048576, MAX_COLUMN = 16384;
34404
34396
 
34405
34397
  let Utils$1 = class Utils {