@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.
Files changed (179) hide show
  1. package/dist/fondue-components.js +56 -52
  2. package/dist/fondue-components.js.map +1 -1
  3. package/dist/fondue-components10.js +24 -34
  4. package/dist/fondue-components10.js.map +1 -1
  5. package/dist/fondue-components11.js +3 -3
  6. package/dist/fondue-components12.js +2 -2
  7. package/dist/fondue-components13.js +4 -4
  8. package/dist/fondue-components14.js +2 -2
  9. package/dist/fondue-components15.js +2 -2
  10. package/dist/fondue-components16.js +22 -23
  11. package/dist/fondue-components16.js.map +1 -1
  12. package/dist/fondue-components17.js +3 -3
  13. package/dist/fondue-components18.js +24 -19
  14. package/dist/fondue-components18.js.map +1 -1
  15. package/dist/fondue-components19.js +1 -1
  16. package/dist/fondue-components20.js +46 -17
  17. package/dist/fondue-components20.js.map +1 -1
  18. package/dist/fondue-components21.js +72 -73
  19. package/dist/fondue-components21.js.map +1 -1
  20. package/dist/fondue-components22.js +18 -36
  21. package/dist/fondue-components22.js.map +1 -1
  22. package/dist/fondue-components23.js +71 -50
  23. package/dist/fondue-components23.js.map +1 -1
  24. package/dist/fondue-components24.js +36 -138
  25. package/dist/fondue-components24.js.map +1 -1
  26. package/dist/fondue-components25.js +50 -50
  27. package/dist/fondue-components25.js.map +1 -1
  28. package/dist/fondue-components26.js +137 -99
  29. package/dist/fondue-components26.js.map +1 -1
  30. package/dist/fondue-components27.js +48 -26
  31. package/dist/fondue-components27.js.map +1 -1
  32. package/dist/fondue-components28.js +92 -188
  33. package/dist/fondue-components28.js.map +1 -1
  34. package/dist/fondue-components29.js +30 -134
  35. package/dist/fondue-components29.js.map +1 -1
  36. package/dist/fondue-components3.js +1 -1
  37. package/dist/fondue-components30.js +191 -126
  38. package/dist/fondue-components30.js.map +1 -1
  39. package/dist/fondue-components31.js +134 -30
  40. package/dist/fondue-components31.js.map +1 -1
  41. package/dist/fondue-components32.js +130 -64
  42. package/dist/fondue-components32.js.map +1 -1
  43. package/dist/fondue-components33.js +31 -114
  44. package/dist/fondue-components33.js.map +1 -1
  45. package/dist/fondue-components34.js +64 -36
  46. package/dist/fondue-components34.js.map +1 -1
  47. package/dist/fondue-components35.js +111 -53
  48. package/dist/fondue-components35.js.map +1 -1
  49. package/dist/fondue-components36.js +36 -20
  50. package/dist/fondue-components36.js.map +1 -1
  51. package/dist/fondue-components37.js +57 -23
  52. package/dist/fondue-components37.js.map +1 -1
  53. package/dist/fondue-components38.js +20 -7
  54. package/dist/fondue-components38.js.map +1 -1
  55. package/dist/fondue-components39.js +23 -6
  56. package/dist/fondue-components39.js.map +1 -1
  57. package/dist/fondue-components4.js +3 -3
  58. package/dist/fondue-components40.js +8 -32
  59. package/dist/fondue-components40.js.map +1 -1
  60. package/dist/fondue-components41.js +5 -3
  61. package/dist/fondue-components41.js.map +1 -1
  62. package/dist/fondue-components42.js +41 -20
  63. package/dist/fondue-components42.js.map +1 -1
  64. package/dist/fondue-components43.js +5 -155
  65. package/dist/fondue-components43.js.map +1 -1
  66. package/dist/fondue-components44.js +5 -118
  67. package/dist/fondue-components44.js.map +1 -1
  68. package/dist/fondue-components45.js +13 -118
  69. package/dist/fondue-components45.js.map +1 -1
  70. package/dist/fondue-components46.js +30 -19
  71. package/dist/fondue-components46.js.map +1 -1
  72. package/dist/fondue-components47.js +54 -32
  73. package/dist/fondue-components47.js.map +1 -1
  74. package/dist/fondue-components48.js +125 -48
  75. package/dist/fondue-components48.js.map +1 -1
  76. package/dist/fondue-components49.js +20 -130
  77. package/dist/fondue-components49.js.map +1 -1
  78. package/dist/fondue-components5.js +2 -2
  79. package/dist/fondue-components50.js +53 -21
  80. package/dist/fondue-components50.js.map +1 -1
  81. package/dist/fondue-components51.js +8 -53
  82. package/dist/fondue-components51.js.map +1 -1
  83. package/dist/fondue-components52.js +13 -8
  84. package/dist/fondue-components52.js.map +1 -1
  85. package/dist/fondue-components53.js +15 -13
  86. package/dist/fondue-components53.js.map +1 -1
  87. package/dist/fondue-components54.js +4 -14
  88. package/dist/fondue-components54.js.map +1 -1
  89. package/dist/fondue-components55.js +18 -5
  90. package/dist/fondue-components55.js.map +1 -1
  91. package/dist/fondue-components56.js +19 -60
  92. package/dist/fondue-components56.js.map +1 -1
  93. package/dist/fondue-components57.js +5 -18
  94. package/dist/fondue-components57.js.map +1 -1
  95. package/dist/fondue-components58.js +12 -18
  96. package/dist/fondue-components58.js.map +1 -1
  97. package/dist/fondue-components59.js +1 -1
  98. package/dist/fondue-components6.js +29 -28
  99. package/dist/fondue-components6.js.map +1 -1
  100. package/dist/fondue-components60.js +19 -13
  101. package/dist/fondue-components60.js.map +1 -1
  102. package/dist/fondue-components61.js +17 -4
  103. package/dist/fondue-components61.js.map +1 -1
  104. package/dist/fondue-components62.js +9 -16
  105. package/dist/fondue-components62.js.map +1 -1
  106. package/dist/fondue-components63.js +36 -10
  107. package/dist/fondue-components63.js.map +1 -1
  108. package/dist/fondue-components64.js +6 -36
  109. package/dist/fondue-components64.js.map +1 -1
  110. package/dist/fondue-components65.js +5 -35
  111. package/dist/fondue-components65.js.map +1 -1
  112. package/dist/fondue-components66.js +11 -3
  113. package/dist/fondue-components66.js.map +1 -1
  114. package/dist/fondue-components67.js +8 -12
  115. package/dist/fondue-components67.js.map +1 -1
  116. package/dist/fondue-components68.js +12 -4
  117. package/dist/fondue-components68.js.map +1 -1
  118. package/dist/fondue-components69.js +4 -24
  119. package/dist/fondue-components69.js.map +1 -1
  120. package/dist/fondue-components7.js +39 -36
  121. package/dist/fondue-components7.js.map +1 -1
  122. package/dist/fondue-components70.js +24 -16
  123. package/dist/fondue-components70.js.map +1 -1
  124. package/dist/fondue-components71.js +16 -151
  125. package/dist/fondue-components71.js.map +1 -1
  126. package/dist/fondue-components72.js +152 -19
  127. package/dist/fondue-components72.js.map +1 -1
  128. package/dist/fondue-components73.js +19 -79
  129. package/dist/fondue-components73.js.map +1 -1
  130. package/dist/fondue-components74.js +79 -8
  131. package/dist/fondue-components74.js.map +1 -1
  132. package/dist/fondue-components75.js +8 -37
  133. package/dist/fondue-components75.js.map +1 -1
  134. package/dist/fondue-components76.js +36 -70
  135. package/dist/fondue-components76.js.map +1 -1
  136. package/dist/fondue-components77.js +70 -10
  137. package/dist/fondue-components77.js.map +1 -1
  138. package/dist/fondue-components78.js +8 -8
  139. package/dist/fondue-components79.js +10 -12
  140. package/dist/fondue-components79.js.map +1 -1
  141. package/dist/fondue-components8.js +5 -5
  142. package/dist/fondue-components80.js +6 -12
  143. package/dist/fondue-components80.js.map +1 -1
  144. package/dist/fondue-components81.js +12 -22
  145. package/dist/fondue-components81.js.map +1 -1
  146. package/dist/fondue-components82.js +23 -34
  147. package/dist/fondue-components82.js.map +1 -1
  148. package/dist/fondue-components83.js +34 -11
  149. package/dist/fondue-components83.js.map +1 -1
  150. package/dist/fondue-components84.js +10 -67
  151. package/dist/fondue-components84.js.map +1 -1
  152. package/dist/fondue-components85.js +67 -14
  153. package/dist/fondue-components85.js.map +1 -1
  154. package/dist/fondue-components86.js +13 -23
  155. package/dist/fondue-components86.js.map +1 -1
  156. package/dist/fondue-components87.js +23 -17
  157. package/dist/fondue-components87.js.map +1 -1
  158. package/dist/fondue-components88.js +18 -24
  159. package/dist/fondue-components88.js.map +1 -1
  160. package/dist/fondue-components89.js +24 -8
  161. package/dist/fondue-components89.js.map +1 -1
  162. package/dist/fondue-components9.js +5 -5
  163. package/dist/fondue-components90.js +8 -19
  164. package/dist/fondue-components90.js.map +1 -1
  165. package/dist/fondue-components91.js +20 -6
  166. package/dist/fondue-components91.js.map +1 -1
  167. package/dist/fondue-components92.js +4 -14
  168. package/dist/fondue-components92.js.map +1 -1
  169. package/dist/fondue-components93.js +5 -2
  170. package/dist/fondue-components93.js.map +1 -1
  171. package/dist/fondue-components94.js +4 -4
  172. package/dist/fondue-components94.js.map +1 -1
  173. package/dist/fondue-components95.js +16 -4
  174. package/dist/fondue-components95.js.map +1 -1
  175. package/dist/fondue-components96.js +1 -1
  176. package/dist/fondue-components97.js +2 -2
  177. package/dist/index.d.ts +86 -0
  178. package/dist/style.css +1 -1
  179. 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 l } from "./fondue-components6.js";
