@frontify/fondue-components 8.0.2 → 10.0.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.
@@ -1,20 +1,20 @@
1
- const t = "_content_1d0au_5", n = "_subContent_1d0au_6", o = "_item_1d0au_20", s = "_subTrigger_1d0au_20", u = "_subMenuIndicator_1d0au_102", _ = "_group_1d0au_108", e = "_slot_1d0au_115", c = {
2
- content: t,
3
- subContent: n,
4
- item: o,
5
- subTrigger: s,
6
- subMenuIndicator: u,
1
+ const e = "_content_ee4rq_6", t = "_subContent_ee4rq_7", n = "_item_ee4rq_21", o = "_subTrigger_ee4rq_21", s = "_subMenuIndicator_ee4rq_119", _ = "_group_ee4rq_125", r = "_slot_ee4rq_132", u = {
2
+ content: e,
3
+ subContent: t,
4
+ item: n,
5
+ subTrigger: o,
6
+ subMenuIndicator: s,
7
7
  group: _,
8
- slot: e
8
+ slot: r
9
9
  };
10
10
  export {
11
- t as content,
12
- c as default,
11
+ e as content,
12
+ u as default,
13
13
  _ as group,
14
- o as item,
15
- e as slot,
16
- n as subContent,
17
- u as subMenuIndicator,
18
- s as subTrigger
14
+ n as item,
15
+ r as slot,
16
+ t as subContent,
17
+ s as subMenuIndicator,
18
+ o as subTrigger
19
19
  };
20
20
  //# sourceMappingURL=fondue-components41.js.map
@@ -1,16 +1,16 @@
1
- const t = "_root_2ajx7_5", _ = "_small_2ajx7_33", a = "_medium_2ajx7_37", o = "_large_2ajx7_41", m = "_thumb_2ajx7_55", s = {
2
- root: t,
3
- small: _,
4
- medium: a,
1
+ const m = "_root_hrjmg_5", t = "_small_hrjmg_33", _ = "_medium_hrjmg_37", o = "_large_hrjmg_41", r = "_thumb_hrjmg_55", s = {
2
+ root: m,
3
+ small: t,
4
+ medium: _,
5
5
  large: o,
6
- thumb: m
6
+ thumb: r
7
7
  };
8
8
  export {
9
9
  s as default,
10
10
  o as large,
11
- a as medium,
12
- t as root,
13
- _ as small,
14
- m as thumb
11
+ _ as medium,
12
+ m as root,
13
+ t as small,
14
+ r as thumb
15
15
  };
16
16
  //# sourceMappingURL=fondue-components57.js.map
@@ -1,24 +1,24 @@
1
- const t = "_table_4n7pf_4", o = "_headerCell_4n7pf_18", n = "_rowCell_4n7pf_19", _ = "_caption_4n7pf_40", e = "_sortButton_4n7pf_65", r = "_buttonText_4n7pf_83", s = "_sortIndicator_4n7pf_92", l = "_body_4n7pf_96", c = "_row_4n7pf_19", a = {
1
+ const t = "_table_tkqa4_4", o = "_headerCell_tkqa4_18", _ = "_rowCell_tkqa4_19", a = "_caption_tkqa4_46", n = "_sortButton_tkqa4_71", e = "_buttonText_tkqa4_89", r = "_sortIndicator_tkqa4_98", s = "_body_tkqa4_102", l = "_row_tkqa4_19", c = {
2
2
  table: t,
3
3
  headerCell: o,
4
- rowCell: n,
5
- caption: _,
6
- sortButton: e,
7
- buttonText: r,
8
- sortIndicator: s,
9
- body: l,
10
- row: c
4
+ rowCell: _,
5
+ caption: a,
6
+ sortButton: n,
7
+ buttonText: e,
8
+ sortIndicator: r,
9
+ body: s,
10
+ row: l
11
11
  };
12
12
  export {
13
- l as body,
14
- r as buttonText,
15
- _ as caption,
16
- a as default,
13
+ s as body,
14
+ e as buttonText,
15
+ a as caption,
16
+ c as default,
17
17
  o as headerCell,
18
- c as row,
19
- n as rowCell,
20
- e as sortButton,
21
- s as sortIndicator,
18
+ l as row,
19
+ _ as rowCell,
20
+ n as sortButton,
21
+ r as sortIndicator,
22
22
  t as table
23
23
  };
24
24
  //# sourceMappingURL=fondue-components60.js.map
@@ -1,18 +1,18 @@
1
- const t = "_root_ieias_5", i = "_triggerList_ieias_14", r = "_triggerListWrapper_ieias_28", e = "_trigger_ieias_14", s = "_content_ieias_78", o = "_activeIndicator_ieias_82", g = {
1
+ const t = "_root_1msyd_5", r = "_triggerList_1msyd_14", s = "_triggerListWrapper_1msyd_28", e = "_trigger_1msyd_14", i = "_content_1msyd_78", o = "_activeIndicator_1msyd_91", g = {
2
2
  root: t,
3
- triggerList: i,
4
- triggerListWrapper: r,
3
+ triggerList: r,
4
+ triggerListWrapper: s,
5
5
  trigger: e,
6
- content: s,
6
+ content: i,
7
7
  activeIndicator: o
8
8
  };
9
9
  export {
10
10
  o as activeIndicator,
11
- s as content,
11
+ i as content,
12
12
  g as default,
13
13
  t as root,
14
14
  e as trigger,
15
- i as triggerList,
16
- r as triggerListWrapper
15
+ r as triggerList,
16
+ s as triggerListWrapper
17
17
  };
18
18
  //# sourceMappingURL=fondue-components63.js.map
@@ -1,19 +1,19 @@
1
- const o = "_root_1w6r3_5", t = "_input_1w6r3_59", s = "_slot_1w6r3_82", _ = "_iconSuccess_1w6r3_132", n = "_iconError_1w6r3_140", r = "_loadingStatus_1w6r3_148", c = "_spin_1w6r3_1", i = {
1
+ const o = "_root_7i0v6_5", t = "_input_7i0v6_59", s = "_slot_7i0v6_82", _ = "_iconSuccess_7i0v6_132", i = "_iconError_7i0v6_141", n = "_loadingStatus_7i0v6_155", c = "_spin_7i0v6_1", r = {
2
2
  root: o,
3
3
  input: t,
4
4
  slot: s,
5
5
  iconSuccess: _,
6
- iconError: n,
7
- loadingStatus: r,
6
+ iconError: i,
7
+ loadingStatus: n,
8
8
  spin: c,
9
- "tw-dark": "_tw-dark_1w6r3_180"
9
+ "tw-dark": "_tw-dark_7i0v6_187"
10
10
  };
11
11
  export {
12
- i as default,
13
- n as iconError,
12
+ r as default,
13
+ i as iconError,
14
14
  _ as iconSuccess,
15
15
  t as input,
16
- r as loadingStatus,
16
+ n as loadingStatus,
17
17
  o as root,
18
18
  s as slot,
19
19
  c as spin
@@ -1,5 +1,18 @@
1
- const t = "focus-visible:tw-outline has-[[data-show-focus-ring=true]]:tw-outline tw-outline-4 tw-outline-offset-2 tw-outline-blue focus-visible:tw-outline-blue";
1
+ const o = "_root_1nv86_5", t = "_button_1nv86_56", c = "_colorIndicator_1nv86_69", n = "_actions_1nv86_75", _ = "_clear_1nv86_85", r = "_caret_1nv86_98", a = {
2
+ root: o,
3
+ button: t,
4
+ colorIndicator: c,
5
+ actions: n,
6
+ clear: _,
7
+ caret: r
8
+ };
2
9
  export {
3
- t as FOCUS_OUTLINE
10
+ n as actions,
11
+ t as button,
12
+ r as caret,
13
+ _ as clear,
14
+ c as colorIndicator,
15
+ a as default,
16
+ o as root
4
17
  };
5
18
  //# sourceMappingURL=fondue-components66.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"fondue-components66.js","sources":["../src/utilities/focusStyle.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nexport const FOCUS_OUTLINE =\n 'focus-visible:tw-outline has-[[data-show-focus-ring=true]]:tw-outline tw-outline-4 tw-outline-offset-2 tw-outline-blue focus-visible:tw-outline-blue'; // second declaration of tw-outline-blue is to assure that in firefox the outline isn't overriden by a global definition of :-moz-focusring which is coming from tailwinds normalization styling\n"],"names":["FOCUS_OUTLINE"],"mappings":"AAEO,MAAMA,IACT;"}
1
+ {"version":3,"file":"fondue-components66.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -1,18 +1,5 @@
1
- const o = "_root_1nv86_5", t = "_button_1nv86_56", c = "_colorIndicator_1nv86_69", n = "_actions_1nv86_75", _ = "_clear_1nv86_85", r = "_caret_1nv86_98", a = {
2
- root: o,
3
- button: t,
4
- colorIndicator: c,
5
- actions: n,
6
- clear: _,
7
- caret: r
8
- };
1
+ const t = "focus-visible:tw-outline has-[[data-show-focus-ring=true]]:tw-outline tw-outline-4 tw-outline-offset-2 tw-outline-blue focus-visible:tw-outline-blue";
9
2
  export {
10
- n as actions,
11
- t as button,
12
- r as caret,
13
- _ as clear,
14
- c as colorIndicator,
15
- a as default,
16
- o as root
3
+ t as FOCUS_OUTLINE
17
4
  };
18
5
  //# sourceMappingURL=fondue-components67.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"fondue-components67.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
1
+ {"version":3,"file":"fondue-components67.js","sources":["../src/utilities/focusStyle.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nexport const FOCUS_OUTLINE =\n 'focus-visible:tw-outline has-[[data-show-focus-ring=true]]:tw-outline tw-outline-4 tw-outline-offset-2 tw-outline-blue focus-visible:tw-outline-blue'; // second declaration of tw-outline-blue is to assure that in firefox the outline isn't overriden by a global definition of :-moz-focusring which is coming from tailwinds normalization styling\n"],"names":["FOCUS_OUTLINE"],"mappings":"AAEO,MAAMA,IACT;"}
@@ -1,124 +1,137 @@
1
- import { jsx as a, jsxs as T } from "react/jsx-runtime";
1
+ import { jsx as o, jsxs as T } from "react/jsx-runtime";
2
2
  import { IconCross as F } from "@frontify/fondue-icons";
3
- import * as i from "@radix-ui/react-dialog";
4
- import { createContext as M, forwardRef as l, useContext as S } from "react";
3
+ import * as d from "@radix-ui/react-dialog";
4
+ import { createContext as M, forwardRef as s, useContext as S } from "react";
5
5
  import { addAutoFocusAttribute as B, addShowFocusRing as H } from "./fondue-components37.js";
6
- import r from "./fondue-components38.js";
7
- const n = M({ isModal: !1 }), g = ({ children: t, ...o }) => /* @__PURE__ */ a(n.Provider, { value: { isModal: o.modal ?? !1 }, children: /* @__PURE__ */ a(i.Root, { ...o, children: t }) });
8
- g.displayName = "Dialog.Root";
9
- const c = ({ asChild: t = !0, children: o, "data-test-id": e = "fondue-dialog-trigger", ...d }, s) => /* @__PURE__ */ a(
10
- i.Trigger,
6
+ import l from "./fondue-components38.js";
7
+ const g = M({ isModal: !1 }), u = ({ children: a, ...t }) => /* @__PURE__ */ o(g.Provider, { value: { isModal: t.modal ?? !1 }, children: /* @__PURE__ */ o(d.Root, { ...t, children: a }) });
8
+ u.displayName = "Dialog.Root";
9
+ const c = ({ asChild: a = !0, children: t, "data-test-id": e = "fondue-dialog-trigger", ...i }, r) => /* @__PURE__ */ o(
10
+ d.Trigger,
11
11
  {
12
12
  onMouseDown: B,
13
13
  "data-auto-focus-visible": "true",
14
14
  "data-auto-focus-trigger": !0,
15
15
  "data-test-id": e,
16
- asChild: t,
17
- ref: s,
18
- ...d,
19
- children: o
16
+ asChild: a,
17
+ ref: r,
18
+ ...i,
19
+ children: t
20
20
  }
21
21
  );
22
22
  c.displayName = "Dialog.Trigger";
23
- const j = ({ children: t, showUnderlay: o }) => {
24
- const { isModal: e } = S(n);
25
- return e ? /* @__PURE__ */ a(i.Overlay, { "data-visible": o, className: r.underlay, children: t }) : /* @__PURE__ */ a("div", { className: r.underlay, "data-visible": o, children: t });
26
- }, u = ({
27
- maxWidth: t = "800px",
28
- minWidth: o = "400px",
23
+ const j = ({ children: a, showUnderlay: t }) => {
24
+ const { isModal: e } = S(g);
25
+ return e ? /* @__PURE__ */ o(d.Overlay, { "data-visible": t, className: l.underlay, children: a }) : /* @__PURE__ */ o("div", { className: l.underlay, "data-visible": t, children: a });
26
+ }, m = ({
27
+ maxWidth: a = "800px",
28
+ minWidth: t = "400px",
29
29
  minHeight: e = "200px",
30
- padding: d = "compact",
31
- verticalAlign: s = "center",
32
- "data-test-id": h = "fondue-dialog-content",
30
+ padding: i = "compact",
31
+ verticalAlign: r = "center",
32
+ "data-test-id": n = "fondue-dialog-content",
33
33
  showUnderlay: v = !1,
34
- children: x,
35
- rounded: b = !0,
34
+ rounded: x = !0,
35
+ children: b,
36
36
  ...w
37
- }, R) => /* @__PURE__ */ a(i.Portal, { children: /* @__PURE__ */ a(j, { showUnderlay: v, children: /* @__PURE__ */ a(
38
- i.Content,
37
+ }, R) => /* @__PURE__ */ o(d.Portal, { children: /* @__PURE__ */ o(j, { showUnderlay: v, children: /* @__PURE__ */ o(
38
+ d.Content,
39
39
  {
40
40
  style: {
41
- "--dialog-max-width": t,
42
- "--dialog-min-width": o,
41
+ "--dialog-max-width": a,
42
+ "--dialog-min-width": t,
43
43
  "--dialog-min-height": e
44
44
  },
45
45
  ref: R,
46
- className: r.content,
46
+ className: l.content,
47
47
  onFocus: H,
48
- "data-dialog-rounded": b,
49
- "data-dialog-spacing": d,
50
- "data-test-id": h,
51
- "data-dialog-vertical-align": s,
48
+ "data-dialog-padding": i,
49
+ "data-dialog-rounded": x,
50
+ "data-test-id": n,
51
+ "data-dialog-vertical-align": r,
52
52
  ...w,
53
- children: x
53
+ children: b
54
54
  }
55
55
  ) }) });
56
- u.displayName = "Dialog.Content";
57
- const m = ({
58
- children: t,
59
- showBorder: o = !0,
56
+ m.displayName = "Dialog.Content";
57
+ const p = ({
58
+ padding: a,
59
+ showBorder: t = !0,
60
60
  showCloseButton: e = !0,
61
- "data-test-id": d = "fondue-dialog-header"
62
- }, s) => /* @__PURE__ */ T(
61
+ children: i,
62
+ "data-test-id": r = "fondue-dialog-header"
63
+ }, n) => /* @__PURE__ */ T(
63
64
  "div",
64
65
  {
65
- "data-test-id": d,
66
- ref: s,
67
- className: r.header,
68
- "data-show-border": o,
66
+ "data-test-id": r,
67
+ ref: n,
68
+ className: l.header,
69
+ "data-dialog-header-padding": a,
70
+ "data-show-border": t,
69
71
  "data-dialog-layout-component": !0,
70
72
  children: [
71
- /* @__PURE__ */ a("div", { children: t }),
72
- e && /* @__PURE__ */ a(i.Close, { role: "button", "data-test-id": `${d}-close`, className: "tw-cursor-pointer", children: /* @__PURE__ */ a(F, { size: 20 }) })
73
+ /* @__PURE__ */ o("div", { children: i }),
74
+ e && /* @__PURE__ */ o(d.Close, { role: "button", "data-test-id": `${r}-close`, className: "tw-cursor-pointer", children: /* @__PURE__ */ o(F, { size: 20 }) })
73
75
  ]
74
76
  }
75
77
  );
76
- m.displayName = "Dialog.Header";
77
- const p = ({ showBorder: t = !0, children: o, "data-test-id": e = "fondue-dialog-footer" }, d) => /* @__PURE__ */ a(
78
+ p.displayName = "Dialog.Header";
79
+ const D = ({ padding: a, showBorder: t = !0, children: e, "data-test-id": i = "fondue-dialog-footer" }, r) => /* @__PURE__ */ o(
78
80
  "div",
79
81
  {
80
- "data-test-id": e,
81
- ref: d,
82
- className: r.footer,
82
+ "data-test-id": i,
83
+ ref: r,
84
+ className: l.footer,
85
+ "data-dialog-footer-padding": a,
83
86
  "data-show-border": t,
84
87
  "data-dialog-layout-component": !0,
85
- children: o
88
+ children: e
89
+ }
90
+ );
91
+ D.displayName = "Dialog.Footer";
92
+ const y = ({ padding: a, children: t, "data-test-id": e = "fondue-dialog-body" }, i) => /* @__PURE__ */ o(
93
+ "div",
94
+ {
95
+ "data-test-id": e,
96
+ ref: i,
97
+ className: l.body,
98
+ "data-dialog-body-padding": a,
99
+ "data-dialog-layout-component": !0,
100
+ children: t
86
101
  }
87
102
  );
88
- p.displayName = "Dialog.Footer";
89
- const D = ({ children: t, "data-test-id": o = "fondue-dialog-body" }, e) => /* @__PURE__ */ a("div", { "data-test-id": o, ref: e, className: r.body, "data-dialog-layout-component": !0, children: t });
90
- D.displayName = "Dialog.Body";
91
- const y = ({ children: t, "data-test-id": o = "fondue-dialog-side-content" }, e) => /* @__PURE__ */ a("div", { "data-test-id": o, ref: e, className: r.sideContent, "data-dialog-layout-component": !0, children: t });
92
- y.displayName = "Dialog.SideContent";
93
- const f = ({ children: t }) => /* @__PURE__ */ a(i.Close, { asChild: !0, children: t });
94
- f.displayName = "Dialog.Close";
95
- const C = ({ children: t, asChild: o }) => /* @__PURE__ */ a(i.Title, { asChild: o, children: t });
96
- C.displayName = "Dialog.Title";
97
- const N = ({ children: t, asChild: o }) => /* @__PURE__ */ a(i.Description, { asChild: o, children: t });
98
- N.displayName = "Dialog.Description";
103
+ y.displayName = "Dialog.Body";
104
+ const f = ({ children: a, "data-test-id": t = "fondue-dialog-side-content" }, e) => /* @__PURE__ */ o("div", { "data-test-id": t, ref: e, className: l.sideContent, "data-dialog-layout-component": !0, children: a });
105
+ f.displayName = "Dialog.SideContent";
106
+ const C = ({ children: a }) => /* @__PURE__ */ o(d.Close, { asChild: !0, children: a });
107
+ C.displayName = "Dialog.Close";
108
+ const N = ({ children: a, asChild: t }) => /* @__PURE__ */ o(d.Title, { asChild: t, children: a });
109
+ N.displayName = "Dialog.Title";
110
+ const h = ({ children: a, asChild: t }) => /* @__PURE__ */ o(d.Description, { asChild: t, children: a });
111
+ h.displayName = "Dialog.Description";
99
112
  const k = {
100
- Root: g,
101
- Title: C,
102
- Description: N,
103
- Close: f,
104
- Trigger: l(c),
105
- Content: l(u),
106
- Header: l(m),
107
- Footer: l(p),
108
- Body: l(D),
109
- SideContent: l(y)
113
+ Root: u,
114
+ Title: N,
115
+ Description: h,
116
+ Close: C,
117
+ Trigger: s(c),
118
+ Content: s(m),
119
+ Header: s(p),
120
+ Footer: s(D),
121
+ Body: s(y),
122
+ SideContent: s(f)
110
123
  };
111
124
  export {
112
125
  k as Dialog,
113
- D as DialogBody,
114
- f as DialogClose,
115
- u as DialogContent,
116
- N as DialogDescription,
117
- p as DialogFooter,
118
- m as DialogHeader,
119
- g as DialogRoot,
120
- y as DialogSideContent,
121
- C as DialogTitle,
126
+ y as DialogBody,
127
+ C as DialogClose,
128
+ m as DialogContent,
129
+ h as DialogDescription,
130
+ D as DialogFooter,
131
+ p as DialogHeader,
132
+ u as DialogRoot,
133
+ f as DialogSideContent,
134
+ N as DialogTitle,
122
135
  c as DialogTrigger
123
136
  };
124
137
  //# sourceMappingURL=fondue-components7.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"fondue-components7.js","sources":["../src/components/Dialog/Dialog.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { IconCross } from '@frontify/fondue-icons';\nimport * as RadixDialog from '@radix-ui/react-dialog';\nimport { createContext, forwardRef, useContext, type CSSProperties, type ForwardedRef, type ReactNode } from 'react';\n\nimport { addAutoFocusAttribute, addShowFocusRing } from '#/utilities/domUtilities';\n\nimport styles from './styles/dialog.module.scss';\n\nexport type DialogRootProps = {\n /**\n * Disable interaction with the rest of the page\n * @default false\n */\n modal?: boolean;\n /**\n * The controlled `open` state of the dialog\n * @default false\n */\n open?: boolean;\n /**\n * Event handler called when the `open` state changes\n */\n onOpenChange?: (open: boolean) => void;\n children?: ReactNode;\n};\n\nexport type DialogContentProps = {\n /**\n * Add rounded corners to the dialog\n * @default true\n */\n rounded?: boolean;\n /**\n * Define the padding of the dialog\n * @default \"compact\"\n */\n padding?: 'none' | 'tight' | 'compact' | 'comfortable' | 'spacious';\n /**\n * The vertical alignment of the divider\n * @default \"center\"\n */\n verticalAlign?: 'top' | 'center';\n\n /**\n * Define a maximum width for the dialog\n * @default \"800px\"\n */\n maxWidth?: string;\n /**\n * Define a minimum width for the dialog\n * @default \"400px\"\n */\n minWidth?: string;\n /**\n * Define a minimum height for the dialog\n * @default \"200px\"\n */\n minHeight?: string;\n /**\n * Show a dark underlay behind the dialog\n * @default false\n */\n showUnderlay?: boolean;\n children?: ReactNode;\n 'data-test-id'?: string;\n};\n\nexport type DialogTriggerProps = {\n /**\n * Change the default rendered element for the one passed as a child, merging their props and behavior.\n * @default true\n */\n asChild?: boolean;\n children?: ReactNode;\n 'data-test-id'?: string;\n};\n\nexport type DialogHeaderProps = {\n /**\n * Show a border at the bottom of the header\n * @default true\n */\n showBorder?: boolean;\n /**\n * Show a close button in the header\n * @default true\n */\n showCloseButton?: boolean;\n children?: ReactNode;\n 'data-test-id'?: string;\n};\n\nexport type DialogFooterProps = {\n /**\n * Show a border at the top of the footer\n * @default true\n */\n showBorder?: boolean;\n children?: ReactNode;\n 'data-test-id'?: string;\n};\n\nexport type DialogBodyProps = { children?: ReactNode; 'data-test-id'?: string };\n\nexport type DialogSideContentProps = { children?: ReactNode; 'data-test-id'?: string };\n\nexport type DialogCloseProps = { children?: ReactNode };\n\nexport type DialogAnnouncementProps = { children?: ReactNode; asChild?: boolean };\n\ntype DialogContextType = {\n isModal: boolean;\n};\n\nconst DialogContext = createContext<DialogContextType>({ isModal: false });\n\nexport const DialogRoot = ({ children, ...props }: DialogRootProps) => {\n return (\n <DialogContext.Provider value={{ isModal: props.modal ?? false }}>\n <RadixDialog.Root {...props}>{children}</RadixDialog.Root>\n </DialogContext.Provider>\n );\n};\nDialogRoot.displayName = 'Dialog.Root';\n\nexport const DialogTrigger = (\n { asChild = true, children, 'data-test-id': dataTestId = 'fondue-dialog-trigger', ...props }: DialogTriggerProps,\n ref: ForwardedRef<HTMLButtonElement>,\n) => {\n return (\n <RadixDialog.Trigger\n onMouseDown={addAutoFocusAttribute}\n data-auto-focus-visible=\"true\"\n data-auto-focus-trigger\n data-test-id={dataTestId}\n asChild={asChild}\n ref={ref}\n {...props}\n >\n {children}\n </RadixDialog.Trigger>\n );\n};\nDialogTrigger.displayName = 'Dialog.Trigger';\n\nconst DialogUnderlay = ({ children, showUnderlay }: { children: ReactNode; showUnderlay: boolean }) => {\n const { isModal } = useContext(DialogContext);\n if (isModal) {\n return (\n <RadixDialog.Overlay data-visible={showUnderlay} className={styles.underlay}>\n {children}\n </RadixDialog.Overlay>\n );\n }\n return (\n <div className={styles.underlay} data-visible={showUnderlay}>\n {children}\n </div>\n );\n};\n\nexport const DialogContent = (\n {\n maxWidth = '800px',\n minWidth = '400px',\n minHeight = '200px',\n padding = 'compact',\n verticalAlign = 'center',\n 'data-test-id': dataTestId = 'fondue-dialog-content',\n showUnderlay = false,\n children,\n rounded = true,\n ...props\n }: DialogContentProps,\n ref: ForwardedRef<HTMLDivElement>,\n) => {\n return (\n <RadixDialog.Portal>\n <DialogUnderlay showUnderlay={showUnderlay}>\n <RadixDialog.Content\n style={\n {\n '--dialog-max-width': maxWidth,\n '--dialog-min-width': minWidth,\n '--dialog-min-height': minHeight,\n } as CSSProperties\n }\n ref={ref}\n className={styles.content}\n onFocus={addShowFocusRing}\n data-dialog-rounded={rounded}\n data-dialog-spacing={padding}\n data-test-id={dataTestId}\n data-dialog-vertical-align={verticalAlign}\n {...props}\n >\n {children}\n </RadixDialog.Content>\n </DialogUnderlay>\n </RadixDialog.Portal>\n );\n};\nDialogContent.displayName = 'Dialog.Content';\n\nexport const DialogHeader = (\n {\n children,\n showBorder = true,\n showCloseButton = true,\n 'data-test-id': dataTestId = 'fondue-dialog-header',\n }: DialogHeaderProps,\n ref: ForwardedRef<HTMLDivElement>,\n) => {\n return (\n <div\n data-test-id={dataTestId}\n ref={ref}\n className={styles.header}\n data-show-border={showBorder}\n data-dialog-layout-component\n >\n <div>{children}</div>\n {showCloseButton && (\n <RadixDialog.Close role=\"button\" data-test-id={`${dataTestId}-close`} className=\"tw-cursor-pointer\">\n <IconCross size={20} />\n </RadixDialog.Close>\n )}\n </div>\n );\n};\nDialogHeader.displayName = 'Dialog.Header';\n\nexport const DialogFooter = (\n { showBorder = true, children, 'data-test-id': dataTestId = 'fondue-dialog-footer' }: DialogFooterProps,\n ref: ForwardedRef<HTMLDivElement>,\n) => {\n return (\n <div\n data-test-id={dataTestId}\n ref={ref}\n className={styles.footer}\n data-show-border={showBorder}\n data-dialog-layout-component\n >\n {children}\n </div>\n );\n};\nDialogFooter.displayName = 'Dialog.Footer';\n\nexport const DialogBody = (\n { children, 'data-test-id': dataTestId = 'fondue-dialog-body' }: DialogBodyProps,\n ref: ForwardedRef<HTMLDivElement>,\n) => {\n return (\n <div data-test-id={dataTestId} ref={ref} className={styles.body} data-dialog-layout-component>\n {children}\n </div>\n );\n};\nDialogBody.displayName = 'Dialog.Body';\n\nexport const DialogSideContent = (\n { children, 'data-test-id': dataTestId = 'fondue-dialog-side-content' }: DialogSideContentProps,\n ref: ForwardedRef<HTMLDivElement>,\n) => {\n return (\n <div data-test-id={dataTestId} ref={ref} className={styles.sideContent} data-dialog-layout-component>\n {children}\n </div>\n );\n};\nDialogSideContent.displayName = 'Dialog.SideContent';\n\nexport const DialogClose = ({ children }: DialogCloseProps) => {\n return <RadixDialog.Close asChild>{children}</RadixDialog.Close>;\n};\nDialogClose.displayName = 'Dialog.Close';\n\nexport const DialogTitle = ({ children, asChild }: DialogAnnouncementProps) => {\n return <RadixDialog.Title asChild={asChild}>{children}</RadixDialog.Title>;\n};\nDialogTitle.displayName = 'Dialog.Title';\n\nexport const DialogDescription = ({ children, asChild }: DialogAnnouncementProps) => {\n return <RadixDialog.Description asChild={asChild}>{children}</RadixDialog.Description>;\n};\nDialogDescription.displayName = 'Dialog.Description';\n\nexport const Dialog = {\n Root: DialogRoot,\n Title: DialogTitle,\n Description: DialogDescription,\n Close: DialogClose,\n Trigger: forwardRef<HTMLButtonElement, DialogTriggerProps>(DialogTrigger),\n Content: forwardRef<HTMLDivElement, DialogContentProps>(DialogContent),\n Header: forwardRef<HTMLDivElement, DialogHeaderProps>(DialogHeader),\n Footer: forwardRef<HTMLDivElement, DialogFooterProps>(DialogFooter),\n Body: forwardRef<HTMLDivElement, DialogBodyProps>(DialogBody),\n SideContent: forwardRef<HTMLDivElement, DialogSideContentProps>(DialogSideContent),\n};\n"],"names":["DialogContext","createContext","DialogRoot","children","props","RadixDialog","DialogTrigger","asChild","dataTestId","ref","jsx","addAutoFocusAttribute","DialogUnderlay","showUnderlay","isModal","useContext","styles","DialogContent","maxWidth","minWidth","minHeight","padding","verticalAlign","rounded","addShowFocusRing","DialogHeader","showBorder","showCloseButton","jsxs","IconCross","DialogFooter","DialogBody","DialogSideContent","DialogClose","DialogTitle","DialogDescription","Dialog","forwardRef"],"mappings":";;;;;;AAoHA,MAAMA,IAAgBC,EAAiC,EAAE,SAAS,IAAO,GAE5DC,IAAa,CAAC,EAAE,UAAAC,GAAU,GAAGC,0BAEjCJ,EAAc,UAAd,EAAuB,OAAO,EAAE,SAASI,EAAM,SAAS,GAAM,GAC3D,4BAACC,EAAY,MAAZ,EAAkB,GAAGD,GAAQ,UAAAD,EAAS,CAAA,GAC3C;AAGRD,EAAW,cAAc;AAElB,MAAMI,IAAgB,CACzB,EAAE,SAAAC,IAAU,IAAM,UAAAJ,GAAU,gBAAgBK,IAAa,yBAAyB,GAAGJ,EAAM,GAC3FK,MAGI,gBAAAC;AAAA,EAACL,EAAY;AAAA,EAAZ;AAAA,IACG,aAAaM;AAAA,IACb,2BAAwB;AAAA,IACxB,2BAAuB;AAAA,IACvB,gBAAcH;AAAA,IACd,SAAAD;AAAA,IACA,KAAAE;AAAA,IACC,GAAGL;AAAA,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/B,GAAU,SAAAI,QAC5B,gBAAAG,EAAAL,EAAY,OAAZ,EAAkB,SAAAE,GAAmB,UAAAJ,EAAS,CAAA;AAE1D+B,EAAY,cAAc;AAEnB,MAAMC,IAAoB,CAAC,EAAE,UAAAhC,GAAU,SAAAI,QAClC,gBAAAG,EAAAL,EAAY,aAAZ,EAAwB,SAAAE,GAAmB,UAAAJ,EAAS,CAAA;AAEhEgC,EAAkB,cAAc;AAEzB,MAAMC,IAAS;AAAA,EAClB,MAAMlC;AAAA,EACN,OAAOgC;AAAA,EACP,aAAaC;AAAA,EACb,OAAOF;AAAA,EACP,SAASI,EAAkD/B,CAAa;AAAA,EACxE,SAAS+B,EAA+CpB,CAAa;AAAA,EACrE,QAAQoB,EAA8CZ,CAAY;AAAA,EAClE,QAAQY,EAA8CP,CAAY;AAAA,EAClE,MAAMO,EAA4CN,CAAU;AAAA,EAC5D,aAAaM,EAAmDL,CAAiB;AACrF;"}
1
+ {"version":3,"file":"fondue-components7.js","sources":["../src/components/Dialog/Dialog.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { IconCross } from '@frontify/fondue-icons';\nimport * as RadixDialog from '@radix-ui/react-dialog';\nimport { createContext, forwardRef, useContext, type CSSProperties, type ForwardedRef, type ReactNode } from 'react';\n\nimport { addAutoFocusAttribute, addShowFocusRing } from '#/utilities/domUtilities';\n\nimport styles from './styles/dialog.module.scss';\n\nexport type DialogRootProps = {\n /**\n * Disable interaction with the rest of the page\n * @default false\n */\n modal?: boolean;\n /**\n * The controlled `open` state of the dialog\n * @default false\n */\n open?: boolean;\n /**\n * Event handler called when the `open` state changes\n */\n onOpenChange?: (open: boolean) => void;\n children?: ReactNode;\n};\n\nexport type DialogContentProps = {\n /**\n * Add rounded corners to the dialog\n * @default true\n */\n rounded?: boolean;\n /**\n * Define the padding of the dialog\n * @default \"compact\"\n */\n padding?: 'none' | 'tight' | 'compact' | 'comfortable' | 'spacious';\n /**\n * The vertical alignment of the divider\n * @default \"center\"\n */\n verticalAlign?: 'top' | 'center';\n\n /**\n * Define a maximum width for the dialog\n * @default \"800px\"\n */\n maxWidth?: string;\n /**\n * Define a minimum width for the dialog\n * @default \"400px\"\n */\n minWidth?: string;\n /**\n * Define a minimum height for the dialog\n * @default \"200px\"\n */\n minHeight?: string;\n /**\n * Show a dark underlay behind the dialog\n * @default false\n */\n showUnderlay?: boolean;\n children?: ReactNode;\n 'data-test-id'?: string;\n};\n\nexport type DialogTriggerProps = {\n /**\n * Change the default rendered element for the one passed as a child, merging their props and behavior.\n * @default true\n */\n asChild?: boolean;\n children?: ReactNode;\n 'data-test-id'?: string;\n};\n\nexport type DialogHeaderProps = {\n /**\n * Define the padding for the dialog header\n */\n padding?: 'none' | 'tight' | 'compact' | 'comfortable' | 'spacious';\n /**\n * Show a border at the bottom of the header\n * @default true\n */\n showBorder?: boolean;\n /**\n * Show a close button in the header\n * @default true\n */\n showCloseButton?: boolean;\n children?: ReactNode;\n 'data-test-id'?: string;\n};\n\nexport type DialogFooterProps = {\n /**\n * Define the padding for the dialog footer\n */\n padding?: 'none' | 'tight' | 'compact' | 'comfortable' | 'spacious';\n /**\n * Show a border at the top of the footer\n * @default true\n */\n showBorder?: boolean;\n children?: ReactNode;\n 'data-test-id'?: string;\n};\n\nexport type DialogBodyProps = {\n /**\n * Define the padding for the dialog body\n */\n padding?: 'none' | 'tight' | 'compact' | 'comfortable' | 'spacious';\n children?: ReactNode;\n 'data-test-id'?: string;\n};\n\nexport type DialogSideContentProps = { children?: ReactNode; 'data-test-id'?: string };\n\nexport type DialogCloseProps = { children?: ReactNode };\n\nexport type DialogAnnouncementProps = { children?: ReactNode; asChild?: boolean };\n\ntype DialogContextType = {\n isModal: boolean;\n};\n\nconst DialogContext = createContext<DialogContextType>({ isModal: false });\n\nexport const DialogRoot = ({ children, ...props }: DialogRootProps) => {\n return (\n <DialogContext.Provider value={{ isModal: props.modal ?? false }}>\n <RadixDialog.Root {...props}>{children}</RadixDialog.Root>\n </DialogContext.Provider>\n );\n};\nDialogRoot.displayName = 'Dialog.Root';\n\nexport const DialogTrigger = (\n { asChild = true, children, 'data-test-id': dataTestId = 'fondue-dialog-trigger', ...props }: DialogTriggerProps,\n ref: ForwardedRef<HTMLButtonElement>,\n) => {\n return (\n <RadixDialog.Trigger\n onMouseDown={addAutoFocusAttribute}\n data-auto-focus-visible=\"true\"\n data-auto-focus-trigger\n data-test-id={dataTestId}\n asChild={asChild}\n ref={ref}\n {...props}\n >\n {children}\n </RadixDialog.Trigger>\n );\n};\nDialogTrigger.displayName = 'Dialog.Trigger';\n\nconst DialogUnderlay = ({ children, showUnderlay }: { children: ReactNode; showUnderlay: boolean }) => {\n const { isModal } = useContext(DialogContext);\n if (isModal) {\n return (\n <RadixDialog.Overlay data-visible={showUnderlay} className={styles.underlay}>\n {children}\n </RadixDialog.Overlay>\n );\n }\n return (\n <div className={styles.underlay} data-visible={showUnderlay}>\n {children}\n </div>\n );\n};\n\nexport const DialogContent = (\n {\n maxWidth = '800px',\n minWidth = '400px',\n minHeight = '200px',\n padding = 'compact',\n verticalAlign = 'center',\n 'data-test-id': dataTestId = 'fondue-dialog-content',\n showUnderlay = false,\n rounded = true,\n children,\n ...props\n }: DialogContentProps,\n ref: ForwardedRef<HTMLDivElement>,\n) => {\n return (\n <RadixDialog.Portal>\n <DialogUnderlay showUnderlay={showUnderlay}>\n <RadixDialog.Content\n style={\n {\n '--dialog-max-width': maxWidth,\n '--dialog-min-width': minWidth,\n '--dialog-min-height': minHeight,\n } as CSSProperties\n }\n ref={ref}\n className={styles.content}\n onFocus={addShowFocusRing}\n data-dialog-padding={padding}\n data-dialog-rounded={rounded}\n data-test-id={dataTestId}\n data-dialog-vertical-align={verticalAlign}\n {...props}\n >\n {children}\n </RadixDialog.Content>\n </DialogUnderlay>\n </RadixDialog.Portal>\n );\n};\nDialogContent.displayName = 'Dialog.Content';\n\nexport const DialogHeader = (\n {\n padding,\n showBorder = true,\n showCloseButton = true,\n children,\n 'data-test-id': dataTestId = 'fondue-dialog-header',\n }: DialogHeaderProps,\n ref: ForwardedRef<HTMLDivElement>,\n) => {\n return (\n <div\n data-test-id={dataTestId}\n ref={ref}\n className={styles.header}\n data-dialog-header-padding={padding}\n data-show-border={showBorder}\n data-dialog-layout-component\n >\n <div>{children}</div>\n {showCloseButton && (\n <RadixDialog.Close role=\"button\" data-test-id={`${dataTestId}-close`} className=\"tw-cursor-pointer\">\n <IconCross size={20} />\n </RadixDialog.Close>\n )}\n </div>\n );\n};\nDialogHeader.displayName = 'Dialog.Header';\n\nexport const DialogFooter = (\n { padding, showBorder = true, children, 'data-test-id': dataTestId = 'fondue-dialog-footer' }: DialogFooterProps,\n ref: ForwardedRef<HTMLDivElement>,\n) => {\n return (\n <div\n data-test-id={dataTestId}\n ref={ref}\n className={styles.footer}\n data-dialog-footer-padding={padding}\n data-show-border={showBorder}\n data-dialog-layout-component\n >\n {children}\n </div>\n );\n};\nDialogFooter.displayName = 'Dialog.Footer';\n\nexport const DialogBody = (\n { padding, children, 'data-test-id': dataTestId = 'fondue-dialog-body' }: DialogBodyProps,\n ref: ForwardedRef<HTMLDivElement>,\n) => {\n return (\n <div\n data-test-id={dataTestId}\n ref={ref}\n className={styles.body}\n data-dialog-body-padding={padding}\n data-dialog-layout-component\n >\n {children}\n </div>\n );\n};\nDialogBody.displayName = 'Dialog.Body';\n\nexport const DialogSideContent = (\n { children, 'data-test-id': dataTestId = 'fondue-dialog-side-content' }: DialogSideContentProps,\n ref: ForwardedRef<HTMLDivElement>,\n) => {\n return (\n <div data-test-id={dataTestId} ref={ref} className={styles.sideContent} data-dialog-layout-component>\n {children}\n </div>\n );\n};\nDialogSideContent.displayName = 'Dialog.SideContent';\n\nexport const DialogClose = ({ children }: DialogCloseProps) => {\n return <RadixDialog.Close asChild>{children}</RadixDialog.Close>;\n};\nDialogClose.displayName = 'Dialog.Close';\n\nexport const DialogTitle = ({ children, asChild }: DialogAnnouncementProps) => {\n return <RadixDialog.Title asChild={asChild}>{children}</RadixDialog.Title>;\n};\nDialogTitle.displayName = 'Dialog.Title';\n\nexport const DialogDescription = ({ children, asChild }: DialogAnnouncementProps) => {\n return <RadixDialog.Description asChild={asChild}>{children}</RadixDialog.Description>;\n};\nDialogDescription.displayName = 'Dialog.Description';\n\nexport const Dialog = {\n Root: DialogRoot,\n Title: DialogTitle,\n Description: DialogDescription,\n Close: DialogClose,\n Trigger: forwardRef<HTMLButtonElement, DialogTriggerProps>(DialogTrigger),\n Content: forwardRef<HTMLDivElement, DialogContentProps>(DialogContent),\n Header: forwardRef<HTMLDivElement, DialogHeaderProps>(DialogHeader),\n Footer: forwardRef<HTMLDivElement, DialogFooterProps>(DialogFooter),\n Body: forwardRef<HTMLDivElement, DialogBodyProps>(DialogBody),\n SideContent: forwardRef<HTMLDivElement, DialogSideContentProps>(DialogSideContent),\n};\n"],"names":["DialogContext","createContext","DialogRoot","children","props","RadixDialog","DialogTrigger","asChild","dataTestId","ref","jsx","addAutoFocusAttribute","DialogUnderlay","showUnderlay","isModal","useContext","styles","DialogContent","maxWidth","minWidth","minHeight","padding","verticalAlign","rounded","addShowFocusRing","DialogHeader","showBorder","showCloseButton","jsxs","IconCross","DialogFooter","DialogBody","DialogSideContent","DialogClose","DialogTitle","DialogDescription","Dialog","forwardRef"],"mappings":";;;;;;AAmIA,MAAMA,IAAgBC,EAAiC,EAAE,SAAS,IAAO,GAE5DC,IAAa,CAAC,EAAE,UAAAC,GAAU,GAAGC,0BAEjCJ,EAAc,UAAd,EAAuB,OAAO,EAAE,SAASI,EAAM,SAAS,GAAM,GAC3D,4BAACC,EAAY,MAAZ,EAAkB,GAAGD,GAAQ,UAAAD,EAAS,CAAA,GAC3C;AAGRD,EAAW,cAAc;AAElB,MAAMI,IAAgB,CACzB,EAAE,SAAAC,IAAU,IAAM,UAAAJ,GAAU,gBAAgBK,IAAa,yBAAyB,GAAGJ,EAAM,GAC3FK,MAGI,gBAAAC;AAAA,EAACL,EAAY;AAAA,EAAZ;AA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