@ansible/ansible-ui-framework 2.4.2674 → 2.4.2675
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/{ChatbotPortal-Cfq-p-v8.js → ChatbotPortal-cHwD_ZwP.js} +5 -4
- package/{ChatbotSideBarHeader-B3TIGVb6.js → ChatbotSideBarHeader-D4mMyQky.js} +10 -9
- package/PageActions/PageAction.d.ts +0 -2
- package/{PageNavigation → PageApp}/PageApp.d.ts +1 -1
- package/PageDashboard/PageDonutChart.d.ts +1 -1
- package/PageDialogs/PageDialog.d.ts +1 -0
- package/PageForm/Inputs/PageFormMultiInput.d.ts +2 -2
- package/PageForm/Inputs/PageFormSwitch.d.ts +0 -1
- package/PageNavigation/PageNavigation.d.ts +0 -1
- package/PageNavigation/PageNavigationItem.d.ts +2 -1
- package/PageNotifications/PageNotification.d.ts +10 -0
- package/PageNotifications/PageNotificationGroup.d.ts +8 -0
- package/PageNotifications/PageNotificationsDrawer.d.ts +1 -0
- package/PageNotifications/usePageNotifications.d.ts +9 -0
- package/PageTable/PageTable.d.ts +0 -2
- package/PageToolbar/PageToolbar.d.ts +0 -1
- package/components/Scrollable.d.ts +20 -6
- package/components/pfcolors.d.ts +13 -11
- package/{index-C2a2GgiI.js → index-3eRL2TwX.js} +13947 -14012
- package/index.css +1 -1
- package/index.d.ts +1 -1
- package/index.js +41 -39
- package/index.umd.cjs +318 -278
- package/package.json +1 -1
- package/publish/ChatbotPortal-cHwD_ZwP.d.ts +4 -0
- package/publish/ChatbotSideBarHeader-D4mMyQky.d.ts +2 -0
- package/publish/index-3eRL2TwX.d.ts +354 -0
- package/publish/index.d.ts +154 -152
- package/PageNotifications/PageNotificationsProvider.d.ts +0 -27
- package/publish/ChatbotPortal-Cfq-p-v8.d.ts +0 -4
- package/publish/ChatbotSideBarHeader-B3TIGVb6.d.ts +0 -2
- package/publish/index-C2a2GgiI.d.ts +0 -347
@@ -1,10 +1,11 @@
|
|
1
|
-
import { u as a, j as e, d as i } from "./index-
|
2
|
-
import { t as
|
1
|
+
import { u as a, j as e, d as i } from "./index-3eRL2TwX.js";
|
2
|
+
import { t as r, a as s, X as o } from "./ansible-chatbot-jXPBfTRi.js";
|
3
3
|
import "@patternfly/react-core";
|
4
4
|
import "react";
|
5
|
-
import "@patternfly/react-icons";
|
6
5
|
import "react-router";
|
7
|
-
|
6
|
+
import "@patternfly/react-icons";
|
7
|
+
import "@patternfly/react-table";
|
8
|
+
const n = i.img`
|
8
9
|
height: 40px;
|
9
10
|
display: inline-block;
|
10
11
|
vertical-align: middle;
|
@@ -15,19 +16,19 @@ const o = i.img`
|
|
15
16
|
`, d = i.span`
|
16
17
|
display: inline-block;
|
17
18
|
vertical-align: middle;
|
18
|
-
`,
|
19
|
+
`, u = () => {
|
19
20
|
const { activeTheme: t } = a();
|
20
21
|
return /* @__PURE__ */ e.jsxs(l, { children: [
|
21
22
|
/* @__PURE__ */ e.jsx(
|
22
|
-
|
23
|
+
n,
|
23
24
|
{
|
24
|
-
src: String(t === "dark" ?
|
25
|
+
src: String(t === "dark" ? r : s),
|
25
26
|
alt: "Lightspeed Logo"
|
26
27
|
}
|
27
28
|
),
|
28
|
-
/* @__PURE__ */ e.jsx(d, { children:
|
29
|
+
/* @__PURE__ */ e.jsx(d, { children: o })
|
29
30
|
] });
|
30
31
|
};
|
31
32
|
export {
|
32
|
-
|
33
|
+
u as default
|
33
34
|
};
|
@@ -70,7 +70,6 @@ export interface IPageActionSwitch extends IPageActionNoneCommon {
|
|
70
70
|
onToggle: (enable: boolean) => unknown;
|
71
71
|
isSwitchOn: () => boolean;
|
72
72
|
showPinnedLabel?: boolean;
|
73
|
-
labelOff?: string;
|
74
73
|
isReversed?: boolean;
|
75
74
|
ariaLabel: (isEnabled: boolean) => string;
|
76
75
|
}
|
@@ -79,7 +78,6 @@ export interface IPageActionSwitchSingle<T extends object> extends IPageActionSi
|
|
79
78
|
onToggle: (item: T, enable: boolean) => unknown;
|
80
79
|
isSwitchOn: (item: T) => boolean;
|
81
80
|
showPinnedLabel?: boolean;
|
82
|
-
labelOff?: string;
|
83
81
|
isReversed?: boolean;
|
84
82
|
ariaLabel: (isEnabled: boolean) => string;
|
85
83
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ReactNode } from 'react';
|
2
|
-
import { PageNavigationItem } from '
|
2
|
+
import { PageNavigationItem } from '../PageNavigation/PageNavigationItem';
|
3
3
|
export declare function PageApp(props: {
|
4
4
|
masthead?: ReactNode;
|
5
5
|
navigation: PageNavigationItem[];
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ChartDonutProps } from '@patternfly/react-charts';
|
1
|
+
import { ChartDonutProps } from '@patternfly/react-charts/victory';
|
2
2
|
export declare function PageDonutChart(props: Omit<ChartDonutProps, 'width' | 'height'> & {
|
3
3
|
total: number;
|
4
4
|
}): import("react/jsx-runtime").JSX.Element;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { LabelGroupProps } from '@patternfly/react-core';
|
2
2
|
import { FieldPathByValue, FieldValues, Validate, ValidationRule } from 'react-hook-form';
|
3
3
|
import { PageFormGroupProps } from './PageFormGroup';
|
4
4
|
export type PageFormMultiInputProps<T, TFieldValues extends FieldValues = FieldValues, TFieldName extends FieldPathByValue<TFieldValues, T[]> = FieldPathByValue<TFieldValues, T[]>> = {
|
@@ -12,7 +12,7 @@ export type PageFormMultiInputProps<T, TFieldValues extends FieldValues = FieldV
|
|
12
12
|
isDisabled?: boolean;
|
13
13
|
selectOpen?: (callback: (selection: T[]) => void, title: string) => void;
|
14
14
|
getChipLabel: (item: T) => string;
|
15
|
-
} & Omit<PageFormGroupProps, 'onChange' | 'value'> &
|
15
|
+
} & Omit<PageFormGroupProps, 'onChange' | 'value'> & LabelGroupProps;
|
16
16
|
export declare function PageFormMultiInput<T extends {
|
17
17
|
id: number | string;
|
18
18
|
}, TFieldValues extends FieldValues = FieldValues, TFieldName extends FieldPathByValue<TFieldValues, T[]> = FieldPathByValue<TFieldValues, T[]>>(props: PageFormMultiInputProps<T, TFieldValues, TFieldName>): import("react/jsx-runtime").JSX.Element;
|
@@ -13,6 +13,5 @@ export type PageFormSwitchProps<TFieldValues extends FieldValues = FieldValues,
|
|
13
13
|
validate?: Validate<string, TFieldValues> | Record<string, Validate<string, TFieldValues>>;
|
14
14
|
autoFocus?: boolean;
|
15
15
|
labelOn?: string;
|
16
|
-
labelOff?: string;
|
17
16
|
};
|
18
17
|
export declare function PageFormSwitch<TFieldValues extends FieldValues = FieldValues, TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>(props: PageFormSwitchProps<TFieldValues, TFieldName>): import("react/jsx-runtime").JSX.Element;
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { LabelColor } from '../components/pfcolors';
|
1
2
|
interface PageNavigationGroup {
|
2
3
|
id?: string;
|
3
4
|
label?: string;
|
@@ -15,7 +16,7 @@ interface PageNavigationComponent {
|
|
15
16
|
element: JSX.Element;
|
16
17
|
hidden?: boolean;
|
17
18
|
badge?: string;
|
18
|
-
badgeColor?:
|
19
|
+
badgeColor?: LabelColor;
|
19
20
|
href?: string;
|
20
21
|
}
|
21
22
|
export type PageNavigationItem = PageNavigationGroup | PageNavigationComponent;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
export interface IPageNotification {
|
2
|
+
title: string;
|
3
|
+
description?: string | undefined;
|
4
|
+
timestamp?: string;
|
5
|
+
variant?: 'success' | 'danger' | 'warning' | 'info';
|
6
|
+
to: string;
|
7
|
+
}
|
8
|
+
export declare function PageNotification(props: {
|
9
|
+
notification: IPageNotification;
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { IPageNotification } from './PageNotification';
|
2
|
+
export interface IPageNotificationGroup {
|
3
|
+
title: string;
|
4
|
+
notifications: IPageNotification[];
|
5
|
+
}
|
6
|
+
export declare function PageNotificationGroup(props: {
|
7
|
+
group: IPageNotificationGroup;
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function PageNotificationsDrawer(): import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { IPageNotificationGroup } from './PageNotificationGroup';
|
2
|
+
interface IPageNotifications {
|
3
|
+
notificationsDrawerOpen: boolean;
|
4
|
+
setNotificationsDrawerOpen: (setter: ((notificationsDrawerOpen: boolean) => boolean) | boolean) => void;
|
5
|
+
notificationGroups: Record<string, IPageNotificationGroup>;
|
6
|
+
setNotificationGroups: (setter: (notificationGroups: Record<string, IPageNotificationGroup>) => Record<string, IPageNotificationGroup>) => void;
|
7
|
+
}
|
8
|
+
export declare const usePageNotifications: import("zustand").UseBoundStore<import("zustand").StoreApi<IPageNotifications>>;
|
9
|
+
export {};
|
package/PageTable/PageTable.d.ts
CHANGED
@@ -44,7 +44,6 @@ export type PageTableCommonProps<T extends object> = {
|
|
44
44
|
disableListView?: boolean;
|
45
45
|
disableCardView?: boolean;
|
46
46
|
defaultTableView?: PageTableViewType;
|
47
|
-
hideTable?: boolean;
|
48
47
|
disableBodyPadding?: boolean;
|
49
48
|
disablePagination?: boolean;
|
50
49
|
defaultSubtitle?: ReactNode;
|
@@ -53,7 +52,6 @@ export type PageTableCommonProps<T extends object> = {
|
|
53
52
|
maxSelections?: number;
|
54
53
|
topContent?: React.ReactNode;
|
55
54
|
toolbarContent?: React.ReactNode;
|
56
|
-
scrollTopContent?: boolean;
|
57
55
|
limitFiltersToOneOrOperation?: boolean;
|
58
56
|
defaultExpandedRows?: boolean;
|
59
57
|
};
|
@@ -2,7 +2,6 @@ import { PerPageOptions } from '@patternfly/react-core';
|
|
2
2
|
import React, { Dispatch, SetStateAction } from 'react';
|
3
3
|
import { IPageAction } from '../PageActions/PageAction';
|
4
4
|
import { PageTableViewType } from './PageTableViewType';
|
5
|
-
import './PageToolbar.css';
|
6
5
|
import { IFilterState, IToolbarFilter } from './PageToolbarFilter';
|
7
6
|
import { PageTableSortOption } from './PageToolbarSort';
|
8
7
|
export type PageToolbarProps<T extends object> = {
|
@@ -1,9 +1,23 @@
|
|
1
|
-
import {
|
2
|
-
|
1
|
+
import { ReactNode } from 'react';
|
2
|
+
interface ScrollableState {
|
3
|
+
stickyLeft: number;
|
4
|
+
stickyRight: number;
|
5
|
+
stickyTop: number;
|
6
|
+
stickyBottom: number;
|
7
|
+
}
|
8
|
+
export declare function useScrollableState(): [ScrollableState, import("react").Dispatch<import("react").SetStateAction<ScrollableState>>];
|
3
9
|
export declare function Scrollable(props: {
|
4
|
-
children?: ReactNode;
|
5
10
|
className?: string;
|
6
|
-
|
7
|
-
|
8
|
-
|
11
|
+
children?: ReactNode;
|
12
|
+
onScroll?: (scroll: {
|
13
|
+
left: number;
|
14
|
+
right: number;
|
15
|
+
top: number;
|
16
|
+
bottom: number;
|
17
|
+
}) => void;
|
18
|
+
marginTop?: number;
|
19
|
+
marginBottom?: number;
|
20
|
+
marginRight?: number;
|
21
|
+
marginLeft?: number;
|
9
22
|
}): import("react/jsx-runtime").JSX.Element;
|
23
|
+
export {};
|
package/components/pfcolors.d.ts
CHANGED
@@ -13,21 +13,23 @@ export declare enum PFColorE {
|
|
13
13
|
Disabled = "disabled"
|
14
14
|
}
|
15
15
|
export type PFColor = 'default' | 'green' | 'success' | 'blue' | 'info' | 'red' | 'danger' | 'yellow' | 'orange' | 'warning' | 'grey' | 'disabled';
|
16
|
-
export declare function getPatternflyColor(color: PFColor): "var(--pf-
|
17
|
-
export declare const pfSuccess = "var(--pf-
|
18
|
-
export declare const pfDanger = "var(--pf-
|
19
|
-
export declare const pfWarning = "var(--pf-
|
20
|
-
export declare const pfInfo = "var(--pf-
|
21
|
-
export declare const pfDisabled = "var(--pf-
|
22
|
-
export declare const pfLink = "var(--pf-
|
23
|
-
export declare const pfUnreachable = "var(--pf-
|
16
|
+
export declare function getPatternflyColor(color: PFColor): "var(--pf-t--global--color--status--success--default)" | "var(--pf-t--global--color--status--danger--default)" | "var(--pf-t--global--color--status--warning--default)" | "var(--pf-t--global--color--status--info--default)" | "var(--pf-t--global--text--color--disabled)" | undefined;
|
17
|
+
export declare const pfSuccess = "var(--pf-t--global--color--status--success--default)";
|
18
|
+
export declare const pfDanger = "var(--pf-t--global--color--status--danger--default)";
|
19
|
+
export declare const pfWarning = "var(--pf-t--global--color--status--warning--default)";
|
20
|
+
export declare const pfInfo = "var(--pf-t--global--color--status--info--default)";
|
21
|
+
export declare const pfDisabled = "var(--pf-t--global--text--color--disabled)";
|
22
|
+
export declare const pfLink = "var(--pf-t--global--text--color--link--default)";
|
23
|
+
export declare const pfUnreachable = "var(--pf-t--global--color--status--danger--default)";
|
24
24
|
export declare enum LabelColorE {
|
25
25
|
blue = "blue",
|
26
|
-
|
26
|
+
teal = "teal",
|
27
27
|
green = "green",
|
28
28
|
orange = "orange",
|
29
29
|
purple = "purple",
|
30
30
|
red = "red",
|
31
|
-
|
31
|
+
orangered = "orangered",
|
32
|
+
grey = "grey",
|
33
|
+
yellow = "yellow"
|
32
34
|
}
|
33
|
-
export type LabelColor = 'blue' | '
|
35
|
+
export type LabelColor = 'blue' | 'teal' | 'green' | 'orange' | 'purple' | 'red' | 'orangered' | 'grey' | 'yellow';
|