6
- import { Checkbox as a } from "./fondue-components7.js";
7
- import { ColorPicker as T } from "./fondue-components8.js";
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 b } from "./fondue-components12.js";
11
+ import { Flex as L } from "./fondue-components12.js";
12
12
  import { Flyout as k } from "./fondue-components13.js";
13
- import { Grid as D } from "./fondue-components14.js";
14
- import { Heading as P } from "./fondue-components15.js";
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 y } from "./fondue-components17.js";
17
- import { LoadingBar as H } from "./fondue-components18.js";
18
- import { LoadingCircle as R } from "./fondue-components19.js";
19
- import { RouterProvider as q } from "./fondue-components20.js";
20
- import { ScrollArea as E } from "./fondue-components21.js";
21
- import { Section as K } from "./fondue-components22.js";
22
- import { SegmentedControl as N } from "./fondue-components23.js";
23
- import { Select as Q } from "./fondue-components24.js";
24
- import { Slider as V } from "./fondue-components25.js";
25
- import { SplitButton as X } from "./fondue-components26.js";
26
- import { Switch as Z } from "./fondue-components27.js";
27
- import { Table as $ } from "./fondue-components28.js";
28
- import { Tag as ro } from "./fondue-components29.js";
29
- import { Tabs as to } from "./fondue-components30.js";
30
- import { Text as mo } from "./fondue-components31.js";
31
- import { TextInput as fo } from "./fondue-components32.js";
32
- import { Textarea as lo } from "./fondue-components33.js";
33
- import { ThemeContext as ao, ThemeProvider as To, useFondueTheme as co } from "./fondue-components34.js";
34
- import { Tooltip as uo } from "./fondue-components35.js";
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
- l as Button,
40
- a as Checkbox,
41
- T as ColorPicker,
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
- b as Flex,
47
+ L as Flex,
46
48
  k as Flyout,
