@fluidattacks/design 11.6.0 → 11.6.2

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.
@@ -5,8 +5,8 @@ import i from "../../node_modules/refractor/lang/docker.js";
5
5
  import a from "../../node_modules/refractor/lang/elixir.js";
6
6
  import f from "../../node_modules/refractor/lang/go.js";
7
7
  import n from "../../node_modules/refractor/lang/hcl.js";
8
- import s from "../../node_modules/refractor/lang/java.js";
9
- import e from "../../node_modules/refractor/lang/javascript.js";
8
+ import e from "../../node_modules/refractor/lang/java.js";
9
+ import s from "../../node_modules/refractor/lang/javascript.js";
10
10
  import l from "../../node_modules/refractor/lang/json.js";
11
11
  import c from "../../node_modules/refractor/lang/kotlin.js";
12
12
  import y from "../../node_modules/refractor/lang/markup.js";
@@ -29,8 +29,8 @@ import S from "../../node_modules/react-syntax-highlighter/dist/esm/prism-light.
29
29
  ["elixir", a],
30
30
  ["go", f],
31
31
  ["hcl", n],
32
- ["java", s],
33
- ["javascript", e],
32
+ ["java", e],
33
+ ["javascript", s],
34
34
  ["json", l],
35
35
  ["kotlin", c],
36
36
  ["markup", y],
@@ -52,7 +52,8 @@ const V = Object.fromEntries(
52
52
  {
53
53
  ...o,
54
54
  background: "transparent",
55
- fontFamily: "inherit"
55
+ fontFamily: "inherit",
56
+ textShadow: "none"
56
57
  }
57
58
  ])
