@papernote/ui 1.8.1 → 1.8.2
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.esm.js +46 -38
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +46 -38
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/PageLayout.tsx +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -11072,44 +11072,52 @@ function getAugmentedNamespace(n) {
|
|
|
11072
11072
|
* (A1, A1:C5, ...)
|
|
11073
11073
|
*/
|
|
11074
11074
|
|
|
11075
|
-
|
|
11076
|
-
|
|
11077
|
-
|
|
11078
|
-
|
|
11079
|
-
|
|
11080
|
-
|
|
11081
|
-
|
|
11082
|
-
|
|
11083
|
-
|
|
11084
|
-
|
|
11085
|
-
|
|
11086
|
-
|
|
11087
|
-
|
|
11075
|
+
var collection;
|
|
11076
|
+
var hasRequiredCollection;
|
|
11077
|
+
|
|
11078
|
+
function requireCollection () {
|
|
11079
|
+
if (hasRequiredCollection) return collection;
|
|
11080
|
+
hasRequiredCollection = 1;
|
|
11081
|
+
class Collection {
|
|
11082
|
+
|
|
11083
|
+
constructor(data, refs) {
|
|
11084
|
+
if (data == null && refs == null) {
|
|
11085
|
+
this._data = [];
|
|
11086
|
+
this._refs = [];
|
|
11087
|
+
} else {
|
|
11088
|
+
if (data.length !== refs.length)
|
|
11089
|
+
throw Error('Collection: data length should match references length.');
|
|
11090
|
+
this._data = data;
|
|
11091
|
+
this._refs = refs;
|
|
11092
|
+
}
|
|
11093
|
+
}
|
|
11088
11094
|
|
|
11089
|
-
|
|
11090
|
-
|
|
11091
|
-
|
|
11095
|
+
get data() {
|
|
11096
|
+
return this._data;
|
|
11097
|
+
}
|
|
11092
11098
|
|
|
11093
|
-
|
|
11094
|
-
|
|
11095
|
-
|
|
11099
|
+
get refs() {
|
|
11100
|
+
return this._refs;
|
|
11101
|
+
}
|
|
11096
11102
|
|
|
11097
|
-
|
|
11098
|
-
|
|
11099
|
-
|
|
11103
|
+
get length() {
|
|
11104
|
+
return this._data.length;
|
|
11105
|
+
}
|
|
11100
11106
|
|
|
11101
|
-
|
|
11102
|
-
|
|
11103
|
-
|
|
11104
|
-
|
|
11105
|
-
|
|
11106
|
-
|
|
11107
|
-
|
|
11108
|
-
|
|
11109
|
-
|
|
11110
|
-
}
|
|
11107
|
+
/**
|
|
11108
|
+
* Add data and references to this collection.
|
|
11109
|
+
* @param {{}} obj - data
|
|
11110
|
+
* @param {{}} ref - reference
|
|
11111
|
+
*/
|
|
11112
|
+
add(obj, ref) {
|
|
11113
|
+
this._data.push(obj);
|
|
11114
|
+
this._refs.push(ref);
|
|
11115
|
+
}
|
|
11116
|
+
}
|
|
11111
11117
|
|
|
11112
|
-
|
|
11118
|
+
collection = Collection;
|
|
11119
|
+
return collection;
|
|
11120
|
+
}
|
|
11113
11121
|
|
|
11114
11122
|
var helpers;
|
|
11115
11123
|
var hasRequiredHelpers;
|
|
@@ -11118,7 +11126,7 @@ function requireHelpers () {
|
|
|
11118
11126
|
if (hasRequiredHelpers) return helpers;
|
|
11119
11127
|
hasRequiredHelpers = 1;
|
|
11120
11128
|
const FormulaError = requireError();
|
|
11121
|
-
const Collection =
|
|
11129
|
+
const Collection = requireCollection();
|
|
11122
11130
|
|
|
11123
11131
|
const Types = {
|
|
11124
11132
|
NUMBER: 0,
|
|
@@ -20772,7 +20780,7 @@ var engineering = EngineeringFunctions;
|
|
|
20772
20780
|
|
|
20773
20781
|
const FormulaError$b = requireError();
|
|
20774
20782
|
const {FormulaHelpers: FormulaHelpers$8, Types: Types$6, WildCard, Address: Address$3} = requireHelpers();
|
|
20775
|
-
const Collection$2 =
|
|
20783
|
+
const Collection$2 = requireCollection();
|
|
20776
20784
|
const H$5 = FormulaHelpers$8;
|
|
20777
20785
|
|
|
20778
20786
|
const ReferenceFunctions$1 = {
|
|
@@ -32400,7 +32408,7 @@ var parsing = {
|
|
|
32400
32408
|
const FormulaError$4 = requireError();
|
|
32401
32409
|
const {Address: Address$1} = requireHelpers();
|
|
32402
32410
|
const {Prefix: Prefix$1, Postfix: Postfix$1, Infix: Infix$1, Operators: Operators$1} = operators;
|
|
32403
|
-
const Collection$1 =
|
|
32411
|
+
const Collection$1 = requireCollection();
|
|
32404
32412
|
const MAX_ROW$1 = 1048576, MAX_COLUMN$1 = 16384;
|
|
32405
32413
|
const {NotAllInputParsedException} = require$$4;
|
|
32406
32414
|
|
|
@@ -33162,7 +33170,7 @@ var hooks$1 = {
|
|
|
33162
33170
|
const FormulaError$2 = requireError();
|
|
33163
33171
|
const {FormulaHelpers: FormulaHelpers$1, Types, Address} = requireHelpers();
|
|
33164
33172
|
const {Prefix, Postfix, Infix, Operators} = operators;
|
|
33165
|
-
const Collection =
|
|
33173
|
+
const Collection = requireCollection();
|
|
33166
33174
|
const MAX_ROW = 1048576, MAX_COLUMN = 16384;
|
|
33167
33175
|
|
|
33168
33176
|
let Utils$1 = class Utils {
|
|
@@ -56708,7 +56716,7 @@ function PageLayout({ title, description, children, className = '', headerConten
|
|
|
56708
56716
|
'7xl': 'max-w-7xl',
|
|
56709
56717
|
'full': 'max-w-full',
|
|
56710
56718
|
};
|
|
56711
|
-
return (
|
|
56719
|
+
return (jsx(Page, { padding: "none", maxWidth: maxWidth, fixed: fixed, children: jsxs("div", { className: `${paddingClasses} ${maxWidthClasses[maxWidth]} mx-auto ${className}`, children: [headerContent && jsx("div", { className: "mb-4", children: headerContent }), jsx("div", { className: "mb-8", children: jsxs(Stack, { direction: "horizontal", justify: "between", align: "start", gap: "md", children: [jsxs("div", { className: "min-w-0 flex-1", children: [jsx(Text, { as: "h1", size: "2xl", weight: "bold", className: "text-3xl mb-2", children: title }), description && (jsx(Text, { color: "muted", children: description }))] }), (actions || rightContent) && (jsxs(Stack, { direction: "horizontal", gap: "sm", className: "flex-shrink-0", children: [rightContent, actions?.map((action) => (jsx(Button, { variant: action.variant || 'secondary', icon: action.icon, onClick: action.onClick, disabled: action.disabled, loading: action.loading, className: action.hideOnMobile ? 'hidden sm:inline-flex' : '', children: action.label }, action.id)))] }))] }) }), children] }) }));
|
|
56712
56720
|
}
|
|
56713
56721
|
|
|
56714
56722
|
/**
|