@frontify/fondue-components 7.0.0 → 7.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/fondue-components10.js +31 -27
- package/dist/fondue-components10.js.map +1 -1
- package/dist/fondue-components11.js +75 -72
- package/dist/fondue-components11.js.map +1 -1
- package/dist/fondue-components12.js +29 -26
- package/dist/fondue-components12.js.map +1 -1
- package/dist/fondue-components14.js +1 -1
- package/dist/fondue-components15.js +1 -1
- package/dist/fondue-components16.js +32 -29
- package/dist/fondue-components16.js.map +1 -1
- package/dist/fondue-components17.js +2 -2
- package/dist/fondue-components18.js +6 -6
- package/dist/fondue-components19.js +1 -1
- package/dist/fondue-components20.js +1 -1
- package/dist/fondue-components21.js +4 -4
- package/dist/fondue-components22.js +3 -3
- package/dist/fondue-components23.js +1 -1
- package/dist/fondue-components24.js +1 -1
- package/dist/fondue-components28.js +1 -1
- package/dist/fondue-components3.js +28 -25
- package/dist/fondue-components3.js.map +1 -1
- package/dist/fondue-components31.js +1 -1
- package/dist/fondue-components33.js +1 -1
- package/dist/fondue-components41.js +18 -19
- package/dist/fondue-components41.js.map +1 -1
- package/dist/fondue-components42.js +16 -4
- package/dist/fondue-components42.js.map +1 -1
- package/dist/fondue-components43.js +3 -11
- package/dist/fondue-components43.js.map +1 -1
- package/dist/fondue-components44.js +13 -3
- package/dist/fondue-components44.js.map +1 -1
- package/dist/fondue-components45.js +5 -35
- package/dist/fondue-components45.js.map +1 -1
- package/dist/fondue-components46.js +35 -13
- package/dist/fondue-components46.js.map +1 -1
- package/dist/fondue-components47.js +12 -4
- package/dist/fondue-components47.js.map +1 -1
- package/dist/fondue-components48.js +4 -24
- package/dist/fondue-components48.js.map +1 -1
- package/dist/fondue-components49.js +24 -16
- package/dist/fondue-components49.js.map +1 -1
- package/dist/fondue-components50.js +16 -139
- package/dist/fondue-components50.js.map +1 -1
- package/dist/fondue-components51.js +140 -16
- package/dist/fondue-components51.js.map +1 -1
- package/dist/fondue-components52.js +16 -72
- package/dist/fondue-components52.js.map +1 -1
- package/dist/fondue-components53.js +72 -8
- package/dist/fondue-components53.js.map +1 -1
- package/dist/fondue-components54.js +8 -33
- package/dist/fondue-components54.js.map +1 -1
- package/dist/fondue-components55.js +32 -48
- package/dist/fondue-components55.js.map +1 -1
- package/dist/fondue-components56.js +48 -10
- package/dist/fondue-components56.js.map +1 -1
- package/dist/fondue-components57.js +8 -10
- package/dist/fondue-components57.js.map +1 -1
- package/dist/fondue-components58.js +12 -7
- package/dist/fondue-components58.js.map +1 -1
- package/dist/fondue-components59.js +7 -12
- package/dist/fondue-components59.js.map +1 -1
- package/dist/fondue-components60.js +12 -18
- package/dist/fondue-components60.js.map +1 -1
- package/dist/fondue-components61.js +19 -15
- package/dist/fondue-components61.js.map +1 -1
- package/dist/fondue-components62.js +14 -52
- package/dist/fondue-components62.js.map +1 -1
- package/dist/fondue-components63.js +52 -14
- package/dist/fondue-components63.js.map +1 -1
- package/dist/fondue-components64.js +12 -15
- package/dist/fondue-components64.js.map +1 -1
- package/dist/fondue-components65.js +17 -6
- package/dist/fondue-components65.js.map +1 -1
- package/dist/fondue-components66.js +7 -2
- package/dist/fondue-components66.js.map +1 -1
- package/dist/fondue-components67.js +2 -15
- package/dist/fondue-components67.js.map +1 -1
- package/dist/fondue-components68.js +1 -1
- package/dist/fondue-components69.js +18 -0
- package/dist/fondue-components69.js.map +1 -0
- package/dist/fondue-components8.js +28 -28
- package/dist/fondue-components8.js.map +1 -1
- package/dist/fondue-components9.js +102 -92
- package/dist/fondue-components9.js.map +1 -1
- package/dist/index.d.ts +116 -132
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,36 +1,40 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as n } from "react";
|
|
2
3
|
import { propsToCssVariables as y } from "./fondue-components25.js";
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"aria-hidden": s,
|
|
11
|
-
"aria-describedby": t,
|
|
12
|
-
"aria-labelledby": l,
|
|
13
|
-
"aria-expanded": o,
|
|
14
|
-
"aria-haspopup": p,
|
|
15
|
-
...b
|
|
16
|
-
}) => /* @__PURE__ */ n(
|
|
17
|
-
a,
|
|
18
|
-
{
|
|
19
|
-
className: m.root,
|
|
20
|
-
"data-test-id": e,
|
|
21
|
-
style: y(b, { justify: "justify-content" }),
|
|
22
|
-
role: r,
|
|
4
|
+
import x from "./fondue-components43.js";
|
|
5
|
+
const u = n(
|
|
6
|
+
({
|
|
7
|
+
as: a = "div",
|
|
8
|
+
"data-test-id": e = "fondue-flex",
|
|
9
|
+
children: r,
|
|
10
|
+
role: i,
|
|
23
11
|
"aria-label": d,
|
|
24
12
|
"aria-hidden": s,
|
|
25
13
|
"aria-describedby": t,
|
|
26
|
-
"aria-labelledby":
|
|
27
|
-
"aria-expanded":
|
|
14
|
+
"aria-labelledby": o,
|
|
15
|
+
"aria-expanded": l,
|
|
28
16
|
"aria-haspopup": p,
|
|
29
|
-
|
|
30
|
-
}
|
|
17
|
+
...b
|
|
18
|
+
}, f) => /* @__PURE__ */ m(
|
|
19
|
+
a,
|
|
20
|
+
{
|
|
21
|
+
className: x.root,
|
|
22
|
+
"data-test-id": e,
|
|
23
|
+
style: y(b, { justify: "justify-content" }),
|
|
24
|
+
role: i,
|
|
25
|
+
"aria-label": d,
|
|
26
|
+
"aria-hidden": s,
|
|
27
|
+
"aria-describedby": t,
|
|
28
|
+
"aria-labelledby": o,
|
|
29
|
+
"aria-expanded": l,
|
|
30
|
+
"aria-haspopup": p,
|
|
31
|
+
ref: f,
|
|
32
|
+
children: r
|
|
33
|
+
}
|
|
34
|
+
)
|
|
31
35
|
);
|
|
32
|
-
|
|
36
|
+
u.displayName = "Flex";
|
|
33
37
|
export {
|
|
34
|
-
|
|
38
|
+
u as Flex
|
|
35
39
|
};
|
|
36
40
|
//# sourceMappingURL=fondue-components10.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components10.js","sources":["../src/components/Flex/Flex.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { type ReactNode } from 'react';\n\nimport { type CommonAriaProps } from '#/helpers/aria';\nimport { type Responsive, type SizeValue, type LayoutComponentProps } from '#/helpers/layout';\nimport { propsToCssVariables } from '#/helpers/propsToCssVariables';\n\nimport styles from './styles/flex.module.scss';\n\nexport type FlexProps = LayoutComponentProps & {\n /**\n * The element to render the Flex component as.\n * @default 'div'\n */\n as?: 'div' | 'span';\n /**\n * The display property.\n * @default 'flex'\n */\n display?: Responsive<'none' | 'flex' | 'inline-flex'>;\n /**\n * The direction of the children.\n * @default 'row'\n */\n direction?: Responsive<'row' | 'row-reverse' | 'column' | 'column-reverse'>;\n /**\n * The alignment of the children.\n */\n align?: Responsive<'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline'>;\n /**\n * The justification of the children.\n */\n justify?: Responsive<'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly'>;\n /**\n * The wrap property.\n */\n wrap?: Responsive<'nowrap' | 'wrap' | 'wrap-reverse'>;\n /**\n * The gap between the children.\n */\n gap?: Responsive<SizeValue>;\n /**\n * The horizontal gap between the children.\n */\n gapX?: Responsive<SizeValue>;\n /**\n * The vertical gap between the children.\n */\n gapY?: Responsive<SizeValue>;\n\n children?: ReactNode;\n 'data-test-id'?: string;\n} & CommonAriaProps;\n\nexport const Flex = ({\n
|
|
1
|
+
{"version":3,"file":"fondue-components10.js","sources":["../src/components/Flex/Flex.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { type ForwardedRef, forwardRef, type ReactNode } from 'react';\n\nimport { type CommonAriaProps } from '#/helpers/aria';\nimport { type Responsive, type SizeValue, type LayoutComponentProps } from '#/helpers/layout';\nimport { propsToCssVariables } from '#/helpers/propsToCssVariables';\n\nimport styles from './styles/flex.module.scss';\n\nexport type FlexProps = LayoutComponentProps & {\n /**\n * The element to render the Flex component as.\n * @default 'div'\n */\n as?: 'div' | 'span';\n /**\n * The display property.\n * @default 'flex'\n */\n display?: Responsive<'none' | 'flex' | 'inline-flex'>;\n /**\n * The direction of the children.\n * @default 'row'\n */\n direction?: Responsive<'row' | 'row-reverse' | 'column' | 'column-reverse'>;\n /**\n * The alignment of the children.\n */\n align?: Responsive<'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline'>;\n /**\n * The justification of the children.\n */\n justify?: Responsive<'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly'>;\n /**\n * The wrap property.\n */\n wrap?: Responsive<'nowrap' | 'wrap' | 'wrap-reverse'>;\n /**\n * The gap between the children.\n */\n gap?: Responsive<SizeValue>;\n /**\n * The horizontal gap between the children.\n */\n gapX?: Responsive<SizeValue>;\n /**\n * The vertical gap between the children.\n */\n gapY?: Responsive<SizeValue>;\n\n children?: ReactNode;\n 'data-test-id'?: string;\n} & CommonAriaProps;\n\nexport const Flex = forwardRef<HTMLDivElement, FlexProps>(\n (\n {\n as: Component = 'div',\n 'data-test-id': dataTestId = 'fondue-flex',\n children,\n role,\n 'aria-label': ariaLabel,\n 'aria-hidden': ariaHidden,\n 'aria-describedby': ariaDescribedBy,\n 'aria-labelledby': ariaLabelledBy,\n 'aria-expanded': ariaExpanded,\n 'aria-haspopup': ariaHasPopup,\n ...props\n }: FlexProps,\n forwardedRef: ForwardedRef<HTMLDivElement>,\n ) => {\n return (\n <Component\n className={styles.root}\n data-test-id={dataTestId}\n style={propsToCssVariables(props, { justify: 'justify-content' })}\n role={role}\n aria-label={ariaLabel}\n aria-hidden={ariaHidden}\n aria-describedby={ariaDescribedBy}\n aria-labelledby={ariaLabelledBy}\n aria-expanded={ariaExpanded}\n aria-haspopup={ariaHasPopup}\n ref={forwardedRef}\n >\n {children}\n </Component>\n );\n },\n);\nFlex.displayName = 'Flex';\n"],"names":["Flex","forwardRef","Component","dataTestId","children","role","ariaLabel","ariaHidden","ariaDescribedBy","ariaLabelledBy","ariaExpanded","ariaHasPopup","props","forwardedRef","jsx","styles","propsToCssVariables"],"mappings":";;;;AAuDO,MAAMA,IAAOC;AAAA,EAChB,CACI;AAAA,IACI,IAAIC,IAAY;AAAA,IAChB,gBAAgBC,IAAa;AAAA,IAC7B,UAAAC;AAAA,IACA,MAAAC;AAAA,IACA,cAAcC;AAAA,IACd,eAAeC;AAAA,IACf,oBAAoBC;AAAA,IACpB,mBAAmBC;AAAA,IACnB,iBAAiBC;AAAA,IACjB,iBAAiBC;AAAA,IACjB,GAAGC;AAAA,KAEPC,MAGI,gBAAAC;AAAA,IAACZ;AAAA,IAAA;AAAA,MACG,WAAWa,EAAO;AAAA,MAClB,gBAAcZ;AAAA,MACd,OAAOa,EAAoBJ,GAAO,EAAE,SAAS,mBAAmB;AAAA,MAChE,MAAAP;AAAA,MACA,cAAYC;AAAA,MACZ,eAAaC;AAAA,MACb,oBAAkBC;AAAA,MAClB,mBAAiBC;AAAA,MACjB,iBAAeC;AAAA,MACf,iBAAeC;AAAA,MACf,KAAKE;AAAA,MAEJ,UAAAT;AAAA,IAAA;AAAA,EACL;AAGZ;AACAJ,EAAK,cAAc;"}
|
|
@@ -1,91 +1,94 @@
|
|
|
1
|
-
import { jsx as a, jsxs as
|
|
2
|
-
import { IconCross as
|
|
3
|
-
import * as
|
|
4
|
-
import { forwardRef as
|
|
5
|
-
import { usePreventDropdownOverflow as
|
|
6
|
-
import { addAutoFocusAttribute as
|
|
7
|
-
import
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
const
|
|
11
|
-
|
|
1
|
+
import { jsx as a, jsxs as y, Fragment as C } 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, useRef as A } from "react";
|
|
5
|
+
import { usePreventDropdownOverflow as H } from "./fondue-components40.js";
|
|
6
|
+
import { addAutoFocusAttribute as P, syncRefs as c, addShowFocusRing as B } from "./fondue-components37.js";
|
|
7
|
+
import d from "./fondue-components44.js";
|
|
8
|
+
const f = ({ children: t, ...o }) => /* @__PURE__ */ a(i.Root, { ...o, children: t });
|
|
9
|
+
f.displayName = "Flyout.Root";
|
|
10
|
+
const m = ({ asChild: t = !0, children: o, "data-test-id": e = "fondue-flyout-trigger", ...s }, l) => /* @__PURE__ */ a(
|
|
11
|
+
i.Trigger,
|
|
12
12
|
{
|
|
13
|
-
onMouseDown:
|
|
13
|
+
onMouseDown: P,
|
|
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:
|
|
19
|
-
...
|
|
18
|
+
ref: l,
|
|
19
|
+
...s,
|
|
20
20
|
children: o
|
|
21
21
|
}
|
|
22
22
|
);
|
|
23
|
-
|
|
24
|
-
const
|
|
23
|
+
m.displayName = "Flyout.Trigger";
|
|
24
|
+
const p = ({
|
|
25
25
|
align: t = "start",
|
|
26
26
|
maxWidth: o = "360px",
|
|
27
27
|
padding: e = "compact",
|
|
28
|
-
rounded:
|
|
29
|
-
width:
|
|
30
|
-
shadow:
|
|
31
|
-
"data-test-id":
|
|
28
|
+
rounded: s = "medium",
|
|
29
|
+
width: l = "fit-content",
|
|
30
|
+
shadow: h = "medium",
|
|
31
|
+
"data-test-id": v = "fondue-flyout-content",
|
|
32
32
|
children: R,
|
|
33
|
-
...
|
|
34
|
-
},
|
|
35
|
-
const
|
|
36
|
-
return /* @__PURE__ */ a(
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
33
|
+
...w
|
|
34
|
+
}, n) => {
|
|
35
|
+
const u = A(null), { setMaxHeight: x } = H(u);
|
|
36
|
+
return /* @__PURE__ */ a(i.Portal, { children: /* @__PURE__ */ y(C, { children: [
|
|
37
|
+
/* @__PURE__ */ a("div", { className: d.overlay }),
|
|
38
|
+
/* @__PURE__ */ a(
|
|
39
|
+
i.Content,
|
|
40
|
+
{
|
|
41
|
+
style: {
|
|
42
|
+
"--flyout-max-width": o,
|
|
43
|
+
"--flyout-width": l
|
|
44
|
+
},
|
|
45
|
+
ref: u,
|
|
46
|
+
align: t,
|
|
47
|
+
collisionPadding: 8,
|
|
48
|
+
sideOffset: 8,
|
|
49
|
+
onOpenAutoFocus: () => {
|
|
50
|
+
x(), c(u, n);
|
|
51
|
+
},
|
|
52
|
+
onCloseAutoFocus: () => {
|
|
53
|
+
c(u, n);
|
|
54
|
+
},
|
|
55
|
+
className: d.root,
|
|
56
|
+
"data-flyout-spacing": e,
|
|
57
|
+
"data-rounded": s,
|
|
58
|
+
"data-shadow": h,
|
|
59
|
+
"data-test-id": v,
|
|
60
|
+
onFocus: B,
|
|
61
|
+
...w,
|
|
62
|
+
children: R
|
|
63
|
+
}
|
|
64
|
+
)
|
|
65
|
+
] }) });
|
|
63
66
|
};
|
|
64
|
-
|
|
65
|
-
const
|
|
67
|
+
p.displayName = "Flyout.Content";
|
|
68
|
+
const F = ({ showCloseButton: t, children: o, "data-test-id": e = "fondue-flyout-header" }, s) => /* @__PURE__ */ y("div", { "data-test-id": e, ref: s, className: d.header, children: [
|
|
66
69
|
/* @__PURE__ */ a("div", { children: o }),
|
|
67
|
-
t && /* @__PURE__ */ a(
|
|
70
|
+
t && /* @__PURE__ */ a(i.Close, { role: "button", "data-test-id": `${e}-close`, className: d.close, children: /* @__PURE__ */ a(b, { size: 20 }) })
|
|
68
71
|
] });
|
|
69
|
-
|
|
70
|
-
const
|
|
71
|
-
|
|
72
|
-
const
|
|
73
|
-
|
|
74
|
-
const
|
|
75
|
-
Root:
|
|
76
|
-
Trigger:
|
|
77
|
-
Content:
|
|
78
|
-
Header:
|
|
79
|
-
Footer:
|
|
80
|
-
Body:
|
|
72
|
+
F.displayName = "Flyout.Header";
|
|
73
|
+
const g = ({ children: t, "data-test-id": o = "fondue-flyout-footer" }, e) => /* @__PURE__ */ a("div", { "data-test-id": o, ref: e, className: d.footer, children: t });
|
|
74
|
+
g.displayName = "Flyout.Footer";
|
|
75
|
+
const N = ({ children: t, "data-test-id": o = "fondue-flyout-body" }, e) => /* @__PURE__ */ a("div", { "data-test-id": o, ref: e, "data-flyout-spacing": "compact", className: d.body, children: t });
|
|
76
|
+
N.displayName = "Flyout.Body";
|
|
77
|
+
const S = {
|
|
78
|
+
Root: f,
|
|
79
|
+
Trigger: r(m),
|
|
80
|
+
Content: r(p),
|
|
81
|
+
Header: r(F),
|
|
82
|
+
Footer: r(g),
|
|
83
|
+
Body: r(N)
|
|
81
84
|
};
|
|
82
85
|
export {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
86
|
+
S as Flyout,
|
|
87
|
+
N as FlyoutBody,
|
|
88
|
+
p as FlyoutContent,
|
|
89
|
+
g as FlyoutFooter,
|
|
90
|
+
F as FlyoutHeader,
|
|
91
|
+
f as FlyoutRoot,
|
|
92
|
+
m as FlyoutTrigger
|
|
90
93
|
};
|
|
91
94
|
//# sourceMappingURL=fondue-components11.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components11.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, useRef, type CSSProperties, type ForwardedRef, type ReactNode } from 'react';\n\nimport { usePreventDropdownOverflow } from '#/hooks/usePreventDropdownOverflow';\nimport { addAutoFocusAttribute, addShowFocusRing, syncRefs } from '#/utilities/domUtilities';\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\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 * Define the maximum width of the flyout\n * @default \"360px\"\n */\n maxWidth?: string;\n children?: ReactNode;\n 'data-test-id'?: string;\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 'data-test-id': dataTestId = 'fondue-flyout-content',\n children,\n ...props\n }: FlyoutContentProps,\n ref: ForwardedRef<HTMLDivElement>,\n) => {\n const localRef = useRef(null);\n\n const { setMaxHeight } = usePreventDropdownOverflow(localRef);\n\n return (\n <RadixPopover.Portal>\n <RadixPopover.Content\n
|
|
1
|
+
{"version":3,"file":"fondue-components11.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, useRef, type CSSProperties, type ForwardedRef, type ReactNode } from 'react';\n\nimport { usePreventDropdownOverflow } from '#/hooks/usePreventDropdownOverflow';\nimport { addAutoFocusAttribute, addShowFocusRing, syncRefs } from '#/utilities/domUtilities';\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\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 * Define the maximum width of the flyout\n * @default \"360px\"\n */\n maxWidth?: string;\n children?: ReactNode;\n 'data-test-id'?: string;\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 'data-test-id': dataTestId = 'fondue-flyout-content',\n children,\n ...props\n }: FlyoutContentProps,\n ref: ForwardedRef<HTMLDivElement>,\n) => {\n const localRef = useRef<HTMLDivElement>(null);\n\n const { setMaxHeight } = usePreventDropdownOverflow(localRef);\n\n return (\n <RadixPopover.Portal>\n <>\n <div className={styles.overlay} />\n <RadixPopover.Content\n style={\n {\n '--flyout-max-width': maxWidth,\n '--flyout-width': width,\n } as CSSProperties\n }\n ref={localRef}\n align={align}\n collisionPadding={8}\n sideOffset={8}\n onOpenAutoFocus={() => {\n setMaxHeight();\n syncRefs(localRef, ref);\n }}\n onCloseAutoFocus={() => {\n syncRefs(localRef, ref);\n }}\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 </>\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 = { children?: ReactNode; 'data-test-id'?: string };\n\nexport const FlyoutBody = (\n { children, 'data-test-id': dataTestId = 'fondue-flyout-body' }: FlyoutBodyProps,\n ref: ForwardedRef<HTMLDivElement>,\n) => {\n return (\n <div data-test-id={dataTestId} ref={ref} data-flyout-spacing=\"compact\" className={styles.body}>\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","FlyoutContent","align","maxWidth","padding","rounded","width","shadow","localRef","useRef","setMaxHeight","usePreventDropdownOverflow","jsxs","Fragment","styles","syncRefs","addShowFocusRing","FlyoutHeader","showCloseButton","IconCross","FlyoutFooter","FlyoutBody","Flyout","forwardRef"],"mappings":"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"}
|
|
@@ -1,36 +1,39 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as f } from "react";
|
|
2
3
|
import { propsToCssVariables as y } from "./fondue-components25.js";
|
|
3
|
-
import n from "./fondue-
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"aria-label": d,
|
|
10
|
-
"aria-hidden": s,
|
|
11
|
-
"aria-describedby": t,
|
|
12
|
-
"aria-labelledby": l,
|
|
13
|
-
"aria-expanded": o,
|
|
14
|
-
"aria-haspopup": p,
|
|
15
|
-
...b
|
|
16
|
-
}) => /* @__PURE__ */ m(
|
|
17
|
-
a,
|
|
18
|
-
{
|
|
19
|
-
className: n.root,
|
|
20
|
-
"data-test-id": i,
|
|
21
|
-
style: y(b, { justify: "justify-items" }),
|
|
4
|
+
import n from "./fondue-components45.js";
|
|
5
|
+
const u = f(
|
|
6
|
+
({
|
|
7
|
+
as: a = "div",
|
|
8
|
+
"data-test-id": r = "fondue-grid",
|
|
9
|
+
children: i,
|
|
22
10
|
role: e,
|
|
23
11
|
"aria-label": d,
|
|
24
12
|
"aria-hidden": s,
|
|
25
13
|
"aria-describedby": t,
|
|
26
|
-
"aria-labelledby":
|
|
27
|
-
"aria-expanded":
|
|
28
|
-
"aria-haspopup":
|
|
29
|
-
|
|
30
|
-
}
|
|
14
|
+
"aria-labelledby": o,
|
|
15
|
+
"aria-expanded": p,
|
|
16
|
+
"aria-haspopup": l,
|
|
17
|
+
...b
|
|
18
|
+
}) => /* @__PURE__ */ m(
|
|
19
|
+
a,
|
|
20
|
+
{
|
|
21
|
+
className: n.root,
|
|
22
|
+
"data-test-id": r,
|
|
23
|
+
style: y(b, { justify: "justify-items" }),
|
|
24
|
+
role: e,
|
|
25
|
+
"aria-label": d,
|
|
26
|
+
"aria-hidden": s,
|
|
27
|
+
"aria-describedby": t,
|
|
28
|
+
"aria-labelledby": o,
|
|
29
|
+
"aria-expanded": p,
|
|
30
|
+
"aria-haspopup": l,
|
|
31
|
+
children: i
|
|
32
|
+
}
|
|
33
|
+
)
|
|
31
34
|
);
|
|
32
|
-
|
|
35
|
+
u.displayName = "Grid";
|
|
33
36
|
export {
|
|
34
|
-
|
|
37
|
+
u as Grid
|
|
35
38
|
};
|
|
36
39
|
//# sourceMappingURL=fondue-components12.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components12.js","sources":["../src/components/Grid/Grid.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { type ReactNode } from 'react';\n\nimport { type CommonAriaProps } from '#/helpers/aria';\nimport { type Responsive, type SizeValue, type LayoutComponentProps } from '#/helpers/layout';\nimport { propsToCssVariables } from '#/helpers/propsToCssVariables';\n\nimport styles from './styles/grid.module.scss';\n\nexport type GridProps = LayoutComponentProps & {\n /**\n * The element to render the Grid component as.\n * @default 'div'\n */\n as?: 'div' | 'span';\n\n /**\n * The display property.\n * @default 'grid'\n */\n display?: 'none' | 'grid' | 'inline-grid';\n /**\n * The columns property.\n */\n columns?: Responsive<string | number>;\n /**\n * The rows property.\n */\n rows?: Responsive<string | number>;\n /**\n * The flow property.\n */\n flow?: Responsive<'row' | 'column' | 'dense' | 'row-dense' | 'column-dense'>;\n /**\n * The alignment of the children.\n */\n align?: Responsive<'start' | 'center' | 'end' | 'baseline' | 'stretch'>;\n /**\n * The justification of the children.\n */\n justify?: Responsive<'start' | 'center' | 'end' | 'between'>;\n /**\n * The gap between the children.\n */\n gap?: Responsive<SizeValue>;\n /**\n * The horizontal gap between the children.\n */\n gapX?: Responsive<SizeValue>;\n /**\n * The vertical gap between the children.\n */\n gapY?: Responsive<SizeValue>;\n\n children?: ReactNode;\n 'data-test-id'?: string;\n} & CommonAriaProps;\n\nexport const Grid = ({\n
|
|
1
|
+
{"version":3,"file":"fondue-components12.js","sources":["../src/components/Grid/Grid.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { forwardRef, type ReactNode } from 'react';\n\nimport { type CommonAriaProps } from '#/helpers/aria';\nimport { type Responsive, type SizeValue, type LayoutComponentProps } from '#/helpers/layout';\nimport { propsToCssVariables } from '#/helpers/propsToCssVariables';\n\nimport styles from './styles/grid.module.scss';\n\nexport type GridProps = LayoutComponentProps & {\n /**\n * The element to render the Grid component as.\n * @default 'div'\n */\n as?: 'div' | 'span';\n\n /**\n * The display property.\n * @default 'grid'\n */\n display?: 'none' | 'grid' | 'inline-grid';\n /**\n * The columns property.\n */\n columns?: Responsive<string | number>;\n /**\n * The rows property.\n */\n rows?: Responsive<string | number>;\n /**\n * The flow property.\n */\n flow?: Responsive<'row' | 'column' | 'dense' | 'row-dense' | 'column-dense'>;\n /**\n * The alignment of the children.\n */\n align?: Responsive<'start' | 'center' | 'end' | 'baseline' | 'stretch'>;\n /**\n * The justification of the children.\n */\n justify?: Responsive<'start' | 'center' | 'end' | 'between'>;\n /**\n * The gap between the children.\n */\n gap?: Responsive<SizeValue>;\n /**\n * The horizontal gap between the children.\n */\n gapX?: Responsive<SizeValue>;\n /**\n * The vertical gap between the children.\n */\n gapY?: Responsive<SizeValue>;\n\n children?: ReactNode;\n 'data-test-id'?: string;\n} & CommonAriaProps;\n\nexport const Grid = forwardRef<HTMLDivElement, GridProps>(\n ({\n as: Component = 'div',\n 'data-test-id': dataTestId = 'fondue-grid',\n children,\n role,\n 'aria-label': ariaLabel,\n 'aria-hidden': ariaHidden,\n 'aria-describedby': ariaDescribedBy,\n 'aria-labelledby': ariaLabelledBy,\n 'aria-expanded': ariaExpanded,\n 'aria-haspopup': ariaHasPopup,\n ...props\n }: GridProps) => {\n return (\n <Component\n className={styles.root}\n data-test-id={dataTestId}\n style={propsToCssVariables(props, { justify: 'justify-items' })}\n role={role}\n aria-label={ariaLabel}\n aria-hidden={ariaHidden}\n aria-describedby={ariaDescribedBy}\n aria-labelledby={ariaLabelledBy}\n aria-expanded={ariaExpanded}\n aria-haspopup={ariaHasPopup}\n >\n {children}\n </Component>\n );\n },\n);\nGrid.displayName = 'Grid';\n"],"names":["Grid","forwardRef","Component","dataTestId","children","role","ariaLabel","ariaHidden","ariaDescribedBy","ariaLabelledBy","ariaExpanded","ariaHasPopup","props","jsx","styles","propsToCssVariables"],"mappings":";;;;AA2DO,MAAMA,IAAOC;AAAA,EAChB,CAAC;AAAA,IACG,IAAIC,IAAY;AAAA,IAChB,gBAAgBC,IAAa;AAAA,IAC7B,UAAAC;AAAA,IACA,MAAAC;AAAA,IACA,cAAcC;AAAA,IACd,eAAeC;AAAA,IACf,oBAAoBC;AAAA,IACpB,mBAAmBC;AAAA,IACnB,iBAAiBC;AAAA,IACjB,iBAAiBC;AAAA,IACjB,GAAGC;AAAA,EAAA,MAGC,gBAAAC;AAAA,IAACX;AAAA,IAAA;AAAA,MACG,WAAWY,EAAO;AAAA,MAClB,gBAAcX;AAAA,MACd,OAAOY,EAAoBH,GAAO,EAAE,SAAS,iBAAiB;AAAA,MAC9D,MAAAP;AAAA,MACA,cAAYC;AAAA,MACZ,eAAaC;AAAA,MACb,oBAAkBC;AAAA,MAClB,mBAAiBC;AAAA,MACjB,iBAAeC;AAAA,MACf,iBAAeC;AAAA,MAEd,UAAAP;AAAA,IAAA;AAAA,EACL;AAGZ;AACAJ,EAAK,cAAc;"}
|
|
@@ -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-
|
|
4
|
+
import { loadingBarContainerStyles as g, loadingBarStyles as f } from "./fondue-components46.js";
|
|
5
5
|
const p = m(
|
|
6
6
|
({
|
|
7
7
|
value: a,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as n, jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import * as o from "@radix-ui/react-scroll-area";
|
|
3
3
|
import { forwardRef as b } from "react";
|
|
4
|
-
import a from "./fondue-
|
|
4
|
+
import a from "./fondue-components47.js";
|
|
5
5
|
const h = ({
|
|
6
6
|
type: t,
|
|
7
7
|
maxHeight: e = "100%",
|
|
@@ -1,35 +1,38 @@
|
|
|
1
1
|
import { jsx as b } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
...p
|
|
15
|
-
}) => /* @__PURE__ */ b(
|
|
16
|
-
"section",
|
|
17
|
-
{
|
|
18
|
-
className: c.root,
|
|
19
|
-
"data-test-id": a,
|
|
20
|
-
style: n(p),
|
|
21
|
-
role: i,
|
|
22
|
-
"aria-label": r,
|
|
23
|
-
"aria-hidden": d,
|
|
24
|
-
"aria-describedby": s,
|
|
25
|
-
"aria-labelledby": o,
|
|
2
|
+
import { forwardRef as n } from "react";
|
|
3
|
+
import { propsToCssVariables as m } from "./fondue-components25.js";
|
|
4
|
+
import c from "./fondue-components48.js";
|
|
5
|
+
const f = n(
|
|
6
|
+
({
|
|
7
|
+
"data-test-id": a = "fondue-section",
|
|
8
|
+
children: e,
|
|
9
|
+
role: r,
|
|
10
|
+
"aria-label": i,
|
|
11
|
+
"aria-hidden": o,
|
|
12
|
+
"aria-describedby": d,
|
|
13
|
+
"aria-labelledby": s,
|
|
26
14
|
"aria-expanded": t,
|
|
27
|
-
"aria-haspopup":
|
|
28
|
-
|
|
29
|
-
}
|
|
15
|
+
"aria-haspopup": p,
|
|
16
|
+
...l
|
|
17
|
+
}) => /* @__PURE__ */ b(
|
|
18
|
+
"section",
|
|
19
|
+
{
|
|
20
|
+
className: c.root,
|
|
21
|
+
"data-test-id": a,
|
|
22
|
+
style: m(l),
|
|
23
|
+
role: r,
|
|
24
|
+
"aria-label": i,
|
|
25
|
+
"aria-hidden": o,
|
|
26
|
+
"aria-describedby": d,
|
|
27
|
+
"aria-labelledby": s,
|
|
28
|
+
"aria-expanded": t,
|
|
29
|
+
"aria-haspopup": p,
|
|
30
|
+
children: e
|
|
31
|
+
}
|
|
32
|
+
)
|
|
30
33
|
);
|
|
31
|
-
|
|
34
|
+
f.displayName = "Section";
|
|
32
35
|
export {
|
|
33
|
-
|
|
36
|
+
f as Section
|
|
34
37
|
};
|
|
35
38
|
//# sourceMappingURL=fondue-components16.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components16.js","sources":["../src/components/Section/Section.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { type ReactNode } from 'react';\n\nimport { type CommonAriaProps } from '#/helpers/aria';\nimport { type Responsive, type LayoutComponentProps } from '#/helpers/layout';\nimport { propsToCssVariables } from '#/helpers/propsToCssVariables';\n\nimport styles from './styles/section.module.scss';\n\nexport type SectionProps = LayoutComponentProps & {\n /**\n * The display property.\n * @default 'block'\n */\n display?: Responsive<'none' | 'block' | 'inline-block' | 'inline'>;\n\n children?: ReactNode;\n 'data-test-id'?: string;\n} & CommonAriaProps;\n\nexport const Section = ({\n
|
|
1
|
+
{"version":3,"file":"fondue-components16.js","sources":["../src/components/Section/Section.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { forwardRef, type ReactNode } from 'react';\n\nimport { type CommonAriaProps } from '#/helpers/aria';\nimport { type Responsive, type LayoutComponentProps } from '#/helpers/layout';\nimport { propsToCssVariables } from '#/helpers/propsToCssVariables';\n\nimport styles from './styles/section.module.scss';\n\nexport type SectionProps = LayoutComponentProps & {\n /**\n * The display property.\n * @default 'block'\n */\n display?: Responsive<'none' | 'block' | 'inline-block' | 'inline'>;\n\n children?: ReactNode;\n 'data-test-id'?: string;\n} & CommonAriaProps;\n\nexport const Section = forwardRef<HTMLDivElement, SectionProps>(\n ({\n 'data-test-id': dataTestId = 'fondue-section',\n children,\n role,\n 'aria-label': ariaLabel,\n 'aria-hidden': ariaHidden,\n 'aria-describedby': ariaDescribedBy,\n 'aria-labelledby': ariaLabelledBy,\n 'aria-expanded': ariaExpanded,\n 'aria-haspopup': ariaHasPopup,\n ...props\n }: SectionProps) => {\n return (\n <section\n className={styles.root}\n data-test-id={dataTestId}\n style={propsToCssVariables(props)}\n role={role}\n aria-label={ariaLabel}\n aria-hidden={ariaHidden}\n aria-describedby={ariaDescribedBy}\n aria-labelledby={ariaLabelledBy}\n aria-expanded={ariaExpanded}\n aria-haspopup={ariaHasPopup}\n >\n {children}\n </section>\n );\n },\n);\nSection.displayName = 'Section';\n"],"names":["Section","forwardRef","dataTestId","children","role","ariaLabel","ariaHidden","ariaDescribedBy","ariaLabelledBy","ariaExpanded","ariaHasPopup","props","jsx","styles","propsToCssVariables"],"mappings":";;;;AAqBO,MAAMA,IAAUC;AAAA,EACnB,CAAC;AAAA,IACG,gBAAgBC,IAAa;AAAA,IAC7B,UAAAC;AAAA,IACA,MAAAC;AAAA,IACA,cAAcC;AAAA,IACd,eAAeC;AAAA,IACf,oBAAoBC;AAAA,IACpB,mBAAmBC;AAAA,IACnB,iBAAiBC;AAAA,IACjB,iBAAiBC;AAAA,IACjB,GAAGC;AAAA,EAAA,MAGC,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACG,WAAWC,EAAO;AAAA,MAClB,gBAAcX;AAAA,MACd,OAAOY,EAAoBH,CAAK;AAAA,MAChC,MAAAP;AAAA,MACA,cAAYC;AAAA,MACZ,eAAaC;AAAA,MACb,oBAAkBC;AAAA,MAClB,mBAAiBC;AAAA,MACjB,iBAAeC;AAAA,MACf,iBAAeC;AAAA,MAEd,UAAAP;AAAA,IAAA;AAAA,EACL;AAGZ;AACAH,EAAQ,cAAc;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as l, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import * as i from "@radix-ui/react-toggle-group";
|
|
3
3
|
import { forwardRef as n } from "react";
|
|
4
|
-
import { useControllableState as N } from "./fondue-
|
|
5
|
-
import e from "./fondue-
|
|
4
|
+
import { useControllableState as N } from "./fondue-components49.js";
|
|
5
|
+
import e from "./fondue-components50.js";
|
|
6
6
|
const d = ({ children: a, value: o, defaultValue: s, onValueChange: p, ...m }, f) => {
|
|
7
7
|
const [g, C] = N({
|
|
8
8
|
prop: o,
|
|
@@ -4,12 +4,12 @@ import * as S from "@radix-ui/react-popover";
|
|
|
4
4
|
import { Slot as H } from "@radix-ui/react-slot";
|
|
5
5
|
import { useSelect as T } from "downshift";
|
|
6
6
|
import { forwardRef as V, useRef as $, useState as A } from "react";
|
|
7
|
-
import { ForwardedRefCombobox as q } from "./fondue-
|
|
8
|
-
import { ForwardedRefSelectItem as J, ForwardedRefSelectItemGroup as K } from "./fondue-
|
|
9
|
-
import { SelectMenu as L } from "./fondue-
|
|
10
|
-
import { ForwardedRefSelectSlot as Q } from "./fondue-
|
|
11
|
-
import a from "./fondue-
|
|
12
|
-
import { useSelectData as U } from "./fondue-
|
|
7
|
+
import { ForwardedRefCombobox as q } from "./fondue-components51.js";
|
|
8
|
+
import { ForwardedRefSelectItem as J, ForwardedRefSelectItemGroup as K } from "./fondue-components52.js";
|
|
9
|
+
import { SelectMenu as L } from "./fondue-components53.js";
|
|
10
|
+
import { ForwardedRefSelectSlot as Q } from "./fondue-components54.js";
|
|
11
|
+
import a from "./fondue-components55.js";
|
|
12
|
+
import { useSelectData as U } from "./fondue-components56.js";
|
|
13
13
|
const g = ({
|
|
14
14
|
children: h,
|
|
15
15
|
onSelect: i,
|
|
@@ -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-
|
|
4
|
+
import r from "./fondue-components57.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-components27.js";
|
|
5
|
-
import t from "./fondue-
|
|
5
|
+
import t from "./fondue-components58.js";
|
|
6
6
|
const n = ({
|
|
7
7
|
value: a,
|
|
8
8
|
defaultValue: i,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as n, jsxs as k } from "react/jsx-runtime";
|
|
2
2
|
import { IconArrowUp as B, IconArrowDown as h, IconArrowBidirectional as A } from "@frontify/fondue-icons";
|
|
3
3
|
import { forwardRef as u, useRef as y, useMemo as K } from "react";
|
|
4
|
-
import { useSyncRefs as p } from "./fondue-
|
|
5
|
-
import { useTextTruncation as w } from "./fondue-
|
|
6
|
-
import o from "./fondue-
|
|
7
|
-
import { handleKeyDown as z } from "./fondue-
|
|
4
|
+
import { useSyncRefs as p } from "./fondue-components59.js";
|
|
5
|
+
import { useTextTruncation as w } from "./fondue-components60.js";
|
|
6
|
+
import o from "./fondue-components61.js";
|
|
7
|
+
import { handleKeyDown as z } from "./fondue-components62.js";
|
|
8
8
|
const N = u(
|
|
9
9
|
({ layout: e = "auto", sticky: a, children: l, ...r }, t) => /* @__PURE__ */ n("div", { onKeyDown: z, role: "grid", tabIndex: -1, children: /* @__PURE__ */ n("table", { ref: t, className: o.table, "data-layout": e, "data-sticky": a, ...r, children: l }) })
|
|
10
10
|
);
|
|
@@ -2,11 +2,11 @@ import { jsx as a, jsxs as p } from "react/jsx-runtime";
|
|
|
2
2
|
import { createContext as x, forwardRef as i, useCallback as j, createElement as N, useContext as T, useRef as A, useEffect as D } from "react";
|
|
3
3
|
import { IconDotsHorizontal as E } from "@frontify/fondue-icons";
|
|
4
4
|
import * as d from "@radix-ui/react-tabs";
|
|
5
|
-
import { useControllableState as O } from "./fondue-
|
|
5
|
+
import { useControllableState as O } from "./fondue-components49.js";
|
|
6
6
|
import { Button as V } from "./fondue-components4.js";
|
|
7
7
|
import { Dropdown as l } from "./fondue-components9.js";
|
|
8
|
-
import { useTabTriggers as q } from "./fondue-
|
|
9
|
-
import r from "./fondue-
|
|
8
|
+
import { useTabTriggers as q } from "./fondue-components63.js";
|
|
9
|
+
import r from "./fondue-components64.js";
|
|
10
10
|
const b = x({
|
|
11
11
|
value: "",
|
|
12
12
|
disabled: !1
|
|
@@ -2,7 +2,7 @@ import { jsxs as g, jsx as s } from "react/jsx-runtime";
|
|
|
2
2
|
import { IconCheckMark as w, IconExclamationMarkTriangle as N } from "@frontify/fondue-icons";
|
|
3
3
|
import { forwardRef as n, useRef as S } from "react";
|
|
4
4
|
import { cn as m } from "./fondue-components27.js";
|
|
5
|
-
import r from "./fondue-
|
|
5
|
+
import r from "./fondue-components65.js";
|
|
6
6
|
const f = ({
|
|
7
7
|
children: c,
|
|
8
8
|
className: d,
|
|
@@ -2,7 +2,7 @@ import { jsx as a, jsxs as g } from "react/jsx-runtime";
|
|
|
2
2
|
import * as o from "@radix-ui/react-tooltip";
|
|
3
3
|
import { forwardRef as n } from "react";
|
|
4
4
|
import { cn as T } from "./fondue-components27.js";
|
|
5
|
-
import d from "./fondue-
|
|
5
|
+
import d from "./fondue-components66.js";
|
|
6
6
|
const l = ({ children: t, enterDelay: r = 700, open: i, onOpenChange: e, ...s }) => /* @__PURE__ */ a(o.Provider, { children: /* @__PURE__ */ a(o.Root, { delayDuration: r, open: i, onOpenChange: e, ...s, children: t }) });
|
|
7
7
|
l.displayName = "Tooltip.Root";
|
|
8
8
|
const p = ({ asChild: t = !1, children: r, "data-test-id": i = "fondue-tooltip-trigger" }, e) => /* @__PURE__ */ a(o.Trigger, { "data-test-id": i, asChild: t, ref: e, children: r });
|