@gntik-ai/blocks 0.5.0 → 0.6.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/dist/index.d.ts +163 -31
- package/dist/index.js +663 -157
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/auth/SignUpForm/SignUpForm.configured.test.tsx +316 -0
- package/src/auth/SignUpForm/SignUpForm.tsx +194 -50
- package/src/auth/SignUpForm/block.meta.ts +15 -2
- package/src/auth/SignUpForm/examples/CustomFields.tsx +56 -0
- package/src/auth/SignUpForm/examples/Error.tsx +5 -0
- package/src/auth/SignUpForm/examples/Loading.tsx +6 -0
- package/src/auth/SignUpForm/examples/NoTerms.tsx +6 -0
- package/src/auth/SignUpForm/examples/Submitting.tsx +5 -0
- package/src/auth/SignUpForm/examples/Unavailable.tsx +15 -0
- package/src/auth/index.ts +1 -0
- package/src/auth/shared.tsx +34 -0
- package/src/meta.ts +2 -0
- package/src/tables/DataTable/DataTable.labels.test.tsx +291 -0
- package/src/tables/DataTable/DataTable.overflow-labels.test.tsx +59 -0
- package/src/tables/DataTable/DataTable.tsx +20 -9
- package/src/tables/DataTable/block.meta.ts +102 -0
- package/src/tables/DataTable/column-menu.tsx +10 -7
- package/src/tables/DataTable/data-table-body.tsx +3 -2
- package/src/tables/DataTable/data-table-props.ts +3 -0
- package/src/tables/DataTable/data-table-row.tsx +15 -4
- package/src/tables/DataTable/density-toggle.tsx +7 -4
- package/src/tables/DataTable/editable-cell.tsx +21 -8
- package/src/tables/DataTable/header-cell.tsx +4 -0
- package/src/tables/DataTable/labels.ts +54 -0
- package/src/tables/DataTable/resize-handle.tsx +6 -3
- package/src/tables/DataTable/views.tsx +21 -14
- package/src/tables/FilterBar/FilterBar.labels.test.tsx +69 -0
- package/src/tables/FilterBar/FilterBar.tsx +45 -12
- package/src/tables/FilterBar/block.meta.ts +22 -0
- package/src/tables/PaginationFooter/PaginationFooter.labels.test.tsx +57 -0
- package/src/tables/PaginationFooter/PaginationFooter.tsx +31 -7
- package/src/tables/PaginationFooter/block.meta.ts +23 -0
package/dist/index.d.ts
CHANGED
|
@@ -15,6 +15,12 @@ interface BlockMeta {
|
|
|
15
15
|
description: string;
|
|
16
16
|
/** @gntik-ai/ui (and other kit) components it composes, for docs and agents. */
|
|
17
17
|
uses: string[];
|
|
18
|
+
/** Optional per-instance copy contract, listed in docs and kit metadata. */
|
|
19
|
+
labels?: Array<{
|
|
20
|
+
key: string;
|
|
21
|
+
type: string;
|
|
22
|
+
state: string;
|
|
23
|
+
}>;
|
|
18
24
|
}
|
|
19
25
|
//#endregion
|
|
20
26
|
//#region src/ai/AssistantCardGrid/fixtures.d.ts
|
|
@@ -331,6 +337,32 @@ interface AuthFormAccessibilityProps {
|
|
|
331
337
|
'aria-label'?: string;
|
|
332
338
|
'aria-labelledby'?: string;
|
|
333
339
|
}
|
|
340
|
+
/** Ordered text/email fields collected before the sign-up password. Ids must be unique. */
|
|
341
|
+
interface AuthSignUpField {
|
|
342
|
+
id: string;
|
|
343
|
+
label: string;
|
|
344
|
+
placeholder?: string;
|
|
345
|
+
help?: ReactNode;
|
|
346
|
+
required?: boolean;
|
|
347
|
+
type?: 'text' | 'email';
|
|
348
|
+
autoComplete?: string;
|
|
349
|
+
/** Consumer copy for kit-owned validation. */
|
|
350
|
+
messages?: {
|
|
351
|
+
required?: string;
|
|
352
|
+
invalid?: string;
|
|
353
|
+
};
|
|
354
|
+
}
|
|
355
|
+
/** Consumer-owned copy and optional action when account creation is unavailable. */
|
|
356
|
+
interface AuthUnavailableState {
|
|
357
|
+
title: ReactNode;
|
|
358
|
+
message: ReactNode;
|
|
359
|
+
action?: ReactNode;
|
|
360
|
+
}
|
|
361
|
+
/** Kit-owned sign-up validation with consumer-owned copy. */
|
|
362
|
+
interface AuthSignUpValidationMessages {
|
|
363
|
+
passwordTooShort?: (minimum: number) => string;
|
|
364
|
+
termsRequired?: string;
|
|
365
|
+
}
|
|
334
366
|
//#endregion
|
|
335
367
|
//#region src/auth/ForgotPasswordForm/ForgotPasswordForm.d.ts
|
|
336
368
|
export interface ForgotPasswordFormRef {
|
|
@@ -470,14 +502,27 @@ export interface SignUpValues {
|
|
|
470
502
|
name: string;
|
|
471
503
|
email: string;
|
|
472
504
|
password: string;
|
|
505
|
+
/** Present only in configured mode. Text/email values are trimmed and keyed by field id. */
|
|
506
|
+
fields?: Record<string, string>;
|
|
473
507
|
}
|
|
474
508
|
export interface SignUpFormProps {
|
|
509
|
+
/** Ordered text/email inputs before Password. Omit to keep the default fields and payload. */
|
|
510
|
+
fields?: readonly AuthSignUpField[];
|
|
511
|
+
messages?: AuthSignUpValidationMessages;
|
|
512
|
+
/** Replaces all account creation controls with a consumer-supplied callout. */
|
|
513
|
+
unavailable?: AuthUnavailableState;
|
|
514
|
+
/** Resolving policy, separate from loading (an account submission). No form is rendered. */
|
|
515
|
+
policyLoading?: boolean;
|
|
475
516
|
/** Creates the account. A returned promise shows the loading state; a rejection shows in the alert. */
|
|
476
517
|
onSubmit?: (values: SignUpValues) => void | Promise<void>;
|
|
477
518
|
error?: string | null;
|
|
478
519
|
loading?: boolean;
|
|
479
|
-
/**
|
|
520
|
+
/** Optional password guidance; receives the current minimum length when a function is supplied. */
|
|
521
|
+
passwordHelp?: ReactNode | ((minimum: number) => ReactNode);
|
|
522
|
+
/** Minimum password length. Defaults to 8. */
|
|
480
523
|
minPasswordLength?: number;
|
|
524
|
+
/** Omit to require consent; false removes the checkbox and consent validation. */
|
|
525
|
+
terms?: false;
|
|
481
526
|
termsHref?: string;
|
|
482
527
|
privacyHref?: string;
|
|
483
528
|
signInHref?: string;
|
|
@@ -490,7 +535,7 @@ export interface SignUpFormProps {
|
|
|
490
535
|
className?: string;
|
|
491
536
|
}
|
|
492
537
|
/** Account creation: name, work email, password with a strength meter and a required terms checkbox. */
|
|
493
|
-
export declare function SignUpForm({ onSubmit, error: errorProp, loading: loadingProp, minPasswordLength, termsHref, privacyHref, signInHref, onSignIn, sso, eyebrow, title, description, className }: SignUpFormProps): import("react").JSX.Element;
|
|
538
|
+
export declare function SignUpForm({ fields, messages, unavailable, policyLoading, onSubmit, error: errorProp, loading: loadingProp, minPasswordLength, passwordHelp, terms: termsProp, termsHref, privacyHref, signInHref, onSignIn, sso, eyebrow, title, description, className }: SignUpFormProps): import("react").JSX.Element;
|
|
494
539
|
//#endregion
|
|
495
540
|
//#region src/auth/SignUpForm/block.meta.d.ts
|
|
496
541
|
declare const meta$61: BlockMeta;
|
|
@@ -2863,6 +2908,92 @@ export declare function setColumnPin(pinned: PinnedColumns, id: string, side: Pi
|
|
|
2863
2908
|
/** Display order: start-pinned columns (pin order), unpinned columns (column order), end-pinned columns. */
|
|
2864
2909
|
export declare function orderColumns<T>(columns: ReadonlyArray<DataTableColumn<T>>, pinned: PinnedColumns): Array<DataTableColumn<T>>;
|
|
2865
2910
|
//#endregion
|
|
2911
|
+
//#region src/tables/PaginationFooter/PaginationFooter.d.ts
|
|
2912
|
+
export interface PaginationFooterLabels {
|
|
2913
|
+
rowsPerPage: string;
|
|
2914
|
+
rowsPerPageLabel: string;
|
|
2915
|
+
rangeSummary: (from: number, to: number, total: number) => string;
|
|
2916
|
+
paginationNav: (noun: string) => string;
|
|
2917
|
+
previous: string;
|
|
2918
|
+
next: string;
|
|
2919
|
+
page: (page: number) => string;
|
|
2920
|
+
}
|
|
2921
|
+
export interface PaginationFooterProps {
|
|
2922
|
+
/** Per-key overrides; omitted keys retain the existing provider translations and defaults. */
|
|
2923
|
+
labels?: Partial<PaginationFooterLabels>;
|
|
2924
|
+
/** Total number of rows. */
|
|
2925
|
+
total?: number;
|
|
2926
|
+
/** Current page, 1-based (controlled). */
|
|
2927
|
+
page?: number;
|
|
2928
|
+
defaultPage?: number;
|
|
2929
|
+
onPageChange?: (page: number) => void;
|
|
2930
|
+
/** Rows per page (controlled). */
|
|
2931
|
+
pageSize?: number;
|
|
2932
|
+
defaultPageSize?: number;
|
|
2933
|
+
onPageSizeChange?: (pageSize: number) => void;
|
|
2934
|
+
pageSizeOptions?: readonly number[];
|
|
2935
|
+
/** What the rows are, for the accessible names ("Deployments"). */
|
|
2936
|
+
noun?: string;
|
|
2937
|
+
locale?: string;
|
|
2938
|
+
className?: string;
|
|
2939
|
+
}
|
|
2940
|
+
/** Table footer: rows-per-page Select, a "1–10 of 97" summary and numbered Pagination. Stacks on small screens. */
|
|
2941
|
+
export declare function PaginationFooter({ total, page: pageProp, defaultPage, onPageChange, pageSize: sizeProp, defaultPageSize, onPageSizeChange, pageSizeOptions, noun: nounProp, locale: localeProp, className, labels }: PaginationFooterProps): import("react").JSX.Element;
|
|
2942
|
+
//#endregion
|
|
2943
|
+
//#region src/tables/DataTable/labels.d.ts
|
|
2944
|
+
/** Per-instance table chrome, including the composed PaginationFooter. Caller data stays caller-owned. */
|
|
2945
|
+
interface DataTableLabels extends PaginationFooterLabels {
|
|
2946
|
+
/** Non-virtual table overflow region; virtualized regions keep the caller caption. */
|
|
2947
|
+
scrollRegion: string;
|
|
2948
|
+
selectionCount: (count: number) => string;
|
|
2949
|
+
columns: string;
|
|
2950
|
+
visibleColumns: string;
|
|
2951
|
+
pinColumns: string;
|
|
2952
|
+
pinnedLeft: string;
|
|
2953
|
+
pinnedRight: string;
|
|
2954
|
+
pinLeft: string;
|
|
2955
|
+
pinRight: string;
|
|
2956
|
+
unpinned: string;
|
|
2957
|
+
density: string;
|
|
2958
|
+
comfortable: string;
|
|
2959
|
+
compact: string;
|
|
2960
|
+
resizeColumn: (label: string) => string;
|
|
2961
|
+
columnWidth: (width: number) => string;
|
|
2962
|
+
defaultView: string;
|
|
2963
|
+
defaultViewOption: string;
|
|
2964
|
+
modified: string;
|
|
2965
|
+
views: string;
|
|
2966
|
+
saveChanges: string;
|
|
2967
|
+
saveAs: string;
|
|
2968
|
+
renameView: string;
|
|
2969
|
+
deleteView: string;
|
|
2970
|
+
resetChanges: string;
|
|
2971
|
+
saveViewTitle: string;
|
|
2972
|
+
renameViewTitle: string;
|
|
2973
|
+
viewName: string;
|
|
2974
|
+
cancel: string;
|
|
2975
|
+
saveView: string;
|
|
2976
|
+
rename: string;
|
|
2977
|
+
closeDialog: string;
|
|
2978
|
+
selection: string;
|
|
2979
|
+
selectAll: string;
|
|
2980
|
+
selectRow: (label: string) => string;
|
|
2981
|
+
selectGroup: (group: string) => string;
|
|
2982
|
+
groupRows: (count: number) => string;
|
|
2983
|
+
noGroup: string;
|
|
2984
|
+
actions: string;
|
|
2985
|
+
rowActions: (label: string) => string;
|
|
2986
|
+
emptyTitle: string;
|
|
2987
|
+
emptyDescription: string;
|
|
2988
|
+
loading: (caption: string) => string;
|
|
2989
|
+
editHint: string;
|
|
2990
|
+
editLabel: (column: string, row: string) => string;
|
|
2991
|
+
editError: string;
|
|
2992
|
+
enterNumber: string;
|
|
2993
|
+
minimumValue: (min: number) => string;
|
|
2994
|
+
maximumValue: (max: number) => string;
|
|
2995
|
+
}
|
|
2996
|
+
//#endregion
|
|
2866
2997
|
//#region src/tables/DataTable/editable-cell.d.ts
|
|
2867
2998
|
/** One committed cell edit, as `onCellEdit` receives it. */
|
|
2868
2999
|
interface DataTableCellEdit<T> {
|
|
@@ -2882,6 +3013,7 @@ interface DataTableCellEdit<T> {
|
|
|
2882
3013
|
type DataTableCellEditResult = void | boolean | string;
|
|
2883
3014
|
type DataTableCellEditHandler<T> = (edit: DataTableCellEdit<T>) => DataTableCellEditResult | Promise<DataTableCellEditResult>;
|
|
2884
3015
|
interface EditableCellProps<T> {
|
|
3016
|
+
labels?: Partial<DataTableLabels>;
|
|
2885
3017
|
row: T;
|
|
2886
3018
|
rowId: string;
|
|
2887
3019
|
rowLabel: string;
|
|
@@ -2897,7 +3029,7 @@ interface EditableCellProps<T> {
|
|
|
2897
3029
|
* edits); while editing, an input or a select: Enter or Tab commits, Escape cancels. `onCellEdit`
|
|
2898
3030
|
* can reject the value with a message, shown inline under the editor.
|
|
2899
3031
|
*/
|
|
2900
|
-
export declare function EditableCell<T>({ row, rowId, rowLabel, column, onCellEdit, hintId, children }: EditableCellProps<T>): import("react").JSX.Element;
|
|
3032
|
+
export declare function EditableCell<T>({ row, rowId, rowLabel, column, onCellEdit, hintId, children, labels }: EditableCellProps<T>): import("react").JSX.Element;
|
|
2901
3033
|
//#endregion
|
|
2902
3034
|
//#region src/tables/DataTable/views.d.ts
|
|
2903
3035
|
/** What a saved view captures. Every field is optional: a missing field keeps the table's default. */
|
|
@@ -2919,6 +3051,7 @@ interface DataTableView {
|
|
|
2919
3051
|
/** Whether two view states are equivalent (key order and empty values ignored). */
|
|
2920
3052
|
export declare function sameViewState(a: DataTableViewState, b: DataTableViewState): boolean;
|
|
2921
3053
|
interface ViewSwitcherProps {
|
|
3054
|
+
labels?: Partial<DataTableLabels>;
|
|
2922
3055
|
views: readonly DataTableView[];
|
|
2923
3056
|
activeId: string | null;
|
|
2924
3057
|
/** The table differs from the active view (or from the defaults when none is active). */
|
|
@@ -2931,10 +3064,12 @@ interface ViewSwitcherProps {
|
|
|
2931
3064
|
onReset: () => void;
|
|
2932
3065
|
}
|
|
2933
3066
|
/** "Views" menu: switch between saved views, save the current table as a view, rename, delete, reset. */
|
|
2934
|
-
declare function ViewSwitcher({ views, activeId, dirty, onSelect, onSaveAs, onSave, onRename, onDelete, onReset }: ViewSwitcherProps): import("react").JSX.Element;
|
|
3067
|
+
declare function ViewSwitcher({ labels, views, activeId, dirty, onSelect, onSaveAs, onSave, onRename, onDelete, onReset }: ViewSwitcherProps): import("react").JSX.Element;
|
|
2935
3068
|
//#endregion
|
|
2936
3069
|
//#region src/tables/DataTable/data-table-props.d.ts
|
|
2937
3070
|
interface DataTableCommonProps<T> {
|
|
3071
|
+
/** Per-key overrides; omitted keys keep existing defaults and provider translations. */
|
|
3072
|
+
labels?: Partial<DataTableLabels>;
|
|
2938
3073
|
rows?: readonly T[];
|
|
2939
3074
|
columns?: ReadonlyArray<DataTableColumn<T>>;
|
|
2940
3075
|
/** Stable row id (defaults to `row.id`). */
|
|
@@ -3089,7 +3224,7 @@ export declare const DEPLOYMENT_COLUMNS: DataTableColumn<DeploymentRow>[];
|
|
|
3089
3224
|
* and empty states, client-side sort + pagination, optional collapsible row groups (`groupBy`),
|
|
3090
3225
|
* column resize and pinning, row virtualization, inline cell editing and saved views.
|
|
3091
3226
|
*/
|
|
3092
|
-
export declare function DataTable<T = (typeof DEPLOYMENT_ROWS)[number]>({ rows, columns, getRowId, getRowLabel, caption, showCaption, selectable: selectableProp, selectionMode, selectionName, legend, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, selectedId, defaultSelectedId, onSelectedIdChange, isRowDisabled, selectedIds, defaultSelectedIds, onSelectionChange, bulkActions, selectionSummary, rowActions, sort: sortProp, defaultSort, onSortChange, manualSorting, paginated: paginatedProp, defaultPageSize, pageSizeOptions, density: densityProp, defaultDensity, onDensityChange, showDensityToggle, showColumnMenu, loading, loadingRows, emptyState, groupBy, groupLabel, collapsibleGroups, collapsedGroups: collapsedProp, defaultCollapsedGroups, onCollapsedGroupsChange, onGroupByChange, hiddenColumns: hiddenProp, onHiddenColumnsChange, resizable, columnWidths: widthsProp, defaultColumnWidths, onColumnWidthsChange, pinnedColumns: pinnedProp, defaultPinnedColumns, onPinnedColumnsChange, showPinMenu, virtualize, virtualizeThreshold, rowHeight: rowHeightProp, virtualContainerClassName, onCellEdit, views: viewsProp, defaultViews, onViewsChange, activeViewId, defaultActiveViewId, onActiveViewChange, showViewSwitcher, filters, onFiltersChange, toolbar, className }: DataTableProps<T>): import("react").JSX.Element;
|
|
3227
|
+
export declare function DataTable<T = (typeof DEPLOYMENT_ROWS)[number]>({ rows, columns, getRowId, getRowLabel, caption, showCaption, selectable: selectableProp, selectionMode, selectionName, legend, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, selectedId, defaultSelectedId, onSelectedIdChange, isRowDisabled, selectedIds, defaultSelectedIds, onSelectionChange, bulkActions, selectionSummary, rowActions, sort: sortProp, defaultSort, onSortChange, manualSorting, paginated: paginatedProp, defaultPageSize, pageSizeOptions, density: densityProp, defaultDensity, onDensityChange, showDensityToggle, showColumnMenu, loading, loadingRows, emptyState, groupBy, groupLabel, collapsibleGroups, collapsedGroups: collapsedProp, defaultCollapsedGroups, onCollapsedGroupsChange, onGroupByChange, hiddenColumns: hiddenProp, onHiddenColumnsChange, resizable, columnWidths: widthsProp, defaultColumnWidths, onColumnWidthsChange, pinnedColumns: pinnedProp, defaultPinnedColumns, onPinnedColumnsChange, showPinMenu, virtualize, virtualizeThreshold, rowHeight: rowHeightProp, virtualContainerClassName, onCellEdit, views: viewsProp, defaultViews, onViewsChange, activeViewId, defaultActiveViewId, onActiveViewChange, showViewSwitcher, filters, onFiltersChange, toolbar, className, labels }: DataTableProps<T>): import("react").JSX.Element;
|
|
3093
3228
|
//#endregion
|
|
3094
3229
|
//#region src/tables/DataTable/column-menu.d.ts
|
|
3095
3230
|
interface ColumnVisibilityMenuProps<T> {
|
|
@@ -3097,6 +3232,7 @@ interface ColumnVisibilityMenuProps<T> {
|
|
|
3097
3232
|
hidden: ReadonlySet<string>;
|
|
3098
3233
|
onToggle: (columnId: string, visible: boolean) => void;
|
|
3099
3234
|
label?: string;
|
|
3235
|
+
labels?: Partial<DataTableLabels>;
|
|
3100
3236
|
/** Pin side of a column; with `onPin`, the menu gets a "Pin columns" section. */
|
|
3101
3237
|
pinOf?: (columnId: string) => PinSide | null;
|
|
3102
3238
|
onPin?: (columnId: string, side: PinSide | null) => void;
|
|
@@ -3105,18 +3241,20 @@ interface ColumnVisibilityMenuProps<T> {
|
|
|
3105
3241
|
* "Columns" menu: one checkbox item per hideable column (the last visible column cannot be
|
|
3106
3242
|
* hidden) and, when pinning is on, a submenu per visible column to pin it left, right or unpin it.
|
|
3107
3243
|
*/
|
|
3108
|
-
export declare function ColumnVisibilityMenu<T>({ columns, hidden, onToggle, label: labelProp, pinOf, onPin }: ColumnVisibilityMenuProps<T>): import("react").JSX.Element;
|
|
3244
|
+
export declare function ColumnVisibilityMenu<T>({ columns, hidden, onToggle, label: labelProp, labels, pinOf, onPin }: ColumnVisibilityMenuProps<T>): import("react").JSX.Element;
|
|
3109
3245
|
//#endregion
|
|
3110
3246
|
//#region src/tables/DataTable/density-toggle.d.ts
|
|
3111
3247
|
interface DensityToggleProps {
|
|
3248
|
+
labels?: Partial<DataTableLabels>;
|
|
3112
3249
|
value: TableDensity;
|
|
3113
3250
|
onChange: (density: TableDensity) => void;
|
|
3114
3251
|
}
|
|
3115
3252
|
/** Two-icon segmented control: comfortable or compact rows. */
|
|
3116
|
-
export declare function DensityToggle({ value, onChange }: DensityToggleProps): import("react").JSX.Element;
|
|
3253
|
+
export declare function DensityToggle({ value, onChange, labels }: DensityToggleProps): import("react").JSX.Element;
|
|
3117
3254
|
//#endregion
|
|
3118
3255
|
//#region src/tables/DataTable/resize-handle.d.ts
|
|
3119
3256
|
interface ColumnResizeHandleProps {
|
|
3257
|
+
labels?: Partial<DataTableLabels>;
|
|
3120
3258
|
/** Column name for the accessible label ("Resize Region column"). */
|
|
3121
3259
|
label: string;
|
|
3122
3260
|
width: number;
|
|
@@ -3131,7 +3269,7 @@ interface ColumnResizeHandleProps {
|
|
|
3131
3269
|
* aria-valuenow/min/max (the width in px). Drag it with a pointer; from the keyboard,
|
|
3132
3270
|
* ArrowLeft/ArrowRight change the width by 10px (Shift: 50px), Home/End jump to the limits.
|
|
3133
3271
|
*/
|
|
3134
|
-
export declare function ColumnResizeHandle({ label, width, min, max, onResize, onResizeEnd }: ColumnResizeHandleProps): import("react").JSX.Element;
|
|
3272
|
+
export declare function ColumnResizeHandle({ label, width, min, max, onResize, onResizeEnd, labels }: ColumnResizeHandleProps): import("react").JSX.Element;
|
|
3135
3273
|
//#endregion
|
|
3136
3274
|
//#region src/tables/DataTable/block.meta.d.ts
|
|
3137
3275
|
declare const meta$16: BlockMeta;
|
|
@@ -3152,7 +3290,22 @@ export interface SavedView {
|
|
|
3152
3290
|
query?: string;
|
|
3153
3291
|
filters: readonly ActiveFilter[];
|
|
3154
3292
|
}
|
|
3293
|
+
export interface FilterBarLabels {
|
|
3294
|
+
searchLandmark: string;
|
|
3295
|
+
searchLabel: string;
|
|
3296
|
+
searchPlaceholder: string;
|
|
3297
|
+
savedViewLabel: string;
|
|
3298
|
+
savedViewPlaceholder: string;
|
|
3299
|
+
addFilter: string;
|
|
3300
|
+
activeFilters: string;
|
|
3301
|
+
filters: string;
|
|
3302
|
+
clearAll: string;
|
|
3303
|
+
removeFilter: (field: string, value: string) => string;
|
|
3304
|
+
resultCount: (count: number) => string;
|
|
3305
|
+
}
|
|
3155
3306
|
export interface FilterBarProps {
|
|
3307
|
+
/** Per-key overrides take precedence over the legacy search props and provider catalog. */
|
|
3308
|
+
labels?: Partial<FilterBarLabels>;
|
|
3156
3309
|
fields?: readonly FilterField[];
|
|
3157
3310
|
/** Search text (controlled). */
|
|
3158
3311
|
query?: string;
|
|
@@ -3176,7 +3329,7 @@ export interface FilterBarProps {
|
|
|
3176
3329
|
* Filter bar: search Input, saved views Select, an "Add filter" Menu (multi-select per field),
|
|
3177
3330
|
* removable filter chips (Token) and Clear all.
|
|
3178
3331
|
*/
|
|
3179
|
-
export declare function FilterBar({ fields, query: queryProp, defaultQuery, onQueryChange, filters: filtersProp, defaultFilters, onFiltersChange, views, defaultView, onViewChange, searchLabel: searchLabelProp, placeholder, resultCount, className }: FilterBarProps): import("react").JSX.Element;
|
|
3332
|
+
export declare function FilterBar({ fields, query: queryProp, defaultQuery, onQueryChange, filters: filtersProp, defaultFilters, onFiltersChange, views, defaultView, onViewChange, searchLabel: searchLabelProp, placeholder: placeholderProp, resultCount, className, labels }: FilterBarProps): import("react").JSX.Element;
|
|
3180
3333
|
//#endregion
|
|
3181
3334
|
//#region src/tables/FilterBar/block.meta.d.ts
|
|
3182
3335
|
declare const meta$27: BlockMeta;
|
|
@@ -3186,27 +3339,6 @@ export declare const DEPLOYMENT_FILTER_FIELDS: FilterField[];
|
|
|
3186
3339
|
export declare const DEPLOYMENT_DEFAULT_FILTERS: ActiveFilter[];
|
|
3187
3340
|
export declare const DEPLOYMENT_SAVED_VIEWS: SavedView[];
|
|
3188
3341
|
//#endregion
|
|
3189
|
-
//#region src/tables/PaginationFooter/PaginationFooter.d.ts
|
|
3190
|
-
export interface PaginationFooterProps {
|
|
3191
|
-
/** Total number of rows. */
|
|
3192
|
-
total?: number;
|
|
3193
|
-
/** Current page, 1-based (controlled). */
|
|
3194
|
-
page?: number;
|
|
3195
|
-
defaultPage?: number;
|
|
3196
|
-
onPageChange?: (page: number) => void;
|
|
3197
|
-
/** Rows per page (controlled). */
|
|
3198
|
-
pageSize?: number;
|
|
3199
|
-
defaultPageSize?: number;
|
|
3200
|
-
onPageSizeChange?: (pageSize: number) => void;
|
|
3201
|
-
pageSizeOptions?: readonly number[];
|
|
3202
|
-
/** What the rows are, for the accessible names ("Deployments"). */
|
|
3203
|
-
noun?: string;
|
|
3204
|
-
locale?: string;
|
|
3205
|
-
className?: string;
|
|
3206
|
-
}
|
|
3207
|
-
/** Table footer: rows-per-page Select, a "1–10 of 97" summary and numbered Pagination. Stacks on small screens. */
|
|
3208
|
-
export declare function PaginationFooter({ total, page: pageProp, defaultPage, onPageChange, pageSize: sizeProp, defaultPageSize, onPageSizeChange, pageSizeOptions, noun: nounProp, locale: localeProp, className }: PaginationFooterProps): import("react").JSX.Element;
|
|
3209
|
-
//#endregion
|
|
3210
3342
|
//#region src/tables/PaginationFooter/block.meta.d.ts
|
|
3211
3343
|
declare const meta$46: BlockMeta;
|
|
3212
3344
|
//#endregion
|
|
@@ -3490,5 +3622,5 @@ export declare function SessionsDevices({ sessions, onRevoke, onRevokeOthers, ti
|
|
|
3490
3622
|
//#region src/team/SessionsDevices/block.meta.d.ts
|
|
3491
3623
|
declare const meta$58: BlockMeta;
|
|
3492
3624
|
//#endregion
|
|
3493
|
-
export { type ApiKeyExpiry, type ApiKeyScope, type Assistant, type AssistantStatus, type AuthFormAccessibilityProps, type AuthHeaderProps, type AuthIdentifierConfig, type AuthValidationMessages, type BlockMeta, type CodeFile, type CodePanelMarker, type CodeProblem, type ColumnResizeHandleProps, type ColumnVisibilityMenuProps, type ColumnWidths, type ConfirmDestructiveDialogProps, type ConsoleEntry, type CostPoint, type DangerZoneAction, type DataTableCellEdit, type DataTableCellEditHandler, type DataTableCellEditResult, type DataTableProps, type DataTableView, type DataTableViewState, ViewSwitcher as DataTableViewSwitcher, type ViewSwitcherProps as DataTableViewSwitcherProps, type DensityToggleProps, type DeploymentRow, type DeviceKind, type DeviceSession, type EditableMember, type EvalMetric, type EvalRow, type EventKind, type EventTone, type FeedbackAction, type FlowConnection, type FlowConnectionRejection, type FlowEdge, type FlowHandle, type FlowNode, type FlowNodeData, type FlowNodeKind, type FlowNodeRenderProps, type FlowNodeRenderer, type FlowTone, type FlowValidationIssue, type Invitation, type LogLevel, type LogLine, type MarketingAction, type Member, type ModelKey, type ModelKeyStatus, type MonacoReady, type NodeInspectorProps, type NodePaletteProps, type NotificationChannel, type NotificationEvent, type NotificationMatrixValue, type PageChromeAction, type PaletteItem, type PanelHeading, type PinSide, type PinnedColumns, type PlanSummaryProps, type ProblemSeverity, type Profile, type ProfileMetaItem, type RoleOption, type RunConsoleProps, type ScheduleEvent, type SpanDetailsProps, type SpanKind, type SsoProvider, type SummaryPlan, type TokenUsagePeriod, type TraceSpan, type TrafficRow, type UploadItem, type UploadStatus, type ValidationIssue, meta$1 as activityFeedMeta, meta$2 as agendaListMeta, meta$3 as appSidebarMeta, meta$4 as appTopbarMeta, meta$5 as assistantCardGridMeta, meta$6 as bulkActionBarMeta, meta$7 as chartCardMeta, meta$8 as codePanelMeta, meta$9 as commentThreadMeta, meta$10 as comparisonTableMeta, meta$11 as confirmDestructiveMeta, meta$12 as costBreakdownMeta, meta$13 as createApiKeyDialogMeta, meta$14 as credentialDisclosureDialogMeta, meta$15 as dangerZoneMeta, meta$16 as dataTableMeta, meta$17 as dateRangeFilterMeta, meta$18 as descriptionListCardMeta, meta$19 as dialogWizardMeta, meta$20 as emptyStatesMeta, meta$21 as environmentBadgeMeta, meta$22 as errorPanelMeta, meta$23 as evaluationScorecardMeta, meta$24 as faqMeta, meta$25 as featureGridMeta, meta$26 as fileUploadPanelMeta, meta$27 as filterBarMeta, meta$28 as flowBuilderMeta, meta$29 as forgotPasswordFormMeta, meta$30 as formSectionMeta, meta$31 as globalSearchMeta, meta$32 as heroMeta, meta$33 as inlineCalloutMeta, meta$34 as inlineEditRowMeta, meta$35 as inviteMembersDialogMeta, meta$36 as invoiceTableMeta, meta$37 as kpiRowMeta, meta$38 as logViewerMeta, meta$39 as membersTableMeta, meta$40 as mfaChallengeMeta, meta$41 as modelKeysListMeta, meta$42 as monthCalendarMeta, meta$43 as notificationMatrixMeta, meta$44 as pageHeaderMeta, meta$45 as pageToolbarMeta, meta$46 as paginationFooterMeta, meta$47 as paymentMethodCardMeta, meta$48 as pendingInvitationsMeta, meta$49 as planCardMeta, meta$50 as planDefinitionCardMeta, meta$51 as pricingTableMeta, meta$52 as profileHeaderMeta, meta$53 as promptEditorMeta, meta$54 as quotaMetersMeta, meta$55 as resetPasswordFormMeta, meta$56 as resourceCardGridMeta, deviceSessions as sampleDeviceSessions, invitations$1 as sampleInvitations, members$1 as sampleMembers, profile$1 as sampleProfile, sampleEvents as sampleScheduleEvents, sampleToday as sampleScheduleToday, meta$57 as sectionHeaderMeta, meta$58 as sessionsDevicesMeta, meta$59 as settingsRowMeta, meta$60 as signInFormMeta, meta$61 as signUpFormMeta, meta$62 as skeletonsMeta, meta$63 as spendVsBudgetMeta, meta$64 as ssoButtonsMeta, meta$65 as statCardMeta, meta$66 as statusTimelineMeta, meta$67 as stickyActionBarMeta, meta$68 as subordinateListMeta, meta$69 as systemBannerMeta, meta$70 as timeSlotPickerMeta, meta$71 as tokenCostCardMeta, meta$72 as traceWaterfallMeta, meta$73 as truncatedCollectionFooterMeta, validationIssues$1 as validationIssues, meta$74 as validationSummaryMeta, meta$75 as weekCalendarMeta };
|
|
3625
|
+
export { type ApiKeyExpiry, type ApiKeyScope, type Assistant, type AssistantStatus, type AuthFormAccessibilityProps, type AuthHeaderProps, type AuthIdentifierConfig, type AuthSignUpField, type AuthSignUpValidationMessages, type AuthUnavailableState, type AuthValidationMessages, type BlockMeta, type CodeFile, type CodePanelMarker, type CodeProblem, type ColumnResizeHandleProps, type ColumnVisibilityMenuProps, type ColumnWidths, type ConfirmDestructiveDialogProps, type ConsoleEntry, type CostPoint, type DangerZoneAction, type DataTableCellEdit, type DataTableCellEditHandler, type DataTableCellEditResult, type DataTableLabels, type DataTableProps, type DataTableView, type DataTableViewState, ViewSwitcher as DataTableViewSwitcher, type ViewSwitcherProps as DataTableViewSwitcherProps, type DensityToggleProps, type DeploymentRow, type DeviceKind, type DeviceSession, type EditableMember, type EvalMetric, type EvalRow, type EventKind, type EventTone, type FeedbackAction, type FlowConnection, type FlowConnectionRejection, type FlowEdge, type FlowHandle, type FlowNode, type FlowNodeData, type FlowNodeKind, type FlowNodeRenderProps, type FlowNodeRenderer, type FlowTone, type FlowValidationIssue, type Invitation, type LogLevel, type LogLine, type MarketingAction, type Member, type ModelKey, type ModelKeyStatus, type MonacoReady, type NodeInspectorProps, type NodePaletteProps, type NotificationChannel, type NotificationEvent, type NotificationMatrixValue, type PageChromeAction, type PaletteItem, type PanelHeading, type PinSide, type PinnedColumns, type PlanSummaryProps, type ProblemSeverity, type Profile, type ProfileMetaItem, type RoleOption, type RunConsoleProps, type ScheduleEvent, type SpanDetailsProps, type SpanKind, type SsoProvider, type SummaryPlan, type TokenUsagePeriod, type TraceSpan, type TrafficRow, type UploadItem, type UploadStatus, type ValidationIssue, meta$1 as activityFeedMeta, meta$2 as agendaListMeta, meta$3 as appSidebarMeta, meta$4 as appTopbarMeta, meta$5 as assistantCardGridMeta, meta$6 as bulkActionBarMeta, meta$7 as chartCardMeta, meta$8 as codePanelMeta, meta$9 as commentThreadMeta, meta$10 as comparisonTableMeta, meta$11 as confirmDestructiveMeta, meta$12 as costBreakdownMeta, meta$13 as createApiKeyDialogMeta, meta$14 as credentialDisclosureDialogMeta, meta$15 as dangerZoneMeta, meta$16 as dataTableMeta, meta$17 as dateRangeFilterMeta, meta$18 as descriptionListCardMeta, meta$19 as dialogWizardMeta, meta$20 as emptyStatesMeta, meta$21 as environmentBadgeMeta, meta$22 as errorPanelMeta, meta$23 as evaluationScorecardMeta, meta$24 as faqMeta, meta$25 as featureGridMeta, meta$26 as fileUploadPanelMeta, meta$27 as filterBarMeta, meta$28 as flowBuilderMeta, meta$29 as forgotPasswordFormMeta, meta$30 as formSectionMeta, meta$31 as globalSearchMeta, meta$32 as heroMeta, meta$33 as inlineCalloutMeta, meta$34 as inlineEditRowMeta, meta$35 as inviteMembersDialogMeta, meta$36 as invoiceTableMeta, meta$37 as kpiRowMeta, meta$38 as logViewerMeta, meta$39 as membersTableMeta, meta$40 as mfaChallengeMeta, meta$41 as modelKeysListMeta, meta$42 as monthCalendarMeta, meta$43 as notificationMatrixMeta, meta$44 as pageHeaderMeta, meta$45 as pageToolbarMeta, meta$46 as paginationFooterMeta, meta$47 as paymentMethodCardMeta, meta$48 as pendingInvitationsMeta, meta$49 as planCardMeta, meta$50 as planDefinitionCardMeta, meta$51 as pricingTableMeta, meta$52 as profileHeaderMeta, meta$53 as promptEditorMeta, meta$54 as quotaMetersMeta, meta$55 as resetPasswordFormMeta, meta$56 as resourceCardGridMeta, deviceSessions as sampleDeviceSessions, invitations$1 as sampleInvitations, members$1 as sampleMembers, profile$1 as sampleProfile, sampleEvents as sampleScheduleEvents, sampleToday as sampleScheduleToday, meta$57 as sectionHeaderMeta, meta$58 as sessionsDevicesMeta, meta$59 as settingsRowMeta, meta$60 as signInFormMeta, meta$61 as signUpFormMeta, meta$62 as skeletonsMeta, meta$63 as spendVsBudgetMeta, meta$64 as ssoButtonsMeta, meta$65 as statCardMeta, meta$66 as statusTimelineMeta, meta$67 as stickyActionBarMeta, meta$68 as subordinateListMeta, meta$69 as systemBannerMeta, meta$70 as timeSlotPickerMeta, meta$71 as tokenCostCardMeta, meta$72 as traceWaterfallMeta, meta$73 as truncatedCollectionFooterMeta, validationIssues$1 as validationIssues, meta$74 as validationSummaryMeta, meta$75 as weekCalendarMeta };
|
|
3494
3626
|
//# sourceMappingURL=index.d.ts.map
|