@superblocksteam/library 2.0.6-next.0 → 2.0.6-next.10

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.
Files changed (30) hide show
  1. package/dist/{allPaths-BtaGk7Hl.js → allPaths-BbwLOFSN.js} +2 -2
  2. package/dist/{allPaths-BtaGk7Hl.js.map → allPaths-BbwLOFSN.js.map} +1 -1
  3. package/dist/{allPaths-COzTzraD.js → allPaths-YpR_xtpv.js} +2 -2
  4. package/dist/{allPaths-COzTzraD.js.map → allPaths-YpR_xtpv.js.map} +1 -1
  5. package/dist/{allPathsLoader-CkqgEhyC.js → allPathsLoader-CTr7XzYS.js} +3 -3
  6. package/dist/{allPathsLoader-CkqgEhyC.js.map → allPathsLoader-CTr7XzYS.js.map} +1 -1
  7. package/dist/{allPathsLoader-CoNAJZeJ.js → allPathsLoader-DjBKQsij.js} +3 -3
  8. package/dist/{allPathsLoader-CoNAJZeJ.js.map → allPathsLoader-DjBKQsij.js.map} +1 -1
  9. package/dist/{devtools-consolidated-CziXG7En.js → devtools-consolidated-B2GVETCf.js} +2 -2
  10. package/dist/{devtools-consolidated-CziXG7En.js.map → devtools-consolidated-B2GVETCf.js.map} +1 -1
  11. package/dist/{index-C4PHemM8.js → index-snr_jI8a.js} +1034 -737
  12. package/dist/{index-C4PHemM8.js.map → index-snr_jI8a.js.map} +1 -1
  13. package/dist/index.js +2 -2
  14. package/dist/{splitPathsBySizeLoader-BkYpVgsW.js → splitPathsBySizeLoader-Blv6tUe4.js} +2 -2
  15. package/dist/{splitPathsBySizeLoader-BkYpVgsW.js.map → splitPathsBySizeLoader-Blv6tUe4.js.map} +1 -1
  16. package/dist/{splitPathsBySizeLoader-DzWbuSYz.js → splitPathsBySizeLoader-DbNFtg9G.js} +2 -2
  17. package/dist/{splitPathsBySizeLoader-DzWbuSYz.js.map → splitPathsBySizeLoader-DbNFtg9G.js.map} +1 -1
  18. package/dist-types/lib/internal-details/is-sb-component.d.ts +5 -1
  19. package/dist-types/lib/user-facing/components/grid/index.d.ts +7 -5
  20. package/dist-types/lib/user-facing/components/table/components/table-header.d.ts +1 -0
  21. package/dist-types/lib/user-facing/components/table/index.d.ts +1 -0
  22. package/dist-types/lib/user-facing/components/table/props.d.ts +1 -0
  23. package/dist-types/lib/user-facing/components/table/table-component.d.ts +1 -0
  24. package/dist-types/lib/user-facing/components/table/table-utilities.d.ts +4 -7
  25. package/dist-types/lib/user-facing/components/table/table-widget.d.ts +3 -2
  26. package/dist-types/lib/user-facing/components/table/types.d.ts +1 -1
  27. package/dist-types/lib/user-facing/properties-panel/mixins/appearance-properties.d.ts +1 -1
  28. package/dist-types/lib/user-facing/properties-panel/props-builder.d.ts +1 -1
  29. package/package.json +2 -2
  30. package/dist-types/lib/user-facing/components/grid/utils.d.ts +0 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { $ as clientExports } from "./index-C4PHemM8.js";
2
- import { a0, a1, X, O, P, a2, N, a3, a4, a5, a6, a7, a8, B, a9, aa, ab, ac, ad, Z, ae, V, af, ag, ah, ai, Y, z, S, q, d, e, n, s, l, Q, C, v, w, f, i, g, B as B2, c, u, k, h, y, x, A, aj, ak, al, am, an, T, ao, ap, aq, ar, as, at, au, av, aw, ax, ay, az, aA, aB, aC, aD, aE, aF, aG, aH, aI, aJ, aK, aL, aM, D, aN, aO, aP, aQ, aR, aS, aT, aU, aV, aW, aX, M, aY, aZ, a_, a$, b0, b1, G, b2, b3, b4, b5, b6, J, b7, b8, E, b9, ba, bb, r, L, K, bc, bd, be, W, F, H, 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, bH, bI, bJ, bK, bL, U, R, bM } from "./index-C4PHemM8.js";
1
+ import { $ as clientExports } from "./index-snr_jI8a.js";
2
+ import { a0, a1, X, O, P, a2, N, a3, a4, a5, a6, a7, a8, B, a9, aa, ab, ac, ad, Z, ae, V, af, ag, ah, ai, Y, z, S, q, d, e, n, s, l, Q, C, v, w, f, i, g, B as B2, c, u, k, h, y, x, A, aj, ak, al, am, an, T, ao, ap, aq, ar, as, at, au, av, aw, ax, ay, az, aA, aB, aC, aD, aE, aF, aG, aH, aI, aJ, aK, aL, aM, D, aN, aO, aP, aQ, aR, aS, aT, aU, aV, aW, aX, M, aY, aZ, a_, a$, b0, b1, G, b2, b3, b4, b5, b6, J, b7, b8, E, b9, ba, bb, r, L, K, bc, bd, be, W, F, H, 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, bH, bI, bJ, bK, bL, U, R, bM } from "./index-snr_jI8a.js";
3
3
  const createRoot = clientExports.createRoot;
