@superblocksteam/library 2.0.0-next.61 → 2.0.0-next.63

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 (26) hide show
  1. package/dist/{allPaths-BLs3_1JE.js → allPaths-BZfM3FHu.js} +2 -2
  2. package/dist/{allPaths-BLs3_1JE.js.map → allPaths-BZfM3FHu.js.map} +1 -1
  3. package/dist/{allPaths-BBGvblR2.js → allPaths-BcLZR8dk.js} +2 -2
  4. package/dist/{allPaths-BBGvblR2.js.map → allPaths-BcLZR8dk.js.map} +1 -1
  5. package/dist/{allPathsLoader-D3ybY8Wk.js → allPathsLoader-CfTtW5Pk.js} +3 -3
  6. package/dist/{allPathsLoader-D3ybY8Wk.js.map → allPathsLoader-CfTtW5Pk.js.map} +1 -1
  7. package/dist/{allPathsLoader-Dggiono4.js → allPathsLoader-DiAtjU88.js} +3 -3
  8. package/dist/{allPathsLoader-Dggiono4.js.map → allPathsLoader-DiAtjU88.js.map} +1 -1
  9. package/dist/{index-DWMz_Ohy.js → index-CbiXEaxq.js} +6600 -6739
  10. package/dist/{index-DWMz_Ohy.js.map → index-CbiXEaxq.js.map} +1 -1
  11. package/dist/index.js +2 -2
  12. package/dist/{splitPathsBySizeLoader-B-TUNLgR.js → splitPathsBySizeLoader-DjrBp-Rx.js} +2 -2
  13. package/dist/{splitPathsBySizeLoader-B-TUNLgR.js.map → splitPathsBySizeLoader-DjrBp-Rx.js.map} +1 -1
  14. package/dist/{splitPathsBySizeLoader-DHzX-8rX.js → splitPathsBySizeLoader-K5Uoo3UV.js} +2 -2
  15. package/dist/{splitPathsBySizeLoader-DHzX-8rX.js.map → splitPathsBySizeLoader-K5Uoo3UV.js.map} +1 -1
  16. package/dist-types/lib/user-facing/component-base/components/button.d.ts +1 -2
  17. package/dist-types/lib/user-facing/component-base/styles/button-styles.d.ts +3 -11
  18. package/dist-types/lib/user-facing/components/button/props.d.ts +2 -3
  19. package/dist-types/lib/user-facing/components/table/column-properties-panel.d.ts +6 -6
  20. package/dist-types/lib/user-facing/components/table/index.d.ts +6 -6
  21. package/dist-types/lib/user-facing/components/table/props.d.ts +6 -6
  22. package/dist-types/lib/user-facing/components/table/table-utilities.d.ts +6 -5
  23. package/dist-types/lib/user-facing/components/table/table-widget.d.ts +1 -1
  24. package/dist-types/lib/user-facing/components/table/types.d.ts +11 -11
  25. package/dist-types/lib/user-facing/properties-panel/props-builder.d.ts +1 -1
  26. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { V as clientExports } from "./index-DWMz_Ohy.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-DWMz_Ohy.js";
