@redis-ui/components 37.0.0 → 38.0.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/AppSelectionMenu/components/Item/Item.cjs +1 -3
- package/dist/AppSelectionMenu/components/Item/Item.js +2 -4
- package/dist/AppSelectionMenu/components/Item/Item.styles.cjs +6 -0
- package/dist/AppSelectionMenu/components/Item/Item.styles.d.ts +1 -0
- package/dist/AppSelectionMenu/components/Item/Item.styles.js +7 -1
- package/dist/AutoCompleteSelect/AutoCompleteSelect.style.d.ts +1 -1
- package/dist/Banner/components/Message/Message.style.d.ts +1 -1
- package/dist/Checkbox/components/Label/Label.style.d.ts +1 -1
- package/dist/ChipList/Components/ExtraItem.style.d.ts +1 -1
- package/dist/Drawer/components/Header/components/Title/Title.style.d.ts +1 -1
- package/dist/Filters/components/MultiSelectFilter/MultiSelectFilter.styles.d.ts +1 -1
- package/dist/FormField/FormField.d.ts +1 -1
- package/dist/FormField/components/AdditionalText/AdditionalText.style.d.ts +1 -1
- package/dist/Inputs/Input/Input.d.ts +1 -1
- package/dist/Inputs/NumericInput/NumericInput.d.ts +1 -1
- package/dist/Inputs/QuantityCounter/QuantityCounter.d.ts +1 -1
- package/dist/Inputs/QuantityCounter/components/InputGroup/components/ValueLabel/ValueLabel.style.d.ts +1 -1
- package/dist/Inputs/TextArea/TextArea.d.ts +1 -1
- package/dist/Inputs/TextArea/components/Compose/Compose.style.d.ts +1 -1
- package/dist/Inputs/components/Compose/Compose.style.d.ts +1 -1
- package/dist/Label/Label.d.ts +1 -1
- package/dist/Label/components/InfoIcon/InfoIcon.cjs +1 -5
- package/dist/Label/components/InfoIcon/InfoIcon.d.ts +1 -1
- package/dist/Label/components/InfoIcon/InfoIcon.js +1 -5
- package/dist/Label/components/InfoIcon/InfoIcon.types.d.ts +0 -2
- package/dist/Label/components/Optional/Optional.style.cjs +1 -6
- package/dist/Label/components/Optional/Optional.style.d.ts +1 -1
- package/dist/Label/components/Optional/Optional.style.js +1 -6
- package/dist/Label/components/Required/Required.style.cjs +1 -6
- package/dist/Label/components/Required/Required.style.d.ts +1 -1
- package/dist/Label/components/Required/Required.style.js +1 -6
- package/dist/Label/components/Text/Text.style.cjs +1 -2
- package/dist/Label/components/Text/Text.style.d.ts +1 -1
- package/dist/Label/components/Text/Text.style.js +1 -2
- package/dist/Link/Link.style.d.ts +1 -1
- package/dist/Menu/Menu.d.ts +1 -1
- package/dist/Menu/components/Content/Content.d.ts +1 -1
- package/dist/Menu/components/Content/components/DropdownArrow/DropdownArrow.cjs +1 -2
- package/dist/Menu/components/Content/components/DropdownArrow/DropdownArrow.d.ts +1 -1
- package/dist/Menu/components/Content/components/DropdownArrow/DropdownArrow.js +1 -2
- package/dist/Menu/components/Content/components/DropdownArrow/DropdownArrow.types.d.ts +0 -2
- package/dist/Menu/components/Content/components/Item/Components/SubHead/SubHead.style.cjs +1 -6
- package/dist/Menu/components/Content/components/Item/Components/SubHead/SubHead.style.d.ts +1 -1
- package/dist/Menu/components/Content/components/Item/Components/SubHead/SubHead.style.js +1 -6
- package/dist/Menu/components/Content/components/Item/Components/Text/Text.style.d.ts +1 -1
- package/dist/Menu/components/Content/components/Label/Label.style.d.ts +1 -1
- package/dist/Modal/components/Content/components/Body/components/Text/Text.style.d.ts +1 -1
- package/dist/Modal/components/Content/components/Header/components/Title/Title.style.d.ts +1 -1
- package/dist/Popover/Popover.d.ts +6 -6
- package/dist/Popover/components/Content/Content.cjs +1 -4
- package/dist/Popover/components/Content/Content.d.ts +3 -3
- package/dist/Popover/components/Content/Content.js +1 -4
- package/dist/Popover/components/Content/Content.types.d.ts +0 -2
- package/dist/Popover/components/Content/components/Body/Body.cjs +0 -2
- package/dist/Popover/components/Content/components/Body/Body.d.ts +1 -1
- package/dist/Popover/components/Content/components/Body/Body.js +0 -2
- package/dist/Popover/components/Content/components/Body/Body.types.d.ts +0 -2
- package/dist/Popover/components/Content/components/Body/components/BodyText/BodyText.styles.cjs +1 -6
- package/dist/Popover/components/Content/components/Body/components/BodyText/BodyText.styles.d.ts +1 -1
- package/dist/Popover/components/Content/components/Body/components/BodyText/BodyText.styles.js +1 -6
- package/dist/Popover/components/Content/components/Compose/Compose.cjs +1 -1
- package/dist/Popover/components/Content/components/Compose/Compose.js +1 -1
- package/dist/Popover/components/Content/components/Compose/Compose.style.cjs +1 -1
- package/dist/Popover/components/Content/components/Compose/Compose.style.d.ts +1 -1
- package/dist/Popover/components/Content/components/Compose/Compose.style.js +1 -1
- package/dist/Popover/components/Content/components/Compose/Compose.types.d.ts +1 -2
- package/dist/Popover/components/Content/components/Header/components/HeaderTitle/HeaderTitle.styles.d.ts +1 -1
- package/dist/Popover/components/Content/components/Text/Text.styles.cjs +1 -6
- package/dist/Popover/components/Content/components/Text/Text.styles.d.ts +1 -1
- package/dist/Popover/components/Content/components/Text/Text.styles.js +1 -6
- package/dist/Popover/components/Content/components/WindowBar/WindowBar.d.ts +1 -1
- package/dist/Popover/components/Content/components/WindowBar/WindowBar.style.d.ts +1 -1
- package/dist/Popover/components/PopoverCard/PopoverCard.cjs +1 -3
- package/dist/Popover/components/PopoverCard/PopoverCard.d.ts +3 -3
- package/dist/Popover/components/PopoverCard/PopoverCard.js +1 -3
- package/dist/Popover/components/PopoverCard/PopoverCard.types.d.ts +1 -1
- package/dist/ProgressBar/ProgressBar.cjs +1 -3
- package/dist/ProgressBar/ProgressBar.js +2 -4
- package/dist/ProgressBar/ProgressBar.styles.cjs +6 -0
- package/dist/ProgressBar/ProgressBar.styles.d.ts +1 -0
- package/dist/ProgressBar/ProgressBar.styles.js +7 -1
- package/dist/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/RadioGroup/components/Item/components/Label/Label.style.cjs +1 -1
- package/dist/RadioGroup/components/Item/components/Label/Label.style.js +1 -1
- package/dist/Section/components/Header/components/CategoryValueList/CategoryValueList.cjs +1 -3
- package/dist/Section/components/Header/components/CategoryValueList/CategoryValueList.js +2 -4
- package/dist/Section/components/Header/components/CategoryValueList/CategoryValueList.style.cjs +6 -0
- package/dist/Section/components/Header/components/CategoryValueList/CategoryValueList.style.d.ts +1 -0
- package/dist/Section/components/Header/components/CategoryValueList/CategoryValueList.style.js +7 -1
- package/dist/Section/components/Header/components/CategoryValueList/components/CategoryValueChip/CategoryValueChip.cjs +1 -4
- package/dist/Section/components/Header/components/CategoryValueList/components/CategoryValueChip/CategoryValueChip.js +2 -5
- package/dist/Section/components/Header/components/CategoryValueList/components/CategoryValueChip/CategoryValueChip.style.cjs +6 -1
- package/dist/Section/components/Header/components/CategoryValueList/components/CategoryValueChip/CategoryValueChip.style.d.ts +2 -1
- package/dist/Section/components/Header/components/CategoryValueList/components/CategoryValueChip/CategoryValueChip.style.js +7 -2
- package/dist/Section/components/Header/components/Label/Label.style.d.ts +1 -1
- package/dist/SideBar/components/Footer/components/Text/Text.style.d.ts +1 -1
- package/dist/SideBar/components/Item/components/Text/Text.style.d.ts +1 -1
- package/dist/Switch/components/Title/Title.style.d.ts +1 -1
- package/dist/Toast/components/Content/components/Description/Description.style.d.ts +1 -1
- package/dist/Toast/components/Content/components/Message/Message.style.d.ts +1 -1
- package/dist/Tooltip/Tooltip.d.ts +3 -3
- package/dist/Tooltip/components/Content/Content.cjs +1 -3
- package/dist/Tooltip/components/Content/Content.d.ts +1 -1
- package/dist/Tooltip/components/Content/Content.js +1 -3
- package/dist/Tooltip/components/Content/Content.types.d.ts +0 -2
- package/dist/Tooltip/components/Content/components/Compose/Compose.style.cjs +1 -1
- package/dist/Tooltip/components/Content/components/Compose/Compose.style.d.ts +1 -1
- package/dist/Tooltip/components/Content/components/Compose/Compose.style.js +1 -1
- package/dist/Tooltip/components/Content/components/Compose/Compose.types.d.ts +1 -2
- package/dist/Tooltip/components/Content/components/Text/Text.styles.cjs +1 -6
- package/dist/Tooltip/components/Content/components/Text/Text.styles.d.ts +1 -1
- package/dist/Tooltip/components/Content/components/Text/Text.styles.js +1 -6
- package/dist/Tooltip/components/TooltipCard/TooltipCard.cjs +1 -3
- package/dist/Tooltip/components/TooltipCard/TooltipCard.d.ts +2 -2
- package/dist/Tooltip/components/TooltipCard/TooltipCard.js +1 -3
- package/dist/Tooltip/components/TooltipCard/TooltipCard.types.d.ts +1 -1
- package/dist/TreeView/components/TreeItem/components/Checkbox/Checkbox.style.d.ts +1 -1
- package/dist/Typography/Typography.d.ts +3 -3
- package/dist/Typography/components/Body/Body.cjs +0 -2
- package/dist/Typography/components/Body/Body.d.ts +1 -1
- package/dist/Typography/components/Body/Body.js +0 -2
- package/dist/Typography/components/Body/Body.style.cjs +0 -2
- package/dist/Typography/components/Body/Body.style.d.ts +1 -1
- package/dist/Typography/components/Body/Body.style.js +0 -2
- package/dist/Typography/components/Body/Body.types.d.ts +0 -3
- package/dist/Typography/components/Code/Code.cjs +0 -2
- package/dist/Typography/components/Code/Code.d.ts +1 -1
- package/dist/Typography/components/Code/Code.js +0 -2
- package/dist/Typography/components/Code/Code.style.cjs +0 -2
- package/dist/Typography/components/Code/Code.style.js +0 -2
- package/dist/Typography/components/Code/Code.types.d.ts +0 -3
- package/dist/Typography/components/Heading/Heading.cjs +0 -2
- package/dist/Typography/components/Heading/Heading.d.ts +1 -1
- package/dist/Typography/components/Heading/Heading.js +0 -2
- package/dist/Typography/components/Heading/Heading.style.cjs +0 -2
- package/dist/Typography/components/Heading/Heading.style.d.ts +1 -2
- package/dist/Typography/components/Heading/Heading.style.js +0 -2
- package/dist/Typography/components/Heading/Heading.types.d.ts +0 -2
- package/package.json +2 -2
|
@@ -17,7 +17,6 @@ const Content = Object.assign(({
|
|
|
17
17
|
link,
|
|
18
18
|
linkText,
|
|
19
19
|
windowBar,
|
|
20
|
-
textColor,
|
|
21
20
|
content,
|
|
22
21
|
...contentOptions
|
|
23
22
|
}) => {
|
|
@@ -30,7 +29,6 @@ const Content = Object.assign(({
|
|
|
30
29
|
windowBar,
|
|
31
30
|
title,
|
|
32
31
|
text,
|
|
33
|
-
textColor,
|
|
34
32
|
actionButtonText,
|
|
35
33
|
actionButtonHandler,
|
|
36
34
|
link,
|
|
@@ -42,8 +40,7 @@ const Content = Object.assign(({
|
|
|
42
40
|
if (!content) return null;
|
|
43
41
|
return jsxRuntime.jsxRuntimeExports.jsx(Content.Compose, {
|
|
44
42
|
...contentOptions,
|
|
45
|
-
children: typeof content === "string"
|
|
46
|
-
color: textColor,
|
|
43
|
+
children: typeof content === "string" ? jsxRuntime.jsxRuntimeExports.jsx(Content.Text, {
|
|
47
44
|
children: content
|
|
48
45
|
}) : content
|
|
49
46
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { PopoverContentProps } from './Content.types';
|
|
3
|
-
declare const Content: (({ title, text, actionButtonText, actionButtonHandler, link, linkText, windowBar,
|
|
3
|
+
declare const Content: (({ title, text, actionButtonText, actionButtonHandler, link, linkText, windowBar, content, ...contentOptions }: PopoverContentProps) => import("react/jsx-runtime").JSX.Element | null) & {
|
|
4
4
|
Compose: ({ children, backgroundColor, placement, sideOffset, onClickOutside, persistent, align, maxWidth, portal, ...restProps }: import("./components/Compose/Compose.types").PopoverContentComposeProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
Text: (props: import("../../../Typography/components/Body/Body.types").BodyProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
Close: ({ children, icon, ...buttonProps }: import("./components/Close/Close.types").PopoverCloseProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -10,7 +10,7 @@ declare const Content: (({ title, text, actionButtonText, actionButtonHandler, l
|
|
|
10
10
|
Title: ({ children, ...restProps }: import("../../../Typography/components/Heading/Heading.types").HeadingProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
};
|
|
12
12
|
/** @deprecated use Popover.Card instead */
|
|
13
|
-
Body: (({ text,
|
|
13
|
+
Body: (({ text, ...restProps }: import("./components/Body/Body.types").ContentBodyProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
14
14
|
Compose: (props: import("./components/Body/components/Compose/Compose.types").ContentBodyComposeProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
Text: (props: import("../../../Typography/components/Body/Body.types").BodyProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
};
|
|
@@ -23,7 +23,7 @@ declare const Content: (({ title, text, actionButtonText, actionButtonHandler, l
|
|
|
23
23
|
Compose: (props: import("./components/WindowBar/components/Compose/Compose.types").WindowBarComposeProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
24
|
Close: ({ children, icon, ...buttonProps }: import("./components/Close/Close.types").PopoverCloseProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
25
|
Icon: ({ icon, variant, ...props }: import("../../../Badge/BadgeIcon").BadgeIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
-
Heading: import("styled-components").StyledComponent<({ size,
|
|
26
|
+
Heading: import("styled-components").StyledComponent<({ size, ellipsis, ...restProps }: import("../../../Typography/components/Heading/Heading.types").HeadingProps) => import("react/jsx-runtime").JSX.Element, any, {}, never>;
|
|
27
27
|
Header: import("react").FC<import("./components/WindowBar/components/Header/Header.types").WindowBarHeaderProps>;
|
|
28
28
|
};
|
|
29
29
|
};
|
|
@@ -15,7 +15,6 @@ const Content = Object.assign(({
|
|
|
15
15
|
link,
|
|
16
16
|
linkText,
|
|
17
17
|
windowBar,
|
|
18
|
-
textColor,
|
|
19
18
|
content,
|
|
20
19
|
...contentOptions
|
|
21
20
|
}) => {
|
|
@@ -28,7 +27,6 @@ const Content = Object.assign(({
|
|
|
28
27
|
windowBar,
|
|
29
28
|
title,
|
|
30
29
|
text,
|
|
31
|
-
textColor,
|
|
32
30
|
actionButtonText,
|
|
33
31
|
actionButtonHandler,
|
|
34
32
|
link,
|
|
@@ -40,8 +38,7 @@ const Content = Object.assign(({
|
|
|
40
38
|
if (!content) return null;
|
|
41
39
|
return jsxRuntimeExports.jsx(Content.Compose, {
|
|
42
40
|
...contentOptions,
|
|
43
|
-
children: typeof content === "string"
|
|
44
|
-
color: textColor,
|
|
41
|
+
children: typeof content === "string" ? jsxRuntimeExports.jsx(Content.Text, {
|
|
45
42
|
children: content
|
|
46
43
|
}) : content
|
|
47
44
|
});
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { Theme } from '@redislabsdev/redis-ui-styles';
|
|
3
2
|
import { ContentHeaderProps } from './components/Header/Header.types';
|
|
4
3
|
import { WindowBarProps } from './components/WindowBar/WindowBar.types';
|
|
5
4
|
import { ContentBodyProps } from './components/Body/Body.types';
|
|
@@ -7,7 +6,6 @@ import { ContentFooterProps } from './components/Footer/Footer.types';
|
|
|
7
6
|
import { PopoverContentComposeProps } from './components/Compose/Compose.types';
|
|
8
7
|
export interface PopoverContentProps extends Omit<PopoverContentComposeProps, 'children' | 'title'> {
|
|
9
8
|
content?: ReactNode;
|
|
10
|
-
textColor?: keyof Theme['semantic']['color']['text'];
|
|
11
9
|
/** @deprecated use `Popover.Card` instead */
|
|
12
10
|
windowBar?: WindowBarProps;
|
|
13
11
|
/** @deprecated use `Popover.Card` instead */
|
|
@@ -5,13 +5,11 @@ const Compose = require("./components/Compose/Compose.cjs");
|
|
|
5
5
|
const BodyText = require("./components/BodyText/BodyText.cjs");
|
|
6
6
|
const Body = Object.assign(({
|
|
7
7
|
text,
|
|
8
|
-
textColor,
|
|
9
8
|
...restProps
|
|
10
9
|
}) => {
|
|
11
10
|
return jsxRuntime.jsxRuntimeExports.jsx(Body.Compose, {
|
|
12
11
|
...restProps,
|
|
13
12
|
children: jsxRuntime.jsxRuntimeExports.jsx(Body.Text, {
|
|
14
|
-
color: textColor,
|
|
15
13
|
children: text
|
|
16
14
|
})
|
|
17
15
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ContentBodyProps } from './Body.types';
|
|
2
|
-
declare const Body: (({ text,
|
|
2
|
+
declare const Body: (({ text, ...restProps }: ContentBodyProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
3
3
|
Compose: (props: import("./components/Compose/Compose.types").ContentBodyComposeProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
Text: (props: import("../../../../../Typography/components/Body/Body.types").BodyProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
};
|
|
@@ -3,13 +3,11 @@ import Compose from "./components/Compose/Compose.js";
|
|
|
3
3
|
import BodyText from "./components/BodyText/BodyText.js";
|
|
4
4
|
const Body = Object.assign(({
|
|
5
5
|
text,
|
|
6
|
-
textColor,
|
|
7
6
|
...restProps
|
|
8
7
|
}) => {
|
|
9
8
|
return jsxRuntimeExports.jsx(Body.Compose, {
|
|
10
9
|
...restProps,
|
|
11
10
|
children: jsxRuntimeExports.jsx(Body.Text, {
|
|
12
|
-
color: textColor,
|
|
13
11
|
children: text
|
|
14
12
|
})
|
|
15
13
|
});
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { Theme } from '@redislabsdev/redis-ui-styles';
|
|
2
1
|
import { ContentBodyComposeProps } from './components/Compose/Compose.types';
|
|
3
2
|
export interface ContentBodyProps extends ContentBodyComposeProps {
|
|
4
3
|
text?: string;
|
|
5
|
-
textColor?: keyof Theme['semantic']['color']['text'];
|
|
6
4
|
}
|
package/dist/Popover/components/Content/components/Body/components/BodyText/BodyText.styles.cjs
CHANGED
|
@@ -8,10 +8,5 @@ const _styled__default = /* @__PURE__ */ _interopDefault(_styled);
|
|
|
8
8
|
const HeaderTitle = _styled__default.default(Typography.default.Body).withConfig({
|
|
9
9
|
displayName: "BodyTextstyles__HeaderTitle",
|
|
10
10
|
componentId: "RedisUI__sc-27g2ne-0"
|
|
11
|
-
})(["color:", ";"], (
|
|
12
|
-
color
|
|
13
|
-
}) => {
|
|
14
|
-
const theme = redisUiStyles.useTheme().components.popupCard.body;
|
|
15
|
-
return color ? void 0 : theme.textColor;
|
|
16
|
-
});
|
|
11
|
+
})(["color:", ";"], () => redisUiStyles.useTheme().components.popupCard.body.textColor);
|
|
17
12
|
exports.HeaderTitle = HeaderTitle;
|
package/dist/Popover/components/Content/components/Body/components/BodyText/BodyText.styles.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const HeaderTitle: import("styled-components").StyledComponent<({ size, variant, component,
|
|
1
|
+
export declare const HeaderTitle: import("styled-components").StyledComponent<({ size, variant, component, ellipsis, ...restProps }: import("../../../../../../../Typography/components/Body/Body.types").BodyProps) => import("react/jsx-runtime").JSX.Element, any, {}, never>;
|
package/dist/Popover/components/Content/components/Body/components/BodyText/BodyText.styles.js
CHANGED
|
@@ -4,12 +4,7 @@ import Typography from "../../../../../../../Typography/Typography.js";
|
|
|
4
4
|
const HeaderTitle = _styled(Typography.Body).withConfig({
|
|
5
5
|
displayName: "BodyTextstyles__HeaderTitle",
|
|
6
6
|
componentId: "RedisUI__sc-27g2ne-0"
|
|
7
|
-
})(["color:", ";"], (
|
|
8
|
-
color
|
|
9
|
-
}) => {
|
|
10
|
-
const theme = useTheme().components.popupCard.body;
|
|
11
|
-
return color ? void 0 : theme.textColor;
|
|
12
|
-
});
|
|
7
|
+
})(["color:", ";"], () => useTheme().components.popupCard.body.textColor);
|
|
13
8
|
export {
|
|
14
9
|
HeaderTitle
|
|
15
10
|
};
|
|
@@ -25,8 +25,8 @@ const Compose = ({
|
|
|
25
25
|
};
|
|
26
26
|
const renderContent = jsxRuntime.jsxRuntimeExports.jsxs(Compose_style.Content, {
|
|
27
27
|
onInteractOutside: handleInteractOutside,
|
|
28
|
-
"$backgroundColor": backgroundColor,
|
|
29
28
|
"$maxWidth": maxWidth,
|
|
29
|
+
"$backgroundColor": backgroundColor,
|
|
30
30
|
sideOffset,
|
|
31
31
|
side: placement,
|
|
32
32
|
align,
|
|
@@ -23,8 +23,8 @@ const Compose = ({
|
|
|
23
23
|
};
|
|
24
24
|
const renderContent = jsxRuntimeExports.jsxs(Content, {
|
|
25
25
|
onInteractOutside: handleInteractOutside,
|
|
26
|
-
"$backgroundColor": backgroundColor,
|
|
27
26
|
"$maxWidth": maxWidth,
|
|
27
|
+
"$backgroundColor": backgroundColor,
|
|
28
28
|
sideOffset,
|
|
29
29
|
side: placement,
|
|
30
30
|
align,
|
|
@@ -26,7 +26,7 @@ const Content = _styled__default.default(index.Content).withConfig({
|
|
|
26
26
|
}) => {
|
|
27
27
|
const theme = redisUiStyles.useTheme();
|
|
28
28
|
const popoverTheme = theme.components.popover;
|
|
29
|
-
const bgColor = $backgroundColor
|
|
29
|
+
const bgColor = $backgroundColor || popoverTheme.bgColor;
|
|
30
30
|
return _styled.css`
|
|
31
31
|
background-color: ${bgColor};
|
|
32
32
|
${Arrow} {
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
import * as RadixPopover from '@radix-ui/react-popover';
|
|
3
3
|
export declare const Arrow: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<RadixPopover.PopoverArrowProps & import("react").RefAttributes<SVGSVGElement>>, any, {}, never>;
|
|
4
4
|
export declare const Content: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<RadixPopover.PopoverContentProps & import("react").RefAttributes<HTMLDivElement>>, any, {
|
|
5
|
-
$backgroundColor?:
|
|
5
|
+
$backgroundColor?: string | undefined;
|
|
6
6
|
$maxWidth?: string | undefined;
|
|
7
7
|
}, never>;
|
|
@@ -22,7 +22,7 @@ const Content = _styled(Content2).withConfig({
|
|
|
22
22
|
}) => {
|
|
23
23
|
const theme = useTheme();
|
|
24
24
|
const popoverTheme = theme.components.popover;
|
|
25
|
-
const bgColor = $backgroundColor
|
|
25
|
+
const bgColor = $backgroundColor || popoverTheme.bgColor;
|
|
26
26
|
return css`
|
|
27
27
|
background-color: ${bgColor};
|
|
28
28
|
${Arrow} {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import * as RadixPopover from '@radix-ui/react-popover';
|
|
2
|
-
import { Theme } from '@redislabsdev/redis-ui-styles';
|
|
3
2
|
import { ComposeElementProps } from '../../../../../Helpers/common.types';
|
|
4
3
|
export type PopoverPlacement = 'top' | 'bottom' | 'left' | 'right';
|
|
5
4
|
export type PopoverAlign = 'start' | 'center' | 'end';
|
|
6
5
|
export interface PopoverContentComposeProps extends ComposeElementProps {
|
|
7
|
-
backgroundColor?:
|
|
6
|
+
backgroundColor?: string;
|
|
8
7
|
placement?: PopoverPlacement;
|
|
9
8
|
sideOffset?: number;
|
|
10
9
|
persistent?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const HeaderTitle: import("styled-components").StyledComponent<({ size,
|
|
1
|
+
export declare const HeaderTitle: import("styled-components").StyledComponent<({ size, ellipsis, ...restProps }: import("../../../../../../../Typography/components/Heading/Heading.types").HeadingProps) => import("react/jsx-runtime").JSX.Element, any, {}, never>;
|
|
@@ -8,10 +8,5 @@ const _styled__default = /* @__PURE__ */ _interopDefault(_styled);
|
|
|
8
8
|
const Text = _styled__default.default(Typography.default.Body).withConfig({
|
|
9
9
|
displayName: "Textstyles__Text",
|
|
10
10
|
componentId: "RedisUI__sc-myum25-0"
|
|
11
|
-
})(["color:", ";"], (
|
|
12
|
-
color
|
|
13
|
-
}) => {
|
|
14
|
-
const theme = redisUiStyles.useTheme().components.tooltip;
|
|
15
|
-
return color ? void 0 : theme.textColor;
|
|
16
|
-
});
|
|
11
|
+
})(["color:", ";"], () => redisUiStyles.useTheme().components.tooltip.textColor);
|
|
17
12
|
exports.Text = Text;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const Text: import("styled-components").StyledComponent<({ size, variant, component,
|
|
1
|
+
export declare const Text: import("styled-components").StyledComponent<({ size, variant, component, ellipsis, ...restProps }: import("../../../../../Typography/components/Body/Body.types").BodyProps) => import("react/jsx-runtime").JSX.Element, any, {}, never>;
|
|
@@ -4,12 +4,7 @@ import Typography from "../../../../../Typography/Typography.js";
|
|
|
4
4
|
const Text = _styled(Typography.Body).withConfig({
|
|
5
5
|
displayName: "Textstyles__Text",
|
|
6
6
|
componentId: "RedisUI__sc-myum25-0"
|
|
7
|
-
})(["color:", ";"], (
|
|
8
|
-
color
|
|
9
|
-
}) => {
|
|
10
|
-
const theme = useTheme().components.tooltip;
|
|
11
|
-
return color ? void 0 : theme.textColor;
|
|
12
|
-
});
|
|
7
|
+
})(["color:", ";"], () => useTheme().components.tooltip.textColor);
|
|
13
8
|
export {
|
|
14
9
|
Text
|
|
15
10
|
};
|
|
@@ -4,7 +4,7 @@ declare const WindowBar: (({ title, variant, hideCloseButton, withIcon, icon, ..
|
|
|
4
4
|
Compose: (props: import("./components/Compose/Compose.types").WindowBarComposeProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
Close: ({ children, icon, ...buttonProps }: import("../Close/Close.types").PopoverCloseProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
Icon: ({ icon, variant, ...props }: import("../../../../../Badge/BadgeIcon").BadgeIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
Heading: import("styled-components").StyledComponent<({ size,
|
|
7
|
+
Heading: import("styled-components").StyledComponent<({ size, ellipsis, ...restProps }: import("../../../../../Typography/components/Heading/Heading.types").HeadingProps) => import("react/jsx-runtime").JSX.Element, any, {}, never>;
|
|
8
8
|
Header: import("react").FC<import("./components/Header/Header.types").WindowBarHeaderProps>;
|
|
9
9
|
};
|
|
10
10
|
export default WindowBar;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const WindowBarHeading: import("styled-components").StyledComponent<({ size,
|
|
1
|
+
export declare const WindowBarHeading: import("styled-components").StyledComponent<({ size, ellipsis, ...restProps }: import("../../../../../Typography/components/Heading/Heading.types").HeadingProps) => import("react/jsx-runtime").JSX.Element, any, {}, never>;
|
|
@@ -10,7 +10,6 @@ const Close = require("../Content/components/Close/Close.cjs");
|
|
|
10
10
|
const PopoverCard = Object.assign(({
|
|
11
11
|
text,
|
|
12
12
|
title,
|
|
13
|
-
textColor,
|
|
14
13
|
actionButtonText,
|
|
15
14
|
actionButtonHandler,
|
|
16
15
|
link,
|
|
@@ -26,8 +25,7 @@ const PopoverCard = Object.assign(({
|
|
|
26
25
|
title,
|
|
27
26
|
hideCloseButton: Boolean(windowBar || !persistent)
|
|
28
27
|
}), jsxRuntime.jsxRuntimeExports.jsx(PopoverCard.Body, {
|
|
29
|
-
text
|
|
30
|
-
textColor
|
|
28
|
+
text
|
|
31
29
|
}), jsxRuntime.jsxRuntimeExports.jsx(PopoverCard.Footer, {
|
|
32
30
|
...{
|
|
33
31
|
actionButtonText,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { PopoverCardProps } from './PopoverCard.types';
|
|
3
|
-
declare const PopoverCard: (({ text, title,
|
|
3
|
+
declare const PopoverCard: (({ text, title, actionButtonText, actionButtonHandler, link, linkText, windowBar, persistent, ...composeProps }: PopoverCardProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
4
4
|
Compose: (props: import("./components/Compose/Compose.types").ComposeProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
Header: (({ title, hideCloseButton, ...restProps }: import("../Content/components/Header/Header.types").ContentHeaderProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
6
6
|
Compose: (props: import("../Content/components/Header/components/Compose/Compose.types").ContentHeaderComposeProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
Title: ({ children, ...restProps }: import("../../../Typography/components/Heading/Heading.types").HeadingProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
};
|
|
9
|
-
Body: (({ text,
|
|
9
|
+
Body: (({ text, ...restProps }: import("../Content/components/Body/Body.types").ContentBodyProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
10
10
|
Compose: (props: import("../Content/components/Body/components/Compose/Compose.types").ContentBodyComposeProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
Text: (props: import("../../../Typography/components/Body/Body.types").BodyProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
};
|
|
@@ -17,7 +17,7 @@ declare const PopoverCard: (({ text, title, textColor, actionButtonText, actionB
|
|
|
17
17
|
Compose: (props: import("../Content/components/WindowBar/components/Compose/Compose.types").WindowBarComposeProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
18
|
Close: ({ children, icon, ...buttonProps }: import("../Content/components/Close/Close.types").PopoverCloseProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
19
|
Icon: ({ icon, variant, ...props }: import("../../../Badge/BadgeIcon").BadgeIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
-
Heading: import("styled-components").StyledComponent<({ size,
|
|
20
|
+
Heading: import("styled-components").StyledComponent<({ size, ellipsis, ...restProps }: import("../../../Typography/components/Heading/Heading.types").HeadingProps) => import("react/jsx-runtime").JSX.Element, any, {}, never>;
|
|
21
21
|
Header: import("react").FC<import("../Content/components/WindowBar/components/Header/Header.types").WindowBarHeaderProps>;
|
|
22
22
|
};
|
|
23
23
|
Close: ({ children, icon, ...buttonProps }: import("../Content/components/Close/Close.types").PopoverCloseProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -8,7 +8,6 @@ import Close from "../Content/components/Close/Close.js";
|
|
|
8
8
|
const PopoverCard = Object.assign(({
|
|
9
9
|
text,
|
|
10
10
|
title,
|
|
11
|
-
textColor,
|
|
12
11
|
actionButtonText,
|
|
13
12
|
actionButtonHandler,
|
|
14
13
|
link,
|
|
@@ -24,8 +23,7 @@ const PopoverCard = Object.assign(({
|
|
|
24
23
|
title,
|
|
25
24
|
hideCloseButton: Boolean(windowBar || !persistent)
|
|
26
25
|
}), jsxRuntimeExports.jsx(PopoverCard.Body, {
|
|
27
|
-
text
|
|
28
|
-
textColor
|
|
26
|
+
text
|
|
29
27
|
}), jsxRuntimeExports.jsx(PopoverCard.Footer, {
|
|
30
28
|
...{
|
|
31
29
|
actionButtonText,
|
|
@@ -3,7 +3,7 @@ import type { ContentHeaderProps } from '../Content/components/Header/Header.typ
|
|
|
3
3
|
import type { ContentBodyProps } from '../Content/components/Body/Body.types';
|
|
4
4
|
import type { ContentFooterProps } from '../Content/components/Footer/Footer.types';
|
|
5
5
|
import { WindowBarProps } from '../Content/components/WindowBar/WindowBar.types';
|
|
6
|
-
export interface PopoverCardProps extends Pick<ContentHeaderProps, 'title'>, Pick<ContentBodyProps, 'text'
|
|
6
|
+
export interface PopoverCardProps extends Pick<ContentHeaderProps, 'title'>, Pick<ContentBodyProps, 'text'>, Pick<ContentFooterProps, 'actionButtonText' | 'actionButtonHandler' | 'link' | 'linkText'>, Omit<ComposeProps, 'children' | 'title'> {
|
|
7
7
|
windowBar?: WindowBarProps;
|
|
8
8
|
persistent?: boolean;
|
|
9
9
|
}
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jsxRuntime = require("../node_modules/react/jsx-runtime.cjs");
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const ProgressBar_styles = require("./ProgressBar.styles.cjs");
|
|
6
|
-
const Typography = require("../Typography/Typography.cjs");
|
|
7
6
|
const ProgressBar = ({
|
|
8
7
|
value,
|
|
9
8
|
textIndicationPosition,
|
|
@@ -24,10 +23,9 @@ const ProgressBar = ({
|
|
|
24
23
|
value: inRangeValue,
|
|
25
24
|
variant
|
|
26
25
|
})
|
|
27
|
-
}), textPosition && jsxRuntime.jsxRuntimeExports.jsx(
|
|
26
|
+
}), textPosition && jsxRuntime.jsxRuntimeExports.jsx(ProgressBar_styles.TypographyBody, {
|
|
28
27
|
size: "S",
|
|
29
28
|
variant: "semiBold",
|
|
30
|
-
color: "neutral800",
|
|
31
29
|
children: `${inRangeValue}%`
|
|
32
30
|
})]
|
|
33
31
|
});
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { j as jsxRuntimeExports } from "../node_modules/react/jsx-runtime.js";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
|
-
import { ProgressBar as ProgressBar$1, Root, Indicator } from "./ProgressBar.styles.js";
|
|
4
|
-
import Typography from "../Typography/Typography.js";
|
|
3
|
+
import { ProgressBar as ProgressBar$1, Root, Indicator, TypographyBody } from "./ProgressBar.styles.js";
|
|
5
4
|
const ProgressBar = ({
|
|
6
5
|
value,
|
|
7
6
|
textIndicationPosition,
|
|
@@ -22,10 +21,9 @@ const ProgressBar = ({
|
|
|
22
21
|
value: inRangeValue,
|
|
23
22
|
variant
|
|
24
23
|
})
|
|
25
|
-
}), textPosition && jsxRuntimeExports.jsx(
|
|
24
|
+
}), textPosition && jsxRuntimeExports.jsx(TypographyBody, {
|
|
26
25
|
size: "S",
|
|
27
26
|
variant: "semiBold",
|
|
28
|
-
color: "neutral800",
|
|
29
27
|
children: `${inRangeValue}%`
|
|
30
28
|
})]
|
|
31
29
|
});
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const _styled = require("styled-components");
|
|
4
4
|
const index = require("../node_modules/@radix-ui/react-progress/dist/index.cjs");
|
|
5
5
|
const redisUiStyles = require("@redislabsdev/redis-ui-styles");
|
|
6
|
+
const Typography = require("../Typography/Typography.cjs");
|
|
6
7
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
7
8
|
const _styled__default = /* @__PURE__ */ _interopDefault(_styled);
|
|
8
9
|
const Root = _styled__default.default(index.Root).withConfig({
|
|
@@ -47,6 +48,11 @@ const ProgressBar = _styled__default.default.div.withConfig({
|
|
|
47
48
|
}, Root, ({
|
|
48
49
|
textPosition: position
|
|
49
50
|
}) => position === "top" || position === "left" ? 1 : 0);
|
|
51
|
+
const TypographyBody = _styled__default.default(Typography.default.Body).withConfig({
|
|
52
|
+
displayName: "ProgressBarstyles__TypographyBody",
|
|
53
|
+
componentId: "RedisUI__sc-caf7e3-3"
|
|
54
|
+
})(["color:", ";"], () => redisUiStyles.useTheme().components.progressBar.text.color);
|
|
50
55
|
exports.Indicator = Indicator;
|
|
51
56
|
exports.ProgressBar = ProgressBar;
|
|
52
57
|
exports.Root = Root;
|
|
58
|
+
exports.TypographyBody = TypographyBody;
|
|
@@ -12,3 +12,4 @@ export declare const Indicator: import("styled-components").StyledComponent<impo
|
|
|
12
12
|
export declare const ProgressBar: import("styled-components").StyledComponent<"div", any, {
|
|
13
13
|
textPosition?: ProgressBarTextPosition | undefined;
|
|
14
14
|
}, never>;
|
|
15
|
+
export declare const TypographyBody: import("styled-components").StyledComponent<({ size, variant, component, ellipsis, ...restProps }: import("../Typography/components/Body/Body.types").BodyProps) => import("react/jsx-runtime").JSX.Element, any, {}, never>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _styled, { css } from "styled-components";
|
|
2
2
|
import { Root as Root$1, Indicator as Indicator$1 } from "../node_modules/@radix-ui/react-progress/dist/index.js";
|
|
3
3
|
import { useTheme } from "@redislabsdev/redis-ui-styles";
|
|
4
|
+
import Typography from "../Typography/Typography.js";
|
|
4
5
|
const Root = _styled(Root$1).withConfig({
|
|
5
6
|
displayName: "ProgressBarstyles__Root",
|
|
6
7
|
componentId: "RedisUI__sc-caf7e3-0"
|
|
@@ -43,8 +44,13 @@ const ProgressBar = _styled.div.withConfig({
|
|
|
43
44
|
}, Root, ({
|
|
44
45
|
textPosition: position
|
|
45
46
|
}) => position === "top" || position === "left" ? 1 : 0);
|
|
47
|
+
const TypographyBody = _styled(Typography.Body).withConfig({
|
|
48
|
+
displayName: "ProgressBarstyles__TypographyBody",
|
|
49
|
+
componentId: "RedisUI__sc-caf7e3-3"
|
|
50
|
+
})(["color:", ";"], () => useTheme().components.progressBar.text.color);
|
|
46
51
|
export {
|
|
47
52
|
Indicator,
|
|
48
53
|
ProgressBar,
|
|
49
|
-
Root
|
|
54
|
+
Root,
|
|
55
|
+
TypographyBody
|
|
50
56
|
};
|
|
@@ -16,7 +16,7 @@ declare const RadioGroup: (({ label, required, optional, infoIconProps, initialV
|
|
|
16
16
|
*/
|
|
17
17
|
Label: (({ label, infoIconProps, required, optional, readOnly, ...restProps }: import("../Label").LabelProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
18
18
|
Text: ({ children, readOnly, ...restProps }: import("../Label/components/Text/Text.types").TextProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
InfoIcon: ({ size,
|
|
19
|
+
InfoIcon: ({ size, text, content, ...tooltipProps }: import("../Label/components/InfoIcon/InfoIcon.types").InfoIconProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
20
20
|
Required: ({ children, show, size, ...restProps }: import("../Label/components/Required/Required.types").RequiredProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
21
21
|
Optional: ({ children, show, size, ...restProps }: import("../Label/components/Optional/Optional.types").OptionalProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
22
22
|
Compose: ({ htmlFor, show, ...props }: import("react").LabelHTMLAttributes<HTMLLabelElement> & {
|
|
@@ -31,5 +31,5 @@ const getStateStyles = (tokens) => {
|
|
|
31
31
|
const RadioGroupItemLabel = _styled__default.default.label.withConfig({
|
|
32
32
|
displayName: "Labelstyle__RadioGroupItemLabel",
|
|
33
33
|
componentId: "RedisUI__sc-rk4lgx-0"
|
|
34
|
-
})(["display:flex;align-items:center;cursor:pointer;min-width:0;gap:", ";line-height:", ";margin-inline:calc(-1 * ", ");padding-inline:", ";", "
|
|
34
|
+
})(["display:flex;align-items:center;cursor:pointer;min-width:0;gap:", ";line-height:", ";margin-inline:calc(-1 * ", ");padding-inline:", ";", ""], () => redisUiStyles.useTheme().components.radio.label.gap, () => redisUiStyles.useTheme().components.radio.label.lineHeight, () => redisUiStyles.useTheme().components.radio.gap, () => redisUiStyles.useTheme().components.radio.gap, () => getStateStyles(redisUiStyles.useTheme().components.radio.variants.primary));
|
|
35
35
|
exports.RadioGroupItemLabel = RadioGroupItemLabel;
|
|
@@ -27,7 +27,7 @@ const getStateStyles = (tokens) => {
|
|
|
27
27
|
const RadioGroupItemLabel = _styled.label.withConfig({
|
|
28
28
|
displayName: "Labelstyle__RadioGroupItemLabel",
|
|
29
29
|
componentId: "RedisUI__sc-rk4lgx-0"
|
|
30
|
-
})(["display:flex;align-items:center;cursor:pointer;min-width:0;gap:", ";line-height:", ";margin-inline:calc(-1 * ", ");padding-inline:", ";", "
|
|
30
|
+
})(["display:flex;align-items:center;cursor:pointer;min-width:0;gap:", ";line-height:", ";margin-inline:calc(-1 * ", ");padding-inline:", ";", ""], () => useTheme().components.radio.label.gap, () => useTheme().components.radio.label.lineHeight, () => useTheme().components.radio.gap, () => useTheme().components.radio.gap, () => getStateStyles(useTheme().components.radio.variants.primary));
|
|
31
31
|
export {
|
|
32
32
|
RadioGroupItemLabel
|
|
33
33
|
};
|
|
@@ -3,16 +3,14 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
3
3
|
const jsxRuntime = require("../../../../../node_modules/react/jsx-runtime.cjs");
|
|
4
4
|
const CategoryValueChip = require("./components/CategoryValueChip/CategoryValueChip.cjs");
|
|
5
5
|
const CategoryValueList_style = require("./CategoryValueList.style.cjs");
|
|
6
|
-
const Typography = require("../../../../../Typography/Typography.cjs");
|
|
7
6
|
const CategoryValueList = ({
|
|
8
7
|
categoryValueList
|
|
9
8
|
}) => {
|
|
10
9
|
return jsxRuntime.jsxRuntimeExports.jsx(CategoryValueList_style.Container, {
|
|
11
10
|
minItems: 1,
|
|
12
11
|
renderExtra: (visibleCount) => jsxRuntime.jsxRuntimeExports.jsxs(CategoryValueList_style.CategoryValueItemContainer, {
|
|
13
|
-
children: [jsxRuntime.jsxRuntimeExports.jsx(CategoryValueList_style.Separator, {}), jsxRuntime.jsxRuntimeExports.jsx(
|
|
12
|
+
children: [jsxRuntime.jsxRuntimeExports.jsx(CategoryValueList_style.Separator, {}), jsxRuntime.jsxRuntimeExports.jsx(CategoryValueList_style.TextWrapper, {
|
|
14
13
|
variant: "semiBold",
|
|
15
|
-
color: "neutral800",
|
|
16
14
|
children: `+${categoryValueList.length - visibleCount}`
|
|
17
15
|
})]
|
|
18
16
|
}),
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import { j as jsxRuntimeExports } from "../../../../../node_modules/react/jsx-runtime.js";
|
|
2
2
|
import CategoryValueChip from "./components/CategoryValueChip/CategoryValueChip.js";
|
|
3
|
-
import { Container, CategoryValueItemContainer, Separator } from "./CategoryValueList.style.js";
|
|
4
|
-
import Typography from "../../../../../Typography/Typography.js";
|
|
3
|
+
import { Container, CategoryValueItemContainer, Separator, TextWrapper } from "./CategoryValueList.style.js";
|
|
5
4
|
const CategoryValueList = ({
|
|
6
5
|
categoryValueList
|
|
7
6
|
}) => {
|
|
8
7
|
return jsxRuntimeExports.jsx(Container, {
|
|
9
8
|
minItems: 1,
|
|
10
9
|
renderExtra: (visibleCount) => jsxRuntimeExports.jsxs(CategoryValueItemContainer, {
|
|
11
|
-
children: [jsxRuntimeExports.jsx(Separator, {}), jsxRuntimeExports.jsx(
|
|
10
|
+
children: [jsxRuntimeExports.jsx(Separator, {}), jsxRuntimeExports.jsx(TextWrapper, {
|
|
12
11
|
variant: "semiBold",
|
|
13
|
-
color: "neutral800",
|
|
14
12
|
children: `+${categoryValueList.length - visibleCount}`
|
|
15
13
|
})]
|
|
16
14
|
}),
|
package/dist/Section/components/Header/components/CategoryValueList/CategoryValueList.style.cjs
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const _styled = require("styled-components");
|
|
4
4
|
const redisUiStyles = require("@redislabsdev/redis-ui-styles");
|
|
5
|
+
const Typography = require("../../../../../Typography/Typography.cjs");
|
|
5
6
|
const Overflow = require("../../../../../Overflow/Overflow.cjs");
|
|
6
7
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
7
8
|
const _styled__default = /* @__PURE__ */ _interopDefault(_styled);
|
|
@@ -17,6 +18,11 @@ const CategoryValueItemContainer = _styled__default.default.div.withConfig({
|
|
|
17
18
|
displayName: "CategoryValueListstyle__CategoryValueItemContainer",
|
|
18
19
|
componentId: "RedisUI__sc-1esx0lb-2"
|
|
19
20
|
})(["display:flex;align-items:center;gap:", ";"], () => redisUiStyles.useTheme().components.section.header.categoryValueList.gap);
|
|
21
|
+
const TextWrapper = _styled__default.default(Typography.default.Body).withConfig({
|
|
22
|
+
displayName: "CategoryValueListstyle__TextWrapper",
|
|
23
|
+
componentId: "RedisUI__sc-1esx0lb-3"
|
|
24
|
+
})(["color:", ";"], () => redisUiStyles.useTheme().components.section.header.categoryValueList.counter.textColor);
|
|
20
25
|
exports.CategoryValueItemContainer = CategoryValueItemContainer;
|
|
21
26
|
exports.Container = Container;
|
|
22
27
|
exports.Separator = Separator;
|
|
28
|
+
exports.TextWrapper = TextWrapper;
|
package/dist/Section/components/Header/components/CategoryValueList/CategoryValueList.style.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export declare const Container: import("styled-components").StyledComponent<({ children, renderExtra, maxRows, minItems, expectedGap, estimatedItemsPerRow, ...restProps }: import("../../../../../Overflow").OverflowProps) => import("react/jsx-runtime").JSX.Element, any, {}, never>;
|
|
2
2
|
export declare const Separator: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
3
|
export declare const CategoryValueItemContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
+
export declare const TextWrapper: import("styled-components").StyledComponent<({ size, variant, component, ellipsis, ...restProps }: import("../../../../../Typography/components/Body/Body.types").BodyProps) => import("react/jsx-runtime").JSX.Element, any, {}, never>;
|
package/dist/Section/components/Header/components/CategoryValueList/CategoryValueList.style.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _styled from "styled-components";
|
|
2
2
|
import { useTheme } from "@redislabsdev/redis-ui-styles";
|
|
3
|
+
import Typography from "../../../../../Typography/Typography.js";
|
|
3
4
|
import { Overflow } from "../../../../../Overflow/Overflow.js";
|
|
4
5
|
const Container = _styled(Overflow).withConfig({
|
|
5
6
|
displayName: "CategoryValueListstyle__Container",
|
|
@@ -13,8 +14,13 @@ const CategoryValueItemContainer = _styled.div.withConfig({
|
|
|
13
14
|
displayName: "CategoryValueListstyle__CategoryValueItemContainer",
|
|
14
15
|
componentId: "RedisUI__sc-1esx0lb-2"
|
|
15
16
|
})(["display:flex;align-items:center;gap:", ";"], () => useTheme().components.section.header.categoryValueList.gap);
|
|
17
|
+
const TextWrapper = _styled(Typography.Body).withConfig({
|
|
18
|
+
displayName: "CategoryValueListstyle__TextWrapper",
|
|
19
|
+
componentId: "RedisUI__sc-1esx0lb-3"
|
|
20
|
+
})(["color:", ";"], () => useTheme().components.section.header.categoryValueList.counter.textColor);
|
|
16
21
|
export {
|
|
17
22
|
CategoryValueItemContainer,
|
|
18
23
|
Container,
|
|
19
|
-
Separator
|
|
24
|
+
Separator,
|
|
25
|
+
TextWrapper
|
|
20
26
|
};
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const jsxRuntime = require("../../../../../../../node_modules/react/jsx-runtime.cjs");
|
|
4
4
|
const CategoryValueChip_style = require("./CategoryValueChip.style.cjs");
|
|
5
|
-
const Typography = require("../../../../../../../Typography/Typography.cjs");
|
|
6
5
|
const CategoryValueChip = ({
|
|
7
6
|
category,
|
|
8
7
|
value,
|
|
@@ -11,10 +10,8 @@ const CategoryValueChip = ({
|
|
|
11
10
|
...restProps,
|
|
12
11
|
children: [jsxRuntime.jsxRuntimeExports.jsx(CategoryValueChip_style.Category, {
|
|
13
12
|
variant: "semiBold",
|
|
14
|
-
color: "neutral800",
|
|
15
13
|
children: category
|
|
16
|
-
}), jsxRuntime.jsxRuntimeExports.jsx(
|
|
17
|
-
color: "neutral700",
|
|
14
|
+
}), jsxRuntime.jsxRuntimeExports.jsx(CategoryValueChip_style.TypographyBody, {
|
|
18
15
|
ellipsis: true,
|
|
19
16
|
tooltipOnEllipsis: true,
|
|
20
17
|
children: value
|