4
4
  export {
5
5
  a0 as Await,
@@ -1,4 +1,4 @@
1
- import { _ as __awaiter, a as __generator, p as pascalCase, b as IconSize } from "./index-C4PHemM8.js";
1
+ import { _ as __awaiter, a as __generator, p as pascalCase, b as IconSize } from "./index-snr_jI8a.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-BkYpVgsW.js.map
34
+ //# sourceMappingURL=splitPathsBySizeLoader-Blv6tUe4.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"splitPathsBySizeLoader-BkYpVgsW.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]}
1
+ {"version":3,"file":"splitPathsBySizeLoader-Blv6tUe4.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]}
@@ -1,4 +1,4 @@
1
- import { _ as __awaiter, a as __generator, p as pascalCase, I as IconSize } from "./index-C4PHemM8.js";
1
+ import { _ as __awaiter, a as __generator, p as pascalCase, I as IconSize } from "./index-snr_jI8a.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-DzWbuSYz.js.map
34
+ //# sourceMappingURL=splitPathsBySizeLoader-DbNFtg9G.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"splitPathsBySizeLoader-DzWbuSYz.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
+ {"version":3,"file":"splitPathsBySizeLoader-DbNFtg9G.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,7 +1,11 @@
1
1
  import type { SbComponentProps } from "../user-facing/component-base/sb-component";
2
2
  import type { ReactNode } from "react";
3
3
  type ChildFunction = Function;
4
- export type StackChildElement = React.ReactElement<SbComponentProps>;
4
+ export type StackChildElement = React.ReactElement<SbComponentProps> & {
5
+ type: {
6
+ sbType: string;
7
+ };
8
+ };
5
9
  export declare const superblocksComponentSymbol: unique symbol;
6
10
  export declare function isSbComponent(child: ReactNode | ChildFunction): child is StackChildElement;
7
11
  export {};
@@ -3,15 +3,15 @@ import React from "react";
3
3
  import { Prop, Section } from "../../properties-panel/props-builder.js";
4
4
  import type { InternalProps } from "../../properties-panel/props-builder.js";
5
5
  import type { DimModes } from "@superblocksteam/library-shared";
6
- import type { WithBindingIdentifier } from "@superblocksteam/library-shared/types";
7
- export type GridChild = React.ReactElement<{
6
+ export type GridChild = {
8
7
  marginTop?: Dim<"rows">;
9
8
  marginLeft?: Dim<"columns">;
10
9
  width?: Dim<"columns">;
11
10
  height?: Dim<"rows" | "fit">;
12
11
  constraintTop?: string | [string];
13
- bind?: WithBindingIdentifier;
14
- }>;
12
+ name: string;
13
+ sbType?: string;
14
+ };
15
15
  declare const _propertiesDefinition: {
16
16
  general: Section<Record<string, Prop<any, any>> & {
17
17
  spacing: Prop<Dim<"px">, true>;
@@ -37,5 +37,7 @@ declare const _propertiesDefinition: {
37
37
  }>;
38
38
  };
39
39
  export type GridProps = InternalProps<typeof _propertiesDefinition>;
40
- export declare const InternalGrid: ({ children, ...props }: GridProps) => React.JSX.Element;
40
+ export declare const InternalGrid: (({ children, ...props }: GridProps) => React.JSX.Element) & {
41
+ displayName: string;
42
+ };
41
43
  export {};
@@ -56,6 +56,7 @@ export declare const TableHeaderCell: (props: {
56
56
  handleHeaderDropped: (index: number, position: number) => void;
57
57
  mutableHeaderDragRef: React.MutableRefObject<number>;
58
58
  columnHeaderProps?: TextStyleWithVariant;
59
+ columnHeaderTextWrap?: boolean;
59
60
  theme: UserAccessibleTheme;
60
61
  updateProperty: (property: string, value: any) => void;
61
62
  }) => React.JSX.Element;
@@ -213,6 +213,7 @@ export declare const SbTable: import("react").FC<import("../../properties-panel/
213
213
  showColumnBorders: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
214
214
  "headerProps.textStyle": import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
215
215
  "columnHeaderProps.textStyle": import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
216
+ columnHeaderTextWrap: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
216
217
  "cellProps.textStyle": import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
217
218
  backgroundColor: import("../../properties-panel/props-builder.js").Prop<string, true>;
218
219
  selectedRowBackgroundColor: import("../../properties-panel/props-builder.js").Prop<string, true>;
@@ -216,6 +216,7 @@ export declare const propertiesDefinition: {
216
216
  showColumnBorders: Prop<boolean, false>;
217
217
  "headerProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
218
218
  "columnHeaderProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
219
+ columnHeaderTextWrap: Prop<boolean, true>;
219
220
  "cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
220
221
  backgroundColor: Prop<string, true>;
221
222
  selectedRowBackgroundColor: Prop<string, true>;
@@ -20,6 +20,7 @@ export interface TableProps {
20
20
  tableCellTextStyle?: TextStyleWithVariant;
21
21
  tableHeaderTextStyle?: TextStyleWithVariant;
22
22
  columnHeaderTextStyle?: TextStyleWithVariant;
23
+ columnHeaderTextWrap?: boolean;
23
24
  searchProps?: {
24
25
  textStyle?: TextStyleWithVariant;
25
26
  border?: PerSideBorder;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { HorizontalAlignment, VerticalAlignment } from "./types.js";
3
- import type { ColumnProperties, EditProps, SingleCellProperties, TagDisplayConfig, TagsColorAssignment, RowDensity, BooleanStyleFalse, UnknownRow } from "./types.js";
3
+ import type { ColumnProperties, EditProps, SingleCellProperties, TagDisplayConfig, RowDensity, BooleanStyleFalse, UnknownRow } from "./types.js";
4
4
  import type { IconPosition } from "../../icons/constants.js";
5
5
  import type { ButtonVariant } from "../button/props.js";
6
6
  import type { Dim } from "@superblocksteam/library-shared";
@@ -12,8 +12,7 @@ interface TableTagsProps {
12
12
  isHidden: boolean;
13
13
  cellProperties: SingleCellProperties;
14
14
  tagValues: unknown[];
15
- tagsColorAssignment?: TagsColorAssignment;
16
- tagsCustomColorAssignment?: Record<string, TagDisplayConfig>;
15
+ tagsColorAssignment?: Record<string, TagDisplayConfig>;
17
16
  rowDensity: RowDensity;
18
17
  handleCellFocus?: () => void;
19
18
  maxWidth?: number;
@@ -22,8 +21,7 @@ interface TableTagsProps {
22
21
  export type TableCellProps = SingleCellProperties & {
23
22
  isHidden: boolean;
24
23
  cellProperties: SingleCellProperties;
25
- tagsColorAssignment?: TagsColorAssignment;
26
- tagsCustomColorAssignment?: Record<string, TagDisplayConfig>;
24
+ tagsColorAssignment?: Record<string, TagDisplayConfig>;
27
25
  booleanStyleFalse?: BooleanStyleFalse;
28
26
  rowDensity: RowDensity;
29
27
  isFocused: boolean;
@@ -34,8 +32,7 @@ interface CellPosition {
34
32
  originalRowIndex: number;
35
33
  columnId: string;
36
34
  }
37
- export declare const sanitizeCellValue: (cellValue: any) => string;
38
- export declare const TagsCell: ({ isHidden, cellProperties, tagValues, tagsColorAssignment, tagsCustomColorAssignment, rowDensity, handleCellFocus, maxWidth, maxLinesPerRow, theme, }: TableTagsProps) => React.JSX.Element;
35
+ export declare const TagsCell: ({ isHidden, cellProperties, tagValues, tagsColorAssignment, rowDensity, handleCellFocus, maxWidth, maxLinesPerRow, theme, }: TableTagsProps) => React.JSX.Element;
39
36
  interface ColumnAction {
40
37
  label: string;
41
38
  id: string;
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import { TableManager } from "./table-manager.js";
3
3
  import type { InsertRowOptions } from "./constants.js";
4
- import type { ColumnFilter, ColumnProperties, ReactTableColumnProps, TableWidgetProps } from "./types.js";
4
+ import type { ColumnFilter, ColumnProperties, ReactTableColumnProps, TableWidgetProps, TagDisplayConfig } from "./types.js";
5
5
  interface TableWidgetState {
6
6
  isSaving: boolean;
7
7
  }
@@ -24,6 +24,7 @@ export declare class TableWidget extends React.Component<TableWidgetProps, Table
24
24
  columnId: string;
25
25
  }[];
26
26
  eventListenerController: AbortController | undefined;
27
+ cachedTagColorAssignment: Record<string, Record<string, TagDisplayConfig>> | undefined;
27
28
  componentDidMount(): void;
28
29
  addEventListeners(): void;
29
30
  componentWillUnmount(): void;
@@ -67,7 +68,7 @@ export declare class TableWidget extends React.Component<TableWidgetProps, Table
67
68
  [key: string]: number;
68
69
  }) => void;
69
70
  handleSearchTable: (searchKey: any) => void;
70
- assignTagColors(tableData: Array<Record<string, unknown>>, columns: ReactTableColumnProps[]): void;
71
+ assignTagColors(tableData?: Array<Record<string, unknown>>, columns?: Record<string, ColumnProperties>): void;
71
72
  selectRows: (rows?: "ALL" | "NONE") => void;
72
73
  handleRowSelect: (index: number, shiftKey?: boolean) => void;
73
74
  getRowContext: (idx?: number) => {
@@ -129,7 +129,6 @@ interface TableFunctions {
129
129
  [key: string]: number;
130
130
  }) => void;
131
131
  setSearchText: (value: string, context: RowContext) => void;
132
- updateTagColorAssignment: (value: TagsColorAssignment) => void;
133
132
  onRowClicked: (context: RowContext, onComplete?: () => void) => void;
134
133
  selectAllRows: (rowIndices: number[], rows: Array<Record<string, unknown>>, rowContext: RowContext) => void;
135
134
  deselectAllRows: (rowContext: RowContext) => void;
@@ -382,6 +381,7 @@ export interface TableWidgetProps extends TableFunctions {
382
381
  columnHeaderProps?: {
383
382
  textStyle: TextStyleWithVariant;
384
383
  };
384
+ columnHeaderTextWrap?: boolean;
385
385
  searchProps?: {
386
386
  textStyle?: TextStyleWithVariant;
387
387
  border?: PerSideBorder;
@@ -14,7 +14,7 @@ export declare const createTextStyleCompositeBase: () => {
14
14
  letterSpacing: Prop<number, false>;
15
15
  textTransform: Prop<string, false>;
16
16
  };
17
- export declare const basePropertiesPaneDisplay: PropertiesPanelDisplay<string>;
17
+ export declare const basePropertiesPaneDisplay: PropertiesPanelDisplay<TextStyleWithVariant>;
18
18
  export declare const textStyleProp: ({ baseProp, propertiesPanel, }?: {
19
19
  baseProp?: ReturnType<typeof createTextStyleCompositeBase>;
20
20
  propertiesPanel?: Omit<Partial<PropertiesPanelDisplay<TextStyleWithVariant, "TEXT_STYLE">>, "controlType">;
@@ -207,7 +207,7 @@ declare class Prop<Type extends DataType, _HasDefault extends boolean = false> {
207
207
  setName(name: string): this;
208
208
  onEdit(callback: SideEffectCallback): this;
209
209
  onEvaluate(callback: SideEffectCallback): this;
210
- propertiesPanel<CT extends ControlType>(schema: Omit<Partial<PropertiesPanelDisplay<Type, CT>>, "defaultValue" | "isTriggerProperty">): this;
210
+ propertiesPanel<CT extends ControlType>(schema: Omit<Partial<PropertiesPanelDisplay<Type, CT>>, "isTriggerProperty">): this;
211
211
  build(): ManagedProp<Type>;
212
212
  toDefinition(entity?: Entity, scopedState?: ScopedState): WidgetPropertyDefinition<DataType> | undefined;
213
213
  getRelations(): Relation[][];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superblocksteam/library",
3
- "version": "2.0.6-next.0",
3
+ "version": "2.0.6-next.10",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -32,7 +32,7 @@
32
32
  "@react-hook/resize-observer": "1.2.6",
33
33
  "@superblocksteam/fast-deep-equal": "3.1.4",
34
34
  "@superblocksteam/iso-currency": "2.0.0",
35
- "@superblocksteam/library-shared": "2.0.6-next.0",
35
+ "@superblocksteam/library-shared": "2.0.6-next.10",
36
36
  "@superblocksteam/shared": "0.9160.0",
37
37
  "antd": "4.24.15",
38
38
  "apca-w3": "^0.1.9",
@@ -1 +0,0 @@
1
- export declare const getChildName: (child: any) => string;