@fluidattacks/design 9.1.2 → 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.
@@ -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 };
@@ -0,0 +1,4 @@
1
+ import { IStepperProps, IStepperStep } from './types';
2
+ declare const Stepper: ({ completedLabel, currentStep, steps, }: Readonly<IStepperProps>) => JSX.Element;
3
+ export { Stepper };
4
+ export type { IStepperProps, IStepperStep };
@@ -0,0 +1,50 @@
1
+ import { jsxs as m, jsx as t } from "react/jsx-runtime";
2
+ import { Fragment as d } from "react";
3
+ import { VisuallyHidden as a } from "../../node_modules/react-aria/dist/private/visually-hidden/VisuallyHidden.js";
4
+ import { useTheme as s } from "styled-components";
5
+ import { StyledStepRow as h, StyledStepItem as u, StyledStepIndicator as f, StyledStepConnector as g } from "./styles.js";
6
+ import { Icon as S } from "../icon/index.js";
7
+ import "../typography/heading/index.js";
8
+ import "../typography/span/index.js";
9
+ import { Text as y } from "../typography/text/index.js";
10
+ const $ = (n, e) => n < e ? "completed" : n === e ? "current" : "upcoming", C = ({
11
+ completedLabel: n = "completed",
12
+ currentStep: e,
13
+ steps: c
14
+ }) => {
15
+ const l = s();
16
+ return /* @__PURE__ */ m(d, { children: [
17
+ /* @__PURE__ */ t(h, { children: c.map((r, o) => {
18
+ const i = $(o, e), p = i === "upcoming";
19
+ return /* @__PURE__ */ m(
20
+ u,
21
+ {
22
+ "aria-current": i === "current" ? "step" : void 0,
23
+ children: [
24
+ /* @__PURE__ */ t(f, { $status: i, children: i === "completed" ? /* @__PURE__ */ t(S, { icon: "check", iconSize: "sm", iconType: "fa-solid" }) : o + 1 }),
25
+ /* @__PURE__ */ m(
26
+ y,
27
+ {
28
+ color: p ? l.palette.gray[400] : l.palette.gray[800],
29
+ display: "inline",
30
+ fontWeight: p ? "regular" : "bold",
31
+ size: "md",
32
+ whiteSpace: "nowrap",
33
+ children: [
34
+ r.title,
35
+ i === "completed" && /* @__PURE__ */ t(a, { children: ` (${n})` })
36
+ ]
37
+ }
38
+ ),
39
+ o < c.length - 1 && /* @__PURE__ */ t(g, { "aria-hidden": !0 })
40
+ ]
41
+ },
42
+ r.title
43
+ );
44
+ }) }),
45
+ c.map((r, o) => /* @__PURE__ */ t("div", { hidden: o !== e, children: r.content }, r.title))
46
+ ] });
47
+ };
48
+ export {
49
+ C as Stepper
50
+ };
@@ -0,0 +1,6 @@
1
+ import { Meta } from '@storybook/react-vite';
2
+ import { IStepperProps } from './types';
3
+ declare const config: Meta;
4
+ declare const Default: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, IStepperProps>;
5
+ export { Default };
6
+ export default config;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,10 @@
1
+ import { TStepperStatus } from './types';
2
+ declare const StyledStepRow: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, never> & Partial<Pick<import('react').DetailedHTMLProps<import('react').OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, never>>> & string;
3
+ declare const StyledStepItem: 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;
4
+ declare const StyledStepIndicator: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "$status"> & {
5
+ $status: TStepperStatus;
6
+ }, never> & Partial<Pick<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "$status"> & {
7
+ $status: TStepperStatus;
8
+ }, never>>> & string;
9
+ declare const StyledStepConnector: 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;
10
+ export { StyledStepConnector, StyledStepIndicator, StyledStepItem, StyledStepRow, };
@@ -0,0 +1,65 @@
1
+ import { styled as i } from "styled-components";
2
+ import { variantBuilder as a } from "../@core/variants/utils.js";
3
+ const { getVariant: n } = a(
4
+ (t) => ({
5
+ completed: `
6
+ background-color: ${t.palette.success[500]};
7
+ color: ${t.palette.white};
8
+ `,
9
+ current: `
10
+ background-color: ${t.palette.gray[800]};
11
+ color: ${t.palette.white};
12
+ `,
13
+ upcoming: `
14
+ background-color: ${t.palette.white};
15
+ border: 1px solid ${t.palette.gray[400]};
16
+ color: ${t.palette.gray[400]};
17
+ `
18
+ })
19
+ ), r = i.ol`
20
+ align-items: center;
21
+ display: flex;
22
+ gap: ${({ theme: t }) => t.spacing[0.75]};
23
+ list-style: none;
24
+ margin: 0;
25
+ margin-bottom: ${({ theme: t }) => t.spacing[1.5]};
26
+ padding: 0;
27
+ `, p = i.li`
28
+ align-items: center;
29
+ display: flex;
30
+ flex: 1 1 0;
31
+ gap: ${({ theme: t }) => t.spacing[0.75]};
32
+ min-width: 0;
33
+
34
+ &:last-child {
35
+ flex: 0 0 auto;
36
+ }
37
+ `, c = i.span`
38
+ ${({ theme: t, $status: o }) => `
39
+ align-items: center;
40
+ border-radius: 50%;
41
+ box-sizing: border-box;
42
+ display: inline-flex;
43
+ flex-shrink: 0;
44
+ font-family: ${t.typography.type.primary};
45
+ font-size: ${t.typography.text.md};
46
+ font-weight: ${t.typography.weight.bold};
47
+ line-height: ${t.spacing[1.25]};
48
+ height: ${t.spacing[1.5]};
49
+ justify-content: center;
50
+ width: ${t.spacing[1.5]};
51
+
52
+ ${n(t, o)}
53
+ `}
54
+ `, g = i.span`
55
+ background-color: ${({ theme: t }) => t.palette.gray[300]};
56
+ flex: 1 1 auto;
57
+ height: 1px;
58
+ min-width: ${({ theme: t }) => t.spacing[1]};
59
+ `;
60
+ export {
61
+ g as StyledStepConnector,
62
+ c as StyledStepIndicator,
63
+ p as StyledStepItem,
64
+ r as StyledStepRow
65
+ };
@@ -0,0 +1,25 @@
1
+ import { ReactNode } from 'react';
2
+ type TStepperStatus = "completed" | "current" | "upcoming";
3
+ /**
4
+ * Stepper step props.
5
+ * @interface IStepperStep
6
+ * @property { ReactNode } content - The step's panel. It stays mounted while other steps are current, so form fields keep their registration and values.
7
+ * @property { string } title - The step's label in the progress row; must be unique among the steps.
8
+ */
9
+ interface IStepperStep {
10
+ content: ReactNode;
11
+ title: string;
12
+ }
13
+ /**
14
+ * Stepper component props.
15
+ * @interface IStepperProps
16
+ * @property { string } [completedLabel] - Screen-reader suffix announced after each completed step's title. Defaults to "completed".
17
+ * @property { number } currentStep - Zero-based index of the current step, owned by the consumer: steps before it render as completed, steps after it as upcoming.
18
+ * @property { IStepperStep[] } steps - The steps, in order.
19
+ */
20
+ interface IStepperProps {
21
+ completedLabel?: string;
22
+ currentStep: number;
23
+ steps: IStepperStep[];
24
+ }
25
+ export type { IStepperProps, IStepperStep, TStepperStatus };
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';
@@ -72,6 +73,7 @@ export * from './components/show-on-hover';
72
73
  export * from './components/slide-out-menu';
