@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.
Files changed (43) hide show
  1. package/dist/{allPaths-DlpkA9Lm.js → allPaths-C6qeZ4_p.js} +2 -2
  2. package/dist/{allPaths-DlpkA9Lm.js.map → allPaths-C6qeZ4_p.js.map} +1 -1
  3. package/dist/{allPaths-BedQCjCV.js → allPaths-Dsgw01PB.js} +2 -2
  4. package/dist/{allPaths-BedQCjCV.js.map → allPaths-Dsgw01PB.js.map} +1 -1
  5. package/dist/{allPathsLoader-DBf6fkwt.js → allPathsLoader-4bTX5Z5s.js} +3 -3
  6. package/dist/{allPathsLoader-Ds4-eGvS.js.map → allPathsLoader-4bTX5Z5s.js.map} +1 -1
  7. package/dist/{allPathsLoader-Ds4-eGvS.js → allPathsLoader-BjTp2_ti.js} +3 -3
  8. package/dist/{allPathsLoader-DBf6fkwt.js.map → allPathsLoader-BjTp2_ti.js.map} +1 -1
  9. package/dist/{index-D3flom68.js → index-Cfiz5DdU.js} +9473 -3776
  10. package/dist/{index-D3flom68.js.map → index-Cfiz5DdU.js.map} +1 -1
  11. package/dist/index.js +2 -2
  12. package/dist/{splitPathsBySizeLoader-CwRJ48qL.js → splitPathsBySizeLoader-BHujcI7q.js} +2 -2
  13. package/dist/{splitPathsBySizeLoader-CwRJ48qL.js.map → splitPathsBySizeLoader-BHujcI7q.js.map} +1 -1
  14. package/dist/{splitPathsBySizeLoader-BCwHLkQl.js → splitPathsBySizeLoader-Ba_jngBn.js} +2 -2
  15. package/dist/{splitPathsBySizeLoader-BCwHLkQl.js.map → splitPathsBySizeLoader-Ba_jngBn.js.map} +1 -1
  16. package/dist-types/lib/user-facing/component-base/components/video.d.ts +19 -0
  17. package/dist-types/lib/user-facing/components/table/column-properties-panel.d.ts +8 -16
  18. package/dist-types/lib/user-facing/components/table/components/autotooltip-component.d.ts +2 -2
  19. package/dist-types/lib/user-facing/components/table/components/edit-cell.d.ts +2 -2
  20. package/dist-types/lib/user-facing/components/table/components/edit-checkbox-cell.d.ts +2 -2
  21. package/dist-types/lib/user-facing/components/table/components/edit-date-cell.d.ts +2 -2
  22. package/dist-types/lib/user-facing/components/table/components/edit-input-cell.d.ts +2 -2
  23. package/dist-types/lib/user-facing/components/table/components/edit-multi-select-cell.d.ts +2 -2
  24. package/dist-types/lib/user-facing/components/table/components/edit-single-select-cell.d.ts +2 -2
  25. package/dist-types/lib/user-facing/components/table/components/edit-utils.d.ts +2 -2
  26. package/dist-types/lib/user-facing/components/table/components/editable-link-cell.d.ts +2 -2
  27. package/dist-types/lib/user-facing/components/table/components/popover-video.d.ts +1 -1
  28. package/dist-types/lib/user-facing/components/table/components/table-header.d.ts +3 -3
  29. package/dist-types/lib/user-facing/components/table/components/table-loading-state.d.ts +3 -3
  30. package/dist-types/lib/user-facing/components/table/components/table-tag.d.ts +5 -5
  31. package/dist-types/lib/user-facing/components/table/constants.d.ts +4 -24
  32. package/dist-types/lib/user-facing/components/table/index.d.ts +10 -18
  33. package/dist-types/lib/user-facing/components/table/props.d.ts +11 -19
  34. package/dist-types/lib/user-facing/components/table/table-component.d.ts +2 -2
  35. package/dist-types/lib/user-facing/components/table/table-styles.d.ts +3 -7
  36. package/dist-types/lib/user-facing/components/table/table-utilities.d.ts +13 -16
  37. package/dist-types/lib/user-facing/components/table/types.d.ts +27 -42
  38. package/dist-types/lib/user-facing/components/table/utils.d.ts +2 -2
  39. package/dist-types/lib/user-facing/components/text/index.d.ts +1 -0
  40. package/dist-types/lib/user-facing/components/text/props.d.ts +2 -0
  41. package/dist-types/lib/user-facing/components/text/utils.d.ts +2 -2
  42. package/dist-types/lib/user-facing/themes/utils.d.ts +1 -2
  43. package/package.json +3 -2
