@papernote/ui 1.7.3 → 1.7.4

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/dist/index.js CHANGED
@@ -5388,7 +5388,6 @@ function FormWizard({ steps, onComplete, onStepChange, showStepNumbers = true, a
5388
5388
  const [isSubmitting, setIsSubmitting] = React.useState(false);
5389
5389
  const isFirstStep = currentStep === 0;
5390
5390
  const isLastStep = currentStep === steps.length - 1;
5391
- const canGoNext = allowSkip || completedSteps.has(currentStep);
5392
5391
  // Go to specific step
5393
5392
  const goToStep = (stepIndex) => {
5394
5393
  if (stepIndex < 0 || stepIndex >= steps.length)
@@ -5460,7 +5459,7 @@ function FormWizard({ steps, onComplete, onStepChange, showStepNumbers = true, a
5460
5459
  ? 'bg-accent-500'
5461
5460
  : 'bg-paper-200'}
5462
5461
  ` }) }))] }, step.id));
5463
- }) }) }), jsxRuntime.jsx("div", { className: "mb-8", children: steps.map((step, index) => (jsxRuntime.jsx("div", { hidden: index !== currentStep, children: step.content }, step.id))) }), jsxRuntime.jsxs("div", { className: "flex items-center justify-between pt-6 border-t border-paper-200", children: [jsxRuntime.jsx("button", { type: "button", onClick: prevStep, disabled: isFirstStep, className: "px-4 py-2 text-sm font-medium text-ink-700 bg-white border border-paper-300 rounded-lg hover:bg-paper-50 disabled:opacity-40 disabled:cursor-not-allowed transition-all", children: "Previous" }), jsxRuntime.jsxs("div", { className: "text-sm text-ink-600", children: ["Step ", currentStep + 1, " of ", steps.length] }), jsxRuntime.jsx("button", { type: "button", onClick: nextStep, disabled: !allowSkip && !canGoNext && !isLastStep || isSubmitting, className: "px-4 py-2 text-sm font-medium text-white bg-accent-500 rounded-lg hover:bg-accent-600 disabled:opacity-40 disabled:cursor-not-allowed transition-all", children: isSubmitting ? 'Submitting...' : isLastStep ? 'Complete' : 'Next' })] })] }));
5462
+ }) }) }), jsxRuntime.jsx("div", { className: "mb-8", children: steps.map((step, index) => (jsxRuntime.jsx("div", { hidden: index !== currentStep, children: step.content }, step.id))) }), jsxRuntime.jsxs("div", { className: "flex items-center justify-between pt-6 border-t border-paper-200", children: [jsxRuntime.jsx("button", { type: "button", onClick: prevStep, disabled: isFirstStep, className: "px-4 py-2 text-sm font-medium text-ink-700 bg-white border border-paper-300 rounded-lg hover:bg-paper-50 disabled:opacity-40 disabled:cursor-not-allowed transition-all", children: "Previous" }), jsxRuntime.jsxs("div", { className: "text-sm text-ink-600", children: ["Step ", currentStep + 1, " of ", steps.length] }), jsxRuntime.jsx("button", { type: "button", onClick: nextStep, disabled: isSubmitting, className: "px-4 py-2 text-sm font-medium text-white bg-accent-500 rounded-lg hover:bg-accent-600 disabled:opacity-40 disabled:cursor-not-allowed transition-all", children: isSubmitting ? 'Submitting...' : isLastStep ? 'Complete' : 'Next' })] })] }));
5464
5463
  }
5465
5464
 
5466
5465
  function InfiniteScroll({ loadMore, hasMore, loading = false, children, threshold = 200, loader, scrollContainer, reverse = false, className = '', }) {
@@ -10352,52 +10351,44 @@ function getAugmentedNamespace(n) {
10352
10351
  * (A1, A1:C5, ...)
10353
10352
  */
10354
10353
 
10355
- var collection;
10356
- var hasRequiredCollection;
10357
-
10358
- function requireCollection () {
10359
- if (hasRequiredCollection) return collection;
10360
- hasRequiredCollection = 1;
10361
- class Collection {
10354
+ let Collection$3 = class Collection {
10362
10355
 
10363
- constructor(data, refs) {
10364
- if (data == null && refs == null) {
10365
- this._data = [];
10366
- this._refs = [];
10367
- } else {
10368
- if (data.length !== refs.length)
10369
- throw Error('Collection: data length should match references length.');
10370
- this._data = data;
10371
- this._refs = refs;
10372
- }
10373
- }
10356
+ constructor(data, refs) {
10357
+ if (data == null && refs == null) {
10358
+ this._data = [];
10359
+ this._refs = [];
10360
+ } else {
10361
+ if (data.length !== refs.length)
10362
+ throw Error('Collection: data length should match references length.');
10363
+ this._data = data;
10364
+ this._refs = refs;
10365
+ }
10366
+ }
10374
10367
 
10375
- get data() {
10376
- return this._data;
10377
- }
10368
+ get data() {
10369
+ return this._data;
10370
+ }
10378
10371
 
10379
- get refs() {
10380
- return this._refs;
10381
- }
10372
+ get refs() {
10373
+ return this._refs;
10374
+ }
10382
10375
 
10383
- get length() {
10384
- return this._data.length;
10385
- }
10376
+ get length() {
10377
+ return this._data.length;
10378
+ }
10386
10379
 
10387
- /**
10388
- * Add data and references to this collection.
10389
- * @param {{}} obj - data
10390
- * @param {{}} ref - reference
10391
- */
10392
- add(obj, ref) {
10393
- this._data.push(obj);
10394
- this._refs.push(ref);
10395
- }
10396
- }
10380
+ /**
10381
+ * Add data and references to this collection.
10382
+ * @param {{}} obj - data
10383
+ * @param {{}} ref - reference
10384
+ */
10385
+ add(obj, ref) {
10386
+ this._data.push(obj);
10387
+ this._refs.push(ref);
10388
+ }
10389
+ };
10397
10390
 
10398
- collection = Collection;
10399
- return collection;
10400
- }
10391
+ var collection = Collection$3;
10401
10392
 
10402
10393
  var helpers;
10403
10394
  var hasRequiredHelpers;
@@ -10406,7 +10397,7 @@ function requireHelpers () {
10406
10397
  if (hasRequiredHelpers) return helpers;
10407
10398
  hasRequiredHelpers = 1;
10408
10399
  const FormulaError = requireError();
10409
- const Collection = requireCollection();
10400
+ const Collection = collection;
10410
10401
 
10411
10402
  const Types = {
10412
10403
  NUMBER: 0,
@@ -20060,7 +20051,7 @@ var engineering = EngineeringFunctions;
20060
20051
 
20061
20052
  const FormulaError$b = requireError();
20062
20053
  const {FormulaHelpers: FormulaHelpers$8, Types: Types$6, WildCard, Address: Address$3} = requireHelpers();
20063
- const Collection$2 = requireCollection();
20054
+ const Collection$2 = collection;
20064
20055
  const H$5 = FormulaHelpers$8;
20065
20056
 
20066
20057
  const ReferenceFunctions$1 = {
@@ -31688,7 +31679,7 @@ var parsing = {
31688
31679
  const FormulaError$4 = requireError();
31689
31680
  const {Address: Address$1} = requireHelpers();
31690
31681
  const {Prefix: Prefix$1, Postfix: Postfix$1, Infix: Infix$1, Operators: Operators$1} = operators;
31691
- const Collection$1 = requireCollection();
31682
+ const Collection$1 = collection;
31692
31683
  const MAX_ROW$1 = 1048576, MAX_COLUMN$1 = 16384;
31693
31684
  const {NotAllInputParsedException} = require$$4;
31694
31685
 
@@ -32450,7 +32441,7 @@ var hooks$1 = {
32450
32441
  const FormulaError$2 = requireError();
32451
32442
  const {FormulaHelpers: FormulaHelpers$1, Types, Address} = requireHelpers();
32452
32443
  const {Prefix, Postfix, Infix, Operators} = operators;
32453
- const Collection = requireCollection();
32444
+ const Collection = collection;
32454
32445
  const MAX_ROW = 1048576, MAX_COLUMN = 16384;
32455
32446
 
32456
32447
  let Utils$1 = class Utils {