@fluidattacks/design 11.7.0 → 11.8.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/_virtual/index.js +3 -2
- package/dist/_virtual/index2.js +5 -3
- package/dist/_virtual/index3.js +5 -5
- package/dist/_virtual/index4.js +5 -5
- package/dist/_virtual/index5.js +2 -5
- package/dist/components/carousel/index.js +9 -8
- package/dist/components/cloud-image/index.js +7 -6
- package/dist/components/conditions-dialog/index.js +16 -15
- package/dist/components/confirm-dialog/index.js +8 -7
- package/dist/components/modal/dialog/index.js +7 -6
- package/dist/components/modal/styles.js +21 -16
- package/dist/components/oauth-selector/index.d.ts +3 -3
- package/dist/components/oauth-selector/index.js +69 -43
- package/dist/components/oauth-selector/styles.d.ts +2 -1
- package/dist/components/oauth-selector/styles.js +20 -8
- package/dist/components/oauth-selector/types.d.ts +13 -1
- package/dist/components/stepper/index.js +8 -8
- package/dist/components/stepper/styles.d.ts +1 -5
- package/dist/components/stepper/styles.js +4 -3
- package/dist/components/table/wrapper/index.js +3 -2
- package/dist/node_modules/react-joyride/dist/index.js +4 -4
- package/dist/node_modules/use-sync-external-store/shim/index.js +1 -1
- package/package.json +1 -1
package/dist/_virtual/index.js
CHANGED
package/dist/_virtual/index2.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
|
|
2
|
+
import { __require as e } from "../node_modules/react-innertext/index.js";
|
|
3
|
+
var t = e();
|
|
4
|
+
const n = /* @__PURE__ */ r(t);
|
|
3
5
|
export {
|
|
4
|
-
|
|
6
|
+
n as default
|
|
5
7
|
};
|
package/dist/_virtual/index3.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { getDefaultExportFromCjs as
|
|
2
|
-
import { __require as
|
|
3
|
-
var
|
|
4
|
-
const
|
|
1
|
+
import { getDefaultExportFromCjs as e } from "./_commonjsHelpers.js";
|
|
2
|
+
import { __require as r } from "../node_modules/@fastify/deepmerge/index.js";
|
|
3
|
+
var o = r();
|
|
4
|
+
const p = /* @__PURE__ */ e(o);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
package/dist/_virtual/index4.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { getDefaultExportFromCjs as
|
|
2
|
-
import { __require as
|
|
3
|
-
var
|
|
4
|
-
const
|
|
1
|
+
import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
|
|
2
|
+
import { __require as o } from "../node_modules/scroll/index.js";
|
|
3
|
+
var t = o();
|
|
4
|
+
const s = /* @__PURE__ */ r(t);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
s as default
|
|
7
7
|
};
|
package/dist/_virtual/index5.js
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { jsxs as u, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { useCallback as p } from "react";
|
|
3
|
-
import { CarouselContainer as
|
|
3
|
+
import { CarouselContainer as m, CarouselWrapper as C, CarouselSlide as d, NavContainer as v, NavButton as h } from "./styles.js";
|
|
4
4
|
import { useCarousel as k } from "../../hooks/use-carousel.js";
|
|
5
|
-
|
|
5
|
+
import "../../_virtual/lodash.js";
|
|
6
|
+
const g = ({
|
|
6
7
|
slides: a,
|
|
7
8
|
interval: c = 300
|
|
8
9
|
}) => {
|
|
9
|
-
const { cycle: l, setCycle:
|
|
10
|
+
const { cycle: l, setCycle: i, setProgress: n } = k(c, a.length), s = p(
|
|
10
11
|
(e) => () => {
|
|
11
|
-
|
|
12
|
+
i(e), n(0);
|
|
12
13
|
},
|
|
13
|
-
[
|
|
14
|
+
[i, n]
|
|
14
15
|
);
|
|
15
|
-
return /* @__PURE__ */ u(
|
|
16
|
-
/* @__PURE__ */ o(
|
|
16
|
+
return /* @__PURE__ */ u(m, { "aria-roledescription": "carousel", children: [
|
|
17
|
+
/* @__PURE__ */ o(C, { $currentIndex: l, children: a.map((e, r) => {
|
|
17
18
|
const t = `slide-${r}`;
|
|
18
19
|
return /* @__PURE__ */ o(
|
|
19
20
|
d,
|
|
@@ -41,5 +42,5 @@ const N = ({
|
|
|
41
42
|
] });
|
|
42
43
|
};
|
|
43
44
|
export {
|
|
44
|
-
|
|
45
|
+
g as Carousel
|
|
45
46
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { AdvancedImage as l, lazyload as g, placeholder as c } from "../../node_modules/@cloudinary/react/dist/index.js";
|
|
3
|
-
import
|
|
4
|
-
import { useCloudinaryImage as
|
|
5
|
-
|
|
3
|
+
import p from "react";
|
|
4
|
+
import { useCloudinaryImage as f } from "../../hooks/use-cloudinary-image.js";
|
|
5
|
+
import "../../_virtual/lodash.js";
|
|
6
|
+
const n = ({
|
|
6
7
|
alt: e = "img",
|
|
7
8
|
height: a = "",
|
|
8
9
|
width: r = "",
|
|
@@ -10,7 +11,7 @@ const p = ({
|
|
|
10
11
|
plugins: d = [g(), c()],
|
|
11
12
|
publicId: t
|
|
12
13
|
}) => {
|
|
13
|
-
const o =
|
|
14
|
+
const o = f({ publicId: t });
|
|
14
15
|
return m && o.addTransformation(m), /* @__PURE__ */ i(
|
|
15
16
|
l,
|
|
16
17
|
{
|
|
@@ -21,7 +22,7 @@ const p = ({
|
|
|
21
22
|
width: r
|
|
22
23
|
}
|
|
23
24
|
);
|
|
24
|
-
},
|
|
25
|
+
}, y = p.memo(n);
|
|
25
26
|
export {
|
|
26
|
-
|
|
27
|
+
y as CloudImage
|
|
27
28
|
};
|
|
@@ -3,26 +3,27 @@ import { useState as k, useRef as j, useCallback as r, useMemo as D } from "reac
|
|
|
3
3
|
import { Checkbox as M } from "../checkbox/index.js";
|
|
4
4
|
import { Container as O } from "../container/index.js";
|
|
5
5
|
import { Modal as y } from "../modal/index.js";
|
|
6
|
+
import "../../_virtual/lodash.js";
|
|
6
7
|
import { useModal as v } from "../../hooks/use-modal.js";
|
|
7
8
|
import { ModalConfirm as R } from "../modal/modal-confirm/index.js";
|
|
8
9
|
const S = ({
|
|
9
10
|
children: a,
|
|
10
|
-
conditions:
|
|
11
|
+
conditions: n,
|
|
11
12
|
id: c,
|
|
12
13
|
modalRef: s,
|
|
13
14
|
onConfirm: m,
|
|
14
15
|
title: d
|
|
15
16
|
}) => {
|
|
16
|
-
const [
|
|
17
|
-
i({ ...
|
|
18
|
-
}, [
|
|
17
|
+
const [t, i] = k(n), f = r(() => {
|
|
18
|
+
i({ ...n });
|
|
19
|
+
}, [n]), u = r((o) => () => {
|
|
19
20
|
i((e) => ({
|
|
20
21
|
...e,
|
|
21
22
|
[o]: { ...e[o], state: !e[o].state }
|
|
22
23
|
}));
|
|
23
|
-
}, []), l = !Object.values(
|
|
24
|
+
}, []), l = !Object.values(t).every(
|
|
24
25
|
({ state: o }) => o
|
|
25
|
-
), p = Object.entries(
|
|
26
|
+
), p = Object.entries(t).map(
|
|
26
27
|
([o, { state: e, label: C }]) => /* @__PURE__ */ h(
|
|
27
28
|
M,
|
|
28
29
|
{
|
|
@@ -50,12 +51,12 @@ const S = ({
|
|
|
50
51
|
]
|
|
51
52
|
}
|
|
52
53
|
);
|
|
53
|
-
},
|
|
54
|
-
const { close: s, isOpen: m, name: d, open:
|
|
54
|
+
}, F = (a, n, c) => {
|
|
55
|
+
const { close: s, isOpen: m, name: d, open: t, setIsOpen: i, toggle: f } = v(
|
|
55
56
|
"confirm-dialog-modal"
|
|
56
|
-
), [u] = k(c), l = j(null), p = r(async () => (
|
|
57
|
+
), [u] = k(c), l = j(null), p = r(async () => (t(), new Promise((g) => {
|
|
57
58
|
l.current = g;
|
|
58
|
-
})), [
|
|
59
|
+
})), [t]), o = r(() => {
|
|
59
60
|
s(), l.current?.(!0);
|
|
60
61
|
}, [s]), e = r(() => {
|
|
61
62
|
s(), l.current?.(!1);
|
|
@@ -64,11 +65,11 @@ const S = ({
|
|
|
64
65
|
close: e,
|
|
65
66
|
isOpen: m,
|
|
66
67
|
name: d,
|
|
67
|
-
open:
|
|
68
|
+
open: t,
|
|
68
69
|
setIsOpen: i,
|
|
69
70
|
toggle: f
|
|
70
71
|
}),
|
|
71
|
-
[e, m, d,
|
|
72
|
+
[e, m, d, t, i, f]
|
|
72
73
|
), b = r(
|
|
73
74
|
({ children: g }) => /* @__PURE__ */ h(
|
|
74
75
|
S,
|
|
@@ -77,14 +78,14 @@ const S = ({
|
|
|
77
78
|
id: a,
|
|
78
79
|
modalRef: C,
|
|
79
80
|
onConfirm: o,
|
|
80
|
-
title:
|
|
81
|
+
title: n,
|
|
81
82
|
children: g
|
|
82
83
|
}
|
|
83
84
|
),
|
|
84
|
-
[o, a, u, C,
|
|
85
|
+
[o, a, u, C, n]
|
|
85
86
|
);
|
|
86
87
|
return [p, b];
|
|
87
88
|
};
|
|
88
89
|
export {
|
|
89
|
-
|
|
90
|
+
F as useConditionsDialog
|
|
90
91
|
};
|
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import { jsxs as f } from "react/jsx-runtime";
|
|
2
2
|
import { useState as u, useRef as C, useCallback as l } from "react";
|
|
3
3
|
import { Modal as p } from "../modal/index.js";
|
|
4
|
+
import "../../_virtual/lodash.js";
|
|
4
5
|
import { useModal as g } from "../../hooks/use-modal.js";
|
|
5
|
-
const
|
|
6
|
-
const [o, n] = u(), r = C(null), c = g("confirm-dialog-modal"), { close: e, open: s } = c,
|
|
6
|
+
const k = () => {
|
|
7
|
+
const [o, n] = u(), r = C(null), c = g("confirm-dialog-modal"), { close: e, open: s } = c, a = l(
|
|
7
8
|
async (i) => (n(i), s(), new Promise((t) => {
|
|
8
9
|
r.current = t;
|
|
9
10
|
})),
|
|
10
11
|
[s]
|
|
11
12
|
), d = l(() => {
|
|
12
13
|
e(), n(void 0), r.current?.(!0);
|
|
13
|
-
}, [e]),
|
|
14
|
+
}, [e]), m = l(() => {
|
|
14
15
|
e(), n(void 0), r.current?.(!1);
|
|
15
16
|
}, [e]);
|
|
16
17
|
return { ConfirmDialog: ({ id: i = "confirm-dialog-modal", children: t }) => /* @__PURE__ */ f(
|
|
17
18
|
p,
|
|
18
19
|
{
|
|
19
20
|
cancelButton: o?.showCancel === !0 || o?.showCancel === void 0 ? {
|
|
20
|
-
onClick:
|
|
21
|
+
onClick: m,
|
|
21
22
|
text: o?.cancelText ?? "Cancel"
|
|
22
23
|
} : void 0,
|
|
23
24
|
confirmButton: o?.showConfirm === !0 || o?.showConfirm === void 0 ? {
|
|
@@ -27,7 +28,7 @@ const M = () => {
|
|
|
27
28
|
} : void 0,
|
|
28
29
|
description: o?.message,
|
|
29
30
|
id: i,
|
|
30
|
-
modalRef: { ...c, close:
|
|
31
|
+
modalRef: { ...c, close: m },
|
|
31
32
|
size: o?.modalSize ?? "sm",
|
|
32
33
|
title: o?.title,
|
|
33
34
|
children: [
|
|
@@ -35,8 +36,8 @@ const M = () => {
|
|
|
35
36
|
t
|
|
36
37
|
]
|
|
37
38
|
}
|
|
38
|
-
), confirm:
|
|
39
|
+
), confirm: a };
|
|
39
40
|
};
|
|
40
41
|
export {
|
|
41
|
-
|
|
42
|
+
k as useConfirmDialog
|
|
42
43
|
};
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as f, useState as
|
|
2
|
+
import { useRef as f, useState as p } from "react";
|
|
3
3
|
import { trapTabKey as o } from "./utils.js";
|
|
4
|
-
import { ModalWrapper as
|
|
4
|
+
import { ModalWrapper as c } from "../styles.js";
|
|
5
|
+
import "../../../_virtual/lodash.js";
|
|
5
6
|
import { useMountEffect as s } from "../../../hooks/use-mount-effect.js";
|
|
6
|
-
const
|
|
7
|
+
const b = ({
|
|
7
8
|
children: n = void 0,
|
|
8
9
|
id: a = void 0,
|
|
9
10
|
label: i
|
|
10
11
|
}) => {
|
|
11
|
-
const r = f(null), [t] =
|
|
12
|
+
const r = f(null), [t] = p(() => document.activeElement);
|
|
12
13
|
return s(() => {
|
|
13
14
|
const e = r.current;
|
|
14
15
|
return e?.contains(document.activeElement) !== !0 && e?.focus(), e?.addEventListener("keydown", o), () => {
|
|
15
16
|
e?.removeEventListener("keydown", o), t instanceof HTMLElement && t.focus();
|
|
16
17
|
};
|
|
17
18
|
}), /* @__PURE__ */ m(
|
|
18
|
-
|
|
19
|
+
c,
|
|
19
20
|
{
|
|
20
21
|
"aria-label": i,
|
|
21
22
|
"aria-modal": "true",
|
|
@@ -28,5 +29,5 @@ const w = ({
|
|
|
28
29
|
);
|
|
29
30
|
};
|
|
30
31
|
export {
|
|
31
|
-
|
|
32
|
+
b as Dialog
|
|
32
33
|
};
|
|
@@ -2,7 +2,8 @@ import { styled as a } from "styled-components";
|
|
|
2
2
|
import { variantBuilder as p } from "../@core/variants/utils.js";
|
|
3
3
|
import { Container as c } from "../container/index.js";
|
|
4
4
|
import { FormContent as e } from "../form/styles.js";
|
|
5
|
-
|
|
5
|
+
import { StyledStepRow as l } from "../stepper/styles.js";
|
|
6
|
+
const { getVariant: g } = p(
|
|
6
7
|
(i) => ({
|
|
7
8
|
fixed: `
|
|
8
9
|
height: auto;
|
|
@@ -32,7 +33,7 @@ const { getVariant: l } = p(
|
|
|
32
33
|
}
|
|
33
34
|
`
|
|
34
35
|
})
|
|
35
|
-
),
|
|
36
|
+
), b = a.div.attrs({
|
|
36
37
|
className: "comp-modal fixed inset-0 overflow-auto"
|
|
37
38
|
})`
|
|
38
39
|
align-items: center;
|
|
@@ -40,7 +41,7 @@ const { getVariant: l } = p(
|
|
|
40
41
|
display: flex;
|
|
41
42
|
justify-content: center;
|
|
42
43
|
z-index: 99999;
|
|
43
|
-
`,
|
|
44
|
+
`, u = a(c)`
|
|
44
45
|
${({ theme: i, $size: o }) => `
|
|
45
46
|
background-color: ${i.palette.white};
|
|
46
47
|
border: 1px solid ${i.palette.gray[200]};
|
|
@@ -59,12 +60,12 @@ const { getVariant: l } = p(
|
|
|
59
60
|
margin-top: auto;
|
|
60
61
|
}
|
|
61
62
|
|
|
62
|
-
${
|
|
63
|
+
${g(i, o)}
|
|
63
64
|
`}
|
|
64
65
|
`, t = (i, o) => {
|
|
65
66
|
const n = i.spacing[1.25], r = `1px + ${i.spacing[1.25]}`, d = `${i.spacing[1.25]} + 2 * ${o} + 2px`, s = i.spacing[0.5];
|
|
66
67
|
return `calc(${n} + ${r} + ${d} + ${s})`;
|
|
67
|
-
},
|
|
68
|
+
}, y = a.div`
|
|
68
69
|
${({ theme: i }) => `
|
|
69
70
|
background-color: ${i.palette.white};
|
|
70
71
|
border-radius: 0 0 ${i.spacing[0.25]} ${i.spacing[0.25]};
|
|
@@ -122,8 +123,12 @@ const { getVariant: l } = p(
|
|
|
122
123
|
flex-grow: 1;
|
|
123
124
|
}
|
|
124
125
|
}
|
|
126
|
+
|
|
127
|
+
&:has(form ${l}[data-fixed]) {
|
|
128
|
+
padding-top: 0;
|
|
129
|
+
}
|
|
125
130
|
`}
|
|
126
|
-
`,
|
|
131
|
+
`, v = a.div`
|
|
127
132
|
border-bottom: 1px solid ${({ theme: i }) => i.palette.gray[200]};
|
|
128
133
|
border-radius: ${({ theme: i }) => `${i.spacing[0.25]} ${i.spacing[0.25]} 0 0`};
|
|
129
134
|
display: block;
|
|
@@ -134,9 +139,9 @@ const { getVariant: l } = p(
|
|
|
134
139
|
padding: ${({ theme: i }) => `${i.spacing[1.25]}`};
|
|
135
140
|
position: sticky;
|
|
136
141
|
z-index: 1;
|
|
137
|
-
`,
|
|
142
|
+
`, h = a.div.attrs({
|
|
138
143
|
className: "flex items-center justify-between"
|
|
139
|
-
})``,
|
|
144
|
+
})``, k = a.div`
|
|
140
145
|
${({ theme: i }) => `
|
|
141
146
|
border-radius: 0 0 ${i.spacing[0.25]} ${i.spacing[0.25]};
|
|
142
147
|
display: flex;
|
|
@@ -167,7 +172,7 @@ const { getVariant: l } = p(
|
|
|
167
172
|
margin-right: 0;
|
|
168
173
|
}
|
|
169
174
|
`}
|
|
170
|
-
`,
|
|
175
|
+
`, j = a.div`
|
|
171
176
|
img {
|
|
172
177
|
margin: 0 calc(-${({ theme: i }) => i.spacing[1.25]} - 1px)
|
|
173
178
|
${({ theme: i }) => i.spacing[1.25]};
|
|
@@ -185,11 +190,11 @@ const { getVariant: l } = p(
|
|
|
185
190
|
}
|
|
186
191
|
`;
|
|
187
192
|
export {
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
193
|
+
k as Footer,
|
|
194
|
+
v as Header,
|
|
195
|
+
j as ImageContainer,
|
|
196
|
+
u as ModalContainer,
|
|
197
|
+
y as ModalContent,
|
|
198
|
+
b as ModalWrapper,
|
|
199
|
+
h as Title
|
|
195
200
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IOAuthSelectorProps, IOptionRowProps, TOAuthProvider } from './types';
|
|
2
|
-
declare const OAuthSelector: ({ align, buttonLabel, fallbackOptions, header, id, options, }: Readonly<IOAuthSelectorProps>) => JSX.Element;
|
|
1
|
+
import { IOAuthSelectorProps, IOptionRowProps, ISelectorNote, TOAuthProvider } from './types';
|
|
2
|
+
declare const OAuthSelector: ({ align, buttonLabel, fallbackOptions, header, id, note, options, }: Readonly<IOAuthSelectorProps>) => JSX.Element;
|
|
3
3
|
export { OAuthSelector };
|
|
4
|
-
export type { IOAuthSelectorProps, IOptionRowProps, TOAuthProvider };
|
|
4
|
+
export type { IOAuthSelectorProps, IOptionRowProps, ISelectorNote, TOAuthProvider, };
|
|
@@ -1,62 +1,65 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
1
|
+
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useState as O, useRef as b, useId as z, useCallback as r, createElement as S, Fragment as D } from "react";
|
|
3
3
|
import { useTheme as k } from "styled-components";
|
|
4
4
|
import { OptionRow as R } from "./option-row/index.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { SelectorNote as T } from "./styles.js";
|
|
6
|
+
import { Button as W } from "../button/index.js";
|
|
7
|
+
import { Container as d } from "../container/index.js";
|
|
8
|
+
import { Divider as j } from "../divider/index.js";
|
|
9
|
+
import { Icon as A } from "../icon/index.js";
|
|
8
10
|
import "../typography/heading/index.js";
|
|
9
11
|
import "../typography/span/index.js";
|
|
10
|
-
import { Text as
|
|
11
|
-
import { useClickOutside as
|
|
12
|
-
const
|
|
13
|
-
align:
|
|
12
|
+
import { Text as p } from "../typography/text/index.js";
|
|
13
|
+
import { useClickOutside as E } from "../../hooks/use-click-outside.js";
|
|
14
|
+
const V = ({
|
|
15
|
+
align: x = "end",
|
|
14
16
|
buttonLabel: a = "Add Credential",
|
|
15
|
-
fallbackOptions:
|
|
17
|
+
fallbackOptions: m = [],
|
|
16
18
|
header: n,
|
|
17
|
-
id:
|
|
18
|
-
|
|
19
|
+
id: y,
|
|
20
|
+
note: l,
|
|
21
|
+
options: v
|
|
19
22
|
}) => {
|
|
20
|
-
const o = k(), [
|
|
21
|
-
|
|
23
|
+
const o = k(), [f, s] = O(!1), h = b(null), w = z(), g = y ?? w, c = r(() => {
|
|
24
|
+
s(!1);
|
|
22
25
|
}, []);
|
|
23
|
-
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
}, []),
|
|
27
|
-
(
|
|
28
|
-
|
|
26
|
+
E(h, c);
|
|
27
|
+
const C = r(() => {
|
|
28
|
+
s((i) => !i);
|
|
29
|
+
}, []), I = r(
|
|
30
|
+
(i) => {
|
|
31
|
+
i.key === "Escape" && s(!1);
|
|
29
32
|
},
|
|
30
33
|
[]
|
|
31
|
-
),
|
|
32
|
-
(
|
|
33
|
-
[
|
|
34
|
+
), u = r(
|
|
35
|
+
(i) => /* @__PURE__ */ S(R, { ...i, key: i.id, onChoose: c }),
|
|
36
|
+
[c]
|
|
34
37
|
);
|
|
35
|
-
return /* @__PURE__ */
|
|
36
|
-
|
|
38
|
+
return /* @__PURE__ */ t(
|
|
39
|
+
d,
|
|
37
40
|
{
|
|
38
|
-
alignItems:
|
|
41
|
+
alignItems: x,
|
|
39
42
|
display: "flex",
|
|
40
43
|
flexDirection: "column",
|
|
41
|
-
onKeyDown:
|
|
44
|
+
onKeyDown: I,
|
|
42
45
|
position: "relative",
|
|
43
|
-
ref:
|
|
46
|
+
ref: h,
|
|
44
47
|
width: "max-content",
|
|
45
48
|
zIndex: 10,
|
|
46
49
|
children: [
|
|
47
|
-
/* @__PURE__ */
|
|
48
|
-
|
|
50
|
+
/* @__PURE__ */ e(
|
|
51
|
+
W,
|
|
49
52
|
{
|
|
50
|
-
"aria-controls":
|
|
51
|
-
"aria-expanded":
|
|
53
|
+
"aria-controls": g,
|
|
54
|
+
"aria-expanded": f,
|
|
52
55
|
icon: "plus",
|
|
53
|
-
onClick:
|
|
56
|
+
onClick: C,
|
|
54
57
|
variant: "primary",
|
|
55
58
|
children: a
|
|
56
59
|
}
|
|
57
60
|
),
|
|
58
|
-
|
|
59
|
-
|
|
61
|
+
f ? /* @__PURE__ */ t(
|
|
62
|
+
d,
|
|
60
63
|
{
|
|
61
64
|
"aria-label": n ?? a,
|
|
62
65
|
bgColor: o.palette.white,
|
|
@@ -65,7 +68,7 @@ const M = ({
|
|
|
65
68
|
display: "flex",
|
|
66
69
|
flexDirection: "column",
|
|
67
70
|
gap: 0.25,
|
|
68
|
-
id:
|
|
71
|
+
id: g,
|
|
69
72
|
minWidth: "380px",
|
|
70
73
|
padding: [0.75, 0.75, 0.75, 0.75],
|
|
71
74
|
position: "absolute",
|
|
@@ -74,8 +77,8 @@ const M = ({
|
|
|
74
77
|
top: "44px",
|
|
75
78
|
zIndex: 10,
|
|
76
79
|
children: [
|
|
77
|
-
n === void 0 ? void 0 : /* @__PURE__ */
|
|
78
|
-
|
|
80
|
+
n === void 0 ? void 0 : /* @__PURE__ */ e(
|
|
81
|
+
p,
|
|
79
82
|
{
|
|
80
83
|
color: o.palette.gray[400],
|
|
81
84
|
fontWeight: "bold",
|
|
@@ -84,10 +87,33 @@ const M = ({
|
|
|
84
87
|
children: n
|
|
85
88
|
}
|
|
86
89
|
),
|
|
87
|
-
/* @__PURE__ */
|
|
88
|
-
|
|
89
|
-
/* @__PURE__ */
|
|
90
|
-
|
|
90
|
+
/* @__PURE__ */ e("span", { children: v.map(u) }),
|
|
91
|
+
l === void 0 ? void 0 : /* @__PURE__ */ t(T, { role: "note", children: [
|
|
92
|
+
/* @__PURE__ */ e(
|
|
93
|
+
A,
|
|
94
|
+
{
|
|
95
|
+
icon: "circle-info",
|
|
96
|
+
iconColor: o.palette.info[700],
|
|
97
|
+
iconSize: "lg",
|
|
98
|
+
iconType: "fa-light"
|
|
99
|
+
}
|
|
100
|
+
),
|
|
101
|
+
/* @__PURE__ */ t(d, { children: [
|
|
102
|
+
/* @__PURE__ */ e(
|
|
103
|
+
p,
|
|
104
|
+
{
|
|
105
|
+
color: o.palette.info[700],
|
|
106
|
+
fontWeight: "bold",
|
|
107
|
+
size: "md",
|
|
108
|
+
children: l.title
|
|
109
|
+
}
|
|
110
|
+
),
|
|
111
|
+
/* @__PURE__ */ e(p, { color: o.palette.info[700], size: "md", children: l.description })
|
|
112
|
+
] })
|
|
113
|
+
] }),
|
|
114
|
+
m.length === 0 ? void 0 : /* @__PURE__ */ t(D, { children: [
|
|
115
|
+
/* @__PURE__ */ e(j, { mb: 0.25, mt: 0.25 }),
|
|
116
|
+
m.map(u)
|
|
91
117
|
] })
|
|
92
118
|
]
|
|
93
119
|
}
|
|
@@ -97,5 +123,5 @@ const M = ({
|
|
|
97
123
|
);
|
|
98
124
|
};
|
|
99
125
|
export {
|
|
100
|
-
|
|
126
|
+
V as OAuthSelector
|
|
101
127
|
};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
declare const OptionButton: 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;
|
|
2
|
-
|
|
2
|
+
declare const SelectorNote: 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
|
+
export { OptionButton, SelectorNote };
|
|
@@ -1,21 +1,33 @@
|
|
|
1
|
-
import { styled as
|
|
2
|
-
const
|
|
3
|
-
${({ theme:
|
|
1
|
+
import { styled as o } from "styled-components";
|
|
2
|
+
const r = o.button`
|
|
3
|
+
${({ theme: i }) => `
|
|
4
4
|
align-items: center;
|
|
5
5
|
background: none;
|
|
6
6
|
border: none;
|
|
7
|
-
border-radius: ${
|
|
7
|
+
border-radius: ${i.spacing[0.25]};
|
|
8
8
|
cursor: pointer;
|
|
9
9
|
display: flex;
|
|
10
10
|
gap: 9px;
|
|
11
|
-
padding: ${
|
|
11
|
+
padding: ${i.spacing[0.5]};
|
|
12
12
|
text-align: left;
|
|
13
13
|
width: 100%;
|
|
14
14
|
|
|
15
|
-
&:hover { background-color: ${
|
|
16
|
-
&:focus-visible { outline: 1px solid ${
|
|
15
|
+
&:hover { background-color: ${i.palette.gray[100]}; }
|
|
16
|
+
&:focus-visible { outline: 1px solid ${i.palette.primary[400]}; }
|
|
17
|
+
`}
|
|
18
|
+
`, a = o.div`
|
|
19
|
+
${({ theme: i }) => `
|
|
20
|
+
align-items: center;
|
|
21
|
+
background: ${i.palette.info[50]};
|
|
22
|
+
border: 1px solid ${i.palette.info[500]};
|
|
23
|
+
border-radius: ${i.spacing[0.25]};
|
|
24
|
+
display: flex;
|
|
25
|
+
gap: ${i.spacing[0.5]};
|
|
26
|
+
margin-top: ${i.spacing[0.25]};
|
|
27
|
+
padding: ${i.spacing[0.75]};
|
|
17
28
|
`}
|
|
18
29
|
`;
|
|
19
30
|
export {
|
|
20
|
-
|
|
31
|
+
r as OptionButton,
|
|
32
|
+
a as SelectorNote
|
|
21
33
|
};
|
|
@@ -32,6 +32,16 @@ interface IOptionRowProps {
|
|
|
32
32
|
interface IOptionRowComponentProps extends IOptionRowProps {
|
|
33
33
|
onChoose: VoidFunction;
|
|
34
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* Info note shown inside the selector panel.
|
|
37
|
+
* @interface ISelectorNote
|
|
38
|
+
* @property {string} description - Regular line under the title.
|
|
39
|
+
* @property {string} title - Bold first line of the note.
|
|
40
|
+
*/
|
|
41
|
+
interface ISelectorNote {
|
|
42
|
+
description: string;
|
|
43
|
+
title: string;
|
|
44
|
+
}
|
|
35
45
|
/**
|
|
36
46
|
* Oauth selector component props.
|
|
37
47
|
* @interface IOAuthSelectorProps
|
|
@@ -40,6 +50,7 @@ interface IOptionRowComponentProps extends IOptionRowProps {
|
|
|
40
50
|
* @property {IOptionRowProps[]} [fallbackOptions] - Options shown under a divider.
|
|
41
51
|
* @property {string} [header] - Uppercase header shown above the options.
|
|
42
52
|
* @property {string} [id] - Id to be used on the panel.
|
|
53
|
+
* @property {ISelectorNote} [note] - Info note shown between the options and the fallback options.
|
|
43
54
|
* @property {IOptionRowProps[]} options - Ordered options the menu offers.
|
|
44
55
|
*/
|
|
45
56
|
interface IOAuthSelectorProps {
|
|
@@ -48,6 +59,7 @@ interface IOAuthSelectorProps {
|
|
|
48
59
|
fallbackOptions?: IOptionRowProps[];
|
|
49
60
|
header?: string;
|
|
50
61
|
id?: string;
|
|
62
|
+
note?: ISelectorNote;
|
|
51
63
|
options: IOptionRowProps[];
|
|
52
64
|
}
|
|
53
|
-
export type { IOAuthSelectorProps, IOptionRowComponentProps, IOptionRowProps, TOAuthProvider, };
|
|
65
|
+
export type { IOAuthSelectorProps, IOptionRowComponentProps, IOptionRowProps, ISelectorNote, TOAuthProvider, };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as c, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { Fragment as a } from "react";
|
|
3
3
|
import { VisuallyHidden as s } from "../../node_modules/react-aria/dist/private/visually-hidden/VisuallyHidden.js";
|
|
4
|
-
import { useTheme as
|
|
5
|
-
import { StyledStepRow as
|
|
4
|
+
import { useTheme as u } from "styled-components";
|
|
5
|
+
import { StyledStepRow as h, StyledStepItem as f, StyledStepIndicator as g, StyledStepConnector as y } from "./styles.js";
|
|
6
6
|
import { Icon as S } from "../icon/index.js";
|
|
7
7
|
import "../typography/heading/index.js";
|
|
8
8
|
import "../typography/span/index.js";
|
|
@@ -10,13 +10,13 @@ import { Text as $ } from "../typography/text/index.js";
|
|
|
10
10
|
const T = (n, t) => n < t ? "completed" : n === t ? "current" : "upcoming", F = ({
|
|
11
11
|
completedLabel: n = "completed",
|
|
12
12
|
currentStep: t,
|
|
13
|
-
fixedHeader:
|
|
13
|
+
fixedHeader: p = !0,
|
|
14
14
|
steps: m
|
|
15
15
|
}) => {
|
|
16
|
-
const l =
|
|
16
|
+
const l = u();
|
|
17
17
|
return /* @__PURE__ */ c(a, { children: [
|
|
18
|
-
/* @__PURE__ */ e(
|
|
19
|
-
const i = T(o, t),
|
|
18
|
+
/* @__PURE__ */ e(h, { "data-fixed": p ? !0 : void 0, children: m.map((r, o) => {
|
|
19
|
+
const i = T(o, t), d = i === "upcoming";
|
|
20
20
|
return /* @__PURE__ */ c(
|
|
21
21
|
f,
|
|
22
22
|
{
|
|
@@ -26,9 +26,9 @@ const T = (n, t) => n < t ? "completed" : n === t ? "current" : "upcoming", F =
|
|
|
26
26
|
/* @__PURE__ */ c(
|
|
27
27
|
$,
|
|
28
28
|
{
|
|
29
|
-
color:
|
|
29
|
+
color: d ? l.palette.gray[400] : l.palette.gray[800],
|
|
30
30
|
display: "inline",
|
|
31
|
-
fontWeight:
|
|
31
|
+
fontWeight: d ? "regular" : "bold",
|
|
32
32
|
size: "md",
|
|
33
33
|
whiteSpace: "nowrap",
|
|
34
34
|
children: [
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { TStepperStatus } from './types';
|
|
2
|
-
declare const StyledStepRow: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('
|
|
3
|
-
$fixed: boolean;
|
|
4
|
-
}, never> & Partial<Pick<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "$fixed"> & {
|
|
5
|
-
$fixed: boolean;
|
|
6
|
-
}, never>>> & string;
|
|
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;
|
|
7
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;
|
|
8
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"> & {
|
|
9
5
|
$status: TStepperStatus;
|
|
@@ -24,12 +24,13 @@ const { getVariant: n } = a(
|
|
|
24
24
|
margin: 0;
|
|
25
25
|
margin-bottom: ${({ theme: t }) => t.spacing[1.5]};
|
|
26
26
|
padding: 0;
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
|
|
28
|
+
&[data-fixed] {
|
|
29
|
+
background-color: ${({ theme: t }) => t.palette.white};
|
|
29
30
|
position: sticky;
|
|
30
31
|
top: 0;
|
|
31
32
|
z-index: 1;
|
|
32
|
-
|
|
33
|
+
}
|
|
33
34
|
`, p = i.li`
|
|
34
35
|
align-items: center;
|
|
35
36
|
display: flex;
|
|
@@ -2,11 +2,12 @@ import { jsx as a } from "react/jsx-runtime";
|
|
|
2
2
|
import { useRef as l, useState as x, useCallback as m } from "react";
|
|
3
3
|
import { TableContext as z } from "../context/index.js";
|
|
4
4
|
import { TableContainer as y } from "../styles.js";
|
|
5
|
+
import "../../../_virtual/lodash.js";
|
|
5
6
|
import { useMountEffect as u } from "../../../hooks/use-mount-effect.js";
|
|
6
7
|
const C = 160, f = (t) => Number.parseFloat(t) || 0, E = (t) => {
|
|
7
8
|
const { paddingLeft: e, paddingRight: n } = getComputedStyle(t);
|
|
8
9
|
return t.clientWidth - f(e) - f(n);
|
|
9
|
-
},
|
|
10
|
+
}, P = ({
|
|
10
11
|
children: t,
|
|
11
12
|
table: e
|
|
12
13
|
}) => {
|
|
@@ -62,5 +63,5 @@ const C = 160, f = (t) => Number.parseFloat(t) || 0, E = (t) => {
|
|
|
62
63
|
);
|
|
63
64
|
};
|
|
64
65
|
export {
|
|
65
|
-
|
|
66
|
+
P as Table
|
|
66
67
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import E, { useMemo as J, useCallback as Q, useRef as N, useState as nt, useEffect as F, isValidElement as dt, cloneElement as ht } from "react";
|
|
2
2
|
import { useMemoDeepCompare as $t, usePrevious as xt, useMount as Ut, useUpdateEffect as Mt, useWindowSize as jt } from "../../@gilbarbara/hooks/dist/index.js";
|
|
3
|
-
import { s as Ht } from "../../../_virtual/
|
|
3
|
+
import { s as Ht } from "../../../_virtual/index.js";
|
|
4
4
|
import z from "../../is-lite/dist/index.js";
|
|
5
|
-
import ut from "../../../_virtual/
|
|
6
|
-
import Yt from "../../../_virtual/
|
|
5
|
+
import ut from "../../../_virtual/index2.js";
|
|
6
|
+
import Yt from "../../../_virtual/index3.js";
|
|
7
7
|
import It from "../../@gilbarbara/deep-equal/dist/index.js";
|
|
8
|
-
import zt from "../../../_virtual/
|
|
8
|
+
import zt from "../../../_virtual/index4.js";
|
|
9
9
|
import Nt from "../../../_virtual/scrollparent.js";
|
|
10
10
|
import { createPortal as Wt } from "react-dom";
|
|
11
11
|
import { offset as yt, shift as Kt, arrow as Gt, useFloating as Et, autoPlacement as Vt, flip as Jt } from "../../@floating-ui/react-dom/dist/floating-ui.react-dom.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as r } from "../../../_virtual/
|
|
1
|
+
import { __module as r } from "../../../_virtual/index5.js";
|
|
2
2
|
import { __require as o } from "../cjs/use-sync-external-store-shim.production.js";
|
|
3
3
|
import { __require as i } from "../cjs/use-sync-external-store-shim.development.js";
|
|
4
4
|
var e;
|
package/package.json
CHANGED