47
- D as Grid,
48
- P as Heading,
49
+ v as Grid,
50
+ F as Heading,
49
51
  w as Label,
50
- y as Link,
51
- H as LoadingBar,
52
- R as LoadingCircle,
53
- q as RouterProvider,
54
- E as ScrollArea,
55
- K as Section,
56
- N as SegmentedControl,
57
- Q as Select,
58
- V as Slider,
59
- X as SplitButton,
60
- Z as Switch,
61
- $ as Table,
62
- to as Tabs,
63
- ro as Tag,
64
- mo as Text,
65
- fo as TextInput,
66
- lo as Textarea,
67
- ao as ThemeContext,
68
- To as ThemeProvider,
69
- uo as Tooltip,
70
- co as useFondueTheme
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 a } from "react/jsx-runtime";
2
- import * as f from "@radix-ui/react-separator";
3
- import { forwardRef as l } from "react";
4
- import { cn as v } from "./fondue-components42.js";
5
- import c from "./fondue-components55.js";
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": i = "fondue-divider",
10
- direction: r = "horizontal",
11
- className: d,
12
- variant: o,
13
- color: t,
14
- as: e = "div",
15
- decorative: m,
16
- ...s
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 p = e;
19
- return /* @__PURE__ */ a(
20
- f.Root,
16
+ const l = m;
17
+ return /* @__PURE__ */ t(
18
+ p.Root,
21
19
  {
22
20
  ref: n,
23
- className: v(
24
- h({
25
- direction: r,
26
- variant: o,
27
- color: t,
28
- ...s
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__ */ a(p, {})
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 { cn } from '#/utilities/styleUtilities';\n\nimport borderStyles from './styles/borderStyles.module.scss';\nimport { dividerStyles } from './styles/dividerStyles';\n\ntype DividerStyle = 'noline' | 'dashed' | 'solid';\ntype DividerPadding = 'none' | 'small' | 'medium' | 'large';\ntype DividerDirection = 'horizontal' | 'vertical';\ntype DividerColor = 'weak' | 'default' | 'strong';\n\nexport type DividerProps = {\n /**\n * The style of the divider\n * @default \"solid\"\n */\n variant?: DividerStyle;\n /**\n * The padding of the divider\n * @default \"medium\"\n */\n padding?: DividerPadding;\n /**\n * The color of the divider\n * @default \"default\"\n */\n color?: DividerColor;\n /**\n * The direction of the divider\n * @default \"horizontal\"\n */\n direction?: DividerDirection;\n /**\n * The html element to be used\n * @default \"div\"\n */\n as?: 'div' | 'li';\n /**\n * When `true`, signifies that it is purely visual, carries no semantic\n * meaning, and ensures it is not present in the accessibility tree.\n * @default false\n */\n decorative?: boolean;\n 'data-test-id'?: string;\n className?: string;\n};\n\nexport const Divider = forwardRef<HTMLDivElement, DividerProps>(\n (\n {\n 'data-test-id': dataTestId = 'fondue-divider',\n direction = 'horizontal',\n className,\n variant,\n color,\n as = 'div',\n decorative,\n ...props\n }: DividerProps,\n ref: ForwardedRef<HTMLDivElement | null>,\n ): ReactElement => {\n const Component = as;\n\n return (\n <Separator.Root\n ref={ref}\n className={cn(\n dividerStyles({\n direction,\n variant,\n color,\n ...props,\n }),\n borderStyles.root,\n className,\n )}\n data-variant={variant}\n data-color={color}\n data-test-id={dataTestId}\n decorative={decorative}\n data-orientation={direction}\n asChild\n >\n <Component />\n </Separator.Root>\n );\n },\n);\n\nDivider.displayName = 'Divider';\n"],"names":["Divider","forwardRef","dataTestId","direction","className","variant","color","as","decorative","props","ref","Component","jsx","Separator","cn","dividerStyles","borderStyles"],"mappings":";;;;;;AAmDO,MAAMA,IAAUC;AAAA,EACnB,CACI;AAAA,IACI,gBAAgBC,IAAa;AAAA,IAC7B,WAAAC,IAAY;AAAA,IACZ,WAAAC;AAAA,IACA,SAAAC;AAAA,IACA,OAAAC;AAAA,IACA,IAAAC,IAAK;AAAA,IACL,YAAAC;AAAA,IACA,GAAGC;AAAA,EAAA,GAEPC,MACe;AACf,UAAMC,IAAYJ;AAElB,WACI,gBAAAK;AAAA,MAACC,EAAU;AAAA,MAAV;AAAA,QACG,KAAAH;AAAA,QACA,WAAWI;AAAA,UACPC,EAAc;AAAA,YACV,WAAAZ;AAAA,YACA,SAAAE;AAAA,YACA,OAAAC;AAAA,YACA,GAAGG;AAAA,UAAA,CACN;AAAA,UACDO,EAAa;AAAA,UACbZ;AAAA,QAAA;AAAA,QAEJ,gBAAcC;AAAA,QACd,cAAYC;AAAA,QACZ,gBAAcJ;AAAA,QACd,YAAAM;AAAA,QACA,oBAAkBL;AAAA,QAClB,SAAO;AAAA,QAEP,4BAACQ,GAAA,CAAA,CAAU;AAAA,MAAA;AAAA,IAAA;AAAA,EAGvB;AACJ;AAEAX,EAAQ,cAAc;"}
1
+ {"version":3,"file":"fondue-components10.js","sources":["../src/components/Divider/Divider.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport * as Separator from '@radix-ui/react-separator';\nimport { forwardRef, type ForwardedRef, type ReactElement } from 'react';\n\nimport 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-components34.js";
6
- import { useProcessedChildren as I } from "./fondue-components57.js";
7
- import u from "./fondue-components58.js";
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-components40.js";
4
- import x from "./fondue-components59.js";
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-components37.js";
6
- import { addAutoFocusAttribute as _, addShowFocusRing as B } from "./fondue-components53.js";
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-components34.js";
9
- import u from "./fondue-components60.js";
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-components40.js";
4
- import u from "./fondue-components61.js";
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-components42.js";
4
- import a from "./fondue-components62.js";
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 m, jsx as s } from "react/jsx-runtime";
2
- import * as f from "@radix-ui/react-label";
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 { cn as A } from "./fondue-components42.js";
5
- import r from "./fondue-components63.js";
6
- const g = ({ className: l, "data-test-id": d = "fondue-label", children: o, variant: c = "default", ...i }, u) => {
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 a;
10
- const e = (a = n.current) == null ? void 0 : a.querySelectorAll("button,input,a,[tabindex]");
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__ */ m(
15
- f.Root,
13
+ }, []), /* @__PURE__ */ f(
14
+ m.Root,
16
15
  {
17
- ref: u,
18
- "data-required": i.required,
19
- "data-variant": c,
20
- className: A(r.root, l),
21
- "data-test-id": d,
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 a = e.target.getAttribute("for"), t = a ? document.getElementById(a) : null;
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
- ...i,
25
+ ...n,
27
26
  children: [
28
- /* @__PURE__ */ s("span", { className: `${r.hiddenText} ${r.contentArea}`, "aria-hidden": "true", ref: n, children: o }),
29
- /* @__PURE__ */ s("span", { className: `${r.visibleText} ${r.contentArea}`, children: o })
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
- }, y = b(g);
34
- y.displayName = "Label";
32
+ }, g = b(A);
33
+ g.displayName = "Label";
35
34
  export {
36
- y as Label,
37
- g as LabelComponent
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 { cn } from '#/utilities/styleUtilities';\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={cn(styles.root, className)}\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","cn","styles","event","targetId","target","jsx","Label","forwardRef"],"mappings":";;;;;AAiCO,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,WAAWW,EAAGC,EAAO,MAAMf,CAAS;AAAA,MACpC,gBAAcC;AAAA,MACd,SAAS,CAACe,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,GAAGd;AAAA,MAGJ,UAAA;AAAA,QAAA,gBAAAe,EAAC,QAAA,EAAK,WAAW,GAAGJ,EAAO,UAAU,IAAIA,EAAO,WAAW,IAAI,eAAY,QAAO,KAAKT,GAClF,UAAAJ,GACL;AAAA,QAEA,gBAAAiB,EAAC,QAAA,EAAK,WAAW,GAAGJ,EAAO,WAAW,IAAIA,EAAO,WAAW,IAAK,UAAAb,EAAA,CAAS;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGtF,GAEakB,IAAQC,EAAyCtB,CAAc;AAC5EqB,EAAM,cAAc;"}
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-components42.js";
4
- import { useFondueRouter as N } from "./fondue-components20.js";
5
- import o from "./fondue-components64.js";
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 i } from "react/jsx-runtime";
2
- import * as t from "@radix-ui/react-progress";
3
- import { forwardRef as m } from "react";
4
- import { loadingBarContainerStyles as g, loadingBarStyles as f } from "./fondue-components65.js";
5
- const p = m(
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: d = !0,
10
- variant: o = "default",
11
- size: e = "medium",
12
- "data-test-id": n = "fondue-loading-bar",
9
+ rounded: e = !0,
10
+ variant: i = "default",
11
+ size: n = "medium",
12
+ "data-test-id": s = "fondue-loading-bar",
13
13
  ...l
14
- }, s) => /* @__PURE__ */ i(
15
- t.Root,
14
+ }, m) => /* @__PURE__ */ t(
15
+ o.Root,
16
16
  {
17
- ref: s,
18
- "data-test-id": n,
19
- className: g({ rounded: d, size: e, variant: o }),
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__ */ i(
30
- t.Indicator,
32
+ children: /* @__PURE__ */ t(
33
+ o.Indicator,
31
34
  {
32
- className: f({ variant: o, indeterminateState: a === null })
35
+ className: d.indicator,
36
+ "data-variant": i,
37
+ "data-indeterminate": a === null
33
38
  }
34
39
  )
35
40
  }
36
41
  )
37
42
  );
38
- p.displayName = "LoadingBar";
43
+ g.displayName = "LoadingBar";
39
44
  export {
40
- p as LoadingBar
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 { loadingBarContainerStyles, loadingBarStyles } from './styles/loadingBarStyles';\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={loadingBarContainerStyles({ rounded, size, 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={loadingBarStyles({ variant, indeterminateState: 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","loadingBarContainerStyles","loadingBarStyles"],"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,EAA0B,EAAE,SAAAR,GAAS,MAAAE,GAAM,SAAAD,GAAS;AAAA,MAC/D,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,WAAWE,EAAiB,EAAE,SAAAR,GAAS,oBAAoBH,MAAU,MAAM;AAAA,QAAA;AAAA,MAAA;AAAA,IAC/E;AAAA,EAAA;AAIhB;AACAF,EAAW,cAAc;"}
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,6 +1,6 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
2
  import { forwardRef as i } from "react";
3
- import d from "./fondue-components66.js";
3
+ import d from "./fondue-components65.js";
4
4
  const s = i(
5
5
  ({
6
6
  variant: t = "progress",
@@ -1,21 +1,50 @@
1
- import { jsx as u } from "react/jsx-runtime";
2
- import { createContext as i, useContext as s, useMemo as m } from "react";
3
- const e = i({
4
- navigate: () => {
5
- throw new Error("RouterProvider: `navigate` function is not implemented");
6
- },
7
- // eslint-disable-next-line @eslint-react/no-unnecessary-use-prefix
8
- useHref: () => {
9
- throw new Error("RouterProvider: `useHref` function is not implemented");
10
- }
11
- });
12
- e.displayName = "RouterContext";
13
- const a = () => s(e), x = ({ children: r, navigate: t, useHref: o }) => {
14
- const n = m(() => ({ navigate: t, useHref: o }), [t, o]);
15
- return /* @__PURE__ */ u(e.Provider, { value: n, children: r });
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
- x as RouterProvider,
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/RouterProvider/RouterProvider.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { createContext, useContext, useMemo, type ReactNode } from 'react';\n\nexport type RouterProviderProps = {\n children: ReactNode;\n /**\n * Function to navigate to a specific path\n */\n navigate: (path: string) => void;\n /**\n * Function to resolves a URL against the current location.\n */\n useHref: (path: string) => string;\n};\n\nconst RouterContext = createContext<{\n navigate: (path: string) => void;\n useHref: (path: string) => string;\n}>({\n navigate: () => {\n throw new Error('RouterProvider: `navigate` function is not implemented');\n },\n // eslint-disable-next-line @eslint-react/no-unnecessary-use-prefix\n useHref: () => {\n throw new Error('RouterProvider: `useHref` function is not implemented');\n },\n});\nRouterContext.displayName = 'RouterContext';\n\nexport const useFondueRouter = () => {\n return useContext(RouterContext);\n};\n\nexport const RouterProvider = ({ children, navigate, useHref }: RouterProviderProps) => {\n const contextValue = useMemo(() => ({ navigate, useHref }), [navigate, useHref]);\n\n return <RouterContext.Provider value={contextValue}>{children}</RouterContext.Provider>;\n};\n"],"names":["RouterContext","createContext","useFondueRouter","useContext","RouterProvider","children","navigate","useHref","contextValue","useMemo"],"mappings":";;AAgBA,MAAMA,IAAgBC,EAGnB;AAAA,EACC,UAAU,MAAM;AACZ,UAAM,IAAI,MAAM,wDAAwD;AAAA,EAC5E;AAAA;AAAA,EAEA,SAAS,MAAM;AACX,UAAM,IAAI,MAAM,uDAAuD;AAAA,EAC3E;AACJ,CAAC;AACDD,EAAc,cAAc;AAErB,MAAME,IAAkB,MACpBC,EAAWH,CAAa,GAGtBI,IAAiB,CAAC,EAAE,UAAAC,GAAU,UAAAC,GAAU,SAAAC,QAAmC;AACpF,QAAMC,IAAeC,EAAQ,OAAO,EAAE,UAAAH,GAAU,SAAAC,MAAY,CAACD,GAAUC,CAAO,CAAC;AAE/E,2BAAQP,EAAc,UAAd,EAAuB,OAAOQ,GAAe,UAAAH,GAAS;AAClE;"}
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;"}