@frontify/fondue-components 25.0.0-rc.2 → 25.0.0-rc.3
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-components.js +56 -52
- package/dist/fondue-components.js.map +1 -1
- package/dist/fondue-components10.js +24 -34
- package/dist/fondue-components10.js.map +1 -1
- package/dist/fondue-components11.js +3 -3
- package/dist/fondue-components12.js +2 -2
- package/dist/fondue-components13.js +4 -4
- package/dist/fondue-components14.js +2 -2
- package/dist/fondue-components15.js +2 -2
- package/dist/fondue-components16.js +22 -23
- package/dist/fondue-components16.js.map +1 -1
- package/dist/fondue-components17.js +3 -3
- package/dist/fondue-components18.js +24 -19
- package/dist/fondue-components18.js.map +1 -1
- package/dist/fondue-components19.js +1 -1
- package/dist/fondue-components20.js +46 -17
- package/dist/fondue-components20.js.map +1 -1
- package/dist/fondue-components21.js +72 -73
- package/dist/fondue-components21.js.map +1 -1
- package/dist/fondue-components22.js +18 -36
- package/dist/fondue-components22.js.map +1 -1
- package/dist/fondue-components23.js +71 -50
- package/dist/fondue-components23.js.map +1 -1
- package/dist/fondue-components24.js +36 -138
- package/dist/fondue-components24.js.map +1 -1
- package/dist/fondue-components25.js +50 -50
- package/dist/fondue-components25.js.map +1 -1
- package/dist/fondue-components26.js +137 -99
- package/dist/fondue-components26.js.map +1 -1
- package/dist/fondue-components27.js +48 -26
- package/dist/fondue-components27.js.map +1 -1
- package/dist/fondue-components28.js +92 -188
- package/dist/fondue-components28.js.map +1 -1
- package/dist/fondue-components29.js +30 -134
- package/dist/fondue-components29.js.map +1 -1
- package/dist/fondue-components3.js +1 -1
- package/dist/fondue-components30.js +191 -126
- package/dist/fondue-components30.js.map +1 -1
- package/dist/fondue-components31.js +134 -30
- package/dist/fondue-components31.js.map +1 -1
- package/dist/fondue-components32.js +130 -64
- package/dist/fondue-components32.js.map +1 -1
- package/dist/fondue-components33.js +31 -114
- package/dist/fondue-components33.js.map +1 -1
- package/dist/fondue-components34.js +64 -36
- package/dist/fondue-components34.js.map +1 -1
- package/dist/fondue-components35.js +111 -53
- package/dist/fondue-components35.js.map +1 -1
- package/dist/fondue-components36.js +36 -20
- package/dist/fondue-components36.js.map +1 -1
- package/dist/fondue-components37.js +57 -23
- package/dist/fondue-components37.js.map +1 -1
- package/dist/fondue-components38.js +20 -7
- package/dist/fondue-components38.js.map +1 -1
- package/dist/fondue-components39.js +23 -6
- package/dist/fondue-components39.js.map +1 -1
- package/dist/fondue-components4.js +3 -3
- package/dist/fondue-components40.js +8 -32
- package/dist/fondue-components40.js.map +1 -1
- package/dist/fondue-components41.js +5 -3
- package/dist/fondue-components41.js.map +1 -1
- package/dist/fondue-components42.js +41 -20
- package/dist/fondue-components42.js.map +1 -1
- package/dist/fondue-components43.js +5 -155
- package/dist/fondue-components43.js.map +1 -1
- package/dist/fondue-components44.js +5 -118
- package/dist/fondue-components44.js.map +1 -1
- package/dist/fondue-components45.js +13 -118
- package/dist/fondue-components45.js.map +1 -1
- package/dist/fondue-components46.js +30 -19
- package/dist/fondue-components46.js.map +1 -1
- package/dist/fondue-components47.js +54 -32
- package/dist/fondue-components47.js.map +1 -1
- package/dist/fondue-components48.js +125 -48
- package/dist/fondue-components48.js.map +1 -1
- package/dist/fondue-components49.js +20 -130
- package/dist/fondue-components49.js.map +1 -1
- package/dist/fondue-components5.js +2 -2
- package/dist/fondue-components50.js +53 -21
- package/dist/fondue-components50.js.map +1 -1
- package/dist/fondue-components51.js +8 -53
- package/dist/fondue-components51.js.map +1 -1
- package/dist/fondue-components52.js +13 -8
- package/dist/fondue-components52.js.map +1 -1
- package/dist/fondue-components53.js +15 -13
- package/dist/fondue-components53.js.map +1 -1
- package/dist/fondue-components54.js +4 -14
- package/dist/fondue-components54.js.map +1 -1
- package/dist/fondue-components55.js +18 -5
- package/dist/fondue-components55.js.map +1 -1
- package/dist/fondue-components56.js +19 -60
- package/dist/fondue-components56.js.map +1 -1
- package/dist/fondue-components57.js +5 -18
- package/dist/fondue-components57.js.map +1 -1
- package/dist/fondue-components58.js +12 -18
- package/dist/fondue-components58.js.map +1 -1
- package/dist/fondue-components59.js +1 -1
- package/dist/fondue-components6.js +29 -28
- package/dist/fondue-components6.js.map +1 -1
- package/dist/fondue-components60.js +19 -13
- package/dist/fondue-components60.js.map +1 -1
- package/dist/fondue-components61.js +17 -4
- package/dist/fondue-components61.js.map +1 -1
- package/dist/fondue-components62.js +9 -16
- package/dist/fondue-components62.js.map +1 -1
- package/dist/fondue-components63.js +36 -10
- package/dist/fondue-components63.js.map +1 -1
- package/dist/fondue-components64.js +6 -36
- package/dist/fondue-components64.js.map +1 -1
- package/dist/fondue-components65.js +5 -35
- package/dist/fondue-components65.js.map +1 -1
- package/dist/fondue-components66.js +11 -3
- package/dist/fondue-components66.js.map +1 -1
- package/dist/fondue-components67.js +8 -12
- package/dist/fondue-components67.js.map +1 -1
- package/dist/fondue-components68.js +12 -4
- package/dist/fondue-components68.js.map +1 -1
- package/dist/fondue-components69.js +4 -24
- package/dist/fondue-components69.js.map +1 -1
- package/dist/fondue-components7.js +39 -36
- package/dist/fondue-components7.js.map +1 -1
- package/dist/fondue-components70.js +24 -16
- package/dist/fondue-components70.js.map +1 -1
- package/dist/fondue-components71.js +16 -151
- package/dist/fondue-components71.js.map +1 -1
- package/dist/fondue-components72.js +152 -19
- package/dist/fondue-components72.js.map +1 -1
- package/dist/fondue-components73.js +19 -79
- package/dist/fondue-components73.js.map +1 -1
- package/dist/fondue-components74.js +79 -8
- package/dist/fondue-components74.js.map +1 -1
- package/dist/fondue-components75.js +8 -37
- package/dist/fondue-components75.js.map +1 -1
- package/dist/fondue-components76.js +36 -70
- package/dist/fondue-components76.js.map +1 -1
- package/dist/fondue-components77.js +70 -10
- package/dist/fondue-components77.js.map +1 -1
- package/dist/fondue-components78.js +8 -8
- package/dist/fondue-components79.js +10 -12
- package/dist/fondue-components79.js.map +1 -1
- package/dist/fondue-components8.js +5 -5
- package/dist/fondue-components80.js +6 -12
- package/dist/fondue-components80.js.map +1 -1
- package/dist/fondue-components81.js +12 -22
- package/dist/fondue-components81.js.map +1 -1
- package/dist/fondue-components82.js +23 -34
- package/dist/fondue-components82.js.map +1 -1
- package/dist/fondue-components83.js +34 -11
- package/dist/fondue-components83.js.map +1 -1
- package/dist/fondue-components84.js +10 -67
- package/dist/fondue-components84.js.map +1 -1
- package/dist/fondue-components85.js +67 -14
- package/dist/fondue-components85.js.map +1 -1
- package/dist/fondue-components86.js +13 -23
- package/dist/fondue-components86.js.map +1 -1
- package/dist/fondue-components87.js +23 -17
- package/dist/fondue-components87.js.map +1 -1
- package/dist/fondue-components88.js +18 -24
- package/dist/fondue-components88.js.map +1 -1
- package/dist/fondue-components89.js +24 -8
- package/dist/fondue-components89.js.map +1 -1
- package/dist/fondue-components9.js +5 -5
- package/dist/fondue-components90.js +8 -19
- package/dist/fondue-components90.js.map +1 -1
- package/dist/fondue-components91.js +20 -6
- package/dist/fondue-components91.js.map +1 -1
- package/dist/fondue-components92.js +4 -14
- package/dist/fondue-components92.js.map +1 -1
- package/dist/fondue-components93.js +5 -2
- package/dist/fondue-components93.js.map +1 -1
- package/dist/fondue-components94.js +4 -4
- package/dist/fondue-components94.js.map +1 -1
- package/dist/fondue-components95.js +16 -4
- package/dist/fondue-components95.js.map +1 -1
- package/dist/fondue-components96.js +1 -1
- package/dist/fondue-components97.js +2 -2
- package/dist/index.d.ts +86 -0
- package/dist/style.css +1 -1
- package/package.json +13 -12
|
@@ -2,71 +2,75 @@
|
|
|
2
2
|
import { Accordion as t } from "./fondue-components3.js";
|
|
3
3
|
import { Badge as m } from "./fondue-components4.js";
|
|
4
4
|
import { Box as f } from "./fondue-components5.js";
|
|
5
|
-
import { Button as
|
|
6
|
-
import { Checkbox as
|
|
7
|
-
import { ColorPicker as
|
|
5
|
+
import { Button as a } from "./fondue-components6.js";
|
|
6
|
+
import { Checkbox as l } from "./fondue-components7.js";
|
|
7
|
+
import { ColorPicker as c } from "./fondue-components8.js";
|
|
8
8
|
import { Dialog as g } from "./fondue-components9.js";
|
|
9
9
|
import { Divider as S } from "./fondue-components10.js";
|
|
10
10
|
import { Dropdown as B } from "./fondue-components11.js";
|
|
11
|
-
import { Flex as
|
|
11
|
+
import { Flex as L } from "./fondue-components12.js";
|
|
12
12
|
import { Flyout as k } from "./fondue-components13.js";
|
|
13
|
-
import { Grid as
|
|
14
|
-
import { Heading as
|
|
13
|
+
import { Grid as v } from "./fondue-components14.js";
|
|
14
|
+
import { Heading as F } from "./fondue-components15.js";
|
|
15
15
|
import { Label as w } from "./fondue-components16.js";
|
|
16
|
-
import { Link as
|
|
17
|
-
import { LoadingBar as
|
|
18
|
-
import { LoadingCircle as
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
16
|
+
import { Link as R } from "./fondue-components17.js";
|
|
17
|
+
import { LoadingBar as G } from "./fondue-components18.js";
|
|
18
|
+
import { LoadingCircle as I } from "./fondue-components19.js";
|
|
19
|
+
import { Notice as j } from "./fondue-components20.js";
|
|
20
|
+
import { RadioList as z } from "./fondue-components21.js";
|
|
21
|
+
import { RouterProvider as J } from "./fondue-components22.js";
|
|
22
|
+
import { ScrollArea as M } from "./fondue-components23.js";
|
|
23
|
+
import { Section as Q } from "./fondue-components24.js";
|
|
24
|
+
import { SegmentedControl as V } from "./fondue-components25.js";
|
|
25
|
+
import { Select as X } from "./fondue-components26.js";
|
|
26
|
+
import { Slider as Z } from "./fondue-components27.js";
|
|
27
|
+
import { SplitButton as $ } from "./fondue-components28.js";
|
|
28
|
+
import { Switch as ro } from "./fondue-components29.js";
|
|
29
|
+
import { Table as to } from "./fondue-components30.js";
|
|
30
|
+
import { Tag as mo } from "./fondue-components31.js";
|
|
31
|
+
import { Tabs as fo } from "./fondue-components32.js";
|
|
32
|
+
import { Text as ao } from "./fondue-components33.js";
|
|
33
|
+
import { TextInput as no } from "./fondue-components34.js";
|
|
34
|
+
import { Textarea as To } from "./fondue-components35.js";
|
|
35
|
+
import { ThemeContext as uo, ThemeProvider as So, useFondueTheme as ho } from "./fondue-components36.js";
|
|
36
|
+
import { Tooltip as Co } from "./fondue-components37.js";
|
|
35
37
|
export {
|
|
36
38
|
t as Accordion,
|
|
37
39
|
m as Badge,
|
|
38
40
|
f as Box,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
41
|
+
a as Button,
|
|
42
|
+
l as Checkbox,
|
|
43
|
+
c as ColorPicker,
|
|
42
44
|
g as Dialog,
|
|
43
45
|
S as Divider,
|
|
44
46
|
B as Dropdown,
|
|
45
|
-
|
|
47
|
+
L as Flex,
|
|
46
48
|
k as Flyout,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
+
v as Grid,
|
|
50
|
+
F as Heading,
|
|
49
51
|
w as Label,
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
Q as
|
|
58
|
-
V as
|
|
59
|
-
X as
|
|
60
|
-
Z as
|
|
61
|
-
$ as
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
To as
|
|
69
|
-
uo as
|
|
70
|
-
|
|
52
|
+
R as Link,
|
|
53
|
+
G as LoadingBar,
|
|
54
|
+
I as LoadingCircle,
|
|
55
|
+
j as Notice,
|
|
56
|
+
z as RadioList,
|
|
57
|
+
J as RouterProvider,
|
|
58
|
+
M as ScrollArea,
|
|
59
|
+
Q as Section,
|
|
60
|
+
V as SegmentedControl,
|
|
61
|
+
X as Select,
|
|
62
|
+
Z as Slider,
|
|
63
|
+
$ as SplitButton,
|
|
64
|
+
ro as Switch,
|
|
65
|
+
to as Table,
|
|
66
|
+
fo as Tabs,
|
|
67
|
+
mo as Tag,
|
|
68
|
+
ao as Text,
|
|
69
|
+
no as TextInput,
|
|
70
|
+
To as Textarea,
|
|
71
|
+
uo as ThemeContext,
|
|
72
|
+
So as ThemeProvider,
|
|
73
|
+
Co as Tooltip,
|
|
74
|
+
ho as useFondueTheme
|
|
71
75
|
};
|
|
72
76
|
//# sourceMappingURL=fondue-components.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fondue-components.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,42 +1,32 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
import { dividerStyles as h } from "./fondue-components56.js";
|
|
7
|
-
const u = l(
|
|
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 c from "./fondue-components54.js";
|
|
5
|
+
const u = f(
|
|
8
6
|
({
|
|
9
|
-
"data-test-id":
|
|
10
|
-
direction:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
7
|
+
"data-test-id": a = "fondue-divider",
|
|
8
|
+
direction: o = "horizontal",
|
|
9
|
+
padding: r = "medium",
|
|
10
|
+
className: d = "",
|
|
11
|
+
variant: i = "solid",
|
|
12
|
+
color: e = "default",
|
|
13
|
+
as: m = "div",
|
|
14
|
+
decorative: s
|
|
17
15
|
}, n) => {
|
|
18
|
-
const
|
|
19
|
-
return /* @__PURE__ */
|
|
20
|
-
|
|
16
|
+
const l = m;
|
|
17
|
+
return /* @__PURE__ */ t(
|
|
18
|
+
p.Root,
|
|
21
19
|
{
|
|
22
20
|
ref: n,
|
|
23
|
-
className:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
c.root,
|
|
31
|
-
d
|
|
32
|
-
),
|
|
33
|
-
"data-variant": o,
|
|
34
|
-
"data-color": t,
|
|
35
|
-
"data-test-id": i,
|
|
36
|
-
decorative: m,
|
|
37
|
-
"data-orientation": r,
|
|
21
|
+
className: `${c.root} ${d}`,
|
|
22
|
+
"data-variant": i,
|
|
23
|
+
"data-color": e,
|
|
24
|
+
"data-padding": r,
|
|
25
|
+
"data-test-id": a,
|
|
26
|
+
decorative: s,
|
|
27
|
+
"data-orientation": o,
|
|
38
28
|
asChild: !0,
|
|
39
|
-
children: /* @__PURE__ */
|
|
29
|
+
children: /* @__PURE__ */ t(l, {})
|
|
40
30
|
}
|
|
41
31
|
);
|
|
42
32
|
}
|
|
@@ -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
|
|
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 styles from './styles/divider.module.scss';\n\ntype DividerStyle = 'noline' | 'dashed' | 'solid';\ntype DividerPadding = 'none' | 'small' | 'medium' | 'large';\ntype DividerDirection = 'horizontal' | 'vertical';\ntype DividerColor = 'weak' | 'default' | '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 padding = 'medium',\n className = '',\n variant = 'solid',\n color = 'default',\n as = 'div',\n decorative,\n }: DividerProps,\n ref: ForwardedRef<HTMLDivElement | null>,\n ): ReactElement => {\n const Component = as;\n\n return (\n <Separator.Root\n ref={ref}\n className={`${styles.root} ${className}`}\n data-variant={variant}\n data-color={color}\n data-padding={padding}\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","padding","className","variant","color","as","decorative","ref","Component","jsx","Separator","styles"],"mappings":";;;;AAgDO,MAAMA,IAAUC;AAAA,EACnB,CACI;AAAA,IACI,gBAAgBC,IAAa;AAAA,IAC7B,WAAAC,IAAY;AAAA,IACZ,SAAAC,IAAU;AAAA,IACV,WAAAC,IAAY;AAAA,IACZ,SAAAC,IAAU;AAAA,IACV,OAAAC,IAAQ;AAAA,IACR,IAAAC,IAAK;AAAA,IACL,YAAAC;AAAA,EAAA,GAEJC,MACe;AACf,UAAMC,IAAYH;AAElB,WACI,gBAAAI;AAAA,MAACC,EAAU;AAAA,MAAV;AAAA,QACG,KAAAH;AAAA,QACA,WAAW,GAAGI,EAAO,IAAI,IAAIT,CAAS;AAAA,QACtC,gBAAcC;AAAA,QACd,cAAYC;AAAA,QACZ,gBAAcH;AAAA,QACd,gBAAcF;AAAA,QACd,YAAAO;AAAA,QACA,oBAAkBN;AAAA,QAClB,SAAO;AAAA,QAEP,4BAACQ,GAAA,CAAA,CAAU;AAAA,MAAA;AAAA,IAAA;AAAA,EAGvB;AACJ;AAEAX,EAAQ,cAAc;"}
|
|
@@ -2,9 +2,9 @@ import { jsx as d, jsxs as S } from "react/jsx-runtime";
|
|
|
2
2
|
import { IconCaretRight as x } from "@frontify/fondue-icons";
|
|
3
3
|
import * as a from "@radix-ui/react-dropdown-menu";
|
|
4
4
|
import { forwardRef as i, useRef as R, useMemo as _, Children as j } from "react";
|
|
5
|
-
import { useFondueTheme as C, ThemeProvider as F } from "./fondue-
|
|
6
|
-
import { useProcessedChildren as I } from "./fondue-
|
|
7
|
-
import u from "./fondue-
|
|
5
|
+
import { useFondueTheme as C, ThemeProvider as F } from "./fondue-components36.js";
|
|
6
|
+
import { useProcessedChildren as I } from "./fondue-components55.js";
|
|
7
|
+
import u from "./fondue-components56.js";
|
|
8
8
|
const T = ({
|
|
9
9
|
children: t,
|
|
10
10
|
open: o,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as n } from "react";
|
|
3
|
-
import { propsToCssVariables as y } from "./fondue-
|
|
4
|
-
import x from "./fondue-
|
|
3
|
+
import { propsToCssVariables as y } from "./fondue-components42.js";
|
|
4
|
+
import x from "./fondue-components57.js";
|
|
5
5
|
const u = n(
|
|
6
6
|
({
|
|
7
7
|
as: a = "div",
|
|
@@ -2,11 +2,11 @@ import { jsx as e, jsxs as m } from "react/jsx-runtime";
|
|
|
2
2
|
import { IconCross as x } from "@frontify/fondue-icons";
|
|
3
3
|
import * as l from "@radix-ui/react-popover";
|
|
4
4
|
import { forwardRef as i } from "react";
|
|
5
|
-
import { useTranslation as I } from "./fondue-
|
|
6
|
-
import { addAutoFocusAttribute as _, addShowFocusRing as B } from "./fondue-
|
|
5
|
+
import { useTranslation as I } from "./fondue-components39.js";
|
|
6
|
+
import { addAutoFocusAttribute as _, addShowFocusRing as B } from "./fondue-components52.js";
|
|
7
7
|
import { Button as O } from "./fondue-components6.js";
|
|
8
|
-
import { useFondueTheme as S, ThemeProvider as j } from "./fondue-
|
|
9
|
-
import u from "./fondue-
|
|
8
|
+
import { useFondueTheme as S, ThemeProvider as j } from "./fondue-components36.js";
|
|
9
|
+
import u from "./fondue-components58.js";
|
|
10
10
|
const f = ({ children: t, ...o }) => /* @__PURE__ */ e(l.Root, { ...o, children: t });
|
|
11
11
|
f.displayName = "Flyout.Root";
|
|
12
12
|
const y = ({ asChild: t = !0, children: o, "data-test-id": a = "fondue-flyout-trigger", ...r }, d) => /* @__PURE__ */ e(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as f } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as y } from "react";
|
|
3
|
-
import { propsToCssVariables as n } from "./fondue-
|
|
4
|
-
import u from "./fondue-
|
|
3
|
+
import { propsToCssVariables as n } from "./fondue-components42.js";
|
|
4
|
+
import u from "./fondue-components59.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
|
-
import { cn as x } from "./fondue-
|
|
4
|
-
import a from "./fondue-
|
|
3
|
+
import { cn as x } from "./fondue-components60.js";
|
|
4
|
+
import a from "./fondue-components61.js";
|
|
5
5
|
const $ = g(
|
|
6
6
|
({
|
|
7
7
|
as: e = "span",
|
|
@@ -1,39 +1,38 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import * as
|
|
1
|
+
import { jsxs as f, jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import * as m from "@radix-ui/react-label";
|
|
3
3
|
import { forwardRef as b, useRef as p, useLayoutEffect as x } from "react";
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
const n = p(null);
|
|
4
|
+
import a from "./fondue-components62.js";
|
|
5
|
+
const A = ({ className: o, "data-test-id": l = "fondue-label", children: i, variant: u = "default", ...n }, c) => {
|
|
6
|
+
const s = p(null);
|
|
8
7
|
return x(() => {
|
|
9
|
-
var
|
|
10
|
-
const e = (
|
|
8
|
+
var r;
|
|
9
|
+
const e = (r = s.current) == null ? void 0 : r.querySelectorAll("button,input,a,[tabindex]");
|
|
11
10
|
if (e)
|
|
12
11
|
for (const t of e)
|
|
13
12
|
t.setAttribute("tabindex", "-1"), t.setAttribute("id", ""), t.setAttribute("data-test-id", "");
|
|
14
|
-
}, []), /* @__PURE__ */
|
|
15
|
-
|
|
13
|
+
}, []), /* @__PURE__ */ f(
|
|
14
|
+
m.Root,
|
|
16
15
|
{
|
|
17
|
-
ref:
|
|
18
|
-
"data-required":
|
|
19
|
-
"data-variant":
|
|
20
|
-
className:
|
|
21
|
-
"data-test-id":
|
|
16
|
+
ref: c,
|
|
17
|
+
"data-required": n.required,
|
|
18
|
+
"data-variant": u,
|
|
19
|
+
className: o ? `${a.root} ${o}` : a.root,
|
|
20
|
+
"data-test-id": l,
|
|
22
21
|
onClick: (e) => {
|
|
23
|
-
const
|
|
22
|
+
const r = e.target.getAttribute("for"), t = r ? document.getElementById(r) : null;
|
|
24
23
|
t && t.getAttribute("role") === "combobox" && (e.preventDefault(), e.stopPropagation(), t.click());
|
|
25
24
|
},
|
|
26
|
-
...
|
|
25
|
+
...n,
|
|
27
26
|
children: [
|
|
28
|
-
/* @__PURE__ */
|
|
29
|
-
/* @__PURE__ */
|
|
27
|
+
/* @__PURE__ */ d("span", { className: `${a.hiddenText} ${a.contentArea}`, "aria-hidden": "true", ref: s, children: i }),
|
|
28
|
+
/* @__PURE__ */ d("span", { className: `${a.visibleText} ${a.contentArea}`, children: i })
|
|
30
29
|
]
|
|
31
30
|
}
|
|
32
31
|
);
|
|
33
|
-
},
|
|
34
|
-
|
|
32
|
+
}, g = b(A);
|
|
33
|
+
g.displayName = "Label";
|
|
35
34
|
export {
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
g as Label,
|
|
36
|
+
A as LabelComponent
|
|
38
37
|
};
|
|
39
38
|
//# sourceMappingURL=fondue-components16.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components16.js","sources":["../src/components/Label/Label.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport * as LabelPrimitive from '@radix-ui/react-label';\nimport { type ForwardedRef, forwardRef, type MouseEventHandler, type ReactNode, useRef, useLayoutEffect } from 'react';\n\nimport
|
|
1
|
+
{"version":3,"file":"fondue-components16.js","sources":["../src/components/Label/Label.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport * as LabelPrimitive from '@radix-ui/react-label';\nimport { type ForwardedRef, forwardRef, type MouseEventHandler, type ReactNode, useRef, useLayoutEffect } from 'react';\n\nimport styles from './styles/label.module.scss';\n\ntype LabelVariant = 'default' | 'strong';\n\nexport type LabelProps = {\n id?: string;\n children: ReactNode;\n /**\n * The id of the input element the label is associated with\n */\n htmlFor: string;\n /**\n * Add an asterisk to the label to indicate it is required\n * @default false\n */\n required?: boolean;\n /**\n * The variant of the label\n * @default \"default\"\n */\n variant?: LabelVariant;\n className?: string;\n onClick?: MouseEventHandler<HTMLLabelElement>;\n 'data-test-id'?: string;\n};\n\nexport const LabelComponent = (\n { className, 'data-test-id': dataTestId = 'fondue-label', children, variant = 'default', ...props }: LabelProps,\n ref: ForwardedRef<HTMLLabelElement>,\n) => {\n const hiddenTextRef = useRef<HTMLSpanElement>(null);\n\n useLayoutEffect(() => {\n // prevent duplicated interactive elements within the hidden element\n const interactiveElements = hiddenTextRef.current?.querySelectorAll('button,input,a,[tabindex]');\n if (interactiveElements) {\n for (const element of interactiveElements) {\n element.setAttribute('tabindex', '-1');\n element.setAttribute('id', '');\n element.setAttribute('data-test-id', '');\n }\n }\n }, []);\n\n return (\n <LabelPrimitive.Root\n ref={ref}\n data-required={props.required}\n data-variant={variant}\n className={className ? `${styles.root} ${className}` : styles.root}\n data-test-id={dataTestId}\n onClick={(event) => {\n // Add support of Select component, Radix only allows native `select`\n // but we use `div[role=combobox]` because of downshift\n // https://github.com/radix-ui/primitives/blob/6e75e117977c9e6ffa939e6951a707f16ba0f95e/packages/react/label/src/label.tsx#L22\n const targetId = (event.target as HTMLElement).getAttribute('for');\n const target = targetId ? document.getElementById(targetId) : null;\n\n if (target && target.getAttribute('role') === 'combobox') {\n event.preventDefault();\n event.stopPropagation();\n target.click();\n }\n }}\n {...props}\n >\n {/* Hidden version with medium font weight to reserve space */}\n <span className={`${styles.hiddenText} ${styles.contentArea}`} aria-hidden=\"true\" ref={hiddenTextRef}>\n {children}\n </span>\n {/* Visible version (inherits all styling from parent) */}\n <span className={`${styles.visibleText} ${styles.contentArea}`}>{children}</span>\n </LabelPrimitive.Root>\n );\n};\n\nexport const Label = forwardRef<HTMLLabelElement, LabelProps>(LabelComponent);\nLabel.displayName = 'Label';\n"],"names":["LabelComponent","className","dataTestId","children","variant","props","ref","hiddenTextRef","useRef","useLayoutEffect","interactiveElements","_a","element","jsxs","LabelPrimitive","styles","event","targetId","target","jsx","Label","forwardRef"],"mappings":";;;;AA+BO,MAAMA,IAAiB,CAC1B,EAAE,WAAAC,GAAW,gBAAgBC,IAAa,gBAAgB,UAAAC,GAAU,SAAAC,IAAU,WAAW,GAAGC,EAAA,GAC5FC,MACC;AACD,QAAMC,IAAgBC,EAAwB,IAAI;AAElD,SAAAC,EAAgB,MAAM;;AAElB,UAAMC,KAAsBC,IAAAJ,EAAc,YAAd,gBAAAI,EAAuB,iBAAiB;AACpE,QAAID;AACA,iBAAWE,KAAWF;AAClB,QAAAE,EAAQ,aAAa,YAAY,IAAI,GACrCA,EAAQ,aAAa,MAAM,EAAE,GAC7BA,EAAQ,aAAa,gBAAgB,EAAE;AAAA,EAGnD,GAAG,CAAA,CAAE,GAGD,gBAAAC;AAAA,IAACC,EAAe;AAAA,IAAf;AAAA,MACG,KAAAR;AAAA,MACA,iBAAeD,EAAM;AAAA,MACrB,gBAAcD;AAAA,MACd,WAAWH,IAAY,GAAGc,EAAO,IAAI,IAAId,CAAS,KAAKc,EAAO;AAAA,MAC9D,gBAAcb;AAAA,MACd,SAAS,CAACc,MAAU;AAIhB,cAAMC,IAAYD,EAAM,OAAuB,aAAa,KAAK,GAC3DE,IAASD,IAAW,SAAS,eAAeA,CAAQ,IAAI;AAE9D,QAAIC,KAAUA,EAAO,aAAa,MAAM,MAAM,eAC1CF,EAAM,eAAA,GACNA,EAAM,gBAAA,GACNE,EAAO,MAAA;AAAA,MAEf;AAAA,MACC,GAAGb;AAAA,MAGJ,UAAA;AAAA,QAAA,gBAAAc,EAAC,QAAA,EAAK,WAAW,GAAGJ,EAAO,UAAU,IAAIA,EAAO,WAAW,IAAI,eAAY,QAAO,KAAKR,GAClF,UAAAJ,GACL;AAAA,QAEA,gBAAAgB,EAAC,QAAA,EAAK,WAAW,GAAGJ,EAAO,WAAW,IAAIA,EAAO,WAAW,IAAK,UAAAZ,EAAA,CAAS;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGtF,GAEaiB,IAAQC,EAAyCrB,CAAc;AAC5EoB,EAAM,cAAc;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as C } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as D, useCallback as H } from "react";
|
|
3
|
-
import { cn as L } from "./fondue-
|
|
4
|
-
import { useFondueRouter as N } from "./fondue-
|
|
5
|
-
import o from "./fondue-
|
|
3
|
+
import { cn as L } from "./fondue-components60.js";
|
|
4
|
+
import { useFondueRouter as N } from "./fondue-components22.js";
|
|
5
|
+
import o from "./fondue-components63.js";
|
|
6
6
|
const R = D(
|
|
7
7
|
({
|
|
8
8
|
id: c,
|
|
@@ -1,22 +1,25 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import
|
|
5
|
-
const
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import * as o from "@radix-ui/react-progress";
|
|
3
|
+
import { forwardRef as c } from "react";
|
|
4
|
+
import d from "./fondue-components64.js";
|
|
5
|
+
const g = c(
|
|
6
6
|
({
|
|
7
7
|
value: a,
|
|
8
8
|
max: r = 100,
|
|
9
|
-
rounded:
|
|
10
|
-
variant:
|
|
11
|
-
size:
|
|
12
|
-
"data-test-id":
|
|
9
|
+
rounded: e = !0,
|
|
10
|
+
variant: i = "default",
|
|
11
|
+
size: n = "medium",
|
|
12
|
+
"data-test-id": s = "fondue-loading-bar",
|
|
13
13
|
...l
|
|
14
|
-
},
|
|
15
|
-
|
|
14
|
+
}, m) => /* @__PURE__ */ t(
|
|
15
|
+
o.Root,
|
|
16
16
|
{
|
|
17
|
-
ref:
|
|
18
|
-
"data-test-id":
|
|
19
|
-
className:
|
|
17
|
+
ref: m,
|
|
18
|
+
"data-test-id": s,
|
|
19
|
+
className: d.container,
|
|
20
|
+
"data-rounded": e,
|
|
21
|
+
"data-size": n,
|
|
22
|
+
"data-variant": i,
|
|
20
23
|
"aria-busy": a !== r,
|
|
21
24
|
value: a,
|
|
22
25
|
max: r,
|
|
@@ -26,17 +29,19 @@ const p = m(
|
|
|
26
29
|
"--loading-bar-proportion": "calc(var(--loading-bar-value) / var(--loading-bar-max))"
|
|
27
30
|
},
|
|
28
31
|
...l,
|
|
29
|
-
children: /* @__PURE__ */
|
|
30
|
-
|
|
32
|
+
children: /* @__PURE__ */ t(
|
|
33
|
+
o.Indicator,
|
|
31
34
|
{
|
|
32
|
-
className:
|
|
35
|
+
className: d.indicator,
|
|
36
|
+
"data-variant": i,
|
|
37
|
+
"data-indeterminate": a === null
|
|
33
38
|
}
|
|
34
39
|
)
|
|
35
40
|
}
|
|
36
41
|
)
|
|
37
42
|
);
|
|
38
|
-
|
|
43
|
+
g.displayName = "LoadingBar";
|
|
39
44
|
export {
|
|
40
|
-
|
|
45
|
+
g as LoadingBar
|
|
41
46
|
};
|
|
42
47
|
//# sourceMappingURL=fondue-components18.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components18.js","sources":["../src/components/LoadingBar/LoadingBar.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport * as ProgressRadixPrimitive from '@radix-ui/react-progress';\nimport { forwardRef, type CSSProperties, type ElementRef, type ForwardedRef } from 'react';\n\nimport
|
|
1
|
+
{"version":3,"file":"fondue-components18.js","sources":["../src/components/LoadingBar/LoadingBar.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport * as ProgressRadixPrimitive from '@radix-ui/react-progress';\nimport { forwardRef, type CSSProperties, type ElementRef, type ForwardedRef } from 'react';\n\nimport styles from './styles/loadingBar.module.scss';\n\nexport type LoadingBarProps = {\n /**\n * The current value of the loading bar. If `null`, the loading bar will be in an indeterminate state.\n * @default null\n */\n value: number | null;\n /**\n * The maximum value of the loading bar\n * @default 100\n */\n max?: number;\n /**\n * @default 'fondue-loading-bar'\n */\n 'data-test-id'?: string;\n /**\n * Add rounded corners to the loading bar\n * @default true\n */\n rounded?: boolean;\n /**\n * The style of the loading bar\n * @default \"default\"\n */\n variant?: 'default' | 'positive' | 'negative';\n /**\n * The size of the loading bar\n * @default \"medium\"\n */\n size?: 'small' | 'medium' | 'large' | 'x-large';\n /**\n * The label of the loading bar for accessibility purposes\n */\n getValueLabel?: (value: number, max: number) => string;\n} & ({ 'aria-label': string } | { 'aria-labelledby': string });\n\nexport const LoadingBar = forwardRef<ElementRef<typeof ProgressRadixPrimitive.Root>, LoadingBarProps>(\n (\n {\n value,\n max = 100,\n rounded = true,\n variant = 'default',\n size = 'medium',\n 'data-test-id': dataTestId = 'fondue-loading-bar',\n ...props\n }: LoadingBarProps,\n ref: ForwardedRef<ElementRef<typeof ProgressRadixPrimitive.Root>>,\n ) => {\n return (\n <ProgressRadixPrimitive.Root\n ref={ref}\n data-test-id={dataTestId}\n className={styles.container}\n data-rounded={rounded}\n data-size={size}\n data-variant={variant}\n aria-busy={value !== max}\n value={value}\n max={max}\n style={\n {\n '--loading-bar-value': value,\n '--loading-bar-max': max,\n '--loading-bar-proportion': 'calc(var(--loading-bar-value) / var(--loading-bar-max))',\n } as CSSProperties\n }\n {...props}\n >\n <ProgressRadixPrimitive.Indicator\n className={styles.indicator}\n data-variant={variant}\n data-indeterminate={value === null}\n />\n </ProgressRadixPrimitive.Root>\n );\n },\n);\nLoadingBar.displayName = 'LoadingBar';\n"],"names":["LoadingBar","forwardRef","value","max","rounded","variant","size","dataTestId","props","ref","jsx","ProgressRadixPrimitive","styles"],"mappings":";;;;AA2CO,MAAMA,IAAaC;AAAA,EACtB,CACI;AAAA,IACI,OAAAC;AAAA,IACA,KAAAC,IAAM;AAAA,IACN,SAAAC,IAAU;AAAA,IACV,SAAAC,IAAU;AAAA,IACV,MAAAC,IAAO;AAAA,IACP,gBAAgBC,IAAa;AAAA,IAC7B,GAAGC;AAAA,EAAA,GAEPC,MAGI,gBAAAC;AAAA,IAACC,EAAuB;AAAA,IAAvB;AAAA,MACG,KAAAF;AAAA,MACA,gBAAcF;AAAA,MACd,WAAWK,EAAO;AAAA,MAClB,gBAAcR;AAAA,MACd,aAAWE;AAAA,MACX,gBAAcD;AAAA,MACd,aAAWH,MAAUC;AAAA,MACrB,OAAAD;AAAA,MACA,KAAAC;AAAA,MACA,OACI;AAAA,QACI,uBAAuBD;AAAA,QACvB,qBAAqBC;AAAA,QACrB,4BAA4B;AAAA,MAAA;AAAA,MAGnC,GAAGK;AAAA,MAEJ,UAAA,gBAAAE;AAAA,QAACC,EAAuB;AAAA,QAAvB;AAAA,UACG,WAAWC,EAAO;AAAA,UAClB,gBAAcP;AAAA,UACd,sBAAoBH,MAAU;AAAA,QAAA;AAAA,MAAA;AAAA,IAClC;AAAA,EAAA;AAIhB;AACAF,EAAW,cAAc;"}
|
|
@@ -1,21 +1,50 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import { jsxs as p, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { IconCross as N } from "@frontify/fondue-icons";
|
|
3
|
+
import { useTranslation as f } from "./fondue-components39.js";
|
|
4
|
+
import a from "./fondue-components66.js";
|
|
5
|
+
const j = ({
|
|
6
|
+
"aria-label": o,
|
|
7
|
+
"data-test-id": r = "notice",
|
|
8
|
+
variant: n = "default",
|
|
9
|
+
emphasis: d = "default",
|
|
10
|
+
size: e = "medium",
|
|
11
|
+
icon: i,
|
|
12
|
+
action: s,
|
|
13
|
+
onDismiss: l,
|
|
14
|
+
className: c = "",
|
|
15
|
+
children: m
|
|
16
|
+
}) => {
|
|
17
|
+
const { t: u } = f();
|
|
18
|
+
return /* @__PURE__ */ p(
|
|
19
|
+
"div",
|
|
20
|
+
{
|
|
21
|
+
"data-component": "notice",
|
|
22
|
+
"data-variant": n,
|
|
23
|
+
"data-emphasis": d,
|
|
24
|
+
"data-size": e,
|
|
25
|
+
"data-test-id": r,
|
|
26
|
+
className: `${a.root} ${c}`.trim(),
|
|
27
|
+
role: "status",
|
|
28
|
+
"aria-live": "polite",
|
|
29
|
+
children: [
|
|
30
|
+
i ? /* @__PURE__ */ t("div", { className: a.icon, children: i }) : null,
|
|
31
|
+
/* @__PURE__ */ t("div", { className: a.content, children: m }),
|
|
32
|
+
s ? /* @__PURE__ */ t("div", { className: a.action, children: s }) : null,
|
|
33
|
+
l ? /* @__PURE__ */ t(
|
|
34
|
+
"button",
|
|
35
|
+
{
|
|
36
|
+
type: "button",
|
|
37
|
+
"aria-label": o || u("Notice_dismiss"),
|
|
38
|
+
className: a.dismiss,
|
|
39
|
+
onClick: l,
|
|
40
|
+
children: /* @__PURE__ */ t(N, { size: e === "large" ? "20" : "16" })
|
|
41
|
+
}
|
|
42
|
+
) : null
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
);
|
|
16
46
|
};
|
|
17
47
|
export {
|
|
18
|
-
|
|
19
|
-
a as useFondueRouter
|
|
48
|
+
j as Notice
|
|
20
49
|
};
|
|
21
50
|
//# sourceMappingURL=fondue-components20.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components20.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"fondue-components20.js","sources":["../src/components/Notice/Notice.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { IconCross } from '@frontify/fondue-icons';\nimport { type MouseEvent, type ReactNode } from 'react';\n\nimport { useTranslation } from '#/hooks/useTranslation';\n\nimport styles from './styles/notice.module.scss';\n\ntype NoticeVariant = 'default' | 'highlight' | 'positive' | 'danger' | 'warning';\n\ntype NoticeEmphasis = 'default' | 'strong' | 'weak';\n\ntype NoticeSize = 'medium' | 'large';\n\nexport type NoticeProps = {\n /**\n * @default 'default'\n */\n variant?: NoticeVariant;\n /**\n * @default 'default'\n */\n emphasis?: NoticeEmphasis;\n /**\n * @default 'medium'\n */\n size?: NoticeSize;\n /**\n * Leading icon element\n */\n icon?: ReactNode;\n /**\n * Action element (typically a button)\n */\n action?: ReactNode;\n /**\n * Callback when the dismiss button is clicked\n */\n onDismiss?: (event?: MouseEvent<HTMLButtonElement>) => void;\n /**\n * Custom aria-label for the dismiss button\n */\n 'aria-label'?: string;\n /**\n * Test ID for the component\n */\n 'data-test-id'?: string;\n /**\n * Additional CSS class\n */\n className?: string;\n /**\n * Message content\n */\n children: ReactNode;\n};\n\nexport const Notice = ({\n 'aria-label': ariaLabel,\n 'data-test-id': dataTestId = 'notice',\n variant = 'default',\n emphasis = 'default',\n size = 'medium',\n icon,\n action,\n onDismiss,\n className = '',\n children,\n}: NoticeProps) => {\n const { t } = useTranslation();\n\n return (\n <div\n data-component=\"notice\"\n data-variant={variant}\n data-emphasis={emphasis}\n data-size={size}\n data-test-id={dataTestId}\n className={`${styles.root} ${className}`.trim()}\n role=\"status\"\n aria-live=\"polite\"\n >\n {icon ? <div className={styles.icon}>{icon}</div> : null}\n <div className={styles.content}>{children}</div>\n {action ? <div className={styles.action}>{action}</div> : null}\n {onDismiss ? (\n <button\n type=\"button\"\n aria-label={ariaLabel || t('Notice_dismiss')}\n className={styles.dismiss}\n onClick={onDismiss}\n >\n <IconCross size={size === 'large' ? '20' : '16'} />\n </button>\n ) : null}\n </div>\n );\n};\n"],"names":["Notice","ariaLabel","dataTestId","variant","emphasis","size","icon","action","onDismiss","className","children","t","useTranslation","jsxs","styles","jsx","IconCross"],"mappings":";;;;AA0DO,MAAMA,IAAS,CAAC;AAAA,EACnB,cAAcC;AAAA,EACd,gBAAgBC,IAAa;AAAA,EAC7B,SAAAC,IAAU;AAAA,EACV,UAAAC,IAAW;AAAA,EACX,MAAAC,IAAO;AAAA,EACP,MAAAC;AAAA,EACA,QAAAC;AAAA,EACA,WAAAC;AAAA,EACA,WAAAC,IAAY;AAAA,EACZ,UAAAC;AACJ,MAAmB;AACf,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAA;AAEd,SACI,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACG,kBAAe;AAAA,MACf,gBAAcV;AAAA,MACd,iBAAeC;AAAA,MACf,aAAWC;AAAA,MACX,gBAAcH;AAAA,MACd,WAAW,GAAGY,EAAO,IAAI,IAAIL,CAAS,GAAG,KAAA;AAAA,MACzC,MAAK;AAAA,MACL,aAAU;AAAA,MAET,UAAA;AAAA,QAAAH,sBAAQ,OAAA,EAAI,WAAWQ,EAAO,MAAO,aAAK,IAAS;AAAA,QACpD,gBAAAC,EAAC,OAAA,EAAI,WAAWD,EAAO,SAAU,UAAAJ,GAAS;AAAA,QACzCH,IAAS,gBAAAQ,EAAC,OAAA,EAAI,WAAWD,EAAO,QAAS,aAAO,IAAS;AAAA,QACzDN,IACG,gBAAAO;AAAA,UAAC;AAAA,UAAA;AAAA,YACG,MAAK;AAAA,YACL,cAAYd,KAAaU,EAAE,gBAAgB;AAAA,YAC3C,WAAWG,EAAO;AAAA,YAClB,SAASN;AAAA,YAET,4BAACQ,GAAA,EAAU,MAAMX,MAAS,UAAU,OAAO,KAAA,CAAM;AAAA,UAAA;AAAA,QAAA,IAErD;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGhB;"}
|