58
59
  ), W = (r) => ({
@@ -1,29 +1,29 @@
1
- import { jsx as e, jsxs as h } from "react/jsx-runtime";
1
+ import { jsx as o, jsxs as u } from "react/jsx-runtime";
2
2
  import l from "../../_virtual/lodash.js";
3
- import { useState as B, useMemo as S, useCallback as s } from "react";
3
+ import { useState as B, useMemo as S, useCallback as h } from "react";
4
4
  import { useTheme as H } from "styled-components";
5
- import { syntaxStyle as v, getCustomStyle as w } from "./constants.js";
6
- import { Button as P } from "../button/index.js";
7
- import { Container as c } from "../container/index.js";
5
+ import { syntaxStyle as v, getCustomStyle as C } from "./constants.js";
6
+ import { Button as I } from "../button/index.js";
7
+ import { Container as s } from "../container/index.js";
8
+ import { CopyButton as P } from "../copy-button/index.js";
8
9
  import { Icon as D } from "../icon/index.js";
9
- import { IconButton as F } from "../icon-button/index.js";
10
- import C from "../../node_modules/react-syntax-highlighter/dist/esm/prism-light.js";
11
- const Y = ({
12
- expanded: u = !1,
10
+ import w from "../../node_modules/react-syntax-highlighter/dist/esm/prism-light.js";
11
+ const X = ({
12
+ expanded: g = !1,
13
13
  language: y = "none",
14
14
  minWidth: L = "min(565px, 100%)",
15
- noCodeMessage: d = "Code snippet not available",
16
- showLineNumbers: k = !1,
17
- snippet: o,
15
+ noCodeMessage: c = "Code snippet not available",
16
+ showLineNumbers: N = !1,
17
+ snippet: e,
18
18
  specific: f,
19
- variant: N = "normal"
19
+ variant: R = "normal"
20
20
  }) => {
21
- const t = H(), [R, j] = B(null), n = R === o, T = N === "location", x = !l.isNil(o) && !l.isString(o) && !l.isEmpty(o.content), b = x ? o.content : null, W = x ? o.offset : 0, r = f !== void 0 ? Number(f) : null, i = l.isString(o) && !l.isEmpty(o), m = S(
22
- () => i ? o.split(`
21
+ const t = H(), [j, k] = B(null), i = j === e, W = R === "location", x = !l.isNil(e) && !l.isString(e) && !l.isEmpty(e.content), b = x ? e.content : null, A = x ? e.offset : 0, r = f !== void 0 ? Number(f) : null, n = l.isString(e) && !l.isEmpty(e), d = S(
22
+ () => n ? e.split(`
23
23
  `) : [],
24
- [i, o]
25
- ), g = m.length > 8, z = S(() => i ? g && !n ? `${m.slice(0, 8).join(`
26
- `)}...` : o : d, [i, g, n, m, o, d]), A = s(
24
+ [n, e]
25
+ ), m = d.length > 8, E = S(() => n ? m && !i ? `${d.slice(0, 8).join(`
26
+ `)}...` : e : c, [n, m, i, d, e, c]), T = h(
27
27
  (a) => ({
28
28
  style: {
29
29
  display: "block",
@@ -34,7 +34,7 @@ const Y = ({
34
34
  }
35
35
  }),
36
36
  [r, t.spacing]
37
- ), E = s(
37
+ ), V = h(
38
38
  (a) => {
39
39
  const p = r === a;
40
40
  return {
@@ -49,15 +49,12 @@ const Y = ({
49
49
  };
50
50
  },
51
51
  [r, t.palette.primary, t.spacing]
52
- ), I = s(
53
- () => navigator.clipboard.writeText(i ? o : ""),
54
- [i, o]
55
- ), V = s(
56
- () => j(n ? null : o),
57
- [n, o]
52
+ ), z = h(
53
+ () => k(i ? null : e),
54
+ [i, e]
58
55
  );
59
- return T ? b ? /* @__PURE__ */ e(
60
- c,
56
+ return W ? b ? /* @__PURE__ */ o(
57
+ s,
61
58
  {
62
59
  bgColor: t.palette.gray[100],
63
60
  borderRadius: "4px",
@@ -67,23 +64,23 @@ const Y = ({
67
64
  position: "relative",
68
65
  scroll: "x",
69
66
  width: "100%",
70
- children: /* @__PURE__ */ e(
71
- C,
67
+ children: /* @__PURE__ */ o(
68
+ w,
72
69
  {
73
- customStyle: w(t),
70
+ customStyle: C(t),
74
71
  language: y,
75
- lineNumberStyle: E,
76
- lineProps: A,
72
+ lineNumberStyle: V,
73
+ lineProps: T,
77
74
  showLineNumbers: !0,
78
- startingLineNumber: W + 1,
75
+ startingLineNumber: A + 1,
79
76
  style: v,
80
77
  wrapLines: !0,
81
78
  children: b
82
79
  }
83
80
  )
84
81
  }
85
- ) : /* @__PURE__ */ e(
86
- c,
82
+ ) : /* @__PURE__ */ o(
83
+ s,
87
84
  {
88
85
  bgColor: t.palette.gray[100],
89
86
  borderRadius: "4px",
@@ -92,7 +89,7 @@ const Y = ({
92
89
  position: "relative",
93
90
  scroll: "x",
94
91
  width: "fit-content",
95
- children: /* @__PURE__ */ e(
92
+ children: /* @__PURE__ */ o(
96
93
  "p",
97
94
  {
98
95
  style: {
@@ -100,36 +97,36 @@ const Y = ({
100
97
  fontSize: t.typography.text.md,
101
98
  padding: t.spacing[0.5]
102
99
  },
103
- children: d
100
+ children: c
104
101
  }
105
102
  )
106
103
  }
107
- ) : /* @__PURE__ */ h(
108
- c,
104
+ ) : /* @__PURE__ */ u(
105
+ s,
109
106
  {
110
107
  bgColor: t.palette.gray[100],
111
108
  borderRadius: "4px",
112
109
  "data-private": !0,
113
110
  display: "inline-flex",
114
- justify: u ? "space-between" : "center",
111
+ justify: g ? "space-between" : "center",
115
112
  minWidth: L,
116
113
  position: "relative",
117
114
  px: 1,
118
115
  py: 1,
119
- width: u ? "100%" : "fit-content",
116
+ width: g ? "100%" : "fit-content",
120
117
  children: [
121
- /* @__PURE__ */ e(
122
- C,
118
+ /* @__PURE__ */ o(
119
+ w,
123
120
  {
124
- customStyle: w(t),
121
+ customStyle: C(t),
125
122
  language: y,
126
- showLineNumbers: k,
123
+ showLineNumbers: N,
127
124
  style: v,
128
- children: z
125
+ children: E
129
126
  }
130
127
  ),
131
- /* @__PURE__ */ h(
132
- c,
128
+ /* @__PURE__ */ u(
129
+ s,
133
130
  {
134
131
  alignItems: "end",
135
132
  bgColor: t.palette.gray[100],
@@ -140,25 +137,13 @@ const Y = ({
140
137
  mr: 1,
141
138
  position: "relative",
142
139
  children: [
143
- /* @__PURE__ */ e(
144
- F,
145
- {
146
- height: t.spacing[2.5],
147
- icon: "copy",
148
- iconColor: t.palette.gray[700],
149
- iconSize: "lg",
150
- iconType: "fa-light",
151
- onClick: I,
152
- variant: "ghost",
153
- width: t.spacing[2.5]
154
- }
155
- ),
156
- i && g ? /* @__PURE__ */ h(P, { onClick: V, variant: "ghost", children: [
157
- n ? "Show Less" : "Show more",
158
- /* @__PURE__ */ e(
140
+ /* @__PURE__ */ o(P, { content: n ? e : "" }),
141
+ n && m ? /* @__PURE__ */ u(I, { onClick: z, variant: "ghost", children: [
142
+ i ? "Show Less" : "Show more",
143
+ /* @__PURE__ */ o(
159
144
  D,
160
145
  {
161
- icon: n ? "chevron-up" : "chevron-down",
146
+ icon: i ? "chevron-up" : "chevron-down",
162
147
  iconColor: t.palette.gray[700],
163
148
  iconSize: "sm",
164
149
  iconType: "fa-light",
@@ -174,5 +159,5 @@ const Y = ({
174
159
  );
175
160
  };
176
161
  export {
177
- Y as CodeSnippet
162
+ X as CodeSnippet
178
163
  };
@@ -1,59 +1,56 @@
1
1
  import { jsx as o, jsxs as s } from "react/jsx-runtime";
2
- import { yupResolver as j } from "../../node_modules/@hookform/resolvers/yup/dist/yup.js";
3
- import { useForm as k, FormProvider as D } from "../../node_modules/react-hook-form/dist/index.esm.js";
4
- import { Controller as K, useController as L, useFieldArray as M, useFormContext as N, useWatch as Q } from "../../node_modules/react-hook-form/dist/index.esm.js";
5
- import { useTheme as P } from "styled-components";
6
- import { InnerForm as V } from "./inner-form/index.js";
2
+ import { yupResolver as S } from "../../node_modules/@hookform/resolvers/yup/dist/yup.js";
3
+ import { useForm as j, FormProvider as k } from "../../node_modules/react-hook-form/dist/index.esm.js";
4
+ import { Controller as J, useController as K, useFieldArray as L, useFormContext as M, useWatch as N } from "../../node_modules/react-hook-form/dist/index.esm.js";
5
+ import { useTheme as D } from "styled-components";
6
+ import { InnerForm as U } from "./inner-form/index.js";
7
7
  import { StyledForm as R, FormContent as W } from "./styles.js";
8
- import { Button as x } from "../button/index.js";
8
+ import { Button as f } from "../button/index.js";
9
9
  import { Container as l } from "../container/index.js";
10
- const E = ({
10
+ const A = ({
11
11
  alert: n,
12
12
  buttonAlignment: d,
13
- cancelButton: e,
14
- children: u,
15
- confirmButton: i,
16
- defaultDisabled: y = !0,
17
- id: p = "modal-confirm",
18
- maxButtonWidth: b,
19
- mode: g,
20
- onSubmit: C,
21
- padding: m = !0,
13
+ cancelButton: r,
14
+ children: h,
15
+ confirmButton: t,
16
+ defaultDisabled: u = !0,
17
+ id: m = "modal-confirm",
18
+ maxButtonWidth: x,
19
+ mode: y,
20
+ onSubmit: b,
21
+ padding: g = !0,
22
22
  showButtons: a = !0,
23
- yupSchema: c,
24
- ...F
23
+ yupSchema: p,
24
+ ...C
25
25
  }) => {
26
- const r = P(), t = k({
27
- ...F,
28
- mode: g ?? "all",
29
- resolver: c ? j(c) : void 0
26
+ const e = D(), i = j({
27
+ ...C,
28
+ mode: y ?? "all",
29
+ resolver: p ? S(p) : void 0
30
30
  });
31
- function $(h) {
32
- h.stopPropagation(), t.handleSubmit(C)(h);
31
+ function F(c) {
32
+ c.stopPropagation(), i.handleSubmit(b)(c);
33
33
  }
34
- const v = a ? `calc(100% - ${n ? "139px" : "83px"})` : "100%", f = m ? 1.5 : 0, S = b ?? (e ? "392px" : "190px");
35
- return /* @__PURE__ */ o(D, { ...t, children: /* @__PURE__ */ o(R, { onSubmit: $, children: /* @__PURE__ */ s(l, { scroll: "y", width: "100%", children: [
34
+ const $ = a ? `calc(100% - ${n ? "139px" : "83px"})` : "100%", v = x ?? (r ? "392px" : "190px");
35
+ return /* @__PURE__ */ o(k, { ...i, children: /* @__PURE__ */ o(R, { onSubmit: F, children: /* @__PURE__ */ s(l, { scroll: "y", width: "100%", children: [
36
36
  /* @__PURE__ */ o(
37
37
  W,
38
38
  {
39
- $padded: m,
40
- borderRadius: `0 0 ${r.spacing[0.25]} ${r.spacing[0.25]}`,
39
+ $padded: g,
40
+ borderRadius: `0 0 ${e.spacing[0.25]} ${e.spacing[0.25]}`,
41
41
  display: "flex",
42
42
  flexDirection: "column",
43
43
  gap: 0.5,
44
- height: v,
45
- pb: f,
46
- pt: 0,
47
- px: f,
44
+ height: $,
48
45
  scroll: "y",
49
- children: u
46
+ children: h
50
47
  }
51
48
  ),
52
49
  a && /* @__PURE__ */ s(
53
50
  l,
54
51
  {
55
- borderRadius: `0 0 ${r.spacing[0.25]} ${r.spacing[0.25]}`,
56
- borderTop: `1px solid ${r.palette.gray[200]}`,
52
+ borderRadius: `0 0 ${e.spacing[0.25]} ${e.spacing[0.25]}`,
53
+ borderTop: `1px solid ${e.palette.gray[200]}`,
57
54
  display: "flex",
58
55
  flexDirection: d ? "unset" : "column",
59
56
  gap: 0.625,
@@ -63,30 +60,30 @@ const E = ({
63
60
  py: 1.25,
64
61
  children: [
65
62
  n,
66
- /* @__PURE__ */ s(l, { display: "flex", gap: 0.75, maxWidth: S, children: [
67
- e ? /* @__PURE__ */ o(
68
- x,
63
+ /* @__PURE__ */ s(l, { display: "flex", gap: 0.75, maxWidth: v, children: [
64
+ r ? /* @__PURE__ */ o(
65
+ f,
69
66
  {
70
- icon: e.icon,
71
- id: `${p}-cancel`,
67
+ icon: r.icon,
68
+ id: `${m}-cancel`,
72
69
  justify: "center",
73
- onClick: e.onClick,
70
+ onClick: r.onClick,
74
71
  type: "reset",
75
72
  variant: "tertiary",
76
73
  width: "100%",
77
- children: e.label ?? "Cancel"
74
+ children: r.label ?? "Cancel"
78
75
  }
79
76
  ) : void 0,
80
77
  /* @__PURE__ */ o(
81
- x,
78
+ f,
82
79
  {
83
- disabled: (i?.disabled ?? !1) || t.formState.isSubmitting || y && !t.formState.isDirty,
84
- icon: i?.icon,
85
- id: p,
80
+ disabled: (t?.disabled ?? !1) || i.formState.isSubmitting || u && !i.formState.isDirty,
81
+ icon: t?.icon,
82
+ id: m,
86
83
  justify: "center",
87
84
  type: "submit",
88
85
  width: "100%",
89
- children: i?.label ?? "Confirm"
86
+ children: t?.label ?? "Confirm"
90
87
  }
91
88
  )
92
89
  ] })
@@ -96,11 +93,11 @@ const E = ({
96
93
  ] }) }) });
97
94
  };
98
95
  export {
99
- K as Controller,
100
- E as Form,
101
- V as InnerForm,
102
- L as useController,
103
- M as useFieldArray,
104
- N as useFormContext,
105
- Q as useWatch
96
+ J as Controller,
97
+ A as Form,
98
+ U as InnerForm,
99
+ K as useController,
100
+ L as useFieldArray,
101
+ M as useFormContext,
102
+ N as useWatch
106
103
  };
@@ -1,30 +1,35 @@
1
- import { styled as i } from "styled-components";
2
- import { Container as n } from "../container/index.js";
3
- const e = i(n)`
1
+ import { styled as o } from "styled-components";
2
+ import { Container as a } from "../container/index.js";
3
+ const r = o(a)`
4
4
  > * {
5
5
  flex-shrink: 0;
6
6
  }
7
7
 
8
- ${({ $padded: o, theme: t }) => o ? "" : `
8
+ ${({ $padded: n, theme: i }) => n ? `
9
+ padding: 0 var(--form-padding, ${i.spacing[1.5]})
10
+ var(--form-padding, ${i.spacing[1.5]});
11
+ ` : `
12
+ padding: 0;
13
+
9
14
  > #footer {
10
15
  box-sizing: content-box;
11
- padding-bottom: ${t.spacing[1.25]};
12
- padding-left: ${t.spacing[1.25]};
13
- padding-right: ${t.spacing[1.25]};
16
+ padding-bottom: ${i.spacing[1.25]};
17
+ padding-left: ${i.spacing[1.25]};
18
+ padding-right: ${i.spacing[1.25]};
14
19
  }
15
20
  `}
16
- `, s = i.form`
17
- ${({ theme: o }) => `
21
+ `, g = o.form`
22
+ ${({ theme: n }) => `
18
23
  align-items: flex-start;
19
24
  align-self: stretch;
20
25
  display: flex;
21
26
  flex-direction: column;
22
- gap: ${o.spacing[0.5]};
27
+ gap: ${n.spacing[0.5]};
23
28
  overflow: hidden auto;
24
29
  width: 100%;
25
30
  `}
26
31
  `;
27
32
  export {
28
- e as FormContent,
29
- s as StyledForm
33
+ r as FormContent,
34
+ g as StyledForm
30
35
  };
@@ -1,9 +1,9 @@
1
- import { jsx as e, jsxs as i } from "react/jsx-runtime";
2
- import { useState as v, useCallback as p, useMemo as b } from "react";
1
+ import { jsx as e, jsxs as l } from "react/jsx-runtime";
2
+ import { useState as w, useCallback as p, useMemo as b } from "react";
3
3
  import { createPortal as I } from "react-dom";
4
- import { useTheme as z } from "styled-components";
5
- import { OptionContainer as L } from "./option-container/index.js";
6
- import { StyledGroupContainer as T, OptionBoxContainer as j } from "./styles.js";
4
+ import { useTheme as L } from "styled-components";
5
+ import { OptionContainer as T } from "./option-container/index.js";
6
+ import { StyledGroupContainer as z, OptionBoxContainer as j } from "./styles.js";
7
7
  import { Container as o } from "../container/index.js";
8
8
  import { Divider as k } from "../divider/index.js";
9
9
  import { Icon as G } from "../icon/index.js";
@@ -12,17 +12,17 @@ import { Search as H } from "../search/index.js";
12
12
  import "../typography/heading/index.js";
13
13
  import "../typography/span/index.js";
14
14
  import { Text as h } from "../typography/text/index.js";
15
- const c = 100, N = ({
15
+ const c = 100, B = ({
16
16
  items: t,
17
- handleNewOrganization: l,
17
+ handleNewOrganization: n,
18
18
  itemAction: d,
19
- onSelect: g,
20
- onClose: u,
19
+ onSelect: u,
20
+ onClose: g,
21
21
  selectedItem: f,
22
22
  title: C,
23
23
  variant: x
24
24
  }) => {
25
- const n = z(), [a, m] = v(""), y = p(
25
+ const i = L(), [a, m] = w(""), y = p(
26
26
  (r) => {
27
27
  r.currentTarget && m(r.currentTarget.value.slice(0, c));
28
28
  },
@@ -36,7 +36,7 @@ const c = 100, N = ({
36
36
  if (!a) return [...t];
37
37
  const r = a.toLowerCase();
38
38
  return t.filter(
39
- (w) => String(w.name).toLowerCase().includes(r)
39
+ (v) => String(v.name).toLowerCase().includes(r)
40
40
  );
41
41
  }, [t, a]);
42
42
  return /* @__PURE__ */ e(
@@ -56,8 +56,8 @@ const c = 100, N = ({
56
56
  left: "0",
57
57
  top: "0",
58
58
  width: "100%",
59
- children: /* @__PURE__ */ i(T, { $itemsLength: s.length, children: [
60
- /* @__PURE__ */ i(
59
+ children: /* @__PURE__ */ l(z, { $itemsLength: s.length, children: [
60
+ /* @__PURE__ */ l(
61
61
  o,
62
62
  {
63
63
  alignItems: "center",
@@ -67,7 +67,7 @@ const c = 100, N = ({
67
67
  /* @__PURE__ */ e(
68
68
  h,
69
69
  {
70
- color: n.palette.gray[800],
70
+ color: i.palette.gray[800],
71
71
  fontWeight: "bold",
72
72
  size: "lg",
73
73
  children: C
@@ -77,10 +77,10 @@ const c = 100, N = ({
77
77
  A,
78
78
  {
79
79
  icon: "xmark",
80
- iconColor: n.palette.gray[400],
80
+ iconColor: i.palette.gray[400],
81
81
  iconSize: "lg",
82
82
  iconType: "fa-light",
83
- onClick: u,
83
+ onClick: g,
84
84
  variant: "ghost"
85
85
  }
86
86
  )
@@ -98,7 +98,7 @@ const c = 100, N = ({
98
98
  }
99
99
  ) }),
100
100
  /* @__PURE__ */ e(k, { mb: 1, mt: 1 }),
101
- /* @__PURE__ */ i(
101
+ /* @__PURE__ */ l(
102
102
  o,
103
103
  {
104
104
  display: "inline-flex",
@@ -107,26 +107,26 @@ const c = 100, N = ({
107
107
  scroll: "y",
108
108
  wrap: "wrap",
109
109
  children: [
110
- x === "organization-selector" ? /* @__PURE__ */ e(j, { onClick: l, children: /* @__PURE__ */ i(o, { alignItems: "center", display: "flex", children: [
110
+ x === "organization-selector" && n !== void 0 ? /* @__PURE__ */ e(j, { onClick: n, children: /* @__PURE__ */ l(o, { alignItems: "center", display: "flex", children: [
111
111
  /* @__PURE__ */ e(
112
112
  G,
113
113
  {
114
114
  icon: "square-plus",
115
- iconColor: n.palette.gray[400],
115
+ iconColor: i.palette.gray[400],
116
116
  iconSize: "lg",
117
117
  iconType: "fa-light",
118
118
  mr: 0.5
119
119
  }
120
120
  ),
121
- /* @__PURE__ */ e(h, { color: n.palette.gray[400], size: "md", children: "New organization" })
121
+ /* @__PURE__ */ e(h, { color: i.palette.gray[400], size: "md", children: "New organization" })
122
122
  ] }) }) : void 0,
123
123
  s.map((r) => /* @__PURE__ */ e(
124
- L,
124
+ T,
125
125
  {
126
126
  isSelected: f.toLowerCase() === r.name,
127
127
  itemAction: d,
128
128
  label: r.name.charAt(0).toUpperCase() + r.name.slice(1),
129
- onSelect: g,
129
+ onSelect: u,
130
130
  value: r.name
131
131
  },
132
132
  r.name
@@ -141,8 +141,8 @@ const c = 100, N = ({
141
141
  );
142
142
  }, F = ({
143
143
  isOpen: t = !0,
144
- ...l
145
- }) => t ? I(/* @__PURE__ */ e(N, { ...l }), document.body) : /* @__PURE__ */ e("div", {});
144
+ ...n
145
+ }) => t ? I(/* @__PURE__ */ e(B, { ...n }), document.body) : /* @__PURE__ */ e("div", {});
146
146
  export {
147
147
  F as GroupSelector
148
148
  };
@@ -1,7 +1,7 @@
1
1
  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
- import { FormContent as g } from "../form/styles.js";
4
+ import { FormContent as e } from "../form/styles.js";
5
5
  const { getVariant: l } = p(
6
6
  (i) => ({
7
7
  fixed: `
@@ -32,7 +32,7 @@ const { getVariant: l } = p(
32
32
  }
33
33
  `
34
34
  })
35
- ), b = a.div.attrs({
35
+ ), m = a.div.attrs({
36
36
  className: "comp-modal fixed inset-0 overflow-auto"
37
37
  })`
38
38
  align-items: center;
@@ -62,9 +62,9 @@ const { getVariant: l } = p(
62
62
  ${l(i, o)}
63
63
  `}
64
64
  `, t = (i, o) => {
65
- const n = i.spacing[1.5], r = `1px + ${i.spacing[1.25]}`, d = `${i.spacing[1.25]} + 2 * ${o} + 2px`, s = i.spacing[0.5];
65
+ 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
66
  return `calc(${n} + ${r} + ${d} + ${s})`;
67
- }, m = a.div`
67
+ }, b = a.div`
68
68
  ${({ theme: i }) => `
69
69
  background-color: ${i.palette.white};
70
70
  border-radius: 0 0 ${i.spacing[0.25]} ${i.spacing[0.25]};
@@ -72,12 +72,14 @@ const { getVariant: l } = p(
72
72
  flex-direction: column;
73
73
  flex-grow: 1;
74
74
  overflow: hidden auto;
75
- padding: ${i.spacing[1.25]} ${i.spacing[1.5]} ${i.spacing[1.5]};
75
+ padding: ${i.spacing[1.25]};
76
76
  scrollbar-color: ${i.palette.gray[600]} ${i.palette.gray[100]};
77
77
  scroll-padding: ${i.spacing[0.5]};
78
+ /* The modal sets the padding of any Form inside it */
79
+ --form-padding: ${i.spacing[1.25]};
78
80
 
79
81
  &,
80
- ${g} {
82
+ ${e} {
81
83
  > #footer {
82
84
  background-color: ${i.palette.white};
83
85
  border-top: 1px solid transparent;
@@ -130,7 +132,6 @@ const { getVariant: l } = p(
130
132
  max-height: 100%;
131
133
  max-width: 100%;
132
134
  padding: ${({ theme: i }) => `${i.spacing[1.25]}`};
133
- padding-bottom: ${({ theme: i }) => `${i.spacing[1.5]}`};
134
135
  position: sticky;
135
136
  z-index: 1;
136
137
  `, y = a.div.attrs({
@@ -188,7 +189,7 @@ export {
188
189
  u as Header,
189
190
  h as ImageContainer,
190
191
  w as ModalContainer,
191
- m as ModalContent,
192
- b as ModalWrapper,
192
+ b as ModalContent,
193
+ m as ModalWrapper,
193
194
  y as Title
194
195
  };
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.6.0"
138
+ "version": "11.6.2"
139
139
  }