@frontify/fondue-components 20.0.0-rc.0 → 20.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (174) hide show
  1. package/dist/fondue-components.js +46 -50
  2. package/dist/fondue-components.js.map +1 -1
  3. package/dist/fondue-components10.js +3 -3
  4. package/dist/fondue-components10.js.map +1 -1
  5. package/dist/fondue-components11.js +66 -84
  6. package/dist/fondue-components11.js.map +1 -1
  7. package/dist/fondue-components12.js +2 -2
  8. package/dist/fondue-components13.js +49 -50
  9. package/dist/fondue-components13.js.map +1 -1
  10. package/dist/fondue-components14.js +2 -2
  11. package/dist/fondue-components15.js +2 -2
  12. package/dist/fondue-components16.js +2 -2
  13. package/dist/fondue-components17.js +36 -56
  14. package/dist/fondue-components17.js.map +1 -1
  15. package/dist/fondue-components18.js +16 -34
  16. package/dist/fondue-components18.js.map +1 -1
  17. package/dist/fondue-components19.js +71 -21
  18. package/dist/fondue-components19.js.map +1 -1
  19. package/dist/fondue-components20.js +36 -18
  20. package/dist/fondue-components20.js.map +1 -1
  21. package/dist/fondue-components21.js +55 -71
  22. package/dist/fondue-components21.js.map +1 -1
  23. package/dist/fondue-components22.js +138 -36
  24. package/dist/fondue-components22.js.map +1 -1
  25. package/dist/fondue-components23.js +50 -50
  26. package/dist/fondue-components23.js.map +1 -1
  27. package/dist/fondue-components24.js +29 -138
  28. package/dist/fondue-components24.js.map +1 -1
  29. package/dist/fondue-components25.js +157 -53
  30. package/dist/fondue-components25.js.map +1 -1
  31. package/dist/fondue-components26.js +137 -29
  32. package/dist/fondue-components26.js.map +1 -1
  33. package/dist/fondue-components27.js +127 -157
  34. package/dist/fondue-components27.js.map +1 -1
  35. package/dist/fondue-components28.js +30 -134
  36. package/dist/fondue-components28.js.map +1 -1
  37. package/dist/fondue-components29.js +58 -128
  38. package/dist/fondue-components29.js.map +1 -1
  39. package/dist/fondue-components3.js +1 -1
  40. package/dist/fondue-components30.js +101 -31
  41. package/dist/fondue-components30.js.map +1 -1
  42. package/dist/fondue-components31.js +12 -59
  43. package/dist/fondue-components31.js.map +1 -1
  44. package/dist/fondue-components32.js +52 -97
  45. package/dist/fondue-components32.js.map +1 -1
  46. package/dist/fondue-components33.js +20 -12
  47. package/dist/fondue-components33.js.map +1 -1
  48. package/dist/fondue-components34.js +7 -56
  49. package/dist/fondue-components34.js.map +1 -1
  50. package/dist/fondue-components35.js +6 -20
  51. package/dist/fondue-components35.js.map +1 -1
  52. package/dist/fondue-components36.js +32 -8
  53. package/dist/fondue-components36.js.map +1 -1
  54. package/dist/fondue-components37.js +3 -5
  55. package/dist/fondue-components37.js.map +1 -1
  56. package/dist/fondue-components38.js +12 -32
  57. package/dist/fondue-components38.js.map +1 -1
  58. package/dist/fondue-components39.js +155 -5
  59. package/dist/fondue-components39.js.map +1 -1
  60. package/dist/fondue-components4.js +2 -2
  61. package/dist/fondue-components40.js +116 -18
  62. package/dist/fondue-components40.js.map +1 -1
  63. package/dist/fondue-components41.js +22 -59
  64. package/dist/fondue-components41.js.map +1 -1
  65. package/dist/fondue-components42.js +14 -111
  66. package/dist/fondue-components42.js.map +1 -1
  67. package/dist/fondue-components43.js +30 -116
  68. package/dist/fondue-components43.js.map +1 -1
  69. package/dist/fondue-components44.js +53 -21
  70. package/dist/fondue-components44.js.map +1 -1
  71. package/dist/fondue-components45.js +129 -31
  72. package/dist/fondue-components45.js.map +1 -1
  73. package/dist/fondue-components46.js +20 -52
  74. package/dist/fondue-components46.js.map +1 -1
  75. package/dist/fondue-components47.js +53 -130
  76. package/dist/fondue-components47.js.map +1 -1
  77. package/dist/fondue-components48.js +7 -20
  78. package/dist/fondue-components48.js.map +1 -1
  79. package/dist/fondue-components49.js +13 -53
  80. package/dist/fondue-components49.js.map +1 -1
  81. package/dist/fondue-components5.js +2 -2
  82. package/dist/fondue-components50.js +14 -7
  83. package/dist/fondue-components50.js.map +1 -1
  84. package/dist/fondue-components51.js +5 -13
  85. package/dist/fondue-components51.js.map +1 -1
  86. package/dist/fondue-components52.js +60 -15
  87. package/dist/fondue-components52.js.map +1 -1
  88. package/dist/fondue-components53.js +18 -5
  89. package/dist/fondue-components53.js.map +1 -1
  90. package/dist/fondue-components54.js +19 -59
  91. package/dist/fondue-components54.js.map +1 -1
  92. package/dist/fondue-components55.js +5 -18
  93. package/dist/fondue-components55.js.map +1 -1
  94. package/dist/fondue-components56.js +14 -18
  95. package/dist/fondue-components56.js.map +1 -1
  96. package/dist/fondue-components57.js +1 -1
  97. package/dist/fondue-components58.js +16 -10
  98. package/dist/fondue-components58.js.map +1 -1
  99. package/dist/fondue-components59.js +10 -4
  100. package/dist/fondue-components59.js.map +1 -1
  101. package/dist/fondue-components6.js +4 -4
  102. package/dist/fondue-components60.js +35 -18
  103. package/dist/fondue-components60.js.map +1 -1
  104. package/dist/fondue-components61.js +4 -10
  105. package/dist/fondue-components61.js.map +1 -1
  106. package/dist/fondue-components62.js +10 -34
  107. package/dist/fondue-components62.js.map +1 -1
  108. package/dist/fondue-components63.js +5 -35
  109. package/dist/fondue-components63.js.map +1 -1
  110. package/dist/fondue-components64.js +24 -4
  111. package/dist/fondue-components64.js.map +1 -1
  112. package/dist/fondue-components65.js +16 -12
  113. package/dist/fondue-components65.js.map +1 -1
  114. package/dist/fondue-components66.js +150 -4
  115. package/dist/fondue-components66.js.map +1 -1
  116. package/dist/fondue-components67.js +19 -25
  117. package/dist/fondue-components67.js.map +1 -1
  118. package/dist/fondue-components68.js +77 -16
  119. package/dist/fondue-components68.js.map +1 -1
  120. package/dist/fondue-components69.js +8 -151
  121. package/dist/fondue-components69.js.map +1 -1
  122. package/dist/fondue-components7.js +2 -2
  123. package/dist/fondue-components70.js +37 -19
  124. package/dist/fondue-components70.js.map +1 -1
  125. package/dist/fondue-components71.js +69 -76
  126. package/dist/fondue-components71.js.map +1 -1
  127. package/dist/fondue-components72.js +11 -8
  128. package/dist/fondue-components72.js.map +1 -1
  129. package/dist/fondue-components73.js +12 -36
  130. package/dist/fondue-components73.js.map +1 -1
  131. package/dist/fondue-components74.js +12 -70
  132. package/dist/fondue-components74.js.map +1 -1
  133. package/dist/fondue-components75.js +20 -10
  134. package/dist/fondue-components75.js.map +1 -1
  135. package/dist/fondue-components76.js +34 -13
  136. package/dist/fondue-components76.js.map +1 -1
  137. package/dist/fondue-components77.js +10 -12
  138. package/dist/fondue-components77.js.map +1 -1
  139. package/dist/fondue-components78.js +55 -20
  140. package/dist/fondue-components78.js.map +1 -1
  141. package/dist/fondue-components79.js +15 -34
  142. package/dist/fondue-components79.js.map +1 -1
  143. package/dist/fondue-components8.js +5 -5
  144. package/dist/fondue-components80.js +24 -9
  145. package/dist/fondue-components80.js.map +1 -1
  146. package/dist/fondue-components81.js +14 -55
  147. package/dist/fondue-components81.js.map +1 -1
  148. package/dist/fondue-components82.js +22 -14
  149. package/dist/fondue-components82.js.map +1 -1
  150. package/dist/fondue-components83.js +6 -24
  151. package/dist/fondue-components83.js.map +1 -1
  152. package/dist/fondue-components84.js +5 -13
  153. package/dist/fondue-components84.js.map +1 -1
  154. package/dist/fondue-components85.js +4 -22
  155. package/dist/fondue-components85.js.map +1 -1
  156. package/dist/fondue-components86.js +4 -8
  157. package/dist/fondue-components86.js.map +1 -1
  158. package/dist/fondue-components87.js +2 -7
  159. package/dist/fondue-components87.js.map +1 -1
  160. package/dist/fondue-components88.js +39 -4
  161. package/dist/fondue-components88.js.map +1 -1
  162. package/dist/fondue-components89.js +6 -5
  163. package/dist/fondue-components89.js.map +1 -1
  164. package/dist/fondue-components9.js +4 -4
  165. package/dist/fondue-components90.js +8 -8
  166. package/dist/index.d.ts +4 -117
  167. package/dist/style.css +1 -1
  168. package/package.json +5 -6
  169. package/dist/fondue-components91.js +0 -43
  170. package/dist/fondue-components91.js.map +0 -1
  171. package/dist/fondue-components92.js +0 -9
  172. package/dist/fondue-components92.js.map +0 -1
  173. package/dist/fondue-components93.js +0 -5
  174. package/dist/fondue-components93.js.map +0 -1
