@frontify/fondue-components 19.0.0 → 19.2.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.
Files changed (99) hide show
  1. package/dist/fondue-components10.js +33 -27
  2. package/dist/fondue-components10.js.map +1 -1
  3. package/dist/fondue-components11.js +2 -2
  4. package/dist/fondue-components12.js +1 -1
  5. package/dist/fondue-components13.js +34 -24
  6. package/dist/fondue-components13.js.map +1 -1
  7. package/dist/fondue-components14.js +1 -1
  8. package/dist/fondue-components15.js +1 -1
  9. package/dist/fondue-components17.js +1 -1
  10. package/dist/fondue-components18.js +1 -1
  11. package/dist/fondue-components19.js +1 -1
  12. package/dist/fondue-components20.js +1 -1
  13. package/dist/fondue-components21.js +2 -2
  14. package/dist/fondue-components22.js +6 -6
  15. package/dist/fondue-components23.js +1 -1
  16. package/dist/fondue-components24.js +1 -1
  17. package/dist/fondue-components25.js +58 -58
  18. package/dist/fondue-components25.js.map +1 -1
  19. package/dist/fondue-components26.js +3 -3
  20. package/dist/fondue-components27.js +1 -1
  21. package/dist/fondue-components28.js +31 -29
  22. package/dist/fondue-components28.js.map +1 -1
  23. package/dist/fondue-components29.js +1 -1
  24. package/dist/fondue-components30.js +1 -1
  25. package/dist/fondue-components37.js +1 -1
  26. package/dist/fondue-components40.js +1 -1
  27. package/dist/fondue-components42.js +1 -1
  28. package/dist/fondue-components49.js +5 -60
  29. package/dist/fondue-components49.js.map +1 -1
  30. package/dist/fondue-components50.js +59 -17
  31. package/dist/fondue-components50.js.map +1 -1
  32. package/dist/fondue-components51.js +18 -19
  33. package/dist/fondue-components51.js.map +1 -1
  34. package/dist/fondue-components52.js +18 -4
  35. package/dist/fondue-components52.js.map +1 -1
  36. package/dist/fondue-components53.js +3 -13
  37. package/dist/fondue-components53.js.map +1 -1
  38. package/dist/fondue-components54.js +13 -3
  39. package/dist/fondue-components54.js.map +1 -1
  40. package/dist/fondue-components55.js +3 -17
  41. package/dist/fondue-components55.js.map +1 -1
  42. package/dist/fondue-components56.js +19 -35
  43. package/dist/fondue-components56.js.map +1 -1
  44. package/dist/fondue-components57.js +35 -5
  45. package/dist/fondue-components57.js.map +1 -1
  46. package/dist/fondue-components58.js +4 -12
  47. package/dist/fondue-components58.js.map +1 -1
  48. package/dist/fondue-components59.js +12 -4
  49. package/dist/fondue-components59.js.map +1 -1
  50. package/dist/fondue-components60.js +4 -24
  51. package/dist/fondue-components60.js.map +1 -1
  52. package/dist/fondue-components61.js +24 -16
  53. package/dist/fondue-components61.js.map +1 -1
  54. package/dist/fondue-components62.js +16 -146
  55. package/dist/fondue-components62.js.map +1 -1
  56. package/dist/fondue-components63.js +151 -19
  57. package/dist/fondue-components63.js.map +1 -1
  58. package/dist/fondue-components64.js +19 -77
  59. package/dist/fondue-components64.js.map +1 -1
  60. package/dist/fondue-components65.js +77 -8
  61. package/dist/fondue-components65.js.map +1 -1
  62. package/dist/fondue-components66.js +8 -35
  63. package/dist/fondue-components66.js.map +1 -1
  64. package/dist/fondue-components67.js +34 -48
  65. package/dist/fondue-components67.js.map +1 -1
  66. package/dist/fondue-components68.js +70 -10
  67. package/dist/fondue-components68.js.map +1 -1
  68. package/dist/fondue-components69.js +8 -10
  69. package/dist/fondue-components69.js.map +1 -1
  70. package/dist/fondue-components70.js +12 -12
  71. package/dist/fondue-components70.js.map +1 -1
  72. package/dist/fondue-components71.js +12 -20
  73. package/dist/fondue-components71.js.map +1 -1
  74. package/dist/fondue-components72.js +21 -15
  75. package/dist/fondue-components72.js.map +1 -1
  76. package/dist/fondue-components73.js +28 -55
  77. package/dist/fondue-components73.js.map +1 -1
  78. package/dist/fondue-components74.js +55 -14
  79. package/dist/fondue-components74.js.map +1 -1
  80. package/dist/fondue-components75.js +14 -25
  81. package/dist/fondue-components75.js.map +1 -1
  82. package/dist/fondue-components76.js +24 -13
  83. package/dist/fondue-components76.js.map +1 -1
  84. package/dist/fondue-components77.js +14 -6
  85. package/dist/fondue-components77.js.map +1 -1
  86. package/dist/fondue-components78.js +6 -6
  87. package/dist/fondue-components79.js +7 -2
  88. package/dist/fondue-components79.js.map +1 -1
  89. package/dist/fondue-components82.js +2 -17
  90. package/dist/fondue-components82.js.map +1 -1
  91. package/dist/fondue-components83.js +16 -39
  92. package/dist/fondue-components83.js.map +1 -1
  93. package/dist/fondue-components84.js +43 -0
  94. package/dist/fondue-components84.js.map +1 -0
  95. package/dist/fondue-components9.js +77 -66
  96. package/dist/fondue-components9.js.map +1 -1
  97. package/dist/index.d.ts +22 -1
  98. package/dist/style.css +1 -1
  99. package/package.json +1 -1