73
74
  export * from './components/slider';
74
75
  export * from './components/step-lapse';
76
+ export * from './components/stepper';
75
77
  export * from './components/summary-card';
76
78
  export * from './components/table';
77
79
  export * from './components/table-button';
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import './assets/styles/global.css';/* empty css */
2
2
  import { variantBuilder as t } from "./components/@core/variants/utils.js";
3
- import { hiddenProps as p } from "./components/@core/constants.js";
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 g, setPadding as c, setPosition as S, setText as T } from "./components/@core/utils.js";
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";
@@ -22,12 +22,12 @@ import { Checkbox as Y } from "./components/checkbox/index.js";
22
22
  import { CircularProgress as $ } from "./components/circular-progress/index.js";
23
23
  import { CloudImage as or } from "./components/cloud-image/index.js";
24
24
  import { CodeSnippet as tr } from "./components/code-snippet/index.js";
25
- import { CollapsibleCard as pr } from "./components/collapsible-card/index.js";
25
+ import { CollapsibleCard as mr } from "./components/collapsible-card/index.js";
26
26
  import { CustomThemeProvider as xr, icons as ar, theme as nr } from "./components/colors/index.js";
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 cr } from "./components/container/index.js";
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";
@@ -48,12 +48,12 @@ import { InputDateRange as Yr } from "./components/inputs/fields/date-range/inde
48
48
  import { InputDateTime as $r } from "./components/inputs/fields/date-time/index.js";
