@fluidattacks/design 11.7.0 → 11.7.1
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/modal/styles.js +21 -16
- 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/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
|
@@ -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,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;
|
|
@@ -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