@fluidattacks/design 11.9.0 → 11.11.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,5 @@
1
+ import { IMonthPickerProps } from './types';
2
+ /** A month and year selector over `MM/YYYY` values; months outside the bounds are disabled. */
3
+ declare const MonthPicker: ({ disabled, label, maxValue, minValue, name, onChange, value, }: Readonly<IMonthPickerProps>) => JSX.Element;
4
+ export { MonthPicker };
5
+ export type { IMonthPickerProps };
@@ -0,0 +1,81 @@
1
+ import { jsxs as f, jsx as o } from "react/jsx-runtime";
2
+ import { useRef as P, useCallback as y } from "react";
3
+ import { useButton as x } from "../../../../node_modules/react-aria/dist/private/button/useButton.js";
4
+ import { useOverlayTrigger as T } from "../../../../node_modules/react-aria/dist/private/overlays/useOverlayTrigger.js";
5
+ import { useOverlayTriggerState as v } from "../../../../node_modules/react-stately/dist/private/overlays/useOverlayTriggerState.js";
6
+ import { MonthPanel as O } from "./panel.js";
7
+ import { TriggerButton as S } from "./styles.js";
8
+ import { formatPeriod as C } from "./utils.js";
9
+ import { OutlineContainer as j } from "../../outline-container/index.js";
10
+ import { Dialog as k } from "../../utils/dialog/index.js";
11
+ import { Popover as z } from "../../utils/popover/index.js";
12
+ import { theme as B } from "../../../colors/index.js";
13
+ import { Icon as p } from "../../../icon/index.js";
14
+ const L = ({
15
+ disabled: t = !1,
16
+ label: n,
17
+ maxValue: a,
18
+ minValue: g,
19
+ name: i,
20
+ onChange: s,
21
+ value: l
22
+ }) => {
23
+ const e = P(null), r = v({}), { close: c } = r, { triggerProps: d, overlayProps: h } = T(
24
+ { type: "dialog" },
25
+ r,
26
+ e
27
+ ), { buttonProps: u } = x(
28
+ { ...d, isDisabled: t, onPress: r.toggle },
29
+ e
30
+ ), b = y(
31
+ ($) => {
32
+ s($), c();
33
+ },
34
+ [c, s]
35
+ ), m = B.palette.gray[t ? 400 : 700];
36
+ return /* @__PURE__ */ f(j, { htmlFor: i, label: n, children: [
37
+ /* @__PURE__ */ f(S, { ...u, id: i, ref: e, children: [
38
+ /* @__PURE__ */ o(
39
+ p,
40
+ {
41
+ icon: "calendar",
42
+ iconColor: m,
43
+ iconSize: "lg",
44
+ iconType: "fa-light"
45
+ }
46
+ ),
47
+ /* @__PURE__ */ o("span", { children: C(l) }),
48
+ /* @__PURE__ */ o(
49
+ p,
50
+ {
51
+ icon: "chevron-down",
52
+ iconColor: m,
53
+ iconSize: "sm",
54
+ iconType: "fa-light"
55
+ }
56
+ )
57
+ ] }),
58
+ r.isOpen && !t ? /* @__PURE__ */ o(
59
+ z,
60
+ {
61
+ offset: 8,
62
+ placement: "bottom end",
63
+ state: r,
64
+ triggerRef: e,
65
+ children: /* @__PURE__ */ o(k, { ...h, "aria-label": n ?? i, children: /* @__PURE__ */ o(
66
+ O,
67
+ {
68
+ maxValue: a,
69
+ minValue: g,
70
+ onClose: c,
71
+ onSelect: b,
72
+ value: l
73
+ }
74
+ ) })
75
+ }
76
+ ) : null
77
+ ] });
78
+ };
79
+ export {
80
+ L as MonthPicker
81
+ };
@@ -0,0 +1,7 @@
1
+ import { Meta } from '@storybook/react-vite';
2
+ import { IMonthPickerProps } from './types';
3
+ declare const config: Meta;
4
+ declare const Default: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, IMonthPickerProps>;
5
+ declare const WithBounds: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, IMonthPickerProps>;
6
+ export { Default, WithBounds };
7
+ export default config;
@@ -0,0 +1,106 @@
1
+ import { jsxs as p, Fragment as C, jsx as n } from "react/jsx-runtime";
2
+ import { useState as O, useCallback as l } from "react";
3
+ import { YearBar as b, MonthGrid as F, Footer as w, MonthItem as x } from "./styles.js";
4
+ import { fromPeriod as M, toPeriod as y, isOutOfRange as d, MONTHS as T } from "./utils.js";
5
+ import { Button as f } from "../../../button/index.js";
6
+ import { IconButton as m } from "../../../icon-button/index.js";
7
+ const D = 0, B = 11, v = (t) => t === void 0 ? void 0 : M(t)?.year, H = (t, e, r) => Math.min(Math.max(t, v(e) ?? t), v(r) ?? t), I = ({
8
+ disabled: t,
9
+ month: e,
10
+ onSelect: r,
11
+ selected: a,
12
+ year: s
13
+ }) => {
14
+ const c = l(() => {
15
+ r(y(s, e));
16
+ }, [e, r, s]);
17
+ return /* @__PURE__ */ n(
18
+ x,
19
+ {
20
+ "aria-pressed": a,
21
+ disabled: t,
22
+ onClick: c,
23
+ type: "button",
24
+ children: T[e]
25
+ }
26
+ );
27
+ }, R = ({
28
+ maxValue: t,
29
+ minValue: e,
30
+ onClose: r,
31
+ onSelect: a,
32
+ value: s
33
+ }) => {
34
+ const c = M(s), [i, g] = O(
35
+ H(c?.year ?? (/* @__PURE__ */ new Date()).getFullYear(), e, t)
36
+ ), Y = l(() => {
37
+ g((o) => o - 1);
38
+ }, []), k = l(() => {
39
+ g((o) => o + 1);
40
+ }, []), u = l(() => {
41
+ const o = /* @__PURE__ */ new Date();
42
+ a(y(o.getFullYear(), o.getMonth()));
43
+ }, [a]);
44
+ return /* @__PURE__ */ p(C, { children: [
45
+ /* @__PURE__ */ p(b, { children: [
46
+ /* @__PURE__ */ n(
47
+ m,
48
+ {
49
+ disabled: d(i - 1, B, e, void 0),
50
+ icon: "chevron-left",
51
+ iconSize: "sm",
52
+ iconType: "fa-light",
53
+ id: "previous-year",
54
+ onClick: Y,
55
+ variant: "ghost"
56
+ }
57
+ ),
58
+ /* @__PURE__ */ n("span", { children: i }),
59
+ /* @__PURE__ */ n(
60
+ m,
61
+ {
62
+ disabled: d(i + 1, D, void 0, t),
63
+ icon: "chevron-right",
64
+ iconSize: "sm",
65
+ iconType: "fa-light",
66
+ id: "next-year",
67
+ onClick: k,
68
+ variant: "ghost"
69
+ }
70
+ )
71
+ ] }),
72
+ /* @__PURE__ */ n(F, { children: T.map((o, h) => /* @__PURE__ */ n(
73
+ I,
74
+ {
75
+ disabled: d(i, h, e, t),
76
+ month: h,
77
+ onSelect: a,
78
+ selected: c?.year === i && c.month === h,
79
+ year: i
80
+ },
81
+ o
82
+ )) }),
83
+ /* @__PURE__ */ p(w, { children: [
84
+ /* @__PURE__ */ n(
85
+ f,
86
+ {
87
+ disabled: d(
88
+ (/* @__PURE__ */ new Date()).getFullYear(),
89
+ (/* @__PURE__ */ new Date()).getMonth(),
90
+ e,
91
+ t
92
+ ),
93
+ onClick: u,
94
+ px: 0.5,
95
+ py: 0.625,
96
+ variant: "textLink",
97
+ children: "Today"
98
+ }
99
+ ),
100
+ /* @__PURE__ */ n(f, { onClick: r, variant: "ghost", children: "Cancel" })
101
+ ] })
102
+ ] });
103
+ };
104
+ export {
105
+ R as MonthPanel
106
+ };
@@ -1,5 +1,6 @@
1
+ declare const TriggerButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never> & Partial<Pick<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>>> & string;
1
2
  declare const YearBar: 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
