@homebound/beam 3.63.1 → 3.65.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/Css.json +2 -1
- package/dist/index.cjs +2131 -1475
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +29 -21
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +58 -39
- package/dist/index.d.ts +58 -39
- package/dist/index.js +1763 -1107
- package/dist/index.js.map +1 -1
- package/dist/truss.css +21 -45
- package/package.json +1 -2
package/dist/index.d.cts
CHANGED
|
@@ -49,8 +49,11 @@ declare enum Tokens {
|
|
|
49
49
|
ButtonGhostFg = "--b-button-ghost-fg",
|
|
50
50
|
ButtonPrimaryDisabledBg = "--b-button-primary-disabled-bg",
|
|
51
51
|
ButtonPrimaryDisabledFg = "--b-button-primary-disabled-fg",
|
|
52
|
+
ButtonSecondaryFg = "--b-button-secondary-fg",
|
|
52
53
|
ButtonTertiaryFg = "--b-button-tertiary-fg",
|
|
53
54
|
ButtonTertiaryFgPressed = "--b-button-tertiary-fg-pressed",
|
|
55
|
+
ChoiceDisabled = "--b-choice-disabled",
|
|
56
|
+
ChoiceSelected = "--b-choice-selected",
|
|
54
57
|
Danger = "--b-danger",
|
|
55
58
|
DangerPressed = "--b-danger-pressed",
|
|
56
59
|
EnvBrandDev = "--b-env-brand-dev",
|
|
@@ -67,11 +70,15 @@ declare enum Tokens {
|
|
|
67
70
|
FieldTextDisabled = "--b-field-text-disabled",
|
|
68
71
|
FocusRingInset = "--b-focus-ring-inset",
|
|
69
72
|
FocusRingMuted = "--b-focus-ring-muted",
|
|
70
|
-
ListRowBgHover = "--b-list-row-bg-hover",
|
|
71
73
|
LoaderFill = "--b-loader-fill",
|
|
72
74
|
LoaderSpinner = "--b-loader-spinner",
|
|
73
75
|
LoaderTrack = "--b-loader-track",
|
|
74
|
-
|
|
76
|
+
NavGlobalItemBgActive = "--b-nav-global-item-bg-active",
|
|
77
|
+
NavGlobalItemBgHover = "--b-nav-global-item-bg-hover",
|
|
78
|
+
NavGlobalItemBgPressed = "--b-nav-global-item-bg-pressed",
|
|
79
|
+
NavGlobalText = "--b-nav-global-text",
|
|
80
|
+
NavGlobalTextActive = "--b-nav-global-text-active",
|
|
81
|
+
NavGlobalTextDisabled = "--b-nav-global-text-disabled",
|
|
75
82
|
NavItemBgActive = "--b-nav-item-bg-active",
|
|
76
83
|
NavItemBgHover = "--b-nav-item-bg-hover",
|
|
77
84
|
NavItemBgPressed = "--b-nav-item-bg-pressed",
|
|
@@ -80,6 +87,7 @@ declare enum Tokens {
|
|
|
80
87
|
NavTextDisabled = "--b-nav-text-disabled",
|
|
81
88
|
NavTextFocusVisible = "--b-nav-text-focus-visible",
|
|
82
89
|
NavTextPressed = "--b-nav-text-pressed",
|
|
90
|
+
NeutralFillHover = "--b-neutral-fill-hover",
|
|
83
91
|
NeutralFillHoverStrong = "--b-neutral-fill-hover-strong",
|
|
84
92
|
NeutralFillHoverSubtle = "--b-neutral-fill-hover-subtle",
|
|
85
93
|
NeutralFillPressed = "--b-neutral-fill-pressed",
|
|
@@ -87,18 +95,17 @@ declare enum Tokens {
|
|
|
87
95
|
OnPrimary = "--b-on-primary",
|
|
88
96
|
OnSurface = "--b-on-surface",
|
|
89
97
|
OnSurfaceMuted = "--b-on-surface-muted",
|
|
90
|
-
OnSurfaceSubtle = "--b-on-surface-subtle",
|
|
91
98
|
OnSurfaceDisabled = "--b-on-surface-disabled",
|
|
92
99
|
OnSurfaceRaisedHover = "--b-on-surface-raised-hover",
|
|
93
100
|
OnSurfaceRaisedPressed = "--b-on-surface-raised-pressed",
|
|
94
|
-
PopoverSurface = "--b-popover-surface",
|
|
95
101
|
Primary = "--b-primary",
|
|
96
102
|
PrimaryHover = "--b-primary-hover",
|
|
97
103
|
PrimaryPressed = "--b-primary-pressed",
|
|
98
104
|
Scrim = "--b-scrim",
|
|
105
|
+
SelectionFill = "--b-selection-fill",
|
|
99
106
|
SelectionIndicator = "--b-selection-indicator",
|
|
100
|
-
StatusSuccessFg = "--b-status-success-fg",
|
|
101
107
|
Surface = "--b-surface",
|
|
108
|
+
SurfaceHover = "--b-surface-hover",
|
|
102
109
|
SurfaceRaised = "--b-surface-raised",
|
|
103
110
|
SurfaceRaisedHover = "--b-surface-raised-hover",
|
|
104
111
|
SurfaceRaisedPressed = "--b-surface-raised-pressed",
|
|
@@ -4118,6 +4125,18 @@ declare class CssBuilder<T extends Properties, S extends StyleKind = "buildtime"
|
|
|
4118
4125
|
fontFamily(value: Properties["fontFamily"]): CssBuilder<T & {
|
|
4119
4126
|
fontFamily: csstype.Property.FontFamily | undefined;
|
|
4120
4127
|
}, S>;
|
|
4128
|
+
/** Sets `width: "calc(var(--beam-layout-viewport-width, 100vw) - var(--beam-side-nav-layout-width, 0px))"; left: "var(--beam-side-nav-layout-width, 0px)"; position: "sticky"; paddingLeft: "24px"; paddingRight: "24px"`. */
|
|
4129
|
+
get layoutContainer(): CssBuilder<T & {
|
|
4130
|
+
width: csstype.Property.Width<string | 0> | undefined;
|
|
4131
|
+
} & {
|
|
4132
|
+
left: csstype.Property.Left<string | 0> | undefined;
|
|
4133
|
+
} & {
|
|
4134
|
+
position: csstype.Property.Position | undefined;
|
|
4135
|
+
} & {
|
|
4136
|
+
paddingLeft: csstype.Property.PaddingLeft<string | 0> | undefined;
|
|
4137
|
+
} & {
|
|
4138
|
+
paddingRight: csstype.Property.PaddingRight<string | 0> | undefined;
|
|
4139
|
+
}, S>;
|
|
4121
4140
|
/** Sets `transition: "background-color 200ms cubic-bezier(0.4, 0, 0.2, 1), border-color 200ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 200ms cubic-bezier(0.4, 0, 0.2, 1), left 200ms cubic-bezier(0.4, 0, 0.2, 1), right 200ms cubic-bezier(0.4, 0, 0.2, 1), margin 200ms cubic-bezier(0.4, 0, 0.2, 1), width 200ms cubic-bezier(0.4, 0, 0.2, 1), opacity 200ms cubic-bezier(0.4, 0, 0.2, 1)"`. */
|
|
4122
4141
|
get transition(): CssBuilder<T & {
|
|
4123
4142
|
transition: csstype.Property.Transition<string> | undefined;
|
|
@@ -4790,13 +4809,13 @@ type LabelSuffixStyle = {
|
|
|
4790
4809
|
optional?: string;
|
|
4791
4810
|
};
|
|
4792
4811
|
|
|
4793
|
-
|
|
4812
|
+
type AvatarProps = {
|
|
4794
4813
|
src: string | undefined;
|
|
4795
4814
|
name?: string;
|
|
4796
4815
|
size?: AvatarSize;
|
|
4797
4816
|
showName?: boolean;
|
|
4798
4817
|
preventTooltip?: boolean;
|
|
4799
|
-
}
|
|
4818
|
+
};
|
|
4800
4819
|
declare function Avatar({ src, name, size, showName, preventTooltip, ...others }: AvatarProps): JSX.Element;
|
|
4801
4820
|
type AvatarSize = "sm" | "md" | "lg" | "xl";
|
|
4802
4821
|
|
|
@@ -4856,7 +4875,7 @@ interface TextFieldInternalProps {
|
|
|
4856
4875
|
forceHover?: boolean;
|
|
4857
4876
|
}
|
|
4858
4877
|
|
|
4859
|
-
|
|
4878
|
+
type AvatarButtonProps = {
|
|
4860
4879
|
menuTriggerProps?: AriaButtonProps;
|
|
4861
4880
|
buttonRef?: RefObject<HTMLButtonElement>;
|
|
4862
4881
|
/** Storybook-only visual state overrides for snapshotting pseudo-interactions. */
|
|
@@ -4865,7 +4884,7 @@ interface AvatarButtonProps extends AvatarProps, BeamButtonProps, BeamFocusableP
|
|
|
4865
4884
|
focusVisible?: boolean;
|
|
4866
4885
|
pressed?: boolean;
|
|
4867
4886
|
};
|
|
4868
|
-
}
|
|
4887
|
+
} & AvatarProps & BeamButtonProps & BeamFocusableProps;
|
|
4869
4888
|
declare function AvatarButton(props: AvatarButtonProps): JSX.Element;
|
|
4870
4889
|
declare const hoverStyles: Pick<Properties, never> & {
|
|
4871
4890
|
boxShadow: csstype.Property.BoxShadow | undefined;
|
|
@@ -5943,7 +5962,7 @@ type CardTag = {
|
|
|
5943
5962
|
text: string;
|
|
5944
5963
|
type?: TagType;
|
|
5945
5964
|
};
|
|
5946
|
-
|
|
5965
|
+
type CardProps = {
|
|
5947
5966
|
title: string;
|
|
5948
5967
|
subtitle: string;
|
|
5949
5968
|
detailContent?: ReactNode;
|
|
@@ -5959,7 +5978,7 @@ interface CardProps {
|
|
|
5959
5978
|
disabled?: boolean;
|
|
5960
5979
|
buttonMenuItems?: MenuItem[];
|
|
5961
5980
|
tag?: CardTag;
|
|
5962
|
-
}
|
|
5981
|
+
};
|
|
5963
5982
|
declare function Card(props: CardProps): JSX.Element;
|
|
5964
5983
|
|
|
5965
5984
|
type CardSlotBase<K extends string> = {
|
|
@@ -6250,7 +6269,7 @@ type GridStyle = {
|
|
|
6250
6269
|
firstContentColumn?: Properties;
|
|
6251
6270
|
});
|
|
6252
6271
|
/** Allows for customization of the background color used to denote an "active" row */
|
|
6253
|
-
activeBgColor?:
|
|
6272
|
+
activeBgColor?: BeamColor;
|
|
6254
6273
|
/** Defines styles for the group row which holds the selected rows that have been filtered out */
|
|
6255
6274
|
keptGroupRowCss?: Properties;
|
|
6256
6275
|
/** Defines styles for the last row `keptGroup` to provide separation from the rest of the table */
|
|
@@ -7062,7 +7081,7 @@ interface ToggleChipsProps<T, X> {
|
|
|
7062
7081
|
declare function ToggleChips<T, X extends Only<ToggleChipXss$1, X>>(props: ToggleChipsProps<T, X>): JSX.Element;
|
|
7063
7082
|
|
|
7064
7083
|
type AccordionXss = Xss<Padding>;
|
|
7065
|
-
|
|
7084
|
+
type AccordionProps<X = AccordionXss> = {
|
|
7066
7085
|
title: ReactNode;
|
|
7067
7086
|
children: ReactNode;
|
|
7068
7087
|
disabled?: boolean;
|
|
@@ -7087,7 +7106,7 @@ interface AccordionProps<X = AccordionXss> {
|
|
|
7087
7106
|
xss?: X;
|
|
7088
7107
|
/** Modifies the typography, padding, icon size and background color of the accordion header */
|
|
7089
7108
|
compact?: boolean;
|
|
7090
|
-
}
|
|
7109
|
+
};
|
|
7091
7110
|
declare function Accordion<X extends Only<AccordionXss, X>>(props: AccordionProps<X>): JSX.Element;
|
|
7092
7111
|
type AccordionSize = "xs" | "sm" | "md" | "lg";
|
|
7093
7112
|
|
|
@@ -7128,10 +7147,10 @@ type AppNavSection = {
|
|
|
7128
7147
|
};
|
|
7129
7148
|
type AppNavItem = AppNavLink | AppNavGroup | AppNavSection;
|
|
7130
7149
|
|
|
7131
|
-
|
|
7150
|
+
type AutoSaveIndicatorProps = {
|
|
7132
7151
|
hideOnIdle?: boolean;
|
|
7133
7152
|
doNotReset?: boolean;
|
|
7134
|
-
}
|
|
7153
|
+
};
|
|
7135
7154
|
declare function AutoSaveIndicator({ hideOnIdle, doNotReset }: AutoSaveIndicatorProps): JSX.Element | null;
|
|
7136
7155
|
|
|
7137
7156
|
interface AvatarGroupProps {
|
|
@@ -7315,12 +7334,12 @@ type ButtonDatePickerProps = {
|
|
|
7315
7334
|
} & DatePickerProps & Pick<OverlayTriggerProps, "trigger" | "placement" | "disabled" | "tooltip">;
|
|
7316
7335
|
declare function ButtonDatePicker(props: ButtonDatePickerProps): JSX.Element;
|
|
7317
7336
|
|
|
7318
|
-
|
|
7337
|
+
type ButtonGroupProps = {
|
|
7319
7338
|
buttons: ButtonGroupButton[];
|
|
7320
7339
|
/** Disables all buttons in ButtonGroup */
|
|
7321
7340
|
disabled?: boolean;
|
|
7322
7341
|
size?: ButtonGroupSize;
|
|
7323
|
-
}
|
|
7342
|
+
};
|
|
7324
7343
|
type ButtonGroupButton = {
|
|
7325
7344
|
icon?: IconProps["icon"];
|
|
7326
7345
|
iconColor?: IconProps["color"];
|
|
@@ -7909,7 +7928,7 @@ type RadioGroupFieldProps<K extends string> = {
|
|
|
7909
7928
|
*/
|
|
7910
7929
|
declare function RadioGroupField<K extends string>(props: RadioGroupFieldProps<K>): JSX.Element;
|
|
7911
7930
|
|
|
7912
|
-
|
|
7931
|
+
type RichTextFieldProps = {
|
|
7913
7932
|
/** The initial html value to show in the trix editor. */
|
|
7914
7933
|
value: string | undefined;
|
|
7915
7934
|
onChange: (html: string | undefined, text: string | undefined, mergeTags: string[]) => void;
|
|
@@ -7928,7 +7947,7 @@ interface RichTextFieldProps extends Pick<PresentationFieldProps, "fullWidth"> {
|
|
|
7928
7947
|
onFocus?: () => void;
|
|
7929
7948
|
/** For rendering formatted text */
|
|
7930
7949
|
readOnly?: boolean;
|
|
7931
|
-
}
|
|
7950
|
+
} & Pick<PresentationFieldProps, "fullWidth">;
|
|
7932
7951
|
declare const RichTextField: (props: RichTextFieldProps) => JSX.Element;
|
|
7933
7952
|
/**
|
|
7934
7953
|
* Provides a simple rich text editor based on trix.
|
|
@@ -8021,7 +8040,7 @@ declare function SelectField<O extends HasIdIsh<V>, V extends Value>(props: Opti
|
|
|
8021
8040
|
declare function SelectField<O extends HasNameIsh, V extends Value>(props: Optional<SelectFieldProps<O, V>, "getOptionLabel">): JSX.Element;
|
|
8022
8041
|
declare function SelectField<O, V extends Value>(props: SelectFieldProps<O, V>): JSX.Element;
|
|
8023
8042
|
|
|
8024
|
-
|
|
8043
|
+
type SwitchProps = {
|
|
8025
8044
|
/** Whether the element should receive focus on render. */
|
|
8026
8045
|
autoFocus?: boolean;
|
|
8027
8046
|
/** Whether to render a compact version of Switch */
|
|
@@ -8047,7 +8066,7 @@ interface SwitchProps {
|
|
|
8047
8066
|
hovered?: boolean;
|
|
8048
8067
|
focusVisible?: boolean;
|
|
8049
8068
|
};
|
|
8050
|
-
}
|
|
8069
|
+
};
|
|
8051
8070
|
declare function Switch(props: SwitchProps): JSX.Element;
|
|
8052
8071
|
declare const switchHoverStyles: Pick<Properties, never> & {
|
|
8053
8072
|
backgroundColor: csstype.Property.BackgroundColor | undefined;
|
|
@@ -8099,7 +8118,7 @@ type TextFieldApi = {
|
|
|
8099
8118
|
focus: VoidFunction;
|
|
8100
8119
|
};
|
|
8101
8120
|
|
|
8102
|
-
|
|
8121
|
+
type ToggleButtonProps = {
|
|
8103
8122
|
/** Input label */
|
|
8104
8123
|
label: string;
|
|
8105
8124
|
selected?: boolean;
|
|
@@ -8115,7 +8134,7 @@ interface ToggleButtonProps {
|
|
|
8115
8134
|
pressed?: boolean;
|
|
8116
8135
|
focusVisible?: boolean;
|
|
8117
8136
|
};
|
|
8118
|
-
}
|
|
8137
|
+
};
|
|
8119
8138
|
declare function ToggleButton(props: ToggleButtonProps): JSX.Element;
|
|
8120
8139
|
/** Styles */
|
|
8121
8140
|
declare const toggleHoverStyles: Pick<Properties, never> & {
|
|
@@ -8930,12 +8949,12 @@ type FormSectionProps = {
|
|
|
8930
8949
|
/** A titled section of form content — title/description/actions row, then `fields`, then any recursively-rendered `childSections`. */
|
|
8931
8950
|
declare function FormSection$1(props: FormSectionProps): JSX.Element;
|
|
8932
8951
|
|
|
8933
|
-
|
|
8952
|
+
type StaticFieldProps = {
|
|
8934
8953
|
label: ReactNode;
|
|
8935
8954
|
value?: string;
|
|
8936
8955
|
children?: ReactNode;
|
|
8937
8956
|
labelStyle?: PresentationFieldProps["labelStyle"];
|
|
8938
|
-
}
|
|
8957
|
+
};
|
|
8939
8958
|
declare function StaticField(props: StaticFieldProps): JSX.Element;
|
|
8940
8959
|
|
|
8941
8960
|
type SubmitButtonProps<T> = Omit<ButtonProps, "label"> & {
|
|
@@ -8994,13 +9013,13 @@ interface SelectToggleProps {
|
|
|
8994
9013
|
/** Provides a checkbox to show/drive this row's selected state. */
|
|
8995
9014
|
declare function SelectToggle({ id, disabled }: SelectToggleProps): JSX.Element;
|
|
8996
9015
|
|
|
8997
|
-
|
|
9016
|
+
type SortHeaderProps = {
|
|
8998
9017
|
content: string;
|
|
8999
9018
|
xss?: Properties;
|
|
9000
9019
|
iconOnLeft?: boolean;
|
|
9001
9020
|
sortKey: string;
|
|
9002
9021
|
tooltipEl?: ReactNode;
|
|
9003
|
-
}
|
|
9022
|
+
};
|
|
9004
9023
|
/**
|
|
9005
9024
|
* Wraps column header names with up/down sorting icons.
|
|
9006
9025
|
*
|
|
@@ -9502,7 +9521,7 @@ declare function useRightPaneContext(): RightPaneLayoutContextProps;
|
|
|
9502
9521
|
|
|
9503
9522
|
declare function RightPaneLayout(props: {
|
|
9504
9523
|
children: ReactElement;
|
|
9505
|
-
paneBgColor?:
|
|
9524
|
+
paneBgColor?: BeamColor;
|
|
9506
9525
|
paneWidth?: number;
|
|
9507
9526
|
defaultPaneContent?: ReactElement;
|
|
9508
9527
|
}): JSX.Element;
|
|
@@ -9759,11 +9778,11 @@ type OffsetAndLimit = {
|
|
|
9759
9778
|
limit: number;
|
|
9760
9779
|
};
|
|
9761
9780
|
declare const defaultPage: OffsetAndLimit;
|
|
9762
|
-
|
|
9781
|
+
type PaginationProps = {
|
|
9763
9782
|
page: readonly [PageNumberAndSize, Dispatch<PageNumberAndSize>] | readonly [OffsetAndLimit, Dispatch<OffsetAndLimit>];
|
|
9764
9783
|
totalCount: number;
|
|
9765
9784
|
pageSizes?: number[];
|
|
9766
|
-
}
|
|
9785
|
+
};
|
|
9767
9786
|
declare function Pagination(props: PaginationProps): JSX.Element;
|
|
9768
9787
|
declare function toLimitAndOffset(page: PageSettings): OffsetAndLimit;
|
|
9769
9788
|
declare function toPageNumberSize(page: PageSettings): PageNumberAndSize;
|
|
@@ -9790,7 +9809,7 @@ type SideNavProps = {
|
|
|
9790
9809
|
declare function SideNav(props: SideNavProps): JSX.Element;
|
|
9791
9810
|
|
|
9792
9811
|
type SnackbarNoticeTypes = "error" | "warning" | "success" | "info" | "alert";
|
|
9793
|
-
|
|
9812
|
+
type SnackbarNoticeProps = {
|
|
9794
9813
|
/** Adds action button to the right of the notice */
|
|
9795
9814
|
action?: Pick<ButtonProps, "label" | "onClick" | "variant">;
|
|
9796
9815
|
/** Does not allow the user to close the notice manually. Notice will fade away in 10s. Value will be ignored if 'persistent' is set to 'true'. */
|
|
@@ -9804,7 +9823,7 @@ interface SnackbarNoticeProps {
|
|
|
9804
9823
|
id: string;
|
|
9805
9824
|
/** Removes the snackbar notice from the stack */
|
|
9806
9825
|
onClose: () => void;
|
|
9807
|
-
}
|
|
9826
|
+
};
|
|
9808
9827
|
|
|
9809
9828
|
type Offset = {
|
|
9810
9829
|
bottom?: number;
|
|
@@ -9830,17 +9849,17 @@ interface TriggerNoticeProps extends Omit<SnackbarNoticeProps, "id" | "onClose">
|
|
|
9830
9849
|
onClose?: () => void;
|
|
9831
9850
|
}
|
|
9832
9851
|
|
|
9833
|
-
|
|
9852
|
+
type Step = {
|
|
9834
9853
|
label: string;
|
|
9835
9854
|
state: "incomplete" | "complete" | "error";
|
|
9836
9855
|
disabled?: boolean;
|
|
9837
9856
|
value: string;
|
|
9838
|
-
}
|
|
9839
|
-
|
|
9857
|
+
};
|
|
9858
|
+
type StepperProps = {
|
|
9840
9859
|
steps: Step[];
|
|
9841
9860
|
currentStep: Step["value"];
|
|
9842
9861
|
onChange: (stepValue: string) => void;
|
|
9843
|
-
}
|
|
9862
|
+
};
|
|
9844
9863
|
declare function Stepper(props: StepperProps): JSX.Element;
|
|
9845
9864
|
|
|
9846
9865
|
type StepperTabProps = {
|
|
@@ -9892,7 +9911,7 @@ interface ConfirmCloseModalProps {
|
|
|
9892
9911
|
/** Modal content to appear when a close checks fails */
|
|
9893
9912
|
declare function ConfirmCloseModal(props: ConfirmCloseModalProps): JSX.Element;
|
|
9894
9913
|
|
|
9895
|
-
|
|
9914
|
+
type SuperDrawerContentProps = {
|
|
9896
9915
|
children: ReactNode;
|
|
9897
9916
|
/**
|
|
9898
9917
|
* Actions represents an array of button props with represents that different
|
|
@@ -9901,7 +9920,7 @@ interface SuperDrawerContentProps {
|
|
|
9901
9920
|
* Ex: A `cancel` and `submit` button
|
|
9902
9921
|
* */
|
|
9903
9922
|
actions?: ButtonProps[];
|
|
9904
|
-
}
|
|
9923
|
+
};
|
|
9905
9924
|
/**
|
|
9906
9925
|
* Helper component to place the given children and actions into the appropriate
|
|
9907
9926
|
* DOM format to render inside the SuperDrawer.
|
package/dist/index.d.ts
CHANGED
|
@@ -49,8 +49,11 @@ declare enum Tokens {
|
|
|
49
49
|
ButtonGhostFg = "--b-button-ghost-fg",
|
|
50
50
|
ButtonPrimaryDisabledBg = "--b-button-primary-disabled-bg",
|
|
51
51
|
ButtonPrimaryDisabledFg = "--b-button-primary-disabled-fg",
|
|
52
|
+
ButtonSecondaryFg = "--b-button-secondary-fg",
|
|
52
53
|
ButtonTertiaryFg = "--b-button-tertiary-fg",
|
|
53
54
|
ButtonTertiaryFgPressed = "--b-button-tertiary-fg-pressed",
|
|
55
|
+
ChoiceDisabled = "--b-choice-disabled",
|
|
56
|
+
ChoiceSelected = "--b-choice-selected",
|
|
54
57
|
Danger = "--b-danger",
|
|
55
58
|
DangerPressed = "--b-danger-pressed",
|
|
56
59
|
EnvBrandDev = "--b-env-brand-dev",
|
|
@@ -67,11 +70,15 @@ declare enum Tokens {
|
|
|
67
70
|
FieldTextDisabled = "--b-field-text-disabled",
|
|
68
71
|
FocusRingInset = "--b-focus-ring-inset",
|
|
69
72
|
FocusRingMuted = "--b-focus-ring-muted",
|
|
70
|
-
ListRowBgHover = "--b-list-row-bg-hover",
|
|
71
73
|
LoaderFill = "--b-loader-fill",
|
|
72
74
|
LoaderSpinner = "--b-loader-spinner",
|
|
73
75
|
LoaderTrack = "--b-loader-track",
|
|
74
|
-
|
|
76
|
+
NavGlobalItemBgActive = "--b-nav-global-item-bg-active",
|
|
77
|
+
NavGlobalItemBgHover = "--b-nav-global-item-bg-hover",
|
|
78
|
+
NavGlobalItemBgPressed = "--b-nav-global-item-bg-pressed",
|
|
79
|
+
NavGlobalText = "--b-nav-global-text",
|
|
80
|
+
NavGlobalTextActive = "--b-nav-global-text-active",
|
|
81
|
+
NavGlobalTextDisabled = "--b-nav-global-text-disabled",
|
|
75
82
|
NavItemBgActive = "--b-nav-item-bg-active",
|
|
76
83
|
NavItemBgHover = "--b-nav-item-bg-hover",
|
|
77
84
|
NavItemBgPressed = "--b-nav-item-bg-pressed",
|
|
@@ -80,6 +87,7 @@ declare enum Tokens {
|
|
|
80
87
|
NavTextDisabled = "--b-nav-text-disabled",
|
|
81
88
|
NavTextFocusVisible = "--b-nav-text-focus-visible",
|
|
82
89
|
NavTextPressed = "--b-nav-text-pressed",
|
|
90
|
+
NeutralFillHover = "--b-neutral-fill-hover",
|
|
83
91
|
NeutralFillHoverStrong = "--b-neutral-fill-hover-strong",
|
|
84
92
|
NeutralFillHoverSubtle = "--b-neutral-fill-hover-subtle",
|
|
85
93
|
NeutralFillPressed = "--b-neutral-fill-pressed",
|
|
@@ -87,18 +95,17 @@ declare enum Tokens {
|
|
|
87
95
|
OnPrimary = "--b-on-primary",
|
|
88
96
|
OnSurface = "--b-on-surface",
|
|
89
97
|
OnSurfaceMuted = "--b-on-surface-muted",
|
|
90
|
-
OnSurfaceSubtle = "--b-on-surface-subtle",
|
|
91
98
|
OnSurfaceDisabled = "--b-on-surface-disabled",
|
|
92
99
|
OnSurfaceRaisedHover = "--b-on-surface-raised-hover",
|
|
93
100
|
OnSurfaceRaisedPressed = "--b-on-surface-raised-pressed",
|
|
94
|
-
PopoverSurface = "--b-popover-surface",
|
|
95
101
|
Primary = "--b-primary",
|
|
96
102
|
PrimaryHover = "--b-primary-hover",
|
|
97
103
|
PrimaryPressed = "--b-primary-pressed",
|
|
98
104
|
Scrim = "--b-scrim",
|
|
105
|
+
SelectionFill = "--b-selection-fill",
|
|
99
106
|
SelectionIndicator = "--b-selection-indicator",
|
|
100
|
-
StatusSuccessFg = "--b-status-success-fg",
|
|
101
107
|
Surface = "--b-surface",
|
|
108
|
+
SurfaceHover = "--b-surface-hover",
|
|
102
109
|
SurfaceRaised = "--b-surface-raised",
|
|
103
110
|
SurfaceRaisedHover = "--b-surface-raised-hover",
|
|
104
111
|
SurfaceRaisedPressed = "--b-surface-raised-pressed",
|
|
@@ -4118,6 +4125,18 @@ declare class CssBuilder<T extends Properties, S extends StyleKind = "buildtime"
|
|
|
4118
4125
|
fontFamily(value: Properties["fontFamily"]): CssBuilder<T & {
|
|
4119
4126
|
fontFamily: csstype.Property.FontFamily | undefined;
|
|
4120
4127
|
}, S>;
|
|
4128
|
+
/** Sets `width: "calc(var(--beam-layout-viewport-width, 100vw) - var(--beam-side-nav-layout-width, 0px))"; left: "var(--beam-side-nav-layout-width, 0px)"; position: "sticky"; paddingLeft: "24px"; paddingRight: "24px"`. */
|
|
4129
|
+
get layoutContainer(): CssBuilder<T & {
|
|
4130
|
+
width: csstype.Property.Width<string | 0> | undefined;
|
|
4131
|
+
} & {
|
|
4132
|
+
left: csstype.Property.Left<string | 0> | undefined;
|
|
4133
|
+
} & {
|
|
4134
|
+
position: csstype.Property.Position | undefined;
|
|
4135
|
+
} & {
|
|
4136
|
+
paddingLeft: csstype.Property.PaddingLeft<string | 0> | undefined;
|
|
4137
|
+
} & {
|
|
4138
|
+
paddingRight: csstype.Property.PaddingRight<string | 0> | undefined;
|
|
4139
|
+
}, S>;
|
|
4121
4140
|
/** Sets `transition: "background-color 200ms cubic-bezier(0.4, 0, 0.2, 1), border-color 200ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 200ms cubic-bezier(0.4, 0, 0.2, 1), left 200ms cubic-bezier(0.4, 0, 0.2, 1), right 200ms cubic-bezier(0.4, 0, 0.2, 1), margin 200ms cubic-bezier(0.4, 0, 0.2, 1), width 200ms cubic-bezier(0.4, 0, 0.2, 1), opacity 200ms cubic-bezier(0.4, 0, 0.2, 1)"`. */
|
|
4122
4141
|
get transition(): CssBuilder<T & {
|
|
4123
4142
|
transition: csstype.Property.Transition<string> | undefined;
|
|
@@ -4790,13 +4809,13 @@ type LabelSuffixStyle = {
|
|
|
4790
4809
|
optional?: string;
|
|
4791
4810
|
};
|
|
4792
4811
|
|
|
4793
|
-
|
|
4812
|
+
type AvatarProps = {
|
|
4794
4813
|
src: string | undefined;
|
|
4795
4814
|
name?: string;
|
|
4796
4815
|
size?: AvatarSize;
|
|
4797
4816
|
showName?: boolean;
|
|
4798
4817
|
preventTooltip?: boolean;
|
|
4799
|
-
}
|
|
4818
|
+
};
|
|
4800
4819
|
declare function Avatar({ src, name, size, showName, preventTooltip, ...others }: AvatarProps): JSX.Element;
|
|
4801
4820
|
type AvatarSize = "sm" | "md" | "lg" | "xl";
|
|
4802
4821
|
|
|
@@ -4856,7 +4875,7 @@ interface TextFieldInternalProps {
|
|
|
4856
4875
|
forceHover?: boolean;
|
|
4857
4876
|
}
|
|
4858
4877
|
|
|
4859
|
-
|
|
4878
|
+
type AvatarButtonProps = {
|
|
4860
4879
|
menuTriggerProps?: AriaButtonProps;
|
|
4861
4880
|
buttonRef?: RefObject<HTMLButtonElement>;
|
|
4862
4881
|
/** Storybook-only visual state overrides for snapshotting pseudo-interactions. */
|
|
@@ -4865,7 +4884,7 @@ interface AvatarButtonProps extends AvatarProps, BeamButtonProps, BeamFocusableP
|
|
|
4865
4884
|
focusVisible?: boolean;
|
|
4866
4885
|
pressed?: boolean;
|
|
4867
4886
|
};
|
|
4868
|
-
}
|
|
4887
|
+
} & AvatarProps & BeamButtonProps & BeamFocusableProps;
|
|
4869
4888
|
declare function AvatarButton(props: AvatarButtonProps): JSX.Element;
|
|
4870
4889
|
declare const hoverStyles: Pick<Properties, never> & {
|
|
4871
4890
|
boxShadow: csstype.Property.BoxShadow | undefined;
|
|
@@ -5943,7 +5962,7 @@ type CardTag = {
|
|
|
5943
5962
|
text: string;
|
|
5944
5963
|
type?: TagType;
|
|
5945
5964
|
};
|
|
5946
|
-
|
|
5965
|
+
type CardProps = {
|
|
5947
5966
|
title: string;
|
|
5948
5967
|
subtitle: string;
|
|
5949
5968
|
detailContent?: ReactNode;
|
|
@@ -5959,7 +5978,7 @@ interface CardProps {
|
|
|
5959
5978
|
disabled?: boolean;
|
|
5960
5979
|
buttonMenuItems?: MenuItem[];
|
|
5961
5980
|
tag?: CardTag;
|
|
5962
|
-
}
|
|
5981
|
+
};
|
|
5963
5982
|
declare function Card(props: CardProps): JSX.Element;
|
|
5964
5983
|
|
|
5965
5984
|
type CardSlotBase<K extends string> = {
|
|
@@ -6250,7 +6269,7 @@ type GridStyle = {
|
|
|
6250
6269
|
firstContentColumn?: Properties;
|
|
6251
6270
|
});
|
|
6252
6271
|
/** Allows for customization of the background color used to denote an "active" row */
|
|
6253
|
-
activeBgColor?:
|
|
6272
|
+
activeBgColor?: BeamColor;
|
|
6254
6273
|
/** Defines styles for the group row which holds the selected rows that have been filtered out */
|
|
6255
6274
|
keptGroupRowCss?: Properties;
|
|
6256
6275
|
/** Defines styles for the last row `keptGroup` to provide separation from the rest of the table */
|
|
@@ -7062,7 +7081,7 @@ interface ToggleChipsProps<T, X> {
|
|
|
7062
7081
|
declare function ToggleChips<T, X extends Only<ToggleChipXss$1, X>>(props: ToggleChipsProps<T, X>): JSX.Element;
|
|
7063
7082
|
|
|
7064
7083
|
type AccordionXss = Xss<Padding>;
|
|
7065
|
-
|
|
7084
|
+
type AccordionProps<X = AccordionXss> = {
|
|
7066
7085
|
title: ReactNode;
|
|
7067
7086
|
children: ReactNode;
|
|
7068
7087
|
disabled?: boolean;
|
|
@@ -7087,7 +7106,7 @@ interface AccordionProps<X = AccordionXss> {
|
|
|
7087
7106
|
xss?: X;
|
|
7088
7107
|
/** Modifies the typography, padding, icon size and background color of the accordion header */
|
|
7089
7108
|
compact?: boolean;
|
|
7090
|
-
}
|
|
7109
|
+
};
|
|
7091
7110
|
declare function Accordion<X extends Only<AccordionXss, X>>(props: AccordionProps<X>): JSX.Element;
|
|
7092
7111
|
type AccordionSize = "xs" | "sm" | "md" | "lg";
|
|
7093
7112
|
|
|
@@ -7128,10 +7147,10 @@ type AppNavSection = {
|
|
|
7128
7147
|
};
|
|
7129
7148
|
type AppNavItem = AppNavLink | AppNavGroup | AppNavSection;
|
|
7130
7149
|
|
|
7131
|
-
|
|
7150
|
+
type AutoSaveIndicatorProps = {
|
|
7132
7151
|
hideOnIdle?: boolean;
|
|
7133
7152
|
doNotReset?: boolean;
|
|
7134
|
-
}
|
|
7153
|
+
};
|
|
7135
7154
|
declare function AutoSaveIndicator({ hideOnIdle, doNotReset }: AutoSaveIndicatorProps): JSX.Element | null;
|
|
7136
7155
|
|
|
7137
7156
|
interface AvatarGroupProps {
|
|
@@ -7315,12 +7334,12 @@ type ButtonDatePickerProps = {
|
|
|
7315
7334
|
} & DatePickerProps & Pick<OverlayTriggerProps, "trigger" | "placement" | "disabled" | "tooltip">;
|
|
7316
7335
|
declare function ButtonDatePicker(props: ButtonDatePickerProps): JSX.Element;
|
|
7317
7336
|
|
|
7318
|
-
|
|
7337
|
+
type ButtonGroupProps = {
|
|
7319
7338
|
buttons: ButtonGroupButton[];
|
|
7320
7339
|
/** Disables all buttons in ButtonGroup */
|
|
7321
7340
|
disabled?: boolean;
|
|
7322
7341
|
size?: ButtonGroupSize;
|
|
7323
|
-
}
|
|
7342
|
+
};
|
|
7324
7343
|
type ButtonGroupButton = {
|
|
7325
7344
|
icon?: IconProps["icon"];
|
|
7326
7345
|
iconColor?: IconProps["color"];
|
|
@@ -7909,7 +7928,7 @@ type RadioGroupFieldProps<K extends string> = {
|
|
|
7909
7928
|
*/
|
|
7910
7929
|
declare function RadioGroupField<K extends string>(props: RadioGroupFieldProps<K>): JSX.Element;
|
|
7911
7930
|
|
|
7912
|
-
|
|
7931
|
+
type RichTextFieldProps = {
|
|
7913
7932
|
/** The initial html value to show in the trix editor. */
|
|
7914
7933
|
value: string | undefined;
|
|
7915
7934
|
onChange: (html: string | undefined, text: string | undefined, mergeTags: string[]) => void;
|
|
@@ -7928,7 +7947,7 @@ interface RichTextFieldProps extends Pick<PresentationFieldProps, "fullWidth"> {
|
|
|
7928
7947
|
onFocus?: () => void;
|
|
7929
7948
|
/** For rendering formatted text */
|
|
7930
7949
|
readOnly?: boolean;
|
|
7931
|
-
}
|
|
7950
|
+
} & Pick<PresentationFieldProps, "fullWidth">;
|
|
7932
7951
|
declare const RichTextField: (props: RichTextFieldProps) => JSX.Element;
|
|
7933
7952
|
/**
|
|
7934
7953
|
* Provides a simple rich text editor based on trix.
|
|
@@ -8021,7 +8040,7 @@ declare function SelectField<O extends HasIdIsh<V>, V extends Value>(props: Opti
|
|
|
8021
8040
|
declare function SelectField<O extends HasNameIsh, V extends Value>(props: Optional<SelectFieldProps<O, V>, "getOptionLabel">): JSX.Element;
|
|
8022
8041
|
declare function SelectField<O, V extends Value>(props: SelectFieldProps<O, V>): JSX.Element;
|
|
8023
8042
|
|
|
8024
|
-
|
|
8043
|
+
type SwitchProps = {
|
|
8025
8044
|
/** Whether the element should receive focus on render. */
|
|
8026
8045
|
autoFocus?: boolean;
|
|
8027
8046
|
/** Whether to render a compact version of Switch */
|
|
@@ -8047,7 +8066,7 @@ interface SwitchProps {
|
|
|
8047
8066
|
hovered?: boolean;
|
|
8048
8067
|
focusVisible?: boolean;
|
|
8049
8068
|
};
|
|
8050
|
-
}
|
|
8069
|
+
};
|
|
8051
8070
|
declare function Switch(props: SwitchProps): JSX.Element;
|
|
8052
8071
|
declare const switchHoverStyles: Pick<Properties, never> & {
|
|
8053
8072
|
backgroundColor: csstype.Property.BackgroundColor | undefined;
|
|
@@ -8099,7 +8118,7 @@ type TextFieldApi = {
|
|
|
8099
8118
|
focus: VoidFunction;
|
|
8100
8119
|
};
|
|
8101
8120
|
|
|
8102
|
-
|
|
8121
|
+
type ToggleButtonProps = {
|
|
8103
8122
|
/** Input label */
|
|
8104
8123
|
label: string;
|
|
8105
8124
|
selected?: boolean;
|
|
@@ -8115,7 +8134,7 @@ interface ToggleButtonProps {
|
|
|
8115
8134
|
pressed?: boolean;
|
|
8116
8135
|
focusVisible?: boolean;
|
|
8117
8136
|
};
|
|
8118
|
-
}
|
|
8137
|
+
};
|
|
8119
8138
|
declare function ToggleButton(props: ToggleButtonProps): JSX.Element;
|
|
8120
8139
|
/** Styles */
|
|
8121
8140
|
declare const toggleHoverStyles: Pick<Properties, never> & {
|
|
@@ -8930,12 +8949,12 @@ type FormSectionProps = {
|
|
|
8930
8949
|
/** A titled section of form content — title/description/actions row, then `fields`, then any recursively-rendered `childSections`. */
|
|
8931
8950
|
declare function FormSection$1(props: FormSectionProps): JSX.Element;
|
|
8932
8951
|
|
|
8933
|
-
|
|
8952
|
+
type StaticFieldProps = {
|
|
8934
8953
|
label: ReactNode;
|
|
8935
8954
|
value?: string;
|
|
8936
8955
|
children?: ReactNode;
|
|
8937
8956
|
labelStyle?: PresentationFieldProps["labelStyle"];
|
|
8938
|
-
}
|
|
8957
|
+
};
|
|
8939
8958
|
declare function StaticField(props: StaticFieldProps): JSX.Element;
|
|
8940
8959
|
|
|
8941
8960
|
type SubmitButtonProps<T> = Omit<ButtonProps, "label"> & {
|
|
@@ -8994,13 +9013,13 @@ interface SelectToggleProps {
|
|
|
8994
9013
|
/** Provides a checkbox to show/drive this row's selected state. */
|
|
8995
9014
|
declare function SelectToggle({ id, disabled }: SelectToggleProps): JSX.Element;
|
|
8996
9015
|
|
|
8997
|
-
|
|
9016
|
+
type SortHeaderProps = {
|
|
8998
9017
|
content: string;
|
|
8999
9018
|
xss?: Properties;
|
|
9000
9019
|
iconOnLeft?: boolean;
|
|
9001
9020
|
sortKey: string;
|
|
9002
9021
|
tooltipEl?: ReactNode;
|
|
9003
|
-
}
|
|
9022
|
+
};
|
|
9004
9023
|
/**
|
|
9005
9024
|
* Wraps column header names with up/down sorting icons.
|
|
9006
9025
|
*
|
|
@@ -9502,7 +9521,7 @@ declare function useRightPaneContext(): RightPaneLayoutContextProps;
|
|
|
9502
9521
|
|
|
9503
9522
|
declare function RightPaneLayout(props: {
|
|
9504
9523
|
children: ReactElement;
|
|
9505
|
-
paneBgColor?:
|
|
9524
|
+
paneBgColor?: BeamColor;
|
|
9506
9525
|
paneWidth?: number;
|
|
9507
9526
|
defaultPaneContent?: ReactElement;
|
|
9508
9527
|
}): JSX.Element;
|
|
@@ -9759,11 +9778,11 @@ type OffsetAndLimit = {
|
|
|
9759
9778
|
limit: number;
|
|
9760
9779
|
};
|
|
9761
9780
|
declare const defaultPage: OffsetAndLimit;
|
|
9762
|
-
|
|
9781
|
+
type PaginationProps = {
|
|
9763
9782
|
page: readonly [PageNumberAndSize, Dispatch<PageNumberAndSize>] | readonly [OffsetAndLimit, Dispatch<OffsetAndLimit>];
|
|
9764
9783
|
totalCount: number;
|
|
9765
9784
|
pageSizes?: number[];
|
|
9766
|
-
}
|
|
9785
|
+
};
|
|
9767
9786
|
declare function Pagination(props: PaginationProps): JSX.Element;
|
|
9768
9787
|
declare function toLimitAndOffset(page: PageSettings): OffsetAndLimit;
|
|
9769
9788
|
declare function toPageNumberSize(page: PageSettings): PageNumberAndSize;
|
|
@@ -9790,7 +9809,7 @@ type SideNavProps = {
|
|
|
9790
9809
|
declare function SideNav(props: SideNavProps): JSX.Element;
|
|
9791
9810
|
|
|
9792
9811
|
type SnackbarNoticeTypes = "error" | "warning" | "success" | "info" | "alert";
|
|
9793
|
-
|
|
9812
|
+
type SnackbarNoticeProps = {
|
|
9794
9813
|
/** Adds action button to the right of the notice */
|
|
9795
9814
|
action?: Pick<ButtonProps, "label" | "onClick" | "variant">;
|
|
9796
9815
|
/** Does not allow the user to close the notice manually. Notice will fade away in 10s. Value will be ignored if 'persistent' is set to 'true'. */
|
|
@@ -9804,7 +9823,7 @@ interface SnackbarNoticeProps {
|
|
|
9804
9823
|
id: string;
|
|
9805
9824
|
/** Removes the snackbar notice from the stack */
|
|
9806
9825
|
onClose: () => void;
|
|
9807
|
-
}
|
|
9826
|
+
};
|
|
9808
9827
|
|
|
9809
9828
|
type Offset = {
|
|
9810
9829
|
bottom?: number;
|
|
@@ -9830,17 +9849,17 @@ interface TriggerNoticeProps extends Omit<SnackbarNoticeProps, "id" | "onClose">
|
|
|
9830
9849
|
onClose?: () => void;
|
|
9831
9850
|
}
|
|
9832
9851
|
|
|
9833
|
-
|
|
9852
|
+
type Step = {
|
|
9834
9853
|
label: string;
|
|
9835
9854
|
state: "incomplete" | "complete" | "error";
|
|
9836
9855
|
disabled?: boolean;
|
|
9837
9856
|
value: string;
|
|
9838
|
-
}
|
|
9839
|
-
|
|
9857
|
+
};
|
|
9858
|
+
type StepperProps = {
|
|
9840
9859
|
steps: Step[];
|
|
9841
9860
|
currentStep: Step["value"];
|
|
9842
9861
|
onChange: (stepValue: string) => void;
|
|
9843
|
-
}
|
|
9862
|
+
};
|
|
9844
9863
|
declare function Stepper(props: StepperProps): JSX.Element;
|
|
9845
9864
|
|
|
9846
9865
|
type StepperTabProps = {
|
|
@@ -9892,7 +9911,7 @@ interface ConfirmCloseModalProps {
|
|
|
9892
9911
|
/** Modal content to appear when a close checks fails */
|
|
9893
9912
|
declare function ConfirmCloseModal(props: ConfirmCloseModalProps): JSX.Element;
|
|
9894
9913
|
|
|
9895
|
-
|
|
9914
|
+
type SuperDrawerContentProps = {
|
|
9896
9915
|
children: ReactNode;
|
|
9897
9916
|
/**
|
|
9898
9917
|
* Actions represents an array of button props with represents that different
|
|
@@ -9901,7 +9920,7 @@ interface SuperDrawerContentProps {
|
|
|
9901
9920
|
* Ex: A `cancel` and `submit` button
|
|
9902
9921
|
* */
|
|
9903
9922
|
actions?: ButtonProps[];
|
|
9904
|
-
}
|
|
9923
|
+
};
|
|
9905
9924
|
/**
|
|
9906
9925
|
* Helper component to place the given children and actions into the appropriate
|
|
9907
9926
|
* DOM format to render inside the SuperDrawer.
|