@superblocksteam/library 2.0.0-next.104 → 2.0.0-next.106
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/{allPaths-CFupmz0n.js → allPaths-BuzU0kMz.js} +2 -2
- package/dist/{allPaths-CFupmz0n.js.map → allPaths-BuzU0kMz.js.map} +1 -1
- package/dist/{allPaths-DXhCHwqA.js → allPaths-guYcin1A.js} +2 -2
- package/dist/{allPaths-DXhCHwqA.js.map → allPaths-guYcin1A.js.map} +1 -1
- package/dist/{allPathsLoader-BNlRJuEf.js → allPathsLoader-C1K3ZeiQ.js} +3 -3
- package/dist/{allPathsLoader-DSzl66vm.js.map → allPathsLoader-C1K3ZeiQ.js.map} +1 -1
- package/dist/{allPathsLoader-DSzl66vm.js → allPathsLoader-C6jGHolR.js} +3 -3
- package/dist/{allPathsLoader-BNlRJuEf.js.map → allPathsLoader-C6jGHolR.js.map} +1 -1
- package/dist/{index--WgLdVs1.js → index-ctuNjk-c.js} +256 -122
- package/dist/{index--WgLdVs1.js.map → index-ctuNjk-c.js.map} +1 -1
- package/dist/index.css +2 -1
- package/dist/index.js +2 -2
- package/dist/{splitPathsBySizeLoader-D_NFLN6H.js → splitPathsBySizeLoader-C5GPcg6J.js} +2 -2
- package/dist/{splitPathsBySizeLoader-D_NFLN6H.js.map → splitPathsBySizeLoader-C5GPcg6J.js.map} +1 -1
- package/dist/{splitPathsBySizeLoader-BEDIEt1Q.js → splitPathsBySizeLoader-DCKSQVMB.js} +2 -2
- package/dist/{splitPathsBySizeLoader-BEDIEt1Q.js.map → splitPathsBySizeLoader-DCKSQVMB.js.map} +1 -1
- package/dist-types/lib/internal-details/component-suspense-style-context.d.ts +10 -0
- package/dist-types/lib/internal-details/css-constants.d.ts +4 -0
- package/dist-types/lib/internal-details/lib/suspense/suspense-fallback.d.ts +10 -0
- package/dist-types/lib/internal-details/reactive-component.d.ts +4 -3
- package/dist-types/lib/internal-details/remove-bindings.d.ts +1 -0
- package/dist-types/lib/user-facing/components/button/index.d.ts +1 -1
- package/dist-types/lib/user-facing/components/button/props.d.ts +1 -1
- package/dist-types/lib/user-facing/components/checkbox/index.d.ts +1 -1
- package/dist-types/lib/user-facing/components/checkbox/props.d.ts +1 -1
- package/dist-types/lib/user-facing/components/column/index.d.ts +1 -0
- package/dist-types/lib/user-facing/components/column/props.d.ts +1 -0
- package/dist-types/lib/user-facing/components/container/index.d.ts +2 -1
- package/dist-types/lib/user-facing/components/container/props.d.ts +1 -0
- package/dist-types/lib/user-facing/components/date-picker/index.d.ts +1 -0
- package/dist-types/lib/user-facing/components/date-picker/props.d.ts +1 -0
- package/dist-types/lib/user-facing/components/dropdown/index.d.ts +1 -1
- package/dist-types/lib/user-facing/components/dropdown/props.d.ts +1 -1
- package/dist-types/lib/user-facing/components/icon/index.d.ts +1 -1
- package/dist-types/lib/user-facing/components/icon/props.d.ts +1 -1
- package/dist-types/lib/user-facing/components/image/index.d.ts +1 -1
- package/dist-types/lib/user-facing/components/image/props.d.ts +1 -1
- package/dist-types/lib/user-facing/components/input/index.d.ts +1 -1
- package/dist-types/lib/user-facing/components/input/props.d.ts +1 -1
- package/dist-types/lib/user-facing/components/key-value/props.d.ts +1 -0
- package/dist-types/lib/user-facing/components/modal/index.d.ts +1 -0
- package/dist-types/lib/user-facing/components/modal/props.d.ts +1 -0
- package/dist-types/lib/user-facing/components/page/index.d.ts +3 -0
- package/dist-types/lib/user-facing/components/page/props.d.ts +3 -0
- package/dist-types/lib/user-facing/components/section/index.d.ts +1 -0
- package/dist-types/lib/user-facing/components/section/props.d.ts +1 -0
- package/dist-types/lib/user-facing/components/slideout/props.d.ts +5 -1
- package/dist-types/lib/user-facing/components/stack/index.d.ts +3 -1
- package/dist-types/lib/user-facing/components/table/index.d.ts +1 -1
- package/dist-types/lib/user-facing/components/table/props.d.ts +1 -1
- package/dist-types/lib/user-facing/components/text/index.d.ts +1 -1
- package/dist-types/lib/user-facing/components/text/props.d.ts +1 -1
- package/dist-types/lib/user-facing/properties-panel/mixins/loading.d.ts +2 -0
- package/package.json +2 -2
package/dist/index.css
CHANGED
|
@@ -33970,9 +33970,10 @@ b {
|
|
|
33970
33970
|
}
|
|
33971
33971
|
|
|
33972
33972
|
/*# sourceMappingURL=style.css.map *//* A class that sets the child anchor-name to a variable that is set in react */
|
|
33973
|
+
/* First level is the suspense provider, second level is the component */
|
|
33973
33974
|
.sb-anchor-name {
|
|
33974
33975
|
display: contents;
|
|
33975
|
-
> * {
|
|
33976
|
+
> * > * {
|
|
33976
33977
|
anchor-name: var(--anchor-name);
|
|
33977
33978
|
}
|
|
33978
33979
|
}
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { V as clientExports } from "./index
|
|
2
|
-
import { W, X, Q, K, L, Y, J, Z, $, a0, a1, a2, a3, w, a4, a5, a6, a7, a8, U, a9, P, aa, ab, ac, ad, R, v, S, m, d, e, l, n, k, M, x, q, s, f, i, g, w as w2, c, o, j, h, u, t, A, ae, af, ag, ah, ai, T, aj, ak, al, am, an, ao, ap, aq, ar, as, at, au, av, aw, ax, ay, az, aA, aB, aC, aD, aE, aF, aG, aH, y, aI, aJ, aK, aL, aM, aN, aO, aP, aQ, aR, aS, H, aT, aU, aV, aW, aX, aY, C, aZ, a_, a$, b0, b1, E, b2, b3, z, b4, b5, b6, r, G, F, b7, b8, b9, O, B, D, ba, bb, bc, bd, be, bf, bg, bh, bi, bj, bk, bl, bm, bn, bo, bp, bq, br, bs, bt, bu, bv, bw, bx, by, bz, bA, bB, bC, bD, bE, bF, bG, N, bH } from "./index
|
|
1
|
+
import { V as clientExports } from "./index-ctuNjk-c.js";
|
|
2
|
+
import { W, X, Q, K, L, Y, J, Z, $, a0, a1, a2, a3, w, a4, a5, a6, a7, a8, U, a9, P, aa, ab, ac, ad, R, v, S, m, d, e, l, n, k, M, x, q, s, f, i, g, w as w2, c, o, j, h, u, t, A, ae, af, ag, ah, ai, T, aj, ak, al, am, an, ao, ap, aq, ar, as, at, au, av, aw, ax, ay, az, aA, aB, aC, aD, aE, aF, aG, aH, y, aI, aJ, aK, aL, aM, aN, aO, aP, aQ, aR, aS, H, aT, aU, aV, aW, aX, aY, C, aZ, a_, a$, b0, b1, E, b2, b3, z, b4, b5, b6, r, G, F, b7, b8, b9, O, B, D, ba, bb, bc, bd, be, bf, bg, bh, bi, bj, bk, bl, bm, bn, bo, bp, bq, br, bs, bt, bu, bv, bw, bx, by, bz, bA, bB, bC, bD, bE, bF, bG, N, bH } from "./index-ctuNjk-c.js";
|
|
3
3
|
const createRoot = clientExports.createRoot;
|
|
4
4
|
export {
|
|
5
5
|
W as Await,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __awaiter, a as __generator, p as pascalCase, I as IconSize } from "./index
|
|
1
|
+
import { _ as __awaiter, a as __generator, p as pascalCase, I as IconSize } from "./index-ctuNjk-c.js";
|
|
2
2
|
var splitPathsBySizeLoader = function(name, size) {
|
|
3
3
|
return __awaiter(void 0, void 0, void 0, function() {
|
|
4
4
|
var key, pathsRecord;
|
|
@@ -31,4 +31,4 @@ var splitPathsBySizeLoader = function(name, size) {
|
|
|
31
31
|
export {
|
|
32
32
|
splitPathsBySizeLoader
|
|
33
33
|
};
|
|
34
|
-
//# sourceMappingURL=splitPathsBySizeLoader-
|
|
34
|
+
//# sourceMappingURL=splitPathsBySizeLoader-C5GPcg6J.js.map
|
package/dist/{splitPathsBySizeLoader-D_NFLN6H.js.map → splitPathsBySizeLoader-C5GPcg6J.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"splitPathsBySizeLoader-
|
|
1
|
+
{"version":3,"file":"splitPathsBySizeLoader-C5GPcg6J.js","sources":["../../../node_modules/.pnpm/@blueprintjs+icons@5.18.1_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@blueprintjs/icons/lib/esm/paths-loaders/splitPathsBySizeLoader.js"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { __awaiter, __generator } from \"tslib\";\nimport { pascalCase } from \"change-case\";\nimport { IconSize } from \"../iconTypes\";\n/**\n * A dynamic loader for icon paths that generates separate chunks for the two size variants.\n */\nexport var splitPathsBySizeLoader = function (name, size) { return __awaiter(void 0, void 0, void 0, function () {\n var key, pathsRecord;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n key = pascalCase(name);\n if (!(size === IconSize.STANDARD)) return [3 /*break*/, 2];\n return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-16px-paths\" */\n \"../generated/16px/paths\")];\n case 1:\n pathsRecord = _a.sent();\n return [3 /*break*/, 4];\n case 2: return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-20px-paths\" */\n \"../generated/20px/paths\")];\n case 3:\n pathsRecord = _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/, pathsRecord[key]];\n }\n });\n}); };\n//# sourceMappingURL=splitPathsBySizeLoader.js.map"],"names":[],"mappings":";AAqBU,IAAC,yBAAyB,SAAU,MAAM,MAAM;AAAE,SAAO,UAAU,QAAQ,QAAQ,QAAQ,WAAY;AAC7G,QAAI,KAAK;AACT,WAAO,YAAY,MAAM,SAAU,IAAI;AACnC,cAAQ,GAAG,OAAK;AAAA,QACZ,KAAK;AACD,gBAAM,WAAW,IAAI;AACrB,cAAI,EAAE,SAAS,SAAS,UAAW,QAAO,CAAC,GAAa,CAAC;AACzD,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEjB;AAAA,UAAyB,kBAAC;AAAA,QAClC,KAAK;AACD,wBAAc,GAAG,KAAM;AACvB,iBAAO,CAAC,GAAa,CAAC;AAAA,QAC1B,KAAK;AAAG,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEzB;AAAA,UAAyB,kBAAC;AAAA,QAC9B,KAAK;AACD,wBAAc,GAAG,KAAM;AACvB,aAAG,QAAQ;AAAA,QACf,KAAK;AAAG,iBAAO,CAAC,GAAc,YAAY,GAAG,CAAC;AAAA,MAC1D;AAAA,IACA,CAAK;AAAA,EACL,CAAC;AAAE;","x_google_ignoreList":[0]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __awaiter, a as __generator, p as pascalCase, b as IconSize } from "./index
|
|
1
|
+
import { _ as __awaiter, a as __generator, p as pascalCase, b as IconSize } from "./index-ctuNjk-c.js";
|
|
2
2
|
var splitPathsBySizeLoader = function(name, size) {
|
|
3
3
|
return __awaiter(void 0, void 0, void 0, function() {
|
|
4
4
|
var key, pathsRecord;
|
|
@@ -31,4 +31,4 @@ var splitPathsBySizeLoader = function(name, size) {
|
|
|
31
31
|
export {
|
|
32
32
|
splitPathsBySizeLoader
|
|
33
33
|
};
|
|
34
|
-
//# sourceMappingURL=splitPathsBySizeLoader-
|
|
34
|
+
//# sourceMappingURL=splitPathsBySizeLoader-DCKSQVMB.js.map
|
package/dist/{splitPathsBySizeLoader-BEDIEt1Q.js.map → splitPathsBySizeLoader-DCKSQVMB.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"splitPathsBySizeLoader-
|
|
1
|
+
{"version":3,"file":"splitPathsBySizeLoader-DCKSQVMB.js","sources":["../../../node_modules/.pnpm/@blueprintjs+icons@5.20.0_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@blueprintjs/icons/lib/esm/paths-loaders/splitPathsBySizeLoader.js"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { __awaiter, __generator } from \"tslib\";\nimport { pascalCase } from \"change-case\";\nimport { IconSize } from \"../iconTypes\";\n/**\n * A dynamic loader for icon paths that generates separate chunks for the two size variants.\n */\nexport var splitPathsBySizeLoader = function (name, size) { return __awaiter(void 0, void 0, void 0, function () {\n var key, pathsRecord;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n key = pascalCase(name);\n if (!(size === IconSize.STANDARD)) return [3 /*break*/, 2];\n return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-16px-paths\" */\n \"../generated/16px/paths\")];\n case 1:\n pathsRecord = _a.sent();\n return [3 /*break*/, 4];\n case 2: return [4 /*yield*/, import(\n /* webpackChunkName: \"blueprint-icons-20px-paths\" */\n \"../generated/20px/paths\")];\n case 3:\n pathsRecord = _a.sent();\n _a.label = 4;\n case 4: return [2 /*return*/, pathsRecord[key]];\n }\n });\n}); };\n//# sourceMappingURL=splitPathsBySizeLoader.js.map"],"names":[],"mappings":";AAqBU,IAAC,yBAAyB,SAAU,MAAM,MAAM;AAAE,SAAO,UAAU,QAAQ,QAAQ,QAAQ,WAAY;AAC7G,QAAI,KAAK;AACT,WAAO,YAAY,MAAM,SAAU,IAAI;AACnC,cAAQ,GAAG,OAAK;AAAA,QACZ,KAAK;AACD,gBAAM,WAAW,IAAI;AACrB,cAAI,EAAE,SAAS,SAAS,UAAW,QAAO,CAAC,GAAa,CAAC;AACzD,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEjB;AAAA,UAAyB,kBAAC;AAAA,QAClC,KAAK;AACD,wBAAc,GAAG,KAAM;AACvB,iBAAO,CAAC,GAAa,CAAC;AAAA,QAC1B,KAAK;AAAG,iBAAO,CAAC,GAAa;AAAA;AAAA,YAEzB;AAAA,UAAyB,kBAAC;AAAA,QAC9B,KAAK;AACD,wBAAc,GAAG,KAAM;AACvB,aAAG,QAAQ;AAAA,QACf,KAAK;AAAG,iBAAO,CAAC,GAAc,YAAY,GAAG,CAAC;AAAA,MAC1D;AAAA,IACA,CAAK;AAAA,EACL,CAAC;AAAE;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type ReactNode, type CSSProperties } from "react";
|
|
2
|
+
interface ComponentStyleContextValue {
|
|
3
|
+
setStyle: (style: CSSProperties) => void;
|
|
4
|
+
getFallbackStyle: () => CSSProperties;
|
|
5
|
+
}
|
|
6
|
+
export declare function ComponentSuspenseStyleProvider({ children, }: {
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
}): import("react").JSX.Element;
|
|
9
|
+
export declare function useComponentSuspenseStyle(): ComponentStyleContextValue;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CSSProperties, ReactNode } from "react";
|
|
2
|
+
interface Props {
|
|
3
|
+
children?: ReactNode;
|
|
4
|
+
style?: () => CSSProperties;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Default fallback component displayed while components are suspended.
|
|
8
|
+
*/
|
|
9
|
+
export declare function SuspenseFallback({ style }: Props): import("react").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { IdentifierInfo } from "./lib/features/name-manager.js";
|
|
2
2
|
import type { ChildFunction } from "../../edit-mode/features/runtime-widgets-manager.js";
|
|
3
|
-
|
|
3
|
+
type ReactiveComponentProps = {
|
|
4
4
|
children: React.ReactNode | ChildFunction;
|
|
5
5
|
Component: React.FC<any>;
|
|
6
6
|
widgetProps: Record<string, unknown>;
|
|
7
7
|
showErrors?: boolean;
|
|
8
8
|
identifier: IdentifierInfo;
|
|
9
|
-
}
|
|
10
|
-
|
|
9
|
+
};
|
|
10
|
+
declare const WrappedReactiveComponent: (props: ReactiveComponentProps) => import("react").JSX.Element;
|
|
11
|
+
export default WrappedReactiveComponent;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function removeBindings(props: Record<string, unknown>): Record<string, unknown>;
|
|
@@ -25,7 +25,7 @@ export declare const SbButton: import("react").FC<import("../../properties-panel
|
|
|
25
25
|
border: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerSideBorder, true>;
|
|
26
26
|
borderRadius: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true>;
|
|
27
27
|
horizontalAlign: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/props").HorizontalAlign, true>;
|
|
28
|
-
|
|
28
|
+
loading: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
29
29
|
}>;
|
|
30
30
|
interaction: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
31
31
|
isDisabled: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
@@ -30,7 +30,7 @@ export declare const propertiesDefinition: {
|
|
|
30
30
|
border: Prop<import("@superblocksteam/library-shared/types").PerSideBorder, true>;
|
|
31
31
|
borderRadius: Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true>;
|
|
32
32
|
horizontalAlign: Prop<HorizontalAlign, true>;
|
|
33
|
-
|
|
33
|
+
loading: Prop<boolean, true>;
|
|
34
34
|
}>;
|
|
35
35
|
interaction: Section<Record<string, Prop<any, any>> & {
|
|
36
36
|
isDisabled: Prop<boolean, true>;
|
|
@@ -5,7 +5,7 @@ export declare const SbCheckbox: import("react").FC<import("../../properties-pan
|
|
|
5
5
|
}>;
|
|
6
6
|
appearance: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
7
7
|
labelStyle: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
8
|
-
|
|
8
|
+
loading: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
9
9
|
}>;
|
|
10
10
|
layout: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
11
11
|
maxHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
@@ -6,7 +6,7 @@ export declare const propertiesDefinition: {
|
|
|
6
6
|
}>;
|
|
7
7
|
appearance: Section<Record<string, Prop<any, any>> & {
|
|
8
8
|
labelStyle: Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
9
|
-
|
|
9
|
+
loading: Prop<boolean, true>;
|
|
10
10
|
}>;
|
|
11
11
|
layout: Section<Record<string, Prop<any, any>> & {
|
|
12
12
|
maxHeight?: Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
@@ -33,5 +33,6 @@ export declare const SbColumn: import("react").FC<import("../../properties-panel
|
|
|
33
33
|
appearance: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
34
34
|
backgroundColor: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
35
35
|
border: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerSideBorder, false>;
|
|
36
|
+
loading: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
36
37
|
}>;
|
|
37
38
|
}>>;
|
|
@@ -27,5 +27,6 @@ export declare const propertiesDefinition: {
|
|
|
27
27
|
appearance: Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
28
28
|
backgroundColor: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
29
29
|
border: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerSideBorder, false>;
|
|
30
|
+
loading: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
30
31
|
}>;
|
|
31
32
|
};
|
|
@@ -2,7 +2,7 @@ import { Dim } from "@superblocksteam/library-shared";
|
|
|
2
2
|
import { propertiesDefinition } from "./props.js";
|
|
3
3
|
import type { ContainerLayout } from "../../component-base/constants.js";
|
|
4
4
|
import type { InternalPropsWithOptional } from "../../properties-panel/props-builder.js";
|
|
5
|
-
type OptionalProps = "backgroundColor" | "border" | "borderRadius";
|
|
5
|
+
type OptionalProps = "backgroundColor" | "border" | "borderRadius" | "loading";
|
|
6
6
|
type ContainerProps<T> = Omit<InternalPropsWithOptional<typeof propertiesDefinition, OptionalProps>, "layout"> & {
|
|
7
7
|
layout: T;
|
|
8
8
|
};
|
|
@@ -45,6 +45,7 @@ export declare const SbContainer: import("react").FC<import("../../properties-pa
|
|
|
45
45
|
backgroundColor: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
46
46
|
border: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerSideBorder, true>;
|
|
47
47
|
borderRadius: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true>;
|
|
48
|
+
loading: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
48
49
|
}>;
|
|
49
50
|
}>>;
|
|
50
51
|
export {};
|
|
@@ -38,5 +38,6 @@ export declare const propertiesDefinition: {
|
|
|
38
38
|
backgroundColor: Prop<string, true>;
|
|
39
39
|
border: Prop<import("@superblocksteam/library-shared/types").PerSideBorder, true>;
|
|
40
40
|
borderRadius: Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true>;
|
|
41
|
+
loading: Prop<boolean, true>;
|
|
41
42
|
}>;
|
|
42
43
|
};
|
|
@@ -38,6 +38,7 @@ export declare const SbDatePicker: React.FC<import("../../properties-panel/props
|
|
|
38
38
|
icon: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
39
39
|
placeholder: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
40
40
|
textStyle: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
41
|
+
loading: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
41
42
|
}>;
|
|
42
43
|
interaction: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
43
44
|
customValidationRule: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
@@ -40,6 +40,7 @@ export declare const propertiesDefinition: {
|
|
|
40
40
|
icon: Prop<string, true>;
|
|
41
41
|
placeholder: Prop<string, true>;
|
|
42
42
|
textStyle: Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
43
|
+
loading: Prop<boolean, true>;
|
|
43
44
|
}>;
|
|
44
45
|
interaction: Section<Record<string, Prop<any, any>> & {
|
|
45
46
|
customValidationRule: Prop<string, true>;
|
|
@@ -17,7 +17,7 @@ export declare const SbDropdown: React.FC<import("../../properties-panel/props-b
|
|
|
17
17
|
icon: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
18
18
|
placeholder: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
19
19
|
textStyle: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
20
|
-
|
|
20
|
+
loading: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
21
21
|
}>;
|
|
22
22
|
layout: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
23
23
|
padding: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").Spacing, true>;
|
|
@@ -18,7 +18,7 @@ export declare const propertiesDefinition: {
|
|
|
18
18
|
icon: Prop<string, false>;
|
|
19
19
|
placeholder: Prop<string, true>;
|
|
20
20
|
textStyle: Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
21
|
-
|
|
21
|
+
loading: Prop<boolean, true>;
|
|
22
22
|
}>;
|
|
23
23
|
layout: Section<Record<string, Prop<any, any>> & {
|
|
24
24
|
padding: Prop<import("@superblocksteam/library-shared/types").Spacing, true>;
|
|
@@ -13,7 +13,7 @@ export declare const SbIcon: import("react").FC<import("../../properties-panel/p
|
|
|
13
13
|
}>;
|
|
14
14
|
appearance: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
15
15
|
color: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
16
|
-
|
|
16
|
+
loading: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
17
17
|
}>;
|
|
18
18
|
events: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
19
19
|
onClick: import("../../properties-panel/props-builder.js").Prop<import("../../sb-event-flow.js").SbEventFlow, false>;
|
|
@@ -15,7 +15,7 @@ export declare const propertiesDefinition: {
|
|
|
15
15
|
}>;
|
|
16
16
|
appearance: Section<Record<string, Prop<any, any>> & {
|
|
17
17
|
color: Prop<string, false>;
|
|
18
|
-
|
|
18
|
+
loading: Prop<boolean, true>;
|
|
19
19
|
}>;
|
|
20
20
|
events: Section<Record<string, Prop<any, any>> & {
|
|
21
21
|
onClick: Prop<import("../../sb-event-flow.js").SbEventFlow, false>;
|
|
@@ -8,7 +8,7 @@ export declare const SbImage: import("react").FC<import("../../properties-panel/
|
|
|
8
8
|
borderRadius: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true>;
|
|
9
9
|
fillContainer: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
10
10
|
align: import("../../properties-panel/props-builder.js").Prop<import("./props.js").ImageAlign, true>;
|
|
11
|
-
|
|
11
|
+
loading: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
12
12
|
}>;
|
|
13
13
|
layout: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
14
14
|
maxHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
@@ -18,7 +18,7 @@ export declare const propertiesDefinition: {
|
|
|
18
18
|
borderRadius: Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true>;
|
|
19
19
|
fillContainer: Prop<boolean, true>;
|
|
20
20
|
align: Prop<ImageAlign, true>;
|
|
21
|
-
|
|
21
|
+
loading: Prop<boolean, true>;
|
|
22
22
|
}>;
|
|
23
23
|
layout: Section<Record<string, Prop<any, any>> & {
|
|
24
24
|
maxHeight?: Prop<Dim<DimModes>, false> | undefined;
|
|
@@ -31,7 +31,7 @@ export declare const SbInput: import("react").FC<import("../../properties-panel/
|
|
|
31
31
|
}, "inputType"> & {
|
|
32
32
|
inputType: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
33
33
|
} & {
|
|
34
|
-
|
|
34
|
+
loading: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
35
35
|
}>;
|
|
36
36
|
layout: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
37
37
|
padding: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").Spacing, true>;
|
|
@@ -35,7 +35,7 @@ export declare const propertiesDefinition: {
|
|
|
35
35
|
}, "inputType"> & {
|
|
36
36
|
inputType: Prop<string, true>;
|
|
37
37
|
} & {
|
|
38
|
-
|
|
38
|
+
loading: Prop<boolean, true>;
|
|
39
39
|
}>;
|
|
40
40
|
layout: Section<Record<string, Prop<any, any>> & {
|
|
41
41
|
padding: Prop<import("@superblocksteam/library-shared/types").Spacing, true>;
|
|
@@ -18,6 +18,7 @@ export declare const propertiesDefinition: {
|
|
|
18
18
|
"styleProps.border": Prop<any, false>;
|
|
19
19
|
"styleProps.borderRadius": Prop<any, false>;
|
|
20
20
|
"styleProps.divider": Prop<any, true>;
|
|
21
|
+
loading: Prop<boolean, true>;
|
|
21
22
|
}>;
|
|
22
23
|
layout: Section<Record<string, Prop<any, any>> & {
|
|
23
24
|
isVisible: Prop<boolean, true>;
|
|
@@ -30,6 +30,7 @@ export declare const SbModal: import("react").FC<import("../../properties-panel/
|
|
|
30
30
|
borderRadius: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, false>;
|
|
31
31
|
hasBackdrop: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
32
32
|
widthPreset: import("../../properties-panel/props-builder.js").Prop<import("./constants.js").ModalSize, true>;
|
|
33
|
+
loading: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
33
34
|
}>;
|
|
34
35
|
interaction: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
35
36
|
closeOnClickOutside: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
@@ -27,6 +27,7 @@ export declare const propertiesDefinition: {
|
|
|
27
27
|
borderRadius: Prop<PerCornerBorderRadius, false>;
|
|
28
28
|
hasBackdrop: Prop<boolean, true>;
|
|
29
29
|
widthPreset: Prop<ModalSize, true>;
|
|
30
|
+
loading: Prop<boolean, true>;
|
|
30
31
|
}>;
|
|
31
32
|
interaction: Section<Record<string, Prop<any, any>> & {
|
|
32
33
|
closeOnClickOutside: Prop<boolean, true>;
|
|
@@ -7,6 +7,9 @@ export declare const SbPage: import("react").FC<import("../../properties-panel/p
|
|
|
7
7
|
width: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
8
8
|
height: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
9
9
|
}>;
|
|
10
|
+
appearance: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
11
|
+
loading: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
12
|
+
}>;
|
|
10
13
|
events: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
11
14
|
onLoad: import("../../properties-panel/props-builder.js").Prop<import("../../sb-event-flow.js").SbEventFlow, false>;
|
|
12
15
|
}>;
|
|
@@ -9,6 +9,9 @@ export declare const propertiesDefinition: {
|
|
|
9
9
|
width: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
10
10
|
height: Prop<Dim<import("@superblocksteam/library-shared").DimModes>, false>;
|
|
11
11
|
}>;
|
|
12
|
+
appearance: Section<Record<string, Prop<any, any>> & {
|
|
13
|
+
loading: Prop<boolean, true>;
|
|
14
|
+
}>;
|
|
12
15
|
events: Section<Record<string, Prop<any, any>> & {
|
|
13
16
|
onLoad: Prop<import("../../sb-event-flow.js").SbEventFlow, false>;
|
|
14
17
|
}>;
|
|
@@ -19,5 +19,6 @@ export declare const SbSection: import("react").FC<import("../../properties-pane
|
|
|
19
19
|
appearance: import("../../properties-panel/props-builder.js").Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
20
20
|
backgroundColor: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
21
21
|
border: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerSideBorder, false>;
|
|
22
|
+
loading: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
22
23
|
}>;
|
|
23
24
|
}>>;
|
|
@@ -22,5 +22,6 @@ export declare const propertiesDefinition: {
|
|
|
22
22
|
appearance: Section<Record<string, Prop<any, any>> & {
|
|
23
23
|
backgroundColor: Prop<string, true>;
|
|
24
24
|
border: Prop<import("@superblocksteam/library-shared/types").PerSideBorder, false>;
|
|
25
|
+
loading: Prop<boolean, true>;
|
|
25
26
|
}>;
|
|
26
27
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { Section } from "../../properties-panel/props-builder.js";
|
|
1
2
|
export declare const propertiesDefinition: {
|
|
2
|
-
layout:
|
|
3
|
+
layout: Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
3
4
|
maxHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
4
5
|
minHeight?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
5
6
|
maxWidth?: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared").Dim<import("@superblocksteam/library-shared").DimModes>, false> | undefined;
|
|
@@ -11,4 +12,7 @@ export declare const propertiesDefinition: {
|
|
|
11
12
|
} & {
|
|
12
13
|
isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
13
14
|
}>;
|
|
15
|
+
appearance: Section<Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & {
|
|
16
|
+
loading: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
17
|
+
}>;
|
|
14
18
|
};
|
|
@@ -23,6 +23,7 @@ declare const _propertiesDefinitionVStack: {
|
|
|
23
23
|
backgroundColor: Prop<string, false>;
|
|
24
24
|
border: Prop<import("@superblocksteam/library-shared/types").PerSideBorder, false>;
|
|
25
25
|
borderRadius: Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true>;
|
|
26
|
+
loading: Prop<boolean, true>;
|
|
26
27
|
}>;
|
|
27
28
|
};
|
|
28
29
|
declare const _propertiesDefinitionHStack: {
|
|
@@ -45,9 +46,10 @@ declare const _propertiesDefinitionHStack: {
|
|
|
45
46
|
backgroundColor: Prop<string, false>;
|
|
46
47
|
border: Prop<import("@superblocksteam/library-shared/types").PerSideBorder, false>;
|
|
47
48
|
borderRadius: Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true>;
|
|
49
|
+
loading: Prop<boolean, true>;
|
|
48
50
|
}>;
|
|
49
51
|
};
|
|
50
|
-
type OptionalProps = "verticalAlign" | "horizontalAlign" | "margin" | "padding" | "spacing" | "backgroundColor" | "border" | "borderRadius" | "shouldScrollContents";
|
|
52
|
+
type OptionalProps = "verticalAlign" | "horizontalAlign" | "margin" | "padding" | "spacing" | "backgroundColor" | "border" | "borderRadius" | "shouldScrollContents" | "loading";
|
|
51
53
|
type InternalVStackProps = InternalPropsWithOptional<typeof _propertiesDefinitionVStack, OptionalProps>;
|
|
52
54
|
type InternalHStackProps = InternalPropsWithOptional<typeof _propertiesDefinitionHStack, OptionalProps> & {
|
|
53
55
|
[key: string]: any;
|
|
@@ -212,7 +212,7 @@ export declare const SbTable: import("react").FC<import("../../properties-panel/
|
|
|
212
212
|
borderRadius: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true>;
|
|
213
213
|
rowDensity: import("../../properties-panel/props-builder.js").Prop<import("./types.js").RowDensity, true>;
|
|
214
214
|
maxLinesPerRow: import("../../properties-panel/props-builder.js").Prop<number, true>;
|
|
215
|
-
|
|
215
|
+
loading: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
216
216
|
isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
|
|
217
217
|
collapseWhenHidden: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
|
|
218
218
|
"searchProps.textStyle": import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
@@ -215,7 +215,7 @@ export declare const propertiesDefinition: {
|
|
|
215
215
|
borderRadius: Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true>;
|
|
216
216
|
rowDensity: Prop<RowDensity, true>;
|
|
217
217
|
maxLinesPerRow: Prop<number, true>;
|
|
218
|
-
|
|
218
|
+
loading: Prop<boolean, true>;
|
|
219
219
|
isVisible: Prop<boolean, false>;
|
|
220
220
|
collapseWhenHidden: Prop<boolean, false>;
|
|
221
221
|
"searchProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
@@ -8,7 +8,7 @@ export declare const SbText: import("react").FC<import("../../properties-panel/p
|
|
|
8
8
|
horizontalAlign: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/props").HorizontalAlign, true>;
|
|
9
9
|
verticalAlign: import("../../properties-panel/props-builder.js").Prop<import("./props.js").VerticalAlign, true>;
|
|
10
10
|
wrapText: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
11
|
-
|
|
11
|
+
loading: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
12
12
|
shouldScroll: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
|
|
13
13
|
icon: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
14
14
|
iconPosition: import("../../properties-panel/props-builder.js").Prop<import("../../icons/constants.js").IconPosition, true>;
|
|
@@ -19,7 +19,7 @@ export declare const propertiesDefinition: {
|
|
|
19
19
|
horizontalAlign: Prop<HorizontalAlign, true>;
|
|
20
20
|
verticalAlign: Prop<VerticalAlign, true>;
|
|
21
21
|
wrapText: Prop<boolean, true>;
|
|
22
|
-
|
|
22
|
+
loading: Prop<boolean, true>;
|
|
23
23
|
shouldScroll: Prop<boolean, false>;
|
|
24
24
|
icon: Prop<string, false>;
|
|
25
25
|
iconPosition: Prop<IconPosition, true>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superblocksteam/library",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.106",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@react-hook/resize-observer": "1.2.6",
|
|
34
34
|
"@superblocksteam/fast-deep-equal": "3.1.4",
|
|
35
35
|
"@superblocksteam/iso-currency": "2.0.0",
|
|
36
|
-
"@superblocksteam/library-shared": "2.0.0-next.
|
|
36
|
+
"@superblocksteam/library-shared": "2.0.0-next.106",
|
|
37
37
|
"@superblocksteam/shared": "0.9149.0",
|
|
38
38
|
"antd": "4.24.15",
|
|
39
39
|
"apca-w3": "^0.1.9",
|