@redsift/design-system 10.3.0-alpha.6 → 10.3.0-alpha.7
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/index.d.ts +19 -2
- package/index.js +178 -197
- package/index.js.map +1 -1
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -4765,7 +4765,7 @@ function useTheme(theme) {
|
|
|
4765
4765
|
return contextTheme;
|
|
4766
4766
|
}
|
|
4767
4767
|
|
|
4768
|
-
const _excluded$
|
|
4768
|
+
const _excluded$W = ["aria-hidden", "aria-label", "badge", "className", "color", "icon", "size", "svgProps", "theme"];
|
|
4769
4769
|
const COMPONENT_NAME$S = 'Icon';
|
|
4770
4770
|
const CLASSNAME$S = 'redsift-icon';
|
|
4771
4771
|
const sizeToDimension$1 = size => {
|
|
@@ -4834,7 +4834,7 @@ const Icon = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4834
4834
|
svgProps,
|
|
4835
4835
|
theme: propsTheme
|
|
4836
4836
|
} = props,
|
|
4837
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
4837
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$W);
|
|
4838
4838
|
const theme = useTheme(propsTheme);
|
|
4839
4839
|
const {
|
|
4840
4840
|
width,
|
|
@@ -5147,7 +5147,7 @@ var spinnerGreyL2 = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53M
|
|
|
5147
5147
|
|
|
5148
5148
|
var spinnerGreyL3 = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2aWV3Qm94PSIwIDAgNDAwIDQwMCIgc2hhcGUtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iIHRleHQtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iPgogIDxzdHlsZT4KICAgIC5zcGlubmluZyB7CiAgICAgIGFuaW1hdGlvbjogc3Bpbm5pbmcta2V5ZnJhbWVzIDMwMDBtcyBsaW5lYXIgaW5maW5pdGUgbm9ybWFsIGZvcndhcmRzOwogICAgICB0cmFuc2Zvcm0tb3JpZ2luOiBjZW50ZXI7CiAgICAgIGFuaW1hdGlvbi10aW1pbmctZnVuY3Rpb246IGN1YmljLWJlemllcigwLjQyLCAwLCAwLjU4LCAxKTsKICAgIH0KICAgIEBrZXlmcmFtZXMgc3Bpbm5pbmcta2V5ZnJhbWVzIHsKICAgICAgMCUgewogICAgICAgIHRyYW5zZm9ybTogIHJvdGF0ZSgwZGVnKTsKICAgICAgfQoKICAgICAgMzMlIHsKICAgICAgICB0cmFuc2Zvcm06ICByb3RhdGUoMTgwZGVnKTsKICAgICAgfQoKICAgICAgNTAlIHsKICAgICAgICB0cmFuc2Zvcm06IHJvdGF0ZSgxODBkZWcpOwogICAgICB9CgogICAgICA4MyUgewogICAgICAgIHRyYW5zZm9ybTogIHJvdGF0ZSgzNjBkZWcpOwogICAgICB9CgogICAgICAxMDAlIHsKICAgICAgICB0cmFuc2Zvcm06ICByb3RhdGUoMzYwZGVnKQogICAgICB9CiAgICB9CiAgPC9zdHlsZT4KICA8cGF0aAogICAgbWFzaz0idXJsKCNzcGlubmVyLXUtbWFza3MpIgogICAgZmlsbD0iI2UwZTBlMCIKICAgIGQ9Ik0zMTggMTg2LjlWMTA4LjhMMjAwIDU3IDgyIDEwOC44djc4LjFDODIgMjU5IDEzMi4zIDMyNi40IDIwMCAzNDNjNjcuNy0xNi42IDExOC04NCAxMTgtMTU2LjF6TTQwMCAyMDBjMCAxMTAuNS04OS41IDIwMC0yMDAgMjAwUzAgMzEwLjUgMCAyMDAgODkuNSAwIDIwMCAwczIwMCA4OS41IDIwMCAyMDB6IgogIC8+CiAgPG1hc2sgaWQ9InNwaW5uZXItdS1tYXNrcyI+CiAgICA8cGF0aAogICAgICBjbGFzcz0ic3Bpbm5pbmciCiAgICAgIGQ9Ik0wLDIwMEMwLDg5LjU0MzA1LDg5LjU0MzA1LDAsMjAwLDB2NDAwQzg5LjU0MzA1LDQwMCwwLDMxMC40NTY5NSwwLDIwMFoiCiAgICAgIGZpbGw9IiNmZmYiCiAgICAvPgogIDwvbWFzaz4KICA8cGF0aAogICAgbWFzaz0idXJsKCNzcGlubmVyLXUtbWFza3MyKSIKICAgIGZpbGw9IiNlMGUwZTAiCiAgICBkPSJNODIsMTg2LjkzOXYtNzguMDg5TDIwMCw1N2wxMTgsNTEuODV2NzguMDg5QzMxOCwyNTkuMDAyLDI2Ny42ODYsMzI2LjQwMiwyMDAsMzQzQzEzMi4zMTQsMzI2LjQwMiw4MiwyNTkuMDAyLDgyLDE4Ni45MzlaIgogIC8+CiAgPG1hc2sgaWQ9InNwaW5uZXItdS1tYXNrczIiPgogICAgPHBhdGgKICAgICAgY2xhc3M9InNwaW5uaW5nIgogICAgICBkPSJNNDAwIDIwMEM0MDAgMzEwLjUgMzEwLjUgNDAwIDIwMCA0MDBWMGMxMTAuNSAwIDIwMCA4OS41IDIwMCAyMDB6IgogICAgICBmaWxsPSIjZmZmIgogICAgLz4KICA8L21hc2s+Cjwvc3ZnPg==';
|
|
5149
5149
|
|
|
5150
|
-
const _excluded$
|
|
5150
|
+
const _excluded$V = ["aria-hidden", "aria-label", "className", "color", "isColored", "size", "theme"];
|
|
5151
5151
|
const COMPONENT_NAME$R = 'Spinner';
|
|
5152
5152
|
const CLASSNAME$R = 'redsift-shield';
|
|
5153
5153
|
const sizeToDimension = size => {
|
|
@@ -5189,7 +5189,7 @@ const Spinner = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5189
5189
|
size = SpinnerSize.medium,
|
|
5190
5190
|
theme: propsTheme
|
|
5191
5191
|
} = props,
|
|
5192
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
5192
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$V);
|
|
5193
5193
|
const theme = useTheme(propsTheme);
|
|
5194
5194
|
const color = propsColor !== null && propsColor !== void 0 ? propsColor : isColored ? 'primary' : 'grey-l3';
|
|
5195
5195
|
const {
|
|
@@ -5255,7 +5255,7 @@ const StyledGradientBorder = styled.div`
|
|
|
5255
5255
|
}};
|
|
5256
5256
|
`;
|
|
5257
5257
|
|
|
5258
|
-
const _excluded$
|
|
5258
|
+
const _excluded$U = ["children", "className", "color", "disabled", "fullWidth", "isActive", "isDisabled", "isHovered", "isLoading", "leftIcon", "leftIconProps", "rightIcon", "rightIconProps", "theme", "variant"];
|
|
5259
5259
|
const COMPONENT_NAME$Q = 'Button';
|
|
5260
5260
|
const CLASSNAME$Q = 'redsift-button';
|
|
5261
5261
|
|
|
@@ -5286,7 +5286,7 @@ const Button = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5286
5286
|
theme: propsTheme,
|
|
5287
5287
|
variant: propsVariant
|
|
5288
5288
|
} = props,
|
|
5289
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
5289
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$U);
|
|
5290
5290
|
const isDisabled = isLoading || propsIsDisabled || disabled;
|
|
5291
5291
|
const theme = useTheme(propsTheme);
|
|
5292
5292
|
const color = Object.values(ButtonsColorPalette).includes(propsColor) ? propsColor : 'primary';
|
|
@@ -5358,7 +5358,7 @@ const StyledIconButton = styled(StyledButton)`
|
|
|
5358
5358
|
}}
|
|
5359
5359
|
`;
|
|
5360
5360
|
|
|
5361
|
-
const _excluded$
|
|
5361
|
+
const _excluded$T = ["className", "color", "disabled", "icon", "iconProps", "isActive", "isDisabled", "isHovered", "isLoading", "theme", "variant"];
|
|
5362
5362
|
const COMPONENT_NAME$P = 'IconButton';
|
|
5363
5363
|
const CLASSNAME$P = 'redsift-icon-button';
|
|
5364
5364
|
|
|
@@ -5383,7 +5383,7 @@ const IconButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5383
5383
|
theme: propsTheme,
|
|
5384
5384
|
variant: propsVariant
|
|
5385
5385
|
} = props,
|
|
5386
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
5386
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$T);
|
|
5387
5387
|
const isDisabled = props.isLoading || propsIsDisabled || disabled;
|
|
5388
5388
|
const theme = useTheme(propsTheme);
|
|
5389
5389
|
const color = Object.values(ButtonsColorPalette).includes(propsColor) ? propsColor : 'primary';
|
|
@@ -5605,7 +5605,7 @@ const StyledText = styled.span`
|
|
|
5605
5605
|
}}
|
|
5606
5606
|
`;
|
|
5607
5607
|
|
|
5608
|
-
const _excluded$
|
|
5608
|
+
const _excluded$S = ["as", "children", "className", "color", "fontFamily", "fontSize", "fontWeight", "lineHeight", "noWrap", "theme", "variant"];
|
|
5609
5609
|
const COMPONENT_NAME$O = 'Text';
|
|
5610
5610
|
const CLASSNAME$O = 'redsift-text';
|
|
5611
5611
|
|
|
@@ -5626,7 +5626,7 @@ const Text = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5626
5626
|
theme: propsTheme,
|
|
5627
5627
|
variant
|
|
5628
5628
|
} = props,
|
|
5629
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
5629
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$S);
|
|
5630
5630
|
const theme = useTheme(propsTheme);
|
|
5631
5631
|
return /*#__PURE__*/React__default.createElement(StyledText, _extends$1({
|
|
5632
5632
|
as: as
|
|
@@ -5695,7 +5695,7 @@ const StyledFlexbox = styled.div`
|
|
|
5695
5695
|
}}
|
|
5696
5696
|
`;
|
|
5697
5697
|
|
|
5698
|
-
const _excluded$
|
|
5698
|
+
const _excluded$R = ["as", "children", "className", "divider", "gap", "theme"];
|
|
5699
5699
|
const COMPONENT_NAME$N = 'Flexbox';
|
|
5700
5700
|
const CLASSNAME$N = 'redsift-flex-box';
|
|
5701
5701
|
|
|
@@ -5711,7 +5711,7 @@ const Flexbox = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5711
5711
|
gap = '16px',
|
|
5712
5712
|
theme: propsTheme
|
|
5713
5713
|
} = props,
|
|
5714
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
5714
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$R);
|
|
5715
5715
|
const theme = useTheme(propsTheme);
|
|
5716
5716
|
return /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
5717
5717
|
value: {
|
|
@@ -5730,7 +5730,7 @@ const Flexbox = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5730
5730
|
Flexbox.className = CLASSNAME$N;
|
|
5731
5731
|
Flexbox.displayName = COMPONENT_NAME$N;
|
|
5732
5732
|
|
|
5733
|
-
const _excluded$
|
|
5733
|
+
const _excluded$Q = ["children", "className", "isClosable", "isClosed", "onClose", "theme", "title", "variant", "styleVariant"];
|
|
5734
5734
|
const COMPONENT_NAME$M = 'Alert';
|
|
5735
5735
|
const CLASSNAME$M = 'redsift-alert';
|
|
5736
5736
|
const getVariant$1 = (variant, styleVariant, theme) => {
|
|
@@ -5774,7 +5774,7 @@ const Alert = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
5774
5774
|
variant: propsVariant,
|
|
5775
5775
|
styleVariant: propsStyleVariant
|
|
5776
5776
|
} = props,
|
|
5777
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
5777
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$Q);
|
|
5778
5778
|
const theme = useTheme(propsTheme);
|
|
5779
5779
|
const variant = Object.values(AlertVariant).includes(propsVariant) ? propsVariant : 'info';
|
|
5780
5780
|
const styleVariant = Object.values(AlertStyleVariant).includes(propsStyleVariant) ? propsStyleVariant : 'default';
|
|
@@ -6008,52 +6008,40 @@ const StyledHeading = styled.span`
|
|
|
6008
6008
|
|
|
6009
6009
|
${_ref => {
|
|
6010
6010
|
let {
|
|
6011
|
-
$
|
|
6011
|
+
$color,
|
|
6012
6012
|
$theme
|
|
6013
6013
|
} = _ref;
|
|
6014
|
-
return $
|
|
6015
|
-
color: var(--redsift-color-${$
|
|
6016
|
-
|
|
6017
|
-
|
|
6018
|
-
|
|
6019
|
-
|
|
6020
|
-
` : $variant === 'h2' ? css`
|
|
6021
|
-
color: var(--redsift-color-${$theme}-components-text-primary);
|
|
6022
|
-
font-family: var(--redsift-typography-h2-font-family);
|
|
6023
|
-
font-size: var(--redsift-typography-h2-font-size);
|
|
6024
|
-
font-weight: var(--redsift-typography-h2-font-weight);
|
|
6025
|
-
line-height: var(--redsift-typography-h2-line-height);
|
|
6026
|
-
` : $variant === 'h3' ? css`
|
|
6027
|
-
color: var(--redsift-color-${$theme}-components-text-primary);
|
|
6028
|
-
font-family: var(--redsift-typography-h3-font-family);
|
|
6029
|
-
font-size: var(--redsift-typography-h3-font-size);
|
|
6030
|
-
font-weight: var(--redsift-typography-h3-font-weight);
|
|
6031
|
-
line-height: var(--redsift-typography-h3-line-height);
|
|
6032
|
-
` : $variant === 'h4' ? css`
|
|
6033
|
-
color: var(--redsift-color-${$theme}-components-text-primary);
|
|
6034
|
-
font-family: var(--redsift-typography-h4-font-family);
|
|
6035
|
-
font-size: var(--redsift-typography-h4-font-size);
|
|
6036
|
-
font-weight: var(--redsift-typography-h4-font-weight);
|
|
6037
|
-
line-height: var(--redsift-typography-h4-line-height);
|
|
6038
|
-
` : $variant === 'h5' ? css`
|
|
6039
|
-
color: var(--redsift-color-${$theme}-components-text-primary);
|
|
6040
|
-
font-family: var(--redsift-typography-h5-font-family);
|
|
6041
|
-
font-size: var(--redsift-typography-h5-font-size);
|
|
6042
|
-
font-weight: var(--redsift-typography-h5-font-weight);
|
|
6043
|
-
line-height: var(--redsift-typography-h5-line-height);
|
|
6014
|
+
return $color && Object.keys(NotificationsColorPalette).indexOf($color) !== -1 ? css`
|
|
6015
|
+
color: var(--redsift-color-notifications-${$color}-primary);
|
|
6016
|
+
` : Object.keys(NeutralColorPalette).indexOf($color) !== -1 ? css`
|
|
6017
|
+
color: var(--redsift-color-neutral-${$color});
|
|
6018
|
+
` : Object.keys(ProductColorPalette).indexOf($color) !== -1 ? css`
|
|
6019
|
+
color: var(--redsift-color-product-${$color});
|
|
6044
6020
|
` : css`
|
|
6045
|
-
color: var(--redsift-color-${$theme}-components-text-primary);
|
|
6046
|
-
font-family: var(--redsift-typography-body-font-family);
|
|
6047
|
-
font-size: var(--redsift-typography-body-font-size);
|
|
6048
|
-
font-weight: var(--redsift-typography-body-font-weight);
|
|
6049
|
-
line-height: var(--redsift-typography-body-line-height);
|
|
6021
|
+
color: ${$color || css`var(--redsift-color-${$theme}-components-text-primary)`};
|
|
6050
6022
|
`;
|
|
6051
6023
|
}}
|
|
6052
6024
|
|
|
6053
6025
|
${_ref2 => {
|
|
6054
6026
|
let {
|
|
6055
|
-
$
|
|
6027
|
+
$variant,
|
|
6028
|
+
$fontFamily,
|
|
6029
|
+
$fontSize,
|
|
6030
|
+
$fontWeight,
|
|
6031
|
+
$lineHeight
|
|
6056
6032
|
} = _ref2;
|
|
6033
|
+
return css`
|
|
6034
|
+
font-family: ${$fontFamily ? css`var(--redsift-typography-font-family-${$fontFamily})` : css`var(--redsift-typography-${$variant !== null && $variant !== void 0 ? $variant : 'body'}-font-family)`};
|
|
6035
|
+
font-size: ${$fontSize ? $fontSize : css`var(--redsift-typography-${$variant !== null && $variant !== void 0 ? $variant : 'body'}-font-size)`};
|
|
6036
|
+
font-weight: ${$fontWeight ? $fontWeight : css`var(--redsift-typography-${$variant !== null && $variant !== void 0 ? $variant : 'body'}-font-weight)`};
|
|
6037
|
+
line-height: ${$lineHeight ? $lineHeight : css`var(--redsift-typography-${$variant !== null && $variant !== void 0 ? $variant : 'body'}-line-height)`};
|
|
6038
|
+
`;
|
|
6039
|
+
}}
|
|
6040
|
+
|
|
6041
|
+
${_ref3 => {
|
|
6042
|
+
let {
|
|
6043
|
+
$noWrap
|
|
6044
|
+
} = _ref3;
|
|
6057
6045
|
return $noWrap ? css`
|
|
6058
6046
|
overflow: hidden;
|
|
6059
6047
|
text-overflow: ellipsis;
|
|
@@ -6062,7 +6050,7 @@ const StyledHeading = styled.span`
|
|
|
6062
6050
|
}}
|
|
6063
6051
|
`;
|
|
6064
6052
|
|
|
6065
|
-
const _excluded$
|
|
6053
|
+
const _excluded$P = ["as", "children", "className", "color", "fontFamily", "fontSize", "fontWeight", "lineHeight", "noWrap", "theme", "variant"];
|
|
6066
6054
|
const COMPONENT_NAME$L = 'Heading';
|
|
6067
6055
|
const CLASSNAME$L = 'redsift-heading';
|
|
6068
6056
|
|
|
@@ -6074,11 +6062,16 @@ const Heading = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
6074
6062
|
as,
|
|
6075
6063
|
children,
|
|
6076
6064
|
className,
|
|
6065
|
+
color,
|
|
6066
|
+
fontFamily = FontFamily.poppins,
|
|
6067
|
+
fontSize,
|
|
6068
|
+
fontWeight,
|
|
6069
|
+
lineHeight,
|
|
6077
6070
|
noWrap,
|
|
6078
6071
|
theme: propsTheme,
|
|
6079
6072
|
variant
|
|
6080
6073
|
} = props,
|
|
6081
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
6074
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$P);
|
|
6082
6075
|
const theme = useTheme(propsTheme);
|
|
6083
6076
|
return /*#__PURE__*/React__default.createElement(StyledHeading, _extends$1({
|
|
6084
6077
|
as: as
|
|
@@ -6087,6 +6080,11 @@ const Heading = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
6087
6080
|
ref: ref,
|
|
6088
6081
|
$noWrap: noWrap,
|
|
6089
6082
|
$theme: theme,
|
|
6083
|
+
$color: color,
|
|
6084
|
+
$fontFamily: fontFamily,
|
|
6085
|
+
$fontSize: fontSize,
|
|
6086
|
+
$fontWeight: fontWeight,
|
|
6087
|
+
$lineHeight: lineHeight,
|
|
6090
6088
|
$variant: variant ? variant : as === 'span' ? 'body' : as
|
|
6091
6089
|
}), children);
|
|
6092
6090
|
});
|
|
@@ -6301,7 +6299,7 @@ const StyledAppSidePanel = styled.div`
|
|
|
6301
6299
|
|
|
6302
6300
|
// ${({ $theme }) => css`var(--redsift-color-${$theme}-components-side-navigation-background)`};
|
|
6303
6301
|
|
|
6304
|
-
const _excluded$
|
|
6302
|
+
const _excluded$O = ["children", "className", "featuredElements", "iconButtonProps", "iconButtonRef", "logo", "onOpen", "theme", "variant"];
|
|
6305
6303
|
const COMPONENT_NAME$K = 'AppSidePanel';
|
|
6306
6304
|
const CLASSNAME$K = 'redsift-app-side-panel';
|
|
6307
6305
|
|
|
@@ -6320,7 +6318,7 @@ const AppSidePanel = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
6320
6318
|
theme: propsTheme,
|
|
6321
6319
|
variant = AppSidePanelVariant.standard
|
|
6322
6320
|
} = props,
|
|
6323
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
6321
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$O);
|
|
6324
6322
|
const {
|
|
6325
6323
|
width
|
|
6326
6324
|
} = useWindowSize();
|
|
@@ -6679,7 +6677,7 @@ const StyledBadge = styled.div`
|
|
|
6679
6677
|
}}
|
|
6680
6678
|
`;
|
|
6681
6679
|
|
|
6682
|
-
const _excluded$
|
|
6680
|
+
const _excluded$N = ["autoBreak", "children", "className", "color", "isReversed", "theme", "variant"];
|
|
6683
6681
|
const COMPONENT_NAME$J = 'Badge';
|
|
6684
6682
|
const CLASSNAME$J = 'redsift-badge';
|
|
6685
6683
|
|
|
@@ -6696,7 +6694,7 @@ const Badge = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
6696
6694
|
theme: propsTheme,
|
|
6697
6695
|
variant: propsVariant
|
|
6698
6696
|
} = props,
|
|
6699
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
6697
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$N);
|
|
6700
6698
|
const theme = useTheme(propsTheme);
|
|
6701
6699
|
const color = [...Object.values(NotificationsColorPalette), ...Object.values(PresentationColorPalette)].includes(propsColor) ? propsColor : 'question';
|
|
6702
6700
|
const variant = Object.values(BadgeVariant).includes(propsVariant) ? propsVariant : 'dot';
|
|
@@ -6713,7 +6711,7 @@ const Badge = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
6713
6711
|
Badge.className = CLASSNAME$J;
|
|
6714
6712
|
Badge.displayName = COMPONENT_NAME$J;
|
|
6715
6713
|
|
|
6716
|
-
const _excluded$
|
|
6714
|
+
const _excluded$M = ["as", "badge", "badgeProps", "children", "className", "hasBorder", "href", "icon", "iconProps", "iconRef", "isCurrent", "isDisabled", "isSecondLevel", "onClick", "onKeyDown", "tabIndex", "theme"];
|
|
6717
6715
|
const COMPONENT_NAME$I = 'SideNavigationMenuItem';
|
|
6718
6716
|
const CLASSNAME$I = 'redsift-side-navigation-menu-item';
|
|
6719
6717
|
|
|
@@ -6741,7 +6739,7 @@ const SideNavigationMenuItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
6741
6739
|
tabIndex,
|
|
6742
6740
|
theme: propsTheme
|
|
6743
6741
|
} = props,
|
|
6744
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
6742
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$M);
|
|
6745
6743
|
warnIfNoAccessibleLabelFound(props, [children], 'SideNavigationMenuItem');
|
|
6746
6744
|
const sideNavigationMenuBarContext = useContext(SideNavigationMenuBarContext);
|
|
6747
6745
|
const sideNavigationMenuContext = useContext(SideNavigationMenuContext);
|
|
@@ -7043,7 +7041,7 @@ const StyledAppContainer = styled.div`
|
|
|
7043
7041
|
}};
|
|
7044
7042
|
`;
|
|
7045
7043
|
|
|
7046
|
-
const _excluded$
|
|
7044
|
+
const _excluded$L = ["children", "className", "locale", "product", "theme"];
|
|
7047
7045
|
const COMPONENT_NAME$H = 'AppContainer';
|
|
7048
7046
|
const CLASSNAME$H = 'redsift-app-container';
|
|
7049
7047
|
const RadarSvgLinearGradient = () => /*#__PURE__*/React__default.createElement("svg", {
|
|
@@ -7100,7 +7098,7 @@ const AppContainer = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7100
7098
|
product,
|
|
7101
7099
|
theme: propsTheme
|
|
7102
7100
|
} = props,
|
|
7103
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
7101
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$L);
|
|
7104
7102
|
const theme = useTheme(propsTheme);
|
|
7105
7103
|
const [sidePanelVariant, setSidePanelVariant] = useState(AppSidePanelVariant.standard);
|
|
7106
7104
|
const [breadcrumbs, setBreadcrumbs] = useState();
|
|
@@ -7139,7 +7137,7 @@ const AppContainer = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7139
7137
|
AppContainer.className = CLASSNAME$H;
|
|
7140
7138
|
AppContainer.displayName = COMPONENT_NAME$H;
|
|
7141
7139
|
|
|
7142
|
-
const _excluded$
|
|
7140
|
+
const _excluded$K = ["aria-label", "buttonProps", "buttonRef", "children", "className", "hasBadge", "icon", "iconProps", "iconRef", "id", "isDisabled", "isExpanded", "menuProps", "menuRef", "tabIndex", "theme"];
|
|
7143
7141
|
const COMPONENT_NAME$G = 'SideNavigationMenu';
|
|
7144
7142
|
const CLASSNAME$G = 'redsift-side-navigation-menu';
|
|
7145
7143
|
|
|
@@ -7165,7 +7163,7 @@ const SideNavigationMenu = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7165
7163
|
tabIndex,
|
|
7166
7164
|
theme: propsTheme
|
|
7167
7165
|
} = props,
|
|
7168
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
7166
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$K);
|
|
7169
7167
|
const [_id] = useId$2();
|
|
7170
7168
|
const id = propsId !== null && propsId !== void 0 ? propsId : _id;
|
|
7171
7169
|
warnIfNoAccessibleLabelFound(props, undefined, 'SideNavigationMenu');
|
|
@@ -7563,7 +7561,7 @@ const StyledSideNavigationMenuBar = styled.nav`
|
|
|
7563
7561
|
}
|
|
7564
7562
|
`;
|
|
7565
7563
|
|
|
7566
|
-
const _excluded$
|
|
7564
|
+
const _excluded$J = ["aria-label", "aria-labelledby", "canHaveMultipleMenuOpenAtOnce", "children", "className", "isDisabled", "menubarProps", "menubarRef", "theme", "variant"];
|
|
7567
7565
|
const COMPONENT_NAME$F = 'SideNavigationMenuBar';
|
|
7568
7566
|
const CLASSNAME$F = 'redsift-side-navigation-menu-bar';
|
|
7569
7567
|
|
|
@@ -7595,7 +7593,7 @@ const SideNavigationMenuBar = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7595
7593
|
theme: propsTheme,
|
|
7596
7594
|
variant: propsVariant = SideNavigationMenuBarVariant.standard
|
|
7597
7595
|
} = props,
|
|
7598
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
7596
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$J);
|
|
7599
7597
|
warnIfNoAccessibleLabelFound(props, undefined, 'SideNavigationMenuBar');
|
|
7600
7598
|
const appContainerState = useContext(AppContainerContext);
|
|
7601
7599
|
const theme = useTheme(propsTheme);
|
|
@@ -7762,7 +7760,7 @@ const SideNavigationMenuBar = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7762
7760
|
SideNavigationMenuBar.className = CLASSNAME$F;
|
|
7763
7761
|
SideNavigationMenuBar.displayName = COMPONENT_NAME$F;
|
|
7764
7762
|
|
|
7765
|
-
const _excluded$
|
|
7763
|
+
const _excluded$I = ["title", "href", "ref"],
|
|
7766
7764
|
_excluded2$2 = ["title", "children", "ref"],
|
|
7767
7765
|
_excluded3 = ["title", "href", "ref"];
|
|
7768
7766
|
const isMenu = item => {
|
|
@@ -7781,7 +7779,7 @@ const useSideNavigationMenuBar = _ref => {
|
|
|
7781
7779
|
href,
|
|
7782
7780
|
ref
|
|
7783
7781
|
} = item,
|
|
7784
|
-
rest = _objectWithoutProperties(item, _excluded$
|
|
7782
|
+
rest = _objectWithoutProperties(item, _excluded$I);
|
|
7785
7783
|
menuBarChildren.push( /*#__PURE__*/React__default.createElement(SideNavigationMenuItem, _extends$1({
|
|
7786
7784
|
key: title,
|
|
7787
7785
|
isCurrent: isActive ? isActive(href) : undefined
|
|
@@ -7885,7 +7883,7 @@ const StyledBreadcrumbItem = styled.a`
|
|
|
7885
7883
|
}
|
|
7886
7884
|
`;
|
|
7887
7885
|
|
|
7888
|
-
const _excluded$
|
|
7886
|
+
const _excluded$H = ["as", "children", "className", "href", "isCurrent", "isDisabled", "theme"];
|
|
7889
7887
|
const COMPONENT_NAME$E = 'BreadcrumbItem';
|
|
7890
7888
|
const CLASSNAME$E = 'redsift-breadcrumb-item';
|
|
7891
7889
|
|
|
@@ -7902,7 +7900,7 @@ const BreadcrumbItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7902
7900
|
isDisabled,
|
|
7903
7901
|
theme: propsTheme
|
|
7904
7902
|
} = props,
|
|
7905
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
7903
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$H);
|
|
7906
7904
|
warnIfNoAccessibleLabelFound(props, [children], 'BreadcrumbItem');
|
|
7907
7905
|
const theme = useTheme(propsTheme);
|
|
7908
7906
|
return /*#__PURE__*/React__default.createElement(StyledBreadcrumbItem, _extends$1({
|
|
@@ -7956,7 +7954,7 @@ const StyledBreadcrumbs = styled.nav`
|
|
|
7956
7954
|
}
|
|
7957
7955
|
`;
|
|
7958
7956
|
|
|
7959
|
-
const _excluded$
|
|
7957
|
+
const _excluded$G = ["children", "className", "isDisabled", "theme"];
|
|
7960
7958
|
const COMPONENT_NAME$D = 'Breadcrumbs';
|
|
7961
7959
|
const CLASSNAME$D = 'redsift-breadcrumbs';
|
|
7962
7960
|
|
|
@@ -7970,7 +7968,7 @@ const BaseBreadcrumbs = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7970
7968
|
isDisabled,
|
|
7971
7969
|
theme: propsTheme
|
|
7972
7970
|
} = props,
|
|
7973
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
7971
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$G);
|
|
7974
7972
|
warnIfNoAccessibleLabelFound(props, undefined, 'Breadcrumbs');
|
|
7975
7973
|
const theme = useTheme(propsTheme);
|
|
7976
7974
|
const childArray = filterComponents([Breadcrumbs.Item])(children);
|
|
@@ -8005,7 +8003,7 @@ const Breadcrumbs = Object.assign(BaseBreadcrumbs, {
|
|
|
8005
8003
|
Item: BreadcrumbItem
|
|
8006
8004
|
});
|
|
8007
8005
|
|
|
8008
|
-
const _excluded$
|
|
8006
|
+
const _excluded$F = ["breadcrumbs", "children", "className", "iconButtonProps", "iconButtonRef", "fallbackTitle", "theme", "title"];
|
|
8009
8007
|
const COMPONENT_NAME$C = 'AppBar';
|
|
8010
8008
|
const CLASSNAME$C = 'redsift-app-bar';
|
|
8011
8009
|
|
|
@@ -8024,7 +8022,7 @@ const AppBar = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8024
8022
|
theme: propsTheme,
|
|
8025
8023
|
title: propsTitle
|
|
8026
8024
|
} = props,
|
|
8027
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
8025
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$F);
|
|
8028
8026
|
const [scroll, setScroll] = useState(false);
|
|
8029
8027
|
useEffect(() => {
|
|
8030
8028
|
window.addEventListener('scroll', () => {
|
|
@@ -8126,7 +8124,7 @@ const StyledAppContent = styled.main`
|
|
|
8126
8124
|
}}
|
|
8127
8125
|
`;
|
|
8128
8126
|
|
|
8129
|
-
const _excluded$
|
|
8127
|
+
const _excluded$E = ["children", "className", "theme"];
|
|
8130
8128
|
const COMPONENT_NAME$B = 'AppContent';
|
|
8131
8129
|
const CLASSNAME$B = 'redsift-app-content';
|
|
8132
8130
|
|
|
@@ -8139,7 +8137,7 @@ const AppContent = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8139
8137
|
className,
|
|
8140
8138
|
theme: propsTheme
|
|
8141
8139
|
} = props,
|
|
8142
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
8140
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$E);
|
|
8143
8141
|
const {
|
|
8144
8142
|
isLoaded
|
|
8145
8143
|
} = useIsLoaded();
|
|
@@ -8270,7 +8268,7 @@ const StyledButtonGroup = styled.div`
|
|
|
8270
8268
|
}};
|
|
8271
8269
|
`;
|
|
8272
8270
|
|
|
8273
|
-
const _excluded$
|
|
8271
|
+
const _excluded$D = ["children", "className", "color", "theme", "variant"];
|
|
8274
8272
|
const COMPONENT_NAME$A = 'ButtonGroup';
|
|
8275
8273
|
const CLASSNAME$A = 'redsift-button-group';
|
|
8276
8274
|
|
|
@@ -8285,7 +8283,7 @@ const ButtonGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8285
8283
|
theme: propsTheme,
|
|
8286
8284
|
variant: propsVariant
|
|
8287
8285
|
} = props,
|
|
8288
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
8286
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$D);
|
|
8289
8287
|
const theme = useTheme(propsTheme);
|
|
8290
8288
|
const color = Object.values(ButtonsColorPalette).includes(propsColor) ? propsColor : 'primary';
|
|
8291
8289
|
const variant = Object.values(ButtonGroupVariant).includes(propsVariant) ? propsVariant : 'primary';
|
|
@@ -8325,7 +8323,7 @@ const ButtonGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8325
8323
|
ButtonGroup.className = CLASSNAME$A;
|
|
8326
8324
|
ButtonGroup.displayName = COMPONENT_NAME$A;
|
|
8327
8325
|
|
|
8328
|
-
const _excluded$
|
|
8326
|
+
const _excluded$C = ["as", "children", "className", "color", "href", "isActive", "isDisabled", "isHovered", "leftIcon", "rightIcon", "target", "theme", "variant"];
|
|
8329
8327
|
const COMPONENT_NAME$z = 'ButtonLink';
|
|
8330
8328
|
const CLASSNAME$z = 'redsift-button-link';
|
|
8331
8329
|
|
|
@@ -8352,7 +8350,7 @@ const ButtonLink = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8352
8350
|
theme: propsTheme,
|
|
8353
8351
|
variant: propsVariant
|
|
8354
8352
|
} = props,
|
|
8355
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
8353
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$C);
|
|
8356
8354
|
const theme = useTheme(propsTheme);
|
|
8357
8355
|
const color = Object.values(ButtonsColorPalette).includes(propsColor) ? propsColor : 'primary';
|
|
8358
8356
|
const variant = Object.values(ButtonVariant).includes(propsVariant) ? propsVariant : 'primary';
|
|
@@ -8596,7 +8594,7 @@ const StyledSkeletonCircle = styled(StyledSkeleton)`
|
|
|
8596
8594
|
}}
|
|
8597
8595
|
`;
|
|
8598
8596
|
|
|
8599
|
-
const _excluded$
|
|
8597
|
+
const _excluded$B = ["children", "className", "isLoaded", "theme"];
|
|
8600
8598
|
const COMPONENT_NAME$y = 'SkeletonCircle';
|
|
8601
8599
|
const CLASSNAME$y = 'redsift-skeleton-circle';
|
|
8602
8600
|
|
|
@@ -8610,7 +8608,7 @@ const SkeletonCircle = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8610
8608
|
isLoaded,
|
|
8611
8609
|
theme: propsTheme
|
|
8612
8610
|
} = props,
|
|
8613
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
8611
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$B);
|
|
8614
8612
|
const theme = useTheme(propsTheme);
|
|
8615
8613
|
if (isLoaded) {
|
|
8616
8614
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children);
|
|
@@ -8676,7 +8674,7 @@ const StyledSkeletonText = styled(StyledSkeleton)`
|
|
|
8676
8674
|
}}}
|
|
8677
8675
|
`;
|
|
8678
8676
|
|
|
8679
|
-
const _excluded$
|
|
8677
|
+
const _excluded$A = ["children", "className", "fontSize", "isLoaded", "lineHeight", "theme", "variant"];
|
|
8680
8678
|
const COMPONENT_NAME$x = 'SkeletonText';
|
|
8681
8679
|
const CLASSNAME$x = 'redsift-skeleton-text';
|
|
8682
8680
|
|
|
@@ -8693,7 +8691,7 @@ const SkeletonText = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8693
8691
|
theme: propsTheme,
|
|
8694
8692
|
variant = 'body'
|
|
8695
8693
|
} = props,
|
|
8696
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
8694
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$A);
|
|
8697
8695
|
const theme = useTheme(propsTheme);
|
|
8698
8696
|
if (isLoaded) {
|
|
8699
8697
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children);
|
|
@@ -8710,7 +8708,7 @@ const SkeletonText = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8710
8708
|
SkeletonText.className = CLASSNAME$x;
|
|
8711
8709
|
SkeletonText.displayName = COMPONENT_NAME$x;
|
|
8712
8710
|
|
|
8713
|
-
const _excluded$
|
|
8711
|
+
const _excluded$z = ["children", "className", "isLoaded", "theme"];
|
|
8714
8712
|
const COMPONENT_NAME$w = 'Skeleton';
|
|
8715
8713
|
const CLASSNAME$w = 'redsift-skeleton';
|
|
8716
8714
|
|
|
@@ -8724,7 +8722,7 @@ const BaseSkeleton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8724
8722
|
isLoaded,
|
|
8725
8723
|
theme: propsTheme
|
|
8726
8724
|
} = props,
|
|
8727
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
8725
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$z);
|
|
8728
8726
|
const theme = useTheme(propsTheme);
|
|
8729
8727
|
if (isLoaded) {
|
|
8730
8728
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children);
|
|
@@ -8742,7 +8740,7 @@ const Skeleton = Object.assign(BaseSkeleton, {
|
|
|
8742
8740
|
Text: SkeletonText
|
|
8743
8741
|
});
|
|
8744
8742
|
|
|
8745
|
-
const _excluded$
|
|
8743
|
+
const _excluded$y = ["children", "className", "header", "headingProps", "icon", "iconProps", "isLoading", "subheader"];
|
|
8746
8744
|
const COMPONENT_NAME$v = 'CardHeader';
|
|
8747
8745
|
const CLASSNAME$v = 'redsift-card-header';
|
|
8748
8746
|
|
|
@@ -8760,7 +8758,7 @@ const CardHeader = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8760
8758
|
isLoading,
|
|
8761
8759
|
subheader
|
|
8762
8760
|
} = props,
|
|
8763
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
8761
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$y);
|
|
8764
8762
|
return /*#__PURE__*/React__default.createElement(StyledCardHeader, _extends$1({}, forwardedProps, {
|
|
8765
8763
|
className: classNames(CardHeader.className, className),
|
|
8766
8764
|
ref: ref
|
|
@@ -8801,7 +8799,7 @@ const StyledCardBody = styled.div`
|
|
|
8801
8799
|
padding: 16px 0px;
|
|
8802
8800
|
`;
|
|
8803
8801
|
|
|
8804
|
-
const _excluded$
|
|
8802
|
+
const _excluded$x = ["children", "className"];
|
|
8805
8803
|
const COMPONENT_NAME$u = 'CardBody';
|
|
8806
8804
|
const CLASSNAME$u = 'redsift-card-body';
|
|
8807
8805
|
|
|
@@ -8813,7 +8811,7 @@ const CardBody = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8813
8811
|
children,
|
|
8814
8812
|
className
|
|
8815
8813
|
} = props,
|
|
8816
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
8814
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$x);
|
|
8817
8815
|
return /*#__PURE__*/React__default.createElement(StyledCardBody, _extends$1({}, forwardedProps, {
|
|
8818
8816
|
className: classNames(CardBody.className, className),
|
|
8819
8817
|
ref: ref
|
|
@@ -8832,7 +8830,7 @@ const StyledCardActions = styled.div`
|
|
|
8832
8830
|
margin-bottom: 8px;
|
|
8833
8831
|
`;
|
|
8834
8832
|
|
|
8835
|
-
const _excluded$
|
|
8833
|
+
const _excluded$w = ["children", "className", "display", "flexDirection"];
|
|
8836
8834
|
const COMPONENT_NAME$t = 'CardActions';
|
|
8837
8835
|
const CLASSNAME$t = 'redsift-card-actions';
|
|
8838
8836
|
|
|
@@ -8846,7 +8844,7 @@ const CardActions = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8846
8844
|
display = 'flex',
|
|
8847
8845
|
flexDirection = 'row'
|
|
8848
8846
|
} = props,
|
|
8849
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
8847
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$w);
|
|
8850
8848
|
return /*#__PURE__*/React__default.createElement(StyledCardActions, _extends$1({
|
|
8851
8849
|
display: display,
|
|
8852
8850
|
flexDirection: flexDirection
|
|
@@ -8858,7 +8856,7 @@ const CardActions = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8858
8856
|
CardActions.className = CLASSNAME$t;
|
|
8859
8857
|
CardActions.displayName = COMPONENT_NAME$t;
|
|
8860
8858
|
|
|
8861
|
-
const _excluded$
|
|
8859
|
+
const _excluded$v = ["children", "className", "defaultCollapsed", "isCollapsed", "isCollapsible", "onCollapse", "theme"];
|
|
8862
8860
|
const COMPONENT_NAME$s = 'Card';
|
|
8863
8861
|
const CLASSNAME$s = 'redsift-card';
|
|
8864
8862
|
|
|
@@ -8875,7 +8873,7 @@ const BaseCard = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
8875
8873
|
onCollapse,
|
|
8876
8874
|
theme: propsTheme
|
|
8877
8875
|
} = props,
|
|
8878
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
8876
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$v);
|
|
8879
8877
|
const theme = useTheme(propsTheme);
|
|
8880
8878
|
const format = useMessageFormatter(intlMessages$5);
|
|
8881
8879
|
const [isCollapsed, setIsCollapsed] = useState(propsIsCollapsed !== null && propsIsCollapsed !== void 0 ? propsIsCollapsed : defaultCollapsed);
|
|
@@ -9011,7 +9009,7 @@ const StyledCheckboxGroup = styled.div`
|
|
|
9011
9009
|
}
|
|
9012
9010
|
`;
|
|
9013
9011
|
|
|
9014
|
-
const _excluded$
|
|
9012
|
+
const _excluded$u = ["children", "className", "color", "defaultValues", "description", "isDisabled", "isInvalid", "isReadOnly", "isRequired", "label", "onChange", "orientation", "theme", "value"];
|
|
9015
9013
|
const COMPONENT_NAME$r = 'CheckboxGroup';
|
|
9016
9014
|
const CLASSNAME$r = 'redsift-checkbox-group';
|
|
9017
9015
|
|
|
@@ -9036,7 +9034,7 @@ const CheckboxGroup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9036
9034
|
theme: propsTheme,
|
|
9037
9035
|
value
|
|
9038
9036
|
} = props,
|
|
9039
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
9037
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$u);
|
|
9040
9038
|
const theme = useTheme(propsTheme);
|
|
9041
9039
|
const [selectedValues, setValue] = useState(value || defaultValues || []);
|
|
9042
9040
|
useEffect(() => {
|
|
@@ -9195,7 +9193,7 @@ const PressResponderContext = /*#__PURE__*/React__default.createContext({
|
|
|
9195
9193
|
});
|
|
9196
9194
|
PressResponderContext.displayName = 'PressResponderContext';
|
|
9197
9195
|
|
|
9198
|
-
const _excluded$
|
|
9196
|
+
const _excluded$t = ["register"],
|
|
9199
9197
|
_excluded2$1 = ["onPress", "onPressChange", "onPressStart", "onPressEnd", "onPressUp", "isDisabled", "isPressed", "preventFocusOnPress", "shouldCancelOnPointerExit", "allowTextSelectionOnPress", "ref"];
|
|
9200
9198
|
function usePressResponderContext(props) {
|
|
9201
9199
|
// Consume context from <PressResponder> and merge with props.
|
|
@@ -9204,7 +9202,7 @@ function usePressResponderContext(props) {
|
|
|
9204
9202
|
let {
|
|
9205
9203
|
register
|
|
9206
9204
|
} = context,
|
|
9207
|
-
contextProps = _objectWithoutProperties(context, _excluded$
|
|
9205
|
+
contextProps = _objectWithoutProperties(context, _excluded$t);
|
|
9208
9206
|
props = mergeProps$1(contextProps, props);
|
|
9209
9207
|
register();
|
|
9210
9208
|
}
|
|
@@ -10561,14 +10559,14 @@ function useFocusRing() {
|
|
|
10561
10559
|
};
|
|
10562
10560
|
}
|
|
10563
10561
|
|
|
10564
|
-
const _excluded$
|
|
10562
|
+
const _excluded$s = ["ref"];
|
|
10565
10563
|
let FocusableContext = /*#__PURE__*/React__default.createContext(null);
|
|
10566
10564
|
function useFocusableContext(ref) {
|
|
10567
10565
|
let context = useContext(FocusableContext) || {};
|
|
10568
10566
|
useSyncRef(context, ref);
|
|
10569
10567
|
|
|
10570
10568
|
// eslint-disable-next-line
|
|
10571
|
-
let otherProps = _objectWithoutProperties(context, _excluded$
|
|
10569
|
+
let otherProps = _objectWithoutProperties(context, _excluded$s);
|
|
10572
10570
|
return otherProps;
|
|
10573
10571
|
}
|
|
10574
10572
|
/**
|
|
@@ -10706,7 +10704,7 @@ const StyledCheckbox = styled.label`
|
|
|
10706
10704
|
}
|
|
10707
10705
|
`;
|
|
10708
10706
|
|
|
10709
|
-
const _excluded$
|
|
10707
|
+
const _excluded$r = ["aria-label", "aria-labelledby", "autoFocus", "children", "className", "defaultSelected", "inputProps", "inputRef", "isColored", "isDisabled", "isIndeterminate", "isInvalid", "isReadOnly", "isRequired", "isSelected", "name", "onChange", "theme", "value"];
|
|
10710
10708
|
const COMPONENT_NAME$q = 'Checkbox';
|
|
10711
10709
|
const CLASSNAME$q = 'redsift-checkbox';
|
|
10712
10710
|
|
|
@@ -10739,7 +10737,7 @@ const Checkbox = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
10739
10737
|
theme: propsTheme,
|
|
10740
10738
|
value
|
|
10741
10739
|
} = props,
|
|
10742
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
10740
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$r);
|
|
10743
10741
|
const theme = useTheme(propsTheme);
|
|
10744
10742
|
const {
|
|
10745
10743
|
isFocusVisible,
|
|
@@ -10932,7 +10930,7 @@ const StyledShield = styled.div`
|
|
|
10932
10930
|
}}
|
|
10933
10931
|
`;
|
|
10934
10932
|
|
|
10935
|
-
const _excluded$
|
|
10933
|
+
const _excluded$q = ["aria-hidden", "aria-label", "className", "svgProps", "isOutlined", "isReversed", "theme", "variant"];
|
|
10936
10934
|
const COMPONENT_NAME$p = 'Shield';
|
|
10937
10935
|
const CLASSNAME$p = 'redsift-shield';
|
|
10938
10936
|
const getVariant = variant => {
|
|
@@ -11019,7 +11017,7 @@ const Shield = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11019
11017
|
theme: propsTheme,
|
|
11020
11018
|
variant = ShieldVariant.success
|
|
11021
11019
|
} = props,
|
|
11022
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
11020
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$q);
|
|
11023
11021
|
const theme = useTheme(propsTheme);
|
|
11024
11022
|
const {
|
|
11025
11023
|
color,
|
|
@@ -11108,7 +11106,7 @@ const StyledDetailedCardCollapsibleSectionItems = styled.div`
|
|
|
11108
11106
|
}
|
|
11109
11107
|
`;
|
|
11110
11108
|
|
|
11111
|
-
const _excluded$
|
|
11109
|
+
const _excluded$p = ["caption", "children", "className", "hideBackground"];
|
|
11112
11110
|
const COMPONENT_NAME$o = 'DetailedCardCollapsibleSectionItems';
|
|
11113
11111
|
const CLASSNAME$o = 'redsift-detailed-card-collapsible-section-items';
|
|
11114
11112
|
|
|
@@ -11122,7 +11120,7 @@ const DetailedCardCollapsibleSectionItems = /*#__PURE__*/forwardRef((props, ref)
|
|
|
11122
11120
|
className,
|
|
11123
11121
|
hideBackground
|
|
11124
11122
|
} = props,
|
|
11125
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
11123
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$p);
|
|
11126
11124
|
return /*#__PURE__*/React__default.createElement(StyledDetailedCardCollapsibleSectionItems, _extends$1({}, forwardedProps, {
|
|
11127
11125
|
className: classNames(DetailedCardCollapsibleSectionItems.className, className),
|
|
11128
11126
|
ref: ref,
|
|
@@ -11198,7 +11196,7 @@ const StyledDetailedCardSection = styled.div`
|
|
|
11198
11196
|
}
|
|
11199
11197
|
`;
|
|
11200
11198
|
|
|
11201
|
-
const _excluded$
|
|
11199
|
+
const _excluded$o = ["badge", "color", "children", "className", "header", "isCollapsed", "isCollapsible", "isLoading"];
|
|
11202
11200
|
const COMPONENT_NAME$n = 'DetailedCardSection';
|
|
11203
11201
|
const CLASSNAME$n = 'redsift-detailed-card-section';
|
|
11204
11202
|
const hasCollapsibleChildren = children => {
|
|
@@ -11225,7 +11223,7 @@ const DetailedCardSection = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11225
11223
|
isCollapsible: propsIsCollapsible = true,
|
|
11226
11224
|
isLoading
|
|
11227
11225
|
} = props,
|
|
11228
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
11226
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$o);
|
|
11229
11227
|
const format = useMessageFormatter(intlMessages$3);
|
|
11230
11228
|
const isCollapsible = propsIsCollapsible && hasCollapsibleChildren(children);
|
|
11231
11229
|
const [isCollapsed, setIsCollapsed] = useState(Boolean(propsIsCollapsed));
|
|
@@ -11334,7 +11332,7 @@ const StyledDetailedCardHeader = styled.div`
|
|
|
11334
11332
|
}
|
|
11335
11333
|
`;
|
|
11336
11334
|
|
|
11337
|
-
const _excluded$
|
|
11335
|
+
const _excluded$n = ["children", "className", "header", "headingProps", "isLoading"];
|
|
11338
11336
|
const COMPONENT_NAME$m = 'DetailedCardHeader';
|
|
11339
11337
|
const CLASSNAME$m = 'redsift-detailed-card-header';
|
|
11340
11338
|
|
|
@@ -11349,7 +11347,7 @@ const DetailedCardHeader = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11349
11347
|
headingProps,
|
|
11350
11348
|
isLoading
|
|
11351
11349
|
} = props,
|
|
11352
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
11350
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$n);
|
|
11353
11351
|
const theme = useTheme();
|
|
11354
11352
|
return /*#__PURE__*/React__default.createElement(StyledDetailedCardHeader, _extends$1({}, forwardedProps, {
|
|
11355
11353
|
className: classNames(DetailedCardHeader.className, className),
|
|
@@ -11422,6 +11420,16 @@ const pickTextColorBasedOnBgColorAdvanced = (bgColor, lightColor, darkColor) =>
|
|
|
11422
11420
|
var L = 0.2126 * c[0] + 0.7152 * c[1] + 0.0722 * c[2];
|
|
11423
11421
|
return L > 0.179 ? darkColor : lightColor;
|
|
11424
11422
|
};
|
|
11423
|
+
const pickHoverColorBasedOnBgColorAdvanced = bgColor => {
|
|
11424
|
+
var color = bgColor.charAt(0) === '#' ? bgColor.substring(1, 7) : bgColor;
|
|
11425
|
+
if (color.toUpperCase() === 'FFFFFF') {
|
|
11426
|
+
return RedsiftColorNeutralLightGrey;
|
|
11427
|
+
}
|
|
11428
|
+
var r = parseInt(color.substring(0, 2), 16); // hexToR
|
|
11429
|
+
var g = parseInt(color.substring(2, 4), 16); // hexToG
|
|
11430
|
+
var b = parseInt(color.substring(4, 6), 16); // hexToB
|
|
11431
|
+
return `rgba(${r}, ${g}, ${b}, 0.75)`;
|
|
11432
|
+
};
|
|
11425
11433
|
const isPredefinedColor = color => Object.keys(predefinedColorToHex).includes(color);
|
|
11426
11434
|
|
|
11427
11435
|
/**
|
|
@@ -11469,6 +11477,10 @@ const StyledPill = styled.div`
|
|
|
11469
11477
|
}
|
|
11470
11478
|
}
|
|
11471
11479
|
|
|
11480
|
+
.redsift-icon-button {
|
|
11481
|
+
width: ${$size === PillSize.xlarge ? css`30px` : $size === PillSize.large ? css`24px` : css`22px`};
|
|
11482
|
+
}
|
|
11483
|
+
|
|
11472
11484
|
.redsift-button-link {
|
|
11473
11485
|
height: ${$size === PillSize.xlarge ? css`18px` : $size === PillSize.large ? css`12px` : css`10px`};
|
|
11474
11486
|
}
|
|
@@ -11527,7 +11539,7 @@ const StyledPill = styled.div`
|
|
|
11527
11539
|
.redsift-icon-button:hover,
|
|
11528
11540
|
.redsift-button:hover,
|
|
11529
11541
|
.redsift-button-link:hover {
|
|
11530
|
-
background-color: ${$hoverColor !== null && $hoverColor !== void 0 ? $hoverColor :
|
|
11542
|
+
background-color: ${$hoverColor !== null && $hoverColor !== void 0 ? $hoverColor : pickHoverColorBasedOnBgColorAdvanced($color !== null && $color !== void 0 ? $color : RedsiftColorNeutralWhite)};
|
|
11531
11543
|
}
|
|
11532
11544
|
`;
|
|
11533
11545
|
}};
|
|
@@ -11610,25 +11622,33 @@ const StyledPill = styled.div`
|
|
|
11610
11622
|
`;
|
|
11611
11623
|
}};
|
|
11612
11624
|
|
|
11625
|
+
.redsift-icon {
|
|
11626
|
+
font-size: ${_ref5 => {
|
|
11627
|
+
let {
|
|
11628
|
+
$size
|
|
11629
|
+
} = _ref5;
|
|
11630
|
+
return $size === PillSize.xlarge ? '15px' : $size === PillSize.large ? '12px' : '12px';
|
|
11631
|
+
}};
|
|
11632
|
+
}
|
|
11633
|
+
|
|
11613
11634
|
&,
|
|
11614
|
-
.redsift-icon,
|
|
11615
11635
|
.redsift-text,
|
|
11616
11636
|
.redsift-number,
|
|
11617
11637
|
.first,
|
|
11618
11638
|
.middle,
|
|
11619
11639
|
.last {
|
|
11620
11640
|
font-family: var(--redsift-typography-pill-font-family);
|
|
11621
|
-
font-size: ${
|
|
11641
|
+
font-size: ${_ref6 => {
|
|
11622
11642
|
let {
|
|
11623
11643
|
$size
|
|
11624
|
-
} =
|
|
11644
|
+
} = _ref6;
|
|
11625
11645
|
return $size === PillSize.xlarge ? '15px' : $size === PillSize.large ? '12px' : '10px';
|
|
11626
11646
|
}};
|
|
11627
11647
|
font-weight: var(--redsift-typography-pill-font-weight);
|
|
11628
|
-
line-height: ${
|
|
11648
|
+
line-height: ${_ref7 => {
|
|
11629
11649
|
let {
|
|
11630
11650
|
$size
|
|
11631
|
-
} =
|
|
11651
|
+
} = _ref7;
|
|
11632
11652
|
return $size === PillSize.xlarge ? '28px' : $size === PillSize.large ? css`var(--redsift-typography-chip-line-height)` : css`var(--redsift-typography-pill-line-height)`;
|
|
11633
11653
|
}};
|
|
11634
11654
|
}
|
|
@@ -11638,16 +11658,16 @@ const StyledPill = styled.div`
|
|
|
11638
11658
|
}
|
|
11639
11659
|
|
|
11640
11660
|
.redsift-icon {
|
|
11641
|
-
width: ${
|
|
11661
|
+
width: ${_ref8 => {
|
|
11642
11662
|
let {
|
|
11643
11663
|
$size
|
|
11644
|
-
} =
|
|
11664
|
+
} = _ref8;
|
|
11645
11665
|
return $size === PillSize.xlarge ? '17px' : $size === PillSize.large ? '14px' : '12px';
|
|
11646
11666
|
}};
|
|
11647
|
-
height: ${
|
|
11667
|
+
height: ${_ref9 => {
|
|
11648
11668
|
let {
|
|
11649
11669
|
$size
|
|
11650
|
-
} =
|
|
11670
|
+
} = _ref9;
|
|
11651
11671
|
return $size === PillSize.xlarge ? '17px' : $size === PillSize.large ? '14px' : '12px';
|
|
11652
11672
|
}};
|
|
11653
11673
|
|
|
@@ -11661,11 +11681,9 @@ const StyledPill = styled.div`
|
|
|
11661
11681
|
/**
|
|
11662
11682
|
* Component style.
|
|
11663
11683
|
*/
|
|
11664
|
-
const StyledNumber = styled(StyledText)
|
|
11665
|
-
font-family: var(--redsift-typography-font-family-poppins);
|
|
11666
|
-
`;
|
|
11684
|
+
const StyledNumber = styled(StyledText)``;
|
|
11667
11685
|
|
|
11668
|
-
const _excluded$
|
|
11686
|
+
const _excluded$m = ["as", "className", "color", "compactDisplay", "currency", "currencyDisplay", "currencySign", "fontSize", "fontFamily", "fontWeight", "lineHeight", "localeMatcher", "maximumFractionDigits", "maximumSignificantDigits", "minimumFractionDigits", "minimumIntegerDigits", "minimumSignificantDigits", "notation", "noWrap", "numberingSystem", "roundingIncrement", "roundingMode", "roundingPriority", "signDisplay", "theme", "trailingZeroDisplay", "type", "unit", "unitDisplay", "useGrouping", "value", "variant"];
|
|
11669
11687
|
const COMPONENT_NAME$l = 'Number';
|
|
11670
11688
|
const CLASSNAME$l = 'redsift-number';
|
|
11671
11689
|
|
|
@@ -11682,6 +11700,7 @@ const Number$1 = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11682
11700
|
currencyDisplay = 'symbol',
|
|
11683
11701
|
currencySign = 'standard',
|
|
11684
11702
|
fontSize,
|
|
11703
|
+
fontFamily,
|
|
11685
11704
|
fontWeight,
|
|
11686
11705
|
lineHeight,
|
|
11687
11706
|
localeMatcher = 'best fit',
|
|
@@ -11706,7 +11725,7 @@ const Number$1 = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11706
11725
|
value,
|
|
11707
11726
|
variant
|
|
11708
11727
|
} = props,
|
|
11709
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
11728
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$m);
|
|
11710
11729
|
const formatter = useNumberFormatter(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({
|
|
11711
11730
|
compactDisplay,
|
|
11712
11731
|
currency,
|
|
@@ -11750,6 +11769,7 @@ const Number$1 = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11750
11769
|
$color: color,
|
|
11751
11770
|
$lineHeight: lineHeight,
|
|
11752
11771
|
$fontSize: fontSize,
|
|
11772
|
+
$fontFamily: fontFamily,
|
|
11753
11773
|
$fontWeight: fontWeight,
|
|
11754
11774
|
$noWrap: noWrap,
|
|
11755
11775
|
$theme: theme,
|
|
@@ -11759,7 +11779,7 @@ const Number$1 = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11759
11779
|
Number$1.className = CLASSNAME$l;
|
|
11760
11780
|
Number$1.displayName = COMPONENT_NAME$l;
|
|
11761
11781
|
|
|
11762
|
-
const _excluded$
|
|
11782
|
+
const _excluded$l = ["autoBreak", "borderColor", "children", "className", "color", "disabledColor", "hoverColor", "isDisabled", "size", "theme"];
|
|
11763
11783
|
const COMPONENT_NAME$k = 'Pill';
|
|
11764
11784
|
const CLASSNAME$k = 'redsift-pill';
|
|
11765
11785
|
|
|
@@ -11779,7 +11799,7 @@ const Pill = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11779
11799
|
size: propsSize,
|
|
11780
11800
|
theme: propsTheme
|
|
11781
11801
|
} = props,
|
|
11782
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
11802
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$l);
|
|
11783
11803
|
const theme = useTheme(propsTheme);
|
|
11784
11804
|
const color = propsColor || PresentationColorPalette.blue;
|
|
11785
11805
|
const size = propsSize || PillSize.large;
|
|
@@ -11869,7 +11889,7 @@ const StyledDetailedCardSectionItem = styled.div`
|
|
|
11869
11889
|
}
|
|
11870
11890
|
`;
|
|
11871
11891
|
|
|
11872
|
-
const _excluded$
|
|
11892
|
+
const _excluded$k = ["children", "className", "description", "descriptionProps", "icon", "iconProps", "isLoading", "pill", "pillProps", "shield"];
|
|
11873
11893
|
const COMPONENT_NAME$j = 'DetailedCardSectionItem';
|
|
11874
11894
|
const CLASSNAME$j = 'redsift-detailed-card-section-item';
|
|
11875
11895
|
|
|
@@ -11889,7 +11909,7 @@ const DetailedCardSectionItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
11889
11909
|
pillProps,
|
|
11890
11910
|
shield
|
|
11891
11911
|
} = props,
|
|
11892
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
11912
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$k);
|
|
11893
11913
|
return /*#__PURE__*/React__default.createElement(StyledDetailedCardSectionItem, _extends$1({}, forwardedProps, {
|
|
11894
11914
|
className: classNames(DetailedCardSectionItem.className, className),
|
|
11895
11915
|
ref: ref
|
|
@@ -15488,34 +15508,6 @@ const useInteractions = function (propsList) {
|
|
|
15488
15508
|
}), [getReferenceProps, getFloatingProps, getItemProps]);
|
|
15489
15509
|
};
|
|
15490
15510
|
|
|
15491
|
-
const TooltipContext = /*#__PURE__*/React__default.createContext(null);
|
|
15492
|
-
|
|
15493
|
-
/**
|
|
15494
|
-
* Context props.
|
|
15495
|
-
*/
|
|
15496
|
-
|
|
15497
|
-
/**
|
|
15498
|
-
* Component variant.
|
|
15499
|
-
*/
|
|
15500
|
-
const TooltipPlacement = {
|
|
15501
|
-
top: 'top',
|
|
15502
|
-
right: 'right',
|
|
15503
|
-
bottom: 'bottom',
|
|
15504
|
-
left: 'left',
|
|
15505
|
-
'top-start': 'top-start',
|
|
15506
|
-
'top-end': 'top-end',
|
|
15507
|
-
'right-start': 'right-start',
|
|
15508
|
-
'right-end': 'right-end',
|
|
15509
|
-
'bottom-start': 'bottom-start',
|
|
15510
|
-
'bottom-end': 'bottom-end',
|
|
15511
|
-
'left-start': 'left-start',
|
|
15512
|
-
'left-end': 'left-end'
|
|
15513
|
-
};
|
|
15514
|
-
|
|
15515
|
-
/**
|
|
15516
|
-
* Component props.
|
|
15517
|
-
*/
|
|
15518
|
-
|
|
15519
15511
|
/**
|
|
15520
15512
|
* Component style.
|
|
15521
15513
|
*/
|
|
@@ -15745,6 +15737,34 @@ const TooltipTrigger = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
15745
15737
|
TooltipTrigger.className = CLASSNAME$h;
|
|
15746
15738
|
TooltipTrigger.displayName = COMPONENT_NAME$h;
|
|
15747
15739
|
|
|
15740
|
+
const TooltipContext = /*#__PURE__*/React__default.createContext(null);
|
|
15741
|
+
|
|
15742
|
+
/**
|
|
15743
|
+
* Context props.
|
|
15744
|
+
*/
|
|
15745
|
+
|
|
15746
|
+
/**
|
|
15747
|
+
* Component variant.
|
|
15748
|
+
*/
|
|
15749
|
+
const TooltipPlacement = {
|
|
15750
|
+
top: 'top',
|
|
15751
|
+
right: 'right',
|
|
15752
|
+
bottom: 'bottom',
|
|
15753
|
+
left: 'left',
|
|
15754
|
+
'top-start': 'top-start',
|
|
15755
|
+
'top-end': 'top-end',
|
|
15756
|
+
'right-start': 'right-start',
|
|
15757
|
+
'right-end': 'right-end',
|
|
15758
|
+
'bottom-start': 'bottom-start',
|
|
15759
|
+
'bottom-end': 'bottom-end',
|
|
15760
|
+
'left-start': 'left-start',
|
|
15761
|
+
'left-end': 'left-end'
|
|
15762
|
+
};
|
|
15763
|
+
|
|
15764
|
+
/**
|
|
15765
|
+
* Component props.
|
|
15766
|
+
*/
|
|
15767
|
+
|
|
15748
15768
|
function useTooltip(_ref) {
|
|
15749
15769
|
let {
|
|
15750
15770
|
color,
|
|
@@ -15810,42 +15830,6 @@ function useTooltip(_ref) {
|
|
|
15810
15830
|
}), [color, isOpen, handleOpen, interactions, data, arrowRef, tooltipId, triggerClassName]);
|
|
15811
15831
|
}
|
|
15812
15832
|
|
|
15813
|
-
const _excluded$l = ["tooltip", "tooltipProps", "tooltipTriggerProps", "tooltipContentProps"];
|
|
15814
|
-
const IconButtonWithTooltip = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
15815
|
-
let {
|
|
15816
|
-
tooltip,
|
|
15817
|
-
tooltipProps,
|
|
15818
|
-
tooltipTriggerProps,
|
|
15819
|
-
tooltipContentProps
|
|
15820
|
-
} = _ref,
|
|
15821
|
-
props = _objectWithoutProperties(_ref, _excluded$l);
|
|
15822
|
-
return /*#__PURE__*/React__default.createElement(Tooltip, tooltipProps, /*#__PURE__*/React__default.createElement(Tooltip.Trigger, tooltipTriggerProps, /*#__PURE__*/React__default.createElement(IconButton, _extends$1({
|
|
15823
|
-
"aria-label": tooltip
|
|
15824
|
-
}, props, {
|
|
15825
|
-
"aria-describedby": undefined,
|
|
15826
|
-
ref: ref
|
|
15827
|
-
}))), /*#__PURE__*/React__default.createElement(Tooltip.Content, tooltipContentProps, tooltip));
|
|
15828
|
-
});
|
|
15829
|
-
IconButtonWithTooltip.displayName = 'IconButton';
|
|
15830
|
-
|
|
15831
|
-
const _excluded$k = ["tooltip", "tooltipProps", "tooltipTriggerProps", "tooltipContentProps"];
|
|
15832
|
-
const ButtonWithTooltip = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
15833
|
-
let {
|
|
15834
|
-
tooltip,
|
|
15835
|
-
tooltipProps,
|
|
15836
|
-
tooltipTriggerProps,
|
|
15837
|
-
tooltipContentProps
|
|
15838
|
-
} = _ref,
|
|
15839
|
-
props = _objectWithoutProperties(_ref, _excluded$k);
|
|
15840
|
-
return /*#__PURE__*/React__default.createElement(Tooltip, tooltipProps, /*#__PURE__*/React__default.createElement(Tooltip.Trigger, tooltipTriggerProps, /*#__PURE__*/React__default.createElement(Button, _extends$1({
|
|
15841
|
-
"aria-label": tooltip
|
|
15842
|
-
}, props, {
|
|
15843
|
-
"aria-describedby": undefined,
|
|
15844
|
-
ref: ref
|
|
15845
|
-
}))), /*#__PURE__*/React__default.createElement(Tooltip.Content, tooltipContentProps, tooltip));
|
|
15846
|
-
});
|
|
15847
|
-
ButtonWithTooltip.displayName = 'Button';
|
|
15848
|
-
|
|
15849
15833
|
const COMPONENT_NAME$g = 'Tooltip';
|
|
15850
15834
|
const CLASSNAME$g = 'redsift-tooltip';
|
|
15851
15835
|
|
|
@@ -15890,10 +15874,7 @@ BaseTooltip.className = CLASSNAME$g;
|
|
|
15890
15874
|
BaseTooltip.displayName = COMPONENT_NAME$g;
|
|
15891
15875
|
const Tooltip = Object.assign(BaseTooltip, {
|
|
15892
15876
|
Trigger: TooltipTrigger,
|
|
15893
|
-
Content: TooltipContent
|
|
15894
|
-
Button: ButtonWithTooltip,
|
|
15895
|
-
IconButton: IconButtonWithTooltip,
|
|
15896
|
-
IconButtonLink: IconButtonWithTooltip
|
|
15877
|
+
Content: TooltipContent
|
|
15897
15878
|
});
|
|
15898
15879
|
|
|
15899
15880
|
const useTooltipContext = () => {
|
|
@@ -16928,7 +16909,7 @@ const IconButtonLink = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
16928
16909
|
forwardedProps = _objectWithoutProperties(props, _excluded$g);
|
|
16929
16910
|
const theme = useTheme(propsTheme);
|
|
16930
16911
|
const color = Object.values(ButtonsColorPalette).includes(propsColor) ? propsColor : 'primary';
|
|
16931
|
-
const variant = Object.values(IconButtonVariant).includes(propsVariant) ? propsVariant : '
|
|
16912
|
+
const variant = Object.values(IconButtonVariant).includes(propsVariant) ? propsVariant : 'unstyled';
|
|
16932
16913
|
const isGradient = color === ButtonsColorPalette.radar;
|
|
16933
16914
|
return /*#__PURE__*/React__default.createElement(ConditionalWrapper, {
|
|
16934
16915
|
condition: isGradient && variant === IconButtonVariant.secondary,
|