@homebound/beam 3.0.0-alpha.5 → 3.0.0-alpha.6
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 +5 -1
- package/dist/index.cjs +66 -32
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -1
- package/dist/index.d.ts +16 -1
- package/dist/index.js +65 -32
- package/dist/index.js.map +1 -1
- package/package.json +4 -3
package/dist/index.d.cts
CHANGED
|
@@ -24,6 +24,11 @@ declare module "react" {
|
|
|
24
24
|
interface SVGAttributes<T> {
|
|
25
25
|
css?: Properties;
|
|
26
26
|
}
|
|
27
|
+
namespace JSX {
|
|
28
|
+
interface IntrinsicAttributes {
|
|
29
|
+
css?: Properties;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
27
32
|
}
|
|
28
33
|
type Opts<T> = {
|
|
29
34
|
rules: T;
|
|
@@ -4053,6 +4058,8 @@ declare class CssBuilder<T extends Properties> {
|
|
|
4053
4058
|
get onFocusWithin(): CssBuilder<T>;
|
|
4054
4059
|
get onActive(): CssBuilder<T>;
|
|
4055
4060
|
get onDisabled(): CssBuilder<T>;
|
|
4061
|
+
get ifFirstOfType(): CssBuilder<T>;
|
|
4062
|
+
get ifLastOfType(): CssBuilder<T>;
|
|
4056
4063
|
/** Marks this element as a default hover marker (for ancestor pseudo selectors). */
|
|
4057
4064
|
get marker(): CssBuilder<T>;
|
|
4058
4065
|
/** Marks this element with a user-defined marker. */
|
|
@@ -4100,6 +4107,8 @@ declare class CssBuilder<T extends Properties> {
|
|
|
4100
4107
|
}>;
|
|
4101
4108
|
/** Inline a partial style hash, skipping any undefined values. */
|
|
4102
4109
|
addCss<P extends Properties>(props: P): CssBuilder<T & P>;
|
|
4110
|
+
/** Marker for the build-time transform to append a raw className. */
|
|
4111
|
+
className(className: string): CssBuilder<T>;
|
|
4103
4112
|
/** Convert a style hash into `{ className, style }` props for manual spreading into non-`css=` contexts. */
|
|
4104
4113
|
props(styles: Properties): Record<string, unknown>;
|
|
4105
4114
|
private get rules();
|
|
@@ -4561,6 +4570,7 @@ type RenderAs = "div" | "table" | "virtual";
|
|
|
4561
4570
|
type Direction = "ASC" | "DESC";
|
|
4562
4571
|
type MaybeFn<T> = T | (() => T);
|
|
4563
4572
|
type GridCellAlignment = "left" | "right" | "center";
|
|
4573
|
+
type GridColumnBorder = "left" | "right";
|
|
4564
4574
|
type GridTableScrollOptions = number | {
|
|
4565
4575
|
/** The index of the row to scroll to */
|
|
4566
4576
|
index: number;
|
|
@@ -4623,6 +4633,8 @@ type GridColumn<R extends Kinded> = {
|
|
|
4623
4633
|
serverSideSortKey?: string;
|
|
4624
4634
|
/** Allows the column to stay in place when the user scrolls horizontally */
|
|
4625
4635
|
sticky?: "left" | "right";
|
|
4636
|
+
/** Draws a border on this column's left or right edge for every rendered cell. */
|
|
4637
|
+
border?: GridColumnBorder;
|
|
4626
4638
|
/** Prevent column from supporting RowStyle.onClick/rowLink in order to avoid nested interactivity. Defaults to true */
|
|
4627
4639
|
wrapAction?: false;
|
|
4628
4640
|
/** Used as a signal to defer adding the row's level indentation styling */
|
|
@@ -4753,6 +4765,8 @@ interface GridStyle {
|
|
|
4753
4765
|
firstCellCss?: Properties;
|
|
4754
4766
|
/** Applied to the last cell of all rows, i.e. for table-wide padding or right-side borders. */
|
|
4755
4767
|
lastCellCss?: Properties;
|
|
4768
|
+
/** Applied to any column that opts into `GridColumn.border`. */
|
|
4769
|
+
borderStyle?: Properties;
|
|
4756
4770
|
/** Applied to every cell in the first table-head row (expandableHeader/header/totals). */
|
|
4757
4771
|
firstRowCellCss?: Properties;
|
|
4758
4772
|
/** Applied to the first cell in the first table-head row. */
|
|
@@ -7877,6 +7891,7 @@ declare const ASC: "ASC";
|
|
|
7877
7891
|
declare const DESC: "DESC";
|
|
7878
7892
|
declare const emptyCell: GridCellContent;
|
|
7879
7893
|
declare function getFirstOrLastCellCss<R extends Kinded>(style: GridStyle, columnIndex: number, columns: GridColumnWithId<R>[], colspan?: number): Properties;
|
|
7894
|
+
declare function getColumnBorderCss(border: GridColumnBorder | undefined, style: GridStyle): Properties;
|
|
7880
7895
|
/** A heuristic to detect the result of `React.createElement` / i.e. JSX. */
|
|
7881
7896
|
declare function isJSX(content: any): boolean;
|
|
7882
7897
|
declare function getAlignment(column: GridColumnWithId<any>, maybeContent: ReactNode | GridCellContent): GridCellAlignment;
|
|
@@ -8377,4 +8392,4 @@ declare function resolveTooltip(disabled?: boolean | ReactNode, tooltip?: ReactN
|
|
|
8377
8392
|
*/
|
|
8378
8393
|
declare function defaultTestId(label: string): string;
|
|
8379
8394
|
|
|
8380
|
-
export { ASC, Accordion, AccordionList, type AccordionProps, type AccordionSize, AutoSaveIndicator, AutoSaveStatus, AutoSaveStatusContext, AutoSaveStatusProvider, Autocomplete, type AutocompleteProps, Avatar, AvatarButton, type AvatarButtonProps, AvatarGroup, type AvatarGroupProps, type AvatarProps, type AvatarSize, Banner, type BannerProps, type BannerTypes, BaseFilter, type BeamButtonProps, type BeamFocusableProps, BeamProvider, type BeamTextFieldProps, BoundCheckboxField, type BoundCheckboxFieldProps, BoundCheckboxGroupField, type BoundCheckboxGroupFieldProps, BoundChipSelectField, BoundDateField, type BoundDateFieldProps, BoundDateRangeField, type BoundDateRangeFieldProps, BoundForm, type BoundFormInputConfig, type BoundFormProps, type BoundFormRowInputs, BoundIconCardField, type BoundIconCardFieldProps, BoundIconCardGroupField, type BoundIconCardGroupFieldProps, BoundMultiLineSelectField, type BoundMultiLineSelectFieldProps, BoundMultiSelectField, type BoundMultiSelectFieldProps, BoundNumberField, type BoundNumberFieldProps, BoundRadioGroupField, type BoundRadioGroupFieldProps, BoundRichTextField, type BoundRichTextFieldProps, BoundSelectAndTextField, BoundSelectField, type BoundSelectFieldProps, BoundSwitchField, type BoundSwitchFieldProps, BoundTextAreaField, type BoundTextAreaFieldProps, BoundTextField, type BoundTextFieldProps, BoundToggleChipGroupField, type BoundToggleChipGroupFieldProps, BoundTreeSelectField, type BoundTreeSelectFieldProps, type Breakpoint, Breakpoints, Button, ButtonDatePicker, ButtonGroup, type ButtonGroupButton, type ButtonGroupProps, ButtonMenu, type ButtonMenuProps, ButtonModal, type ButtonModalProps, type ButtonProps, type ButtonSize, type ButtonVariant, Card, type CardProps, type CardTag, type CardType, type CheckFn, Checkbox, CheckboxGroup, type CheckboxGroupItemOption, type CheckboxGroupProps, type CheckboxProps, Chip, type ChipProps, ChipSelectField, type ChipSelectFieldProps, type ChipType, ChipTypes, type ChipValue, Chips, type ChipsProps, CollapseToggle, CollapsedContext, ConfirmCloseModal, type ContentStack, Copy, CountBadge, type CountBadgeProps, Css, CssReset, DESC, DateField, type DateFieldMode, type DateFieldModeTuple, type DateFieldProps, type DateFilterValue, DateRangeField, type DateRangeFieldProps, type DateRangeFilterValue, type Direction, type DiscriminateUnion, type DividerMenuItemType, DnDGrid, DnDGridItemHandle, type DnDGridItemHandleProps, type DnDGridItemProps, type DnDGridProps, type DragData, EXPANDABLE_HEADER, EditColumnsButton, ErrorMessage, FieldGroup, type Filter, type FilterDefs, _FilterDropdownMenu as FilterDropdownMenu, type FilterImpls, FilterModal, _Filters as Filters, type Font, FormDivider, FormHeading, type FormHeadingProps, FormLines, type FormLinesProps, FormPageLayout, FormRow, type FormSectionConfig, type FormWidth, FullBleed, type GridCellAlignment, type GridCellContent, type GridColumn, type GridColumnWithId, type GridDataRow, type GridRowKind, type GridRowLookup, type GridSortConfig, type GridStyle, GridTable, type GridTableApi, type GridTableCollapseToggleProps, type GridTableDefaults, GridTableLayout, type GridTableLayoutProps, type GridTableProps, type GridTableScrollOptions, type GridTableXss, type GroupByHook, HB_QUIPS_FLAVOR, HB_QUIPS_MISSION, HEADER, type HasIdAndName, HbLoadingSpinner, HbSpinnerProvider, HelperText, Icon, IconButton, type IconButtonProps, IconCard, type IconCardProps, type IconKey, type IconMenuItemType, type IconProps, Icons, type IfAny, type ImageFitType, type ImageMenuItemType, type InfiniteScroll, type InputStylePalette, KEPT_GROUP, type Kinded, Loader, LoadingSkeleton, type LoadingSkeletonProps, type Margin, type Marker, MaxLines, type MaxLinesProps, type MaybeFn, type MenuItem, type MenuSection, ModalBody, ModalFilterItem, ModalFooter, ModalHeader, type ModalProps, type ModalSize, MultiLineSelectField, type MultiLineSelectFieldProps, MultiSelectField, type MultiSelectFieldProps, NavLink, type NestedOption, type NestedOptionsOrLoad, NumberField, type NumberFieldProps, type NumberFieldType, type OffsetAndLimit, type OnRowDragEvent, type OnRowSelect, type Only, type OpenDetailOpts, type OpenInDrawerOpts, OpenModal, type OpenRightPaneOpts, type Optional, type Padding, type PageNumberAndSize, type PageSettings, Pagination, type PaginationConfig, Palette, type Pin, type Placement, type PresentationFieldProps, PresentationProvider, PreventBrowserScroll, type Properties, RIGHT_SIDEBAR_MIN_WIDTH, type RadioFieldOption, RadioGroupField, type RadioGroupFieldProps, type RenderAs, type RenderCellFn, ResponsiveGrid, type ResponsiveGridConfig, ResponsiveGridContext, ResponsiveGridItem, type ResponsiveGridItemProps, type ResponsiveGridProps, RichTextField, RichTextFieldImpl, type RichTextFieldProps, RightPaneContext, RightPaneLayout, type RightPaneLayoutContextProps, RightPaneProvider, RightSidebar, type RightSidebarProps, type RouteTab, type RouteTabWithContent, Row, type RowStyle, type RowStyles, ScrollShadows, ScrollableContent, ScrollableParent, SelectField, type SelectFieldProps, SelectToggle, type SelectedState, type SidebarContentProps, type SimpleHeaderAndData, SortHeader, type SortOn, type SortState, StaticField, type Step, Stepper, type StepperProps, SubmitButton, type SubmitButtonProps, SuperDrawerContent, SuperDrawerHeader, SuperDrawerWidth, Switch, type SwitchProps, TOTALS, type Tab, TabContent, type TabWithContent, TableState, TableStateContext, Tabs, TabsWithContent, Tag, type TagType, type TestIds, TextAreaField, type TextAreaFieldProps, TextField, type TextFieldApi, type TextFieldInternalProps, type TextFieldProps, type TextFieldXss, Toast, ToggleButton, type ToggleButtonProps, ToggleChip, ToggleChipGroup, type ToggleChipGroupProps, type ToggleChipProps, ToggleChips, type ToggleChipsProps, Tooltip, TreeSelectField, type TreeSelectFieldProps, type TriggerNoticeProps, type Typography, type UseModalHook, type UsePersistedFilterProps, type UseQueryState, type UseRightPaneHook, type UseSnackbarHook, type UseSuperDrawerHook, type UseToastProps, type Value, type Xss, actionColumn, applyRowFn, assignDefaultColumnIds, booleanFilter, boundCheckboxField, boundCheckboxGroupField, boundDateField, boundDateRangeField, boundIconCardField, boundIconCardGroupField, boundMultiSelectField, boundMultilineSelectField, boundNumberField, boundRadioGroupField, boundRichTextField, boundSelectField, boundSwitchField, boundTextAreaField, boundTextField, boundToggleChipGroupField, boundTreeSelectField, calcColumnSizes, cardStyle, checkboxFilter, chipBaseStyles, chipDisabledStyles, chipHoverOnlyStyles, chipHoverStyles, collapseColumn, column, condensedStyle, createRowLookup, dateColumn, dateFilter, dateFormats, dateRangeFilter, defaultPage, defaultRenderFn, defaultStyle, defaultTestId, dragHandleColumn, emptyCell, ensureClientSideSortValueIsSortable, filterTestIdPrefix, formatDate, formatDateRange, formatValue, generateColumnId, getAlignment, getDateFormat, getFirstOrLastCellCss, getJustification, getTableRefWidthStyles, getTableStyles, headerRenderFn, hoverStyles, iconButtonCircleStylesHover, iconButtonContrastStylesHover, iconButtonStylesHover, iconCardStylesHover, increment, insertAtIndex, isCursorBelowMidpoint, isGridCellContent, isJSX, isListBoxSection, isPersistentItem, isPersistentKey, isValidDate, listFieldPrefix, loadArrayOrUndefined, marker, matchesFilter, maybeInc, maybeTooltip, multiFilter, navLink, newMethodMissingProxy, nonKindGridColumnKeys, numberRangeFilter, numericColumn, parseDate, parseDateRange, parseWidthToPx, persistentItemPrefix, pressedOverlayCss, px, recursivelyGetContainingRow, reservedRowKinds, resolveTooltip, rowClickRenderFn, rowLinkRenderFn, selectColumn, selectedStyles, setDefaultStyle, setGridTableDefaults, setRunningInJest, shouldSkipScrollTo, simpleDataRows, simpleHeader, singleFilter, sortFn, sortRows, switchFocusStyles, switchHoverStyles, switchSelectedHoverStyles, toContent, toLimitAndOffset, toPageNumberSize, toggleFilter, toggleFocusStyles, toggleHoverStyles, togglePressStyles, treeFilter, updateFilter, useAutoSaveStatus, useBreakpoint, useComputed, useDnDGridItem, type useDnDGridItemProps, useFilter, useGridTableApi, useGridTableLayoutState, useGroupBy, useHover, useModal, usePersistedFilter, useQueryState, useResponsiveGrid, useResponsiveGridItem, type useResponsiveGridProps, useRightPane, useRightPaneContext, useScrollableParent, useSessionStorage, useSetupColumnSizes, useSnackbar, useSuperDrawer, useTestIds, useToast, useTreeSelectFieldProvider, visit, zIndices };
|
|
8395
|
+
export { ASC, Accordion, AccordionList, type AccordionProps, type AccordionSize, AutoSaveIndicator, AutoSaveStatus, AutoSaveStatusContext, AutoSaveStatusProvider, Autocomplete, type AutocompleteProps, Avatar, AvatarButton, type AvatarButtonProps, AvatarGroup, type AvatarGroupProps, type AvatarProps, type AvatarSize, Banner, type BannerProps, type BannerTypes, BaseFilter, type BeamButtonProps, type BeamFocusableProps, BeamProvider, type BeamTextFieldProps, BoundCheckboxField, type BoundCheckboxFieldProps, BoundCheckboxGroupField, type BoundCheckboxGroupFieldProps, BoundChipSelectField, BoundDateField, type BoundDateFieldProps, BoundDateRangeField, type BoundDateRangeFieldProps, BoundForm, type BoundFormInputConfig, type BoundFormProps, type BoundFormRowInputs, BoundIconCardField, type BoundIconCardFieldProps, BoundIconCardGroupField, type BoundIconCardGroupFieldProps, BoundMultiLineSelectField, type BoundMultiLineSelectFieldProps, BoundMultiSelectField, type BoundMultiSelectFieldProps, BoundNumberField, type BoundNumberFieldProps, BoundRadioGroupField, type BoundRadioGroupFieldProps, BoundRichTextField, type BoundRichTextFieldProps, BoundSelectAndTextField, BoundSelectField, type BoundSelectFieldProps, BoundSwitchField, type BoundSwitchFieldProps, BoundTextAreaField, type BoundTextAreaFieldProps, BoundTextField, type BoundTextFieldProps, BoundToggleChipGroupField, type BoundToggleChipGroupFieldProps, BoundTreeSelectField, type BoundTreeSelectFieldProps, type Breakpoint, Breakpoints, Button, ButtonDatePicker, ButtonGroup, type ButtonGroupButton, type ButtonGroupProps, ButtonMenu, type ButtonMenuProps, ButtonModal, type ButtonModalProps, type ButtonProps, type ButtonSize, type ButtonVariant, Card, type CardProps, type CardTag, type CardType, type CheckFn, Checkbox, CheckboxGroup, type CheckboxGroupItemOption, type CheckboxGroupProps, type CheckboxProps, Chip, type ChipProps, ChipSelectField, type ChipSelectFieldProps, type ChipType, ChipTypes, type ChipValue, Chips, type ChipsProps, CollapseToggle, CollapsedContext, ConfirmCloseModal, type ContentStack, Copy, CountBadge, type CountBadgeProps, Css, CssReset, DESC, DateField, type DateFieldMode, type DateFieldModeTuple, type DateFieldProps, type DateFilterValue, DateRangeField, type DateRangeFieldProps, type DateRangeFilterValue, type Direction, type DiscriminateUnion, type DividerMenuItemType, DnDGrid, DnDGridItemHandle, type DnDGridItemHandleProps, type DnDGridItemProps, type DnDGridProps, type DragData, EXPANDABLE_HEADER, EditColumnsButton, ErrorMessage, FieldGroup, type Filter, type FilterDefs, _FilterDropdownMenu as FilterDropdownMenu, type FilterImpls, FilterModal, _Filters as Filters, type Font, FormDivider, FormHeading, type FormHeadingProps, FormLines, type FormLinesProps, FormPageLayout, FormRow, type FormSectionConfig, type FormWidth, FullBleed, type GridCellAlignment, type GridCellContent, type GridColumn, type GridColumnBorder, type GridColumnWithId, type GridDataRow, type GridRowKind, type GridRowLookup, type GridSortConfig, type GridStyle, GridTable, type GridTableApi, type GridTableCollapseToggleProps, type GridTableDefaults, GridTableLayout, type GridTableLayoutProps, type GridTableProps, type GridTableScrollOptions, type GridTableXss, type GroupByHook, HB_QUIPS_FLAVOR, HB_QUIPS_MISSION, HEADER, type HasIdAndName, HbLoadingSpinner, HbSpinnerProvider, HelperText, Icon, IconButton, type IconButtonProps, IconCard, type IconCardProps, type IconKey, type IconMenuItemType, type IconProps, Icons, type IfAny, type ImageFitType, type ImageMenuItemType, type InfiniteScroll, type InputStylePalette, KEPT_GROUP, type Kinded, Loader, LoadingSkeleton, type LoadingSkeletonProps, type Margin, type Marker, MaxLines, type MaxLinesProps, type MaybeFn, type MenuItem, type MenuSection, ModalBody, ModalFilterItem, ModalFooter, ModalHeader, type ModalProps, type ModalSize, MultiLineSelectField, type MultiLineSelectFieldProps, MultiSelectField, type MultiSelectFieldProps, NavLink, type NestedOption, type NestedOptionsOrLoad, NumberField, type NumberFieldProps, type NumberFieldType, type OffsetAndLimit, type OnRowDragEvent, type OnRowSelect, type Only, type OpenDetailOpts, type OpenInDrawerOpts, OpenModal, type OpenRightPaneOpts, type Optional, type Padding, type PageNumberAndSize, type PageSettings, Pagination, type PaginationConfig, Palette, type Pin, type Placement, type PresentationFieldProps, PresentationProvider, PreventBrowserScroll, type Properties, RIGHT_SIDEBAR_MIN_WIDTH, type RadioFieldOption, RadioGroupField, type RadioGroupFieldProps, type RenderAs, type RenderCellFn, ResponsiveGrid, type ResponsiveGridConfig, ResponsiveGridContext, ResponsiveGridItem, type ResponsiveGridItemProps, type ResponsiveGridProps, RichTextField, RichTextFieldImpl, type RichTextFieldProps, RightPaneContext, RightPaneLayout, type RightPaneLayoutContextProps, RightPaneProvider, RightSidebar, type RightSidebarProps, type RouteTab, type RouteTabWithContent, Row, type RowStyle, type RowStyles, ScrollShadows, ScrollableContent, ScrollableParent, SelectField, type SelectFieldProps, SelectToggle, type SelectedState, type SidebarContentProps, type SimpleHeaderAndData, SortHeader, type SortOn, type SortState, StaticField, type Step, Stepper, type StepperProps, SubmitButton, type SubmitButtonProps, SuperDrawerContent, SuperDrawerHeader, SuperDrawerWidth, Switch, type SwitchProps, TOTALS, type Tab, TabContent, type TabWithContent, TableState, TableStateContext, Tabs, TabsWithContent, Tag, type TagType, type TestIds, TextAreaField, type TextAreaFieldProps, TextField, type TextFieldApi, type TextFieldInternalProps, type TextFieldProps, type TextFieldXss, Toast, ToggleButton, type ToggleButtonProps, ToggleChip, ToggleChipGroup, type ToggleChipGroupProps, type ToggleChipProps, ToggleChips, type ToggleChipsProps, Tooltip, TreeSelectField, type TreeSelectFieldProps, type TriggerNoticeProps, type Typography, type UseModalHook, type UsePersistedFilterProps, type UseQueryState, type UseRightPaneHook, type UseSnackbarHook, type UseSuperDrawerHook, type UseToastProps, type Value, type Xss, actionColumn, applyRowFn, assignDefaultColumnIds, booleanFilter, boundCheckboxField, boundCheckboxGroupField, boundDateField, boundDateRangeField, boundIconCardField, boundIconCardGroupField, boundMultiSelectField, boundMultilineSelectField, boundNumberField, boundRadioGroupField, boundRichTextField, boundSelectField, boundSwitchField, boundTextAreaField, boundTextField, boundToggleChipGroupField, boundTreeSelectField, calcColumnSizes, cardStyle, checkboxFilter, chipBaseStyles, chipDisabledStyles, chipHoverOnlyStyles, chipHoverStyles, collapseColumn, column, condensedStyle, createRowLookup, dateColumn, dateFilter, dateFormats, dateRangeFilter, defaultPage, defaultRenderFn, defaultStyle, defaultTestId, dragHandleColumn, emptyCell, ensureClientSideSortValueIsSortable, filterTestIdPrefix, formatDate, formatDateRange, formatValue, generateColumnId, getAlignment, getColumnBorderCss, getDateFormat, getFirstOrLastCellCss, getJustification, getTableRefWidthStyles, getTableStyles, headerRenderFn, hoverStyles, iconButtonCircleStylesHover, iconButtonContrastStylesHover, iconButtonStylesHover, iconCardStylesHover, increment, insertAtIndex, isCursorBelowMidpoint, isGridCellContent, isJSX, isListBoxSection, isPersistentItem, isPersistentKey, isValidDate, listFieldPrefix, loadArrayOrUndefined, marker, matchesFilter, maybeInc, maybeTooltip, multiFilter, navLink, newMethodMissingProxy, nonKindGridColumnKeys, numberRangeFilter, numericColumn, parseDate, parseDateRange, parseWidthToPx, persistentItemPrefix, pressedOverlayCss, px, recursivelyGetContainingRow, reservedRowKinds, resolveTooltip, rowClickRenderFn, rowLinkRenderFn, selectColumn, selectedStyles, setDefaultStyle, setGridTableDefaults, setRunningInJest, shouldSkipScrollTo, simpleDataRows, simpleHeader, singleFilter, sortFn, sortRows, switchFocusStyles, switchHoverStyles, switchSelectedHoverStyles, toContent, toLimitAndOffset, toPageNumberSize, toggleFilter, toggleFocusStyles, toggleHoverStyles, togglePressStyles, treeFilter, updateFilter, useAutoSaveStatus, useBreakpoint, useComputed, useDnDGridItem, type useDnDGridItemProps, useFilter, useGridTableApi, useGridTableLayoutState, useGroupBy, useHover, useModal, usePersistedFilter, useQueryState, useResponsiveGrid, useResponsiveGridItem, type useResponsiveGridProps, useRightPane, useRightPaneContext, useScrollableParent, useSessionStorage, useSetupColumnSizes, useSnackbar, useSuperDrawer, useTestIds, useToast, useTreeSelectFieldProvider, visit, zIndices };
|
package/dist/index.d.ts
CHANGED
|
@@ -24,6 +24,11 @@ declare module "react" {
|
|
|
24
24
|
interface SVGAttributes<T> {
|
|
25
25
|
css?: Properties;
|
|
26
26
|
}
|
|
27
|
+
namespace JSX {
|
|
28
|
+
interface IntrinsicAttributes {
|
|
29
|
+
css?: Properties;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
27
32
|
}
|
|
28
33
|
type Opts<T> = {
|
|
29
34
|
rules: T;
|
|
@@ -4053,6 +4058,8 @@ declare class CssBuilder<T extends Properties> {
|
|
|
4053
4058
|
get onFocusWithin(): CssBuilder<T>;
|
|
4054
4059
|
get onActive(): CssBuilder<T>;
|
|
4055
4060
|
get onDisabled(): CssBuilder<T>;
|
|
4061
|
+
get ifFirstOfType(): CssBuilder<T>;
|
|
4062
|
+
get ifLastOfType(): CssBuilder<T>;
|
|
4056
4063
|
/** Marks this element as a default hover marker (for ancestor pseudo selectors). */
|
|
4057
4064
|
get marker(): CssBuilder<T>;
|
|
4058
4065
|
/** Marks this element with a user-defined marker. */
|
|
@@ -4100,6 +4107,8 @@ declare class CssBuilder<T extends Properties> {
|
|
|
4100
4107
|
}>;
|
|
4101
4108
|
/** Inline a partial style hash, skipping any undefined values. */
|
|
4102
4109
|
addCss<P extends Properties>(props: P): CssBuilder<T & P>;
|
|
4110
|
+
/** Marker for the build-time transform to append a raw className. */
|
|
4111
|
+
className(className: string): CssBuilder<T>;
|
|
4103
4112
|
/** Convert a style hash into `{ className, style }` props for manual spreading into non-`css=` contexts. */
|
|
4104
4113
|
props(styles: Properties): Record<string, unknown>;
|
|
4105
4114
|
private get rules();
|
|
@@ -4561,6 +4570,7 @@ type RenderAs = "div" | "table" | "virtual";
|
|
|
4561
4570
|
type Direction = "ASC" | "DESC";
|
|
4562
4571
|
type MaybeFn<T> = T | (() => T);
|
|
4563
4572
|
type GridCellAlignment = "left" | "right" | "center";
|
|
4573
|
+
type GridColumnBorder = "left" | "right";
|
|
4564
4574
|
type GridTableScrollOptions = number | {
|
|
4565
4575
|
/** The index of the row to scroll to */
|
|
4566
4576
|
index: number;
|
|
@@ -4623,6 +4633,8 @@ type GridColumn<R extends Kinded> = {
|
|
|
4623
4633
|
serverSideSortKey?: string;
|
|
4624
4634
|
/** Allows the column to stay in place when the user scrolls horizontally */
|
|
4625
4635
|
sticky?: "left" | "right";
|
|
4636
|
+
/** Draws a border on this column's left or right edge for every rendered cell. */
|
|
4637
|
+
border?: GridColumnBorder;
|
|
4626
4638
|
/** Prevent column from supporting RowStyle.onClick/rowLink in order to avoid nested interactivity. Defaults to true */
|
|
4627
4639
|
wrapAction?: false;
|
|
4628
4640
|
/** Used as a signal to defer adding the row's level indentation styling */
|
|
@@ -4753,6 +4765,8 @@ interface GridStyle {
|
|
|
4753
4765
|
firstCellCss?: Properties;
|
|
4754
4766
|
/** Applied to the last cell of all rows, i.e. for table-wide padding or right-side borders. */
|
|
4755
4767
|
lastCellCss?: Properties;
|
|
4768
|
+
/** Applied to any column that opts into `GridColumn.border`. */
|
|
4769
|
+
borderStyle?: Properties;
|
|
4756
4770
|
/** Applied to every cell in the first table-head row (expandableHeader/header/totals). */
|
|
4757
4771
|
firstRowCellCss?: Properties;
|
|
4758
4772
|
/** Applied to the first cell in the first table-head row. */
|
|
@@ -7877,6 +7891,7 @@ declare const ASC: "ASC";
|
|
|
7877
7891
|
declare const DESC: "DESC";
|
|
7878
7892
|
declare const emptyCell: GridCellContent;
|
|
7879
7893
|
declare function getFirstOrLastCellCss<R extends Kinded>(style: GridStyle, columnIndex: number, columns: GridColumnWithId<R>[], colspan?: number): Properties;
|
|
7894
|
+
declare function getColumnBorderCss(border: GridColumnBorder | undefined, style: GridStyle): Properties;
|
|
7880
7895
|
/** A heuristic to detect the result of `React.createElement` / i.e. JSX. */
|
|
7881
7896
|
declare function isJSX(content: any): boolean;
|
|
7882
7897
|
declare function getAlignment(column: GridColumnWithId<any>, maybeContent: ReactNode | GridCellContent): GridCellAlignment;
|
|
@@ -8377,4 +8392,4 @@ declare function resolveTooltip(disabled?: boolean | ReactNode, tooltip?: ReactN
|
|
|
8377
8392
|
*/
|
|
8378
8393
|
declare function defaultTestId(label: string): string;
|
|
8379
8394
|
|
|
8380
|
-
export { ASC, Accordion, AccordionList, type AccordionProps, type AccordionSize, AutoSaveIndicator, AutoSaveStatus, AutoSaveStatusContext, AutoSaveStatusProvider, Autocomplete, type AutocompleteProps, Avatar, AvatarButton, type AvatarButtonProps, AvatarGroup, type AvatarGroupProps, type AvatarProps, type AvatarSize, Banner, type BannerProps, type BannerTypes, BaseFilter, type BeamButtonProps, type BeamFocusableProps, BeamProvider, type BeamTextFieldProps, BoundCheckboxField, type BoundCheckboxFieldProps, BoundCheckboxGroupField, type BoundCheckboxGroupFieldProps, BoundChipSelectField, BoundDateField, type BoundDateFieldProps, BoundDateRangeField, type BoundDateRangeFieldProps, BoundForm, type BoundFormInputConfig, type BoundFormProps, type BoundFormRowInputs, BoundIconCardField, type BoundIconCardFieldProps, BoundIconCardGroupField, type BoundIconCardGroupFieldProps, BoundMultiLineSelectField, type BoundMultiLineSelectFieldProps, BoundMultiSelectField, type BoundMultiSelectFieldProps, BoundNumberField, type BoundNumberFieldProps, BoundRadioGroupField, type BoundRadioGroupFieldProps, BoundRichTextField, type BoundRichTextFieldProps, BoundSelectAndTextField, BoundSelectField, type BoundSelectFieldProps, BoundSwitchField, type BoundSwitchFieldProps, BoundTextAreaField, type BoundTextAreaFieldProps, BoundTextField, type BoundTextFieldProps, BoundToggleChipGroupField, type BoundToggleChipGroupFieldProps, BoundTreeSelectField, type BoundTreeSelectFieldProps, type Breakpoint, Breakpoints, Button, ButtonDatePicker, ButtonGroup, type ButtonGroupButton, type ButtonGroupProps, ButtonMenu, type ButtonMenuProps, ButtonModal, type ButtonModalProps, type ButtonProps, type ButtonSize, type ButtonVariant, Card, type CardProps, type CardTag, type CardType, type CheckFn, Checkbox, CheckboxGroup, type CheckboxGroupItemOption, type CheckboxGroupProps, type CheckboxProps, Chip, type ChipProps, ChipSelectField, type ChipSelectFieldProps, type ChipType, ChipTypes, type ChipValue, Chips, type ChipsProps, CollapseToggle, CollapsedContext, ConfirmCloseModal, type ContentStack, Copy, CountBadge, type CountBadgeProps, Css, CssReset, DESC, DateField, type DateFieldMode, type DateFieldModeTuple, type DateFieldProps, type DateFilterValue, DateRangeField, type DateRangeFieldProps, type DateRangeFilterValue, type Direction, type DiscriminateUnion, type DividerMenuItemType, DnDGrid, DnDGridItemHandle, type DnDGridItemHandleProps, type DnDGridItemProps, type DnDGridProps, type DragData, EXPANDABLE_HEADER, EditColumnsButton, ErrorMessage, FieldGroup, type Filter, type FilterDefs, _FilterDropdownMenu as FilterDropdownMenu, type FilterImpls, FilterModal, _Filters as Filters, type Font, FormDivider, FormHeading, type FormHeadingProps, FormLines, type FormLinesProps, FormPageLayout, FormRow, type FormSectionConfig, type FormWidth, FullBleed, type GridCellAlignment, type GridCellContent, type GridColumn, type GridColumnWithId, type GridDataRow, type GridRowKind, type GridRowLookup, type GridSortConfig, type GridStyle, GridTable, type GridTableApi, type GridTableCollapseToggleProps, type GridTableDefaults, GridTableLayout, type GridTableLayoutProps, type GridTableProps, type GridTableScrollOptions, type GridTableXss, type GroupByHook, HB_QUIPS_FLAVOR, HB_QUIPS_MISSION, HEADER, type HasIdAndName, HbLoadingSpinner, HbSpinnerProvider, HelperText, Icon, IconButton, type IconButtonProps, IconCard, type IconCardProps, type IconKey, type IconMenuItemType, type IconProps, Icons, type IfAny, type ImageFitType, type ImageMenuItemType, type InfiniteScroll, type InputStylePalette, KEPT_GROUP, type Kinded, Loader, LoadingSkeleton, type LoadingSkeletonProps, type Margin, type Marker, MaxLines, type MaxLinesProps, type MaybeFn, type MenuItem, type MenuSection, ModalBody, ModalFilterItem, ModalFooter, ModalHeader, type ModalProps, type ModalSize, MultiLineSelectField, type MultiLineSelectFieldProps, MultiSelectField, type MultiSelectFieldProps, NavLink, type NestedOption, type NestedOptionsOrLoad, NumberField, type NumberFieldProps, type NumberFieldType, type OffsetAndLimit, type OnRowDragEvent, type OnRowSelect, type Only, type OpenDetailOpts, type OpenInDrawerOpts, OpenModal, type OpenRightPaneOpts, type Optional, type Padding, type PageNumberAndSize, type PageSettings, Pagination, type PaginationConfig, Palette, type Pin, type Placement, type PresentationFieldProps, PresentationProvider, PreventBrowserScroll, type Properties, RIGHT_SIDEBAR_MIN_WIDTH, type RadioFieldOption, RadioGroupField, type RadioGroupFieldProps, type RenderAs, type RenderCellFn, ResponsiveGrid, type ResponsiveGridConfig, ResponsiveGridContext, ResponsiveGridItem, type ResponsiveGridItemProps, type ResponsiveGridProps, RichTextField, RichTextFieldImpl, type RichTextFieldProps, RightPaneContext, RightPaneLayout, type RightPaneLayoutContextProps, RightPaneProvider, RightSidebar, type RightSidebarProps, type RouteTab, type RouteTabWithContent, Row, type RowStyle, type RowStyles, ScrollShadows, ScrollableContent, ScrollableParent, SelectField, type SelectFieldProps, SelectToggle, type SelectedState, type SidebarContentProps, type SimpleHeaderAndData, SortHeader, type SortOn, type SortState, StaticField, type Step, Stepper, type StepperProps, SubmitButton, type SubmitButtonProps, SuperDrawerContent, SuperDrawerHeader, SuperDrawerWidth, Switch, type SwitchProps, TOTALS, type Tab, TabContent, type TabWithContent, TableState, TableStateContext, Tabs, TabsWithContent, Tag, type TagType, type TestIds, TextAreaField, type TextAreaFieldProps, TextField, type TextFieldApi, type TextFieldInternalProps, type TextFieldProps, type TextFieldXss, Toast, ToggleButton, type ToggleButtonProps, ToggleChip, ToggleChipGroup, type ToggleChipGroupProps, type ToggleChipProps, ToggleChips, type ToggleChipsProps, Tooltip, TreeSelectField, type TreeSelectFieldProps, type TriggerNoticeProps, type Typography, type UseModalHook, type UsePersistedFilterProps, type UseQueryState, type UseRightPaneHook, type UseSnackbarHook, type UseSuperDrawerHook, type UseToastProps, type Value, type Xss, actionColumn, applyRowFn, assignDefaultColumnIds, booleanFilter, boundCheckboxField, boundCheckboxGroupField, boundDateField, boundDateRangeField, boundIconCardField, boundIconCardGroupField, boundMultiSelectField, boundMultilineSelectField, boundNumberField, boundRadioGroupField, boundRichTextField, boundSelectField, boundSwitchField, boundTextAreaField, boundTextField, boundToggleChipGroupField, boundTreeSelectField, calcColumnSizes, cardStyle, checkboxFilter, chipBaseStyles, chipDisabledStyles, chipHoverOnlyStyles, chipHoverStyles, collapseColumn, column, condensedStyle, createRowLookup, dateColumn, dateFilter, dateFormats, dateRangeFilter, defaultPage, defaultRenderFn, defaultStyle, defaultTestId, dragHandleColumn, emptyCell, ensureClientSideSortValueIsSortable, filterTestIdPrefix, formatDate, formatDateRange, formatValue, generateColumnId, getAlignment, getDateFormat, getFirstOrLastCellCss, getJustification, getTableRefWidthStyles, getTableStyles, headerRenderFn, hoverStyles, iconButtonCircleStylesHover, iconButtonContrastStylesHover, iconButtonStylesHover, iconCardStylesHover, increment, insertAtIndex, isCursorBelowMidpoint, isGridCellContent, isJSX, isListBoxSection, isPersistentItem, isPersistentKey, isValidDate, listFieldPrefix, loadArrayOrUndefined, marker, matchesFilter, maybeInc, maybeTooltip, multiFilter, navLink, newMethodMissingProxy, nonKindGridColumnKeys, numberRangeFilter, numericColumn, parseDate, parseDateRange, parseWidthToPx, persistentItemPrefix, pressedOverlayCss, px, recursivelyGetContainingRow, reservedRowKinds, resolveTooltip, rowClickRenderFn, rowLinkRenderFn, selectColumn, selectedStyles, setDefaultStyle, setGridTableDefaults, setRunningInJest, shouldSkipScrollTo, simpleDataRows, simpleHeader, singleFilter, sortFn, sortRows, switchFocusStyles, switchHoverStyles, switchSelectedHoverStyles, toContent, toLimitAndOffset, toPageNumberSize, toggleFilter, toggleFocusStyles, toggleHoverStyles, togglePressStyles, treeFilter, updateFilter, useAutoSaveStatus, useBreakpoint, useComputed, useDnDGridItem, type useDnDGridItemProps, useFilter, useGridTableApi, useGridTableLayoutState, useGroupBy, useHover, useModal, usePersistedFilter, useQueryState, useResponsiveGrid, useResponsiveGridItem, type useResponsiveGridProps, useRightPane, useRightPaneContext, useScrollableParent, useSessionStorage, useSetupColumnSizes, useSnackbar, useSuperDrawer, useTestIds, useToast, useTreeSelectFieldProvider, visit, zIndices };
|
|
8395
|
+
export { ASC, Accordion, AccordionList, type AccordionProps, type AccordionSize, AutoSaveIndicator, AutoSaveStatus, AutoSaveStatusContext, AutoSaveStatusProvider, Autocomplete, type AutocompleteProps, Avatar, AvatarButton, type AvatarButtonProps, AvatarGroup, type AvatarGroupProps, type AvatarProps, type AvatarSize, Banner, type BannerProps, type BannerTypes, BaseFilter, type BeamButtonProps, type BeamFocusableProps, BeamProvider, type BeamTextFieldProps, BoundCheckboxField, type BoundCheckboxFieldProps, BoundCheckboxGroupField, type BoundCheckboxGroupFieldProps, BoundChipSelectField, BoundDateField, type BoundDateFieldProps, BoundDateRangeField, type BoundDateRangeFieldProps, BoundForm, type BoundFormInputConfig, type BoundFormProps, type BoundFormRowInputs, BoundIconCardField, type BoundIconCardFieldProps, BoundIconCardGroupField, type BoundIconCardGroupFieldProps, BoundMultiLineSelectField, type BoundMultiLineSelectFieldProps, BoundMultiSelectField, type BoundMultiSelectFieldProps, BoundNumberField, type BoundNumberFieldProps, BoundRadioGroupField, type BoundRadioGroupFieldProps, BoundRichTextField, type BoundRichTextFieldProps, BoundSelectAndTextField, BoundSelectField, type BoundSelectFieldProps, BoundSwitchField, type BoundSwitchFieldProps, BoundTextAreaField, type BoundTextAreaFieldProps, BoundTextField, type BoundTextFieldProps, BoundToggleChipGroupField, type BoundToggleChipGroupFieldProps, BoundTreeSelectField, type BoundTreeSelectFieldProps, type Breakpoint, Breakpoints, Button, ButtonDatePicker, ButtonGroup, type ButtonGroupButton, type ButtonGroupProps, ButtonMenu, type ButtonMenuProps, ButtonModal, type ButtonModalProps, type ButtonProps, type ButtonSize, type ButtonVariant, Card, type CardProps, type CardTag, type CardType, type CheckFn, Checkbox, CheckboxGroup, type CheckboxGroupItemOption, type CheckboxGroupProps, type CheckboxProps, Chip, type ChipProps, ChipSelectField, type ChipSelectFieldProps, type ChipType, ChipTypes, type ChipValue, Chips, type ChipsProps, CollapseToggle, CollapsedContext, ConfirmCloseModal, type ContentStack, Copy, CountBadge, type CountBadgeProps, Css, CssReset, DESC, DateField, type DateFieldMode, type DateFieldModeTuple, type DateFieldProps, type DateFilterValue, DateRangeField, type DateRangeFieldProps, type DateRangeFilterValue, type Direction, type DiscriminateUnion, type DividerMenuItemType, DnDGrid, DnDGridItemHandle, type DnDGridItemHandleProps, type DnDGridItemProps, type DnDGridProps, type DragData, EXPANDABLE_HEADER, EditColumnsButton, ErrorMessage, FieldGroup, type Filter, type FilterDefs, _FilterDropdownMenu as FilterDropdownMenu, type FilterImpls, FilterModal, _Filters as Filters, type Font, FormDivider, FormHeading, type FormHeadingProps, FormLines, type FormLinesProps, FormPageLayout, FormRow, type FormSectionConfig, type FormWidth, FullBleed, type GridCellAlignment, type GridCellContent, type GridColumn, type GridColumnBorder, type GridColumnWithId, type GridDataRow, type GridRowKind, type GridRowLookup, type GridSortConfig, type GridStyle, GridTable, type GridTableApi, type GridTableCollapseToggleProps, type GridTableDefaults, GridTableLayout, type GridTableLayoutProps, type GridTableProps, type GridTableScrollOptions, type GridTableXss, type GroupByHook, HB_QUIPS_FLAVOR, HB_QUIPS_MISSION, HEADER, type HasIdAndName, HbLoadingSpinner, HbSpinnerProvider, HelperText, Icon, IconButton, type IconButtonProps, IconCard, type IconCardProps, type IconKey, type IconMenuItemType, type IconProps, Icons, type IfAny, type ImageFitType, type ImageMenuItemType, type InfiniteScroll, type InputStylePalette, KEPT_GROUP, type Kinded, Loader, LoadingSkeleton, type LoadingSkeletonProps, type Margin, type Marker, MaxLines, type MaxLinesProps, type MaybeFn, type MenuItem, type MenuSection, ModalBody, ModalFilterItem, ModalFooter, ModalHeader, type ModalProps, type ModalSize, MultiLineSelectField, type MultiLineSelectFieldProps, MultiSelectField, type MultiSelectFieldProps, NavLink, type NestedOption, type NestedOptionsOrLoad, NumberField, type NumberFieldProps, type NumberFieldType, type OffsetAndLimit, type OnRowDragEvent, type OnRowSelect, type Only, type OpenDetailOpts, type OpenInDrawerOpts, OpenModal, type OpenRightPaneOpts, type Optional, type Padding, type PageNumberAndSize, type PageSettings, Pagination, type PaginationConfig, Palette, type Pin, type Placement, type PresentationFieldProps, PresentationProvider, PreventBrowserScroll, type Properties, RIGHT_SIDEBAR_MIN_WIDTH, type RadioFieldOption, RadioGroupField, type RadioGroupFieldProps, type RenderAs, type RenderCellFn, ResponsiveGrid, type ResponsiveGridConfig, ResponsiveGridContext, ResponsiveGridItem, type ResponsiveGridItemProps, type ResponsiveGridProps, RichTextField, RichTextFieldImpl, type RichTextFieldProps, RightPaneContext, RightPaneLayout, type RightPaneLayoutContextProps, RightPaneProvider, RightSidebar, type RightSidebarProps, type RouteTab, type RouteTabWithContent, Row, type RowStyle, type RowStyles, ScrollShadows, ScrollableContent, ScrollableParent, SelectField, type SelectFieldProps, SelectToggle, type SelectedState, type SidebarContentProps, type SimpleHeaderAndData, SortHeader, type SortOn, type SortState, StaticField, type Step, Stepper, type StepperProps, SubmitButton, type SubmitButtonProps, SuperDrawerContent, SuperDrawerHeader, SuperDrawerWidth, Switch, type SwitchProps, TOTALS, type Tab, TabContent, type TabWithContent, TableState, TableStateContext, Tabs, TabsWithContent, Tag, type TagType, type TestIds, TextAreaField, type TextAreaFieldProps, TextField, type TextFieldApi, type TextFieldInternalProps, type TextFieldProps, type TextFieldXss, Toast, ToggleButton, type ToggleButtonProps, ToggleChip, ToggleChipGroup, type ToggleChipGroupProps, type ToggleChipProps, ToggleChips, type ToggleChipsProps, Tooltip, TreeSelectField, type TreeSelectFieldProps, type TriggerNoticeProps, type Typography, type UseModalHook, type UsePersistedFilterProps, type UseQueryState, type UseRightPaneHook, type UseSnackbarHook, type UseSuperDrawerHook, type UseToastProps, type Value, type Xss, actionColumn, applyRowFn, assignDefaultColumnIds, booleanFilter, boundCheckboxField, boundCheckboxGroupField, boundDateField, boundDateRangeField, boundIconCardField, boundIconCardGroupField, boundMultiSelectField, boundMultilineSelectField, boundNumberField, boundRadioGroupField, boundRichTextField, boundSelectField, boundSwitchField, boundTextAreaField, boundTextField, boundToggleChipGroupField, boundTreeSelectField, calcColumnSizes, cardStyle, checkboxFilter, chipBaseStyles, chipDisabledStyles, chipHoverOnlyStyles, chipHoverStyles, collapseColumn, column, condensedStyle, createRowLookup, dateColumn, dateFilter, dateFormats, dateRangeFilter, defaultPage, defaultRenderFn, defaultStyle, defaultTestId, dragHandleColumn, emptyCell, ensureClientSideSortValueIsSortable, filterTestIdPrefix, formatDate, formatDateRange, formatValue, generateColumnId, getAlignment, getColumnBorderCss, getDateFormat, getFirstOrLastCellCss, getJustification, getTableRefWidthStyles, getTableStyles, headerRenderFn, hoverStyles, iconButtonCircleStylesHover, iconButtonContrastStylesHover, iconButtonStylesHover, iconCardStylesHover, increment, insertAtIndex, isCursorBelowMidpoint, isGridCellContent, isJSX, isListBoxSection, isPersistentItem, isPersistentKey, isValidDate, listFieldPrefix, loadArrayOrUndefined, marker, matchesFilter, maybeInc, maybeTooltip, multiFilter, navLink, newMethodMissingProxy, nonKindGridColumnKeys, numberRangeFilter, numericColumn, parseDate, parseDateRange, parseWidthToPx, persistentItemPrefix, pressedOverlayCss, px, recursivelyGetContainingRow, reservedRowKinds, resolveTooltip, rowClickRenderFn, rowLinkRenderFn, selectColumn, selectedStyles, setDefaultStyle, setGridTableDefaults, setRunningInJest, shouldSkipScrollTo, simpleDataRows, simpleHeader, singleFilter, sortFn, sortRows, switchFocusStyles, switchHoverStyles, switchSelectedHoverStyles, toContent, toLimitAndOffset, toPageNumberSize, toggleFilter, toggleFocusStyles, toggleHoverStyles, togglePressStyles, treeFilter, updateFilter, useAutoSaveStatus, useBreakpoint, useComputed, useDnDGridItem, type useDnDGridItemProps, useFilter, useGridTableApi, useGridTableLayoutState, useGroupBy, useHover, useModal, usePersistedFilter, useQueryState, useResponsiveGrid, useResponsiveGridItem, type useResponsiveGridProps, useRightPane, useRightPaneContext, useScrollableParent, useSessionStorage, useSetupColumnSizes, useSnackbar, useSuperDrawer, useTestIds, useToast, useTreeSelectFieldProvider, visit, zIndices };
|
package/dist/index.js
CHANGED
|
@@ -3788,6 +3788,12 @@ var CssBuilder = class _CssBuilder {
|
|
|
3788
3788
|
get onDisabled() {
|
|
3789
3789
|
return this.newCss({ selector: ":disabled" });
|
|
3790
3790
|
}
|
|
3791
|
+
get ifFirstOfType() {
|
|
3792
|
+
return this.newCss({ selector: ":first-of-type" });
|
|
3793
|
+
}
|
|
3794
|
+
get ifLastOfType() {
|
|
3795
|
+
return this.newCss({ selector: ":last-of-type" });
|
|
3796
|
+
}
|
|
3791
3797
|
/** Marks this element as a default hover marker (for ancestor pseudo selectors). */
|
|
3792
3798
|
get marker() {
|
|
3793
3799
|
return this;
|
|
@@ -3867,6 +3873,11 @@ var CssBuilder = class _CssBuilder {
|
|
|
3867
3873
|
addCss(props) {
|
|
3868
3874
|
return this.add(omitUndefinedValues(props));
|
|
3869
3875
|
}
|
|
3876
|
+
/** Marker for the build-time transform to append a raw className. */
|
|
3877
|
+
className(className) {
|
|
3878
|
+
void className;
|
|
3879
|
+
return this;
|
|
3880
|
+
}
|
|
3870
3881
|
/** Convert a style hash into `{ className, style }` props for manual spreading into non-`css=` contexts. */
|
|
3871
3882
|
props(styles) {
|
|
3872
3883
|
return trussProps(styles);
|
|
@@ -3894,7 +3905,7 @@ function px(pixels) {
|
|
|
3894
3905
|
return `${pixels}px`;
|
|
3895
3906
|
}
|
|
3896
3907
|
function omitUndefinedValues(value) {
|
|
3897
|
-
const entries = Object.entries(value).filter(
|
|
3908
|
+
const entries = Object.entries(value).filter(([, entryValue]) => {
|
|
3898
3909
|
return entryValue !== void 0;
|
|
3899
3910
|
});
|
|
3900
3911
|
return Object.fromEntries(entries);
|
|
@@ -4914,6 +4925,7 @@ var nonKindGridColumnKeys = [
|
|
|
4914
4925
|
"serverSideSortKey",
|
|
4915
4926
|
"clientSideSort",
|
|
4916
4927
|
"sticky",
|
|
4928
|
+
"border",
|
|
4917
4929
|
"wrapAction",
|
|
4918
4930
|
"isAction",
|
|
4919
4931
|
"id",
|
|
@@ -5634,6 +5646,19 @@ function getFirstOrLastCellCss(style, columnIndex, columns, colspan = 1) {
|
|
|
5634
5646
|
...columnIndex + colspan >= columns.length ? style.lastCellCss : {}
|
|
5635
5647
|
};
|
|
5636
5648
|
}
|
|
5649
|
+
function getColumnBorderCss(border, style) {
|
|
5650
|
+
if (!border) return {};
|
|
5651
|
+
return {
|
|
5652
|
+
...border === "left" ? {
|
|
5653
|
+
borderLeftStyle: "bl_borderLeftStyle",
|
|
5654
|
+
borderLeftWidth: "bl_borderLeftWidth"
|
|
5655
|
+
} : {
|
|
5656
|
+
borderRightStyle: "br_borderRightStyle",
|
|
5657
|
+
borderRightWidth: "br_borderRightWidth"
|
|
5658
|
+
},
|
|
5659
|
+
...style.borderStyle
|
|
5660
|
+
};
|
|
5661
|
+
}
|
|
5637
5662
|
function isJSX(content) {
|
|
5638
5663
|
return typeof content === "object" && content && "type" in content && "props" in content;
|
|
5639
5664
|
}
|
|
@@ -6913,6 +6938,9 @@ function memoizedTableStyles() {
|
|
|
6913
6938
|
borderRightWidth: "br_borderRightWidth",
|
|
6914
6939
|
borderColor: "bcGray200"
|
|
6915
6940
|
} : void 0,
|
|
6941
|
+
borderStyle: {
|
|
6942
|
+
borderColor: "bcGray200"
|
|
6943
|
+
},
|
|
6916
6944
|
firstRowCellCss: bordered ? {
|
|
6917
6945
|
borderTopStyle: "bt_borderTopStyle",
|
|
6918
6946
|
borderTopWidth: "bt_borderTopWidth",
|
|
@@ -7723,6 +7751,8 @@ function RowImpl(props) {
|
|
|
7723
7751
|
...isBodyRow && levelStyle?.cellCss,
|
|
7724
7752
|
// Level specific styling for the first content column
|
|
7725
7753
|
...applyFirstContentColumnStyles && levelStyle?.firstContentColumn,
|
|
7754
|
+
// Apply any declarative column border styling after header/body defaults.
|
|
7755
|
+
...getColumnBorderCss(column2.border, style),
|
|
7726
7756
|
// The specific cell's css (if any from GridCellContent)
|
|
7727
7757
|
...rowStyleCellCss,
|
|
7728
7758
|
// Apply active row styling for non-nested card styles.
|
|
@@ -7962,7 +7992,6 @@ function TextFieldBase(props) {
|
|
|
7962
7992
|
} = internalProps;
|
|
7963
7993
|
const errorMessageId = `${inputProps.id}-error`;
|
|
7964
7994
|
const labelSuffix = useLabelSuffix(required, inputProps.readOnly);
|
|
7965
|
-
const ElementType = multiline ? "textarea" : "input";
|
|
7966
7995
|
const tid = useTestIds(props, defaultTestId(label));
|
|
7967
7996
|
const [isFocused, setIsFocused] = useState10(false);
|
|
7968
7997
|
const {
|
|
@@ -8197,6 +8226,38 @@ function TextFieldBase(props) {
|
|
|
8197
8226
|
}
|
|
8198
8227
|
const showFocus = isFocused && !inputProps.readOnly || forceFocus;
|
|
8199
8228
|
const showHover = isHovered && !inputProps.disabled && !inputProps.readOnly && !isFocused || forceHover;
|
|
8229
|
+
const fieldElementProps = mergeProps6(inputProps, {
|
|
8230
|
+
onBlur,
|
|
8231
|
+
onFocus: onFocusChained,
|
|
8232
|
+
onChange: onDomChange
|
|
8233
|
+
}, {
|
|
8234
|
+
"aria-invalid": Boolean(errorMsg),
|
|
8235
|
+
...labelStyle === "hidden" ? {
|
|
8236
|
+
"aria-label": label
|
|
8237
|
+
} : {}
|
|
8238
|
+
});
|
|
8239
|
+
const errorMessageProps = errorMsg ? {
|
|
8240
|
+
"aria-errormessage": errorMessageId
|
|
8241
|
+
} : {};
|
|
8242
|
+
const fieldElementCss = {
|
|
8243
|
+
...fieldStyles.input,
|
|
8244
|
+
...inputProps.disabled ? fieldStyles.disabled : {},
|
|
8245
|
+
...showHover ? fieldStyles.hover : {},
|
|
8246
|
+
...unfocusedPlaceholder && !isFocused && {
|
|
8247
|
+
position: "absolute",
|
|
8248
|
+
overflow: "oh",
|
|
8249
|
+
clip: "visuallyHidden_clip",
|
|
8250
|
+
clipPath: "visuallyHidden_clipPath",
|
|
8251
|
+
border: "visuallyHidden_border",
|
|
8252
|
+
height: "visuallyHidden_height",
|
|
8253
|
+
margin: "visuallyHidden_margin",
|
|
8254
|
+
width: "visuallyHidden_width",
|
|
8255
|
+
padding: "visuallyHidden_padding",
|
|
8256
|
+
whiteSpace: "wsnw",
|
|
8257
|
+
opacity: "o0"
|
|
8258
|
+
},
|
|
8259
|
+
...xss
|
|
8260
|
+
};
|
|
8200
8261
|
return /* @__PURE__ */ jsxs16(Fragment9, { children: [
|
|
8201
8262
|
/* @__PURE__ */ jsxs16("div", { ...trussProps25(fieldStyles.container), ...groupProps, ...focusWithinProps, children: [
|
|
8202
8263
|
label && labelStyle !== "inline" && /* @__PURE__ */ jsx29(Label, { labelProps, hidden: labelStyle === "hidden" || compound, label, inline: labelStyle !== "above", suffix: labelSuffix, contrast, ...tid.label }),
|
|
@@ -8293,36 +8354,7 @@ function TextFieldBase(props) {
|
|
|
8293
8354
|
children: unfocusedPlaceholder
|
|
8294
8355
|
}
|
|
8295
8356
|
),
|
|
8296
|
-
/* @__PURE__ */ jsx29(
|
|
8297
|
-
onBlur,
|
|
8298
|
-
onFocus: onFocusChained,
|
|
8299
|
-
onChange: onDomChange
|
|
8300
|
-
}, {
|
|
8301
|
-
"aria-invalid": Boolean(errorMsg),
|
|
8302
|
-
...labelStyle === "hidden" ? {
|
|
8303
|
-
"aria-label": label
|
|
8304
|
-
} : {}
|
|
8305
|
-
}), ...errorMsg ? {
|
|
8306
|
-
"aria-errormessage": errorMessageId
|
|
8307
|
-
} : {}, ref: fieldRef, rows: multiline ? 1 : void 0, ...trussProps25({
|
|
8308
|
-
...fieldStyles.input,
|
|
8309
|
-
...inputProps.disabled ? fieldStyles.disabled : {},
|
|
8310
|
-
...showHover ? fieldStyles.hover : {},
|
|
8311
|
-
...unfocusedPlaceholder && !isFocused && {
|
|
8312
|
-
position: "absolute",
|
|
8313
|
-
overflow: "oh",
|
|
8314
|
-
clip: "visuallyHidden_clip",
|
|
8315
|
-
clipPath: "visuallyHidden_clipPath",
|
|
8316
|
-
border: "visuallyHidden_border",
|
|
8317
|
-
height: "visuallyHidden_height",
|
|
8318
|
-
margin: "visuallyHidden_margin",
|
|
8319
|
-
width: "visuallyHidden_width",
|
|
8320
|
-
padding: "visuallyHidden_padding",
|
|
8321
|
-
whiteSpace: "wsnw",
|
|
8322
|
-
opacity: "o0"
|
|
8323
|
-
},
|
|
8324
|
-
...xss
|
|
8325
|
-
}), ...tid }),
|
|
8357
|
+
multiline ? /* @__PURE__ */ jsx29("textarea", { ...fieldElementProps, ...errorMessageProps, ref: fieldRef, rows: 1, ...trussProps25(fieldElementCss), ...tid }) : /* @__PURE__ */ jsx29("input", { ...fieldElementProps, ...errorMessageProps, ref: fieldRef, ...trussProps25(fieldElementCss), ...tid }),
|
|
8326
8358
|
isFocused && clearable && onChange && inputProps.value && /* @__PURE__ */ jsx29(IconButton, { icon: "xCircle", color: "rgba(100, 100, 100, 1)" /* Gray700 */, onClick: () => {
|
|
8327
8359
|
onChange(void 0);
|
|
8328
8360
|
fieldRef.current?.focus();
|
|
@@ -22254,6 +22286,7 @@ export {
|
|
|
22254
22286
|
formatValue,
|
|
22255
22287
|
generateColumnId,
|
|
22256
22288
|
getAlignment,
|
|
22289
|
+
getColumnBorderCss,
|
|
22257
22290
|
getDateFormat,
|
|
22258
22291
|
getFirstOrLastCellCss,
|
|
22259
22292
|
getJustification,
|