@yuva-devlab/ui 2.2.0 → 3.0.0
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/README.md +6 -6
- package/dist/components/checkpoint/checkpoint.css +6 -0
- package/dist/components/code-block/code-block.css +12 -0
- package/dist/components/file-tree/file-tree.css +39 -0
- package/dist/components/model-selector/model-selector.css +49 -0
- package/dist/components/multi-select/multi-select.css +12 -0
- package/dist/components/plan/plan.css +47 -0
- package/dist/components/prompt-input/prompt-input.css +7 -0
- package/dist/components/queue/queue.css +61 -0
- package/dist/components/search-input/search-input.css +12 -0
- package/dist/components/sources/sources.css +16 -0
- package/dist/components/stack-trace/stack-trace.css +19 -0
- package/dist/components/subagent/subagent.css +47 -0
- package/dist/components/table/table.css +29 -7
- package/dist/components/terminal/terminal.css +17 -0
- package/dist/components/test-results/test-results.css +34 -0
- package/dist/components.css +407 -7
- package/dist/index.cjs +219 -94
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +20 -6
- package/dist/index.d.ts +20 -6
- package/dist/index.js +219 -94
- package/dist/index.js.map +1 -1
- package/dist/styles/components.css +407 -7
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -1186,6 +1186,8 @@ interface DataTableProps<T> {
|
|
|
1186
1186
|
emptyState?: React$1.ReactNode;
|
|
1187
1187
|
/** Callback fired when clicking a table row */
|
|
1188
1188
|
onRowClick?: (row: T) => void;
|
|
1189
|
+
/** Whether to highlight table rows on hover using the active brand theme color. Defaults to false (or true if onRowClick provided) */
|
|
1190
|
+
hoverable?: boolean;
|
|
1189
1191
|
/** Additional CSS class names */
|
|
1190
1192
|
className?: string;
|
|
1191
1193
|
}
|
|
@@ -1194,7 +1196,7 @@ interface DataTableProps<T> {
|
|
|
1194
1196
|
* Generic enterprise data table with integrated sorting, client/server pagination,
|
|
1195
1197
|
* custom column renderers, and zero-config empty states.
|
|
1196
1198
|
*/
|
|
1197
|
-
declare function DataTable<T extends Record<string, unknown>>({ data, columns, rowKey, pagination, loading, emptyState, onRowClick, className, }: DataTableProps<T>): react_jsx_runtime.JSX.Element;
|
|
1199
|
+
declare function DataTable<T extends Record<string, unknown>>({ data, columns, rowKey, pagination, loading, emptyState, onRowClick, hoverable, className, }: DataTableProps<T>): react_jsx_runtime.JSX.Element;
|
|
1198
1200
|
|
|
1199
1201
|
interface DatePickerProps {
|
|
1200
1202
|
/**
|
|
@@ -2680,7 +2682,7 @@ type SwitchProps = React$1.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root
|
|
|
2680
2682
|
* @example
|
|
2681
2683
|
* ```tsx
|
|
2682
2684
|
* // Basic toggle switch
|
|
2683
|
-
* <div
|
|
2685
|
+
* <div style={{ display: "flex", alignItems: "center", justifyContent: "space-between" }}>
|
|
2684
2686
|
* <Label htmlFor="airplane-mode">Airplane Mode</Label>
|
|
2685
2687
|
* <Switch id="airplane-mode" checked={enabled} onCheckedChange={setEnabled} />
|
|
2686
2688
|
* </div>
|
|
@@ -2691,14 +2693,21 @@ type SwitchProps = React$1.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root
|
|
|
2691
2693
|
*/
|
|
2692
2694
|
declare const Switch: React$1.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
2693
2695
|
|
|
2694
|
-
|
|
2696
|
+
interface TableProps extends React$1.HTMLAttributes<HTMLTableElement> {
|
|
2697
|
+
/**
|
|
2698
|
+
* Whether to highlight rows on hover using the active theme color.
|
|
2699
|
+
* When enabled, applies `.dl-table--hoverable`.
|
|
2700
|
+
* @default false
|
|
2701
|
+
*/
|
|
2702
|
+
readonly hoverable?: boolean;
|
|
2703
|
+
}
|
|
2695
2704
|
/**
|
|
2696
2705
|
* Responsive table container with pure scoped CSS styling.
|
|
2697
2706
|
* Automatically wraps in a scrollable horizontal container (`dl-table-wrapper`).
|
|
2698
2707
|
*
|
|
2699
2708
|
* @example
|
|
2700
2709
|
* ```tsx
|
|
2701
|
-
* <Table>
|
|
2710
|
+
* <Table hoverable>
|
|
2702
2711
|
* <TableHeader>
|
|
2703
2712
|
* <TableRow>
|
|
2704
2713
|
* <TableHead>Invoice</TableHead>
|
|
@@ -2732,7 +2741,12 @@ type TableFooterProps = React$1.HTMLAttributes<HTMLTableSectionElement>;
|
|
|
2732
2741
|
* Footer section of a `Table` (`<tfoot>`) for totals or summaries.
|
|
2733
2742
|
*/
|
|
2734
2743
|
declare const TableFooter: React$1.ForwardRefExoticComponent<TableFooterProps & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
2735
|
-
|
|
2744
|
+
interface TableRowProps extends React$1.HTMLAttributes<HTMLTableRowElement> {
|
|
2745
|
+
/**
|
|
2746
|
+
* Whether to highlight this row on hover using the active brand theme color.
|
|
2747
|
+
*/
|
|
2748
|
+
readonly hoverable?: boolean;
|
|
2749
|
+
}
|
|
2736
2750
|
/**
|
|
2737
2751
|
* Interactive row within a `Table` (`<tr>`).
|
|
2738
2752
|
*/
|
|
@@ -3977,7 +3991,7 @@ interface ContainerProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
3977
3991
|
declare const Container: React$1.ForwardRefExoticComponent<ContainerProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
3978
3992
|
|
|
3979
3993
|
interface LegalFooterProps extends React$1.HTMLAttributes<HTMLElement> {
|
|
3980
|
-
/** Optional application name (e.g., "FinAI", "DevLab Portal", "OrchestrAI", "
|
|
3994
|
+
/** Optional application name (e.g., "FinAI", "DevLab Portal", "OrchestrAI", "KnowledgeAI", "DevLab Logs") */
|
|
3981
3995
|
readonly appName?: string;
|
|
3982
3996
|
/** Optional semver or build tag (e.g., "v1.0.0") */
|
|
3983
3997
|
readonly version?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1186,6 +1186,8 @@ interface DataTableProps<T> {
|
|
|
1186
1186
|
emptyState?: React$1.ReactNode;
|
|
1187
1187
|
/** Callback fired when clicking a table row */
|
|
1188
1188
|
onRowClick?: (row: T) => void;
|
|
1189
|
+
/** Whether to highlight table rows on hover using the active brand theme color. Defaults to false (or true if onRowClick provided) */
|
|
1190
|
+
hoverable?: boolean;
|
|
1189
1191
|
/** Additional CSS class names */
|
|
1190
1192
|
className?: string;
|
|
1191
1193
|
}
|
|
@@ -1194,7 +1196,7 @@ interface DataTableProps<T> {
|
|
|
1194
1196
|
* Generic enterprise data table with integrated sorting, client/server pagination,
|
|
1195
1197
|
* custom column renderers, and zero-config empty states.
|
|
1196
1198
|
*/
|
|
1197
|
-
declare function DataTable<T extends Record<string, unknown>>({ data, columns, rowKey, pagination, loading, emptyState, onRowClick, className, }: DataTableProps<T>): react_jsx_runtime.JSX.Element;
|
|
1199
|
+
declare function DataTable<T extends Record<string, unknown>>({ data, columns, rowKey, pagination, loading, emptyState, onRowClick, hoverable, className, }: DataTableProps<T>): react_jsx_runtime.JSX.Element;
|
|
1198
1200
|
|
|
1199
1201
|
interface DatePickerProps {
|
|
1200
1202
|
/**
|
|
@@ -2680,7 +2682,7 @@ type SwitchProps = React$1.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root
|
|
|
2680
2682
|
* @example
|
|
2681
2683
|
* ```tsx
|
|
2682
2684
|
* // Basic toggle switch
|
|
2683
|
-
* <div
|
|
2685
|
+
* <div style={{ display: "flex", alignItems: "center", justifyContent: "space-between" }}>
|
|
2684
2686
|
* <Label htmlFor="airplane-mode">Airplane Mode</Label>
|
|
2685
2687
|
* <Switch id="airplane-mode" checked={enabled} onCheckedChange={setEnabled} />
|
|
2686
2688
|
* </div>
|
|
@@ -2691,14 +2693,21 @@ type SwitchProps = React$1.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root
|
|
|
2691
2693
|
*/
|
|
2692
2694
|
declare const Switch: React$1.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
2693
2695
|
|
|
2694
|
-
|
|
2696
|
+
interface TableProps extends React$1.HTMLAttributes<HTMLTableElement> {
|
|
2697
|
+
/**
|
|
2698
|
+
* Whether to highlight rows on hover using the active theme color.
|
|
2699
|
+
* When enabled, applies `.dl-table--hoverable`.
|
|
2700
|
+
* @default false
|
|
2701
|
+
*/
|
|
2702
|
+
readonly hoverable?: boolean;
|
|
2703
|
+
}
|
|
2695
2704
|
/**
|
|
2696
2705
|
* Responsive table container with pure scoped CSS styling.
|
|
2697
2706
|
* Automatically wraps in a scrollable horizontal container (`dl-table-wrapper`).
|
|
2698
2707
|
*
|
|
2699
2708
|
* @example
|
|
2700
2709
|
* ```tsx
|
|
2701
|
-
* <Table>
|
|
2710
|
+
* <Table hoverable>
|
|
2702
2711
|
* <TableHeader>
|
|
2703
2712
|
* <TableRow>
|
|
2704
2713
|
* <TableHead>Invoice</TableHead>
|
|
@@ -2732,7 +2741,12 @@ type TableFooterProps = React$1.HTMLAttributes<HTMLTableSectionElement>;
|
|
|
2732
2741
|
* Footer section of a `Table` (`<tfoot>`) for totals or summaries.
|
|
2733
2742
|
*/
|
|
2734
2743
|
declare const TableFooter: React$1.ForwardRefExoticComponent<TableFooterProps & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
2735
|
-
|
|
2744
|
+
interface TableRowProps extends React$1.HTMLAttributes<HTMLTableRowElement> {
|
|
2745
|
+
/**
|
|
2746
|
+
* Whether to highlight this row on hover using the active brand theme color.
|
|
2747
|
+
*/
|
|
2748
|
+
readonly hoverable?: boolean;
|
|
2749
|
+
}
|
|
2736
2750
|
/**
|
|
2737
2751
|
* Interactive row within a `Table` (`<tr>`).
|
|
2738
2752
|
*/
|
|
@@ -3977,7 +3991,7 @@ interface ContainerProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
3977
3991
|
declare const Container: React$1.ForwardRefExoticComponent<ContainerProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
3978
3992
|
|
|
3979
3993
|
interface LegalFooterProps extends React$1.HTMLAttributes<HTMLElement> {
|
|
3980
|
-
/** Optional application name (e.g., "FinAI", "DevLab Portal", "OrchestrAI", "
|
|
3994
|
+
/** Optional application name (e.g., "FinAI", "DevLab Portal", "OrchestrAI", "KnowledgeAI", "DevLab Logs") */
|
|
3981
3995
|
readonly appName?: string;
|
|
3982
3996
|
/** Optional semver or build tag (e.g., "v1.0.0") */
|
|
3983
3997
|
readonly version?: string;
|