1
+ import { V as clientExports } from "./index-CbiXEaxq.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-CbiXEaxq.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, b as IconSize } from "./index-DWMz_Ohy.js";
1
+ import { _ as __awaiter, a as __generator, p as pascalCase, b as IconSize } from "./index-CbiXEaxq.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-B-TUNLgR.js.map
34
+ //# sourceMappingURL=splitPathsBySizeLoader-DjrBp-Rx.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"splitPathsBySizeLoader-B-TUNLgR.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-DjrBp-Rx.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-DWMz_Ohy.js";
1
+ import { _ as __awaiter, a as __generator, p as pascalCase, I as IconSize } from "./index-CbiXEaxq.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-DHzX-8rX.js.map
34
+ //# sourceMappingURL=splitPathsBySizeLoader-K5Uoo3UV.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"splitPathsBySizeLoader-DHzX-8rX.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-K5Uoo3UV.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]}
@@ -7,6 +7,7 @@ import type { ReactElement } from "react";
7
7
  export interface SharedButtonProps {
8
8
  textColor?: string;
9
9
  backgroundColor?: string;
10
+ border?: PerSideBorder;
10
11
  text?: string;
11
12
  onClick?: (event: React.MouseEvent<HTMLElement>) => void;
12
13
  disabled?: boolean;
@@ -26,7 +27,6 @@ export interface SharedButtonProps {
26
27
  textStyleVariant?: string;
27
28
  style?: React.CSSProperties;
28
29
  };
29
- border?: PerSideBorder;
30
30
  borderRadius?: PerCornerBorderRadius;
31
31
  padding?: Padding;
32
32
  theme: UserAccessibleTheme;
@@ -34,7 +34,6 @@ export interface SharedButtonProps {
34
34
  }
35
35
  export interface ButtonProps extends SharedButtonProps {
36
36
  buttonStyle?: ButtonStyle;
37
- version?: "v1" | "v2";
38
37
  }
39
38
  export interface ButtonLikeLinkProps extends SharedButtonProps {
40
39
  linkStyle?: ButtonLikeLinkStyle;
@@ -3,14 +3,6 @@ export type ButtonStyle = "primary" | "secondary" | "tertiary" | "success" | "da
3
3
  export type ButtonLikeLinkStyle = ButtonStyle | "LINK";
4
4
  export declare const getButtonThemeDefaultTextColor: (theme: UserAccessibleTheme, buttonStyle?: ButtonStyle) => string;
5
5
  export declare const getButtonThemeDefaultBackgroundColor: (theme: UserAccessibleTheme, buttonStyle?: ButtonStyle) => string;
6
- export declare const getButtonThemeDefaultHoverBackgroundColor: (theme: UserAccessibleTheme, buttonStyle?: ButtonStyle) => string | undefined;
7
- export declare const getButtonThemeDefaultHoverTextColor: (theme: UserAccessibleTheme, buttonStyle?: ButtonStyle) => string | undefined;
8
- export declare const getFallbackBorderColor: (buttonStyle: ButtonStyle | undefined, backgroundColor: string, themeColor: string) => string;
9
- export declare const getButtonBorderStyleObjectV1: ({ border, isLoadingColor, buttonStyle, isLoading, fallbackBorderColor, backgroundColorIfSet, }: {
10
- border: PerSideBorder | undefined;
11
- isLoadingColor: string;
12
- fallbackBorderColor: string;
13
- buttonStyle: ButtonStyle | undefined;
14
- isLoading: boolean;
15
- backgroundColorIfSet: string | undefined;
16
- }) => import("react").CSSProperties;
6
+ export declare const PRIMARY_BUTTON_BORDER_OBJECT: (this: any) => PerSideBorder;
7
+ export declare const SECONDARY_BUTTON_BORDER_OBJECT: (this: any) => PerSideBorder;
8
+ export declare const getDefaultBorderObject: (this: any) => PerSideBorder;
@@ -1,8 +1,7 @@
1
- import { Dim } from "@superblocksteam/library-shared";
2
1
  import { Section, Prop } from "../../properties-panel/props-builder.js";
3
2
  import type { IconPosition } from "../../icons/constants.js";
3
+ import type { Dim } from "@superblocksteam/library-shared";
4
4
  import type { TextAlign } from "@superblocksteam/library-shared/props";
5
- import type { PerSideBorder } from "@superblocksteam/library-shared/types";
6
5
  export type ButtonVariant = "primary" | "secondary" | "tertiary";
7
6
  export declare const propertiesDefinition: {
8
7
  general: Section<Record<string, Prop<any, any>> & {
@@ -28,7 +27,7 @@ export declare const propertiesDefinition: {
28
27
  iconPosition: Prop<IconPosition, true>;
29
28
  textStyle: Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
30
29
  backgroundColor: Prop<string, true>;
31
- border: Prop<PerSideBorder, true>;
30
+ border: Prop<import("@superblocksteam/library-shared/types").PerSideBorder, true>;
32
31
  borderRadius: Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true>;
33
32
  labelAlignment: Prop<TextAlign, true>;
34
33
  loadingAnimation: Prop<boolean, true>;
@@ -42,7 +42,7 @@ export declare const columnPanelConfig: {
42
42
  displayTimezone: Prop<string, false>;
43
43
  columnType: Prop<"date", true>;
44
44
  } | {
45
- buttonLabel: Prop<string, false>;
45
+ buttonLabel: Prop<string, true>;
46
46
  isDisabled: Prop<boolean, false>;
47
47
  columnType: Prop<"button", true>;
48
48
  } | {
@@ -63,7 +63,7 @@ export declare const columnPanelConfig: {
63
63
  }>;
64
64
  presentation: Section<(Record<string, Prop<any, any>> & ({
65
65
  headerIcon: Prop<string, false>;
66
- headerIconPosition: Prop<IconPosition, false>;
66
+ headerIconPosition: Prop<IconPosition, true>;
67
67
  } & (Omit<{
68
68
  columnType: Prop<ColumnType, false>;
69
69
  }, "columnType"> & ({
@@ -135,12 +135,12 @@ export declare const columnPanelConfig: {
135
135
  cellIconPosition: Prop<IconPosition, true>;
136
136
  columnType: Prop<"date", true>;
137
137
  } | {
138
- buttonVariant: Prop<ButtonVariant, false>;
138
+ buttonIcon: Prop<string, false>;
139
+ buttonIconPosition: Prop<IconPosition, true>;
140
+ buttonVariant: Prop<ButtonVariant, true>;
139
141
  buttonBackgroundColor: Prop<string, false>;
142
+ buttonBorder: Prop<import("@superblocksteam/library-shared/types").PerSideBorder, true>;
140
143
  buttonLabelColor: Prop<string, false>;
141
- backgroundColor: Prop<string, false>;
142
- cellIcon: Prop<string, false>;
143
- cellIconPosition: Prop<IconPosition, true>;
144
144
  columnType: Prop<"button", true>;
145
145
  } | {
146
146
  horizontalAlign: Prop<"center" | "left" | "right", true>;
@@ -41,7 +41,7 @@ export declare const SbTable: import("react").FC<import("../../properties-panel/
41
41
  displayTimezone: import("../../properties-panel/props-builder.js").Prop<string, false>;
42
42
  columnType: import("../../properties-panel/props-builder.js").Prop<"date", true>;
43
43
  } | {
44
- buttonLabel: import("../../properties-panel/props-builder.js").Prop<string, false>;
44
+ buttonLabel: import("../../properties-panel/props-builder.js").Prop<string, true>;
45
45
  isDisabled: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
46
46
  columnType: import("../../properties-panel/props-builder.js").Prop<"button", true>;
47
47
  } | {
@@ -62,7 +62,7 @@ export declare const SbTable: import("react").FC<import("../../properties-panel/
62
62
  }>;
63
63
  presentation: import("../../properties-panel/props-builder.js").Section<(Record<string, import("../../properties-panel/props-builder.js").Prop<any, any>> & ({
64
64
  headerIcon: import("../../properties-panel/props-builder.js").Prop<string, false>;
65
- headerIconPosition: import("../../properties-panel/props-builder.js").Prop<import("../../icons/constants.js").IconPosition, false>;
65
+ headerIconPosition: import("../../properties-panel/props-builder.js").Prop<import("../../icons/constants.js").IconPosition, true>;
66
66
  } & (Omit<{
67
67
  columnType: import("../../properties-panel/props-builder.js").Prop<import("./types.js").ColumnType, false>;
68
68
  }, "columnType"> & ({
@@ -134,12 +134,12 @@ export declare const SbTable: import("react").FC<import("../../properties-panel/
134
134
  cellIconPosition: import("../../properties-panel/props-builder.js").Prop<import("../../icons/constants.js").IconPosition, true>;
135
135
  columnType: import("../../properties-panel/props-builder.js").Prop<"date", true>;
136
136
  } | {
137
- buttonVariant: import("../../properties-panel/props-builder.js").Prop<import("../button/props.js").ButtonVariant, false>;
137
+ buttonIcon: import("../../properties-panel/props-builder.js").Prop<string, false>;
138
+ buttonIconPosition: import("../../properties-panel/props-builder.js").Prop<import("../../icons/constants.js").IconPosition, true>;
139
+ buttonVariant: import("../../properties-panel/props-builder.js").Prop<import("../button/props.js").ButtonVariant, true>;
138
140
  buttonBackgroundColor: import("../../properties-panel/props-builder.js").Prop<string, false>;
141
+ buttonBorder: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerSideBorder, true>;
139
142
  buttonLabelColor: import("../../properties-panel/props-builder.js").Prop<string, false>;
140
- backgroundColor: import("../../properties-panel/props-builder.js").Prop<string, false>;
141
- cellIcon: import("../../properties-panel/props-builder.js").Prop<string, false>;
142
- cellIconPosition: import("../../properties-panel/props-builder.js").Prop<import("../../icons/constants.js").IconPosition, true>;
143
143
  columnType: import("../../properties-panel/props-builder.js").Prop<"button", true>;
144
144
  } | {
145
145
  horizontalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "left" | "right", true>;
@@ -44,7 +44,7 @@ export declare const propertiesDefinition: {
44
44
  displayTimezone: Prop<string, false>;
45
45
  columnType: Prop<"date", true>;
46
46
  } | {
47
- buttonLabel: Prop<string, false>;
47
+ buttonLabel: Prop<string, true>;
48
48
  isDisabled: Prop<boolean, false>;
49
49
  columnType: Prop<"button", true>;
50
50
  } | {
@@ -65,7 +65,7 @@ export declare const propertiesDefinition: {
65
65
  }>;
66
66
  presentation: Section<(Record<string, Prop<any, any>> & ({
67
67
  headerIcon: Prop<string, false>;
68
- headerIconPosition: Prop<import("../../icons/constants.js").IconPosition, false>;
68
+ headerIconPosition: Prop<import("../../icons/constants.js").IconPosition, true>;
69
69
  } & (Omit<{
70
70
  columnType: Prop<import("./types.js").ColumnType, false>;
71
71
  }, "columnType"> & ({
@@ -137,12 +137,12 @@ export declare const propertiesDefinition: {
137
137
  cellIconPosition: Prop<import("../../icons/constants.js").IconPosition, true>;
138
138
  columnType: Prop<"date", true>;
139
139
  } | {
140
- buttonVariant: Prop<import("../button/props.js").ButtonVariant, false>;
140
+ buttonIcon: Prop<string, false>;
141
+ buttonIconPosition: Prop<import("../../icons/constants.js").IconPosition, true>;
142
+ buttonVariant: Prop<import("../button/props.js").ButtonVariant, true>;
141
143
  buttonBackgroundColor: Prop<string, false>;
144
+ buttonBorder: Prop<import("@superblocksteam/library-shared/types").PerSideBorder, true>;
142
145
  buttonLabelColor: Prop<string, false>;
143
- backgroundColor: Prop<string, false>;
144
- cellIcon: Prop<string, false>;
145
- cellIconPosition: Prop<import("../../icons/constants.js").IconPosition, true>;
146
146
  columnType: Prop<"button", true>;
147
147
  } | {
148
148
  horizontalAlign: Prop<"center" | "left" | "right", true>;
@@ -1,11 +1,11 @@
1
1
  import { Dim } from "@superblocksteam/library-shared";
2
2
  import React from "react";
3
3
  import type { CompactMode, BooleanStyleFalse } from "./types.js";
4
- import type { ColumnProperties, TableWidgetProps, EditProps, SingleCellProperties, TableStyles, TagDisplayConfig, TagsColorAssignment, ColumnPropertyFunctionArgs } from "./types.js";
4
+ import type { ColumnProperties, TableWidgetProps, EditProps, SingleCellProperties, TableStyles, TagDisplayConfig, TagsColorAssignment } from "./types.js";
5
5
  import type { IconPosition } from "../../icons/constants.js";
6
6
  import type { ButtonVariant } from "../button/props.js";
7
7
  import type { DimModes } from "@superblocksteam/library-shared";
8
- import type { TextStyleWithVariant, UserAccessibleTheme } from "@superblocksteam/library-shared/types";
8
+ import type { TextStyleWithVariant, UserAccessibleTheme, PerSideBorder } from "@superblocksteam/library-shared/types";
9
9
  export declare const getAllTableColumnKeys: (tableData: Readonly<Array<Record<string, unknown>>>, additionalColumnKeys?: string[]) => string[];
10
10
  interface TableTagsProps {
11
11
  theme: UserAccessibleTheme;
@@ -39,7 +39,7 @@ export declare const TagsCell: ({ isHidden, cellProperties, tagValues, tagsColor
39
39
  interface ColumnAction {
40
40
  label: string;
41
41
  id: string;
42
- actions: (args: ColumnPropertyFunctionArgs) => void;
42
+ actions: () => void;
43
43
  }
44
44
  export declare const formatByType: (value: unknown, type: string, options: {
45
45
  maxLen?: number;
@@ -69,7 +69,7 @@ export declare const EditableCell: (props: {
69
69
  theme: UserAccessibleTheme;
70
70
  }) => React.JSX.Element;
71
71
  export declare function getCellProperties(tableCellTextStyle: TextStyleWithVariant | undefined, columnProperties: ColumnProperties, rowIndex: number): SingleCellProperties;
72
- export declare function getPropertyValue(value: any, index: number, preserveCase?: boolean, preserveDataType?: boolean): any;
72
+ export declare function getPropertyValue(value: any, index: number, preserveDataType?: boolean): any;
73
73
  export declare function getFirstPropertyValue(value: string | string[] | undefined): string | undefined;
74
74
  export declare const renderCell: ({ value, columnType, editInputType, cellProps, defaultValue, maxLinesPerRow, tableCellTextStyle, typographies, theme, }: {
75
75
  value: any;
@@ -89,11 +89,12 @@ interface RenderActionProps {
89
89
  isDisabled?: boolean;
90
90
  columnActions?: ColumnAction[];
91
91
  backgroundColor?: string;
92
+ buttonBorder?: PerSideBorder;
92
93
  buttonVariant: ButtonVariant;
93
94
  buttonLabelColor: string | undefined;
94
95
  cellIcon?: string;
95
96
  cellIconPosition: IconPosition;
96
- onCommandClick: (args: ColumnPropertyFunctionArgs) => void;
97
+ onCommandClick: (onComplete: () => void) => void;
97
98
  handleRowSelect: (rowIndex: number) => void;
98
99
  compactMode: CompactMode;
99
100
  }
@@ -111,7 +111,7 @@ export declare class TableWidget extends React.Component<TableWidgetProps, Table
111
111
  label: string;
112
112
  value: string;
113
113
  }) => void;
114
- onEditStop: (columnProperties: ColumnProperties, currentRowIndex: number, editStopProps: {
114
+ onEditStop: (columnProperties: ColumnProperties, _currentRowIndex: number, editStopProps: {
115
115
  shouldSave: boolean;
116
116
  value?: any;
117
117
  validationErrors?: Array<string>;
@@ -187,6 +187,7 @@ export type SingleCellProperties = ColumnPropertiesForEditing & {
187
187
  cellTextStyle?: TextStyleWithVariant;
188
188
  cellBackground?: string;
189
189
  buttonBackgroundColor?: string;
190
+ buttonBorder?: PerSideBorder;
190
191
  buttonVariant?: string;
191
192
  buttonLabelColor?: string;
192
193
  buttonLabel?: string;
@@ -241,17 +242,13 @@ interface ColumnPropertiesForEditing {
241
242
  export type TagDisplayConfig = {
242
243
  color: string;
243
244
  };
244
- export type ColumnPropertyFunctionArgs = {
245
- onComplete?: () => void;
246
- context: ColumnContext | Record<string, unknown>;
247
- };
248
245
  export type ColumnPropertyFunctions = {
249
- onClick?: (args: ColumnPropertyFunctionArgs) => void;
250
- onDropdownSearchTextChanged?: (args: ColumnPropertyFunctionArgs) => void;
251
- onOptionChange?: (args: ColumnPropertyFunctionArgs) => void;
252
- onFocusOut?: (args: ColumnPropertyFunctionArgs) => void;
253
- onDateSelected?: (args: ColumnPropertyFunctionArgs) => void;
254
- onCheckChange?: (args: ColumnPropertyFunctionArgs) => void;
246
+ onClick?: (args: RowContext) => Promise<void>;
247
+ onDropdownSearchTextChanged?: () => void;
248
+ onOptionChange?: () => void;
249
+ onFocusOut?: () => void;
250
+ onDateSelected?: () => void;
251
+ onCheckChange?: () => void;
255
252
  };
256
253
  export interface ColumnProperties extends ColumnEditConfigs, ColumnPropertiesForEditing, ColumnPropertyFunctions {
257
254
  id: string;
@@ -277,11 +274,14 @@ export interface ColumnProperties extends ColumnEditConfigs, ColumnPropertiesFor
277
274
  computedValue: string | string[];
278
275
  displayedValue?: string | string[];
279
276
  buttonLabel?: string;
280
- buttonStyle?: string;
277
+ buttonBackgroundColor?: string;
278
+ buttonBorder?: PerSideBorder;
281
279
  buttonVariant?: string;
282
280
  buttonLabelColor?: string;
283
281
  cellIcon?: string;
284
282
  cellIconPosition?: IconPosition;
283
+ buttonIcon?: string;
284
+ buttonIconPosition?: IconPosition;
285
285
  isDisabled?: boolean;
286
286
  linkUrl?: string;
287
287
  linkLabel?: string;
@@ -131,7 +131,7 @@ declare class Section<T extends Record<string, Prop<any, any>> = Record<string,
131
131
  }[number] : never : INP>(props: INP): Section<T & OUT>;
132
132
  add: <INP extends Record<string, Prop<any, any>> | CompositeProp<any> | UnionProp<any, any>, OUT extends INP extends CompositeProp<infer CU> ? CU : INP extends UnionProp<infer SHARED, infer VARIANTS> ? VARIANTS extends readonly any[] ? { [I in keyof VARIANTS]: MergeUnionVariant<SHARED, VARIANTS[I]>; }[number] : never : INP>(props: INP) => Section<T & OUT>;
133
133
  propertiesPanel(config: Omit<SectionDefinition<any>, "props">): this;
134
- get name(): "Content" | "Routing" | "Interaction" | "Layout" | "Appearance" | "Permissions" | "Event handlers" | "Uncategorized";
134
+ get name(): "Content" | "Routing" | "Interaction" | "Layout" | "Appearance" | "Permissions" | "Uncategorized" | "Event handlers";
135
135
  }
136
136
  declare class Prop<Type extends DataType, _HasDefault extends boolean = false> {
137
137
  protected prop: ManagedProp<Type>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superblocksteam/library",
3
- "version": "2.0.0-next.61",
3
+ "version": "2.0.0-next.63",
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.61",
36
+ "@superblocksteam/library-shared": "2.0.0-next.63",
37
37
  "@superblocksteam/shared": "0.9146.0",
38
38
  "antd": "4.24.15",
39
39
  "apca-w3": "^0.1.9",