@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.
@@ -1,35 +1,29 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),s=require("@strapi/icons"),p=require("styled-components"),l=require("./utils.cjs"),g=require("../themes/utils.cjs"),t=require("../Box/Box.cjs"),f=require("../Flex/Flex.cjs"),i=require("../Typography/Typography.cjs"),j=e=>e&&e.__esModule?e:{default:e},d=j(p),B=d.default(t.Box)`
2
- flex: 1;
3
- flex-wrap: wrap;
4
- display: flex;
5
- flex-direction: row;
6
- `,C=d.default(t.Box)`
7
- border: 1px solid ${l.handleBorderColor};
8
- background: ${l.handleBackgroundColor};
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
- & a > span {
29
- color: ${l.handleIconColor};
11
+ ${f.buttonFocusStyle};
12
+ `,b=i.default(a.Flex)`
13
+ svg {
14
+ height: 100%;
15
+ width: 100%;
30
16
 
31
- svg path {
17
+ path {
32
18
  fill: ${l.handleIconColor};
33
19
  }
34
20
  }
35
- `,q=({title:e,children:o,variant:n="default",onClose:c,closeLabel:u,titleAs:x="p",action:a,...h})=>r.jsx(C,{hasRadius:!0,paddingLeft:5,paddingRight:6,paddingTop:5,variant:n,...h,children:r.jsxs(f.Flex,{alignItems:"flex-start",children:[r.jsx($,{paddingRight:3,variant:n,children:r.jsx(b,{variant:n,"aria-hidden":!0})}),r.jsxs(B,{role:n==="danger"?"alert":"status",children:[r.jsx(t.Box,{paddingBottom:2,paddingRight:1,children:r.jsx(i.Typography,{fontWeight:"bold",textColor:"neutral800",as:x,children:e})}),r.jsx(t.Box,{paddingBottom:a?2:5,paddingRight:2,children:r.jsx(i.Typography,{as:"p",textColor:"neutral800",children:o})}),a&&r.jsx(m,{paddingBottom:5,variant:n,children:a})]}),r.jsx(y,{onClick:c,"aria-label":u,children:r.jsx(s.Cross,{"aria-hidden":!0})})]})});exports.Alert=q;
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;
@@ -1,46 +1,40 @@
1
- import { jsx as r, jsxs as a } from "react/jsx-runtime";
2
- import { Cross as f, CheckCircle as m, ExclamationMarkCircle as u, Information as x } from "@strapi/icons";
3
- import d from "styled-components";
4
- import { handleBorderColor as C, handleBackgroundColor as $, handleIconColor as l } from "./utils.js";
5
- import { buttonFocusStyle as b } from "../themes/utils.js";
6
- import { Box as t } from "../Box/Box.js";
7
- import { Flex as B } from "../Flex/Flex.js";
8
- import { Typography as s } from "../Typography/Typography.js";
9
- const w = d(t)`
10
- flex: 1;
11
- flex-wrap: wrap;
12
- display: flex;
13
- flex-direction: row;
14
- `, k = d(t)`
15
- border: 1px solid ${C};
16
- background: ${$};
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
- & a > span {
37
- color: ${l};
19
+ ${$};
20
+ `, I = a(i)`
21
+ svg {
22
+ height: 100%;
23
+ width: 100%;
38
24
 
39
- svg path {
40
- fill: ${l};
25
+ path {
26
+ fill: ${n};
41
27
  }
42
28
  }
43
- `, L = ({ title: o, children: e, variant: n = "default", onClose: p, closeLabel: c, titleAs: h = "p", action: i, ...g }) => r(k, { hasRadius: !0, paddingLeft: 5, paddingRight: 6, paddingTop: 5, variant: n, ...g, children: a(B, { alignItems: "flex-start", children: [r(A, { paddingRight: 3, variant: n, children: r(I, { variant: n, "aria-hidden": !0 }) }), a(w, { role: n === "danger" ? "alert" : "status", children: [r(t, { paddingBottom: 2, paddingRight: 1, children: r(s, { fontWeight: "bold", textColor: "neutral800", as: h, children: o }) }), r(t, { paddingBottom: i ? 2 : 5, paddingRight: 2, children: r(s, { as: "p", textColor: "neutral800", children: e }) }), i && r(R, { paddingBottom: 5, variant: n, children: i })] }), r(y, { onClick: p, "aria-label": c, children: r(f, { "aria-hidden": !0 }) })] }) });
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
- L as Alert
39
+ M as Alert
46
40
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=({theme:r,variant:o})=>o==="danger"?r.colors.danger100:o==="success"?r.colors.success100:o==="warning"?r.colors.warning100:r.colors.primary100,s=({theme:r,variant:o})=>o==="danger"?r.colors.danger200:o==="success"?r.colors.success200:o==="warning"?r.colors.warning200:r.colors.primary200,c=({theme:r,variant:o})=>o==="danger"?r.colors.danger700:o==="success"?r.colors.success700:o==="warning"?r.colors.warning700:r.colors.primary700;exports.handleBackgroundColor=n;exports.handleBorderColor=s;exports.handleIconColor=c;
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;
@@ -1,6 +1,17 @@
1
- const s = ({ theme: r, variant: o }) => o === "danger" ? r.colors.danger100 : o === "success" ? r.colors.success100 : o === "warning" ? r.colors.warning100 : r.colors.primary100, n = ({ theme: r, variant: o }) => o === "danger" ? r.colors.danger200 : o === "success" ? r.colors.success200 : o === "warning" ? r.colors.warning200 : r.colors.primary200, c = ({ theme: r, variant: o }) => o === "danger" ? r.colors.danger700 : o === "success" ? r.colors.success700 : o === "warning" ? r.colors.warning700 : r.colors.primary700;
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
- n as handleBorderColor,
5
- c as handleIconColor
15
+ c as handleBorderColor,
16
+ e as handleIconColor
6
17
  };
