@nimbus-ds/components 5.38.1 → 5.39.0-rc.2
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/CHANGELOG.md +0 -6
- package/dist/Accordion/index.js +1 -1
- package/dist/Alert/index.js +1 -1
- package/dist/Badge/index.js +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/CHANGELOG.md +0 -6
- package/dist/Card/index.js +1 -1
- package/dist/Checkbox/index.js +1 -1
- package/dist/Chip/index.js +1 -1
- package/dist/FileUploader/index.js +1 -1
- package/dist/Icon/index.js +1 -1
- package/dist/IconButton/index.js +1 -1
- package/dist/Input/index.js +1 -1
- package/dist/Label/index.js +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/List/index.js +1 -1
- package/dist/Modal/index.js +1 -1
- package/dist/MultiSelect/index.js +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/ProgressBar/index.js +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/ScrollPane/index.d.ts +1 -1
- package/dist/ScrollPane/index.js +1 -1
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/Select/index.js +1 -1
- package/dist/Sidebar/index.js +1 -1
- package/dist/SplitButton/index.js +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/Table/index.d.ts +24 -0
- package/dist/Table/index.js +1 -1
- package/dist/Tag/index.js +1 -1
- package/dist/Text/index.js +1 -1
- package/dist/Textarea/index.js +1 -1
- package/dist/Thumbnail/index.js +1 -1
- package/dist/Title/index.js +1 -1
- package/dist/Toast/index.js +1 -1
- package/dist/Toggle/index.js +1 -1
- package/dist/Tooltip/index.js +1 -1
- package/dist/components-props.json +1 -1
- package/dist/index.d.ts +25 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3661,7 +3661,7 @@ export interface ScrollPaneItemProperties {
|
|
|
3661
3661
|
*/
|
|
3662
3662
|
onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
3663
3663
|
}
|
|
3664
|
-
export type ScrollPaneItemProps = ScrollPaneItemProperties & Omit<
|
|
3664
|
+
export type ScrollPaneItemProps = ScrollPaneItemProperties & Omit<BoxProps, "children">;
|
|
3665
3665
|
export type ScrollPaneArrowProperties = {
|
|
3666
3666
|
children: ReactNode;
|
|
3667
3667
|
};
|
|
@@ -4034,6 +4034,11 @@ export interface TableCellProperties extends TableSprinkle {
|
|
|
4034
4034
|
* @default td
|
|
4035
4035
|
*/
|
|
4036
4036
|
as?: "td" | "th";
|
|
4037
|
+
/**
|
|
4038
|
+
* Column index (0-based) to apply minWidth/maxWidth constraints from the Table's columnLayout.
|
|
4039
|
+
* When provided, the cell will inherit minWidth and maxWidth from the corresponding column definition.
|
|
4040
|
+
*/
|
|
4041
|
+
column?: number;
|
|
4037
4042
|
}
|
|
4038
4043
|
export type TableCellProps = TableCellProperties & HTMLAttributes<HTMLTableCellElement>;
|
|
4039
4044
|
declare const TableCell: React.FC<TableCellProps>;
|
|
@@ -4070,12 +4075,31 @@ export interface TableComponents {
|
|
|
4070
4075
|
Head: typeof TableHead;
|
|
4071
4076
|
Row: typeof TableRow;
|
|
4072
4077
|
}
|
|
4078
|
+
export interface TableColumnLayout {
|
|
4079
|
+
/**
|
|
4080
|
+
* Fixed width applied to the column. Accepts any valid CSS width value.
|
|
4081
|
+
*/
|
|
4082
|
+
width?: string;
|
|
4083
|
+
/**
|
|
4084
|
+
* Growth factor that distributes remaining space among columns without a fixed width.
|
|
4085
|
+
*/
|
|
4086
|
+
grow?: number;
|
|
4087
|
+
/**
|
|
4088
|
+
* Minimum width constraint for the column. The column will not shrink below this value.
|
|
4089
|
+
* Only applies when using `grow`. Accepts any valid CSS width value.
|
|
4090
|
+
*/
|
|
4091
|
+
minWidth?: string;
|
|
4092
|
+
}
|
|
4073
4093
|
export interface TableProperties {
|
|
4074
4094
|
/**
|
|
4075
4095
|
* The content of the table.
|
|
4076
4096
|
* @TJS-type React.ReactNode
|
|
4077
4097
|
*/
|
|
4078
4098
|
children: ReactNode;
|
|
4099
|
+
/**
|
|
4100
|
+
* Column sizing definitions applied from left to right. Use `width` for fixed columns and `grow` to distribute the remaining space proportionally.
|
|
4101
|
+
*/
|
|
4102
|
+
columnLayout?: TableColumnLayout[];
|
|
4079
4103
|
}
|
|
4080
4104
|
export type TableProps = TableProperties & HTMLAttributes<HTMLTableElement>;
|
|
4081
4105
|
export declare const Table: React.FC<TableProps> & TableComponents;
|