@homebound/beam 2.267.2 → 2.268.1
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.
|
@@ -22,4 +22,4 @@ export interface ButtonProps extends BeamButtonProps, BeamFocusableProps {
|
|
|
22
22
|
}
|
|
23
23
|
export declare function Button(props: ButtonProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
24
24
|
export type ButtonSize = "sm" | "md" | "lg";
|
|
25
|
-
export type ButtonVariant = "primary" | "secondary" | "tertiary" | "tertiaryDanger" | "danger" | "text";
|
|
25
|
+
export type ButtonVariant = "primary" | "secondary" | "tertiary" | "tertiaryDanger" | "danger" | "text" | "textSecondary";
|
|
@@ -121,6 +121,14 @@ const variantStyles = (contrast) => ({
|
|
|
121
121
|
disabledStyles: Css_1.Css.lightBlue300.if(contrast).lightBlue700.$,
|
|
122
122
|
focusStyles: Css_1.Css.bshFocus.if(contrast).boxShadow(`0 0 0 2px ${Css_1.Palette.White}`).$,
|
|
123
123
|
},
|
|
124
|
+
// Todo: handle contrast variant
|
|
125
|
+
textSecondary: {
|
|
126
|
+
baseStyles: Css_1.Css.gray900.add("fontSize", "inherit").$,
|
|
127
|
+
hoverStyles: Css_1.Css.bgGray100.$,
|
|
128
|
+
pressedStyles: Css_1.Css.gray900.$,
|
|
129
|
+
disabledStyles: Css_1.Css.bgWhite.gray400.$,
|
|
130
|
+
focusStyles: Css_1.Css.gray900.$,
|
|
131
|
+
},
|
|
124
132
|
});
|
|
125
133
|
const sizeStyles = {
|
|
126
134
|
sm: Css_1.Css.hPx(32).pxPx(12).$,
|
|
@@ -97,7 +97,7 @@ function TreeSelectFieldBase(props) {
|
|
|
97
97
|
if (isSelected)
|
|
98
98
|
return true;
|
|
99
99
|
// If we do not have children, then return the state of this leaf node.
|
|
100
|
-
if (!maybeParent.children)
|
|
100
|
+
if (!maybeParent.children || maybeParent.children.length === 0)
|
|
101
101
|
return isSelected;
|
|
102
102
|
// If we do have children, then check if all children are selected.
|
|
103
103
|
// if all are selected, then push this parent to the selectedKeys and selectedOptions
|