@frontify/fondue-components 22.1.2 → 22.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.
- package/dist/fondue-components11.js +112 -106
- package/dist/fondue-components11.js.map +1 -1
- package/dist/fondue-components34.js +2 -2
- package/dist/fondue-components39.js +1 -1
- package/dist/fondue-components42.js +1 -1
- package/dist/fondue-components44.js +1 -1
- package/dist/fondue-components50.js +14 -14
- package/dist/fondue-components81.js +14 -14
- package/dist/fondue-components85.js +5 -2
- package/dist/fondue-components85.js.map +1 -1
- package/dist/fondue-components86.js +4 -16
- package/dist/fondue-components86.js.map +1 -1
- package/dist/fondue-components87.js +15 -3
- package/dist/fondue-components87.js.map +1 -1
- package/dist/fondue-components88.js +2 -5
- package/dist/fondue-components88.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +3 -3
|
@@ -1,162 +1,168 @@
|
|
|
1
|
-
import { jsx as n, jsxs as
|
|
2
|
-
import { IconCaretRight as
|
|
1
|
+
import { jsx as n, jsxs as R } from "react/jsx-runtime";
|
|
2
|
+
import { IconCaretRight as E } from "@frontify/fondue-icons";
|
|
3
3
|
import * as a from "@radix-ui/react-dropdown-menu";
|
|
4
|
-
import { forwardRef as
|
|
5
|
-
import { useFondueTheme as
|
|
6
|
-
import { useProcessedChildren as
|
|
7
|
-
import
|
|
8
|
-
const
|
|
9
|
-
children:
|
|
10
|
-
open:
|
|
4
|
+
import { forwardRef as i, useRef as S, useMemo as _, Children as j } from "react";
|
|
5
|
+
import { useFondueTheme as C, ThemeProvider as I } from "./fondue-components31.js";
|
|
6
|
+
import { useProcessedChildren as T } from "./fondue-components53.js";
|
|
7
|
+
import s from "./fondue-components54.js";
|
|
8
|
+
const y = ({
|
|
9
|
+
children: t,
|
|
10
|
+
open: o,
|
|
11
11
|
modal: e = !1,
|
|
12
12
|
onOpenChange: r,
|
|
13
13
|
"data-test-id": d = "fondue-dropdown"
|
|
14
|
-
}) => /* @__PURE__ */ n(a.Root, { open:
|
|
15
|
-
|
|
16
|
-
const
|
|
17
|
-
asChild:
|
|
18
|
-
children:
|
|
14
|
+
}) => /* @__PURE__ */ n(a.Root, { open: o, modal: e, onOpenChange: r, "data-test-id": d, children: t });
|
|
15
|
+
y.displayName = "Dropdown.Root";
|
|
16
|
+
const F = ({
|
|
17
|
+
asChild: t = !0,
|
|
18
|
+
children: o,
|
|
19
19
|
"data-test-id": e = "fondue-dropdown-trigger",
|
|
20
20
|
...r
|
|
21
|
-
}, d) => /* @__PURE__ */ n(a.Trigger, { asChild:
|
|
22
|
-
|
|
23
|
-
const
|
|
21
|
+
}, d) => /* @__PURE__ */ n(a.Trigger, { asChild: t, "data-test-id": e, ref: d, ...r, children: o });
|
|
22
|
+
F.displayName = "Dropdown.Trigger";
|
|
23
|
+
const L = {
|
|
24
24
|
compact: 8,
|
|
25
25
|
comfortable: 12,
|
|
26
26
|
spacious: 16
|
|
27
|
-
},
|
|
27
|
+
}, k = {
|
|
28
28
|
compact: 8,
|
|
29
29
|
spacious: 24
|
|
30
|
-
},
|
|
31
|
-
side:
|
|
32
|
-
align:
|
|
30
|
+
}, P = ({
|
|
31
|
+
side: t = "bottom",
|
|
32
|
+
align: o = "start",
|
|
33
33
|
triggerOffset: e = "compact",
|
|
34
34
|
children: r,
|
|
35
35
|
preventTriggerFocusOnClose: d,
|
|
36
|
-
viewportCollisionPadding:
|
|
37
|
-
forceMount:
|
|
38
|
-
"data-test-id":
|
|
39
|
-
},
|
|
40
|
-
const { theme:
|
|
41
|
-
return /* @__PURE__ */ n(a.Portal, { forceMount:
|
|
36
|
+
viewportCollisionPadding: l = "compact",
|
|
37
|
+
forceMount: p = !1,
|
|
38
|
+
"data-test-id": g = "fondue-dropdown-content"
|
|
39
|
+
}, D) => {
|
|
40
|
+
const b = S(null), { theme: u, dir: c } = C(), w = D || b;
|
|
41
|
+
return /* @__PURE__ */ n(a.Portal, { forceMount: p || void 0, children: /* @__PURE__ */ n(I, { theme: u, dir: c, children: /* @__PURE__ */ n(
|
|
42
42
|
a.Content,
|
|
43
43
|
{
|
|
44
|
-
dir:
|
|
45
|
-
align:
|
|
46
|
-
collisionPadding:
|
|
47
|
-
sideOffset:
|
|
48
|
-
side:
|
|
49
|
-
className:
|
|
50
|
-
"data-test-id":
|
|
44
|
+
dir: c,
|
|
45
|
+
align: o,
|
|
46
|
+
collisionPadding: k[l],
|
|
47
|
+
sideOffset: L[e],
|
|
48
|
+
side: t,
|
|
49
|
+
className: s.content,
|
|
50
|
+
"data-test-id": g,
|
|
51
51
|
ref: w,
|
|
52
|
-
onPointerDownOutside: (
|
|
53
|
-
|
|
52
|
+
onPointerDownOutside: (m) => {
|
|
53
|
+
var N;
|
|
54
|
+
if (!p || !(m.target instanceof Element) || !(w instanceof Object) || !("current" in w))
|
|
55
|
+
return;
|
|
56
|
+
let f = m.target, h = null;
|
|
57
|
+
for (; f && f !== document.body && (h = f.getAttribute("aria-controls"), !h); )
|
|
58
|
+
f = f.parentElement;
|
|
59
|
+
h === ((N = w.current) == null ? void 0 : N.id) && m.preventDefault();
|
|
54
60
|
},
|
|
55
|
-
onCloseAutoFocus: (
|
|
56
|
-
d &&
|
|
61
|
+
onCloseAutoFocus: (m) => {
|
|
62
|
+
d && m.preventDefault();
|
|
57
63
|
},
|
|
58
|
-
forceMount:
|
|
64
|
+
forceMount: p || void 0,
|
|
59
65
|
children: r
|
|
60
66
|
}
|
|
61
67
|
) }) });
|
|
62
68
|
};
|
|
63
|
-
|
|
64
|
-
const
|
|
65
|
-
() =>
|
|
66
|
-
[
|
|
67
|
-
) ? /* @__PURE__ */
|
|
68
|
-
|
|
69
|
-
|
|
69
|
+
P.displayName = "Dropdown.Content";
|
|
70
|
+
const M = ({ children: t, heading: o, "data-test-id": e = "fondue-dropdown-group" }, r) => _(
|
|
71
|
+
() => j.toArray(t).filter((l) => l !== null).length > 0,
|
|
72
|
+
[t]
|
|
73
|
+
) ? /* @__PURE__ */ R(a.Group, { className: s.group, "data-test-id": e, ref: r, children: [
|
|
74
|
+
o ? /* @__PURE__ */ n("div", { className: s.groupHeading, children: /* @__PURE__ */ n("span", { "aria-label": o, children: o }) }) : null,
|
|
75
|
+
t
|
|
70
76
|
] }) : null;
|
|
71
|
-
|
|
72
|
-
const
|
|
73
|
-
children:
|
|
74
|
-
"data-test-id":
|
|
75
|
-
}) => /* @__PURE__ */ n(a.Sub, { "data-test-id":
|
|
76
|
-
|
|
77
|
-
const
|
|
78
|
-
const { content: r } =
|
|
79
|
-
return /* @__PURE__ */
|
|
77
|
+
M.displayName = "Dropdown.Group";
|
|
78
|
+
const A = ({
|
|
79
|
+
children: t,
|
|
80
|
+
"data-test-id": o = "fondue-dropdown-submenu"
|
|
81
|
+
}) => /* @__PURE__ */ n(a.Sub, { "data-test-id": o, children: t });
|
|
82
|
+
A.displayName = "Dropdown.SubMenu";
|
|
83
|
+
const G = ({ children: t, "data-test-id": o = "fondue-dropdown-subtrigger" }, e) => {
|
|
84
|
+
const { content: r } = T(t);
|
|
85
|
+
return /* @__PURE__ */ R(a.SubTrigger, { className: s.subTrigger, "data-test-id": o, ref: e, children: [
|
|
80
86
|
r,
|
|
81
|
-
/* @__PURE__ */ n(
|
|
87
|
+
/* @__PURE__ */ n(E, { className: s.subMenuIndicator, size: 16 })
|
|
82
88
|
] });
|
|
83
89
|
};
|
|
84
|
-
|
|
85
|
-
const
|
|
86
|
-
const { theme: r, dir: d } =
|
|
87
|
-
return /* @__PURE__ */ n(a.Portal, { children: /* @__PURE__ */ n(
|
|
90
|
+
G.displayName = "Dropdown.SubTrigger";
|
|
91
|
+
const O = ({ children: t, "data-test-id": o = "fondue-dropdown-subcontent" }, e) => {
|
|
92
|
+
const { theme: r, dir: d } = C();
|
|
93
|
+
return /* @__PURE__ */ n(a.Portal, { children: /* @__PURE__ */ n(I, { theme: r, dir: d, children: /* @__PURE__ */ n(
|
|
88
94
|
a.SubContent,
|
|
89
95
|
{
|
|
90
96
|
dir: d,
|
|
91
|
-
className:
|
|
92
|
-
"data-test-id":
|
|
97
|
+
className: s.subContent,
|
|
98
|
+
"data-test-id": o,
|
|
93
99
|
ref: e,
|
|
94
|
-
children:
|
|
100
|
+
children: t
|
|
95
101
|
}
|
|
96
102
|
) }) });
|
|
97
103
|
};
|
|
98
|
-
|
|
99
|
-
const
|
|
100
|
-
children:
|
|
101
|
-
disabled:
|
|
104
|
+
O.displayName = "Dropdown.SubContent";
|
|
105
|
+
const v = ({
|
|
106
|
+
children: t,
|
|
107
|
+
disabled: o,
|
|
102
108
|
textValue: e,
|
|
103
109
|
onSelect: r,
|
|
104
110
|
emphasis: d = "default",
|
|
105
|
-
asChild:
|
|
106
|
-
"data-test-id":
|
|
107
|
-
...
|
|
108
|
-
},
|
|
109
|
-
const { content:
|
|
111
|
+
asChild: l = !1,
|
|
112
|
+
"data-test-id": p = "fondue-dropdown-subtrigger",
|
|
113
|
+
...g
|
|
114
|
+
}, D) => {
|
|
115
|
+
const { content: b } = T(t), u = S(!1);
|
|
110
116
|
return /* @__PURE__ */ n(
|
|
111
117
|
a.Item,
|
|
112
118
|
{
|
|
113
119
|
onSelect: r,
|
|
114
|
-
className:
|
|
120
|
+
className: s.item,
|
|
115
121
|
textValue: e,
|
|
116
|
-
"data-test-id":
|
|
122
|
+
"data-test-id": p,
|
|
117
123
|
"data-emphasis": d,
|
|
118
|
-
ref:
|
|
119
|
-
disabled:
|
|
120
|
-
asChild:
|
|
124
|
+
ref: D,
|
|
125
|
+
disabled: o,
|
|
126
|
+
asChild: l,
|
|
121
127
|
"data-show-focus-ring": u.current,
|
|
122
128
|
onMouseEnter: () => {
|
|
123
129
|
u.current = !0;
|
|
124
130
|
},
|
|
125
|
-
onFocus: (
|
|
126
|
-
u.current || (
|
|
131
|
+
onFocus: (c) => {
|
|
132
|
+
u.current || (c.target.dataset.showFocusRing = "true");
|
|
127
133
|
},
|
|
128
|
-
onBlur: (
|
|
129
|
-
|
|
134
|
+
onBlur: (c) => {
|
|
135
|
+
c.target.dataset.showFocusRing = "false", u.current = !1;
|
|
130
136
|
},
|
|
131
|
-
...
|
|
132
|
-
children:
|
|
137
|
+
...g,
|
|
138
|
+
children: b
|
|
133
139
|
}
|
|
134
140
|
);
|
|
135
141
|
};
|
|
136
|
-
|
|
137
|
-
const
|
|
138
|
-
|
|
139
|
-
const
|
|
140
|
-
Root:
|
|
141
|
-
Trigger:
|
|
142
|
-
Content:
|
|
143
|
-
Group:
|
|
144
|
-
SubMenu:
|
|
145
|
-
SubTrigger:
|
|
146
|
-
SubContent:
|
|
147
|
-
Item:
|
|
148
|
-
Slot:
|
|
142
|
+
v.displayName = "Dropdown.Item";
|
|
143
|
+
const x = ({ children: t, name: o, "data-test-id": e = "fondue-dropdown-slot" }, r) => /* @__PURE__ */ n("div", { "data-name": o, className: s.slot, "data-test-id": e, ref: r, children: t });
|
|
144
|
+
x.displayName = "Dropdown.Slot";
|
|
145
|
+
const z = i(F), B = i(P), H = i(M), V = i(G), W = i(O), q = i(v), J = i(x), $ = {
|
|
146
|
+
Root: y,
|
|
147
|
+
Trigger: z,
|
|
148
|
+
Content: B,
|
|
149
|
+
Group: H,
|
|
150
|
+
SubMenu: A,
|
|
151
|
+
SubTrigger: V,
|
|
152
|
+
SubContent: W,
|
|
153
|
+
Item: q,
|
|
154
|
+
Slot: J
|
|
149
155
|
};
|
|
150
156
|
export {
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
157
|
+
$ as Dropdown,
|
|
158
|
+
P as DropdownContent,
|
|
159
|
+
M as DropdownGroup,
|
|
160
|
+
v as DropdownItem,
|
|
161
|
+
y as DropdownRoot,
|
|
162
|
+
x as DropdownSlot,
|
|
163
|
+
O as DropdownSubContent,
|
|
164
|
+
A as DropdownSubMenu,
|
|
165
|
+
G as DropdownSubTrigger,
|
|
166
|
+
F as DropdownTrigger
|
|
161
167
|
};
|
|
162
168
|
//# sourceMappingURL=fondue-components11.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components11.js","sources":["../src/components/Dropdown/Dropdown.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { IconCaretRight } from '@frontify/fondue-icons';\nimport * as RadixDropdown from '@radix-ui/react-dropdown-menu';\nimport { Children, forwardRef, useMemo, useRef, type ForwardedRef, type ReactNode } from 'react';\n\nimport { ThemeProvider, useFondueTheme } from '../ThemeProvider/ThemeProvider';\n\nimport { useProcessedChildren } from './hooks/useProcessedChildren';\nimport styles from './styles/dropdown.module.scss';\n\nexport type DropdownRootProps = {\n children?: ReactNode;\n /**\n * When set to true, interaction with outside elements will be disabled and only menu content will be visible to screen readers.\n * @default false\n */\n modal?: boolean;\n /**\n * Controls the open state of the dropdown.\n */\n open?: boolean;\n /**\n * Callback that is called when the open state of the dropdown changes.\n */\n onOpenChange?: (open: boolean) => void;\n\n 'data-test-id'?: string;\n};\n\nexport const DropdownRoot = ({\n children,\n open,\n modal = false,\n onOpenChange,\n 'data-test-id': dataTestId = 'fondue-dropdown',\n}: DropdownRootProps) => {\n return (\n <RadixDropdown.Root open={open} modal={modal} onOpenChange={onOpenChange} data-test-id={dataTestId}>\n {children}\n </RadixDropdown.Root>\n );\n};\nDropdownRoot.displayName = 'Dropdown.Root';\n\nexport type DropdownTriggerProps = {\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 DropdownTrigger = (\n {\n asChild = true,\n children,\n 'data-test-id': dataTestId = 'fondue-dropdown-trigger',\n ...props\n }: DropdownTriggerProps,\n ref: ForwardedRef<HTMLButtonElement>,\n) => {\n return (\n <RadixDropdown.Trigger asChild={asChild} data-test-id={dataTestId} ref={ref} {...props}>\n {children}\n </RadixDropdown.Trigger>\n );\n};\nDropdownTrigger.displayName = 'Dropdown.Trigger';\n\ntype DropdownSpacing = 'compact' | 'comfortable' | 'spacious';\ntype DropdownViewportCollisionPadding = 'compact' | 'spacious';\nexport type DropdownContentProps = {\n children?: ReactNode;\n 'data-test-id'?: string;\n /**\n * Defines the alignment of the dropdown.\n * @default \"start\"\n */\n align?: 'start' | 'center' | 'end';\n /**\n * Defines the preferred side of the dropdown. It will not be respected if there are collisions with the viewport.\n * @default \"bottom\"\n */\n side?: 'top' | 'right' | 'bottom' | 'left';\n /**\n * Defines the spacing between the dropdown and its trigger.\n * @default 'compact'\n */\n triggerOffset?: DropdownSpacing;\n /**\n * Prevents the focus from being set on the trigger when the dropdown is closed.\n */\n preventTriggerFocusOnClose?: boolean;\n /**\n * Define the minimum distance between the dropdown and the viewport edge\n * @default 'compact'\n */\n viewportCollisionPadding?: DropdownViewportCollisionPadding;\n /**\n * When true, the content will always be mounted in the DOM. Before enabling, make sure you really need it.\n * @default false\n */\n forceMount?: boolean;\n};\n\nconst SPACING_MAP: Record<DropdownSpacing, number> = {\n compact: 8,\n comfortable: 12,\n spacious: 16,\n};\n\nconst VIEWPORT_COLLISION_PADDING_MAP: Record<DropdownViewportCollisionPadding, number> = {\n compact: 8,\n spacious: 24,\n};\n\nexport const DropdownContent = (\n {\n side = 'bottom',\n align = 'start',\n triggerOffset = 'compact',\n children,\n preventTriggerFocusOnClose,\n viewportCollisionPadding = 'compact',\n forceMount = false,\n 'data-test-id': dataTestId = 'fondue-dropdown-content',\n }: DropdownContentProps,\n ref: ForwardedRef<HTMLDivElement>,\n) => {\n const { theme, dir } = useFondueTheme();\n\n return (\n <RadixDropdown.Portal forceMount={forceMount || undefined}>\n <ThemeProvider theme={theme} dir={dir}>\n <RadixDropdown.Content\n // @ts-expect-error - dir prop works at runtime but is not in the Radix UI type definition\n dir={dir}\n align={align}\n collisionPadding={VIEWPORT_COLLISION_PADDING_MAP[viewportCollisionPadding]}\n sideOffset={SPACING_MAP[triggerOffset]}\n side={side}\n className={styles.content}\n data-test-id={dataTestId}\n ref={ref}\n onPointerDownOutside={(event) => {\n if (forceMount && event.currentTarget instanceof HTMLElement) {\n // Trigger is technically outside the dropdown content and when forceMount is true\n // the content is always in the DOM so the onPointerDownOutside event is triggered\n const dropdownIsOpen = event.currentTarget.getAttribute('data-state') === 'open';\n if (dropdownIsOpen) {\n event.preventDefault();\n }\n }\n }}\n onCloseAutoFocus={(event) => {\n if (preventTriggerFocusOnClose) {\n event.preventDefault();\n }\n }}\n forceMount={forceMount || undefined}\n >\n {children}\n </RadixDropdown.Content>\n </ThemeProvider>\n </RadixDropdown.Portal>\n );\n};\nDropdownContent.displayName = 'Dropdown.Content';\n\nexport type DropdownGroupProps = { children: ReactNode; heading?: string; 'data-test-id'?: string };\n\nexport const DropdownGroup = (\n { children, heading, 'data-test-id': dataTestId = 'fondue-dropdown-group' }: DropdownGroupProps,\n ref: ForwardedRef<HTMLDivElement>,\n) => {\n const hasChildren = useMemo(\n () => Children.toArray(children).filter((child) => child !== null).length > 0,\n [children],\n );\n\n if (!hasChildren) {\n return null;\n }\n\n return (\n <RadixDropdown.Group className={styles.group} data-test-id={dataTestId} ref={ref}>\n {heading ? (\n <div className={styles.groupHeading}>\n <span aria-label={heading}>{heading}</span>\n </div>\n ) : null}\n {children}\n </RadixDropdown.Group>\n );\n};\nDropdownGroup.displayName = 'Dropdown.Group';\n\nexport type DropdownSubMenuProps = { children: ReactNode; 'data-test-id'?: string };\n\nexport const DropdownSubMenu = ({\n children,\n 'data-test-id': dataTestId = 'fondue-dropdown-submenu',\n}: DropdownSubMenuProps) => {\n return <RadixDropdown.Sub data-test-id={dataTestId}>{children}</RadixDropdown.Sub>;\n};\nDropdownSubMenu.displayName = 'Dropdown.SubMenu';\n\nexport type DropdownSubTriggerProps = { children: ReactNode; 'data-test-id'?: string };\n\nexport const DropdownSubTrigger = (\n { children, 'data-test-id': dataTestId = 'fondue-dropdown-subtrigger' }: DropdownSubTriggerProps,\n ref: ForwardedRef<HTMLDivElement>,\n) => {\n const { content } = useProcessedChildren(children);\n return (\n <RadixDropdown.SubTrigger className={styles.subTrigger} data-test-id={dataTestId} ref={ref}>\n {content}\n <IconCaretRight className={styles.subMenuIndicator} size={16} />\n </RadixDropdown.SubTrigger>\n );\n};\nDropdownSubTrigger.displayName = 'Dropdown.SubTrigger';\n\nexport type DropdownSubContentProps = {\n children: ReactNode;\n 'data-test-id'?: string;\n};\n\nexport const DropdownSubContent = (\n { children, 'data-test-id': dataTestId = 'fondue-dropdown-subcontent' }: DropdownSubContentProps,\n ref: ForwardedRef<HTMLDivElement>,\n) => {\n const { theme, dir } = useFondueTheme();\n\n return (\n <RadixDropdown.Portal>\n <ThemeProvider theme={theme} dir={dir}>\n <RadixDropdown.SubContent\n // @ts-expect-error - dir prop works at runtime but is not in the Radix UI type definition\n dir={dir}\n className={styles.subContent}\n data-test-id={dataTestId}\n ref={ref}\n >\n {children}\n </RadixDropdown.SubContent>\n </ThemeProvider>\n </RadixDropdown.Portal>\n );\n};\nDropdownSubContent.displayName = 'Dropdown.SubContent';\n\nexport type DropdownItemProps = {\n children: ReactNode;\n /**\n * Disables the item.\n */\n disabled?: boolean;\n /**\n * The text value of the item that is passed to the onSelect callback.\n */\n textValue?: string;\n /**\n * The style of the item.\n * @default \"default\"\n */\n emphasis?: 'default' | 'danger';\n /**\n * Callback that is called when the item is selected.\n */\n onSelect?: (event: Event) => void;\n /**\n * If true, the item props will be passed to the child element.\n * @default false\n */\n asChild?: boolean;\n 'data-test-id'?: string;\n};\n\nexport const DropdownItem = (\n {\n children,\n disabled,\n textValue,\n onSelect,\n emphasis = 'default',\n asChild = false,\n 'data-test-id': dataTestId = 'fondue-dropdown-subtrigger',\n ...props\n }: DropdownItemProps,\n ref: ForwardedRef<HTMLDivElement>,\n) => {\n const { content } = useProcessedChildren(children);\n const wasMouseInteracted = useRef(false);\n\n return (\n <RadixDropdown.Item\n onSelect={onSelect}\n className={styles.item}\n textValue={textValue}\n data-test-id={dataTestId}\n data-emphasis={emphasis}\n ref={ref}\n disabled={disabled}\n asChild={asChild}\n data-show-focus-ring={wasMouseInteracted.current}\n onMouseEnter={() => {\n wasMouseInteracted.current = true;\n }}\n onFocus={(focusEvent) => {\n if (!wasMouseInteracted.current) {\n focusEvent.target.dataset.showFocusRing = 'true';\n }\n }}\n onBlur={(blurEvent) => {\n blurEvent.target.dataset.showFocusRing = 'false';\n wasMouseInteracted.current = false;\n }}\n {...props}\n >\n {content}\n </RadixDropdown.Item>\n );\n};\nDropdownItem.displayName = 'Dropdown.Item';\n\nexport type DropdownSlotProps = { children: ReactNode; name?: 'left' | 'right'; 'data-test-id'?: string };\n\nexport const DropdownSlot = (\n { children, name, 'data-test-id': dataTestId = 'fondue-dropdown-slot' }: DropdownSlotProps,\n ref: ForwardedRef<HTMLDivElement>,\n) => {\n return (\n <div data-name={name} className={styles.slot} data-test-id={dataTestId} ref={ref}>\n {children}\n </div>\n );\n};\nDropdownSlot.displayName = 'Dropdown.Slot';\n\nconst ForwardedRefDropdownTrigger = forwardRef<HTMLButtonElement, DropdownTriggerProps>(DropdownTrigger);\nconst ForwardedRefDropdownContent = forwardRef<HTMLDivElement, DropdownContentProps>(DropdownContent);\nconst ForwardedRefDropdownGroup = forwardRef<HTMLDivElement, DropdownGroupProps>(DropdownGroup);\nconst ForwardedRefDropdownSubTrigger = forwardRef<HTMLDivElement, DropdownSubTriggerProps>(DropdownSubTrigger);\nconst ForwardedRefDropdownSubContent = forwardRef<HTMLDivElement, DropdownSubContentProps>(DropdownSubContent);\nconst ForwardedRefDropdownItem = forwardRef<HTMLDivElement, DropdownItemProps>(DropdownItem);\nconst ForwardedRefDropdownSlot = forwardRef<HTMLDivElement, DropdownSlotProps>(DropdownSlot);\n\nexport const Dropdown = {\n Root: DropdownRoot,\n Trigger: ForwardedRefDropdownTrigger,\n Content: ForwardedRefDropdownContent,\n Group: ForwardedRefDropdownGroup,\n SubMenu: DropdownSubMenu,\n SubTrigger: ForwardedRefDropdownSubTrigger,\n SubContent: ForwardedRefDropdownSubContent,\n Item: ForwardedRefDropdownItem,\n Slot: ForwardedRefDropdownSlot,\n};\n"],"names":["DropdownRoot","children","open","modal","onOpenChange","dataTestId","jsx","RadixDropdown","DropdownTrigger","asChild","props","ref","SPACING_MAP","VIEWPORT_COLLISION_PADDING_MAP","DropdownContent","side","align","triggerOffset","preventTriggerFocusOnClose","viewportCollisionPadding","forceMount","theme","dir","useFondueTheme","ThemeProvider","styles","event","DropdownGroup","heading","useMemo","Children","child","jsxs","DropdownSubMenu","DropdownSubTrigger","content","useProcessedChildren","IconCaretRight","DropdownSubContent","DropdownItem","disabled","textValue","onSelect","emphasis","wasMouseInteracted","useRef","focusEvent","blurEvent","DropdownSlot","name","ForwardedRefDropdownTrigger","forwardRef","ForwardedRefDropdownContent","ForwardedRefDropdownGroup","ForwardedRefDropdownSubTrigger","ForwardedRefDropdownSubContent","ForwardedRefDropdownItem","ForwardedRefDropdownSlot","Dropdown"],"mappings":";;;;;;;AA8BO,MAAMA,IAAe,CAAC;AAAA,EACzB,UAAAC;AAAA,EACA,MAAAC;AAAA,EACA,OAAAC,IAAQ;AAAA,EACR,cAAAC;AAAA,EACA,gBAAgBC,IAAa;AACjC,MAEQ,gBAAAC,EAACC,EAAc,MAAd,EAAmB,MAAAL,GAAY,OAAAC,GAAc,cAAAC,GAA4B,gBAAcC,GACnF,UAAAJ,GACL;AAGRD,EAAa,cAAc;AAYpB,MAAMQ,IAAkB,CAC3B;AAAA,EACI,SAAAC,IAAU;AAAA,EACV,UAAAR;AAAA,EACA,gBAAgBI,IAAa;AAAA,EAC7B,GAAGK;AACP,GACAC,MAGI,gBAAAL,EAACC,EAAc,SAAd,EAAsB,SAAAE,GAAkB,gBAAcJ,GAAY,KAAAM,GAAW,GAAGD,GAC5E,UAAAT,EAAA,CACL;AAGRO,EAAgB,cAAc;AAsC9B,MAAMI,IAA+C;AAAA,EACjD,SAAS;AAAA,EACT,aAAa;AAAA,EACb,UAAU;AACd,GAEMC,IAAmF;AAAA,EACrF,SAAS;AAAA,EAC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,IAA4BF,EAA+CxB,CAAa,GACxF2B,IAAiCH,EAAoDjB,CAAkB,GACvGqB,IAAiCJ,EAAoDb,CAAkB,GACvGkB,IAA2BL,EAA8CZ,CAAY,GACrFkB,IAA2BN,EAA8CH,CAAY,GAE9EU,IAAW;AAAA,EACpB,MAAM1D;AAAA,EACN,SAASkD;AAAA,EACT,SAASE;AAAA,EACT,OAAOC;AAAA,EACP,SAASpB;AAAA,EACT,YAAYqB;AAAA,EACZ,YAAYC;AAAA,EACZ,MAAMC;AAAA,EACN,MAAMC;AACV;"}
|
|
1
|
+
{"version":3,"file":"fondue-components11.js","sources":["../src/components/Dropdown/Dropdown.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { IconCaretRight } from '@frontify/fondue-icons';\nimport * as RadixDropdown from '@radix-ui/react-dropdown-menu';\nimport { Children, forwardRef, useMemo, useRef, type ForwardedRef, type ReactNode } from 'react';\n\nimport { ThemeProvider, useFondueTheme } from '../ThemeProvider/ThemeProvider';\n\nimport { useProcessedChildren } from './hooks/useProcessedChildren';\nimport styles from './styles/dropdown.module.scss';\n\nexport type DropdownRootProps = {\n children?: ReactNode;\n /**\n * When set to true, interaction with outside elements will be disabled and only menu content will be visible to screen readers.\n * @default false\n */\n modal?: boolean;\n /**\n * Controls the open state of the dropdown.\n */\n open?: boolean;\n /**\n * Callback that is called when the open state of the dropdown changes.\n */\n onOpenChange?: (open: boolean) => void;\n\n 'data-test-id'?: string;\n};\n\nexport const DropdownRoot = ({\n children,\n open,\n modal = false,\n onOpenChange,\n 'data-test-id': dataTestId = 'fondue-dropdown',\n}: DropdownRootProps) => {\n return (\n <RadixDropdown.Root open={open} modal={modal} onOpenChange={onOpenChange} data-test-id={dataTestId}>\n {children}\n </RadixDropdown.Root>\n );\n};\nDropdownRoot.displayName = 'Dropdown.Root';\n\nexport type DropdownTriggerProps = {\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 DropdownTrigger = (\n {\n asChild = true,\n children,\n 'data-test-id': dataTestId = 'fondue-dropdown-trigger',\n ...props\n }: DropdownTriggerProps,\n ref: ForwardedRef<HTMLButtonElement>,\n) => {\n return (\n <RadixDropdown.Trigger asChild={asChild} data-test-id={dataTestId} ref={ref} {...props}>\n {children}\n </RadixDropdown.Trigger>\n );\n};\nDropdownTrigger.displayName = 'Dropdown.Trigger';\n\ntype DropdownSpacing = 'compact' | 'comfortable' | 'spacious';\ntype DropdownViewportCollisionPadding = 'compact' | 'spacious';\nexport type DropdownContentProps = {\n children?: ReactNode;\n 'data-test-id'?: string;\n /**\n * Defines the alignment of the dropdown.\n * @default \"start\"\n */\n align?: 'start' | 'center' | 'end';\n /**\n * Defines the preferred side of the dropdown. It will not be respected if there are collisions with the viewport.\n * @default \"bottom\"\n */\n side?: 'top' | 'right' | 'bottom' | 'left';\n /**\n * Defines the spacing between the dropdown and its trigger.\n * @default 'compact'\n */\n triggerOffset?: DropdownSpacing;\n /**\n * Prevents the focus from being set on the trigger when the dropdown is closed.\n */\n preventTriggerFocusOnClose?: boolean;\n /**\n * Define the minimum distance between the dropdown and the viewport edge\n * @default 'compact'\n */\n viewportCollisionPadding?: DropdownViewportCollisionPadding;\n /**\n * When true, the content will always be mounted in the DOM. Before enabling, make sure you really need it.\n * @default false\n */\n forceMount?: boolean;\n};\n\nconst SPACING_MAP: Record<DropdownSpacing, number> = {\n compact: 8,\n comfortable: 12,\n spacious: 16,\n};\n\nconst VIEWPORT_COLLISION_PADDING_MAP: Record<DropdownViewportCollisionPadding, number> = {\n compact: 8,\n spacious: 24,\n};\n\nexport const DropdownContent = (\n {\n side = 'bottom',\n align = 'start',\n triggerOffset = 'compact',\n children,\n preventTriggerFocusOnClose,\n viewportCollisionPadding = 'compact',\n forceMount = false,\n 'data-test-id': dataTestId = 'fondue-dropdown-content',\n }: DropdownContentProps,\n ref: ForwardedRef<HTMLDivElement>,\n) => {\n const localRef = useRef<HTMLDivElement>(null);\n const { theme, dir } = useFondueTheme();\n const actualRef = ref || localRef;\n return (\n <RadixDropdown.Portal forceMount={forceMount || undefined}>\n <ThemeProvider theme={theme} dir={dir}>\n <RadixDropdown.Content\n // @ts-expect-error - dir prop works at runtime but is not in the Radix UI type definition\n dir={dir}\n align={align}\n collisionPadding={VIEWPORT_COLLISION_PADDING_MAP[viewportCollisionPadding]}\n sideOffset={SPACING_MAP[triggerOffset]}\n side={side}\n className={styles.content}\n data-test-id={dataTestId}\n ref={actualRef}\n onPointerDownOutside={(event) => {\n if (!forceMount) {\n return;\n }\n\n if (!(event.target instanceof Element)) {\n return;\n }\n\n if (!(actualRef instanceof Object) || !('current' in actualRef)) {\n return;\n }\n\n let element: Element | null = event.target;\n let controlsId: string | null = null;\n\n while (element && element !== document.body) {\n controlsId = element.getAttribute('aria-controls');\n\n if (controlsId) {\n break;\n }\n\n element = element.parentElement;\n }\n\n if (controlsId === actualRef.current?.id) {\n event.preventDefault();\n }\n }}\n onCloseAutoFocus={(event) => {\n if (preventTriggerFocusOnClose) {\n event.preventDefault();\n }\n }}\n forceMount={forceMount || undefined}\n >\n {children}\n </RadixDropdown.Content>\n </ThemeProvider>\n </RadixDropdown.Portal>\n );\n};\nDropdownContent.displayName = 'Dropdown.Content';\n\nexport type DropdownGroupProps = { children: ReactNode; heading?: string; 'data-test-id'?: string };\n\nexport const DropdownGroup = (\n { children, heading, 'data-test-id': dataTestId = 'fondue-dropdown-group' }: DropdownGroupProps,\n ref: ForwardedRef<HTMLDivElement>,\n) => {\n const hasChildren = useMemo(\n () => Children.toArray(children).filter((child) => child !== null).length > 0,\n [children],\n );\n\n if (!hasChildren) {\n return null;\n }\n\n return (\n <RadixDropdown.Group className={styles.group} data-test-id={dataTestId} ref={ref}>\n {heading ? (\n <div className={styles.groupHeading}>\n <span aria-label={heading}>{heading}</span>\n </div>\n ) : null}\n {children}\n </RadixDropdown.Group>\n );\n};\nDropdownGroup.displayName = 'Dropdown.Group';\n\nexport type DropdownSubMenuProps = { children: ReactNode; 'data-test-id'?: string };\n\nexport const DropdownSubMenu = ({\n children,\n 'data-test-id': dataTestId = 'fondue-dropdown-submenu',\n}: DropdownSubMenuProps) => {\n return <RadixDropdown.Sub data-test-id={dataTestId}>{children}</RadixDropdown.Sub>;\n};\nDropdownSubMenu.displayName = 'Dropdown.SubMenu';\n\nexport type DropdownSubTriggerProps = { children: ReactNode; 'data-test-id'?: string };\n\nexport const DropdownSubTrigger = (\n { children, 'data-test-id': dataTestId = 'fondue-dropdown-subtrigger' }: DropdownSubTriggerProps,\n ref: ForwardedRef<HTMLDivElement>,\n) => {\n const { content } = useProcessedChildren(children);\n return (\n <RadixDropdown.SubTrigger className={styles.subTrigger} data-test-id={dataTestId} ref={ref}>\n {content}\n <IconCaretRight className={styles.subMenuIndicator} size={16} />\n </RadixDropdown.SubTrigger>\n );\n};\nDropdownSubTrigger.displayName = 'Dropdown.SubTrigger';\n\nexport type DropdownSubContentProps = {\n children: ReactNode;\n 'data-test-id'?: string;\n};\n\nexport const DropdownSubContent = (\n { children, 'data-test-id': dataTestId = 'fondue-dropdown-subcontent' }: DropdownSubContentProps,\n ref: ForwardedRef<HTMLDivElement>,\n) => {\n const { theme, dir } = useFondueTheme();\n\n return (\n <RadixDropdown.Portal>\n <ThemeProvider theme={theme} dir={dir}>\n <RadixDropdown.SubContent\n // @ts-expect-error - dir prop works at runtime but is not in the Radix UI type definition\n dir={dir}\n className={styles.subContent}\n data-test-id={dataTestId}\n ref={ref}\n >\n {children}\n </RadixDropdown.SubContent>\n </ThemeProvider>\n </RadixDropdown.Portal>\n );\n};\nDropdownSubContent.displayName = 'Dropdown.SubContent';\n\nexport type DropdownItemProps = {\n children: ReactNode;\n /**\n * Disables the item.\n */\n disabled?: boolean;\n /**\n * The text value of the item that is passed to the onSelect callback.\n */\n textValue?: string;\n /**\n * The style of the item.\n * @default \"default\"\n */\n emphasis?: 'default' | 'danger';\n /**\n * Callback that is called when the item is selected.\n */\n onSelect?: (event: Event) => void;\n /**\n * If true, the item props will be passed to the child element.\n * @default false\n */\n asChild?: boolean;\n 'data-test-id'?: string;\n};\n\nexport const DropdownItem = (\n {\n children,\n disabled,\n textValue,\n onSelect,\n emphasis = 'default',\n asChild = false,\n 'data-test-id': dataTestId = 'fondue-dropdown-subtrigger',\n ...props\n }: DropdownItemProps,\n ref: ForwardedRef<HTMLDivElement>,\n) => {\n const { content } = useProcessedChildren(children);\n const wasMouseInteracted = useRef(false);\n\n return (\n <RadixDropdown.Item\n onSelect={onSelect}\n className={styles.item}\n textValue={textValue}\n data-test-id={dataTestId}\n data-emphasis={emphasis}\n ref={ref}\n disabled={disabled}\n asChild={asChild}\n data-show-focus-ring={wasMouseInteracted.current}\n onMouseEnter={() => {\n wasMouseInteracted.current = true;\n }}\n onFocus={(focusEvent) => {\n if (!wasMouseInteracted.current) {\n focusEvent.target.dataset.showFocusRing = 'true';\n }\n }}\n onBlur={(blurEvent) => {\n blurEvent.target.dataset.showFocusRing = 'false';\n wasMouseInteracted.current = false;\n }}\n {...props}\n >\n {content}\n </RadixDropdown.Item>\n );\n};\nDropdownItem.displayName = 'Dropdown.Item';\n\nexport type DropdownSlotProps = { children: ReactNode; name?: 'left' | 'right'; 'data-test-id'?: string };\n\nexport const DropdownSlot = (\n { children, name, 'data-test-id': dataTestId = 'fondue-dropdown-slot' }: DropdownSlotProps,\n ref: ForwardedRef<HTMLDivElement>,\n) => {\n return (\n <div data-name={name} className={styles.slot} data-test-id={dataTestId} ref={ref}>\n {children}\n </div>\n );\n};\nDropdownSlot.displayName = 'Dropdown.Slot';\n\nconst ForwardedRefDropdownTrigger = forwardRef<HTMLButtonElement, DropdownTriggerProps>(DropdownTrigger);\nconst ForwardedRefDropdownContent = forwardRef<HTMLDivElement, DropdownContentProps>(DropdownContent);\nconst ForwardedRefDropdownGroup = forwardRef<HTMLDivElement, DropdownGroupProps>(DropdownGroup);\nconst ForwardedRefDropdownSubTrigger = forwardRef<HTMLDivElement, DropdownSubTriggerProps>(DropdownSubTrigger);\nconst ForwardedRefDropdownSubContent = forwardRef<HTMLDivElement, DropdownSubContentProps>(DropdownSubContent);\nconst ForwardedRefDropdownItem = forwardRef<HTMLDivElement, DropdownItemProps>(DropdownItem);\nconst ForwardedRefDropdownSlot = forwardRef<HTMLDivElement, DropdownSlotProps>(DropdownSlot);\n\nexport const Dropdown = {\n Root: DropdownRoot,\n Trigger: ForwardedRefDropdownTrigger,\n Content: ForwardedRefDropdownContent,\n Group: ForwardedRefDropdownGroup,\n SubMenu: DropdownSubMenu,\n SubTrigger: ForwardedRefDropdownSubTrigger,\n SubContent: ForwardedRefDropdownSubContent,\n Item: ForwardedRefDropdownItem,\n Slot: ForwardedRefDropdownSlot,\n};\n"],"names":["DropdownRoot","children","open","modal","onOpenChange","dataTestId","jsx","RadixDropdown","DropdownTrigger","asChild","props","ref","SPACING_MAP","VIEWPORT_COLLISION_PADDING_MAP","DropdownContent","side","align","triggerOffset","preventTriggerFocusOnClose","viewportCollisionPadding","forceMount","localRef","useRef","theme","dir","useFondueTheme","actualRef","ThemeProvider","styles","event","element","controlsId","_a","DropdownGroup","heading","useMemo","Children","child","jsxs","DropdownSubMenu","DropdownSubTrigger","content","useProcessedChildren","IconCaretRight","DropdownSubContent","DropdownItem","disabled","textValue","onSelect","emphasis","wasMouseInteracted","focusEvent","blurEvent","DropdownSlot","name","ForwardedRefDropdownTrigger","forwardRef","ForwardedRefDropdownContent","ForwardedRefDropdownGroup","ForwardedRefDropdownSubTrigger","ForwardedRefDropdownSubContent","ForwardedRefDropdownItem","ForwardedRefDropdownSlot","Dropdown"],"mappings":";;;;;;;AA8BO,MAAMA,IAAe,CAAC;AAAA,EACzB,UAAAC;AAAA,EACA,MAAAC;AAAA,EACA,OAAAC,IAAQ;AAAA,EACR,cAAAC;AAAA,EACA,gBAAgBC,IAAa;AACjC,MAEQ,gBAAAC,EAACC,EAAc,MAAd,EAAmB,MAAAL,GAAY,OAAAC,G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AAtC;AAAA,MACA,UAAAmC;AAAA,MACA,SAAArC;AAAA,MACA,wBAAsByC,EAAmB;AAAA,MACzC,cAAc,MAAM;AAChB,QAAAA,EAAmB,UAAU;AAAA,MACjC;AAAA,MACA,SAAS,CAACC,MAAe;AACrB,QAAKD,EAAmB,YACpBC,EAAW,OAAO,QAAQ,gBAAgB;AAAA,MAElD;AAAA,MACA,QAAQ,CAACC,MAAc;AACnB,QAAAA,EAAU,OAAO,QAAQ,gBAAgB,SACzCF,EAAmB,UAAU;AAAA,MACjC;AAAA,MACC,GAAGxC;AAAA,MAEH,UAAA+B;AAAA,IAAA;AAAA,EAAA;AAGb;AACAI,EAAa,cAAc;AAIpB,MAAMQ,IAAe,CACxB,EAAE,UAAApD,GAAU,MAAAqD,GAAM,gBAAgBjD,IAAa,uBAAA,GAC/CM,MAGI,gBAAAL,EAAC,OAAA,EAAI,aAAWgD,GAAM,WAAW1B,EAAO,MAAM,gBAAcvB,GAAY,KAAAM,GACnE,UAAAV,EAAA,CACL;AAGRoD,EAAa,cAAc;AAE3B,MAAME,IAA8BC,EAAoDhD,CAAe,GACjGiD,IAA8BD,EAAiD1C,CAAe,GAC9F4C,IAA4BF,EAA+CvB,CAAa,GACxF0B,IAAiCH,EAAoDhB,CAAkB,GACvGoB,IAAiCJ,EAAoDZ,CAAkB,GACvGiB,IAA2BL,EAA8CX,CAAY,GACrFiB,IAA2BN,EAA8CH,CAAY,GAE9EU,IAAW;AAAA,EACpB,MAAM/D;AAAA,EACN,SAASuD;AAAA,EACT,SAASE;AAAA,EACT,OAAOC;AAAA,EACP,SAASnB;AAAA,EACT,YAAYoB;AAAA,EACZ,YAAYC;AAAA,EACZ,MAAMC;AAAA,EACN,MAAMC;AACV;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import s from "./fondue-
|
|
3
|
-
import { colorToCss as e } from "./fondue-
|
|
2
|
+
import s from "./fondue-components85.js";
|
|
3
|
+
import { colorToCss as e } from "./fondue-components86.js";
|
|
4
4
|
const a = ["default", "positive", "highlight", "warning", "negative"], i = (t) => typeof t == "string" && a.includes(t), p = ({ status: t }) => {
|
|
5
5
|
const o = i(t) ? { "data-status": t } : { style: { backgroundColor: typeof t == "string" ? t : e(t) || "transparent" } };
|
|
6
6
|
return /* @__PURE__ */ r("div", { "data-test-id": "badge-status", className: s.root, ...o });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FOCUS_OUTLINE as t } from "./fondue-
|
|
1
|
+
import { FOCUS_OUTLINE as t } from "./fondue-components88.js";
|
|
2
2
|
import { sv as e } from "./fondue-components38.js";
|
|
3
3
|
const o = e({
|
|
4
4
|
base: `tw-group tw-relative tw-flex tw-flex-row tw-gap-2 tw-items-center tw-justify-center tw-cursor-pointer tw-font-body tw-font-medium tw-box-border tw-whitespace-nowrap tw-transition-colors ${t}`,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FOCUS_OUTLINE as t } from "./fondue-
|
|
1
|
+
import { FOCUS_OUTLINE as t } from "./fondue-components88.js";
|
|
2
2
|
import { sv as e } from "./fondue-components38.js";
|
|
3
3
|
const s = e({
|
|
4
4
|
base: `tw-peer tw-relative tw-inline-flex tw-bg-base tw-text-white tw-shrink-0 tw-rounded tw-border tw-border-line-x-strong group-hover:tw-border-line-xx-strong hover:tw-border-line-xx-strong tw-transition-colors data-[state="checked"]:tw-border-transparent data-[state="indeterminate"]:tw-border-transparent disabled:tw-border-line-strong disabled:tw-bg-base disabled:tw-cursor-not-allowed data-[state="checked"]:disabled:tw-bg-box-disabled-strong data-[readonly="true"]:tw-pointer-events-none ${t}`,
|
|
@@ -2,7 +2,7 @@ import { jsxs as t, jsx as a, Fragment as f } from "react/jsx-runtime";
|
|
|
2
2
|
import { IconDroplet as h, IconCross as I, IconCaretDown as v } from "@frontify/fondue-icons";
|
|
3
3
|
import { forwardRef as k } from "react";
|
|
4
4
|
import { Button as w } from "./fondue-components6.js";
|
|
5
|
-
import s from "./fondue-
|
|
5
|
+
import s from "./fondue-components87.js";
|
|
6
6
|
import { getColorWithName as y, colorToCss as z } from "./fondue-components47.js";
|
|
7
7
|
const c = ({
|
|
8
8
|
id: m,
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
const
|
|
2
|
-
content:
|
|
3
|
-
header:
|
|
4
|
-
footer:
|
|
5
|
-
body:
|
|
6
|
-
underlay:
|
|
7
|
-
sideContent:
|
|
1
|
+
const n = "_content_wdn1z_6", t = "_header_wdn1z_48", e = "_footer_wdn1z_49", o = "_body_wdn1z_50", d = "_underlay_wdn1z_180", _ = "_sideContent_wdn1z_190", s = {
|
|
2
|
+
content: n,
|
|
3
|
+
header: t,
|
|
4
|
+
footer: e,
|
|
5
|
+
body: o,
|
|
6
|
+
underlay: d,
|
|
7
|
+
sideContent: _
|
|
8
8
|
};
|
|
9
9
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
o as body,
|
|
11
|
+
n as content,
|
|
12
|
+
s as default,
|
|
13
|
+
e as footer,
|
|
14
|
+
t as header,
|
|
15
|
+
_ as sideContent,
|
|
16
|
+
d as underlay
|
|
17
17
|
};
|
|
18
18
|
//# sourceMappingURL=fondue-components50.js.map
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
const o = "
|
|
1
|
+
const o = "_root_sv5hj_5", s = "_slot_sv5hj_64", t = "_input_sv5hj_64", c = "_placeholder_sv5hj_69", n = "_iconSuccess_sv5hj_139", _ = "_iconError_sv5hj_147", r = "_loadingStatus_sv5hj_160", p = "_inputWrapper_sv5hj_196", e = {
|
|
2
2
|
root: o,
|
|
3
|
-
slot:
|
|
4
|
-
input:
|
|
5
|
-
placeholder:
|
|
6
|
-
iconSuccess:
|
|
3
|
+
slot: s,
|
|
4
|
+
input: t,
|
|
5
|
+
placeholder: c,
|
|
6
|
+
iconSuccess: n,
|
|
7
7
|
iconError: _,
|
|
8
|
-
loadingStatus:
|
|
9
|
-
inputWrapper:
|
|
8
|
+
loadingStatus: r,
|
|
9
|
+
inputWrapper: p
|
|
10
10
|
};
|
|
11
11
|
export {
|
|
12
|
-
|
|
12
|
+
e as default,
|
|
13
13
|
_ as iconError,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
n as iconSuccess,
|
|
15
|
+
t as input,
|
|
16
|
+
p as inputWrapper,
|
|
17
|
+
r as loadingStatus,
|
|
18
|
+
c as placeholder,
|
|
19
19
|
o as root,
|
|
20
|
-
|
|
20
|
+
s as slot
|
|
21
21
|
};
|
|
22
22
|
//# sourceMappingURL=fondue-components81.js.map
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
const
|
|
1
|
+
const o = "_root_b0bc4_2", t = {
|
|
2
|
+
root: o
|
|
3
|
+
};
|
|
2
4
|
export {
|
|
3
|
-
t as
|
|
5
|
+
t as default,
|
|
6
|
+
o as root
|
|
4
7
|
};
|
|
5
8
|
//# sourceMappingURL=fondue-components85.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components85.js","sources":[
|
|
1
|
+
{"version":3,"file":"fondue-components85.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
|
@@ -1,20 +1,8 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
caret: t,
|
|
5
|
-
colorName: _,
|
|
6
|
-
button: n,
|
|
7
|
-
colorIndicator: e,
|
|
8
|
-
actions: r
|
|
1
|
+
const r = (e) => {
|
|
2
|
+
if (e)
|
|
3
|
+
return `rgba(${e.red}, ${e.green}, ${e.blue}, ${e.alpha ?? 1})`;
|
|
9
4
|
};
|
|
10
5
|
export {
|
|
11
|
-
r as
|
|
12
|
-
n as button,
|
|
13
|
-
t as caret,
|
|
14
|
-
c as clearIcon,
|
|
15
|
-
e as colorIndicator,
|
|
16
|
-
_ as colorName,
|
|
17
|
-
a as default,
|
|
18
|
-
o as root
|
|
6
|
+
r as colorToCss
|
|
19
7
|
};
|
|
20
8
|
//# sourceMappingURL=fondue-components86.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components86.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fondue-components86.js","sources":["../src/components/Badge/utils.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { type RgbaColor } from './types';\n\nexport const DEFAULT_COLOR = { red: 255, green: 255, blue: 255, alpha: 1, name: '' };\n\n/**\n * Converts a color object to a CSS color string.\n * @param {RgbaColor} color - The color object to be converted.\n * @returns {string}\n * @example\n * colorToCss({ red: 255, green: 255, blue: 255, alpha: 1 }); // 'rgba(255, 255, 255, 1)'\n * @example\n * colorToCss({ red: 255, green: 87, blue: 51, alpha: 1 }); // 'rgba(255, 87, 51, 1)'\n * @example\n * colorToCss({ red: 0, green: 0, blue: 0, alpha: 0 }); // 'rgba(0, 0, 0, 0)'\n */\nexport const colorToCss = (color?: RgbaColor) => {\n if (!color) {\n return undefined;\n }\n return `rgba(${color.red}, ${color.green}, ${color.blue}, ${color.alpha ?? 1})`;\n};\n"],"names":["colorToCss","color"],"mappings":"AAiBO,MAAMA,IAAa,CAACC,MAAsB;AAC7C,MAAKA;AAGL,WAAO,QAAQA,EAAM,GAAG,KAAKA,EAAM,KAAK,KAAKA,EAAM,IAAI,KAAKA,EAAM,SAAS,CAAC;AAChF;"}
|
|
@@ -1,8 +1,20 @@
|
|
|
1
|
-
const o = "
|
|
2
|
-
root: o
|
|
1
|
+
const o = "_root_3jye8_5", c = "_clearIcon_3jye8_35", t = "_caret_3jye8_52", _ = "_colorName_3jye8_72", n = "_button_3jye8_93", e = "_colorIndicator_3jye8_105", r = "_actions_3jye8_124", a = {
|
|
2
|
+
root: o,
|
|
3
|
+
clearIcon: c,
|
|
4
|
+
caret: t,
|
|
5
|
+
colorName: _,
|
|
6
|
+
button: n,
|
|
7
|
+
colorIndicator: e,
|
|
8
|
+
actions: r
|
|
3
9
|
};
|
|
4
10
|
export {
|
|
5
|
-
|
|
11
|
+
r as actions,
|
|
12
|
+
n as button,
|
|
13
|
+
t as caret,
|
|
14
|
+
c as clearIcon,
|
|
15
|
+
e as colorIndicator,
|
|
16
|
+
_ as colorName,
|
|
17
|
+
a as default,
|
|
6
18
|
o as root
|
|
7
19
|
};
|
|
8
20
|
//# sourceMappingURL=fondue-components87.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components87.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fondue-components87.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
const
|
|
2
|
-
if (e)
|
|
3
|
-
return `rgba(${e.red}, ${e.green}, ${e.blue}, ${e.alpha ?? 1})`;
|
|
4
|
-
};
|
|
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";
|
|
5
2
|
export {
|
|
6
|
-
|
|
3
|
+
t as FOCUS_OUTLINE
|
|
7
4
|
};
|
|
8
5
|
//# sourceMappingURL=fondue-components88.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components88.js","sources":["../src/
|
|
1
|
+
{"version":3,"file":"fondue-components88.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;"}
|