@@ -1,39 +1,45 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import * as n from "@radix-ui/react-separator";
3
- import { forwardRef as p } from "react";
4
- import { cn as f } from "./fondue-components36.js";
5
- import { dividerStyles as l } from "./fondue-components49.js";
6
- const c = p(
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import * as p from "@radix-ui/react-separator";
3
+ import { forwardRef as f } from "react";
4
+ import { cn as l } from "./fondue-components36.js";
5
+ import v from "./fondue-components49.js";
6
+ import { dividerStyles as c } from "./fondue-components50.js";
7
+ const h = f(
7
8
  ({
8
- "data-test-id": o = "fondue-divider",
9
- direction: t = "horizontal",
10
- className: i,
11
- variant: e,
12
- as: d = "div",
13
- ...a
14
- }, m) => {
15
- const s = d;
16
- return /* @__PURE__ */ r(
17
- n.Root,
9
+ "data-test-id": i = "fondue-divider",
10
+ direction: r = "horizontal",
11
+ className: a,
12
+ variant: o,
13
+ as: e = "div",
14
+ decorative: d,
15
+ ...m
16
+ }, s) => {
17
+ const n = e;
18
+ return /* @__PURE__ */ t(
19
+ p.Root,
18
20
  {
19
- ref: m,
20
- className: f(
21
- l({
22
- direction: t,
23
- variant: e,
24
- ...a
21
+ ref: s,
22
+ className: l(
23
+ c({
24
+ direction: r,
25
+ variant: o,
26
+ ...m
25
27
  }),
26
- i
28
+ v.root,
29
+ a
27
30
  ),
28
- "data-test-id": o,
31
+ "data-variant": o,
32
+ "data-test-id": i,
33
+ decorative: d,
34
+ "data-orientation": r,
29
35
  asChild: !0,
30
- children: /* @__PURE__ */ r(s, {})
36
+ children: /* @__PURE__ */ t(n, {})
31
37
  }
32
38
  );
33
39
  }
34
40
  );
35
- c.displayName = "Divider";
41
+ h.displayName = "Divider";
36
42
  export {
37
- c as Divider
43
+ h as Divider
38
44
  };
39
45
  //# sourceMappingURL=fondue-components10.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"fondue-components10.js","sources":["../src/components/Divider/Divider.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport * as Separator from '@radix-ui/react-separator';\nimport { forwardRef, type ForwardedRef, type ReactElement } from 'react';\n\nimport { cn } from '#/utilities/styleUtilities';\n\nimport { dividerStyles } from './styles/dividerStyles';\n\ntype DividerStyle = 'noline' | 'dashed' | 'solid';\ntype DividerPadding = 'none' | 'small' | 'medium' | 'large';\ntype DividerDirection = 'horizontal' | 'vertical';\ntype DividerColor = 'weak' | 'default' | 'strong' | 'x-strong';\n\nexport type DividerProps = {\n /**\n * The style of the divider\n * @default \"solid\"\n */\n variant?: DividerStyle;\n /**\n * The padding of the divider\n * @default \"medium\"\n */\n padding?: DividerPadding;\n /**\n * The color of the divider\n * @default \"default\"\n */\n color?: DividerColor;\n /**\n * The direction of the divider\n * @default \"horizontal\"\n */\n direction?: DividerDirection;\n /**\n * The html element to be used\n * @default \"div\"\n */\n as?: 'div' | 'li';\n 'data-test-id'?: string;\n className?: string;\n};\n\nexport const Divider = forwardRef<HTMLDivElement, DividerProps>(\n (\n {\n 'data-test-id': dataTestId = 'fondue-divider',\n direction = 'horizontal',\n className,\n variant,\n as = 'div',\n ...props\n }: DividerProps,\n ref: ForwardedRef<HTMLDivElement | null>,\n ): ReactElement => {\n const Component = as;\n\n return (\n <Separator.Root\n ref={ref}\n className={cn(\n dividerStyles({\n direction,\n variant,\n ...props,\n }),\n className,\n )}\n data-test-id={dataTestId}\n asChild\n >\n <Component />\n </Separator.Root>\n );\n },\n);\n\nDivider.displayName = 'Divider';\n"],"names":["Divider","forwardRef","dataTestId","direction","className","variant","as","props","ref","Component","jsx","Separator","cn","dividerStyles"],"mappings":";;;;;AA4CO,MAAMA,IAAUC;AAAA,EACnB,CACI;AAAA,IACI,gBAAgBC,IAAa;AAAA,IAC7B,WAAAC,IAAY;AAAA,IACZ,WAAAC;AAAA,IACA,SAAAC;AAAA,IACA,IAAAC,IAAK;AAAA,IACL,GAAGC;AAAA,KAEPC,MACe;AACf,UAAMC,IAAYH;AAGd,WAAA,gBAAAI;AAAA,MAACC,EAAU;AAAA,MAAV;AAAA,QACG,KAAAH;AAAA,QACA,WAAWI;AAAA,UACPC,EAAc;AAAA,YACV,WAAAV;AAAA,YACA,SAAAE;AAAA,YACA,GAAGE;AAAA,UAAA,CACN;AAAA,UACDH;AAAA,QACJ;AAAA,QACA,gBAAcF;AAAA,QACd,SAAO;AAAA,QAEP,4BAACO,GAAU,CAAA,CAAA;AAAA,MAAA;AAAA,IACf;AAAA,EAAA;AAGZ;AAEAT,EAAQ,cAAc;"}
1
+ {"version":3,"file":"fondue-components10.js","sources":["../src/components/Divider/Divider.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport * as Separator from '@radix-ui/react-separator';\nimport { forwardRef, type ForwardedRef, type ReactElement } from 'react';\n\nimport { cn } from '#/utilities/styleUtilities';\n\nimport borderStyles from './styles/borderStyles.module.scss';\nimport { dividerStyles } from './styles/dividerStyles';\n\ntype DividerStyle = 'noline' | 'dashed' | 'solid';\ntype DividerPadding = 'none' | 'small' | 'medium' | 'large';\ntype DividerDirection = 'horizontal' | 'vertical';\ntype DividerColor = 'weak' | 'default' | 'strong' | 'x-strong';\n\nexport type DividerProps = {\n /**\n * The style of the divider\n * @default \"solid\"\n */\n variant?: DividerStyle;\n /**\n * The padding of the divider\n * @default \"medium\"\n */\n padding?: DividerPadding;\n /**\n * The color of the divider\n * @default \"default\"\n */\n color?: DividerColor;\n /**\n * The direction of the divider\n * @default \"horizontal\"\n */\n direction?: DividerDirection;\n /**\n * The html element to be used\n * @default \"div\"\n */\n as?: 'div' | 'li';\n /**\n * When `true`, signifies that it is purely visual, carries no semantic\n * meaning, and ensures it is not present in the accessibility tree.\n * @default false\n */\n decorative?: boolean;\n 'data-test-id'?: string;\n className?: string;\n};\n\nexport const Divider = forwardRef<HTMLDivElement, DividerProps>(\n (\n {\n 'data-test-id': dataTestId = 'fondue-divider',\n direction = 'horizontal',\n className,\n variant,\n as = 'div',\n decorative,\n ...props\n }: DividerProps,\n ref: ForwardedRef<HTMLDivElement | null>,\n ): ReactElement => {\n const Component = as;\n\n return (\n <Separator.Root\n ref={ref}\n className={cn(\n dividerStyles({\n direction,\n variant,\n ...props,\n }),\n borderStyles.root,\n className,\n )}\n data-variant={variant}\n data-test-id={dataTestId}\n decorative={decorative}\n data-orientation={direction}\n asChild\n >\n <Component />\n </Separator.Root>\n );\n },\n);\n\nDivider.displayName = 'Divider';\n"],"names":["Divider","forwardRef","dataTestId","direction","className","variant","as","decorative","props","ref","Component","jsx","Separator","cn","dividerStyles","borderStyles"],"mappings":";;;;;;AAmDO,MAAMA,IAAUC;AAAA,EACnB,CACI;AAAA,IACI,gBAAgBC,IAAa;AAAA,IAC7B,WAAAC,IAAY;AAAA,IACZ,WAAAC;AAAA,IACA,SAAAC;AAAA,IACA,IAAAC,IAAK;AAAA,IACL,YAAAC;AAAA,IACA,GAAGC;AAAA,KAEPC,MACe;AACf,UAAMC,IAAYJ;AAGd,WAAA,gBAAAK;AAAA,MAACC,EAAU;AAAA,MAAV;AAAA,QACG,KAAAH;AAAA,QACA,WAAWI;AAAA,UACPC,EAAc;AAAA,YACV,WAAAX;AAAA,YACA,SAAAE;AAAA,YACA,GAAGG;AAAA,UAAA,CACN;AAAA,UACDO,EAAa;AAAA,UACbX;AAAA,QACJ;AAAA,QACA,gBAAcC;AAAA,QACd,gBAAcH;AAAA,QACd,YAAAK;AAAA,QACA,oBAAkBJ;AAAA,QAClB,SAAO;AAAA,QAEP,4BAACO,GAAU,CAAA,CAAA;AAAA,MAAA;AAAA,IACf;AAAA,EAAA;AAGZ;AAEAV,EAAQ,cAAc;"}
@@ -3,8 +3,8 @@ import { IconCaretRight as M } from "@frontify/fondue-icons";
3
3
  import * as d from "@radix-ui/react-dropdown-menu";
4
4
  import { forwardRef as i, useMemo as G, Children as A, useRef as v } from "react";
5
5
  import { useFondueTheme as D, ThemeProvider as b } from "./fondue-components29.js";
6
- import { useProcessedChildren as h } from "./fondue-components50.js";
7
- import s from "./fondue-components51.js";
6
+ import { useProcessedChildren as h } from "./fondue-components51.js";
7
+ import s from "./fondue-components52.js";
8
8
  const N = ({
9
9
  children: o,
10
10
  open: t,
@@ -1,7 +1,7 @@
1
1
  import { jsx as m } from "react/jsx-runtime";
2
2
  import { forwardRef as n } from "react";
3
3
  import { propsToCssVariables as y } from "./fondue-components34.js";
4
- import x from "./fondue-components52.js";
4
+ import x from "./fondue-components53.js";
5
5
  const u = n(
6
6
  ({
7
7
  as: a = "div",
@@ -1,21 +1,21 @@
1
1
  import { jsx as a, jsxs as u } from "react/jsx-runtime";
2
- import { IconCross as b } from "@frontify/fondue-icons";
3
- import * as i from "@radix-ui/react-popover";
4
- import { forwardRef as r } from "react";
2
+ import { IconCross as R } from "@frontify/fondue-icons";
3
+ import * as l from "@radix-ui/react-popover";
4
+ import { forwardRef as i } from "react";
5
5
  import { addAutoFocusAttribute as w, addShowFocusRing as x } from "./fondue-components47.js";
6
6
  import { useFondueTheme as A, ThemeProvider as T } from "./fondue-components29.js";
7
- import s from "./fondue-components53.js";
8
- const n = ({ children: t, ...o }) => /* @__PURE__ */ a(i.Root, { ...o, children: t });
7
+ import s from "./fondue-components54.js";
8
+ const n = ({ children: t, ...o }) => /* @__PURE__ */ a(l.Root, { ...o, children: t });
9
9
  n.displayName = "Flyout.Root";
10
- const c = ({ asChild: t = !0, children: o, "data-test-id": e = "fondue-flyout-trigger", ...d }, l) => /* @__PURE__ */ a(
11
- i.Trigger,
10
+ const c = ({ asChild: t = !0, children: o, "data-test-id": e = "fondue-flyout-trigger", ...d }, r) => /* @__PURE__ */ a(
11
+ l.Trigger,
12
12
  {
13
13
  onMouseDown: w,
14
14
  "data-auto-focus-visible": "true",
15
15
  "data-auto-focus-trigger": !0,
16
16
  "data-test-id": e,
17
17
  asChild: t,
18
- ref: l,
18
+ ref: r,
19
19
  ...d,
20
20
  children: o
21
21
  }
@@ -33,25 +33,25 @@ const I = {
33
33
  maxWidth: o = "360px",
34
34
  padding: e = "compact",
35
35
  rounded: d = "medium",
36
- width: l = "fit-content",
36
+ width: r = "fit-content",
37
37
  shadow: F = "medium",
38
38
  triggerOffset: g = "compact",
39
39
  viewportCollisionPadding: N = "compact",
40
40
  "data-test-id": h = "fondue-flyout-content",
41
41
  children: v,
42
- ...P
43
- }, C) => {
44
- const R = A();
45
- return /* @__PURE__ */ a(i.Portal, { children: /* @__PURE__ */ u(T, { theme: R, children: [
42
+ ...C
43
+ }, P) => {
44
+ const b = A();
45
+ return /* @__PURE__ */ a(l.Portal, { children: /* @__PURE__ */ u(T, { theme: b, children: [
46
46
  /* @__PURE__ */ a("div", { "data-test-id": "fondue-flyout-overlay", className: s.overlay }),
47
47
  /* @__PURE__ */ a(
48
- i.Content,
48
+ l.Content,
49
49
  {
50
50
  style: {
51
51
  "--flyout-max-width": o,
52
- "--flyout-width": l
52
+ "--flyout-width": r
53
53
  },
54
- ref: C,
54
+ ref: P,
55
55
  align: t,
56
56
  collisionPadding: O[N],
57
57
  sideOffset: I[g],
@@ -61,16 +61,26 @@ const I = {
61
61
  "data-shadow": F,
62
62
  "data-test-id": h,
63
63
  onFocus: x,
64
- ...P,
64
+ ...C,
65
65
  children: v
66
66
  }
67
67
  )
68
68
  ] }) });
69
69
  };
70
70
  m.displayName = "Flyout.Content";
71
- const y = ({ showCloseButton: t, children: o, "data-test-id": e = "fondue-flyout-header" }, d) => /* @__PURE__ */ u("div", { "data-test-id": e, ref: d, className: s.header, children: [
71
+ const y = ({ showCloseButton: t, children: o, "data-test-id": e = "fondue-flyout-header", closeProps: d }, r) => /* @__PURE__ */ u("div", { "data-test-id": e, ref: r, className: s.header, children: [
72
72
  /* @__PURE__ */ a("div", { children: o }),
73
- t && /* @__PURE__ */ a(i.Close, { role: "button", "data-test-id": `${e}-close`, className: s.close, children: /* @__PURE__ */ a(b, { size: 20 }) })
73
+ t && /* @__PURE__ */ a(
74
+ l.Close,
75
+ {
76
+ role: "button",
77
+ "data-test-id": `${e}-close`,
78
+ className: s.close,
79
+ "aria-label": "Close",
80
+ ...d,
81
+ children: /* @__PURE__ */ a(R, { size: 20 })
82
+ }
83
+ )
74
84
  ] });
75
85
  y.displayName = "Flyout.Header";
76
86
  const f = ({ children: t, "data-test-id": o = "fondue-flyout-footer" }, e) => /* @__PURE__ */ a("div", { "data-test-id": o, ref: e, className: s.footer, children: t });
@@ -89,11 +99,11 @@ const p = ({ children: t, "data-test-id": o = "fondue-flyout-body", scrollable:
89
99
  p.displayName = "Flyout.Body";
90
100
  const j = {
91
101
  Root: n,
92
- Trigger: r(c),
93
- Content: r(m),
94
- Header: r(y),
95
- Footer: r(f),
96
- Body: r(p)
102
+ Trigger: i(c),
103
+ Content: i(m),
104
+ Header: i(y),
105
+ Footer: i(f),
106
+ Body: i(p)
97
107
  };
98
108
  export {
99
109
  j as Flyout,
@@ -1 +1 @@
1
- {"version":3,"file":"fondue-components13.js","sources":["../src/components/Flyout/Flyout.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { IconCross } from '@frontify/fondue-icons';\nimport * as RadixPopover from '@radix-ui/react-popover';\nimport { forwardRef, type CSSProperties, type ForwardedRef, type ReactNode } from 'react';\n\nimport { addAutoFocusAttribute, addShowFocusRing } from '#/utilities/domUtilities';\n\nimport { ThemeProvider, useFondueTheme } from '../ThemeProvider/ThemeProvider';\n\nimport styles from './styles/flyout.module.scss';\n\nexport type FlyoutRootProps = {\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 flyout\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 const FlyoutRoot = ({ children, ...props }: FlyoutRootProps) => {\n return <RadixPopover.Root {...props}>{children}</RadixPopover.Root>;\n};\nFlyoutRoot.displayName = 'Flyout.Root';\n\nexport type FlyoutTriggerProps = {\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 const FlyoutTrigger = (\n { asChild = true, children, 'data-test-id': dataTestId = 'fondue-flyout-trigger', ...props }: FlyoutTriggerProps,\n ref: ForwardedRef<HTMLButtonElement>,\n) => {\n return (\n <RadixPopover.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 </RadixPopover.Trigger>\n );\n};\nFlyoutTrigger.displayName = 'Flyout.Trigger';\n\ntype FlyoutSpacing = 'compact' | 'comfortable' | 'spacious';\ntype FlyoutViewportCollisionPadding = 'compact' | 'spacious';\nexport type FlyoutContentProps = {\n /**\n * Add a shadow to the flyout\n * @default \"medium\"\n */\n shadow?: 'none' | 'medium' | 'large';\n /**\n * Add rounded corners to the flyout\n * @default \"medium\"\n */\n rounded?: 'none' | 'medium' | 'large';\n /**\n * Define the prefered side of the flyout. Can be overriden by viewport collisions viewport.\n * @default \"bottom\"\n */\n side?: 'top' | 'right' | 'bottom' | 'left';\n /**\n * Define the prefered alignment of the flyout. Can be overriden by viewport collisions viewport.\n * @default \"start\"\n */\n align?: 'start' | 'center' | 'end';\n /**\n * Define the padding of the flyout\n * @default \"compact\"\n */\n padding?: 'none' | 'tight' | 'compact' | 'comfortable' | 'spacious';\n /**\n * Define the fixed width of the flyout\n * @default \"fit-content\"\n */\n width?: string;\n /**\n * Defines the spacing between the dropdown and its trigger.\n * @default 'compact'\n */\n triggerOffset?: FlyoutSpacing;\n /**\n * Define the maximum width of the flyout\n * @default \"360px\"\n */\n maxWidth?: string;\n /**\n * Define the minimum distance between the flyout and the viewport edge\n * @default 'compact'\n */\n viewportCollisionPadding?: FlyoutViewportCollisionPadding;\n children?: ReactNode;\n 'data-test-id'?: string;\n};\n\nconst SPACING_MAP: Record<FlyoutSpacing, number> = {\n compact: 8,\n comfortable: 12,\n spacious: 16,\n};\n\nconst VIEWPORT_COLLISION_PADDING_MAP: Record<FlyoutViewportCollisionPadding, number> = {\n compact: 8,\n spacious: 24,\n};\n\nexport const FlyoutContent = (\n {\n align = 'start',\n maxWidth = '360px',\n padding = 'compact',\n rounded = 'medium',\n width = 'fit-content',\n shadow = 'medium',\n triggerOffset = 'compact',\n viewportCollisionPadding = 'compact',\n 'data-test-id': dataTestId = 'fondue-flyout-content',\n children,\n ...props\n }: FlyoutContentProps,\n ref: ForwardedRef<HTMLDivElement>,\n) => {\n const theme = useFondueTheme();\n return (\n <RadixPopover.Portal>\n <ThemeProvider theme={theme}>\n <div data-test-id=\"fondue-flyout-overlay\" className={styles.overlay} />\n <RadixPopover.Content\n style={\n {\n '--flyout-max-width': maxWidth,\n '--flyout-width': width,\n } as CSSProperties\n }\n ref={ref}\n align={align}\n collisionPadding={VIEWPORT_COLLISION_PADDING_MAP[viewportCollisionPadding]}\n sideOffset={SPACING_MAP[triggerOffset]}\n className={styles.root}\n data-flyout-spacing={padding}\n data-rounded={rounded}\n data-shadow={shadow}\n data-test-id={dataTestId}\n onFocus={addShowFocusRing}\n {...props}\n >\n {children}\n </RadixPopover.Content>\n </ThemeProvider>\n </RadixPopover.Portal>\n );\n};\nFlyoutContent.displayName = 'Flyout.Content';\n\nexport type FlyoutHeaderProps = {\n /**\n * Show a close button in the header\n * @default false\n */\n showCloseButton?: boolean;\n children?: ReactNode;\n 'data-test-id'?: string;\n};\n\nexport const FlyoutHeader = (\n { showCloseButton, children, 'data-test-id': dataTestId = 'fondue-flyout-header' }: FlyoutHeaderProps,\n ref: ForwardedRef<HTMLDivElement>,\n) => {\n return (\n <div data-test-id={dataTestId} ref={ref} className={styles.header}>\n <div>{children}</div>\n {showCloseButton && (\n <RadixPopover.Close role=\"button\" data-test-id={`${dataTestId}-close`} className={styles.close}>\n <IconCross size={20} />\n </RadixPopover.Close>\n )}\n </div>\n );\n};\nFlyoutHeader.displayName = 'Flyout.Header';\n\nexport type FlyoutFooterProps = { children?: ReactNode; 'data-test-id'?: string };\n\nexport const FlyoutFooter = (\n { children, 'data-test-id': dataTestId = 'fondue-flyout-footer' }: FlyoutFooterProps,\n ref: ForwardedRef<HTMLDivElement>,\n) => {\n return (\n <div data-test-id={dataTestId} ref={ref} className={styles.footer}>\n {children}\n </div>\n );\n};\nFlyoutFooter.displayName = 'Flyout.Footer';\n\nexport type FlyoutBodyProps = {\n children?: ReactNode;\n 'data-test-id'?: string;\n /**\n * Allow the body to scroll if the max height of the flyout is reached\n * @default false\n */\n scrollable?: boolean;\n};\n\nexport const FlyoutBody = (\n { children, 'data-test-id': dataTestId = 'fondue-flyout-body', scrollable = false }: FlyoutBodyProps,\n ref: ForwardedRef<HTMLDivElement>,\n) => {\n return (\n <div\n data-test-id={dataTestId}\n ref={ref}\n data-flyout-spacing=\"compact\"\n data-scrollable={scrollable}\n className={styles.body}\n >\n {children}\n </div>\n );\n};\nFlyoutBody.displayName = 'Flyout.Body';\n\nexport const Flyout = {\n Root: FlyoutRoot,\n Trigger: forwardRef<HTMLButtonElement, FlyoutTriggerProps>(FlyoutTrigger),\n Content: forwardRef<HTMLDivElement, FlyoutContentProps>(FlyoutContent),\n Header: forwardRef<HTMLDivElement, FlyoutHeaderProps>(FlyoutHeader),\n Footer: forwardRef<HTMLDivElement, FlyoutFooterProps>(FlyoutFooter),\n Body: forwardRef<HTMLDivElement, FlyoutBodyProps>(FlyoutBody),\n};\n"],"names":["FlyoutRoot","children","props","RadixPopover","FlyoutTrigger","asChild","dataTestId","ref","jsx","addAutoFocusAttribute","SPACING_MAP","VIEWPORT_COLLISION_PADDING_MAP","FlyoutContent","align","maxWidth","padding","rounded","width","shadow","triggerOffset","viewportCollisionPadding","theme","useFondueTheme","jsxs","ThemeProvider","styles","addShowFocusRing","FlyoutHeader","showCloseButton","IconCross","FlyoutFooter","FlyoutBody","scrollable","Flyout","forwardRef"],"mappings":";;;;;;;AA8BO,MAAMA,IAAa,CAAC,EAAE,UAAAC,GAAU,GAAGC,0BAC9BC,EAAa,MAAb,EAAmB,GAAGD,GAAQ,UAAAD,GAAS;AAEnDD,EAAW,cAAc;AAYlB,MAAMI,IAAgB,CACzB,EAAE,SAAAC,IAAU,IAAM,UAAAJ,GAAU,gBAAgBK,IAAa,yBAAyB,GAAGJ,EAAM,GAC3FK,MAGI,gBAAAC;AAAA,EAACL,EAAa;AAAA,EAAb;AAAA,IACG,aAAaM;AAAA,IACb,2BAAwB;AAAA,IACxB,2BAAuB;AAAA,IACvB,gBAAcH;AAAA,IACd,SAAAD;AAAA,IACA,KAAAE;AAAA,IACC,GAAGL;AAAA,IAEH,UAAAD;AAAA,EAAA;AACL;AAGRG,EAAc,cAAc;AAsD5B,MAAMM,IAA6C;AAAA,EAC/C,SAAS;AAAA,EACT,aAAa;AAAA,EACb,UAAU;AACd,GAEMC,IAAiF;AAAA,EACnF,SAAS;AAAA,EACT,UAAU;AACd,GAEaC,IAAgB,CACzB;AAAA,EACI,OAAAC,IAAQ;AAAA,EACR,UAAAC,IAAW;AAAA,EACX,SAAAC,IAAU;AAAA,EACV,SAAAC,IAAU;AAAA,EACV,OAAAC,IAAQ;AAAA,EACR,QAAAC,IAAS;AAAA,EACT,eAAAC,IAAgB;AAAA,EAChB,0BAAAC,IAA2B;AAAA,EAC3B,gBAAgBd,IAAa;AAAA,EAC7B,UAAAL;AAAA,EACA,GAAGC;AACP,GACAK,MACC;AACD,QAAMc,IAAQC,EAAe;AAC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A9B,GAAU,gBAAgBK,IAAa,sBAAsB,YAAA0B,IAAa,GAAM,GAClFzB,MAGI,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACG,gBAAcF;AAAA,IACd,KAAAC;AAAA,IACA,uBAAoB;AAAA,IACpB,mBAAiByB;AAAA,IACjB,WAAWP,EAAO;AAAA,IAEjB,UAAAxB;AAAA,EAAA;AACL;AAGR8B,EAAW,cAAc;AAElB,MAAME,IAAS;AAAA,EAClB,MAAMjC;AAAA,EACN,SAASkC,EAAkD9B,CAAa;AAAA,EACxE,SAAS8B,EAA+CtB,CAAa;AAAA,EACrE,QAAQsB,EAA8CP,CAAY;AAAA,EAClE,QAAQO,EAA8CJ,CAAY;AAAA,EAClE,MAAMI,EAA4CH,CAAU;AAChE;"}
1
+ {"version":3,"file":"fondue-components13.js","sources":["../src/components/Flyout/Flyout.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { IconCross } from '@frontify/fondue-icons';\nimport * as RadixPopover from '@radix-ui/react-popover';\nimport { forwardRef, type CSSProperties, type ForwardedRef, type ReactNode } from 'react';\n\nimport { type CommonAriaProps } from '#/helpers/aria';\nimport { addAutoFocusAttribute, addShowFocusRing } from '#/utilities/domUtilities';\n\nimport { ThemeProvider, useFondueTheme } from '../ThemeProvider/ThemeProvider';\n\nimport styles from './styles/flyout.module.scss';\n\nexport type FlyoutRootProps = {\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 flyout\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 const FlyoutRoot = ({ children, ...props }: FlyoutRootProps) => {\n return <RadixPopover.Root {...props}>{children}</RadixPopover.Root>;\n};\nFlyoutRoot.displayName = 'Flyout.Root';\n\nexport type FlyoutTriggerProps = {\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 const FlyoutTrigger = (\n { asChild = true, children, 'data-test-id': dataTestId = 'fondue-flyout-trigger', ...props }: FlyoutTriggerProps,\n ref: ForwardedRef<HTMLButtonElement>,\n) => {\n return (\n <RadixPopover.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 </RadixPopover.Trigger>\n );\n};\nFlyoutTrigger.displayName = 'Flyout.Trigger';\n\ntype FlyoutSpacing = 'compact' | 'comfortable' | 'spacious';\ntype FlyoutViewportCollisionPadding = 'compact' | 'spacious';\nexport type FlyoutContentProps = {\n /**\n * Add a shadow to the flyout\n * @default \"medium\"\n */\n shadow?: 'none' | 'medium' | 'large';\n /**\n * Add rounded corners to the flyout\n * @default \"medium\"\n */\n rounded?: 'none' | 'medium' | 'large';\n /**\n * Define the prefered side of the flyout. Can be overriden by viewport collisions viewport.\n * @default \"bottom\"\n */\n side?: 'top' | 'right' | 'bottom' | 'left';\n /**\n * Define the prefered alignment of the flyout. Can be overriden by viewport collisions viewport.\n * @default \"start\"\n */\n align?: 'start' | 'center' | 'end';\n /**\n * Define the padding of the flyout\n * @default \"compact\"\n */\n padding?: 'none' | 'tight' | 'compact' | 'comfortable' | 'spacious';\n /**\n * Define the fixed width of the flyout\n * @default \"fit-content\"\n */\n width?: string;\n /**\n * Defines the spacing between the dropdown and its trigger.\n * @default 'compact'\n */\n triggerOffset?: FlyoutSpacing;\n /**\n * Define the maximum width of the flyout\n * @default \"360px\"\n */\n maxWidth?: string;\n /**\n * Define the minimum distance between the flyout and the viewport edge\n * @default 'compact'\n */\n viewportCollisionPadding?: FlyoutViewportCollisionPadding;\n children?: ReactNode;\n 'data-test-id'?: string;\n};\n\nconst SPACING_MAP: Record<FlyoutSpacing, number> = {\n compact: 8,\n comfortable: 12,\n spacious: 16,\n};\n\nconst VIEWPORT_COLLISION_PADDING_MAP: Record<FlyoutViewportCollisionPadding, number> = {\n compact: 8,\n spacious: 24,\n};\n\nexport const FlyoutContent = (\n {\n align = 'start',\n maxWidth = '360px',\n padding = 'compact',\n rounded = 'medium',\n width = 'fit-content',\n shadow = 'medium',\n triggerOffset = 'compact',\n viewportCollisionPadding = 'compact',\n 'data-test-id': dataTestId = 'fondue-flyout-content',\n children,\n ...props\n }: FlyoutContentProps,\n ref: ForwardedRef<HTMLDivElement>,\n) => {\n const theme = useFondueTheme();\n return (\n <RadixPopover.Portal>\n <ThemeProvider theme={theme}>\n <div data-test-id=\"fondue-flyout-overlay\" className={styles.overlay} />\n <RadixPopover.Content\n style={\n {\n '--flyout-max-width': maxWidth,\n '--flyout-width': width,\n } as CSSProperties\n }\n ref={ref}\n align={align}\n collisionPadding={VIEWPORT_COLLISION_PADDING_MAP[viewportCollisionPadding]}\n sideOffset={SPACING_MAP[triggerOffset]}\n className={styles.root}\n data-flyout-spacing={padding}\n data-rounded={rounded}\n data-shadow={shadow}\n data-test-id={dataTestId}\n onFocus={addShowFocusRing}\n {...props}\n >\n {children}\n </RadixPopover.Content>\n </ThemeProvider>\n </RadixPopover.Portal>\n );\n};\nFlyoutContent.displayName = 'Flyout.Content';\n\nexport type FlyoutHeaderProps = {\n /**\n * Show a close button in the header\n * @default false\n */\n showCloseButton?: boolean;\n children?: ReactNode;\n 'data-test-id'?: string;\n closeProps?: CommonAriaProps;\n};\n\nexport const FlyoutHeader = (\n { showCloseButton, children, 'data-test-id': dataTestId = 'fondue-flyout-header', closeProps }: FlyoutHeaderProps,\n ref: ForwardedRef<HTMLDivElement>,\n) => {\n return (\n <div data-test-id={dataTestId} ref={ref} className={styles.header}>\n <div>{children}</div>\n {showCloseButton && (\n <RadixPopover.Close\n role=\"button\"\n data-test-id={`${dataTestId}-close`}\n className={styles.close}\n aria-label=\"Close\"\n {...closeProps}\n >\n <IconCross size={20} />\n </RadixPopover.Close>\n )}\n </div>\n );\n};\nFlyoutHeader.displayName = 'Flyout.Header';\n\nexport type FlyoutFooterProps = { children?: ReactNode; 'data-test-id'?: string };\n\nexport const FlyoutFooter = (\n { children, 'data-test-id': dataTestId = 'fondue-flyout-footer' }: FlyoutFooterProps,\n ref: ForwardedRef<HTMLDivElement>,\n) => {\n return (\n <div data-test-id={dataTestId} ref={ref} className={styles.footer}>\n {children}\n </div>\n );\n};\nFlyoutFooter.displayName = 'Flyout.Footer';\n\nexport type FlyoutBodyProps = {\n children?: ReactNode;\n 'data-test-id'?: string;\n /**\n * Allow the body to scroll if the max height of the flyout is reached\n * @default false\n */\n scrollable?: boolean;\n};\n\nexport const FlyoutBody = (\n { children, 'data-test-id': dataTestId = 'fondue-flyout-body', scrollable = false }: FlyoutBodyProps,\n ref: ForwardedRef<HTMLDivElement>,\n) => {\n return (\n <div\n data-test-id={dataTestId}\n ref={ref}\n data-flyout-spacing=\"compact\"\n data-scrollable={scrollable}\n className={styles.body}\n >\n {children}\n </div>\n );\n};\nFlyoutBody.displayName = 'Flyout.Body';\n\nexport const Flyout = {\n Root: FlyoutRoot,\n Trigger: forwardRef<HTMLButtonElement, FlyoutTriggerProps>(FlyoutTrigger),\n Content: forwardRef<HTMLDivElement, FlyoutContentProps>(FlyoutContent),\n Header: forwardRef<HTMLDivElement, FlyoutHeaderProps>(FlyoutHeader),\n Footer: forwardRef<HTMLDivElement, FlyoutFooterProps>(FlyoutFooter),\n Body: forwardRef<HTMLDivElement, FlyoutBodyProps>(FlyoutBody),\n};\n"],"names":["FlyoutRoot","children","props","RadixPopover","FlyoutTrigger","asChild","dataTestId","ref","jsx","addAutoFocusAttribute","SPACING_MAP","VIEWPORT_COLLISION_PADDING_MAP","FlyoutContent","align","maxWidth","padding","rounded","width","shadow","triggerOffset","viewportCollisionPadding","theme","useFondueTheme","jsxs","ThemeProvider","styles","addShowFocusRing","FlyoutHeader","showCloseButton","closeProps","IconCross","FlyoutFooter","FlyoutBody","scrollable","Flyout","forwardRef"],"mappings":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AA,IACpB,mBAAiB0B;AAAA,IACjB,WAAWR,EAAO;AAAA,IAEjB,UAAAxB;AAAA,EAAA;AACL;AAGR+B,EAAW,cAAc;AAElB,MAAME,IAAS;AAAA,EAClB,MAAMlC;AAAA,EACN,SAASmC,EAAkD/B,CAAa;AAAA,EACxE,SAAS+B,EAA+CvB,CAAa;AAAA,EACrE,QAAQuB,EAA8CR,CAAY;AAAA,EAClE,QAAQQ,EAA8CJ,CAAY;AAAA,EAClE,MAAMI,EAA4CH,CAAU;AAChE;"}
@@ -1,7 +1,7 @@
1
1
  import { jsx as f } from "react/jsx-runtime";
2
2
  import { forwardRef as y } from "react";
3
3
  import { propsToCssVariables as n } from "./fondue-components34.js";
4
- import u from "./fondue-components54.js";
4
+ import u from "./fondue-components55.js";
5
5
  const c = y(
6
6
  ({
7
7
  as: a = "div",
@@ -1,7 +1,7 @@
1
1
  import { jsx as y } from "react/jsx-runtime";
2
2
  import { forwardRef as g } from "react";
3
3
  import { cn as x } from "./fondue-components36.js";
4
- import a from "./fondue-components55.js";
4
+ import a from "./fondue-components56.js";
5
5
  const $ = g(
6
6
  ({
7
7
  as: e = "span",
@@ -1,7 +1,7 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
2
  import * as t from "@radix-ui/react-progress";
3
3
  import { forwardRef as m } from "react";
4
- import { loadingBarContainerStyles as g, loadingBarStyles as f } from "./fondue-components56.js";
4
+ import { loadingBarContainerStyles as g, loadingBarStyles as f } from "./fondue-components57.js";
5
5
  const p = m(
6
6
  ({
7
7
  value: a,
@@ -1,6 +1,6 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
2
  import { forwardRef as i } from "react";
3
- import d from "./fondue-components57.js";
3
+ import d from "./fondue-components58.js";
4
4
  const s = i(
5
5
  ({
6
6
  variant: t = "progress",
@@ -1,7 +1,7 @@
1
1
  import { jsxs as b, jsx as l } from "react/jsx-runtime";
2
2
  import * as a from "@radix-ui/react-scroll-area";
3
3
  import { forwardRef as h } from "react";
4
- import o from "./fondue-components58.js";
4
+ import o from "./fondue-components59.js";
5
5
  const p = ({
6
6
  type: t = "hover",
7
7
  maxHeight: e = "100%",
@@ -1,7 +1,7 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
2
  import { forwardRef as m } from "react";
3
3
  import { propsToCssVariables as c } from "./fondue-components34.js";
4
- import f from "./fondue-components59.js";
4
+ import f from "./fondue-components60.js";
5
5
  const y = m(
6
6
  ({
7
7
  "data-test-id": a = "fondue-section",
@@ -1,8 +1,8 @@
1
1
  import { jsxs as l, jsx as t } from "react/jsx-runtime";
2
2
  import * as n from "@radix-ui/react-toggle-group";
3
3
  import { forwardRef as i } from "react";
4
- import { useControllableState as N } from "./fondue-components60.js";
5
- import e from "./fondue-components61.js";
4
+ import { useControllableState as N } from "./fondue-components61.js";
5
+ import e from "./fondue-components62.js";
6
6
  const d = ({
7
7
  children: a,
8
8
  value: o,
@@ -4,12 +4,12 @@ import * as g from "@radix-ui/react-popover";
4
4
  import { Slot as q } from "@radix-ui/react-slot";
5
5
  import { useSelect as J } from "downshift";
6
6
  import { forwardRef as K, useRef as L, useState as Q } from "react";
7
- import { ForwardedRefCombobox as U } from "./fondue-components62.js";
8
- import { ForwardedRefSelectItem as W, ForwardedRefSelectItemGroup as X } from "./fondue-components63.js";
9
- import { SelectMenu as Y } from "./fondue-components64.js";
10
- import { ForwardedRefSelectSlot as Z } from "./fondue-components65.js";
11
- import o from "./fondue-components66.js";
12
- import { useSelectData as _ } from "./fondue-components67.js";
7
+ import { ForwardedRefCombobox as U } from "./fondue-components63.js";
8
+ import { ForwardedRefSelectItem as W, ForwardedRefSelectItemGroup as X } from "./fondue-components64.js";
9
+ import { SelectMenu as Y } from "./fondue-components65.js";
10
+ import { ForwardedRefSelectSlot as Z } from "./fondue-components66.js";
11
+ import o from "./fondue-components67.js";
12
+ import { useSelectData as _ } from "./fondue-components68.js";
13
13
  const S = ({
14
14
  children: h,
15
15
  onSelect: s,
@@ -1,7 +1,7 @@
1
1
  import { jsxs as f, jsx as s } from "react/jsx-runtime";
2
2
  import * as e from "@radix-ui/react-slider";
3
3
  import { forwardRef as h, useRef as R } from "react";
4
- import r from "./fondue-components68.js";
4
+ import r from "./fondue-components69.js";
5
5
  const g = ({
6
6
  value: a,
7
7
  defaultValue: n = [0],
@@ -2,7 +2,7 @@ import { jsx as e } from "react/jsx-runtime";
2
2
  import * as o from "@radix-ui/react-switch";
3
3
  import { forwardRef as l } from "react";
4
4
  import { cn as f } from "./fondue-components36.js";
5
- import t from "./fondue-components69.js";
5
+ import t from "./fondue-components70.js";
6
6
  const n = ({
7
7
  value: a,
8
8
  defaultValue: i,
@@ -1,155 +1,155 @@
1
1
  import { jsx as t, jsxs as p } from "react/jsx-runtime";
2
- import { IconArrowUp as A, IconArrowDown as K, IconArrowBidirectional as h } from "@frontify/fondue-icons";
3
- import { forwardRef as b, useRef as w, useMemo as j } from "react";
2
+ import { IconArrowUp as A, IconArrowDown as K, IconArrowBidirectional as E } from "@frontify/fondue-icons";
3
+ import { forwardRef as b, useRef as w, useMemo as h } from "react";
4
4
  import { useSyncRefs as g } from "./fondue-components46.js";
5
- import { useTextTruncation as N } from "./fondue-components70.js";
6
- import { Box as L } from "./fondue-components5.js";
7
- import { LoadingCircle as S } from "./fondue-components18.js";
8
- import i from "./fondue-components71.js";
9
- import { handleKeyDown as $ } from "./fondue-components72.js";
5
+ import { useTextTruncation as N } from "./fondue-components71.js";
6
+ import { Box as j } from "./fondue-components5.js";
7
+ import { LoadingCircle as L } from "./fondue-components18.js";
8
+ import o from "./fondue-components72.js";
9
+ import { handleKeyDown as S, isEventFromInteractiveElement as $ } from "./fondue-components73.js";
10
10
  const R = b(
11
- ({ layout: a = "auto", fontSize: e = "medium", sticky: d, children: r, ...o }, l) => /* @__PURE__ */ t("div", { onKeyDown: $, role: "grid", tabIndex: -1, children: /* @__PURE__ */ t(
11
+ ({ layout: a = "auto", fontSize: e = "medium", sticky: d, children: s, ...n }, l) => /* @__PURE__ */ t("div", { onKeyDown: S, role: "grid", tabIndex: -1, children: /* @__PURE__ */ t(
12
12
  "table",
13
13
  {
14
14
  ref: l,
15
- className: i.table,
15
+ className: o.table,
16
16
  "data-layout": a,
17
17
  "data-font-size": e,
18
18
  "data-sticky": d,
19
- ...o,
20
- children: r
19
+ ...n,
20
+ children: s
21
21
  }
22
22
  ) })
23
23
  );
24
24
  R.displayName = "Table.Root";
25
- const C = b(({ children: a }, e) => /* @__PURE__ */ t("caption", { ref: e, className: i.caption, children: a }));
26
- C.displayName = "Table.Caption";
27
- const x = b(
28
- ({ children: a, "aria-label": e, "aria-busy": d }, r) => /* @__PURE__ */ t("thead", { ref: r, className: i.header, "aria-label": e, "aria-busy": d, children: a })
25
+ const v = b(({ children: a }, e) => /* @__PURE__ */ t("caption", { ref: e, className: o.caption, children: a }));
26
+ v.displayName = "Table.Caption";
27
+ const C = b(
28
+ ({ children: a, "aria-label": e, "aria-busy": d }, s) => /* @__PURE__ */ t("thead", { ref: s, className: o.header, "aria-label": e, "aria-busy": d, children: a })
29
29
  );
30
- x.displayName = "Table.Header";
31
- const v = b(
30
+ C.displayName = "Table.Header";
31
+ const x = b(
32
32
  ({
33
33
  noShrink: a = !1,
34
34
  truncate: e = !1,
35
35
  align: d = "left",
36
- scope: r = "col",
37
- sortTranslations: o,
36
+ scope: s = "col",
37
+ sortTranslations: n,
38
38
  sortDirection: l,
39
39
  colSpan: c,
40
40
  width: m,
41
41
  state: f = "idle",
42
42
  loadingStateAriaLabel: u,
43
- onSortChange: s,
44
- children: n
43
+ onSortChange: i,
44
+ children: r
45
45
  }, k) => {
46
46
  const y = w(null);
47
47
  g(y, k), N(y);
48
- const z = j(() => typeof n == "string" ? l === "ascending" ? (o == null ? void 0 : o.sortDescending) ?? `Sort by ${n} descending` : (o == null ? void 0 : o.sortAscending) ?? `Sort by ${n} ascending` : l === "ascending" ? "Sort descending" : "Sort ascending", [n, l, o]), B = () => {
49
- if (!s)
48
+ const z = h(() => typeof r == "string" ? l === "ascending" ? (n == null ? void 0 : n.sortDescending) ?? `Sort by ${r} descending` : (n == null ? void 0 : n.sortAscending) ?? `Sort by ${r} ascending` : l === "ascending" ? "Sort descending" : "Sort ascending", [r, l, n]), B = () => {
49
+ if (!i)
50
50
  return;
51
- s(l === void 0 || l === "descending" ? "ascending" : "descending");
51
+ i(l === void 0 || l === "descending" ? "ascending" : "descending");
52
52
  };
53
53
  return /* @__PURE__ */ t(
54
54
  "th",
55
55
  {
56
56
  ref: y,
57
57
  style: { width: m },
58
- className: i.headerCell,
59
- scope: r,
58
+ className: o.headerCell,
59
+ scope: s,
60
60
  colSpan: c,
61
61
  "data-align": d,
62
62
  "data-truncate": e,
63
63
  "data-no-shrink": a,
64
- "data-sortable": !!s,
65
- "aria-sort": s ? l || "none" : void 0,
66
- children: f === "loading" ? /* @__PURE__ */ p("div", { className: i.cellContent, "aria-live": "polite", "aria-label": u, children: [
67
- typeof n == "string" && e ? /* @__PURE__ */ t("span", { className: i.buttonText, children: n }) : n,
68
- /* @__PURE__ */ t(S, { "data-test-id": "fondue-loading-circle", size: "xx-small" })
69
- ] }) : s ? /* @__PURE__ */ p(
64
+ "data-sortable": !!i,
65
+ "aria-sort": i ? l || "none" : void 0,
66
+ children: f === "loading" ? /* @__PURE__ */ p("div", { className: o.cellContent, "aria-live": "polite", "aria-label": u, children: [
67
+ typeof r == "string" && e ? /* @__PURE__ */ t("span", { className: o.buttonText, children: r }) : r,
68
+ /* @__PURE__ */ t(L, { "data-test-id": "fondue-loading-circle", size: "xx-small" })
69
+ ] }) : i ? /* @__PURE__ */ p(
70
70
  "button",
71
71
  {
72
- className: i.cellContent,
72
+ className: o.cellContent,
73
73
  "aria-label": z,
74
74
  "data-active": !!l,
75
75
  onClick: B,
76
76
  children: [
77
- typeof n == "string" && e ? /* @__PURE__ */ t("span", { className: i.buttonText, children: n }) : n,
78
- /* @__PURE__ */ t(L, { width: 3, children: l === "ascending" ? /* @__PURE__ */ t(A, { size: "12" }) : l === "descending" ? /* @__PURE__ */ t(K, { size: "12" }) : /* @__PURE__ */ t(h, { className: i.sortIndicator, size: "12" }) })
77
+ typeof r == "string" && e ? /* @__PURE__ */ t("span", { className: o.buttonText, children: r }) : r,
78
+ /* @__PURE__ */ t(j, { width: 3, children: l === "ascending" ? /* @__PURE__ */ t(A, { size: "12" }) : l === "descending" ? /* @__PURE__ */ t(K, { size: "12" }) : /* @__PURE__ */ t(E, { className: o.sortIndicator, size: "12" }) })
79
79
  ]
80
80
  }
81
- ) : n
81
+ ) : r
82
82
  }
83
83
  );
84
84
  }
85
85
  );
86
- v.displayName = "Table.HeaderCell";
86
+ x.displayName = "Table.HeaderCell";
87
87
  const T = b(
88
- ({ children: a, "aria-busy": e }, d) => /* @__PURE__ */ t("tbody", { ref: d, className: i.body, "aria-busy": e, children: a })
88
+ ({ children: a, "aria-busy": e }, d) => /* @__PURE__ */ t("tbody", { ref: d, className: o.body, "aria-busy": e, children: a })
89
89
  );
90
90
  T.displayName = "Table.Body";
91
91
  const I = b(
92
- ({ disabled: a = !1, selected: e = !1, onClick: d, children: r, "aria-label": o, "data-test-id": l }, c) => {
93
- const m = d !== void 0 && !a, f = () => {
94
- a || d && d(e);
95
- }, u = (s) => {
96
- m && (s.key === "Enter" || s.key === " ") && (s.preventDefault(), f());
92
+ ({ disabled: a = !1, selected: e = !1, onClick: d, children: s, "aria-label": n, "data-test-id": l }, c) => {
93
+ const m = d !== void 0 && !a, f = (i) => {
94
+ a || d && !$(i) && d(e);
95
+ }, u = (i) => {
96
+ m && (i.key === "Enter" || i.key === " ") && (i.preventDefault(), f());
97
97
  };
98
98
  return /* @__PURE__ */ t(
99
99
  "tr",
100
100
  {
101
101
  ref: c,
102
- className: i.row,
102
+ className: o.row,
103
103
  tabIndex: 0,
104
104
  role: m ? "button" : "row",
105
105
  "data-disabled": a,
106
106
  "data-interactive": m,
107
107
  "data-selected": e,
108
108
  "aria-disabled": a,
109
- "aria-label": o,
109
+ "aria-label": n,
110
110
  "aria-selected": e,
111
111
  onClick: m ? f : void 0,
112
112
  onKeyDown: m ? u : void 0,
113
113
  "data-test-id": l,
114
- children: r
114
+ children: s
115
115
  }
116
116
  );
117
117
  }
118
118
  );
119
119
  I.displayName = "Table.Row";
120
120
  const H = b(
121
- ({ colSpan: a, truncate: e, align: d = "left", children: r, "aria-label": o }, l) => {
121
+ ({ colSpan: a, truncate: e, align: d = "left", children: s, "aria-label": n }, l) => {
122
122
  const c = w(null);
123
123
  return g(c, l), N(c), /* @__PURE__ */ t(
124
124
  "td",
125
125
  {
126
126
  ref: c,
127
- className: i.rowCell,
127
+ className: o.rowCell,
128
128
  colSpan: a,
129
129
  "data-align": d,
130
130
  "data-truncate": e,
131
- "aria-label": o,
132
- children: r
131
+ "aria-label": n,
132
+ children: s
133
133
  }
134
134
  );
135
135
  }
136
136
  );
137
137
  H.displayName = "Table.RowCell";
138
- const Q = {
138
+ const V = {
139
139
  Root: R,
140
- Caption: C,
141
- Header: x,
142
- HeaderCell: v,
140
+ Caption: v,
141
+ Header: C,
142
+ HeaderCell: x,
143
143
  Body: T,
144
144
  Row: I,
145
145
  RowCell: H
146
146
  };
147
147
  export {
148
- Q as Table,
148
+ V as Table,
149
149
  T as TableBody,
150
- C as TableCaption,
151
- x as TableHeader,
152
- v as TableHeaderCell,
150
+ v as TableCaption,
151
+ C as TableHeader,
152
+ x as TableHeaderCell,
153
153
  R as TableRoot,
154
154
  I as TableRow,
155
155
  H as TableRowCell