@fluidattacks/design 9.2.0 → 9.3.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/components/selectable-list/index.d.ts +4 -0
- package/dist/components/selectable-list/index.js +97 -0
- package/dist/components/selectable-list/index.stories.d.ts +6 -0
- package/dist/components/selectable-list/index.test.d.ts +1 -0
- package/dist/components/selectable-list/styles.d.ts +9 -0
- package/dist/components/selectable-list/styles.js +62 -0
- package/dist/components/selectable-list/types.d.ts +35 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +145 -143
- package/package.json +1 -1
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ISelectableListItem, ISelectableListProps } from './types';
|
|
2
|
+
declare const SelectableList: ({ counter, emptyText, items, maxHeight, name, onChange, searchPlaceholder, selected, }: Readonly<ISelectableListProps>) => JSX.Element;
|
|
3
|
+
export { SelectableList };
|
|
4
|
+
export type { ISelectableListItem, ISelectableListProps };
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { jsxs as s, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { useState as C, useMemo as x, useCallback as m } from "react";
|
|
3
|
+
import { useTheme as L } from "styled-components";
|
|
4
|
+
import { StyledListHeader as z, StyledList as $, StyledListRow as k, StyledRowContent as j } from "./styles.js";
|
|
5
|
+
import { Checkbox as H } from "../checkbox/index.js";
|
|
6
|
+
import { Search as R } from "../search/index.js";
|
|
7
|
+
import "../typography/heading/index.js";
|
|
8
|
+
import "../typography/span/index.js";
|
|
9
|
+
import { Text as i } from "../typography/text/index.js";
|
|
10
|
+
const I = ({
|
|
11
|
+
counter: v,
|
|
12
|
+
emptyText: d,
|
|
13
|
+
items: r,
|
|
14
|
+
maxHeight: y = "20rem",
|
|
15
|
+
name: h,
|
|
16
|
+
onChange: p,
|
|
17
|
+
searchPlaceholder: g,
|
|
18
|
+
selected: o
|
|
19
|
+
}) => {
|
|
20
|
+
const t = L(), [c, S] = C(""), u = x(() => {
|
|
21
|
+
const e = c.trim().toLowerCase();
|
|
22
|
+
return r.filter(
|
|
23
|
+
(a) => a.label.toLowerCase().includes(e)
|
|
24
|
+
);
|
|
25
|
+
}, [r, c]), f = r.filter(
|
|
26
|
+
(e) => o.has(e.value)
|
|
27
|
+
).length, b = m(
|
|
28
|
+
(e) => {
|
|
29
|
+
S(e.target.value);
|
|
30
|
+
},
|
|
31
|
+
[]
|
|
32
|
+
), w = m(
|
|
33
|
+
(e) => {
|
|
34
|
+
const { value: a } = e.target, n = new Set(o);
|
|
35
|
+
n.has(a) ? n.delete(a) : n.add(a), p(n);
|
|
36
|
+
},
|
|
37
|
+
[p, o]
|
|
38
|
+
);
|
|
39
|
+
return /* @__PURE__ */ s("div", { children: [
|
|
40
|
+
/* @__PURE__ */ s(z, { children: [
|
|
41
|
+
/* @__PURE__ */ l(
|
|
42
|
+
R,
|
|
43
|
+
{
|
|
44
|
+
name: `${h}-search`,
|
|
45
|
+
onChange: b,
|
|
46
|
+
placeholder: g,
|
|
47
|
+
value: c
|
|
48
|
+
}
|
|
49
|
+
),
|
|
50
|
+
/* @__PURE__ */ l(
|
|
51
|
+
i,
|
|
52
|
+
{
|
|
53
|
+
"aria-live": "polite",
|
|
54
|
+
color: t.palette.gray[600],
|
|
55
|
+
display: "inline",
|
|
56
|
+
size: "md",
|
|
57
|
+
whiteSpace: "nowrap",
|
|
58
|
+
children: v(f, r.length)
|
|
59
|
+
}
|
|
60
|
+
)
|
|
61
|
+
] }),
|
|
62
|
+
u.length === 0 && d !== void 0 ? /* @__PURE__ */ l(i, { color: t.palette.gray[600], py: 1, size: "md", children: d }) : /* @__PURE__ */ l($, { $maxHeight: y, children: u.map((e) => /* @__PURE__ */ l(k, { children: /* @__PURE__ */ l(
|
|
63
|
+
H,
|
|
64
|
+
{
|
|
65
|
+
"aria-label": e.label,
|
|
66
|
+
checked: o.has(e.value),
|
|
67
|
+
label: /* @__PURE__ */ s(j, { children: [
|
|
68
|
+
/* @__PURE__ */ l(
|
|
69
|
+
i,
|
|
70
|
+
{
|
|
71
|
+
color: t.palette.gray[800],
|
|
72
|
+
display: "inline",
|
|
73
|
+
size: "md",
|
|
74
|
+
children: e.label
|
|
75
|
+
}
|
|
76
|
+
),
|
|
77
|
+
e.secondary === void 0 ? void 0 : /* @__PURE__ */ l(
|
|
78
|
+
i,
|
|
79
|
+
{
|
|
80
|
+
color: t.palette.gray[600],
|
|
81
|
+
display: "inline",
|
|
82
|
+
size: "md",
|
|
83
|
+
whiteSpace: "nowrap",
|
|
84
|
+
children: e.secondary
|
|
85
|
+
}
|
|
86
|
+
)
|
|
87
|
+
] }),
|
|
88
|
+
name: `${h}-${e.value}`,
|
|
89
|
+
onChange: w,
|
|
90
|
+
value: e.value
|
|
91
|
+
}
|
|
92
|
+
) }, e.value)) })
|
|
93
|
+
] });
|
|
94
|
+
};
|
|
95
|
+
export {
|
|
96
|
+
I as SelectableList
|
|
97
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react-vite';
|
|
2
|
+
import { ISelectableListProps } from './types';
|
|
3
|
+
declare const config: Meta;
|
|
4
|
+
declare const Default: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, ISelectableListProps>;
|
|
5
|
+
export { Default };
|
|
6
|
+
export default config;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const StyledListHeader: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
2
|
+
declare const StyledList: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "$maxHeight"> & {
|
|
3
|
+
$maxHeight: string;
|
|
4
|
+
}, never> & Partial<Pick<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "$maxHeight"> & {
|
|
5
|
+
$maxHeight: string;
|
|
6
|
+
}, never>>> & string;
|
|
7
|
+
declare const StyledListRow: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, never> & Partial<Pick<import('react').DetailedHTMLProps<import('react').LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, never>>> & string;
|
|
8
|
+
declare const StyledRowContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never> & Partial<Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>>> & string;
|
|
9
|
+
export { StyledList, StyledListHeader, StyledListRow, StyledRowContent };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { styled as e } from "styled-components";
|
|
2
|
+
const n = e.div`
|
|
3
|
+
align-items: center;
|
|
4
|
+
display: flex;
|
|
5
|
+
gap: ${({ theme: t }) => t.spacing[1]};
|
|
6
|
+
justify-content: space-between;
|
|
7
|
+
margin-bottom: ${({ theme: t }) => t.spacing[0.75]};
|
|
8
|
+
|
|
9
|
+
& > :first-child {
|
|
10
|
+
flex: 1;
|
|
11
|
+
min-width: 0;
|
|
12
|
+
}
|
|
13
|
+
`, l = e.ul`
|
|
14
|
+
${({ theme: t, $maxHeight: i }) => `
|
|
15
|
+
border-bottom: 1px solid ${t.palette.gray[200]};
|
|
16
|
+
list-style: none;
|
|
17
|
+
margin: 0;
|
|
18
|
+
max-height: ${i};
|
|
19
|
+
overflow-y: auto;
|
|
20
|
+
padding: 0;
|
|
21
|
+
`}
|
|
22
|
+
`, a = e.li`
|
|
23
|
+
${({ theme: t }) => `
|
|
24
|
+
border-bottom: 1px solid ${t.palette.gray[200]};
|
|
25
|
+
|
|
26
|
+
&:last-child {
|
|
27
|
+
border-bottom: none;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&:hover {
|
|
31
|
+
background-color: ${t.palette.gray[25]};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&:has(input:focus-visible) {
|
|
35
|
+
outline: 2px solid ${t.palette.gray[800]};
|
|
36
|
+
outline-offset: -2px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.parent-checkbox {
|
|
40
|
+
display: flex;
|
|
41
|
+
width: 100%;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.parent-checkbox > label {
|
|
45
|
+
flex: 1;
|
|
46
|
+
padding: ${t.spacing[0.75]} ${t.spacing[1]};
|
|
47
|
+
}
|
|
48
|
+
`}
|
|
49
|
+
`, s = e.span`
|
|
50
|
+
align-items: center;
|
|
51
|
+
display: flex;
|
|
52
|
+
flex: 1;
|
|
53
|
+
gap: ${({ theme: t }) => t.spacing[1]};
|
|
54
|
+
justify-content: space-between;
|
|
55
|
+
min-width: 0;
|
|
56
|
+
`;
|
|
57
|
+
export {
|
|
58
|
+
l as StyledList,
|
|
59
|
+
n as StyledListHeader,
|
|
60
|
+
a as StyledListRow,
|
|
61
|
+
s as StyledRowContent
|
|
62
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selectable list item props.
|
|
3
|
+
* @interface ISelectableListItem
|
|
4
|
+
* @property { string } label - The row's text, also what the search filters on.
|
|
5
|
+
* @property { string } [secondary] - Right-aligned detail, such as "5 repositories".
|
|
6
|
+
* @property { string } value - Unique key stored in the selection.
|
|
7
|
+
*/
|
|
8
|
+
interface ISelectableListItem {
|
|
9
|
+
label: string;
|
|
10
|
+
secondary?: string;
|
|
11
|
+
value: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Selectable list component props.
|
|
15
|
+
* @interface ISelectableListProps
|
|
16
|
+
* @property { Function } counter - Formats the header counter from the number of selected items and the number of items, e.g. "2 of 5 groups selected"; both ignore the search.
|
|
17
|
+
* @property { string } [emptyText] - Shown in place of the rows when the search matches nothing.
|
|
18
|
+
* @property { ISelectableListItem[] } items - The rows, in display order.
|
|
19
|
+
* @property { string } [maxHeight] - Height past which the rows scroll inside the list. Defaults to "20rem".
|
|
20
|
+
* @property { string } name - Prefix for the inputs' names and ids; must be unique on the page.
|
|
21
|
+
* @property { Function } onChange - Called with the next selection; the owner must write it back to `selected`.
|
|
22
|
+
* @property { string } [searchPlaceholder] - Placeholder of the search input.
|
|
23
|
+
* @property { ReadonlySet<string> } selected - Values of the checked items. Values hidden by the search stay selected.
|
|
24
|
+
*/
|
|
25
|
+
interface ISelectableListProps {
|
|
26
|
+
counter: (selectedCount: number, total: number) => string;
|
|
27
|
+
emptyText?: string;
|
|
28
|
+
items: ISelectableListItem[];
|
|
29
|
+
maxHeight?: string;
|
|
30
|
+
name: string;
|
|
31
|
+
onChange: (next: ReadonlySet<string>) => void;
|
|
32
|
+
searchPlaceholder?: string;
|
|
33
|
+
selected: ReadonlySet<string>;
|
|
34
|
+
}
|
|
35
|
+
export type { ISelectableListItem, ISelectableListProps };
|
package/dist/index.d.ts
CHANGED
|
@@ -65,6 +65,7 @@ export * from './components/search';
|
|
|
65
65
|
export * from './components/search-dropdown';
|
|
66
66
|
export * from './components/segmented-control';
|
|
67
67
|
export * from './components/segmented-progress-bar';
|
|
68
|
+
export * from './components/selectable-list';
|
|
68
69
|
export * from './components/severity-badge';
|
|
69
70
|
export * from './components/severity-indicator';
|
|
70
71
|
export * from './components/severity-overview';
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import './assets/styles/global.css';/* empty css */
|
|
|
2
2
|
import { variantBuilder as t } from "./components/@core/variants/utils.js";
|
|
3
3
|
import { hiddenProps as m } from "./components/@core/constants.js";
|
|
4
4
|
import { BaseButtonComponent as x, BaseComponent as a, BaseSpanComponent as n, BaseTextComponent as i } from "./components/@core/styles.js";
|
|
5
|
-
import { getStyledConfig as l, setBorder as u, setDisplay as d, setInteraction as C, setMargin as
|
|
5
|
+
import { getStyledConfig as l, setBorder as u, setDisplay as d, setInteraction as C, setMargin as c, setPadding as g, setPosition as S, setText as T } from "./components/@core/utils.js";
|
|
6
6
|
import { Accordion as b } from "./components/accordion/index.js";
|
|
7
7
|
import { AdvancedBadge as h } from "./components/advanced-badge/index.js";
|
|
8
8
|
import { AdvisoriesCard as D } from "./components/advisories-card/index.js";
|
|
@@ -27,7 +27,7 @@ import { CustomThemeProvider as xr, icons as ar, theme as nr } from "./component
|
|
|
27
27
|
import { ComparisonTable as sr } from "./components/comparison-table/index.js";
|
|
28
28
|
import { useConditionsDialog as ur } from "./components/conditions-dialog/index.js";
|
|
29
29
|
import { useConfirmDialog as Cr } from "./components/confirm-dialog/index.js";
|
|
30
|
-
import { Container as
|
|
30
|
+
import { Container as gr } from "./components/container/index.js";
|
|
31
31
|
import { CopyButton as Tr } from "./components/copy-button/index.js";
|
|
32
32
|
import { Divider as br } from "./components/divider/index.js";
|
|
33
33
|
import { Drawer as hr } from "./components/drawer/index.js";
|
|
@@ -53,7 +53,7 @@ import { InputSection as xo } from "./components/inputs/fields/input-section/ind
|
|
|
53
53
|
import { InputTags as no } from "./components/inputs/fields/input-tags/index.js";
|
|
54
54
|
import { InputNumber as so } from "./components/inputs/fields/number/index.js";
|
|
55
55
|
import { InputNumberRange as uo } from "./components/inputs/fields/number-range/index.js";
|
|
56
|
-
import { PhoneInput as
|
|
56
|
+
import { PhoneInput as co } from "./components/inputs/fields/phone/index.js";
|
|
57
57
|
import { TextArea as So } from "./components/inputs/fields/text-area/index.js";
|
|
58
58
|
import { TextInput as Io } from "./components/inputs/fields/text-input/index.js";
|
|
59
59
|
import { OutlineContainer as Bo } from "./components/inputs/outline-container/index.js";
|
|
@@ -79,7 +79,7 @@ import { OAuthSelector as ae } from "./components/oauth-selector/index.js";
|
|
|
79
79
|
import { OptionCard as ie } from "./components/option-card/index.js";
|
|
80
80
|
import { PackageCard as le } from "./components/package-card/index.js";
|
|
81
81
|
import { PaginatorDb as de } from "./components/paginator-db/index.js";
|
|
82
|
-
import { PremiumFeature as
|
|
82
|
+
import { PremiumFeature as ce } from "./components/premium-feature/index.js";
|
|
83
83
|
import { PriorityCards as Se } from "./components/priority-cards/index.js";
|
|
84
84
|
import { PriorityScore as Ie } from "./components/priority-score/index.js";
|
|
85
85
|
import { ProgressBar as Be } from "./components/progress-bar/index.js";
|
|
@@ -93,66 +93,67 @@ import { Search as Ee } from "./components/search/index.js";
|
|
|
93
93
|
import { SearchDropdown as We } from "./components/search-dropdown/index.js";
|
|
94
94
|
import { SegmentedControl as Ue } from "./components/segmented-control/index.js";
|
|
95
95
|
import { SegmentedProgressBar as Ge } from "./components/segmented-progress-bar/index.js";
|
|
96
|
-
import {
|
|
97
|
-
import {
|
|
98
|
-
import {
|
|
99
|
-
import {
|
|
100
|
-
import {
|
|
101
|
-
import {
|
|
102
|
-
import {
|
|
103
|
-
import {
|
|
104
|
-
import {
|
|
105
|
-
import {
|
|
106
|
-
import {
|
|
107
|
-
import {
|
|
108
|
-
import {
|
|
109
|
-
import {
|
|
110
|
-
import {
|
|
111
|
-
import {
|
|
112
|
-
import {
|
|
113
|
-
import {
|
|
114
|
-
import {
|
|
115
|
-
import {
|
|
116
|
-
import {
|
|
117
|
-
import {
|
|
118
|
-
import {
|
|
119
|
-
import {
|
|
120
|
-
import {
|
|
121
|
-
import {
|
|
122
|
-
import {
|
|
123
|
-
import {
|
|
124
|
-
import {
|
|
125
|
-
import {
|
|
126
|
-
import {
|
|
127
|
-
import {
|
|
128
|
-
import {
|
|
129
|
-
import {
|
|
130
|
-
import {
|
|
131
|
-
import {
|
|
132
|
-
import {
|
|
133
|
-
import {
|
|
134
|
-
import {
|
|
135
|
-
import {
|
|
136
|
-
import {
|
|
137
|
-
import {
|
|
138
|
-
import {
|
|
139
|
-
import {
|
|
140
|
-
import {
|
|
141
|
-
import {
|
|
142
|
-
import {
|
|
143
|
-
import {
|
|
144
|
-
import {
|
|
145
|
-
import {
|
|
146
|
-
import {
|
|
147
|
-
import {
|
|
148
|
-
import {
|
|
149
|
-
import {
|
|
150
|
-
import {
|
|
151
|
-
import {
|
|
152
|
-
import {
|
|
96
|
+
import { SelectableList as Ke } from "./components/selectable-list/index.js";
|
|
97
|
+
import { SeverityBadge as _e } from "./components/severity-badge/index.js";
|
|
98
|
+
import { SeverityIndicator as qe } from "./components/severity-indicator/index.js";
|
|
99
|
+
import { SeverityOverview as Qe } from "./components/severity-overview/index.js";
|
|
100
|
+
import { ShowOnHover as Ze } from "./components/show-on-hover/index.js";
|
|
101
|
+
import { SlideOutMenu as rt } from "./components/slide-out-menu/index.js";
|
|
102
|
+
import { Slider as et } from "./components/slider/index.js";
|
|
103
|
+
import { StepLapse as pt } from "./components/step-lapse/index.js";
|
|
104
|
+
import { Stepper as ft } from "./components/stepper/index.js";
|
|
105
|
+
import { SummaryCard as at } from "./components/summary-card/index.js";
|
|
106
|
+
import { Table as it } from "./components/table/index.js";
|
|
107
|
+
import { TableButton as lt } from "./components/table-button/index.js";
|
|
108
|
+
import { TableContent as dt } from "./components/table-content/index.js";
|
|
109
|
+
import { TableOfContents as ct } from "./components/table-of-contents/index.js";
|
|
110
|
+
import { Tabs as St } from "./components/tabs/index.js";
|
|
111
|
+
import { Tag as It } from "./components/tag/index.js";
|
|
112
|
+
import { TimeLine as Bt } from "./components/timeline/index.js";
|
|
113
|
+
import { Toggle as Ft } from "./components/toggle/index.js";
|
|
114
|
+
import { Tooltip as Pt } from "./components/tooltip/index.js";
|
|
115
|
+
import { Tour as yt, baseStep as Lt, defaultOptions as At } from "./components/tour/index.js";
|
|
116
|
+
import { Tree as kt } from "./components/tree/index.js";
|
|
117
|
+
import { TruncatedList as Ot } from "./components/truncated-list/index.js";
|
|
118
|
+
import { Heading as Et } from "./components/typography/heading/index.js";
|
|
119
|
+
import { Span as Wt } from "./components/typography/span/index.js";
|
|
120
|
+
import { Text as Ut } from "./components/typography/text/index.js";
|
|
121
|
+
import { WeaknessesCard as Gt } from "./components/weaknesses-card/index.js";
|
|
122
|
+
import { DesignsContext as Kt } from "./context/react/index.js";
|
|
123
|
+
import { DesignsProvider as _t } from "./globals/designs-provider/index.js";
|
|
124
|
+
import { GlobalTypography as qt } from "./globals/global-typography/index.js";
|
|
125
|
+
import { DesignTokensCss as Qt } from "./globals/design-tokens-css/index.js";
|
|
126
|
+
import { useActiveSection as Zt } from "./hooks/use-active-section.js";
|
|
127
|
+
import { useCarousel as rp } from "./hooks/use-carousel.js";
|
|
128
|
+
import { useClickOutside as ep } from "./hooks/use-click-outside.js";
|
|
129
|
+
import { useCloudinaryImage as pp } from "./hooks/use-cloudinary-image.js";
|
|
130
|
+
import { useColumnsModal as fp } from "./hooks/use-columns-modal.js";
|
|
131
|
+
import { useDebouncedCallback as ap } from "./hooks/use-debounced-callback.js";
|
|
132
|
+
import { useFiltersValues as ip } from "./hooks/use-filters.js";
|
|
133
|
+
import { useModal as lp } from "./hooks/use-modal.js";
|
|
134
|
+
import { useMountEffect as dp } from "./hooks/use-mount-effect.js";
|
|
135
|
+
import { useSearch as cp } from "./hooks/use-search.js";
|
|
136
|
+
import { formatDate as Sp, formatDateTime as Tp, formatDateTimeInInput as Ip } from "./utils/date.js";
|
|
137
|
+
import { EXCLUDE_TOKEN as Bp, analyzeFilterValue as hp, formatCheckboxesFilterValue as Fp, formatIncludeExcludeFilterValue as Dp, formatTextFilterValue as Pp, getPreservedValues as vp, normalizeCheckboxesFilterValue as yp, parseCheckboxesFilterValue as Lp, parseIncludeExcludeFilterValue as Ap, parseTextFilterValue as Mp } from "./utils/filters.js";
|
|
138
|
+
import { normalizeDate as wp, normalizeNumber as Op } from "./utils/normalizers.js";
|
|
139
|
+
import { openUrl as Ep } from "./utils/open-url.js";
|
|
140
|
+
import { clearStorage as Wp, getPathname as Np, getStorageItem as Up } from "./utils/storage.js";
|
|
141
|
+
import { safeUrl as Gp } from "./utils/url.js";
|
|
142
|
+
import { ActiveFilters as Kp } from "./components/filters/active-filters/index.js";
|
|
143
|
+
import { ColumnsModal as _p } from "./components/modal/columns-modal/index.js";
|
|
144
|
+
import { Controller as qp, useController as Jp, useFieldArray as Qp, useFormContext as Yp, useWatch as Zp } from "./node_modules/react-hook-form/dist/index.esm.js";
|
|
145
|
+
import { InnerForm as rm } from "./components/form/inner-form/index.js";
|
|
146
|
+
import { ItemContent as em } from "./components/table-content/item-content/index.js";
|
|
147
|
+
import { ListItemsWrapper as pm } from "./components/list-item/styles.js";
|
|
148
|
+
import { ModalConfirm as fm } from "./components/modal/modal-confirm/index.js";
|
|
149
|
+
import { ModalFooter as am } from "./components/modal/footer/index.js";
|
|
150
|
+
import { ProgressStep as im } from "./components/progress-indicator/step/index.js";
|
|
151
|
+
import { TimeLineCard as lm } from "./components/timeline/card/index.js";
|
|
152
|
+
import { partitionFilters as dm } from "./components/filters/utils.js";
|
|
153
|
+
import { useNumberFormatter as cm } from "./node_modules/react-aria/dist/private/i18n/useNumberFormatter.js";
|
|
153
154
|
export {
|
|
154
155
|
b as Accordion,
|
|
155
|
-
|
|
156
|
+
Kp as ActiveFilters,
|
|
156
157
|
h as AdvancedBadge,
|
|
157
158
|
D as AdvisoriesCard,
|
|
158
159
|
v as Alert,
|
|
@@ -179,20 +180,20 @@ export {
|
|
|
179
180
|
tr as CodeSnippet,
|
|
180
181
|
Oo as Col,
|
|
181
182
|
mr as CollapsibleCard,
|
|
182
|
-
|
|
183
|
+
_p as ColumnsModal,
|
|
183
184
|
jr as ComboBox,
|
|
184
185
|
sr as ComparisonTable,
|
|
185
|
-
|
|
186
|
-
|
|
186
|
+
gr as Container,
|
|
187
|
+
qp as Controller,
|
|
187
188
|
Tr as CopyButton,
|
|
188
189
|
xr as CustomThemeProvider,
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
190
|
+
Qt as DesignTokensCss,
|
|
191
|
+
Kt as DesignsContext,
|
|
192
|
+
_t as DesignsProvider,
|
|
192
193
|
br as Divider,
|
|
193
194
|
hr as Drawer,
|
|
194
195
|
Dr as Dropdown,
|
|
195
|
-
|
|
196
|
+
Bp as EXCLUDE_TOKEN,
|
|
196
197
|
oo as Editable,
|
|
197
198
|
vr as EmptyState,
|
|
198
199
|
Fo as ErrorMessage,
|
|
@@ -201,15 +202,15 @@ export {
|
|
|
201
202
|
wr as Filters,
|
|
202
203
|
Vr as Form,
|
|
203
204
|
Eo as Gap,
|
|
204
|
-
|
|
205
|
+
qt as GlobalTypography,
|
|
205
206
|
Rr as GridContainer,
|
|
206
207
|
Nr as GroupSelector,
|
|
207
|
-
|
|
208
|
+
Et as Heading,
|
|
208
209
|
zr as Icon,
|
|
209
210
|
Hr as IconButton,
|
|
210
211
|
X as IndicatorCard,
|
|
211
212
|
Xr as IndicatorCardDB,
|
|
212
|
-
|
|
213
|
+
rm as InnerForm,
|
|
213
214
|
to as InputArray,
|
|
214
215
|
Jr as InputDate,
|
|
215
216
|
Yr as InputDateRange,
|
|
@@ -220,11 +221,11 @@ export {
|
|
|
220
221
|
xo as InputSection,
|
|
221
222
|
no as InputTags,
|
|
222
223
|
Po as ItemCardDB,
|
|
223
|
-
|
|
224
|
+
em as ItemContent,
|
|
224
225
|
yo as LanguageSwitcher,
|
|
225
226
|
Uo as Link,
|
|
226
227
|
Go as ListItem,
|
|
227
|
-
|
|
228
|
+
pm as ListItemsWrapper,
|
|
228
229
|
Ko as LittleFlag,
|
|
229
230
|
_o as Loading,
|
|
230
231
|
qo as Logo,
|
|
@@ -232,8 +233,8 @@ export {
|
|
|
232
233
|
Zo as Menu,
|
|
233
234
|
re as MessageBanner,
|
|
234
235
|
ee as Modal,
|
|
235
|
-
|
|
236
|
-
|
|
236
|
+
fm as ModalConfirm,
|
|
237
|
+
am as ModalFooter,
|
|
237
238
|
pe as Notification,
|
|
238
239
|
fe as NotificationSign,
|
|
239
240
|
ae as OAuthSelector,
|
|
@@ -241,14 +242,14 @@ export {
|
|
|
241
242
|
Bo as OutlineContainer,
|
|
242
243
|
le as PackageCard,
|
|
243
244
|
de as PaginatorDb,
|
|
244
|
-
|
|
245
|
+
co as PhoneInput,
|
|
245
246
|
Pe as PopUp,
|
|
246
|
-
|
|
247
|
+
ce as PremiumFeature,
|
|
247
248
|
Se as PriorityCards,
|
|
248
249
|
Ie as PriorityScore,
|
|
249
250
|
Be as ProgressBar,
|
|
250
251
|
Fe as ProgressIndicator,
|
|
251
|
-
|
|
252
|
+
im as ProgressStep,
|
|
252
253
|
ye as RadioButton,
|
|
253
254
|
Ae as RankPosition,
|
|
254
255
|
Wo as Row,
|
|
@@ -258,82 +259,83 @@ export {
|
|
|
258
259
|
We as SearchDropdown,
|
|
259
260
|
Ue as SegmentedControl,
|
|
260
261
|
Ge as SegmentedProgressBar,
|
|
261
|
-
Ke as
|
|
262
|
-
_e as
|
|
263
|
-
qe as
|
|
264
|
-
Qe as
|
|
265
|
-
Ze as
|
|
266
|
-
rt as
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
pt as
|
|
270
|
-
ft as
|
|
271
|
-
at as
|
|
272
|
-
it as
|
|
273
|
-
lt as
|
|
274
|
-
dt as
|
|
275
|
-
|
|
276
|
-
St as
|
|
277
|
-
|
|
262
|
+
Ke as SelectableList,
|
|
263
|
+
_e as SeverityBadge,
|
|
264
|
+
qe as SeverityIndicator,
|
|
265
|
+
Qe as SeverityOverview,
|
|
266
|
+
Ze as ShowOnHover,
|
|
267
|
+
rt as SlideOutMenu,
|
|
268
|
+
et as Slider,
|
|
269
|
+
Wt as Span,
|
|
270
|
+
pt as StepLapse,
|
|
271
|
+
ft as Stepper,
|
|
272
|
+
at as SummaryCard,
|
|
273
|
+
it as Table,
|
|
274
|
+
lt as TableButton,
|
|
275
|
+
dt as TableContent,
|
|
276
|
+
ct as TableOfContents,
|
|
277
|
+
St as Tabs,
|
|
278
|
+
It as Tag,
|
|
279
|
+
Ut as Text,
|
|
278
280
|
So as TextArea,
|
|
279
281
|
Io as TextInput,
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
282
|
+
Bt as TimeLine,
|
|
283
|
+
lm as TimeLineCard,
|
|
284
|
+
Ft as Toggle,
|
|
285
|
+
Pt as Tooltip,
|
|
286
|
+
yt as Tour,
|
|
287
|
+
kt as Tree,
|
|
288
|
+
Ot as TruncatedList,
|
|
289
|
+
Gt as WeaknessesCard,
|
|
290
|
+
hp as analyzeFilterValue,
|
|
291
|
+
Lt as baseStep,
|
|
292
|
+
Wp as clearStorage,
|
|
293
|
+
At as defaultOptions,
|
|
294
|
+
Fp as formatCheckboxesFilterValue,
|
|
295
|
+
Sp as formatDate,
|
|
296
|
+
Tp as formatDateTime,
|
|
297
|
+
Ip as formatDateTimeInInput,
|
|
298
|
+
Dp as formatIncludeExcludeFilterValue,
|
|
299
|
+
Pp as formatTextFilterValue,
|
|
300
|
+
Np as getPathname,
|
|
301
|
+
vp as getPreservedValues,
|
|
302
|
+
Up as getStorageItem,
|
|
301
303
|
l as getStyledConfig,
|
|
302
304
|
m as hiddenProps,
|
|
303
305
|
ar as icons,
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
306
|
+
yp as normalizeCheckboxesFilterValue,
|
|
307
|
+
wp as normalizeDate,
|
|
308
|
+
Op as normalizeNumber,
|
|
309
|
+
Ep as openUrl,
|
|
310
|
+
Lp as parseCheckboxesFilterValue,
|
|
311
|
+
Ap as parseIncludeExcludeFilterValue,
|
|
312
|
+
Mp as parseTextFilterValue,
|
|
313
|
+
dm as partitionFilters,
|
|
314
|
+
Gp as safeUrl,
|
|
313
315
|
u as setBorder,
|
|
314
316
|
d as setDisplay,
|
|
315
317
|
C as setInteraction,
|
|
316
|
-
|
|
317
|
-
|
|
318
|
+
c as setMargin,
|
|
319
|
+
g as setPadding,
|
|
318
320
|
S as setPosition,
|
|
319
321
|
T as setText,
|
|
320
322
|
nr as theme,
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
323
|
+
Zt as useActiveSection,
|
|
324
|
+
rp as useCarousel,
|
|
325
|
+
ep as useClickOutside,
|
|
326
|
+
pp as useCloudinaryImage,
|
|
327
|
+
fp as useColumnsModal,
|
|
326
328
|
ur as useConditionsDialog,
|
|
327
329
|
Cr as useConfirmDialog,
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
330
|
+
Jp as useController,
|
|
331
|
+
ap as useDebouncedCallback,
|
|
332
|
+
Qp as useFieldArray,
|
|
333
|
+
ip as useFiltersValues,
|
|
334
|
+
Yp as useFormContext,
|
|
335
|
+
lp as useModal,
|
|
336
|
+
dp as useMountEffect,
|
|
337
|
+
cm as useNumberFormatter,
|
|
338
|
+
cp as useSearch,
|
|
339
|
+
Zp as useWatch,
|
|
338
340
|
t as variantBuilder
|
|
339
341
|
};
|
package/package.json
CHANGED