@@ -1,16 +1,21 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),S=require("react"),j=require("@strapi/icons"),c=require("styled-components"),u=require("./constants.cjs"),r=require("./utils.cjs"),v=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`
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
- `,C=g.default.div`
8
+ `,w=g.default(v.Loader)`
9
9
  animation: ${R} 2s infinite linear;
10
10
  will-change: transform;
11
- `,y=g.default(v.BaseButton)`
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
- `,p=D.default.forwardRef(({variant:e=u.DEFAULT,startIcon:n,endIcon:s,disabled:h=!1,children:b,onClick:d,size:l=u.BUTTON_SIZES[0],loading:a=!1,fullWidth:i=!1,...m},x)=>{const o=h||a,B=q=>{!o&&d&&d(q)};return t.jsxs(y,{ref:x,"aria-disabled":o,disabled:o,size:l,variant:e,onClick:B,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(C,{children:t.jsx(j.Loader,{})}):n}),t.jsx($.Typography,{variant:l==="S"?"pi":void 0,fontWeight:"bold",lineHeight:0,textColor:"buttonNeutral0",children:b}),s&&t.jsx(T.Flex,{"aria-hidden":!0,children:s})]})});p.displayName="Button";exports.Button=p;exports.ButtonWrapper=y;
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;
@@ -1,36 +1,41 @@
1
- import { jsxs as h, jsx as t } from "react/jsx-runtime";
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 s, { keyframes as v } from "styled-components";
5
- import { DEFAULT as B, BUTTON_SIZES as S } from "./constants.js";
6
- import { getDisabledStyle as l, getHoverStyle as $, getActiveStyle as x, getVariantStyle as C } from "./utils.js";
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 L } from "../Box/Box.js";
9
- import { Typography as T } from "../Typography/Typography.js";
10
- import { Flex as j } from "../Flex/Flex.js";
11
- const w = v`
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
- `, D = s.div`
19
- animation: ${w} 2s infinite linear;
18
+ `, A = f(y)`
19
+ animation: ${j} 2s infinite linear;
20
20
  will-change: transform;
21
- `, N = s(k)`
22
- height: ${({ theme: i, size: e }) => i.sizes.button[e]};
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
- ${l}
30
+ ${s}
26
31
 
27
32
  &:active {
28
- ${l}
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
- `, R = b.forwardRef(({ variant: i = B, startIcon: e, endIcon: n, disabled: f = !1, children: p, onClick: d, size: m = S[0], loading: o = !1, fullWidth: r = !1, ...c }, u) => {
42
- const a = f || o;
43
- return h(N, { ref: u, "aria-disabled": a, disabled: a, size: m, variant: i, onClick: (g) => {
44
- !a && d && d(g);
45
- }, fullWidth: r, alignItems: "center", background: "buttonPrimary600", borderColor: "buttonPrimary600", gap: 2, inline: r, justifyContent: r ? "center" : void 0, paddingLeft: 4, paddingRight: 4, width: r ? "100%" : void 0, ...c, children: [(e || o) && t(L, { "aria-hidden": !0, children: o ? t(D, { children: t(y, {}) }) : e }), t(T, { variant: m === "S" ? "pi" : void 0, fontWeight: "bold", lineHeight: 0, textColor: "buttonNeutral0", children: p }), n && t(j, { "aria-hidden": !0, children: n })] });
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
- R.displayName = "Button";
52
+ N.displayName = "Button";
48
53
  export {
49
- R as Button,
50
- N as ButtonWrapper
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
- `, E = (r) => {
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
- E as CarouselImage
16
+ x as CarouselImage
17
17
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),o=require("../Flex/Flex.cjs"),s=({label:e,children:l,selected:r=!1,...i})=>t.jsx(o.Flex,{display:r?"flex":"none",role:"group","aria-roledescription":"slide","aria-label":e,justifyContent:"center",height:"124px",...i,children:l});exports.CarouselSlide=s;
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 l } from "react/jsx-runtime";
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: o = !1, ...i }) => l(t, { display: o ? "flex" : "none", role: "group", "aria-roledescription": "slide", "aria-label": e, justifyContent: "center", height: "124px", ...i, children: r });
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
  };
@@ -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:e})=>e?"inline-flex":"flex"};
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: ${({ inline: e }) => e ? "inline-flex" : "flex"};
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||!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
+ "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 || !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 })] });
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.8",
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.8",
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.8",
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": "d82da913a5a9f8d8abd785e95f893fa4100d5793"
67
+ "gitHead": "c5116e561a1373177b9bfe2dc5a8a0abb1260900"
68
68
  }