@@ -1,5 +1,5 @@
1
1
  import { Section, Prop } from "../../properties-panel/props-builder.js";
2
- import { CompactMode } from "./types.js";
2
+ import { RowDensity } from "./types.js";
3
3
  import type { UnknownRow, PaginationType } from "./types.js";
4
4
  export declare const propertiesDefinition: {
5
5
  general: Section<Record<string, Prop<any, any>> & {
@@ -25,14 +25,14 @@ export declare const propertiesDefinition: {
25
25
  notation: Prop<"compact" | "standard" | "scientific" | "engineering" | "unformatted", false>;
26
26
  minimumFractionDigits: Prop<number, false>;
27
27
  maximumFractionDigits: Prop<number, false>;
28
- currency: Prop<string, false>;
28
+ currency: Prop<string, true>;
29
29
  columnType: Prop<"currency", true>;
30
30
  } | {
31
31
  minimumFractionDigits: Prop<number, false>;
32
32
  maximumFractionDigits: Prop<number, false>;
33
33
  columnType: Prop<"percentage", true>;
34
34
  } | {
35
- openImageUrl: Prop<boolean, false>;
35
+ openImageUrl: Prop<boolean, true>;
36
36
  columnType: Prop<"image", true>;
37
37
  } | {
38
38
  columnType: Prop<"video", true>;
@@ -48,14 +48,11 @@ export declare const propertiesDefinition: {
48
48
  isDisabled: Prop<boolean, false>;
49
49
  columnType: Prop<"button", true>;
50
50
  } | {
51
- linkUrl: Prop<string, false>;
52
51
  linkLabel: Prop<string, false>;
53
- openInNewTab: Prop<boolean, false>;
54
52
  columnType: Prop<"link", true>;
55
53
  } | {
56
54
  columnType: Prop<"boolean", true>;
57
55
  } | {
58
- computedValue: Prop<string, false>;
59
56
  columnType: Prop<"tags", true>;
60
57
  } | {
61
58
  displayedValue: Prop<string, false>;
@@ -114,17 +111,13 @@ export declare const propertiesDefinition: {
114
111
  cellIconPosition: Prop<import("../../icons/constants.js").IconPosition, true>;
115
112
  columnType: Prop<"percentage", true>;
116
113
  } | {
117
- horizontalAlign: Prop<"center" | "left" | "right", true>;
118
- verticalAlign: Prop<"center" | "bottom" | "top", true>;
119
- "cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
120
- cellBackground: Prop<string, true>;
121
114
  imageSize: Prop<import("./types.js").ImageSize, false>;
122
115
  imageBorderRadius: Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true>;
116
+ horizontalAlign: Prop<"center" | "left" | "right", true>;
117
+ cellBackground: Prop<string, true>;
123
118
  columnType: Prop<"image", true>;
124
119
  } | {
125
120
  horizontalAlign: Prop<"center" | "left" | "right", true>;
126
- verticalAlign: Prop<"center" | "bottom" | "top", true>;
127
- "cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
128
121
  cellBackground: Prop<string, true>;
129
122
  columnType: Prop<"video", true>;
130
123
  } | {
@@ -140,9 +133,9 @@ export declare const propertiesDefinition: {
140
133
  buttonIcon: Prop<string, false>;
141
134
  buttonIconPosition: Prop<import("../../icons/constants.js").IconPosition, true>;
142
135
  buttonVariant: Prop<import("../button/props.js").ButtonVariant, true>;
136
+ buttonTextStyle: Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
143
137
  buttonBackgroundColor: Prop<string, false>;
144
138
  buttonBorder: Prop<import("@superblocksteam/library-shared/types").PerSideBorder, true>;
145
- buttonLabelColor: Prop<string, false>;
146
139
  columnType: Prop<"button", true>;
147
140
  } | {
148
141
  horizontalAlign: Prop<"center" | "left" | "right", true>;
@@ -151,18 +144,17 @@ export declare const propertiesDefinition: {
151
144
  cellBackground: Prop<string, true>;
152
145
  columnType: Prop<"link", true>;
153
146
  } | {
154
- booleanStyleFalse: Prop<import("./types.js").BooleanStyleFalse, true>;
155
147
  horizontalAlign: Prop<"center" | "left" | "right", true>;
156
148
  verticalAlign: Prop<"center" | "bottom" | "top", true>;
157
- "cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
158
149
  cellBackground: Prop<string, true>;
150
+ booleanStyleFalse: Prop<import("./types.js").BooleanStyleFalse, true>;
159
151
  columnType: Prop<"boolean", true>;
160
152
  } | {
161
- tagDisplayConfig: Prop<any, false>;
162
153
  horizontalAlign: Prop<"center" | "left" | "right", true>;
163
154
  verticalAlign: Prop<"center" | "bottom" | "top", true>;
164
- "cellProps.textStyle": Prop<import("@superblocksteam/library-shared/types").TextStyleWithVariant, true>;
165
155
  cellBackground: Prop<string, true>;
156
+ tagsWrap: Prop<boolean, false>;
157
+ tagDisplayConfig: Prop<any, false>;
166
158
  columnType: Prop<"tags", true>;
167
159
  } | {
168
160
  horizontalAlign: Prop<"center" | "left" | "right", true>;
@@ -221,8 +213,8 @@ export declare const propertiesDefinition: {
221
213
  selectedRowBackgroundColor: Prop<string, true>;
222
214
  border: Prop<import("@superblocksteam/library-shared/types").PerSideBorder, false>;
223
215
  borderRadius: Prop<import("@superblocksteam/library-shared/types").PerCornerBorderRadius, true>;
224
- compactMode: Prop<CompactMode, false>;
225
- maxLinesPerRow: Prop<number, false>;
216
+ rowDensity: Prop<RowDensity, true>;
217
+ maxLinesPerRow: Prop<number, true>;
226
218
  animateLoading: Prop<boolean, false>;
227
219
  isVisible: Prop<boolean, false>;
228
220
  collapseWhenHidden: Prop<boolean, false>;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import type { InsertRowOptions } from "./constants.js";
3
- import type { ColumnFilter, CompactMode, PaginationType, ReactTableColumnProps, TableFilters } from "./types.js";
3
+ import type { ColumnFilter, RowDensity, PaginationType, ReactTableColumnProps, TableFilters } from "./types.js";
4
4
  import type { Dim, DimModes } from "@superblocksteam/library-shared";
5
5
  import type { TextStyleWithVariant, UserAccessibleTheme, PerCornerBorderRadius, PerSideBorder } from "@superblocksteam/library-shared/types";
6
6
  export interface TableProps {
@@ -55,7 +55,7 @@ export interface TableProps {
55
55
  filters?: TableFilters;
56
56
  setColumnFilter: (columnId: string, filter: ColumnFilter) => void;
57
57
  columns: ReactTableColumnProps[];
58
- compactMode?: CompactMode;
58
+ rowDensity?: RowDensity;
59
59
  isDownloadable: boolean;
60
60
  isFilterable: boolean;
61
61
  showColumnBorders: boolean;
@@ -1,4 +1,4 @@
1
- import { CompactMode } from "./types.js";
1
+ import { RowDensity } from "./types.js";
2
2
  import type { TableSizes } from "./constants.js";
3
3
  import type { SingleCellProperties, ColumnProperties } from "./types.js";
4
4
  import type { UserAccessibleTheme } from "@superblocksteam/library-shared/types";
@@ -17,19 +17,15 @@ export declare const TableCSSVariables: {
17
17
  rowHoverBgColor: string;
18
18
  };
19
19
  export declare const TableWrapper: import("styled-components").StyledComponent<"div", any, TableWrapperProps, never>;
20
- export declare const buildCellStyles: ({ cellTextStyle, fontStyle, textColor, horizontalAlign, verticalAlign, textSize, compactMode, }: {
20
+ export declare const buildCellStyles: ({ cellTextStyle, horizontalAlign, verticalAlign, }: {
21
21
  cellTextStyle?: SingleCellProperties["cellTextStyle"];
22
- fontStyle?: SingleCellProperties["fontStyle"];
23
- textColor?: SingleCellProperties["textColor"];
24
22
  horizontalAlign?: SingleCellProperties["horizontalAlign"];
25
23
  verticalAlign?: SingleCellProperties["verticalAlign"];
26
- textSize?: SingleCellProperties["textSize"];
27
- compactMode: CompactMode;
28
24
  }) => CSSProperties;
29
25
  export declare const CELL_WRAPPER_HOR_MARGIN = 8;
30
26
  interface CellWrapperProps {
31
27
  cellProperties: SingleCellProperties;
32
- compactMode: CompactMode;
28
+ rowDensity: RowDensity;
33
29
  hasLeftIcon?: boolean;
34
30
  hasRightIcon?: boolean;
35
31
  isDropdownType?: boolean;
@@ -1,7 +1,6 @@
1
1
  import React from "react";
2
- import { CellAlignmentTypes, TextSizes, VerticalAlignmentTypes } from "./types.js";
3
- import type { CompactMode, BooleanStyleFalse, UnknownRows } from "./types.js";
4
- import type { ColumnProperties, EditProps, SingleCellProperties, TagDisplayConfig, TagsColorAssignment } from "./types.js";
2
+ import { HorizontalAlignment, VerticalAlignment } from "./types.js";
3
+ import type { ColumnProperties, EditProps, SingleCellProperties, TagDisplayConfig, TagsColorAssignment, RowDensity, BooleanStyleFalse, UnknownRow } from "./types.js";
5
4
  import type { IconPosition } from "../../icons/constants.js";
6
5
  import type { ButtonVariant } from "../button/props.js";
7
6
  import type { Dim } from "@superblocksteam/library-shared";
@@ -15,7 +14,7 @@ interface TableTagsProps {
15
14
  tagValues: unknown[];
16
15
  tagsColorAssignment?: TagsColorAssignment;
17
16
  tagsCustomColorAssignment?: Record<string, TagDisplayConfig>;
18
- compactMode: CompactMode;
17
+ rowDensity: RowDensity;
19
18
  handleCellFocus?: () => void;
20
19
  maxWidth?: number;
21
20
  maxLinesPerRow?: number;
@@ -26,7 +25,7 @@ export type TableCellProps = SingleCellProperties & {
26
25
  tagsColorAssignment?: TagsColorAssignment;
27
26
  tagsCustomColorAssignment?: Record<string, TagDisplayConfig>;
28
27
  booleanStyleFalse?: BooleanStyleFalse;
29
- compactMode: CompactMode;
28
+ rowDensity: RowDensity;
30
29
  isFocused: boolean;
31
30
  isMultiselecting: boolean;
32
31
  };
@@ -36,7 +35,7 @@ interface CellPosition {
36
35
  columnId: string;
37
36
  }
38
37
  export declare const sanitizeCellValue: (cellValue: any) => string;
39
- export declare const TagsCell: ({ isHidden, cellProperties, tagValues, tagsColorAssignment, tagsCustomColorAssignment, compactMode, handleCellFocus, maxWidth, maxLinesPerRow, theme, }: TableTagsProps) => React.JSX.Element;
38
+ export declare const TagsCell: ({ isHidden, cellProperties, tagValues, tagsColorAssignment, tagsCustomColorAssignment, rowDensity, handleCellFocus, maxWidth, maxLinesPerRow, theme, }: TableTagsProps) => React.JSX.Element;
40
39
  interface ColumnAction {
41
40
  label: string;
42
41
  id: string;
@@ -62,7 +61,7 @@ export declare const EditableCell: (props: {
62
61
  cellProps: TableCellProps;
63
62
  editProps: EditProps;
64
63
  tableName: string;
65
- compactMode: CompactMode;
64
+ rowDensity: RowDensity;
66
65
  position: CellPosition;
67
66
  isInserted: boolean;
68
67
  columnName: string;
@@ -92,11 +91,11 @@ interface TableButtonProps {
92
91
  backgroundColor?: string;
93
92
  buttonBorder?: PerSideBorder;
94
93
  buttonVariant: ButtonVariant;
95
- buttonLabelColor: string | undefined;
94
+ buttonTextStyle?: TextStyleWithVariant;
96
95
  cellIcon?: string;
97
96
  cellIconPosition: IconPosition;
98
97
  handleRowSelect: (rowIndex: number) => void;
99
- compactMode: CompactMode;
98
+ rowDensity: RowDensity;
100
99
  theme: UserAccessibleTheme;
101
100
  buttonLabel: string;
102
101
  onClick: (onComplete: () => void) => void;
@@ -105,10 +104,11 @@ export declare const TableButton: (props: TableButtonProps) => React.JSX.Element
105
104
  export declare const renderLink: (props: {
106
105
  isHidden: boolean;
107
106
  cellProperties: SingleCellProperties;
108
- compactMode: CompactMode;
107
+ rowDensity: RowDensity;
109
108
  position: CellPosition;
110
109
  maxLinesPerRow?: number;
111
110
  tableCellTextStyle?: TextStyleWithVariant;
111
+ value?: string;
112
112
  }) => React.JSX.Element;
113
113
  export declare const renderEmptyRow: (columns: any, page: any, prepareRow: any, index: number, columnSizeMap: undefined | {
114
114
  [key: string]: number;
@@ -144,12 +144,9 @@ export declare const getColumnWidth: (colId: string, columnSizeMap: {
144
144
  actualFlexWidth: number;
145
145
  };
146
146
  export declare function collapseTableData(data: unknown[][], largestRow?: number): unknown[][];
147
- export declare function createTableColumns(columns: Record<string, any> | undefined, tableData: UnknownRows | undefined, tableStyles: {
148
- textColor?: string;
149
- textSize?: TextSizes;
150
- fontStyle?: string;
147
+ export declare function createTableColumns(columns: Record<string, any> | undefined, tableData: UnknownRow[] | undefined, tableStyles: {
151
148
  cellBackground?: string;
152
- verticalAlign?: VerticalAlignmentTypes;
153
- horizontalAlign?: CellAlignmentTypes;
149
+ verticalAlign?: VerticalAlignment;
150
+ horizontalAlign?: HorizontalAlignment;
154
151
  }, widgetName: string): Record<string, ColumnProperties> | undefined;
155
152
  export {};
@@ -1,7 +1,7 @@
1
1
  import type { IconPosition } from "../../icons/constants";
2
2
  import type { Dim, DimModes } from "@superblocksteam/library-shared";
3
3
  import type { TextStyleWithVariant, UserAccessibleTheme, PerCornerBorderRadius, PerSideBorder } from "@superblocksteam/library-shared/types";
4
- export type PaginationType = "none" | "client_side" | "server_side";
4
+ export type PaginationType = "none" | "client-side" | "server-side";
5
5
  export interface TableFilters {
6
6
  byColumn?: {
7
7
  [column: string]: ColumnFilter;
@@ -55,30 +55,25 @@ interface Condition2 {
55
55
  param1: any;
56
56
  param2: any;
57
57
  }
58
- export declare const CompactMode: {
59
- readonly SHORT: "SHORT";
60
- readonly DEFAULT: "DEFAULT";
61
- readonly TALL: "TALL";
62
- readonly VERY_SHORT: "VERY_SHORT";
58
+ export declare const RowDensity: {
59
+ readonly "extra-small": "extra-small";
60
+ readonly small: "small";
61
+ readonly medium: "medium";
62
+ readonly large: "large";
63
63
  };
64
- export type CompactMode = (typeof CompactMode)[keyof typeof CompactMode];
65
- export declare enum CellAlignmentTypes {
66
- LEFT = "LEFT",
67
- RIGHT = "RIGHT",
68
- CENTER = "CENTER"
69
- }
70
- export declare enum VerticalAlignmentTypes {
71
- TOP = "TOP",
72
- BOTTOM = "BOTTOM",
73
- CENTER = "CENTER"
74
- }
75
- export declare enum TextSizes {
76
- HEADING1 = "HEADING1",
77
- HEADING2 = "HEADING2",
78
- HEADING3 = "HEADING3",
79
- PARAGRAPH = "PARAGRAPH",
80
- PARAGRAPH2 = "PARAGRAPH2"
81
- }
64
+ export type RowDensity = (typeof RowDensity)[keyof typeof RowDensity];
65
+ export declare const HorizontalAlignment: {
66
+ readonly left: "left";
67
+ readonly right: "right";
68
+ readonly center: "center";
69
+ };
70
+ export type HorizontalAlignment = (typeof HorizontalAlignment)[keyof typeof HorizontalAlignment];
71
+ export declare const VerticalAlignment: {
72
+ readonly top: "top";
73
+ readonly bottom: "bottom";
74
+ readonly center: "center";
75
+ };
76
+ export type VerticalAlignment = (typeof VerticalAlignment)[keyof typeof VerticalAlignment];
82
77
  export declare enum EditInputType {
83
78
  Text = "TEXT",
84
79
  Number = "NUMBER",
@@ -169,27 +164,18 @@ export declare const ColumnType: {
169
164
  export type ColumnType = (typeof ColumnType)[keyof typeof ColumnType];
170
165
  export interface TableStyles {
171
166
  cellBackground?: string;
172
- textColor?: string;
173
- textSize?: TextSize;
174
- fontStyle?: string;
175
- horizontalAlign?: CellAlignment;
167
+ horizontalAlign?: HorizontalAlignment;
176
168
  verticalAlign?: VerticalAlignment;
177
169
  }
178
- type CellAlignment = keyof typeof CellAlignmentTypes;
179
- type VerticalAlignment = keyof typeof VerticalAlignmentTypes;
180
- type TextSize = keyof typeof TextSizes;
181
170
  export type SingleCellProperties = ColumnPropertiesForEditing & {
182
- horizontalAlign?: CellAlignment;
171
+ horizontalAlign?: HorizontalAlignment;
183
172
  verticalAlign?: VerticalAlignment;
184
- textSize?: TextSize;
185
- fontStyle?: string;
186
- textColor?: string;
187
173
  cellTextStyle?: TextStyleWithVariant;
188
174
  cellBackground?: string;
189
175
  buttonBackgroundColor?: string;
190
176
  buttonBorder?: PerSideBorder;
191
177
  buttonVariant?: string;
192
- buttonLabelColor?: string;
178
+ buttonTextStyle?: TextStyleWithVariant;
193
179
  buttonLabel?: string;
194
180
  cellIcon?: string;
195
181
  cellIconPosition?: IconPosition;
@@ -199,6 +185,7 @@ export type SingleCellProperties = ColumnPropertiesForEditing & {
199
185
  isDisabled?: boolean;
200
186
  displayedValue?: string;
201
187
  textWrap?: boolean;
188
+ tagsWrap?: boolean;
202
189
  dropdownIcon?: string;
203
190
  imageBorderRadius?: PerCornerBorderRadius;
204
191
  imageSize?: ImageSize;
@@ -260,11 +247,8 @@ export interface ColumnProperties extends ColumnEditConfigs, ColumnPropertiesFor
260
247
  index: number;
261
248
  width: number;
262
249
  cellBackground?: string;
263
- horizontalAlign?: CellAlignment;
250
+ horizontalAlign?: HorizontalAlignment;
264
251
  verticalAlign?: VerticalAlignment;
265
- textSize?: TextSize;
266
- fontStyle?: string;
267
- textColor?: string;
268
252
  cellProps?: {
269
253
  textStyle: TextStyleWithVariant;
270
254
  };
@@ -277,7 +261,7 @@ export interface ColumnProperties extends ColumnEditConfigs, ColumnPropertiesFor
277
261
  buttonBackgroundColor?: string;
278
262
  buttonBorder?: PerSideBorder;
279
263
  buttonVariant?: string;
280
- buttonLabelColor?: string;
264
+ buttonTextStyle?: TextStyleWithVariant;
281
265
  cellIcon?: string;
282
266
  cellIconPosition?: IconPosition;
283
267
  buttonIcon?: string;
@@ -290,6 +274,7 @@ export interface ColumnProperties extends ColumnEditConfigs, ColumnPropertiesFor
290
274
  isEditable?: boolean | string;
291
275
  isFrozen?: boolean;
292
276
  textWrap?: boolean;
277
+ tagsWrap?: boolean;
293
278
  tagDisplayConfig: Record<string, TagDisplayConfig>;
294
279
  imageSize?: ImageSize;
295
280
  imageBorderRadius?: PerCornerBorderRadius;
@@ -384,7 +369,7 @@ export interface TableWidgetProps extends TableFunctions {
384
369
  showColumnBorders: boolean;
385
370
  isSearchable: boolean;
386
371
  header: string;
387
- compactMode: CompactMode;
372
+ rowDensity: RowDensity;
388
373
  enableRowDeletion: boolean;
389
374
  enableRowInsertion: boolean;
390
375
  maxLinesPerRow?: number;
@@ -1,2 +1,2 @@
1
- import { CompactMode } from "./types.js";
2
- export declare const getCompactMode: (compactMode: unknown) => CompactMode;
1
+ import { RowDensity } from "./types.js";
2
+ export declare const getRowDensity: (rowDensity: unknown) => RowDensity;
@@ -11,6 +11,7 @@ export declare const SbText: import("react").FC<import("../../properties-panel/p
11
11
  animateLoading: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
12
12
  shouldScroll: import("../../properties-panel/props-builder.js").Prop<boolean, false>;
13
13
  icon: import("../../properties-panel/props-builder.js").Prop<string, false>;
14
+ iconPosition: import("../../properties-panel/props-builder.js").Prop<import("../../icons/constants.js").IconPosition, true>;
14
15
  } & (Omit<{
15
16
  textType: import("../../properties-panel/props-builder.js").Prop<"number" | "time" | "text" | "date" | "currency", false>;
16
17
  }, "textType" | "dateInputFormat" | "dateOutputFormat"> & ({
@@ -1,4 +1,5 @@
1
1
  import { Prop, Section } from "../../properties-panel/props-builder.js";
2
+ import type { IconPosition } from "../../icons/constants.js";
2
3
  import type { HorizontalAlign } from "@superblocksteam/library-shared/props";
3
4
  import type { Typographies } from "@superblocksteam/library-shared/types";
4
5
  /**
@@ -20,6 +21,7 @@ export declare const propertiesDefinition: {
20
21
  animateLoading: Prop<boolean, false>;
21
22
  shouldScroll: Prop<boolean, false>;
22
23
  icon: Prop<string, false>;
24
+ iconPosition: Prop<IconPosition, true>;
23
25
  } & (Omit<{
24
26
  textType: Prop<"number" | "time" | "text" | "date" | "currency", false>;
25
27
  }, "textType" | "dateInputFormat" | "dateOutputFormat"> & ({
@@ -9,8 +9,8 @@ export declare const useTextClassName: ({ textStyleVariant, isLoading, }: {
9
9
  isLoading?: boolean;
10
10
  }) => string;
11
11
  export declare const getFontSizePx: (textStyle: TextStyleWithVariant, theme: UserAccessibleTheme) => number;
12
- export declare const useIcon: ({ textStyleWithVariant, }: {
13
- textStyleWithVariant: TextStyleWithVariant;
12
+ export declare const useIcon: ({ textStyle }: {
13
+ textStyle: TextStyleWithVariant;
14
14
  }) => {
15
15
  iconGap: {
16
16
  gap: string;
@@ -1,5 +1,5 @@
1
1
  import type { Dim, DimModes } from "@superblocksteam/library-shared";
2
- import type { Padding, TextStyleWithVariant } from "@superblocksteam/library-shared/types";
2
+ import type { Padding } from "@superblocksteam/library-shared/types";
3
3
  import type React from "react";
4
4
  export declare const getCustomTypographyAccessor: (typographyKey: string) => string;
5
5
  export declare const getCustomTypographyNameFromAccessor: (accessor: string) => string;
@@ -8,7 +8,6 @@ export declare const getTextCssClassFromVariant: (textStyleVariant?: string) =>
8
8
  export declare const camelCaseToSentenceCase: (input: string) => string;
9
9
  export declare const extractPixels: (pxValue: string | number) => number;
10
10
  export declare const getLineHeightInPixels: (lineHeight: string | number, fontSize: number) => number;
11
- export declare const mergeTextStyles: (base: TextStyleWithVariant | undefined, override: TextStyleWithVariant | undefined) => TextStyleWithVariant | undefined;
12
11
  export declare const isColorToken: (value?: string) => boolean;
13
12
  export declare function getDefaultTypographies(themeVersion?: number): import("@superblocksteam/library-shared/types").Typographies;
14
13
  export declare function generatePaddingStyle(padding: Padding): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superblocksteam/library",
3
- "version": "2.0.0-next.94",
3
+ "version": "2.0.0-next.96",
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.94",
36
+ "@superblocksteam/library-shared": "2.0.0-next.96",
37
37
  "@superblocksteam/shared": "0.9149.0",
38
38
  "antd": "4.24.15",
39
39
  "apca-w3": "^0.1.9",
@@ -59,6 +59,7 @@
59
59
  "normalize.css": "8.0.1",
60
60
  "react-dnd": "^16.0.1",
61
61
  "react-hotkeys-hook": "3.3.1",
62
+ "react-player": "2.3.1",
62
63
  "react-router": "^7.0.2",
63
64
  "react-svg": "^16.1.29",
64
65
  "react-virtuoso": "^4.6.3",