colibri-ui 0.8.97 → 0.8.99
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/Accordion/index.js +4 -2
- package/Accordion/index.props.d.ts +2 -1
- package/Avatar/index.js +2 -5
- package/Avatar/index.props.d.ts +2 -1
- package/Badge/Control/index.props.d.ts +2 -1
- package/Badge/index.js +1 -2
- package/Button/index.js +0 -1
- package/Checkbox/index.js +4 -2
- package/Checkbox/index.props.d.ts +2 -1
- package/Chip/index.js +2 -4
- package/Chip/index.props.d.ts +2 -2
- package/ColorPicker/ColorPicker.d.ts +1 -1
- package/ColorPicker/ColorPicker.js +4 -2
- package/ColorPicker/index.props.d.ts +2 -1
- package/Counter/index.js +4 -2
- package/Counter/index.props.d.ts +2 -1
- package/Datepicker/index.d.ts +1 -1
- package/Datepicker/index.js +5 -3
- package/Datepicker/index.props.d.ts +2 -1
- package/DotsLoader/index.js +5 -2
- package/DotsLoader/index.props.d.ts +2 -1
- package/Dropdown/index.js +2 -2
- package/Dropdown/index.props.d.ts +2 -1
- package/Grid/index.js +3 -1
- package/Grid/index.props.d.ts +2 -1
- package/InputRadio/index.js +3 -3
- package/InputRadio/index.props.d.ts +2 -2
- package/Menu/components/MenuItem/index.js +0 -1
- package/Menu/components/MenuItem/index.props.d.ts +2 -1
- package/Menu/index.d.ts +1 -1
- package/Menu/index.js +4 -2
- package/Menu/index.props.d.ts +2 -1
- package/Modal/index.js +3 -1
- package/Modal/index.props.d.ts +2 -1
- package/MultiSelect/index.js +3 -1
- package/NavigationMenu/NavigationMenu.d.ts +3 -0
- package/NavigationMenu/NavigationMenu.js +170 -0
- package/NavigationMenu/NavigationMenu.module.css +67 -0
- package/NavigationMenu/components/MoreMenu/MoreMenu.module.css +19 -0
- package/NavigationMenu/components/MoreMenu/index.d.ts +16 -0
- package/NavigationMenu/components/MoreMenu/index.js +155 -0
- package/NavigationMenu/components/NavigationLink/NavigationLink.module.css +59 -0
- package/NavigationMenu/components/NavigationLink/index.d.ts +16 -0
- package/NavigationMenu/components/NavigationLink/index.js +51 -0
- package/NavigationMenu/helpers.d.ts +9 -0
- package/NavigationMenu/helpers.js +20 -0
- package/NavigationMenu/index.d.ts +2 -0
- package/NavigationMenu/index.js +7 -0
- package/NavigationMenu/index.props.d.ts +40 -0
- package/NavigationMenu/package.json +9 -0
- package/NavigationMenu/splitItems.d.ts +30 -0
- package/NavigationMenu/splitItems.js +54 -0
- package/NavigationMenu/useOverflowSplit.d.ts +25 -0
- package/NavigationMenu/useOverflowSplit.js +63 -0
- package/RadioGroup/Radio.js +2 -2
- package/RadioGroup/index.js +1 -1
- package/RadioGroup/index.props.d.ts +1 -1
- package/Select/index.d.ts +1 -1
- package/Select/index.js +4 -3
- package/Separator/index.js +6 -4
- package/Separator/index.props.d.ts +2 -1
- package/Skeleton/index.js +6 -2
- package/Skeleton/index.props.d.ts +3 -2
- package/Status/index.d.ts +1 -1
- package/Status/index.js +3 -1
- package/Status/index.props.d.ts +2 -1
- package/TextArea/index.js +0 -1
- package/Theme/index.d.ts +8 -0
- package/Theme/themes/buenos_aires.d.ts +4 -0
- package/Theme/themes/buenos_aires.js +4 -0
- package/Theme/themes/jaipur.d.ts +4 -0
- package/Theme/themes/jaipur.js +4 -0
- package/TimeSelect/index.js +3 -1
- package/Tooltip/index.js +3 -1
- package/Tooltip/index.props.d.ts +2 -1
- package/base/FormField/index.d.ts +1 -1
- package/base/FormField/index.js +4 -2
- package/base/FormField/index.props.d.ts +2 -1
- package/esm/Accordion/index.js +4 -2
- package/esm/Accordion/index.props.d.ts +2 -1
- package/esm/Avatar/index.js +2 -5
- package/esm/Avatar/index.props.d.ts +2 -1
- package/esm/Badge/Control/index.props.d.ts +2 -1
- package/esm/Badge/index.js +1 -2
- package/esm/Button/index.js +0 -1
- package/esm/Checkbox/index.js +4 -2
- package/esm/Checkbox/index.props.d.ts +2 -1
- package/esm/Chip/index.js +2 -4
- package/esm/Chip/index.props.d.ts +2 -2
- package/esm/ColorPicker/ColorPicker.d.ts +1 -1
- package/esm/ColorPicker/ColorPicker.js +4 -2
- package/esm/ColorPicker/index.props.d.ts +2 -1
- package/esm/Counter/index.js +4 -2
- package/esm/Counter/index.props.d.ts +2 -1
- package/esm/Datepicker/index.d.ts +1 -1
- package/esm/Datepicker/index.js +5 -3
- package/esm/Datepicker/index.props.d.ts +2 -1
- package/esm/DotsLoader/index.js +5 -2
- package/esm/DotsLoader/index.props.d.ts +2 -1
- package/esm/Dropdown/index.js +2 -2
- package/esm/Dropdown/index.props.d.ts +2 -1
- package/esm/Grid/index.js +3 -1
- package/esm/Grid/index.props.d.ts +2 -1
- package/esm/InputRadio/index.js +3 -3
- package/esm/InputRadio/index.props.d.ts +2 -2
- package/esm/Menu/components/MenuItem/index.js +0 -1
- package/esm/Menu/components/MenuItem/index.props.d.ts +2 -1
- package/esm/Menu/index.d.ts +1 -1
- package/esm/Menu/index.js +4 -2
- package/esm/Menu/index.props.d.ts +2 -1
- package/esm/Modal/index.js +3 -1
- package/esm/Modal/index.props.d.ts +2 -1
- package/esm/MultiSelect/index.js +3 -1
- package/esm/NavigationMenu/NavigationMenu.d.ts +3 -0
- package/esm/NavigationMenu/NavigationMenu.js +162 -0
- package/esm/NavigationMenu/NavigationMenu.module.css +67 -0
- package/esm/NavigationMenu/components/MoreMenu/MoreMenu.module.css +19 -0
- package/esm/NavigationMenu/components/MoreMenu/index.d.ts +16 -0
- package/esm/NavigationMenu/components/MoreMenu/index.js +147 -0
- package/esm/NavigationMenu/components/NavigationLink/NavigationLink.module.css +59 -0
- package/esm/NavigationMenu/components/NavigationLink/index.d.ts +16 -0
- package/esm/NavigationMenu/components/NavigationLink/index.js +41 -0
- package/esm/NavigationMenu/helpers.d.ts +9 -0
- package/esm/NavigationMenu/helpers.js +15 -0
- package/esm/NavigationMenu/index.d.ts +2 -0
- package/esm/NavigationMenu/index.js +1 -0
- package/esm/NavigationMenu/index.props.d.ts +40 -0
- package/esm/NavigationMenu/splitItems.d.ts +30 -0
- package/esm/NavigationMenu/splitItems.js +51 -0
- package/esm/NavigationMenu/useOverflowSplit.d.ts +25 -0
- package/esm/NavigationMenu/useOverflowSplit.js +61 -0
- package/esm/RadioGroup/Radio.js +2 -2
- package/esm/RadioGroup/index.js +1 -1
- package/esm/RadioGroup/index.props.d.ts +1 -1
- package/esm/Select/index.d.ts +1 -1
- package/esm/Select/index.js +4 -3
- package/esm/Separator/index.js +6 -4
- package/esm/Separator/index.props.d.ts +2 -1
- package/esm/Skeleton/index.js +6 -2
- package/esm/Skeleton/index.props.d.ts +3 -2
- package/esm/Status/index.d.ts +1 -1
- package/esm/Status/index.js +3 -1
- package/esm/Status/index.props.d.ts +2 -1
- package/esm/TextArea/index.js +0 -1
- package/esm/Theme/index.d.ts +8 -0
- package/esm/Theme/themes/buenos_aires.d.ts +4 -0
- package/esm/Theme/themes/buenos_aires.js +4 -0
- package/esm/Theme/themes/jaipur.d.ts +4 -0
- package/esm/Theme/themes/jaipur.js +4 -0
- package/esm/TimeSelect/index.js +3 -1
- package/esm/Tooltip/index.js +3 -1
- package/esm/Tooltip/index.props.d.ts +2 -1
- package/esm/base/FormField/index.d.ts +1 -1
- package/esm/base/FormField/index.js +4 -2
- package/esm/base/FormField/index.props.d.ts +2 -1
- package/esm/helpers/testId.d.ts +18 -0
- package/esm/index.d.ts +3 -0
- package/esm/index.js +1 -0
- package/esm/theme_ba_variables.css +4 -0
- package/esm/theme_jaipur_variables.css +4 -0
- package/helpers/testId.d.ts +18 -0
- package/index.d.ts +3 -0
- package/index.js +3 -0
- package/package.json +1 -1
- package/theme_ba_variables.css +4 -0
- package/theme_jaipur_variables.css +4 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
|
+
import type { TestIdProps } from "../helpers/testId";
|
|
2
3
|
export type StatusTag = "span" | "div";
|
|
3
4
|
export declare enum STATUS_TYPE {
|
|
4
5
|
SUCCESS = "success",
|
|
@@ -6,7 +7,7 @@ export declare enum STATUS_TYPE {
|
|
|
6
7
|
INFO = "info",
|
|
7
8
|
WARNING = "warning"
|
|
8
9
|
}
|
|
9
|
-
export type StatusProps = {
|
|
10
|
+
export type StatusProps = TestIdProps & {
|
|
10
11
|
className?: string;
|
|
11
12
|
indicator?: ReactNode;
|
|
12
13
|
showIndicator?: boolean;
|
package/esm/TextArea/index.js
CHANGED
package/esm/Theme/index.d.ts
CHANGED
|
@@ -692,7 +692,11 @@ export declare const THEMES: {
|
|
|
692
692
|
"component-pagination-bg-current": string;
|
|
693
693
|
"component-pagination-bg-hover": string;
|
|
694
694
|
"component-pagination-focus-ring": string;
|
|
695
|
+
"component-navigation-item-text": string;
|
|
696
|
+
"component-navigation-item-text-selected": string;
|
|
697
|
+
"component-navigation-item-bg-hover": string;
|
|
695
698
|
"component-navigation-item-bg-selected": string;
|
|
699
|
+
"component-navigation-item-focus-ring": string;
|
|
696
700
|
"component-chip-bg-selected": string;
|
|
697
701
|
"component-chip-bg-selected-strong": string;
|
|
698
702
|
"palette-black": string;
|
|
@@ -1536,7 +1540,11 @@ export declare const THEMES: {
|
|
|
1536
1540
|
"component-pagination-bg-current": string;
|
|
1537
1541
|
"component-pagination-bg-hover": string;
|
|
1538
1542
|
"component-pagination-focus-ring": string;
|
|
1543
|
+
"component-navigation-item-text": string;
|
|
1544
|
+
"component-navigation-item-text-selected": string;
|
|
1545
|
+
"component-navigation-item-bg-hover": string;
|
|
1539
1546
|
"component-navigation-item-bg-selected": string;
|
|
1547
|
+
"component-navigation-item-focus-ring": string;
|
|
1540
1548
|
"component-chip-bg-selected": string;
|
|
1541
1549
|
"component-chip-bg-selected-strong": string;
|
|
1542
1550
|
"palette-black": string;
|
|
@@ -613,7 +613,11 @@ declare const _default: {
|
|
|
613
613
|
"component-pagination-bg-current": string;
|
|
614
614
|
"component-pagination-bg-hover": string;
|
|
615
615
|
"component-pagination-focus-ring": string;
|
|
616
|
+
"component-navigation-item-text": string;
|
|
617
|
+
"component-navigation-item-text-selected": string;
|
|
618
|
+
"component-navigation-item-bg-hover": string;
|
|
616
619
|
"component-navigation-item-bg-selected": string;
|
|
620
|
+
"component-navigation-item-focus-ring": string;
|
|
617
621
|
"component-chip-bg-selected": string;
|
|
618
622
|
"component-chip-bg-selected-strong": string;
|
|
619
623
|
"palette-black": string;
|
|
@@ -615,7 +615,11 @@ var THEME_BA = {
|
|
|
615
615
|
"component-pagination-bg-current": Color.BRAND_BA_FOREST,
|
|
616
616
|
"component-pagination-bg-hover": Color.NEUTRAL_BA_100,
|
|
617
617
|
"component-pagination-focus-ring": Color.BRAND_BA_LIME,
|
|
618
|
+
"component-navigation-item-text": Color.BRAND_BA_FOREST,
|
|
619
|
+
"component-navigation-item-text-selected": Color.BRAND_BA_LIME,
|
|
620
|
+
"component-navigation-item-bg-hover": Color.NEUTRAL_BA_100,
|
|
618
621
|
"component-navigation-item-bg-selected": Color.BRAND_BA_FOREST,
|
|
622
|
+
"component-navigation-item-focus-ring": Color.BRAND_BA_LIME,
|
|
619
623
|
"component-chip-bg-selected": Color.BRAND_BA_FOREST,
|
|
620
624
|
"component-chip-bg-selected-strong": Color.BRAND_BA_LIME,
|
|
621
625
|
"palette-black": Color.BRAND_BA_FOREST,
|
|
@@ -613,7 +613,11 @@ declare const _default: {
|
|
|
613
613
|
"component-pagination-bg-current": string;
|
|
614
614
|
"component-pagination-bg-hover": string;
|
|
615
615
|
"component-pagination-focus-ring": string;
|
|
616
|
+
"component-navigation-item-text": string;
|
|
617
|
+
"component-navigation-item-text-selected": string;
|
|
618
|
+
"component-navigation-item-bg-hover": string;
|
|
616
619
|
"component-navigation-item-bg-selected": string;
|
|
620
|
+
"component-navigation-item-focus-ring": string;
|
|
617
621
|
"component-chip-bg-selected": string;
|
|
618
622
|
"component-chip-bg-selected-strong": string;
|
|
619
623
|
"palette-black": string;
|
|
@@ -615,7 +615,11 @@ var theme_jaipur = {
|
|
|
615
615
|
"component-pagination-bg-current": Color.BRAND_JP_EGGPLANT,
|
|
616
616
|
"component-pagination-bg-hover": Color.NEUTRAL_JP_100,
|
|
617
617
|
"component-pagination-focus-ring": Color.BRAND_JP_PINK,
|
|
618
|
+
"component-navigation-item-text": Color.BRAND_JP_EGGPLANT,
|
|
619
|
+
"component-navigation-item-text-selected": Color.BRAND_JP_PINK,
|
|
620
|
+
"component-navigation-item-bg-hover": Color.NEUTRAL_JP_100,
|
|
618
621
|
"component-navigation-item-bg-selected": Color.BRAND_JP_EGGPLANT,
|
|
622
|
+
"component-navigation-item-focus-ring": Color.BRAND_JP_PINK,
|
|
619
623
|
"component-chip-bg-selected": Color.BRAND_JP_EGGPLANT,
|
|
620
624
|
"component-chip-bg-selected-strong": Color.BRAND_JP_PINK,
|
|
621
625
|
"palette-black": Color.BRAND_JP_EGGPLANT,
|
package/esm/TimeSelect/index.js
CHANGED
|
@@ -23,7 +23,8 @@ const TimeSelect = ({
|
|
|
23
23
|
zIndex,
|
|
24
24
|
hasError,
|
|
25
25
|
hint,
|
|
26
|
-
"aria-label": ariaLabel
|
|
26
|
+
"aria-label": ariaLabel,
|
|
27
|
+
"data-testid": testId
|
|
27
28
|
}) => {
|
|
28
29
|
const baseOptions = useMemo(() => generateSuggest(interval).map(item => ({
|
|
29
30
|
value: item.time,
|
|
@@ -39,6 +40,7 @@ const TimeSelect = ({
|
|
|
39
40
|
}), [baseOptions, currentDate, selectedDate, allowedTimeRange, interval]);
|
|
40
41
|
return /*#__PURE__*/React.createElement(Select, {
|
|
41
42
|
"aria-label": ariaLabel,
|
|
43
|
+
"data-testid": testId,
|
|
42
44
|
className: className,
|
|
43
45
|
customInputRoot: customInputRoot,
|
|
44
46
|
fontSize: fontSize,
|
package/esm/Tooltip/index.js
CHANGED
|
@@ -10,7 +10,8 @@ const Tooltip = ({
|
|
|
10
10
|
withTail = false,
|
|
11
11
|
placement = "bottom",
|
|
12
12
|
strategy = "absolute",
|
|
13
|
-
className
|
|
13
|
+
className,
|
|
14
|
+
"data-testid": testId
|
|
14
15
|
}) => {
|
|
15
16
|
const [isOpen, setIsOpen] = useState(false);
|
|
16
17
|
const arrowRef = useRef(null);
|
|
@@ -58,6 +59,7 @@ const Tooltip = ({
|
|
|
58
59
|
ref: refs.setFloating
|
|
59
60
|
}, getFloatingProps(), {
|
|
60
61
|
className: clsx(styles.tooltip, className),
|
|
62
|
+
"data-testid": testId,
|
|
61
63
|
style: Object.assign(Object.assign({}, floatingStyles), {
|
|
62
64
|
zIndex
|
|
63
65
|
})
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Placement, Strategy } from "@floating-ui/react";
|
|
2
2
|
import type { ReactNode } from "react";
|
|
3
|
-
|
|
3
|
+
import type { PopupTestIdProps } from "../helpers/testId";
|
|
4
|
+
export type TooltipProps = PopupTestIdProps & {
|
|
4
5
|
content: ReactNode;
|
|
5
6
|
zIndex?: number;
|
|
6
7
|
placement?: Placement;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { FormFieldProps } from "./index.props";
|
|
3
|
-
export declare const FormField: ({ label, hint, children, hasError, hintId, htmlFor, labelId, required, className, ref, }: FormFieldProps) => React.JSX.Element;
|
|
3
|
+
export declare const FormField: ({ label, hint, children, hasError, hintId, htmlFor, labelId, required, className, ref, "data-testid": testId, }: FormFieldProps) => React.JSX.Element;
|
|
@@ -13,10 +13,12 @@ const FormField = ({
|
|
|
13
13
|
labelId,
|
|
14
14
|
required,
|
|
15
15
|
className,
|
|
16
|
-
ref
|
|
16
|
+
ref,
|
|
17
|
+
"data-testid": testId
|
|
17
18
|
}) => (/*#__PURE__*/React.createElement("div", {
|
|
18
19
|
className: clsx(styles.container, className),
|
|
19
|
-
ref: ref
|
|
20
|
+
ref: ref,
|
|
21
|
+
"data-testid": testId
|
|
20
22
|
}, label && (/*#__PURE__*/React.createElement(Typography, {
|
|
21
23
|
className: clsx(styles.label, {
|
|
22
24
|
[styles.label_required]: Boolean(required)
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
2
|
import type { PropsWithChildren } from "react";
|
|
3
|
-
|
|
3
|
+
import type { TestIdProps } from "../../helpers/testId";
|
|
4
|
+
export type FormFieldProps = PropsWithChildren<TestIdProps & {
|
|
4
5
|
className?: string;
|
|
5
6
|
hasError?: boolean;
|
|
6
7
|
hint?: ReactNode;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A test id a consumer gives a component; the component puts it on its own
|
|
3
|
+
* root element. Fields put it on the native control. Components set no test
|
|
4
|
+
* id of their own. A component without a root of its own takes
|
|
5
|
+
* `PopupTestIdProps` instead.
|
|
6
|
+
*/
|
|
7
|
+
export type TestIdProps = {
|
|
8
|
+
"data-testid"?: string;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* A test id of a popup (`Dropdown`, `Tooltip`): it names the floating panel,
|
|
12
|
+
* which is in the DOM only while open. The trigger is the consumer's own
|
|
13
|
+
* element and keeps its own `data-testid`; the component never writes one on
|
|
14
|
+
* it.
|
|
15
|
+
*/
|
|
16
|
+
export type PopupTestIdProps = {
|
|
17
|
+
"data-testid"?: string;
|
|
18
|
+
};
|
package/esm/index.d.ts
CHANGED
|
@@ -52,6 +52,8 @@ export { Modal, ModalHeader, ModalTitle, ModalBody, ModalFooter, } from "./Modal
|
|
|
52
52
|
export type { ModalProps, ModalHeaderProps, ModalTitleProps, ModalBodyProps, ModalFooterProps, } from "./Modal/index.props";
|
|
53
53
|
export { MultiSelect } from "./MultiSelect";
|
|
54
54
|
export type { MultiSelectProps } from "./MultiSelect/index.props";
|
|
55
|
+
export { NavigationMenu } from "./NavigationMenu";
|
|
56
|
+
export type { NavigationMenuItem, NavigationMenuLayout, NavigationMenuLinkProps, NavigationMenuProps, NavigationMenuRenderLink, NavigationMenuSize, } from "./NavigationMenu";
|
|
55
57
|
export { NumberInput } from "./NumberInput";
|
|
56
58
|
export type { NumberInputGroupStyle, NumberInputProps, NumberInputSize, NumberInputValues, } from "./NumberInput";
|
|
57
59
|
export { Pagination, getPaginationItems } from "./Pagination";
|
|
@@ -95,3 +97,4 @@ export type { TypographyFontWeight, TypographyProps, TypographyResponsiveSize, T
|
|
|
95
97
|
export { useMediaSizes } from "./hooks/useMediaSizes";
|
|
96
98
|
export { useScrollLock } from "./hooks/useScrollLock";
|
|
97
99
|
export * from "./Icons";
|
|
100
|
+
export type { PopupTestIdProps, TestIdProps } from "./helpers/testId";
|
package/esm/index.js
CHANGED
|
@@ -26,6 +26,7 @@ export { Menu } from './Menu/index.js';
|
|
|
26
26
|
export { MenuItem } from './Menu/components/MenuItem/index.js';
|
|
27
27
|
export { Modal } from './Modal/index.js';
|
|
28
28
|
export { MultiSelect } from './MultiSelect/index.js';
|
|
29
|
+
export { NavigationMenu } from './NavigationMenu/NavigationMenu.js';
|
|
29
30
|
export { NumberInput } from './NumberInput/NumberInput.js';
|
|
30
31
|
export { Pagination } from './Pagination/Pagination.js';
|
|
31
32
|
export { getPaginationItems } from './Pagination/helpers.js';
|
|
@@ -613,7 +613,11 @@
|
|
|
613
613
|
--component-pagination-bg-current: #163300;
|
|
614
614
|
--component-pagination-bg-hover: #EDF0EA;
|
|
615
615
|
--component-pagination-focus-ring: #9FE870;
|
|
616
|
+
--component-navigation-item-text: #163300;
|
|
617
|
+
--component-navigation-item-text-selected: #9FE870;
|
|
618
|
+
--component-navigation-item-bg-hover: #EDF0EA;
|
|
616
619
|
--component-navigation-item-bg-selected: #163300;
|
|
620
|
+
--component-navigation-item-focus-ring: #9FE870;
|
|
617
621
|
--component-chip-bg-selected: #163300;
|
|
618
622
|
--component-chip-bg-selected-strong: #9FE870;
|
|
619
623
|
--palette-black: #163300;
|
|
@@ -613,7 +613,11 @@
|
|
|
613
613
|
--component-pagination-bg-current: #2C2242;
|
|
614
614
|
--component-pagination-bg-hover: #F2F1EE;
|
|
615
615
|
--component-pagination-focus-ring: #FFA8CD;
|
|
616
|
+
--component-navigation-item-text: #2C2242;
|
|
617
|
+
--component-navigation-item-text-selected: #FFA8CD;
|
|
618
|
+
--component-navigation-item-bg-hover: #F2F1EE;
|
|
616
619
|
--component-navigation-item-bg-selected: #2C2242;
|
|
620
|
+
--component-navigation-item-focus-ring: #FFA8CD;
|
|
617
621
|
--component-chip-bg-selected: #2C2242;
|
|
618
622
|
--component-chip-bg-selected-strong: #FFA8CD;
|
|
619
623
|
--palette-black: #2C2242;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A test id a consumer gives a component; the component puts it on its own
|
|
3
|
+
* root element. Fields put it on the native control. Components set no test
|
|
4
|
+
* id of their own. A component without a root of its own takes
|
|
5
|
+
* `PopupTestIdProps` instead.
|
|
6
|
+
*/
|
|
7
|
+
export type TestIdProps = {
|
|
8
|
+
"data-testid"?: string;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* A test id of a popup (`Dropdown`, `Tooltip`): it names the floating panel,
|
|
12
|
+
* which is in the DOM only while open. The trigger is the consumer's own
|
|
13
|
+
* element and keeps its own `data-testid`; the component never writes one on
|
|
14
|
+
* it.
|
|
15
|
+
*/
|
|
16
|
+
export type PopupTestIdProps = {
|
|
17
|
+
"data-testid"?: string;
|
|
18
|
+
};
|
package/index.d.ts
CHANGED
|
@@ -52,6 +52,8 @@ export { Modal, ModalHeader, ModalTitle, ModalBody, ModalFooter, } from "./Modal
|
|
|
52
52
|
export type { ModalProps, ModalHeaderProps, ModalTitleProps, ModalBodyProps, ModalFooterProps, } from "./Modal/index.props";
|
|
53
53
|
export { MultiSelect } from "./MultiSelect";
|
|
54
54
|
export type { MultiSelectProps } from "./MultiSelect/index.props";
|
|
55
|
+
export { NavigationMenu } from "./NavigationMenu";
|
|
56
|
+
export type { NavigationMenuItem, NavigationMenuLayout, NavigationMenuLinkProps, NavigationMenuProps, NavigationMenuRenderLink, NavigationMenuSize, } from "./NavigationMenu";
|
|
55
57
|
export { NumberInput } from "./NumberInput";
|
|
56
58
|
export type { NumberInputGroupStyle, NumberInputProps, NumberInputSize, NumberInputValues, } from "./NumberInput";
|
|
57
59
|
export { Pagination, getPaginationItems } from "./Pagination";
|
|
@@ -95,3 +97,4 @@ export type { TypographyFontWeight, TypographyProps, TypographyResponsiveSize, T
|
|
|
95
97
|
export { useMediaSizes } from "./hooks/useMediaSizes";
|
|
96
98
|
export { useScrollLock } from "./hooks/useScrollLock";
|
|
97
99
|
export * from "./Icons";
|
|
100
|
+
export type { PopupTestIdProps, TestIdProps } from "./helpers/testId";
|
package/index.js
CHANGED
|
@@ -27,6 +27,7 @@ var index$e = require('./Menu/index.js');
|
|
|
27
27
|
var index$f = require('./Menu/components/MenuItem/index.js');
|
|
28
28
|
var index$g = require('./Modal/index.js');
|
|
29
29
|
var index$l = require('./MultiSelect/index.js');
|
|
30
|
+
require('./NavigationMenu/index.js');
|
|
30
31
|
require('./NumberInput/index.js');
|
|
31
32
|
require('./Pagination/index.js');
|
|
32
33
|
var index$m = require('./Portal/index.js');
|
|
@@ -81,6 +82,7 @@ var index$i = require('./Modal/components/Footer/index.js');
|
|
|
81
82
|
var index$j = require('./Modal/components/Header/index.js');
|
|
82
83
|
var index$k = require('./Modal/components/Title/index.js');
|
|
83
84
|
var More = require('./Icons/More.js');
|
|
85
|
+
var NavigationMenu = require('./NavigationMenu/NavigationMenu.js');
|
|
84
86
|
var NumberInput = require('./NumberInput/NumberInput.js');
|
|
85
87
|
var Pagination = require('./Pagination/Pagination.js');
|
|
86
88
|
var Pipette = require('./Icons/Pipette.js');
|
|
@@ -174,6 +176,7 @@ exports.ModalFooter = index$i.Footer;
|
|
|
174
176
|
exports.ModalHeader = index$j.Header;
|
|
175
177
|
exports.ModalTitle = index$k.Title;
|
|
176
178
|
exports.More = More.More;
|
|
179
|
+
exports.NavigationMenu = NavigationMenu.NavigationMenu;
|
|
177
180
|
exports.NumberInput = NumberInput.NumberInput;
|
|
178
181
|
exports.Pagination = Pagination.Pagination;
|
|
179
182
|
exports.Pipette = Pipette.Pipette;
|
package/package.json
CHANGED
package/theme_ba_variables.css
CHANGED
|
@@ -613,7 +613,11 @@
|
|
|
613
613
|
--component-pagination-bg-current: #163300;
|
|
614
614
|
--component-pagination-bg-hover: #EDF0EA;
|
|
615
615
|
--component-pagination-focus-ring: #9FE870;
|
|
616
|
+
--component-navigation-item-text: #163300;
|
|
617
|
+
--component-navigation-item-text-selected: #9FE870;
|
|
618
|
+
--component-navigation-item-bg-hover: #EDF0EA;
|
|
616
619
|
--component-navigation-item-bg-selected: #163300;
|
|
620
|
+
--component-navigation-item-focus-ring: #9FE870;
|
|
617
621
|
--component-chip-bg-selected: #163300;
|
|
618
622
|
--component-chip-bg-selected-strong: #9FE870;
|
|
619
623
|
--palette-black: #163300;
|
|
@@ -613,7 +613,11 @@
|
|
|
613
613
|
--component-pagination-bg-current: #2C2242;
|
|
614
614
|
--component-pagination-bg-hover: #F2F1EE;
|
|
615
615
|
--component-pagination-focus-ring: #FFA8CD;
|
|
616
|
+
--component-navigation-item-text: #2C2242;
|
|
617
|
+
--component-navigation-item-text-selected: #FFA8CD;
|
|
618
|
+
--component-navigation-item-bg-hover: #F2F1EE;
|
|
616
619
|
--component-navigation-item-bg-selected: #2C2242;
|
|
620
|
+
--component-navigation-item-focus-ring: #FFA8CD;
|
|
617
621
|
--component-chip-bg-selected: #2C2242;
|
|
618
622
|
--component-chip-bg-selected-strong: #FFA8CD;
|
|
619
623
|
--palette-black: #2C2242;
|