3
  declare const MonthGrid: 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;
3
4
  declare const MonthItem: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never> & Partial<Pick<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>>> & string;
4
5
  declare const Footer: 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;
5
- export { Footer, MonthGrid, MonthItem, YearBar };
6
+ export { Footer, MonthGrid, MonthItem, TriggerButton, YearBar };
@@ -0,0 +1,104 @@
1
+ import { styled as r } from "styled-components";
2
+ const a = r.button`
3
+ ${({ theme: t }) => `
4
+ align-items: center;
5
+ background: ${t.palette.white};
6
+ border: 1px solid ${t.palette.gray[300]};
7
+ border-radius: ${t.spacing[0.5]};
8
+ color: ${t.palette.gray[800]};
9
+ cursor: pointer;
10
+ display: flex;
11
+ font-family: ${t.typography.type.primary};
12
+ font-size: ${t.typography.text.md};
13
+ gap: ${t.spacing[0.5]};
14
+ height: 40px;
15
+ padding: 0 ${t.spacing[0.75]};
16
+ width: 100%;
17
+
18
+ &:hover:not(:disabled) {
19
+ border-color: ${t.palette.gray[600]};
20
+ }
21
+
22
+ &:focus-visible,
23
+ &[aria-expanded="true"] {
24
+ border-color: ${t.palette.black};
25
+ box-shadow: 0 0 0 1px ${t.palette.black};
26
+ outline: none;
27
+ }
28
+
29
+ &:disabled {
30
+ background: ${t.palette.gray[100]};
31
+ color: ${t.palette.gray[400]};
32
+ cursor: not-allowed;
33
+ }
34
+
35
+ > span {
36
+ flex: 1;
37
+ text-align: left;
38
+ }
39
+ `}
40
+ `, e = r.div`
41
+ ${({ theme: t }) => `
42
+ align-items: center;
43
+ color: ${t.palette.gray[800]};
44
+ display: flex;
45
+ font-family: ${t.typography.type.primary};
46
+ font-size: ${t.typography.text.md};
47
+ font-weight: ${t.typography.weight.bold};
48
+ justify-content: space-between;
49
+ width: 100%;
50
+
51
+ > button {
52
+ height: 40px;
53
+ width: 40px;
54
+ }
55
+
56
+ > span {
57
+ text-align: center;
58
+ width: 200px;
59
+ }
60
+ `}
61
+ `, p = r.div`
62
+ display: grid;
63
+ grid-template-columns: repeat(4, 1fr);
64
+ width: 100%;
65
+ `, i = r.button`
66
+ ${({ theme: t }) => `
67
+ background: none;
68
+ border: none;
69
+ color: ${t.palette.gray[800]};
70
+ cursor: pointer;
71
+ font-family: ${t.typography.type.primary};
72
+ font-size: ${t.typography.text.md};
73
+ height: 40px;
74
+
75
+ &:hover:not(:disabled, [aria-pressed="true"]) {
76
+ background: ${t.palette.gray[100]};
77
+ }
78
+
79
+ &[aria-pressed="true"] {
80
+ background: ${t.palette.primary[500]};
81
+ color: ${t.palette.white};
82
+ }
83
+
84
+ &:disabled {
85
+ color: ${t.palette.gray[400]};
86
+ cursor: auto;
87
+ }
88
+ `}
89
+ `, n = r.div`
90
+ ${({ theme: t }) => `
91
+ align-items: center;
92
+ border-top: 1px solid ${t.palette.gray[200]};
93
+ display: flex;
94
+ justify-content: space-between;
95
+ width: 100%;
96
+ `}
97
+ `;
98
+ export {
99
+ n as Footer,
100
+ p as MonthGrid,
101
+ i as MonthItem,
102
+ a as TriggerButton,
103
+ e as YearBar
104
+ };
@@ -0,0 +1,11 @@
1
+ /** Props of the month picker; `value`, `minValue` and `maxValue` are `MM/YYYY`. */
2
+ interface IMonthPickerProps {
3
+ disabled?: boolean;
4
+ label?: string;
5
+ maxValue?: string;
6
+ minValue?: string;
7
+ name: string;
8
+ onChange: (value: string) => void;
9
+ value: string;
10
+ }
11
+ export type { IMonthPickerProps };
@@ -0,0 +1,34 @@
1
+ const v = [
2
+ "Jan",
3
+ "Feb",
4
+ "Mar",
5
+ "Apr",
6
+ "May",
7
+ "Jun",
8
+ "Jul",
9
+ "Aug",
10
+ "Sep",
11
+ "Oct",
12
+ "Nov",
13
+ "Dec"
14
+ ];
15
+ const i = ({ month: t, year: o }) => o * 12 + t, N = (t, o) => `${String(o + 1).padStart(2, "0")}/${t}`, c = (t) => {
16
+ const o = /^(\d{2})\/(\d{4})$/u.exec(t);
17
+ if (o === null)
18
+ return;
19
+ const n = Number(o[1]);
20
+ return n >= 1 && n <= 12 ? { month: n - 1, year: Number(o[2]) } : void 0;
21
+ }, P = (t) => {
22
+ const o = c(t);
23
+ return o === void 0 ? "" : `${v[o.month]} ${o.year}`;
24
+ }, u = (t, o, n, r) => {
25
+ const d = i({ month: o, year: t }), s = n === void 0 ? void 0 : c(n), e = r === void 0 ? void 0 : c(r);
26
+ return n !== void 0 && (s === void 0 || d < i(s)) || r !== void 0 && (e === void 0 || d > i(e));
27
+ };
28
+ export {
29
+ v as MONTHS,
30
+ P as formatPeriod,
31
+ c as fromPeriod,
32
+ u as isOutOfRange,
33
+ N as toPeriod
34
+ };
@@ -7,6 +7,7 @@ import { InputArray } from './fields/input-array';
7
7
  import { InputFile } from './fields/input-file';
8
8
  import { IInputSectionProps, InputSection } from './fields/input-section';
9
9
  import { InputTags } from './fields/input-tags';
