@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.js
CHANGED
|
@@ -11092,44 +11092,52 @@ function getAugmentedNamespace(n) {
|
|
|
11092
11092
|
* (A1, A1:C5, ...)
|
|
11093
11093
|
*/
|
|
11094
11094
|
|
|
11095
|
-
|
|
11096
|
-
|
|
11097
|
-
|
|
11098
|
-
|
|
11099
|
-
|
|
11100
|
-
|
|
11101
|
-
|
|
11102
|
-
|
|
11103
|
-
|
|
11104
|
-
|
|
11105
|
-
|
|
11106
|
-
|
|
11107
|
-
|
|
11095
|
+
var collection;
|
|
11096
|
+
var hasRequiredCollection;
|
|
11097
|
+
|
|
11098
|
+
function requireCollection () {
|
|
11099
|
+
if (hasRequiredCollection) return collection;
|
|
11100
|
+
hasRequiredCollection = 1;
|
|
11101
|
+
class Collection {
|
|
11102
|
+
|
|
11103
|
+
constructor(data, refs) {
|
|
11104
|
+
if (data == null && refs == null) {
|
|
11105
|
+
this._data = [];
|
|
11106
|
+
this._refs = [];
|
|
11107
|
+
} else {
|
|
11108
|
+
if (data.length !== refs.length)
|
|
11109
|
+
throw Error('Collection: data length should match references length.');
|
|
11110
|
+
this._data = data;
|
|
11111
|
+
this._refs = refs;
|
|
11112
|
+
}
|
|
11113
|
+
}
|
|
11108
11114
|
|
|
11109
|
-
|
|
11110
|
-
|
|
11111
|
-
|
|
11115
|
+
get data() {
|
|
11116
|
+
return this._data;
|
|
11117
|
+
}
|
|
11112
11118
|
|
|
11113
|
-
|
|
11114
|
-
|
|
11115
|
-
|
|
11119
|
+
get refs() {
|
|
11120
|
+
return this._refs;
|
|
11121
|
+
}
|
|
11116
11122
|
|
|
11117
|
-
|
|
11118
|
-
|
|
11119
|
-
|
|
11123
|
+
get length() {
|
|
11124
|
+
return this._data.length;
|
|
11125
|
+
}
|
|
11120
11126
|
|
|
11121
|
-
|
|
11122
|
-
|
|
11123
|
-
|
|
11124
|
-
|
|
11125
|
-
|
|
11126
|
-
|
|
11127
|
-
|
|
11128
|
-
|
|
11129
|
-
|
|
11130
|
-
}
|
|
11127
|
+
/**
|
|
11128
|
+
* Add data and references to this collection.
|
|
11129
|
+
* @param {{}} obj - data
|
|
11130
|
+
* @param {{}} ref - reference
|
|
11131
|
+
*/
|
|
11132
|
+
add(obj, ref) {
|
|
11133
|
+
this._data.push(obj);
|
|
11134
|
+
this._refs.push(ref);
|
|
11135
|
+
}
|
|
11136
|
+
}
|
|
11131
11137
|
|
|
11132
|
-
|
|
11138
|
+
collection = Collection;
|
|
11139
|
+
return collection;
|
|
11140
|
+
}
|
|
11133
11141
|
|
|
11134
11142
|
var helpers;
|
|
11135
11143
|
var hasRequiredHelpers;
|
|
@@ -11138,7 +11146,7 @@ function requireHelpers () {
|
|
|
11138
11146
|
if (hasRequiredHelpers) return helpers;
|
|
11139
11147
|
hasRequiredHelpers = 1;
|
|
11140
11148
|
const FormulaError = requireError();
|
|
11141
|
-
const Collection =
|
|
11149
|
+
const Collection = requireCollection();
|
|
11142
11150
|
|
|
11143
11151
|
const Types = {
|
|
11144
11152
|
NUMBER: 0,
|
|
@@ -20792,7 +20800,7 @@ var engineering = EngineeringFunctions;
|
|
|
20792
20800
|
|
|
20793
20801
|
const FormulaError$b = requireError();
|
|
20794
20802
|
const {FormulaHelpers: FormulaHelpers$8, Types: Types$6, WildCard, Address: Address$3} = requireHelpers();
|
|
20795
|
-
const Collection$2 =
|
|
20803
|
+
const Collection$2 = requireCollection();
|
|
20796
20804
|
const H$5 = FormulaHelpers$8;
|
|
20797
20805
|
|
|
20798
20806
|
const ReferenceFunctions$1 = {
|
|
@@ -32420,7 +32428,7 @@ var parsing = {
|
|
|
32420
32428
|
const FormulaError$4 = requireError();
|
|
32421
32429
|
const {Address: Address$1} = requireHelpers();
|
|
32422
32430
|
const {Prefix: Prefix$1, Postfix: Postfix$1, Infix: Infix$1, Operators: Operators$1} = operators;
|
|
32423
|
-
const Collection$1 =
|
|
32431
|
+
const Collection$1 = requireCollection();
|
|
32424
32432
|
const MAX_ROW$1 = 1048576, MAX_COLUMN$1 = 16384;
|
|
32425
32433
|
const {NotAllInputParsedException} = require$$4;
|
|
32426
32434
|
|
|
@@ -33182,7 +33190,7 @@ var hooks$1 = {
|
|
|
33182
33190
|
const FormulaError$2 = requireError();
|
|
33183
33191
|
const {FormulaHelpers: FormulaHelpers$1, Types, Address} = requireHelpers();
|
|
33184
33192
|
const {Prefix, Postfix, Infix, Operators} = operators;
|
|
33185
|
-
const Collection =
|
|
33193
|
+
const Collection = requireCollection();
|
|
33186
33194
|
const MAX_ROW = 1048576, MAX_COLUMN = 16384;
|
|
33187
33195
|
|
|
33188
33196
|
let Utils$1 = class Utils {
|
|
@@ -56728,7 +56736,7 @@ function PageLayout({ title, description, children, className = '', headerConten
|
|
|
56728
56736
|
'7xl': 'max-w-7xl',
|
|
56729
56737
|
'full': 'max-w-full',
|
|
56730
56738
|
};
|
|
56731
|
-
return (jsxRuntime.
|
|
56739
|
+
return (jsxRuntime.jsx(Page, { padding: "none", maxWidth: maxWidth, fixed: fixed, children: jsxRuntime.jsxs("div", { className: `${paddingClasses} ${maxWidthClasses[maxWidth]} mx-auto ${className}`, children: [headerContent && jsxRuntime.jsx("div", { className: "mb-4", children: headerContent }), jsxRuntime.jsx("div", { className: "mb-8", children: jsxRuntime.jsxs(Stack, { direction: "horizontal", justify: "between", align: "start", gap: "md", children: [jsxRuntime.jsxs("div", { className: "min-w-0 flex-1", children: [jsxRuntime.jsx(Text, { as: "h1", size: "2xl", weight: "bold", className: "text-3xl mb-2", children: title }), description && (jsxRuntime.jsx(Text, { color: "muted", children: description }))] }), (actions || rightContent) && (jsxRuntime.jsxs(Stack, { direction: "horizontal", gap: "sm", className: "flex-shrink-0", children: [rightContent, actions?.map((action) => (jsxRuntime.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] }) }));
|
|
56732
56740
|
}
|
|
56733
56741
|
|
|
56734
56742
|
/**
|