49
49
  import { Editable as oo } from "./components/inputs/fields/editable/index.js";
50
50
  import { InputArray as to } from "./components/inputs/fields/input-array/index.js";
51
- import { InputFile as po } from "./components/inputs/fields/input-file/index.js";
51
+ import { InputFile as mo } from "./components/inputs/fields/input-file/index.js";
52
52
  import { InputSection as xo } from "./components/inputs/fields/input-section/index.js";
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 go } from "./components/inputs/fields/phone/index.js";
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";
@@ -73,13 +73,13 @@ import { Lottie as Qo } from "./components/lottie/index.js";
73
73
  import { Menu as Zo } from "./components/menu/index.js";
74
74
  import { MessageBanner as re } from "./components/message-banner/index.js";
75
75
  import { Modal as ee } from "./components/modal/index.js";
76
- import { Notification as me } from "./components/notification/index.js";
76
+ import { Notification as pe } from "./components/notification/index.js";
77
77
  import { NotificationSign as fe } from "./components/notification-sign/index.js";
78
78
  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 ge } from "./components/premium-feature/index.js";
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,65 +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 { SeverityBadge as Ke } from "./components/severity-badge/index.js";
97
- import { SeverityIndicator as _e } from "./components/severity-indicator/index.js";
98
- import { SeverityOverview as qe } from "./components/severity-overview/index.js";
99
- import { ShowOnHover as Qe } from "./components/show-on-hover/index.js";
100
- import { SlideOutMenu as Ze } from "./components/slide-out-menu/index.js";
101
- import { Slider as rt } from "./components/slider/index.js";
102
- import { StepLapse as et } from "./components/step-lapse/index.js";
103
- import { SummaryCard as mt } from "./components/summary-card/index.js";
104
- import { Table as ft } from "./components/table/index.js";
105
- import { TableButton as at } from "./components/table-button/index.js";
106
- import { TableContent as it } from "./components/table-content/index.js";
107
- import { TableOfContents as lt } from "./components/table-of-contents/index.js";
108
- import { Tabs as dt } from "./components/tabs/index.js";
109
- import { Tag as gt } from "./components/tag/index.js";
110
- import { TimeLine as St } from "./components/timeline/index.js";
111
- import { Toggle as It } from "./components/toggle/index.js";
112
- import { Tooltip as Bt } from "./components/tooltip/index.js";
113
- import { Tour as Ft, baseStep as Dt, defaultOptions as Pt } from "./components/tour/index.js";
114
- import { Tree as yt } from "./components/tree/index.js";
115
- import { TruncatedList as At } from "./components/truncated-list/index.js";
116
- import { Heading as kt } from "./components/typography/heading/index.js";
117
- import { Span as Ot } from "./components/typography/span/index.js";
118
- import { Text as Et } from "./components/typography/text/index.js";
119
- import { WeaknessesCard as Wt } from "./components/weaknesses-card/index.js";
120
- import { DesignsContext as Ut } from "./context/react/index.js";
121
- import { DesignsProvider as Gt } from "./globals/designs-provider/index.js";
122
- import { GlobalTypography as Kt } from "./globals/global-typography/index.js";
123
- import { DesignTokensCss as _t } from "./globals/design-tokens-css/index.js";
124
- import { useActiveSection as qt } from "./hooks/use-active-section.js";
125
- import { useCarousel as Qt } from "./hooks/use-carousel.js";
126
- import { useClickOutside as Zt } from "./hooks/use-click-outside.js";
127
- import { useCloudinaryImage as rm } from "./hooks/use-cloudinary-image.js";
128
- import { useColumnsModal as em } from "./hooks/use-columns-modal.js";
129
- import { useDebouncedCallback as mm } from "./hooks/use-debounced-callback.js";
130
- import { useFiltersValues as fm } from "./hooks/use-filters.js";
131
- import { useModal as am } from "./hooks/use-modal.js";
132
- import { useMountEffect as im } from "./hooks/use-mount-effect.js";
133
- import { useSearch as lm } from "./hooks/use-search.js";
134
- import { formatDate as dm, formatDateTime as Cm, formatDateTimeInInput as gm } from "./utils/date.js";
135
- import { EXCLUDE_TOKEN as Sm, analyzeFilterValue as Tm, formatCheckboxesFilterValue as Im, formatIncludeExcludeFilterValue as bm, formatTextFilterValue as Bm, getPreservedValues as hm, normalizeCheckboxesFilterValue as Fm, parseCheckboxesFilterValue as Dm, parseIncludeExcludeFilterValue as Pm, parseTextFilterValue as vm } from "./utils/filters.js";
136
- import { normalizeDate as Lm, normalizeNumber as Am } from "./utils/normalizers.js";
137
- import { openUrl as km } from "./utils/open-url.js";
138
- import { clearStorage as Om, getPathname as Vm, getStorageItem as Em } from "./utils/storage.js";
139
- import { safeUrl as Wm } from "./utils/url.js";
140
- import { ActiveFilters as Um } from "./components/filters/active-filters/index.js";
141
- import { ColumnsModal as Gm } from "./components/modal/columns-modal/index.js";
142
- import { Controller as Km, useController as Xm, useFieldArray as _m, useFormContext as jm, useWatch as qm } from "./node_modules/react-hook-form/dist/index.esm.js";
143
- import { InnerForm as Qm } from "./components/form/inner-form/index.js";
144
- import { ItemContent as Zm } from "./components/table-content/item-content/index.js";
145
- import { ListItemsWrapper as rp } from "./components/list-item/styles.js";
146
- import { ModalConfirm as ep } from "./components/modal/modal-confirm/index.js";
147
- import { ModalFooter as mp } from "./components/modal/footer/index.js";
148
- import { ProgressStep as fp } from "./components/progress-indicator/step/index.js";
149
- import { TimeLineCard as ap } from "./components/timeline/card/index.js";
150
- import { partitionFilters as ip } from "./components/filters/utils.js";
151
- import { useNumberFormatter as lp } from "./node_modules/react-aria/dist/private/i18n/useNumberFormatter.js";
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";
152
154
  export {
153
155
  b as Accordion,
154
- Um as ActiveFilters,
156
+ Kp as ActiveFilters,
155
157
  h as AdvancedBadge,
156
158
  D as AdvisoriesCard,
157
159
  v as Alert,
@@ -177,21 +179,21 @@ export {
177
179
  or as CloudImage,
178
180
  tr as CodeSnippet,
179
181
  Oo as Col,
180
- pr as CollapsibleCard,
181
- Gm as ColumnsModal,
182
+ mr as CollapsibleCard,
183
+ _p as ColumnsModal,
182
184
  jr as ComboBox,
183
185
  sr as ComparisonTable,
184
- cr as Container,
185
- Km as Controller,
186
+ gr as Container,
187
+ qp as Controller,
186
188
  Tr as CopyButton,
187
189
  xr as CustomThemeProvider,
188
- _t as DesignTokensCss,
189
- Ut as DesignsContext,
190
- Gt as DesignsProvider,
190
+ Qt as DesignTokensCss,
191
+ Kt as DesignsContext,
192
+ _t as DesignsProvider,
191
193
  br as Divider,
192
194
  hr as Drawer,
193
195
  Dr as Dropdown,
194
- Sm as EXCLUDE_TOKEN,
196
+ Bp as EXCLUDE_TOKEN,
195
197
  oo as Editable,
196
198
  vr as EmptyState,
197
199
  Fo as ErrorMessage,
@@ -200,30 +202,30 @@ export {
200
202
  wr as Filters,
201
203
  Vr as Form,
202
204
  Eo as Gap,
203
- Kt as GlobalTypography,
205
+ qt as GlobalTypography,
204
206
  Rr as GridContainer,
205
207
  Nr as GroupSelector,
206
- kt as Heading,
208
+ Et as Heading,
207
209
  zr as Icon,
208
210
  Hr as IconButton,
209
211
  X as IndicatorCard,
210
212
  Xr as IndicatorCardDB,
211
- Qm as InnerForm,
213
+ rm as InnerForm,
212
214
  to as InputArray,
213
215
  Jr as InputDate,
214
216
  Yr as InputDateRange,
215
217
  $r as InputDateTime,
216
- po as InputFile,
218
+ mo as InputFile,
217
219
  so as InputNumber,
218
220
  uo as InputNumberRange,
219
221
  xo as InputSection,
220
222
  no as InputTags,
221
223
  Po as ItemCardDB,
222
- Zm as ItemContent,
224
+ em as ItemContent,
223
225
  yo as LanguageSwitcher,
224
226
  Uo as Link,
225
227
  Go as ListItem,
226
- rp as ListItemsWrapper,
228
+ pm as ListItemsWrapper,
227
229
  Ko as LittleFlag,
228
230
  _o as Loading,
229
231
  qo as Logo,
@@ -231,23 +233,23 @@ export {
231
233
  Zo as Menu,
232
234
  re as MessageBanner,
233
235
  ee as Modal,
234
- ep as ModalConfirm,
235
- mp as ModalFooter,
236
- me as Notification,
236
+ fm as ModalConfirm,
237
+ am as ModalFooter,
238
+ pe as Notification,
237
239
  fe as NotificationSign,
238
240
  ae as OAuthSelector,
239
241
  ie as OptionCard,
240
242
  Bo as OutlineContainer,
241
243
  le as PackageCard,
242
244
  de as PaginatorDb,
243
- go as PhoneInput,
245
+ co as PhoneInput,
244
246
  Pe as PopUp,
245
- ge as PremiumFeature,
247
+ ce as PremiumFeature,
246
248
  Se as PriorityCards,
247
249
  Ie as PriorityScore,
248
250
  Be as ProgressBar,
249
251
  Fe as ProgressIndicator,
250
- fp as ProgressStep,
252
+ im as ProgressStep,
251
253
  ye as RadioButton,
252
254
  Ae as RankPosition,
253
255
  Wo as Row,
@@ -257,81 +259,83 @@ export {
257
259
  We as SearchDropdown,
258
260
  Ue as SegmentedControl,
259
261
  Ge as SegmentedProgressBar,
260
- Ke as SeverityBadge,
261
- _e as SeverityIndicator,
262
- qe as SeverityOverview,
263
- Qe as ShowOnHover,
264
- Ze as SlideOutMenu,
265
- rt as Slider,
266
- Ot as Span,
267
- et as StepLapse,
268
- mt as SummaryCard,
269
- ft as Table,
270
- at as TableButton,
271
- it as TableContent,
272
- lt as TableOfContents,
273
- dt as Tabs,
274
- gt as Tag,
275
- Et as Text,
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,
276
280
  So as TextArea,
277
281
  Io as TextInput,
278
- St as TimeLine,
279
- ap as TimeLineCard,
280
- It as Toggle,
281
- Bt as Tooltip,
282
- Ft as Tour,
283
- yt as Tree,
284
- At as TruncatedList,
285
- Wt as WeaknessesCard,
286
- Tm as analyzeFilterValue,
287
- Dt as baseStep,
288
- Om as clearStorage,
289
- Pt as defaultOptions,
290
- Im as formatCheckboxesFilterValue,
291
- dm as formatDate,
292
- Cm as formatDateTime,
293
- gm as formatDateTimeInInput,
294
- bm as formatIncludeExcludeFilterValue,
295
- Bm as formatTextFilterValue,
296
- Vm as getPathname,
297
- hm as getPreservedValues,
298
- Em as getStorageItem,
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,
299
303
  l as getStyledConfig,
300
- p as hiddenProps,
304
+ m as hiddenProps,
301
305
  ar as icons,
302
- Fm as normalizeCheckboxesFilterValue,
303
- Lm as normalizeDate,
304
- Am as normalizeNumber,
305
- km as openUrl,
306
- Dm as parseCheckboxesFilterValue,
307
- Pm as parseIncludeExcludeFilterValue,
308
- vm as parseTextFilterValue,
309
- ip as partitionFilters,
310
- Wm as safeUrl,
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,
311
315
  u as setBorder,
312
316
  d as setDisplay,
313
317
  C as setInteraction,
314
- g as setMargin,
315
- c as setPadding,
318
+ c as setMargin,
319
+ g as setPadding,
316
320
  S as setPosition,
317
321
  T as setText,
318
322
  nr as theme,
319
- qt as useActiveSection,
320
- Qt as useCarousel,
321
- Zt as useClickOutside,
322
- rm as useCloudinaryImage,
323
- em as useColumnsModal,
323
+ Zt as useActiveSection,
324
+ rp as useCarousel,
325
+ ep as useClickOutside,
326
+ pp as useCloudinaryImage,
327
+ fp as useColumnsModal,
324
328
  ur as useConditionsDialog,
325
329
  Cr as useConfirmDialog,
326
- Xm as useController,
327
- mm as useDebouncedCallback,
328
- _m as useFieldArray,
329
- fm as useFiltersValues,
330
- jm as useFormContext,
331
- am as useModal,
332
- im as useMountEffect,
333
- lp as useNumberFormatter,
334
- lm as useSearch,
335
- qm as useWatch,
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,
336
340
  t as variantBuilder
337
341
  };
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -135,5 +135,5 @@
135
135
  "./dist/index.js"
136
136
  ],
137
137
  "typings": "./dist/index.d.ts",
138
- "version": "9.1.2"
138
+ "version": "9.3.0"
139
139
  }