@@ -1,8 +1,43 @@
1
- const o = "_root_e5fqt_2", t = {
2
- root: o
1
+ import { Children as a, isValidElement as u, cloneElement as f } from "react";
2
+ import { ForwardedRefSelectItem as E } from "./fondue-components67.js";
3
+ const g = ({
4
+ children: o,
5
+ value: r,
6
+ label: s
7
+ }) => o && typeof o == "string" ? {
8
+ value: r || o,
9
+ label: s || o
10
+ } : {
11
+ value: r || "",
12
+ label: s || r || "",
13
+ ...o ? { children: o } : null
14
+ }, w = (o, r) => u(o) && o.type === r, y = (o, r, s, p = 0) => {
15
+ const n = [];
16
+ let t = 0;
17
+ return a.forEach(o, (e) => {
18
+ if (w(e, E) && u(e))
19
+ g(e.props).label.toLowerCase().includes((s == null ? void 0 : s.toLowerCase()) || "") && (n.push(r(e, p + t)), t++);
20
+ else if (u(e) && (e != null && e.props.children)) {
21
+ const { parsedChildren: m, subElementCount: C } = y(
22
+ e.props.children,
23
+ r,
24
+ "",
25
+ p + t
26
+ );
27
+ e = f(e, {
28
+ children: m,
29
+ key: `group-${p + t}`
30
+ }), n.push(e), t += C;
31
+ } else
32
+ n.push(e);
33
+ }), {
34
+ parsedChildren: n,
35
+ subElementCount: t
36
+ };
3
37
  };
4
38
  export {
5
- t as default,
6
- o as root
39
+ g as getSelectOptionValue,
40
+ w as isReactLeaf,
41
+ y as recursiveMap
7
42
  };
8
43
  //# sourceMappingURL=fondue-components88.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"fondue-components88.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
1
+ {"version":3,"file":"fondue-components88.js","sources":["../src/components/Select/utils.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport {\n Children,\n cloneElement,\n isValidElement,\n type JSXElementConstructor,\n type ReactElement,\n type ReactNode,\n} from 'react';\n\nimport { ForwardedRefSelectItem, type SelectItemProps } from './SelectItem';\n\n/**\n * Extracts and returns an object containing `value` and `label` from a given SelectItemProps object.\n * It prioritizes explicit `value` and `label` properties but will fall back to using `children` as the value or label if necessary.\n *\n * @param {SelectItemProps} props - The properties of a select item, which include potential children, value, and label.\n * @returns {{ value: string; label: string, children?: ReactNode }} An object containing `value` and `label` as strings.\n *\n * @example\n * // Returns { value: 'option1', label: 'Option 1' }\n * getSelectOptionValue({ value: 'option1', label: 'Option 1' });\n *\n * @example\n * // Uses children as the value and label when they are not explicitly provided\n * // Returns { value: 'Default', label: 'Default' }\n * getSelectOptionValue({ children: 'Default' });\n */\nexport const getSelectOptionValue = ({\n children,\n value,\n label,\n}: SelectItemProps): {\n value: string;\n label: string;\n children?: ReactNode;\n} => {\n if (children && typeof children === 'string') {\n return {\n value: value ? value : children,\n label: label ? label : children,\n };\n }\n\n return {\n value: value || '',\n label: label ? label : value || '',\n ...(children ? { children } : null),\n };\n};\n/**\n * Determines if the child is a leaf node of React, meaning it has one final child of a native type;\n *\n * @param {ReactNode} child - The React child node to check.\n * @param {JSXElementConstructor<never>} Component - The React component constructor used for comparison.\n * @returns {boolean} Returns true if the `child` is a valid React element of the specified `Component` type.\n *\n * @example\n * // Assuming ForwardedRefSelectItem is a component that renders an <input> element\n * // Returns true\n * isReactLeaf(<ForwardedRefSelectItem />, ForwardedRefSelectItem);\n *\n * @example\n * // Returns false for non-matching types or non-leaf components\n * isReactLeaf(<div><ForwardedRefSelectItem /></div>, ForwardedRefSelectItem);\n */\nexport const isReactLeaf = (child: ReactNode, Component: JSXElementConstructor<never>): child is ReactElement =>\n isValidElement(child) && child.type === Component;\n\n/**\n * Recursively maps through React children, applying a callback to each child that meets the specified conditions.\n * This function is useful for deeply nested structures where modifications or checks are needed at multiple levels.\n *\n * @param {ReactNode} children - The children to be recursively processed.\n * @param {function(ReactNode, number): ReactNode} callback - A function that is called for each child that meets the condition. It receives the child and its index, and returns a React node.\n * @param {string} [filterText=''] - Optional text used to filter children based on their properties.\n * @param {number} [nextIndex=0] - The starting index for numbering children, defaults to 0.\n * @returns {{ parsedChildren: ReactNode[], subElementCount: number }} An object containing the transformed children array and the count of all processed sub-elements.\n *\n * @example\n * // Example usage in a select component where only items containing a certain text are modified\n * recursiveMap(children, (child, index) => React.cloneElement(child, { extraProp: 'value' }), 'specific text');\n *\n * @example\n * // Nested structure transformation, adding class names based on index\n * recursiveMap(children, (child, index) => React.cloneElement(child, { className: `item-${index}` }));\n */\nexport const recursiveMap = (\n children: ReactNode,\n callback: (child: ReactNode, nextIndex: number) => ReactNode,\n filterText?: string,\n nextIndex: number = 0,\n): {\n parsedChildren: ReactNode[];\n subElementCount: number;\n} => {\n const resultingChildren: ReactNode[] = [];\n let itemCounter = 0;\n Children.forEach(children, (child) => {\n if (isReactLeaf(child, ForwardedRefSelectItem) && isValidElement<SelectItemProps>(child)) {\n if (\n getSelectOptionValue(child.props)\n .label.toLowerCase()\n .includes(filterText?.toLowerCase() || '')\n ) {\n resultingChildren.push(callback(child, nextIndex + itemCounter));\n itemCounter++;\n }\n } else if (isValidElement<{ children: ReactNode }>(child) && child?.props.children) {\n const { parsedChildren, subElementCount } = recursiveMap(\n child.props.children,\n callback,\n '',\n nextIndex + itemCounter,\n );\n child = cloneElement(child, {\n children: parsedChildren,\n key: `group-${nextIndex + itemCounter}`,\n });\n resultingChildren.push(child);\n itemCounter += subElementCount;\n } else {\n resultingChildren.push(child);\n }\n });\n return {\n parsedChildren: resultingChildren,\n subElementCount: itemCounter,\n };\n};\n"],"names":["getSelectOptionValue","children","value","label","isReactLeaf","child","Component","isValidElement","recursiveMap","callback","filterText","nextIndex","resultingChildren","itemCounter","Children","ForwardedRefSelectItem","parsedChildren","subElementCount","cloneElement"],"mappings":";;AA6BO,MAAMA,IAAuB,CAAC;AAAA,EACjC,UAAAC;AAAA,EACA,OAAAC;AAAA,EACA,OAAAC;AACJ,MAKQF,KAAY,OAAOA,KAAa,WACzB;AAAA,EACH,OAAOC,KAAgBD;AAAA,EACvB,OAAOE,KAAgBF;AAAA,IAIxB;AAAA,EACH,OAAOC,KAAS;AAAA,EAChB,OAAOC,KAAgBD,KAAS;AAAA,EAChC,GAAID,IAAW,EAAE,UAAAA,MAAa;AAAA,GAmBzBG,IAAc,CAACC,GAAkBC,MAC1CC,EAAeF,CAAK,KAAKA,EAAM,SAASC,GAoB/BE,IAAe,CACxBP,GACAQ,GACAC,GACAC,IAAoB,MAInB;AACD,QAAMC,IAAiC,CAAA;AACvC,MAAIC,IAAc;AAClB,SAAAC,EAAS,QAAQb,GAAU,CAACI,MAAU;AAClC,QAAID,EAAYC,GAAOU,CAAsB,KAAKR,EAAgCF,CAAK;AACnF,MACIL,EAAqBK,EAAM,KAAK,EAC3B,MAAM,cACN,UAASK,KAAA,gBAAAA,EAAY,kBAAiB,EAAE,MAE7CE,EAAkB,KAAKH,EAASJ,GAAOM,IAAYE,CAAW,CAAC,GAC/DA;AAAA,aAEGN,EAAwCF,CAAK,MAAKA,KAAA,QAAAA,EAAO,MAAM,WAAU;AAChF,YAAM,EAAE,gBAAAW,GAAgB,iBAAAC,EAAA,IAAoBT;AAAA,QACxCH,EAAM,MAAM;AAAA,QACZI;AAAA,QACA;AAAA,QACAE,IAAYE;AAAA,MAAA;AAEhB,MAAAR,IAAQa,EAAab,GAAO;AAAA,QACxB,UAAUW;AAAA,QACV,KAAK,SAASL,IAAYE,CAAW;AAAA,MAAA,CACxC,GACDD,EAAkB,KAAKP,CAAK,GAC5BQ,KAAeI;AAAA,IACnB;AACI,MAAAL,EAAkB,KAAKP,CAAK;AAAA,EAEpC,CAAC,GACM;AAAA,IACH,gBAAgBO;AAAA,IAChB,iBAAiBC;AAAA,EAAA;AAEzB;"}
@@ -1,8 +1,9 @@
1
- const r = (e) => {
2
- if (e)
3
- return `rgba(${e.red}, ${e.green}, ${e.blue}, ${e.alpha ?? 1})`;
4
- };
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { IconCross as s } from "@frontify/fondue-icons";
3
+ import { Button as o } from "./fondue-components6.js";
4
+ import t from "./fondue-components70.js";
5
+ const c = ({ onClear: r }) => /* @__PURE__ */ e(o, { "aria-label": "clear input", type: "button", size: "small", emphasis: "weak", aspect: "square", onPress: r, children: /* @__PURE__ */ e(s, { className: t.clearIcon, size: 16 }) });
5
6
  export {
6
- r as colorToCss
7
+ c as SelectClear
7
8
  };
8
9
  //# sourceMappingURL=fondue-components89.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"fondue-components89.js","sources":["../src/components/Badge/utils.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { type RgbaColor } from './types';\n\nexport const DEFAULT_COLOR = { red: 255, green: 255, blue: 255, alpha: 1, name: '' };\n\n/**\n * Converts a color object to a CSS color string.\n * @param {RgbaColor} color - The color object to be converted.\n * @returns {string}\n * @example\n * colorToCss({ red: 255, green: 255, blue: 255, alpha: 1 }); // 'rgba(255, 255, 255, 1)'\n * @example\n * colorToCss({ red: 255, green: 87, blue: 51, alpha: 1 }); // 'rgba(255, 87, 51, 1)'\n * @example\n * colorToCss({ red: 0, green: 0, blue: 0, alpha: 0 }); // 'rgba(0, 0, 0, 0)'\n */\nexport const colorToCss = (color?: RgbaColor) => {\n if (!color) {\n return undefined;\n }\n return `rgba(${color.red}, ${color.green}, ${color.blue}, ${color.alpha ?? 1})`;\n};\n"],"names":["colorToCss","color"],"mappings":"AAiBO,MAAMA,IAAa,CAACC,MAAsB;AAC7C,MAAKA;AAGL,WAAO,QAAQA,EAAM,GAAG,KAAKA,EAAM,KAAK,KAAKA,EAAM,IAAI,KAAKA,EAAM,SAAS,CAAC;AAChF;"}
1
+ {"version":3,"file":"fondue-components89.js","sources":["../src/components/Select/SelectClear.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { IconCross } from '@frontify/fondue-icons';\n\nimport { Button } from '../Button/Button';\n\nimport styles from './styles/select.module.scss';\n\nexport const SelectClear = ({ onClear }: { onClear?: () => void }) => {\n return (\n <Button aria-label=\"clear input\" type=\"button\" size=\"small\" emphasis=\"weak\" aspect=\"square\" onPress={onClear}>\n <IconCross className={styles.clearIcon} size={16} />\n </Button>\n );\n};\n"],"names":["SelectClear","onClear","jsx","Button","IconCross","styles"],"mappings":";;;;AAQO,MAAMA,IAAc,CAAC,EAAE,SAAAC,QAEtB,gBAAAC,EAACC,KAAO,cAAW,eAAc,MAAK,UAAS,MAAK,SAAQ,UAAS,QAAO,QAAO,UAAS,SAASF,GACjG,UAAA,gBAAAC,EAACE,GAAA,EAAU,WAAWC,EAAO,WAAW,MAAM,GAAA,CAAI,EAAA,CACtD;"}
@@ -2,10 +2,10 @@ import { jsx as o, jsxs as O } from "react/jsx-runtime";
2
2
  import { IconCross as P } from "@frontify/fondue-icons";
3
3
  import * as d from "@radix-ui/react-dialog";
4
4
  import { createContext as j, forwardRef as l, useRef as q, useContext as B, useMemo as z } from "react";
5
- import { useSyncRefs as E } from "./fondue-components50.js";
6
- import { addShowFocusRing as L, addAutoFocusAttribute as $ } from "./fondue-components51.js";
7
- import { useFondueTheme as k, ThemeProvider as G } from "./fondue-components33.js";
8
- import n from "./fondue-components52.js";
5
+ import { useSyncRefs as E } from "./fondue-components48.js";
6
+ import { addShowFocusRing as L, addAutoFocusAttribute as $ } from "./fondue-components49.js";
7
+ import { useFondueTheme as k, ThemeProvider as G } from "./fondue-components31.js";
8
+ import n from "./fondue-components50.js";
9
9
  const m = j({ isModal: !1 });
10
10
  m.displayName = "DialogContext";
11
11
  const y = ({ children: t, modal: e, onOpenChange: a, open: i }) => {
@@ -1,20 +1,20 @@
1
- const o = "_root_1xnv8_5", c = "_clearIcon_1xnv8_35", t = "_caret_1xnv8_52", n = "_colorName_1xnv8_70", _ = "_colorIndicator_1xnv8_73", r = "_button_1xnv8_94", a = "_actions_1xnv8_126", s = {
1
+ const o = "_root_x0mxj_5", c = "_clearIcon_x0mxj_35", t = "_caret_x0mxj_52", _ = "_colorName_x0mxj_70", n = "_button_x0mxj_91", r = "_colorIndicator_x0mxj_104", a = "_actions_x0mxj_123", x = {
2
2
  root: o,
3
3
  clearIcon: c,
4
4
  caret: t,
5
- colorName: n,
6
- colorIndicator: _,
7
- button: r,
5
+ colorName: _,
6
+ button: n,
7
+ colorIndicator: r,
8
8
  actions: a
9
9
  };
10
10
  export {
11
11
  a as actions,
12
- r as button,
12
+ n as button,
13
13
  t as caret,
14
14
  c as clearIcon,
15
- _ as colorIndicator,
16
- n as colorName,
17
- s as default,
15
+ r as colorIndicator,
16
+ _ as colorName,
17
+ x as default,
18
18
  o as root
19
19
  };
20
20
  //# sourceMappingURL=fondue-components90.js.map
package/dist/index.d.ts CHANGED
@@ -4,7 +4,7 @@ import { ChangeEventHandler } from 'react';
4
4
  import { CommonAriaAttrs } from '../../utilities/types';
5
5
  import { Context } from 'react';
6
6
  import { CSSProperties } from 'react';
7
- import { default as default_2 } from '@frontify/fondue-tokens/themes';
7
+ import { default as default_2 } from '@frontify/fondue-tokens/theme-tokens';
8
8
  import { FocusEvent as FocusEvent_2 } from 'react';
9
9
  import { FocusEventHandler } from 'react';
10
10
  import { FormEvent } from 'react';
@@ -598,7 +598,7 @@ declare type DialogTriggerProps = {
598
598
 
599
599
  export declare const Divider: ForwardRefExoticComponent<DividerProps & RefAttributes<HTMLDivElement>>;
600
600
 
601
- declare type DividerColor = 'weak' | 'default' | 'strong';
601
+ declare type DividerColor = 'weak' | 'default' | 'strong' | 'x-strong';
602
602
 
603
603
  declare type DividerDirection = 'horizontal' | 'vertical';
604
604
 
@@ -1231,105 +1231,6 @@ declare type LayoutComponentProps = {
1231
1231
  left?: Responsive<SpacingValue>;
1232
1232
  };
1233
1233
 
1234
- export declare const Link: ForwardRefExoticComponent<LinkProps & RefAttributes<HTMLAnchorElement>>;
1235
-
1236
- declare type LinkColor = 'primary' | 'secondary' | 'error' | 'success' | 'warning' | 'highlight';
1237
-
1238
- declare type LinkOnContainerColor = 'secondary' | 'disabled' | 'error' | 'success' | 'warning' | 'highlight';
1239
-
1240
- declare type LinkProps = {
1241
- children?: ReactNode;
1242
- /**
1243
- * The link to navigate to when clicked
1244
- */
1245
- href: string;
1246
- /**
1247
- * Id of the element
1248
- */
1249
- id?: string;
1250
- /**
1251
- * Size of the text
1252
- *
1253
- * @default 'medium'
1254
- */
1255
- size?: LinkSize;
1256
- /**
1257
- * Weight of the font
1258
- *
1259
- * @default 'regular'
1260
- */
1261
- weight?: LinkWeight;
1262
- /**
1263
- * Color of the text
1264
- *
1265
- * @default 'primary'
1266
- */
1267
- color?: LinkColor;
1268
- /**
1269
- * The texts color when used within a container
1270
- *
1271
- * @description optional color prop that uses the inverse container color when accessibility contrast is needed
1272
- **/
1273
- onContainer?: LinkOnContainerColor;
1274
- /**
1275
- * Truncate the text if it overflows
1276
- */
1277
- truncate?: boolean;
1278
- /**
1279
- * Wrap the text if it overflows
1280
- * @default 'nowrap'
1281
- */
1282
- wrap?: LinkWrap;
1283
- /**
1284
- * Underline behavior of the link
1285
- * @default 'auto'
1286
- */
1287
- underline?: LinkUnderline;
1288
- /**
1289
- * The target attribute for the link
1290
- * @default '_self'
1291
- */
1292
- target?: string;
1293
- /**
1294
- * The rel attribute for the link
1295
- * @default 'noopener noreferrer'
1296
- */
1297
- rel?: string;
1298
- className?: string;
1299
- onPress?: (event: MouseEvent_2<HTMLAnchorElement>) => void;
1300
- 'data-test-id'?: string;
1301
- /**
1302
- * Aria label for the component.
1303
- */
1304
- 'aria-label'?: string;
1305
- /**
1306
- * Aria labelled by for the component.
1307
- */
1308
- 'aria-labelledby'?: string;
1309
- /**
1310
- * Aria described by for the component.
1311
- */
1312
- 'aria-describedby'?: string;
1313
- /**
1314
- * Aria details for extend description of the component.
1315
- */
1316
- 'aria-details'?: string;
1317
- /**
1318
- * Disable the link
1319
- *
1320
- * @default false
1321
- */
1322
- disabled?: boolean;
1323
- };
1324
-
1325
- declare type LinkSize = 'xx-small' | 'x-small' | 'small' | 'medium' | 'large' | 'x-large' | 'xx-large';
1326
-
1327
- declare type LinkUnderline = 'auto' | 'always' | 'hover' | 'none';
1328
-
1329
- declare type LinkWeight = 'regular' | 'medium' | 'bold';
1330
-
1331
- declare type LinkWrap = 'wrap' | 'nowrap';
1332
-
1333
1234
  export declare const LoadingBar: ForwardRefExoticComponent<LoadingBarProps & RefAttributes<HTMLDivElement>>;
1334
1235
 
1335
1236
  declare type LoadingBarProps = {
@@ -1414,20 +1315,6 @@ declare type RgbaColor_2 = {
1414
1315
  name?: string;
1415
1316
  };
1416
1317
 
1417
- export declare const RouterProvider: ({ children, navigate, useHref }: RouterProviderProps) => JSX_2.Element;
1418
-
1419
- export declare type RouterProviderProps = {
1420
- children: ReactNode;
1421
- /**
1422
- * Function to navigate to a specific path
1423
- */
1424
- navigate: (path: string) => void;
1425
- /**
1426
- * Function to resolves a URL against the current location.
1427
- */
1428
- useHref: (path: string) => string;
1429
- };
1430
-
1431
1318
  declare const screens: {
1432
1319
  xs: string;
1433
1320
  sm: string;
@@ -2328,7 +2215,7 @@ declare type TextSize = 'x-small' | 'small' | 'medium' | 'large';
2328
2215
 
2329
2216
  declare type TextWeight = 'default' | 'strong' | 'x-strong';
2330
2217
 
2331
- export declare const ThemeContext: Context<"base" | "dark" | "light">;
2218
+ export declare const ThemeContext: Context<"dark" | "light">;
2332
2219
 
2333
2220
  export declare const ThemeProvider: ({ children, theme, asChild }: ThemeProviderProps) => JSX_2.Element;
2334
2221
 
@@ -2397,7 +2284,7 @@ declare type TooltipTriggerProps = {
2397
2284
  'data-test-id'?: string;
2398
2285
  };
2399
2286
 
2400
- export declare const useFondueTheme: () => "base" | "dark" | "light";
2287
+ export declare const useFondueTheme: () => "dark" | "light";
2401
2288
 
2402
2289
  export { }
2403
2290