@strapi/design-system 1.7.8 → 1.7.10
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/Alert/Alert.cjs +23 -29
- package/dist/Alert/Alert.js +33 -39
- package/dist/Alert/utils.cjs +1 -1
- package/dist/Alert/utils.js +14 -3
- package/dist/Button/Button.cjs +9 -4
- package/dist/Button/Button.js +28 -23
- package/dist/CarouselInput/CarouselImage.cjs +1 -1
- package/dist/CarouselInput/CarouselImage.js +3 -3
- package/dist/CarouselInput/CarouselSlide.cjs +1 -1
- package/dist/CarouselInput/CarouselSlide.js +2 -2
- package/dist/Flex/Flex.cjs +1 -1
- package/dist/Flex/Flex.js +1 -1
- package/dist/Layout/ActionLayout.cjs +1 -1
- package/dist/Layout/ActionLayout.js +1 -1
- package/package.json +4 -4
package/dist/Alert/Alert.cjs
CHANGED
|
@@ -1,35 +1,29 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
box-shadow: ${({theme:e})=>e.shadows.filterShadow};
|
|
10
|
-
`,y=d.default.button`
|
|
11
|
-
border: none;
|
|
12
|
-
background: transparent;
|
|
13
|
-
font-size: ${12/16}rem;
|
|
14
|
-
svg path {
|
|
15
|
-
fill: ${({theme:e})=>e.colors.neutral700};
|
|
16
|
-
}
|
|
17
|
-
margin-top: ${({theme:e})=>e.spaces[1]};
|
|
18
|
-
${g.buttonFocusStyle};
|
|
19
|
-
`,$=d.default(t.Box)`
|
|
20
|
-
font-size: ${20/16}rem;
|
|
21
|
-
svg path {
|
|
22
|
-
fill: ${l.handleIconColor};
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),n=require("@strapi/icons"),p=require("styled-components"),l=require("./utils.cjs"),f=require("../themes/utils.cjs"),u=require("../Box/Box.cjs"),a=require("../Flex/Flex.cjs"),d=require("../Typography/Typography.cjs"),C=e=>e&&e.__esModule?e:{default:e},i=C(p),j=i.default(u.Box)`
|
|
2
|
+
svg {
|
|
3
|
+
height: 100%;
|
|
4
|
+
width: 100%;
|
|
5
|
+
|
|
6
|
+
path {
|
|
7
|
+
fill: ${({theme:e})=>e.colors.neutral700};
|
|
8
|
+
}
|
|
23
9
|
}
|
|
24
|
-
`,b=({variant:e,...o})=>e==="success"?r.jsx(s.CheckCircle,{...o}):e==="danger"||e==="warning"?r.jsx(s.ExclamationMarkCircle,{...o}):r.jsx(s.Information,{...o}),m=d.default(t.Box)`
|
|
25
|
-
// Checked with the designers, validated
|
|
26
|
-
padding-top: 1px;
|
|
27
10
|
|
|
28
|
-
|
|
29
|
-
|
|
11
|
+
${f.buttonFocusStyle};
|
|
12
|
+
`,b=i.default(a.Flex)`
|
|
13
|
+
svg {
|
|
14
|
+
height: 100%;
|
|
15
|
+
width: 100%;
|
|
30
16
|
|
|
31
|
-
|
|
17
|
+
path {
|
|
32
18
|
fill: ${l.handleIconColor};
|
|
33
19
|
}
|
|
34
20
|
}
|
|
35
|
-
`,
|
|
21
|
+
`,m=({variant:e,...o})=>e==="success"?r.jsx(n.CheckCircle,{...o}):e==="danger"||e==="warning"?r.jsx(n.ExclamationMarkCircle,{...o}):r.jsx(n.Information,{...o}),y=i.default(u.Box)`
|
|
22
|
+
& a > span {
|
|
23
|
+
color: ${l.handleIconColor};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
svg path {
|
|
27
|
+
fill: ${l.handleIconColor};
|
|
28
|
+
}
|
|
29
|
+
`,w=({title:e,children:o,variant:t="default",onClose:c,closeLabel:h,titleAs:g="p",action:s,...x})=>r.jsxs(a.Flex,{alignItems:"flex-start",background:l.handleBackgroundColor(t),borderColor:l.handleBorderColor(t),boxShadow:"filterShadow",gap:3,hasRadius:!0,padding:5,paddingRight:6,variant:t,...x,children:[r.jsx(b,{height:`${20/16}rem`,shrink:0,variant:t,width:`${20/16}rem`,children:r.jsx(m,{"aria-hidden":!0,variant:t})}),r.jsxs(a.Flex,{alignItems:"start",gap:s?2:1,wrap:"wrap",role:t==="danger"?"alert":"status",width:"100%",children:[r.jsx(d.Typography,{fontWeight:"bold",textColor:"neutral800",as:g,children:e}),r.jsx(d.Typography,{as:"p",textColor:"neutral800",children:o}),s&&r.jsx(y,{variant:t,children:s})]}),r.jsx(j,{as:"button",background:"transparent",borderColor:void 0,height:`${12/16}rem`,marginTop:1,onClick:c,width:`${12/16}rem`,"aria-label":h,children:r.jsx(n.Cross,{"aria-hidden":!0})})]});exports.Alert=w;
|
package/dist/Alert/Alert.js
CHANGED
|
@@ -1,46 +1,40 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Cross as
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import { buttonFocusStyle as
|
|
6
|
-
import { Box as
|
|
7
|
-
import { Flex as
|
|
8
|
-
import { Typography as
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
box-shadow: ${({ theme: o }) => o.shadows.filterShadow};
|
|
18
|
-
`, y = d.button`
|
|
19
|
-
border: none;
|
|
20
|
-
background: transparent;
|
|
21
|
-
font-size: ${12 / 16}rem;
|
|
22
|
-
svg path {
|
|
23
|
-
fill: ${({ theme: o }) => o.colors.neutral700};
|
|
24
|
-
}
|
|
25
|
-
margin-top: ${({ theme: o }) => o.spaces[1]};
|
|
26
|
-
${b};
|
|
27
|
-
`, A = d(t)`
|
|
28
|
-
font-size: ${20 / 16}rem;
|
|
29
|
-
svg path {
|
|
30
|
-
fill: ${l};
|
|
1
|
+
import { jsxs as d, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { Cross as u, CheckCircle as f, ExclamationMarkCircle as C, Information as x } from "@strapi/icons";
|
|
3
|
+
import a from "styled-components";
|
|
4
|
+
import { handleIconColor as n, handleBackgroundColor as w, handleBorderColor as b } from "./utils.js";
|
|
5
|
+
import { buttonFocusStyle as $ } from "../themes/utils.js";
|
|
6
|
+
import { Box as s } from "../Box/Box.js";
|
|
7
|
+
import { Flex as i } from "../Flex/Flex.js";
|
|
8
|
+
import { Typography as h } from "../Typography/Typography.js";
|
|
9
|
+
const k = a(s)`
|
|
10
|
+
svg {
|
|
11
|
+
height: 100%;
|
|
12
|
+
width: 100%;
|
|
13
|
+
|
|
14
|
+
path {
|
|
15
|
+
fill: ${({ theme: o }) => o.colors.neutral700};
|
|
16
|
+
}
|
|
31
17
|
}
|
|
32
|
-
`, I = ({ variant: o, ...e }) => o === "success" ? r(m, { ...e }) : o === "danger" || o === "warning" ? r(u, { ...e }) : r(x, { ...e }), R = d(t)`
|
|
33
|
-
// Checked with the designers, validated
|
|
34
|
-
padding-top: 1px;
|
|
35
18
|
|
|
36
|
-
|
|
37
|
-
|
|
19
|
+
${$};
|
|
20
|
+
`, I = a(i)`
|
|
21
|
+
svg {
|
|
22
|
+
height: 100%;
|
|
23
|
+
width: 100%;
|
|
38
24
|
|
|
39
|
-
|
|
40
|
-
fill: ${
|
|
25
|
+
path {
|
|
26
|
+
fill: ${n};
|
|
41
27
|
}
|
|
42
28
|
}
|
|
43
|
-
`,
|
|
29
|
+
`, B = ({ variant: o, ...e }) => o === "success" ? r(f, { ...e }) : o === "danger" || o === "warning" ? r(C, { ...e }) : r(x, { ...e }), y = a(s)`
|
|
30
|
+
& a > span {
|
|
31
|
+
color: ${n};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
svg path {
|
|
35
|
+
fill: ${n};
|
|
36
|
+
}
|
|
37
|
+
`, M = ({ title: o, children: e, variant: t = "default", onClose: c, closeLabel: m, titleAs: g = "p", action: l, ...p }) => d(i, { alignItems: "flex-start", background: w(t), borderColor: b(t), boxShadow: "filterShadow", gap: 3, hasRadius: !0, padding: 5, paddingRight: 6, variant: t, ...p, children: [r(I, { height: `${20 / 16}rem`, shrink: 0, variant: t, width: `${20 / 16}rem`, children: r(B, { "aria-hidden": !0, variant: t }) }), d(i, { alignItems: "start", gap: l ? 2 : 1, wrap: "wrap", role: t === "danger" ? "alert" : "status", width: "100%", children: [r(h, { fontWeight: "bold", textColor: "neutral800", as: g, children: o }), r(h, { as: "p", textColor: "neutral800", children: e }), l && r(y, { variant: t, children: l })] }), r(k, { as: "button", background: "transparent", borderColor: void 0, height: `${12 / 16}rem`, marginTop: 1, onClick: c, width: `${12 / 16}rem`, "aria-label": m, children: r(u, { "aria-hidden": !0 }) })] });
|
|
44
38
|
export {
|
|
45
|
-
|
|
39
|
+
M as Alert
|
|
46
40
|
};
|
package/dist/Alert/utils.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=r=>{switch(r){case"danger":return"danger100";case"success":return"success100";case"warning":return"warning100";default:return"primary100"}},e=r=>o(r).replace("100","200"),c=({theme:r,variant:n})=>n==="danger"?r.colors.danger700:n==="success"?r.colors.success700:n==="warning"?r.colors.warning700:r.colors.primary700;exports.handleBackgroundColor=o;exports.handleBorderColor=e;exports.handleIconColor=c;
|
package/dist/Alert/utils.js
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
|
-
const s = (
|
|
1
|
+
const s = (r) => {
|
|
2
|
+
switch (r) {
|
|
3
|
+
case "danger":
|
|
4
|
+
return "danger100";
|
|
5
|
+
case "success":
|
|
6
|
+
return "success100";
|
|
7
|
+
case "warning":
|
|
8
|
+
return "warning100";
|
|
9
|
+
default:
|
|
10
|
+
return "primary100";
|
|
11
|
+
}
|
|
12
|
+
}, c = (r) => s(r).replace("100", "200"), e = ({ theme: r, variant: n }) => n === "danger" ? r.colors.danger700 : n === "success" ? r.colors.success700 : n === "warning" ? r.colors.warning700 : r.colors.primary700;
|
|
2
13
|
export {
|
|
3
14
|
s as handleBackgroundColor,
|
|
4
|
-
|
|
5
|
-
|
|
15
|
+
c as handleBorderColor,
|
|
16
|
+
e as handleIconColor
|
|
6
17
|
};
|
package/dist/Button/Button.cjs
CHANGED
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),S=require("react"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),S=require("react"),v=require("@strapi/icons"),c=require("styled-components"),l=require("./constants.cjs"),r=require("./utils.cjs"),j=require("../BaseButton/BaseButton.cjs"),_=require("../Box/Box.cjs"),$=require("../Typography/Typography.cjs"),T=require("../Flex/Flex.cjs"),f=e=>e&&e.__esModule?e:{default:e},D=f(S),g=f(c),R=c.keyframes`
|
|
2
2
|
from {
|
|
3
3
|
transform: rotate(0deg);
|
|
4
4
|
}
|
|
5
5
|
to {
|
|
6
6
|
transform: rotate(359deg);
|
|
7
7
|
}
|
|
8
|
-
`,
|
|
8
|
+
`,w=g.default(v.Loader)`
|
|
9
9
|
animation: ${R} 2s infinite linear;
|
|
10
10
|
will-change: transform;
|
|
11
|
-
`,
|
|
11
|
+
`,h=g.default(j.BaseButton)`
|
|
12
12
|
height: ${({theme:e,size:n})=>e.sizes.button[n]};
|
|
13
13
|
|
|
14
|
+
svg {
|
|
15
|
+
height: ${12/16}rem;
|
|
16
|
+
width: auto;
|
|
17
|
+
}
|
|
18
|
+
|
|
14
19
|
&[aria-disabled='true'] {
|
|
15
20
|
${r.getDisabledStyle}
|
|
16
21
|
|
|
@@ -28,4 +33,4 @@
|
|
|
28
33
|
}
|
|
29
34
|
|
|
30
35
|
${r.getVariantStyle}
|
|
31
|
-
`,
|
|
36
|
+
`,y=D.default.forwardRef(({variant:e=l.DEFAULT,startIcon:n,endIcon:s,disabled:b=!1,children:p,onClick:d,size:u=l.BUTTON_SIZES[0],loading:a=!1,fullWidth:i=!1,...m},B)=>{const o=b||a,x=q=>{!o&&d&&d(q)};return t.jsxs(h,{ref:B,"aria-disabled":o,disabled:o,size:u,variant:e,onClick:x,fullWidth:i,alignItems:"center",background:"buttonPrimary600",borderColor:"buttonPrimary600",gap:2,inline:i,justifyContent:i?"center":void 0,paddingLeft:4,paddingRight:4,width:i?"100%":void 0,...m,children:[(n||a)&&t.jsx(_.Box,{"aria-hidden":!0,children:a?t.jsx(w,{}):n}),t.jsx($.Typography,{variant:u==="S"?"pi":void 0,fontWeight:"bold",lineHeight:0,textColor:"buttonNeutral0",children:p}),s&&t.jsx(T.Flex,{"aria-hidden":!0,children:s})]})});y.displayName="Button";exports.Button=y;exports.ButtonWrapper=h;
|
package/dist/Button/Button.js
CHANGED
|
@@ -1,36 +1,41 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as g, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import b from "react";
|
|
3
3
|
import { Loader as y } from "@strapi/icons";
|
|
4
|
-
import
|
|
5
|
-
import { DEFAULT as
|
|
6
|
-
import { getDisabledStyle as
|
|
4
|
+
import f, { keyframes as v } from "styled-components";
|
|
5
|
+
import { DEFAULT as $, BUTTON_SIZES as B } from "./constants.js";
|
|
6
|
+
import { getDisabledStyle as s, getHoverStyle as S, getActiveStyle as x, getVariantStyle as C } from "./utils.js";
|
|
7
7
|
import { BaseButton as k } from "../BaseButton/BaseButton.js";
|
|
8
|
-
import { Box as
|
|
9
|
-
import { Typography as
|
|
10
|
-
import { Flex as
|
|
11
|
-
const
|
|
8
|
+
import { Box as w } from "../Box/Box.js";
|
|
9
|
+
import { Typography as L } from "../Typography/Typography.js";
|
|
10
|
+
import { Flex as T } from "../Flex/Flex.js";
|
|
11
|
+
const j = v`
|
|
12
12
|
from {
|
|
13
13
|
transform: rotate(0deg);
|
|
14
14
|
}
|
|
15
15
|
to {
|
|
16
16
|
transform: rotate(359deg);
|
|
17
17
|
}
|
|
18
|
-
`,
|
|
19
|
-
animation: ${
|
|
18
|
+
`, A = f(y)`
|
|
19
|
+
animation: ${j} 2s infinite linear;
|
|
20
20
|
will-change: transform;
|
|
21
|
-
`,
|
|
22
|
-
height: ${({ theme: i, size:
|
|
21
|
+
`, D = f(k)`
|
|
22
|
+
height: ${({ theme: i, size: t }) => i.sizes.button[t]};
|
|
23
|
+
|
|
24
|
+
svg {
|
|
25
|
+
height: ${12 / 16}rem;
|
|
26
|
+
width: auto;
|
|
27
|
+
}
|
|
23
28
|
|
|
24
29
|
&[aria-disabled='true'] {
|
|
25
|
-
${
|
|
30
|
+
${s}
|
|
26
31
|
|
|
27
32
|
&:active {
|
|
28
|
-
${
|
|
33
|
+
${s}
|
|
29
34
|
}
|
|
30
35
|
}
|
|
31
36
|
|
|
32
37
|
&:hover {
|
|
33
|
-
${
|
|
38
|
+
${S}
|
|
34
39
|
}
|
|
35
40
|
|
|
36
41
|
&:active {
|
|
@@ -38,14 +43,14 @@ const w = v`
|
|
|
38
43
|
}
|
|
39
44
|
|
|
40
45
|
${C}
|
|
41
|
-
`,
|
|
42
|
-
const a =
|
|
43
|
-
return
|
|
44
|
-
!a && d && d(
|
|
45
|
-
}, fullWidth:
|
|
46
|
+
`, N = b.forwardRef(({ variant: i = $, startIcon: t, endIcon: n, disabled: l = !1, children: p, onClick: d, size: m = B[0], loading: o = !1, fullWidth: e = !1, ...c }, h) => {
|
|
47
|
+
const a = l || o;
|
|
48
|
+
return g(D, { ref: h, "aria-disabled": a, disabled: a, size: m, variant: i, onClick: (u) => {
|
|
49
|
+
!a && d && d(u);
|
|
50
|
+
}, fullWidth: e, alignItems: "center", background: "buttonPrimary600", borderColor: "buttonPrimary600", gap: 2, inline: e, justifyContent: e ? "center" : void 0, paddingLeft: 4, paddingRight: 4, width: e ? "100%" : void 0, ...c, children: [(t || o) && r(w, { "aria-hidden": !0, children: o ? r(A, {}) : t }), r(L, { variant: m === "S" ? "pi" : void 0, fontWeight: "bold", lineHeight: 0, textColor: "buttonNeutral0", children: p }), n && r(T, { "aria-hidden": !0, children: n })] });
|
|
46
51
|
});
|
|
47
|
-
|
|
52
|
+
N.displayName = "Button";
|
|
48
53
|
export {
|
|
49
|
-
|
|
50
|
-
|
|
54
|
+
N as Button,
|
|
55
|
+
D as ButtonWrapper
|
|
51
56
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),l=require("react"),u=require("styled-components"),n=require("../Typography/utils.cjs"),a=require("../Box/Box.cjs"),c=require("../Tooltip/Tooltip.cjs"),d=e=>e&&e.__esModule?e:{default:e},g=d(u),r=g.default(a.Box)`
|
|
2
2
|
${n.ellipsisStyle({ellipsis:!0})}
|
|
3
|
-
`,m=e=>{const[s,o]=l.useState(!1),i=()=>{o(!0)};return s?t.jsx(c.Tooltip,{description:e.alt??"",children:t.jsx(r,{as:"img",height:"100%",...e})}):t.jsx(r,{as:"img",height:"100%",...e,onError:i})};exports.CarouselImage=m;
|
|
3
|
+
`,m=e=>{const[s,o]=l.useState(!1),i=()=>{o(!0)};return s?t.jsx(c.Tooltip,{description:e.alt??"",children:t.jsx(r,{as:"img",height:"100%",maxWidth:"100%",...e})}):t.jsx(r,{as:"img",height:"100%",maxWidth:"100%",...e,onError:i})};exports.CarouselImage=m;
|
|
@@ -6,12 +6,12 @@ import { Box as n } from "../Box/Box.js";
|
|
|
6
6
|
import { Tooltip as f } from "../Tooltip/Tooltip.js";
|
|
7
7
|
const o = l(n)`
|
|
8
8
|
${a({ ellipsis: !0 })}
|
|
9
|
-
`,
|
|
9
|
+
`, x = (r) => {
|
|
10
10
|
const [e, i] = s(!1), m = () => {
|
|
11
11
|
i(!0);
|
|
12
12
|
};
|
|
13
|
-
return e ? t(f, { description: r.alt ?? "", children: t(o, { as: "img", height: "100%", ...r }) }) : t(o, { as: "img", height: "100%", ...r, onError: m });
|
|
13
|
+
return e ? t(f, { description: r.alt ?? "", children: t(o, { as: "img", height: "100%", maxWidth: "100%", ...r }) }) : t(o, { as: "img", height: "100%", maxWidth: "100%", ...r, onError: m });
|
|
14
14
|
};
|
|
15
15
|
export {
|
|
16
|
-
|
|
16
|
+
x as CarouselImage
|
|
17
17
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),n=require("../Flex/Flex.cjs"),o=({label:e,children:i,selected:l=!1,...r})=>t.jsx(n.Flex,{alignItems:"center",display:l?"flex":"none",role:"group","aria-roledescription":"slide","aria-label":e,justifyContent:"center",height:"124px",width:"100%",...r,children:i});exports.CarouselSlide=o;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { Flex as t } from "../Flex/Flex.js";
|
|
3
|
-
const s = ({ label: e, children: r, selected:
|
|
3
|
+
const s = ({ label: e, children: r, selected: i = !1, ...l }) => o(t, { alignItems: "center", display: i ? "flex" : "none", role: "group", "aria-roledescription": "slide", "aria-label": e, justifyContent: "center", height: "124px", width: "100%", ...l, children: r });
|
|
4
4
|
export {
|
|
5
5
|
s as CarouselSlide
|
|
6
6
|
};
|
package/dist/Flex/Flex.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("styled-components"),o=require("../helpers/handleResponsiveValues.cjs"),l=require("../Box/Box.cjs"),i=e=>e&&e.__esModule?e:{default:e},r=i(n),s={direction:!0},u=r.default(l.Box).withConfig({shouldForwardProp:(e,t)=>!s[e]&&t(e)})`
|
|
2
2
|
align-items: ${({alignItems:e="center"})=>e};
|
|
3
|
-
display: ${({inline:
|
|
3
|
+
display: ${({display:e="flex",inline:t})=>t?"inline-flex":e};
|
|
4
4
|
flex-direction: ${({direction:e="row"})=>e};
|
|
5
5
|
flex-shrink: ${({shrink:e})=>e};
|
|
6
6
|
flex-wrap: ${({wrap:e})=>e};
|
package/dist/Flex/Flex.js
CHANGED
|
@@ -7,7 +7,7 @@ const n = {
|
|
|
7
7
|
shouldForwardProp: (e, o) => !n[e] && o(e)
|
|
8
8
|
})`
|
|
9
9
|
align-items: ${({ alignItems: e = "center" }) => e};
|
|
10
|
-
display: ${({
|
|
10
|
+
display: ${({ display: e = "flex", inline: o }) => o ? "inline-flex" : e};
|
|
11
11
|
flex-direction: ${({ direction: e = "row" }) => e};
|
|
12
12
|
flex-shrink: ${({ shrink: e }) => e};
|
|
13
13
|
flex-wrap: ${({ wrap: e }) => e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("../Flex/Flex.cjs"),i=({startActions:r,endActions:n})=>!r
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("../Flex/Flex.cjs"),i=({startActions:r,endActions:n})=>!r&&!n?null:e.jsxs(t.Flex,{justifyContent:"space-between",alignItems:"flex-start",paddingBottom:4,paddingLeft:10,paddingRight:10,children:[e.jsx(t.Flex,{gap:2,wrap:"wrap",children:r}),e.jsx(t.Flex,{gap:2,shrink:0,wrap:"wrap",children:n})]});exports.ActionLayout=i;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as p, jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { Flex as r } from "../Flex/Flex.js";
|
|
3
|
-
const o = ({ startActions: t, endActions: e }) => !t
|
|
3
|
+
const o = ({ startActions: t, endActions: e }) => !t && !e ? null : p(r, { justifyContent: "space-between", alignItems: "flex-start", paddingBottom: 4, paddingLeft: 10, paddingRight: 10, children: [n(r, { gap: 2, wrap: "wrap", children: t }), n(r, { gap: 2, shrink: 0, wrap: "wrap", children: e })] });
|
|
4
4
|
export {
|
|
5
5
|
o as ActionLayout
|
|
6
6
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/design-system",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.10",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@radix-ui/react-dismissable-layer": "^1.0.3",
|
|
25
25
|
"@radix-ui/react-dropdown-menu": "^2.0.4",
|
|
26
26
|
"@radix-ui/react-focus-scope": "1.0.2",
|
|
27
|
-
"@strapi/ui-primitives": "^1.7.
|
|
27
|
+
"@strapi/ui-primitives": "^1.7.10",
|
|
28
28
|
"@uiw/react-codemirror": "^4.19.16",
|
|
29
29
|
"aria-hidden": "^1.2.3",
|
|
30
30
|
"compute-scroll-into-view": "^3.0.3",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@playwright/test": "1.33.0",
|
|
36
|
-
"@strapi/icons": "^1.7.
|
|
36
|
+
"@strapi/icons": "^1.7.10",
|
|
37
37
|
"@types/react-router-dom": "^5.3.3",
|
|
38
38
|
"@types/styled-components": "^5.1.26",
|
|
39
39
|
"axe-playwright": "^1.2.3",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"test:e2e:watch": "chokidar '**/__tests__/*.e2e.js' -c 'npm run test:e2e -- --retries=0 {path}'",
|
|
65
65
|
"test:e2e:debug": "cross-env PWDEBUG=1 playwright test"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "c5116e561a1373177b9bfe2dc5a8a0abb1260900"
|
|
68
68
|
}
|