10
+ import { IMonthPickerProps, MonthPicker } from './fields/month';
10
11
  import { InputNumber } from './fields/number';
11
12
  import { InputNumberRange } from './fields/number-range';
12
13
  import { PhoneInput } from './fields/phone';
@@ -14,4 +15,4 @@ import { TextArea } from './fields/text-area';
14
15
  import { TextInput } from './fields/text-input';
15
16
  import { OutlineContainer } from './outline-container';
16
17
  import { ErrorMessage } from './styles';
17
- export { type IComboBoxProps, type IItem, type IInputSectionProps, OutlineContainer, PhoneInput, ComboBox, ErrorMessage, TextInput, InputArray, InputDate, InputDateRange, InputDateTime, InputFile, InputNumber, InputSection, InputTags, InputNumberRange, TextArea, Editable, };
18
+ export { type IComboBoxProps, type IItem, type IInputSectionProps, type IMonthPickerProps, MonthPicker, OutlineContainer, PhoneInput, ComboBox, ErrorMessage, TextInput, InputArray, InputDate, InputDateRange, InputDateTime, InputFile, InputNumber, InputSection, InputTags, InputNumberRange, TextArea, Editable, };
@@ -7,28 +7,30 @@ import { InputArray as i } from "./fields/input-array/index.js";
7
7
  import { InputFile as g } from "./fields/input-file/index.js";
8
8
  import { InputSection as l } from "./fields/input-section/index.js";
9
9
  import { InputTags as D } from "./fields/input-tags/index.js";
10
+ import { MonthPicker as h } from "./fields/month/index.js";
10
11
  import { InputNumber as C } from "./fields/number/index.js";
11
- import { InputNumberRange as N } from "./fields/number-range/index.js";
12
- import { PhoneInput as c } from "./fields/phone/index.js";
13
- import { TextArea as h } from "./fields/text-area/index.js";
14
- import { TextInput as B } from "./fields/text-input/index.js";
15
- import { OutlineContainer as M } from "./outline-container/index.js";
16
- import { ErrorMessage as P } from "./styles.js";
12
+ import { InputNumberRange as M } from "./fields/number-range/index.js";
13
+ import { PhoneInput as P } from "./fields/phone/index.js";
14
+ import { TextArea as d } from "./fields/text-area/index.js";
15
+ import { TextInput as y } from "./fields/text-input/index.js";
16
+ import { OutlineContainer as F } from "./outline-container/index.js";
17
+ import { ErrorMessage as S } from "./styles.js";
17
18
  export {
18
19
  t as ComboBox,
19
20
  a as Editable,
20
- P as ErrorMessage,
21
+ S as ErrorMessage,
21
22
  i as InputArray,
22
23
  p as InputDate,
23
24
  x as InputDateRange,
24
25
  f as InputDateTime,
25
26
  g as InputFile,
26
27
  C as InputNumber,
27
- N as InputNumberRange,
28
+ M as InputNumberRange,
28
29
  l as InputSection,
29
30
  D as InputTags,
30
- M as OutlineContainer,
31
- c as PhoneInput,
32
- h as TextArea,
33
- B as TextInput
31
+ h as MonthPicker,
32
+ F as OutlineContainer,
33
+ P as PhoneInput,
34
+ d as TextArea,
35
+ y as TextInput
34
36
  };
@@ -1,83 +1,88 @@
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";
1
+ import { jsxs as i, jsx as l } from "react/jsx-runtime";
2
+ import { useState as L, useMemo as C, useCallback as g } from "react";
3
+ import { useTheme as x } from "styled-components";
4
+ import { StyledListHeader as $, StyledList as z, StyledListRow as k, StyledRowContent as R, StyledRowLabel as T } from "./styles.js";
5
+ import { Checkbox as j } from "../checkbox/index.js";
6
+ import { Search as H } from "../search/index.js";
7
+ import { Tag as q } from "../tag/index.js";
7
8
  import "../typography/heading/index.js";
8
9
  import "../typography/span/index.js";
