@superblocksteam/library 2.0.0-next.94 → 2.0.0-next.96
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-DlpkA9Lm.js → allPaths-C6qeZ4_p.js} +2 -2
- package/dist/{allPaths-DlpkA9Lm.js.map → allPaths-C6qeZ4_p.js.map} +1 -1
- package/dist/{allPaths-BedQCjCV.js → allPaths-Dsgw01PB.js} +2 -2
- package/dist/{allPaths-BedQCjCV.js.map → allPaths-Dsgw01PB.js.map} +1 -1
- package/dist/{allPathsLoader-DBf6fkwt.js → allPathsLoader-4bTX5Z5s.js} +3 -3
- package/dist/{allPathsLoader-Ds4-eGvS.js.map → allPathsLoader-4bTX5Z5s.js.map} +1 -1
- package/dist/{allPathsLoader-Ds4-eGvS.js → allPathsLoader-BjTp2_ti.js} +3 -3
- package/dist/{allPathsLoader-DBf6fkwt.js.map → allPathsLoader-BjTp2_ti.js.map} +1 -1
- package/dist/{index-D3flom68.js → index-Cfiz5DdU.js} +9473 -3776
- package/dist/{index-D3flom68.js.map → index-Cfiz5DdU.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/{splitPathsBySizeLoader-CwRJ48qL.js → splitPathsBySizeLoader-BHujcI7q.js} +2 -2
- package/dist/{splitPathsBySizeLoader-CwRJ48qL.js.map → splitPathsBySizeLoader-BHujcI7q.js.map} +1 -1
- package/dist/{splitPathsBySizeLoader-BCwHLkQl.js → splitPathsBySizeLoader-Ba_jngBn.js} +2 -2
- package/dist/{splitPathsBySizeLoader-BCwHLkQl.js.map → splitPathsBySizeLoader-Ba_jngBn.js.map} +1 -1
- package/dist-types/lib/user-facing/component-base/components/video.d.ts +19 -0
- package/dist-types/lib/user-facing/components/table/column-properties-panel.d.ts +8 -16
- package/dist-types/lib/user-facing/components/table/components/autotooltip-component.d.ts +2 -2
- package/dist-types/lib/user-facing/components/table/components/edit-cell.d.ts +2 -2
- package/dist-types/lib/user-facing/components/table/components/edit-checkbox-cell.d.ts +2 -2
- package/dist-types/lib/user-facing/components/table/components/edit-date-cell.d.ts +2 -2
- package/dist-types/lib/user-facing/components/table/components/edit-input-cell.d.ts +2 -2
- package/dist-types/lib/user-facing/components/table/components/edit-multi-select-cell.d.ts +2 -2
- package/dist-types/lib/user-facing/components/table/components/edit-single-select-cell.d.ts +2 -2
- package/dist-types/lib/user-facing/components/table/components/edit-utils.d.ts +2 -2
- package/dist-types/lib/user-facing/components/table/components/editable-link-cell.d.ts +2 -2
- package/dist-types/lib/user-facing/components/table/components/popover-video.d.ts +1 -1
- package/dist-types/lib/user-facing/components/table/components/table-header.d.ts +3 -3
- package/dist-types/lib/user-facing/components/table/components/table-loading-state.d.ts +3 -3
- package/dist-types/lib/user-facing/components/table/components/table-tag.d.ts +5 -5
- package/dist-types/lib/user-facing/components/table/constants.d.ts +4 -24
- package/dist-types/lib/user-facing/components/table/index.d.ts +10 -18
- package/dist-types/lib/user-facing/components/table/props.d.ts +11 -19
- package/dist-types/lib/user-facing/components/table/table-component.d.ts +2 -2
- package/dist-types/lib/user-facing/components/table/table-styles.d.ts +3 -7
- package/dist-types/lib/user-facing/components/table/table-utilities.d.ts +13 -16
- package/dist-types/lib/user-facing/components/table/types.d.ts +27 -42
- package/dist-types/lib/user-facing/components/table/utils.d.ts +2 -2
- package/dist-types/lib/user-facing/components/text/index.d.ts +1 -0
- package/dist-types/lib/user-facing/components/text/props.d.ts +2 -0
- package/dist-types/lib/user-facing/components/text/utils.d.ts +2 -2
- package/dist-types/lib/user-facing/themes/utils.d.ts +1 -2
- package/package.json +3 -2
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-Cfiz5DdU.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-Cfiz5DdU.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-Cfiz5DdU.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-BHujcI7q.js.map
|
package/dist/{splitPathsBySizeLoader-CwRJ48qL.js.map → splitPathsBySizeLoader-BHujcI7q.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"splitPathsBySizeLoader-
|
|
1
|
+
{"version":3,"file":"splitPathsBySizeLoader-BHujcI7q.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-Cfiz5DdU.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-Ba_jngBn.js.map
|
package/dist/{splitPathsBySizeLoader-BCwHLkQl.js.map → splitPathsBySizeLoader-Ba_jngBn.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"splitPathsBySizeLoader-
|
|
1
|
+
{"version":3,"file":"splitPathsBySizeLoader-Ba_jngBn.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,19 @@
|
|
|
1
|
+
import ReactPlayer from "react-player";
|
|
2
|
+
import type { Ref } from "react";
|
|
3
|
+
export interface VideoComponentProps {
|
|
4
|
+
url?: string;
|
|
5
|
+
autoplay?: boolean;
|
|
6
|
+
controls?: boolean;
|
|
7
|
+
onStart?: () => void;
|
|
8
|
+
onPlay?: () => void;
|
|
9
|
+
onPause?: () => void;
|
|
10
|
+
onEnded?: () => void;
|
|
11
|
+
onReady?: () => void;
|
|
12
|
+
onProgress?: () => void;
|
|
13
|
+
onSeek?: () => void;
|
|
14
|
+
onError?: () => void;
|
|
15
|
+
player?: Ref<ReactPlayer>;
|
|
16
|
+
width?: string | number;
|
|
17
|
+
height?: string | number;
|
|
18
|
+
}
|
|
19
|
+
export default function VideoComponent(props: VideoComponentProps): import("react").JSX.Element;
|
|
@@ -22,14 +22,14 @@ export declare const columnPanelConfig: {
|
|
|
22
22
|
notation: Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", false>;
|
|
23
23
|
minimumFractionDigits: Prop<number, false>;
|
|
24
24
|
maximumFractionDigits: Prop<number, false>;
|
|
25
|
-
currency: Prop<string,
|
|
25
|
+
currency: Prop<string, true>;
|
|
26
26
|
columnType: Prop<"currency", true>;
|
|
27
27
|
} | {
|
|
28
28
|
minimumFractionDigits: Prop<number, false>;
|
|
29
29
|
maximumFractionDigits: Prop<number, false>;
|
|
30
30
|
columnType: Prop<"percentage", true>;
|
|
31
31
|
} | {
|
|
32
|
-
openImageUrl: Prop<boolean,
|
|
32
|
+
openImageUrl: Prop<boolean, true>;
|
|
33
33
|
columnType: Prop<"image", true>;
|
|
34
34
|
} | {
|
|
35
35
|
columnType: Prop<"video", true>;
|
|
@@ -45,14 +45,11 @@ export declare const columnPanelConfig: {
|
|
|
45
45
|
isDisabled: Prop<boolean, false>;
|
|
46
46
|
columnType: Prop<"button", true>;
|
|
47
47
|
} | {
|
|
48
|
-
linkUrl: Prop<string, false>;
|
|
49
48
|
linkLabel: Prop<string, false>;
|
|
50
|
-
openInNewTab: Prop<boolean, false>;
|
|
51
49
|
columnType: Prop<"link", true>;
|
|
52
50
|
} | {
|
|
53
51
|
columnType: Prop<"boolean", true>;
|
|
54
52
|
} | {
|
|
55
|
-
computedValue: Prop<string, false>;
|
|
56
53
|
columnType: Prop<"tags", true>;
|
|
57
54
|
} | {
|
|
58
55
|
displayedValue: Prop<string, false>;
|
|
@@ -111,17 +108,13 @@ export declare const columnPanelConfig: {
|
|
|
111
108
|
cellIconPosition: Prop<IconPosition, true>;
|
|
112
109
|
columnType: Prop<"percentage", true>;
|
|
113
110
|
} | {
|
|
114
|
-
horizontalAlign: Prop<"center" | "left" | "right", true>;
|
|
115
|
-
verticalAlign: Prop<"center" | "bottom" | "top", true>;
|
|
116
|
-
"cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
117
|
-
cellBackground: Prop<string, true>;
|
|
118
111
|
imageSize: Prop<ImageSize, false>;
|
|
119
112
|
imageBorderRadius: Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true>;
|
|
113
|
+
horizontalAlign: Prop<"center" | "left" | "right", true>;
|
|
114
|
+
cellBackground: Prop<string, true>;
|
|
120
115
|
columnType: Prop<"image", true>;
|
|
121
116
|
} | {
|
|
122
117
|
horizontalAlign: Prop<"center" | "left" | "right", true>;
|
|
123
|
-
verticalAlign: Prop<"center" | "bottom" | "top", true>;
|
|
124
|
-
"cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
125
118
|
cellBackground: Prop<string, true>;
|
|
126
119
|
columnType: Prop<"video", true>;
|
|
127
120
|
} | {
|
|
@@ -137,9 +130,9 @@ export declare const columnPanelConfig: {
|
|
|
137
130
|
buttonIcon: Prop<string, false>;
|
|
138
131
|
buttonIconPosition: Prop<IconPosition, true>;
|
|
139
132
|
buttonVariant: Prop<ButtonVariant, true>;
|
|
133
|
+
buttonTextStyle: Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
140
134
|
buttonBackgroundColor: Prop<string, false>;
|
|
141
135
|
buttonBorder: Prop<import("@superblocksteam/library-shared/types").PerSideBorder, true>;
|
|
142
|
-
buttonLabelColor: Prop<string, false>;
|
|
143
136
|
columnType: Prop<"button", true>;
|
|
144
137
|
} | {
|
|
145
138
|
horizontalAlign: Prop<"center" | "left" | "right", true>;
|
|
@@ -148,18 +141,17 @@ export declare const columnPanelConfig: {
|
|
|
148
141
|
cellBackground: Prop<string, true>;
|
|
149
142
|
columnType: Prop<"link", true>;
|
|
150
143
|
} | {
|
|
151
|
-
booleanStyleFalse: Prop<BooleanStyleFalse, true>;
|
|
152
144
|
horizontalAlign: Prop<"center" | "left" | "right", true>;
|
|
153
145
|
verticalAlign: Prop<"center" | "bottom" | "top", true>;
|
|
154
|
-
"cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
155
146
|
cellBackground: Prop<string, true>;
|
|
147
|
+
booleanStyleFalse: Prop<BooleanStyleFalse, true>;
|
|
156
148
|
columnType: Prop<"boolean", true>;
|
|
157
149
|
} | {
|
|
158
|
-
tagDisplayConfig: Prop<any, false>;
|
|
159
150
|
horizontalAlign: Prop<"center" | "left" | "right", true>;
|
|
160
151
|
verticalAlign: Prop<"center" | "bottom" | "top", true>;
|
|
161
|
-
"cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
162
152
|
cellBackground: Prop<string, true>;
|
|
153
|
+
tagsWrap: Prop<boolean, false>;
|
|
154
|
+
tagDisplayConfig: Prop<any, false>;
|
|
163
155
|
columnType: Prop<"tags", true>;
|
|
164
156
|
} | {
|
|
165
157
|
horizontalAlign: Prop<"center" | "left" | "right", true>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type {
|
|
2
|
+
import type { RowDensity, SingleCellProperties } from "../types.js";
|
|
3
3
|
import type { TextStyleWithVariant } from "@superblocksteam/library-shared/types";
|
|
4
4
|
declare const AutoToolTipComponent: (props: {
|
|
5
5
|
isHidden?: boolean;
|
|
6
6
|
children: React.ReactNode;
|
|
7
7
|
title: string;
|
|
8
8
|
cellProperties: SingleCellProperties;
|
|
9
|
-
|
|
9
|
+
rowDensity: RowDensity;
|
|
10
10
|
handleCellFocus?: () => void;
|
|
11
11
|
maxLinesPerRow?: number;
|
|
12
12
|
hasLeftIcon?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { TableCellProps } from "../table-utilities.jsx";
|
|
3
|
-
import type {
|
|
3
|
+
import type { RowDensity, EditProps } from "../types.js";
|
|
4
4
|
import type { UserAccessibleTheme } from "@superblocksteam/library-shared/types";
|
|
5
5
|
import type { RefObject } from "react";
|
|
6
6
|
declare const EditCell: (props: {
|
|
@@ -8,7 +8,7 @@ declare const EditCell: (props: {
|
|
|
8
8
|
editProps: EditProps;
|
|
9
9
|
value: any;
|
|
10
10
|
tableName: string;
|
|
11
|
-
|
|
11
|
+
rowDensity: RowDensity;
|
|
12
12
|
cellProps: TableCellProps;
|
|
13
13
|
theme: UserAccessibleTheme;
|
|
14
14
|
}) => React.JSX.Element;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type
|
|
2
|
+
import { type SingleCellProperties, type RowDensity, type EditProps } from "../types.js";
|
|
3
3
|
declare const EditCheckboxCell: (props: {
|
|
4
4
|
editProps: EditProps;
|
|
5
5
|
value: any;
|
|
6
6
|
readModeComponent: JSX.Element;
|
|
7
|
-
|
|
7
|
+
rowDensity: RowDensity;
|
|
8
8
|
cellProperties: SingleCellProperties;
|
|
9
9
|
isFocused: boolean;
|
|
10
10
|
}) => React.JSX.Element;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { TableCellProps } from "../table-utilities.jsx";
|
|
3
|
-
import type {
|
|
3
|
+
import type { RowDensity, EditProps } from "../types.js";
|
|
4
4
|
import type { Position } from "./edit-utils.js";
|
|
5
5
|
declare const EditDateCell: (props: {
|
|
6
6
|
editProps: EditProps;
|
|
7
7
|
value: any;
|
|
8
8
|
inputPosition: Position;
|
|
9
|
-
|
|
9
|
+
rowDensity: RowDensity;
|
|
10
10
|
cellProps: TableCellProps;
|
|
11
11
|
}) => React.JSX.Element;
|
|
12
12
|
export default EditDateCell;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { TableCellProps } from "../table-utilities.jsx";
|
|
3
|
-
import type {
|
|
3
|
+
import type { RowDensity, EditProps } from "../types.js";
|
|
4
4
|
import type { Position } from "./edit-utils.js";
|
|
5
5
|
import type { RefObject } from "react";
|
|
6
6
|
declare const EditInputCell: (props: {
|
|
@@ -8,7 +8,7 @@ declare const EditInputCell: (props: {
|
|
|
8
8
|
value: any;
|
|
9
9
|
targetCellRef: RefObject<HTMLElement>;
|
|
10
10
|
inputPosition: Position;
|
|
11
|
-
|
|
11
|
+
rowDensity: RowDensity;
|
|
12
12
|
cellProps: TableCellProps;
|
|
13
13
|
}) => React.JSX.Element | null;
|
|
14
14
|
export default EditInputCell;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { TableCellProps } from "../table-utilities.jsx";
|
|
2
|
-
import type {
|
|
2
|
+
import type { RowDensity, EditProps } from "../types.js";
|
|
3
3
|
import type { Position } from "./edit-utils.js";
|
|
4
4
|
import type { UserAccessibleTheme } from "@superblocksteam/library-shared/types";
|
|
5
5
|
declare const EditMultiSelectCell: (props: {
|
|
6
6
|
editProps: EditProps;
|
|
7
7
|
value: any;
|
|
8
8
|
inputPosition: Position;
|
|
9
|
-
|
|
9
|
+
rowDensity: RowDensity;
|
|
10
10
|
cellProps: TableCellProps;
|
|
11
11
|
theme: UserAccessibleTheme;
|
|
12
12
|
}) => import("react").JSX.Element;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { TableCellProps } from "../table-utilities.jsx";
|
|
2
|
-
import type {
|
|
2
|
+
import type { RowDensity, EditProps } from "../types.js";
|
|
3
3
|
import type { Position } from "./edit-utils.js";
|
|
4
4
|
import type { UserAccessibleTheme } from "@superblocksteam/library-shared/types";
|
|
5
5
|
declare const EditSingleSelectCell: (props: {
|
|
6
6
|
editProps: EditProps;
|
|
7
7
|
value: any;
|
|
8
8
|
inputPosition: Position;
|
|
9
|
-
|
|
9
|
+
rowDensity: RowDensity;
|
|
10
10
|
cellProps: TableCellProps;
|
|
11
11
|
theme: UserAccessibleTheme;
|
|
12
12
|
}) => import("react").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SingleCellProperties,
|
|
1
|
+
import type { SingleCellProperties, RowDensity } from "../types.js";
|
|
2
2
|
export type Position = {
|
|
3
3
|
top: undefined | number;
|
|
4
4
|
left: undefined | number;
|
|
@@ -18,7 +18,7 @@ export declare const extractDropdownOptions: (options: string | Array<string | R
|
|
|
18
18
|
}>;
|
|
19
19
|
type Props = {
|
|
20
20
|
$position: Position;
|
|
21
|
-
$
|
|
21
|
+
$rowDensity: RowDensity;
|
|
22
22
|
cellProperties: SingleCellProperties;
|
|
23
23
|
clearable?: boolean;
|
|
24
24
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { RowDensity, type SingleCellProperties } from "../types.js";
|
|
3
3
|
export declare const EditableLinkCell: (props: {
|
|
4
4
|
url: string;
|
|
5
5
|
label: string;
|
|
@@ -8,7 +8,7 @@ export declare const EditableLinkCell: (props: {
|
|
|
8
8
|
isEdited: boolean;
|
|
9
9
|
value: any;
|
|
10
10
|
cellProperties: SingleCellProperties;
|
|
11
|
-
|
|
11
|
+
rowDensity: RowDensity;
|
|
12
12
|
isFocused: boolean;
|
|
13
13
|
position: {
|
|
14
14
|
currentRowIndex: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { TableSizes } from "../constants.js";
|
|
3
|
-
import type { ColumnProperties,
|
|
3
|
+
import type { ColumnProperties, RowDensity, ReactTableColumnProps } from "../types.js";
|
|
4
4
|
import type { TextStyleWithVariant, UserAccessibleTheme, PerCornerBorderRadius, PerSideBorder } from "@superblocksteam/library-shared/types";
|
|
5
5
|
interface TableHeaderProps {
|
|
6
6
|
isSearchable: boolean;
|
|
@@ -8,7 +8,7 @@ interface TableHeaderProps {
|
|
|
8
8
|
searchTableData: (searchKey: any) => void;
|
|
9
9
|
tableSizes: TableSizes;
|
|
10
10
|
title: string;
|
|
11
|
-
|
|
11
|
+
rowDensity: RowDensity;
|
|
12
12
|
columns: ReactTableColumnProps[];
|
|
13
13
|
updateProperty: (property: string, value: any) => void;
|
|
14
14
|
hiddenColumns?: string[];
|
|
@@ -52,7 +52,7 @@ export declare const TableHeaderCell: (props: {
|
|
|
52
52
|
sourceId: string;
|
|
53
53
|
columnFreezes?: Record<string, boolean>;
|
|
54
54
|
showResizer: boolean;
|
|
55
|
-
|
|
55
|
+
rowDensity?: RowDensity;
|
|
56
56
|
handleHeaderDropped: (index: number, position: number) => void;
|
|
57
57
|
mutableHeaderDragRef: React.MutableRefObject<number>;
|
|
58
58
|
columnHeaderProps?: TextStyleWithVariant;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type {
|
|
2
|
+
import type { RowDensity } from "../types.js";
|
|
3
3
|
import type { UserAccessibleTheme } from "@superblocksteam/library-shared/types";
|
|
4
|
-
declare const TableLoading: ({ numRows,
|
|
4
|
+
declare const TableLoading: ({ numRows, rowDensity, width, dataTest, theme, }: {
|
|
5
5
|
numRows: number;
|
|
6
|
-
|
|
6
|
+
rowDensity: RowDensity;
|
|
7
7
|
width: number | string;
|
|
8
8
|
dataTest: string;
|
|
9
9
|
theme: UserAccessibleTheme;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { RowDensity } from "../types.js";
|
|
3
3
|
import type { MouseEventHandler } from "react";
|
|
4
4
|
/** the minimum horizontal space that should be available to a tag for it to look ok */
|
|
5
5
|
export declare const MIN_TAG_WIDTH = 32;
|
|
@@ -10,16 +10,16 @@ interface TableTagProps {
|
|
|
10
10
|
fgColor: string;
|
|
11
11
|
borderColor: string;
|
|
12
12
|
showTooltip?: boolean;
|
|
13
|
-
|
|
13
|
+
rowDensity?: RowDensity;
|
|
14
14
|
isWrapped?: boolean;
|
|
15
15
|
}
|
|
16
|
-
export declare const TableTag: ({ text, bgColor, fgColor, borderColor, showTooltip,
|
|
16
|
+
export declare const TableTag: ({ text, bgColor, fgColor, borderColor, showTooltip, rowDensity, isWrapped, }: TableTagProps) => React.JSX.Element;
|
|
17
17
|
interface TableTagsShowMoreProps {
|
|
18
18
|
count: number;
|
|
19
19
|
onMouseEnter?: MouseEventHandler<HTMLElement>;
|
|
20
20
|
onMouseLeave?: MouseEventHandler<HTMLElement>;
|
|
21
|
-
|
|
21
|
+
rowDensity: RowDensity;
|
|
22
22
|
isWrapped?: boolean;
|
|
23
23
|
}
|
|
24
|
-
export declare const TableTagsShowMore: ({ count, onMouseEnter, onMouseLeave,
|
|
24
|
+
export declare const TableTagsShowMore: ({ count, onMouseEnter, onMouseLeave, rowDensity, isWrapped, }: TableTagsShowMoreProps) => React.JSX.Element;
|
|
25
25
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type HorizontalAlignment, type VerticalAlignment, IconSize, EditInputType } from "./types.js";
|
|
2
2
|
import type { Typographies } from "@superblocksteam/shared";
|
|
3
3
|
export type TableSizes = {
|
|
4
4
|
COLUMN_HEADER_HEIGHT: number;
|
|
@@ -12,29 +12,9 @@ export type TableSizes = {
|
|
|
12
12
|
LINK_MENU_ICON_SIZE: IconSize;
|
|
13
13
|
ROW_PADDING: number;
|
|
14
14
|
};
|
|
15
|
-
export declare const JUSTIFY_CONTENT:
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
RIGHT: string;
|
|
19
|
-
};
|
|
20
|
-
export declare const ALIGN_ITEMS: {
|
|
21
|
-
TOP: string;
|
|
22
|
-
CENTER: string;
|
|
23
|
-
BOTTOM: string;
|
|
24
|
-
};
|
|
25
|
-
export declare const TEXT_ALIGN: {
|
|
26
|
-
LEFT: string;
|
|
27
|
-
CENTER: string;
|
|
28
|
-
RIGHT: string;
|
|
29
|
-
};
|
|
30
|
-
export declare const TEXT_SIZES: Record<TextSizes, string>;
|
|
31
|
-
export declare const LEGACY_DEFAULT_CELL_TEXT_SIZE: TextSizes;
|
|
32
|
-
export declare enum FontStyleTypes {
|
|
33
|
-
BOLD = "BOLD",
|
|
34
|
-
ITALIC = "ITALIC",
|
|
35
|
-
REGULAR = "REGULAR",
|
|
36
|
-
UNDERLINE = "UNDERLINE"
|
|
37
|
-
}
|
|
15
|
+
export declare const JUSTIFY_CONTENT: Record<HorizontalAlignment, string>;
|
|
16
|
+
export declare const ALIGN_ITEMS: Record<VerticalAlignment, string>;
|
|
17
|
+
export declare const TEXT_ALIGN: Record<HorizontalAlignment, string>;
|
|
38
18
|
export declare const TABLE_SIZES: {
|
|
39
19
|
[key: string]: TableSizes;
|
|
40
20
|
};
|
|
@@ -22,14 +22,14 @@ export declare const SbTable: import("react").FC<import("../../properties-panel/
|
|
|
22
22
|
notation: import("../../properties-panel/props-builder.js").Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", false>;
|
|
23
23
|
minimumFractionDigits: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
24
24
|
maximumFractionDigits: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
25
|
-
currency: import("../../properties-panel/props-builder.js").Prop<string,
|
|
25
|
+
currency: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
26
26
|
columnType: import("../../properties-panel/props-builder.js").Prop<"currency", true>;
|
|
27
27
|
} | {
|
|
28
28
|
minimumFractionDigits: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
29
29
|
maximumFractionDigits: import("../../properties-panel/props-builder.js").Prop<number, false>;
|
|
30
30
|
columnType: import("../../properties-panel/props-builder.js").Prop<"percentage", true>;
|
|
31
31
|
} | {
|
|
32
|
-
openImageUrl: import("../../properties-panel/props-builder.js").Prop<boolean,
|
|
32
|
+
openImageUrl: import("../../properties-panel/props-builder.js").Prop<boolean, true>;
|
|
33
33
|
columnType: import("../../properties-panel/props-builder.js").Prop<"image", true>;
|
|
34
34
|
} | {
|
|
35
35
|
columnType: import("../../properties-panel/props-builder.js").Prop<"video", true>;
|
|
@@ -45,14 +45,11 @@ export declare const SbTable: import("react").FC<import("../../properties-panel/
|
|
|
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
|
} | {
|
|
48
|
-
linkUrl: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
49
48
|
linkLabel: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
50
|
-
openInNewTab: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
|
|
51
49
|
columnType: import("../../properties-panel/props-builder.js").Prop<"link", true>;
|
|
52
50
|
} | {
|
|
53
51
|
columnType: import("../../properties-panel/props-builder.js").Prop<"boolean", true>;
|
|
54
52
|
} | {
|
|
55
|
-
computedValue: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
56
53
|
columnType: import("../../properties-panel/props-builder.js").Prop<"tags", true>;
|
|
57
54
|
} | {
|
|
58
55
|
displayedValue: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
@@ -111,17 +108,13 @@ export declare const SbTable: import("react").FC<import("../../properties-panel/
|
|
|
111
108
|
cellIconPosition: import("../../properties-panel/props-builder.js").Prop<import("../../icons/constants.js").IconPosition, true>;
|
|
112
109
|
columnType: import("../../properties-panel/props-builder.js").Prop<"percentage", true>;
|
|
113
110
|
} | {
|
|
114
|
-
horizontalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "left" | "right", true>;
|
|
115
|
-
verticalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "bottom" | "top", true>;
|
|
116
|
-
"cellProps.textStyle": import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
117
|
-
cellBackground: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
118
111
|
imageSize: import("../../properties-panel/props-builder.js").Prop<import("./types.js").ImageSize, false>;
|
|
119
112
|
imageBorderRadius: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true>;
|
|
113
|
+
horizontalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "left" | "right", true>;
|
|
114
|
+
cellBackground: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
120
115
|
columnType: import("../../properties-panel/props-builder.js").Prop<"image", true>;
|
|
121
116
|
} | {
|
|
122
117
|
horizontalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "left" | "right", true>;
|
|
123
|
-
verticalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "bottom" | "top", true>;
|
|
124
|
-
"cellProps.textStyle": import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
125
118
|
cellBackground: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
126
119
|
columnType: import("../../properties-panel/props-builder.js").Prop<"video", true>;
|
|
127
120
|
} | {
|
|
@@ -137,9 +130,9 @@ export declare const SbTable: import("react").FC<import("../../properties-panel/
|
|
|
137
130
|
buttonIcon: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
138
131
|
buttonIconPosition: import("../../properties-panel/props-builder.js").Prop<import("../../icons/constants.js").IconPosition, true>;
|
|
139
132
|
buttonVariant: import("../../properties-panel/props-builder.js").Prop<import("../button/props.js").ButtonVariant, true>;
|
|
133
|
+
buttonTextStyle: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
140
134
|
buttonBackgroundColor: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
141
135
|
buttonBorder: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerSideBorder, true>;
|
|
142
|
-
buttonLabelColor: import("../../properties-panel/props-builder.js").Prop<string, false>;
|
|
143
136
|
columnType: import("../../properties-panel/props-builder.js").Prop<"button", true>;
|
|
144
137
|
} | {
|
|
145
138
|
horizontalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "left" | "right", true>;
|
|
@@ -148,18 +141,17 @@ export declare const SbTable: import("react").FC<import("../../properties-panel/
|
|
|
148
141
|
cellBackground: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
149
142
|
columnType: import("../../properties-panel/props-builder.js").Prop<"link", true>;
|
|
150
143
|
} | {
|
|
151
|
-
booleanStyleFalse: import("../../properties-panel/props-builder.js").Prop<import("./types.js").BooleanStyleFalse, true>;
|
|
152
144
|
horizontalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "left" | "right", true>;
|
|
153
145
|
verticalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "bottom" | "top", true>;
|
|
154
|
-
"cellProps.textStyle": import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
155
146
|
cellBackground: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
147
|
+
booleanStyleFalse: import("../../properties-panel/props-builder.js").Prop<import("./types.js").BooleanStyleFalse, true>;
|
|
156
148
|
columnType: import("../../properties-panel/props-builder.js").Prop<"boolean", true>;
|
|
157
149
|
} | {
|
|
158
|
-
tagDisplayConfig: import("../../properties-panel/props-builder.js").Prop<any, false>;
|
|
159
150
|
horizontalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "left" | "right", true>;
|
|
160
151
|
verticalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "bottom" | "top", true>;
|
|
161
|
-
"cellProps.textStyle": import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
|
|
162
152
|
cellBackground: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
153
|
+
tagsWrap: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
|
|
154
|
+
tagDisplayConfig: import("../../properties-panel/props-builder.js").Prop<any, false>;
|
|
163
155
|
columnType: import("../../properties-panel/props-builder.js").Prop<"tags", true>;
|
|
164
156
|
} | {
|
|
165
157
|
horizontalAlign: import("../../properties-panel/props-builder.js").Prop<"center" | "left" | "right", true>;
|
|
@@ -218,8 +210,8 @@ export declare const SbTable: import("react").FC<import("../../properties-panel/
|
|
|
218
210
|
selectedRowBackgroundColor: import("../../properties-panel/props-builder.js").Prop<string, true>;
|
|
219
211
|
border: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerSideBorder, false>;
|
|
220
212
|
borderRadius: import("../../properties-panel/props-builder.js").Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true>;
|
|
221
|
-
|
|
222
|
-
maxLinesPerRow: import("../../properties-panel/props-builder.js").Prop<number,
|
|
213
|
+
rowDensity: import("../../properties-panel/props-builder.js").Prop<import("./types.js").RowDensity, true>;
|
|
214
|
+
maxLinesPerRow: import("../../properties-panel/props-builder.js").Prop<number, true>;
|
|
223
215
|
animateLoading: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
|
|
224
216
|
isVisible: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
|
|
225
217
|
collapseWhenHidden: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
|