9
- import { Text as i } from "../typography/text/index.js";
10
- const I = ({
10
+ import { Text as n } from "../typography/text/index.js";
11
+ const N = ({
11
12
  counter: v,
12
- emptyText: d,
13
- items: r,
14
- maxHeight: y = "20rem",
13
+ emptyText: c,
14
+ items: o,
15
+ maxHeight: b = "20rem",
15
16
  name: h,
16
17
  onChange: p,
17
- searchPlaceholder: g,
18
- selected: o
18
+ searchPlaceholder: y,
19
+ selected: t
19
20
  }) => {
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)
21
+ const a = x(), [s, m] = L(""), u = C(() => {
22
+ const e = s.trim().toLowerCase();
23
+ return o.filter(
24
+ (r) => r.label.toLowerCase().includes(e)
24
25
  );
25
- }, [r, c]), f = r.filter(
26
- (e) => o.has(e.value)
27
- ).length, b = m(
26
+ }, [o, s]), S = o.filter(
27
+ (e) => t.has(e.value)
28
+ ).length, f = g(
28
29
  (e) => {
29
- S(e.target.value);
30
+ m(e.target.value);
30
31
  },
31
32
  []
32
- ), w = m(
33
+ ), w = g(
33
34
  (e) => {
34
- const { value: a } = e.target, n = new Set(o);
35
- n.has(a) ? n.delete(a) : n.add(a), p(n);
35
+ const { value: r } = e.target, d = new Set(t);
36
+ d.has(r) ? d.delete(r) : d.add(r), p(d);
36
37
  },
37
- [p, o]
38
+ [p, t]
38
39
  );
39
- return /* @__PURE__ */ s("div", { children: [
40
- /* @__PURE__ */ s(z, { children: [
40
+ return /* @__PURE__ */ i("div", { children: [
41
+ /* @__PURE__ */ i($, { children: [
41
42
  /* @__PURE__ */ l(
42
- R,
43
+ H,
43
44
  {
44
45
  name: `${h}-search`,
45
- onChange: b,
46
- placeholder: g,
47
- value: c
46
+ onChange: f,
47
+ placeholder: y,
48
+ value: s
48
49
  }
49
50
  ),
50
51
  /* @__PURE__ */ l(
51
- i,
52
+ n,
52
53
  {
53
54
  "aria-live": "polite",
54
- color: t.palette.gray[600],
55
+ color: a.palette.gray[600],
55
56
  display: "inline",
56
57
  size: "md",
57
58
  whiteSpace: "nowrap",
58
- children: v(f, r.length)
59
+ children: v(S, o.length)
59
60
  }
60
61
  )
61
62
  ] }),
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,
63
+ u.length === 0 && c !== void 0 ? /* @__PURE__ */ l(n, { color: a.palette.gray[600], py: 1, size: "md", children: c }) : /* @__PURE__ */ l(z, { $maxHeight: b, children: u.map((e) => /* @__PURE__ */ l(k, { $disabled: e.disabled === !0, children: /* @__PURE__ */ l(
64
+ j,
64
65
  {
65
66
  "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
- ),
67
+ checked: t.has(e.value),
68
+ disabled: e.disabled,
69
+ label: /* @__PURE__ */ i(R, { children: [
70
+ /* @__PURE__ */ i(T, { children: [
71
+ /* @__PURE__ */ l(
72
+ n,
73
+ {
74
+ color: e.disabled === !0 ? a.palette.gray[400] : a.palette.gray[800],
75
+ display: "inline",
76
+ size: "md",
77
+ children: e.label
78
+ }
79
+ ),
80
+ e.tag === void 0 ? void 0 : /* @__PURE__ */ l(q, { tagLabel: e.tag })
81
+ ] }),
77
82
  e.secondary === void 0 ? void 0 : /* @__PURE__ */ l(
78
- i,
83
+ n,
79
84
  {
80
- color: t.palette.gray[600],
85
+ color: a.palette.gray[600],
81
86
  display: "inline",
82
87
  size: "md",
83
88
  whiteSpace: "nowrap",
@@ -93,5 +98,5 @@ const I = ({
93
98
  ] });
94
99
  };
95
100
  export {
96
- I as SelectableList
101
+ N as SelectableList
97
102
  };
@@ -2,5 +2,6 @@ import { Meta } from '@storybook/react-vite';
2
2
  import { ISelectableListProps } from './types';
3
3
  declare const config: Meta;
4
4
  declare const Default: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, ISelectableListProps>;
5
- export { Default };
5
+ declare const WithDisabled: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, ISelectableListProps>;
6
+ export { Default, WithDisabled };
6
7
  export default config;
@@ -4,6 +4,11 @@ declare const StyledList: import('styled-components/dist/types').IStyledComponen
4
4
  }, never> & Partial<Pick<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "$maxHeight"> & {
5
5
  $maxHeight: string;
6
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;
7
+ declare const StyledListRow: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "$disabled"> & {
8
+ $disabled: boolean;
9
+ }, never> & Partial<Pick<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "$disabled"> & {
10
+ $disabled: boolean;
11
+ }, never>>> & string;
8
12
  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 };
13
+ declare const StyledRowLabel: 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;
14
+ export { StyledList, StyledListHeader, StyledListRow, StyledRowContent, StyledRowLabel, };
@@ -10,17 +10,18 @@ const n = e.div`
10
10
  flex: 1;
11
11
  min-width: 0;
12
12
  }
13
- `, l = e.ul`
14
- ${({ theme: t, $maxHeight: i }) => `
13
+ `, o = e.ul`
14
+ ${({ theme: t, $maxHeight: a }) => `
15
15
  border-bottom: 1px solid ${t.palette.gray[200]};
16
16
  list-style: none;
17
17
  margin: 0;
18
- max-height: ${i};
18
+ max-height: ${a};
19
19
  overflow-y: auto;
20
20
  padding: 0;
21
21
  `}
22
- `, a = e.li`
23
- ${({ theme: t }) => `
22
+ `, l = e.li`
23
+ ${({ theme: t, $disabled: a }) => `
24
+ background-color: ${a ? t.palette.gray[50] : "transparent"};
24
25
  border-bottom: 1px solid ${t.palette.gray[200]};
25
26
 
26
27
  &:last-child {
@@ -28,7 +29,11 @@ const n = e.div`
28
29
  }
29
30
 
30
31
  &:hover {
31
- background-color: ${t.palette.gray[25]};
32
+ background-color: ${t.palette.gray[a ? 50 : 25]};
33
+ }
34
+
35
+ .parent-checkbox input:disabled ~ span {
36
+ opacity: 1;
32
37
  }
33
38
 
34
39
  &:has(input:focus-visible) {
@@ -53,10 +58,16 @@ const n = e.div`
53
58
  gap: ${({ theme: t }) => t.spacing[1]};
54
59
  justify-content: space-between;
55
60
  min-width: 0;
61
+ `, p = e.span`
62
+ align-items: center;
63
+ display: flex;
64
+ gap: ${({ theme: t }) => t.spacing[0.5]};
65
+ min-width: 0;
56
66
  `;
57
67
  export {
58
- l as StyledList,
68
+ o as StyledList,
59
69
  n as StyledListHeader,
60
- a as StyledListRow,
61
- s as StyledRowContent
70
+ l as StyledListRow,
71
+ s as StyledRowContent,
72
+ p as StyledRowLabel
62
73
  };
@@ -1,13 +1,17 @@
1
1
  /**
2
2
  * Selectable list item props.
3
3
  * @interface ISelectableListItem
4
+ * @property { boolean } [disabled] - The row cannot be toggled and renders muted; its checkbox still reflects `selected`. Rows keep the order of `items`, so the owner places disabled rows.
4
5
  * @property { string } label - The row's text, also what the search filters on.
5
6
  * @property { string } [secondary] - Right-aligned detail, such as "5 repositories".
7
+ * @property { string } [tag] - Short status shown after the label, such as "Inactive".
6
8
  * @property { string } value - Unique key stored in the selection.
7
9
  */
8
10
  interface ISelectableListItem {
11
+ disabled?: boolean;
9
12
  label: string;
10
13
  secondary?: string;
14
+ tag?: string;
11
15
  value: string;
12
16
  }
13
17
  /**
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@ import { AdvancedBadge as B } from "./components/advanced-badge/index.js";
8
8
  import { AdvisoriesCard as F } from "./components/advisories-card/index.js";
9
9
  import { Alert as v } from "./components/alert/index.js";
10
10
  import { Avatar as L } from "./components/avatar/index.js";
11
- import { Button as A } from "./components/button/index.js";
11
+ import { Button as M } from "./components/button/index.js";
12
12
  import { CardHeader as w } from "./components/card/card-header/index.js";
13
13
  import { CardWithImage as V } from "./components/card/card-with-image/index.js";
14
14
  import { CardWithInput as N } from "./components/card/card-with-input/index.js";
@@ -34,7 +34,7 @@ import { useConfirmDialog as Br } from "./components/confirm-dialog/index.js";
34
34
  import { Container as Fr } from "./components/container/index.js";
35
35
  import { CopyButton as vr } from "./components/copy-button/index.js";
36
36
  import { Divider as Lr } from "./components/divider/index.js";
37
- import { Drawer as Ar } from "./components/drawer/index.js";
37
+ import { Drawer as Mr } from "./components/drawer/index.js";
38
38
  import { Dropdown as wr } from "./components/dropdown/index.js";
39
39
  import { EmptyState as Vr } from "./components/empty-state/index.js";
40
40
  import { FATag as Nr } from "./components/fa-tag/index.js";
@@ -55,111 +55,112 @@ import { InputArray as so } from "./components/inputs/fields/input-array/index.j
55
55
  import { InputFile as uo } from "./components/inputs/fields/input-file/index.js";
56
56
  import { InputSection as co } from "./components/inputs/fields/input-section/index.js";
57
57
  import { InputTags as So } from "./components/inputs/fields/input-tags/index.js";
58
- import { InputNumber as Io } from "./components/inputs/fields/number/index.js";
59
- import { InputNumberRange as Do } from "./components/inputs/fields/number-range/index.js";
60
- import { PhoneInput as ho } from "./components/inputs/fields/phone/index.js";
61
- import { TextArea as Po } from "./components/inputs/fields/text-area/index.js";
62
- import { TextInput as yo } from "./components/inputs/fields/text-input/index.js";
63
- import { OutlineContainer as ko } from "./components/inputs/outline-container/index.js";
64
- import { ErrorMessage as Mo } from "./components/inputs/styles.js";
65
- import { ItemCardDB as Oo } from "./components/item-card-db/index.js";
66
- import { LanguageSwitcher as Eo } from "./components/language-switcher/index.js";
67
- import { ButtonToolbarCenter as Ro, ButtonToolbarRow as Wo, ButtonToolbarStartRow as Go } from "./components/layout/categories/buttons/index.js";
68
- import { Col as zo } from "./components/layout/categories/column/index.js";
69
- import { Gap as Ko } from "./components/layout/categories/gap/index.js";
70
- import { Row as _o } from "./components/layout/categories/row/index.js";
71
- import { Link as qo } from "./components/link/index.js";
72
- import { ListItem as Qo } from "./components/list-item/index.js";
73
- import { LittleFlag as Zo } from "./components/little-flag/index.js";
74
- import { Loading as re } from "./components/loading/index.js";
75
- import { Logo as ee } from "./components/logo/index.js";
76
- import { Lottie as pe } from "./components/lottie/index.js";
77
- import { Menu as fe } from "./components/menu/index.js";
78
- import { MessageBanner as ae } from "./components/message-banner/index.js";
79
- import { Modal as ie } from "./components/modal/index.js";
80
- import { Notification as le } from "./components/notification/index.js";
81
- import { NotificationSign as de } from "./components/notification-sign/index.js";
82
- import { OAuthSelector as ce } from "./components/oauth-selector/index.js";
83
- import { OptionCard as Se } from "./components/option-card/index.js";
84
- import { PackageCard as Ie } from "./components/package-card/index.js";
85
- import { PaginatorDb as De } from "./components/paginator-db/index.js";
86
- import { PremiumFeature as he } from "./components/premium-feature/index.js";
87
- import { PriorityCards as Pe } from "./components/priority-cards/index.js";
88
- import { PriorityScore as ye } from "./components/priority-score/index.js";
89
- import { ProgressBar as ke } from "./components/progress-bar/index.js";
90
- import { ProgressIndicator as Me } from "./components/progress-indicator/index.js";
91
- import { PopUp as Oe } from "./components/pop-up/index.js";
92
- import { RadioButton as Ee } from "./components/radio-button/index.js";
93
- import { RankPosition as Re } from "./components/rank-position/index.js";
94
- import { RulesCard as Ge } from "./components/rules-card/index.js";
95
- import { ScrollUpButton as ze } from "./components/scroll-button/index.js";
96
- import { Search as Ke } from "./components/search/index.js";
97
- import { SearchDropdown as _e } from "./components/search-dropdown/index.js";
98
- import { SegmentedControl as qe } from "./components/segmented-control/index.js";
99
- import { SegmentedProgressBar as Qe } from "./components/segmented-progress-bar/index.js";
100
- import { SelectableList as Ze } from "./components/selectable-list/index.js";
101
- import { SeverityBadge as rt } from "./components/severity-badge/index.js";
102
- import { SeverityIndicator as et } from "./components/severity-indicator/index.js";
103
- import { SeverityOverview as pt } from "./components/severity-overview/index.js";
104
- import { ShowOnHover as ft } from "./components/show-on-hover/index.js";
105
- import { Skeleton as at } from "./components/skeleton/index.js";
106
- import { SlideOutMenu as it } from "./components/slide-out-menu/index.js";
107
- import { Slider as lt } from "./components/slider/index.js";
108
- import { StepLapse as dt } from "./components/step-lapse/index.js";
109
- import { Stepper as ct } from "./components/stepper/index.js";
110
- import { SummaryCard as St } from "./components/summary-card/index.js";
111
- import { Table as It } from "./components/table/index.js";
112
- import { TableButton as Dt } from "./components/table-button/index.js";
113
- import { TableContent as ht } from "./components/table-content/index.js";
114
- import { TableOfContents as Pt } from "./components/table-of-contents/index.js";
115
- import { Tabs as yt } from "./components/tabs/index.js";
116
- import { Tag as kt } from "./components/tag/index.js";
117
- import { TimeLine as Mt } from "./components/timeline/index.js";
118
- import { Toggle as Ot } from "./components/toggle/index.js";
119
- import { Tooltip as Et } from "./components/tooltip/index.js";
120
- import { Tour as Rt, baseStep as Wt, defaultOptions as Gt } from "./components/tour/index.js";
121
- import { Tree as zt } from "./components/tree/index.js";
122
- import { TruncatedList as Kt } from "./components/truncated-list/index.js";
123
- import { TruncatedValues as _t } from "./components/truncated-values/index.js";
124
- import { Heading as qt } from "./components/typography/heading/index.js";
125
- import { Span as Qt } from "./components/typography/span/index.js";
126
- import { Text as Zt } from "./components/typography/text/index.js";
127
- import { WeaknessesCard as rp } from "./components/weaknesses-card/index.js";
128
- import { DesignsContext as ep } from "./context/react/index.js";
129
- import { DesignsProvider as pp } from "./globals/designs-provider/index.js";
130
- import { GlobalTypography as fp } from "./globals/global-typography/index.js";
131
- import { DesignTokensCss as ap } from "./globals/design-tokens-css/index.js";
132
- import { useActiveSection as ip } from "./hooks/use-active-section.js";
133
- import { useCarousel as lp } from "./hooks/use-carousel.js";
134
- import { useClickOutside as dp } from "./hooks/use-click-outside.js";
135
- import { useCloudinaryImage as cp } from "./hooks/use-cloudinary-image.js";
136
- import { useColumnsModal as Sp } from "./hooks/use-columns-modal.js";
137
- import { useDebouncedCallback as Ip } from "./hooks/use-debounced-callback.js";
138
- import { useFiltersValues as Dp } from "./hooks/use-filters.js";
139
- import { useModal as hp } from "./hooks/use-modal.js";
140
- import { useMountEffect as Pp } from "./hooks/use-mount-effect.js";
141
- import { useSearch as yp } from "./hooks/use-search.js";
142
- import { formatDate as kp, formatDateTime as Ap, formatDateTimeInInput as Mp } from "./utils/date.js";
143
- import { EXCLUDE_TOKEN as Op, analyzeFilterValue as Vp, formatCheckboxesFilterValue as Ep, formatIncludeExcludeFilterValue as Np, formatTextFilterValue as Rp, getPreservedValues as Wp, normalizeCheckboxesFilterValue as Gp, parseCheckboxesFilterValue as Up, parseIncludeExcludeFilterValue as zp, parseTextFilterValue as Hp } from "./utils/filters.js";
144
- import { normalizeDate as Xp, normalizeNumber as _p } from "./utils/normalizers.js";
145
- import { openUrl as qp } from "./utils/open-url.js";
146
- import { clearStorage as Qp, getPathname as Yp, getStorageItem as Zp } from "./utils/storage.js";
147
- import { safeUrl as rm } from "./utils/url.js";
148
- import { ActiveFilters as em } from "./components/filters/active-filters/index.js";
149
- import { ColumnsModal as pm } from "./components/modal/columns-modal/index.js";
150
- import { Controller as fm, useController as xm, useFieldArray as am, useFormContext as nm, useWatch as im } from "./node_modules/react-hook-form/dist/index.esm.js";
151
- import { InnerForm as lm } from "./components/form/inner-form/index.js";
152
- import { ItemContent as dm } from "./components/table-content/item-content/index.js";
153
- import { ListItemsWrapper as cm } from "./components/list-item/styles.js";
154
- import { ModalConfirm as Sm } from "./components/modal/modal-confirm/index.js";
155
- import { ModalFooter as Im } from "./components/modal/footer/index.js";
156
- import { ProgressStep as Dm } from "./components/progress-indicator/step/index.js";
157
- import { TimeLineCard as hm } from "./components/timeline/card/index.js";
158
- import { partitionFilters as Pm } from "./components/filters/utils.js";
159
- import { useNumberFormatter as ym } from "./node_modules/react-aria/dist/private/i18n/useNumberFormatter.js";
58
+ import { MonthPicker as Io } from "./components/inputs/fields/month/index.js";
59
+ import { InputNumber as Do } from "./components/inputs/fields/number/index.js";
60
+ import { InputNumberRange as ho } from "./components/inputs/fields/number-range/index.js";
61
+ import { PhoneInput as Po } from "./components/inputs/fields/phone/index.js";
62
+ import { TextArea as yo } from "./components/inputs/fields/text-area/index.js";
63
+ import { TextInput as ko } from "./components/inputs/fields/text-input/index.js";
64
+ import { OutlineContainer as Ao } from "./components/inputs/outline-container/index.js";
65
+ import { ErrorMessage as Oo } from "./components/inputs/styles.js";
66
+ import { ItemCardDB as Eo } from "./components/item-card-db/index.js";
67
+ import { LanguageSwitcher as Ro } from "./components/language-switcher/index.js";
68
+ import { ButtonToolbarCenter as Go, ButtonToolbarRow as Uo, ButtonToolbarStartRow as zo } from "./components/layout/categories/buttons/index.js";
69
+ import { Col as Ko } from "./components/layout/categories/column/index.js";
70
+ import { Gap as _o } from "./components/layout/categories/gap/index.js";
71
+ import { Row as qo } from "./components/layout/categories/row/index.js";
72
+ import { Link as Qo } from "./components/link/index.js";
73
+ import { ListItem as Zo } from "./components/list-item/index.js";
74
+ import { LittleFlag as re } from "./components/little-flag/index.js";
75
+ import { Loading as ee } from "./components/loading/index.js";
76
+ import { Logo as pe } from "./components/logo/index.js";
77
+ import { Lottie as fe } from "./components/lottie/index.js";
78
+ import { Menu as ae } from "./components/menu/index.js";
79
+ import { MessageBanner as ie } from "./components/message-banner/index.js";
80
+ import { Modal as le } from "./components/modal/index.js";
81
+ import { Notification as de } from "./components/notification/index.js";
82
+ import { NotificationSign as ce } from "./components/notification-sign/index.js";
83
+ import { OAuthSelector as Se } from "./components/oauth-selector/index.js";
84
+ import { OptionCard as Ie } from "./components/option-card/index.js";
85
+ import { PackageCard as De } from "./components/package-card/index.js";
86
+ import { PaginatorDb as he } from "./components/paginator-db/index.js";
87
+ import { PremiumFeature as Pe } from "./components/premium-feature/index.js";
88
+ import { PriorityCards as ye } from "./components/priority-cards/index.js";
89
+ import { PriorityScore as ke } from "./components/priority-score/index.js";
90
+ import { ProgressBar as Ae } from "./components/progress-bar/index.js";
91
+ import { ProgressIndicator as Oe } from "./components/progress-indicator/index.js";
92
+ import { PopUp as Ee } from "./components/pop-up/index.js";
93
+ import { RadioButton as Re } from "./components/radio-button/index.js";
94
+ import { RankPosition as Ge } from "./components/rank-position/index.js";
95
+ import { RulesCard as ze } from "./components/rules-card/index.js";
96
+ import { ScrollUpButton as Ke } from "./components/scroll-button/index.js";
97
+ import { Search as _e } from "./components/search/index.js";
98
+ import { SearchDropdown as qe } from "./components/search-dropdown/index.js";
99
+ import { SegmentedControl as Qe } from "./components/segmented-control/index.js";
100
+ import { SegmentedProgressBar as Ze } from "./components/segmented-progress-bar/index.js";
101
+ import { SelectableList as rt } from "./components/selectable-list/index.js";
102
+ import { SeverityBadge as et } from "./components/severity-badge/index.js";
103
+ import { SeverityIndicator as pt } from "./components/severity-indicator/index.js";
104
+ import { SeverityOverview as ft } from "./components/severity-overview/index.js";
105
+ import { ShowOnHover as at } from "./components/show-on-hover/index.js";
106
+ import { Skeleton as it } from "./components/skeleton/index.js";
107
+ import { SlideOutMenu as lt } from "./components/slide-out-menu/index.js";
108
+ import { Slider as dt } from "./components/slider/index.js";
109
+ import { StepLapse as ct } from "./components/step-lapse/index.js";
110
+ import { Stepper as St } from "./components/stepper/index.js";
111
+ import { SummaryCard as It } from "./components/summary-card/index.js";
112
+ import { Table as Dt } from "./components/table/index.js";
113
+ import { TableButton as ht } from "./components/table-button/index.js";
114
+ import { TableContent as Pt } from "./components/table-content/index.js";
115
+ import { TableOfContents as yt } from "./components/table-of-contents/index.js";
116
+ import { Tabs as kt } from "./components/tabs/index.js";
117
+ import { Tag as At } from "./components/tag/index.js";
118
+ import { TimeLine as Ot } from "./components/timeline/index.js";
119
+ import { Toggle as Et } from "./components/toggle/index.js";
120
+ import { Tooltip as Rt } from "./components/tooltip/index.js";
121
+ import { Tour as Gt, baseStep as Ut, defaultOptions as zt } from "./components/tour/index.js";
122
+ import { Tree as Kt } from "./components/tree/index.js";
123
+ import { TruncatedList as _t } from "./components/truncated-list/index.js";
124
+ import { TruncatedValues as qt } from "./components/truncated-values/index.js";
125
+ import { Heading as Qt } from "./components/typography/heading/index.js";
126
+ import { Span as Zt } from "./components/typography/span/index.js";
127
+ import { Text as rp } from "./components/typography/text/index.js";
128
+ import { WeaknessesCard as ep } from "./components/weaknesses-card/index.js";
129
+ import { DesignsContext as pp } from "./context/react/index.js";
130
+ import { DesignsProvider as fp } from "./globals/designs-provider/index.js";
131
+ import { GlobalTypography as ap } from "./globals/global-typography/index.js";
132
+ import { DesignTokensCss as ip } from "./globals/design-tokens-css/index.js";
133
+ import { useActiveSection as lp } from "./hooks/use-active-section.js";
134
+ import { useCarousel as dp } from "./hooks/use-carousel.js";
135
+ import { useClickOutside as cp } from "./hooks/use-click-outside.js";
136
+ import { useCloudinaryImage as Sp } from "./hooks/use-cloudinary-image.js";
137
+ import { useColumnsModal as Ip } from "./hooks/use-columns-modal.js";
138
+ import { useDebouncedCallback as Dp } from "./hooks/use-debounced-callback.js";
139
+ import { useFiltersValues as hp } from "./hooks/use-filters.js";
140
+ import { useModal as Pp } from "./hooks/use-modal.js";
141
+ import { useMountEffect as yp } from "./hooks/use-mount-effect.js";
142
+ import { useSearch as kp } from "./hooks/use-search.js";
143
+ import { formatDate as Ap, formatDateTime as wp, formatDateTimeInInput as Op } from "./utils/date.js";
144
+ import { EXCLUDE_TOKEN as Ep, analyzeFilterValue as Np, formatCheckboxesFilterValue as Rp, formatIncludeExcludeFilterValue as Wp, formatTextFilterValue as Gp, getPreservedValues as Up, normalizeCheckboxesFilterValue as zp, parseCheckboxesFilterValue as Hp, parseIncludeExcludeFilterValue as Kp, parseTextFilterValue as Xp } from "./utils/filters.js";
145
+ import { normalizeDate as jp, normalizeNumber as qp } from "./utils/normalizers.js";
146
+ import { openUrl as Qp } from "./utils/open-url.js";
147
+ import { clearStorage as Zp, getPathname as $p, getStorageItem as rm } from "./utils/storage.js";
148
+ import { safeUrl as em } from "./utils/url.js";
149
+ import { ActiveFilters as pm } from "./components/filters/active-filters/index.js";
150
+ import { ColumnsModal as fm } from "./components/modal/columns-modal/index.js";
151
+ import { Controller as am, useController as nm, useFieldArray as im, useFormContext as sm, useWatch as lm } from "./node_modules/react-hook-form/dist/index.esm.js";
152
+ import { InnerForm as dm } from "./components/form/inner-form/index.js";
153
+ import { ItemContent as cm } from "./components/table-content/item-content/index.js";
154
+ import { ListItemsWrapper as Sm } from "./components/list-item/styles.js";
155
+ import { ModalConfirm as Im } from "./components/modal/modal-confirm/index.js";
156
+ import { ModalFooter as Dm } from "./components/modal/footer/index.js";
157
+ import { ProgressStep as hm } from "./components/progress-indicator/step/index.js";
158
+ import { TimeLineCard as Pm } from "./components/timeline/card/index.js";
159
+ import { partitionFilters as ym } from "./components/filters/utils.js";
160
+ import { useNumberFormatter as km } from "./node_modules/react-aria/dist/private/i18n/useNumberFormatter.js";
160
161
  export {
161
162
  b as Accordion,
162
- em as ActiveFilters,
163
+ pm as ActiveFilters,
163
164
  B as AdvancedBadge,
164
165
  F as AdvisoriesCard,
165
166
  v as Alert,
@@ -168,10 +169,10 @@ export {
168
169
  a as BaseComponent,
169
170
  n as BaseSpanComponent,
170
171
  i as BaseTextComponent,
171
- A as Button,
172
- Ro as ButtonToolbarCenter,
173
- Wo as ButtonToolbarRow,
174
- Go as ButtonToolbarStartRow,
172
+ M as Button,
173
+ Go as ButtonToolbarCenter,
174
+ Uo as ButtonToolbarRow,
175
+ zo as ButtonToolbarStartRow,
175
176
  j as CardContainer,
176
177
  w as CardHeader,
177
178
  V as CardWithImage,
@@ -184,146 +185,147 @@ export {
184
185
  xr as CircularProgress,
185
186
  nr as CloudImage,
186
187
  sr as CodeSnippet,
187
- zo as Col,
188
+ Ko as Col,
188
189
  ur as CollapsibleCard,
189
- pm as ColumnsModal,
190
+ fm as ColumnsModal,
190
191
  oo as ComboBox,
191
192
  Tr as ComparisonTable,
192
193
  Fr as Container,
193
- fm as Controller,
194
+ am as Controller,
194
195
  vr as CopyButton,
195
196
  Cr as CustomThemeProvider,
196
197
  Y as DataLegend,
197
198
  $ as DataNumber,
198
- ap as DesignTokensCss,
199
- ep as DesignsContext,
200
- pp as DesignsProvider,
199
+ ip as DesignTokensCss,
200
+ pp as DesignsContext,
201
+ fp as DesignsProvider,
201
202
  or as DistributionBar,
202
203
  Lr as Divider,
203
- Ar as Drawer,
204
+ Mr as Drawer,
204
205
  wr as Dropdown,
205
- Op as EXCLUDE_TOKEN,
206
+ Ep as EXCLUDE_TOKEN,
206
207
  no as Editable,
207
208
  Vr as EmptyState,
208
- Mo as ErrorMessage,
209
+ Oo as ErrorMessage,
209
210
  Nr as FATag,
210
211
  Wr as FilePreview,
211
212
  Ur as Filters,
212
213
  Hr as Form,
213
- Ko as Gap,
214
- fp as GlobalTypography,
214
+ _o as Gap,
215
+ ap as GlobalTypography,
215
216
  Xr as GridContainer,
216
217
  jr as GroupSelector,
217
218
  tr as GroupedDataNumber,
218
- qt as Heading,
219
+ Qt as Heading,
219
220
  Jr as Icon,
220
221
  Yr as IconButton,
221
222
  X as IndicatorCard,
222
223
  $r as IndicatorCardDB,
223
- lm as InnerForm,
224
+ dm as InnerForm,
224
225
  so as InputArray,
225
226
  to as InputDate,
226
227
  mo as InputDateRange,
227
228
  xo as InputDateTime,
228
229
  uo as InputFile,
229
- Io as InputNumber,
230
- Do as InputNumberRange,
230
+ Do as InputNumber,
231
+ ho as InputNumberRange,
231
232
  co as InputSection,
232
233
  So as InputTags,
233
- Oo as ItemCardDB,
234
- dm as ItemContent,
235
- Eo as LanguageSwitcher,
236
- qo as Link,
237
- Qo as ListItem,
238
- cm as ListItemsWrapper,
239
- Zo as LittleFlag,
240
- re as Loading,
241
- ee as Logo,
242
- pe as Lottie,
243
- fe as Menu,
244
- ae as MessageBanner,
245
- ie as Modal,
246
- Sm as ModalConfirm,
247
- Im as ModalFooter,
248
- le as Notification,
249
- de as NotificationSign,
250
- ce as OAuthSelector,
251
- Se as OptionCard,
252
- ko as OutlineContainer,
253
- Ie as PackageCard,
254
- De as PaginatorDb,
255
- ho as PhoneInput,
256
- Oe as PopUp,
257
- he as PremiumFeature,
258
- Pe as PriorityCards,
259
- ye as PriorityScore,
260
- ke as ProgressBar,
261
- Me as ProgressIndicator,
262
- Dm as ProgressStep,
263
- Ee as RadioButton,
264
- Re as RankPosition,
265
- _o as Row,
266
- Ge as RulesCard,
267
- ze as ScrollUpButton,
268
- Ke as Search,
269
- _e as SearchDropdown,
270
- qe as SegmentedControl,
271
- Qe as SegmentedProgressBar,
272
- Ze as SelectableList,
273
- rt as SeverityBadge,
274
- et as SeverityIndicator,
275
- pt as SeverityOverview,
276
- ft as ShowOnHover,
277
- at as Skeleton,
278
- it as SlideOutMenu,
279
- lt as Slider,
280
- Qt as Span,
281
- dt as StepLapse,
282
- ct as Stepper,
283
- St as SummaryCard,
284
- It as Table,
285
- Dt as TableButton,
286
- ht as TableContent,
287
- Pt as TableOfContents,
288
- yt as Tabs,
289
- kt as Tag,
290
- Zt as Text,
291
- Po as TextArea,
292
- yo as TextInput,
293
- Mt as TimeLine,
294
- hm as TimeLineCard,
295
- Ot as Toggle,
296
- Et as Tooltip,
297
- Rt as Tour,
298
- zt as Tree,
299
- Kt as TruncatedList,
300
- _t as TruncatedValues,
301
- rp as WeaknessesCard,
302
- Vp as analyzeFilterValue,
303
- Wt as baseStep,
304
- Qp as clearStorage,
305
- Gt as defaultOptions,
306
- Ep as formatCheckboxesFilterValue,
307
- kp as formatDate,
308
- Ap as formatDateTime,
309
- Mp as formatDateTimeInInput,
310
- Np as formatIncludeExcludeFilterValue,
311
- Rp as formatTextFilterValue,
312
- Yp as getPathname,
313
- Wp as getPreservedValues,
314
- Zp as getStorageItem,
234
+ Eo as ItemCardDB,
235
+ cm as ItemContent,
236
+ Ro as LanguageSwitcher,
237
+ Qo as Link,
238
+ Zo as ListItem,
239
+ Sm as ListItemsWrapper,
240
+ re as LittleFlag,
241
+ ee as Loading,
242
+ pe as Logo,
243
+ fe as Lottie,
244
+ ae as Menu,
245
+ ie as MessageBanner,
246
+ le as Modal,
247
+ Im as ModalConfirm,
248
+ Dm as ModalFooter,
249
+ Io as MonthPicker,
250
+ de as Notification,
251
+ ce as NotificationSign,
252
+ Se as OAuthSelector,
253
+ Ie as OptionCard,
254
+ Ao as OutlineContainer,
255
+ De as PackageCard,
256
+ he as PaginatorDb,
257
+ Po as PhoneInput,
258
+ Ee as PopUp,
259
+ Pe as PremiumFeature,
260
+ ye as PriorityCards,
261
+ ke as PriorityScore,
262
+ Ae as ProgressBar,
263
+ Oe as ProgressIndicator,
264
+ hm as ProgressStep,
265
+ Re as RadioButton,
266
+ Ge as RankPosition,
267
+ qo as Row,
268
+ ze as RulesCard,
269
+ Ke as ScrollUpButton,
270
+ _e as Search,
271
+ qe as SearchDropdown,
272
+ Qe as SegmentedControl,
273
+ Ze as SegmentedProgressBar,
274
+ rt as SelectableList,
275
+ et as SeverityBadge,
276
+ pt as SeverityIndicator,
277
+ ft as SeverityOverview,
278
+ at as ShowOnHover,
279
+ it as Skeleton,
280
+ lt as SlideOutMenu,
281
+ dt as Slider,
282
+ Zt as Span,
283
+ ct as StepLapse,
284
+ St as Stepper,
285
+ It as SummaryCard,
286
+ Dt as Table,
287
+ ht as TableButton,
288
+ Pt as TableContent,
289
+ yt as TableOfContents,
290
+ kt as Tabs,
291
+ At as Tag,
292
+ rp as Text,
293
+ yo as TextArea,
294
+ ko as TextInput,
295
+ Ot as TimeLine,
296
+ Pm as TimeLineCard,
297
+ Et as Toggle,
298
+ Rt as Tooltip,
299
+ Gt as Tour,
300
+ Kt as Tree,
301
+ _t as TruncatedList,
302
+ qt as TruncatedValues,
303
+ ep as WeaknessesCard,
304
+ Np as analyzeFilterValue,
305
+ Ut as baseStep,
306
+ Zp as clearStorage,
307
+ zt as defaultOptions,
308
+ Rp as formatCheckboxesFilterValue,
309
+ Ap as formatDate,
310
+ wp as formatDateTime,
311
+ Op as formatDateTimeInInput,
312
+ Wp as formatIncludeExcludeFilterValue,
313
+ Gp as formatTextFilterValue,
314
+ $p as getPathname,
315
+ Up as getPreservedValues,
316
+ rm as getStorageItem,
315
317
  l as getStyledConfig,
316
318
  m as hiddenProps,
317
319
  cr as icons,
318
- Gp as normalizeCheckboxesFilterValue,
319
- Xp as normalizeDate,
320
- _p as normalizeNumber,
321
- qp as openUrl,
322
- Up as parseCheckboxesFilterValue,
323
- zp as parseIncludeExcludeFilterValue,
324
- Hp as parseTextFilterValue,
325
- Pm as partitionFilters,
326
- rm as safeUrl,
320
+ zp as normalizeCheckboxesFilterValue,
321
+ jp as normalizeDate,
322
+ qp as normalizeNumber,
323
+ Qp as openUrl,
324
+ Hp as parseCheckboxesFilterValue,
325
+ Kp as parseIncludeExcludeFilterValue,
326
+ Xp as parseTextFilterValue,
327
+ ym as partitionFilters,
328
+ em as safeUrl,
327
329
  u as setBorder,
328
330
  d as setDisplay,
329
331
  C as setInteraction,
@@ -332,22 +334,22 @@ export {
332
334
  S as setPosition,
333
335
  T as setText,
334
336
  gr as theme,
335
- ip as useActiveSection,
336
- lp as useCarousel,
337
- dp as useClickOutside,
338
- cp as useCloudinaryImage,
339
- Sp as useColumnsModal,
337
+ lp as useActiveSection,
338
+ dp as useCarousel,
339
+ cp as useClickOutside,
340
+ Sp as useCloudinaryImage,
341
+ Ip as useColumnsModal,
340
342
  br as useConditionsDialog,
341
343
  Br as useConfirmDialog,
342
- xm as useController,
343
- Ip as useDebouncedCallback,
344
- am as useFieldArray,
345
- Dp as useFiltersValues,
346
- nm as useFormContext,
347
- hp as useModal,
348
- Pp as useMountEffect,
349
- ym as useNumberFormatter,
350
- yp as useSearch,
351
- im as useWatch,
344
+ nm as useController,
345
+ Dp as useDebouncedCallback,
346
+ im as useFieldArray,
347
+ hp as useFiltersValues,
348
+ sm as useFormContext,
349
+ Pp as useModal,
350
+ yp as useMountEffect,
351
+ km as useNumberFormatter,
352
+ kp as useSearch,
353
+ lm as useWatch,
352
354
  t as variantBuilder
353
355
  };
package/package.json CHANGED
@@ -135,5 +135,5 @@
135
135
  "./dist/index.js"
136
136
  ],
137
137
  "typings": "./dist/index.d.ts",
138
- "version": "11.9.0"
138
+ "version": "11.11.0"
139
139
  }