@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.
- package/dist/fondue-components.js +46 -50
- package/dist/fondue-components.js.map +1 -1
- package/dist/fondue-components10.js +3 -3
- package/dist/fondue-components10.js.map +1 -1
- package/dist/fondue-components11.js +66 -84
- package/dist/fondue-components11.js.map +1 -1
- package/dist/fondue-components12.js +2 -2
- package/dist/fondue-components13.js +49 -50
- package/dist/fondue-components13.js.map +1 -1
- package/dist/fondue-components14.js +2 -2
- package/dist/fondue-components15.js +2 -2
- package/dist/fondue-components16.js +2 -2
- package/dist/fondue-components17.js +36 -56
- package/dist/fondue-components17.js.map +1 -1
- package/dist/fondue-components18.js +16 -34
- package/dist/fondue-components18.js.map +1 -1
- package/dist/fondue-components19.js +71 -21
- package/dist/fondue-components19.js.map +1 -1
- package/dist/fondue-components20.js +36 -18
- package/dist/fondue-components20.js.map +1 -1
- package/dist/fondue-components21.js +55 -71
- package/dist/fondue-components21.js.map +1 -1
- package/dist/fondue-components22.js +138 -36
- package/dist/fondue-components22.js.map +1 -1
- package/dist/fondue-components23.js +50 -50
- package/dist/fondue-components23.js.map +1 -1
- package/dist/fondue-components24.js +29 -138
- package/dist/fondue-components24.js.map +1 -1
- package/dist/fondue-components25.js +157 -53
- package/dist/fondue-components25.js.map +1 -1
- package/dist/fondue-components26.js +137 -29
- package/dist/fondue-components26.js.map +1 -1
- package/dist/fondue-components27.js +127 -157
- package/dist/fondue-components27.js.map +1 -1
- package/dist/fondue-components28.js +30 -134
- package/dist/fondue-components28.js.map +1 -1
- package/dist/fondue-components29.js +58 -128
- package/dist/fondue-components29.js.map +1 -1
- package/dist/fondue-components3.js +1 -1
- package/dist/fondue-components30.js +101 -31
- package/dist/fondue-components30.js.map +1 -1
- package/dist/fondue-components31.js +12 -59
- package/dist/fondue-components31.js.map +1 -1
- package/dist/fondue-components32.js +52 -97
- package/dist/fondue-components32.js.map +1 -1
- package/dist/fondue-components33.js +20 -12
- package/dist/fondue-components33.js.map +1 -1
- package/dist/fondue-components34.js +7 -56
- package/dist/fondue-components34.js.map +1 -1
- package/dist/fondue-components35.js +6 -20
- package/dist/fondue-components35.js.map +1 -1
- package/dist/fondue-components36.js +32 -8
- package/dist/fondue-components36.js.map +1 -1
- package/dist/fondue-components37.js +3 -5
- package/dist/fondue-components37.js.map +1 -1
- package/dist/fondue-components38.js +12 -32
- package/dist/fondue-components38.js.map +1 -1
- package/dist/fondue-components39.js +155 -5
- package/dist/fondue-components39.js.map +1 -1
- package/dist/fondue-components4.js +2 -2
- package/dist/fondue-components40.js +116 -18
- package/dist/fondue-components40.js.map +1 -1
- package/dist/fondue-components41.js +22 -59
- package/dist/fondue-components41.js.map +1 -1
- package/dist/fondue-components42.js +14 -111
- package/dist/fondue-components42.js.map +1 -1
- package/dist/fondue-components43.js +30 -116
- package/dist/fondue-components43.js.map +1 -1
- package/dist/fondue-components44.js +53 -21
- package/dist/fondue-components44.js.map +1 -1
- package/dist/fondue-components45.js +129 -31
- package/dist/fondue-components45.js.map +1 -1
- package/dist/fondue-components46.js +20 -52
- package/dist/fondue-components46.js.map +1 -1
- package/dist/fondue-components47.js +53 -130
- package/dist/fondue-components47.js.map +1 -1
- package/dist/fondue-components48.js +7 -20
- package/dist/fondue-components48.js.map +1 -1
- package/dist/fondue-components49.js +13 -53
- package/dist/fondue-components49.js.map +1 -1
- package/dist/fondue-components5.js +2 -2
- package/dist/fondue-components50.js +14 -7
- package/dist/fondue-components50.js.map +1 -1
- package/dist/fondue-components51.js +5 -13
- package/dist/fondue-components51.js.map +1 -1
- package/dist/fondue-components52.js +60 -15
- package/dist/fondue-components52.js.map +1 -1
- package/dist/fondue-components53.js +18 -5
- package/dist/fondue-components53.js.map +1 -1
- package/dist/fondue-components54.js +19 -59
- package/dist/fondue-components54.js.map +1 -1
- package/dist/fondue-components55.js +5 -18
- package/dist/fondue-components55.js.map +1 -1
- package/dist/fondue-components56.js +14 -18
- package/dist/fondue-components56.js.map +1 -1
- package/dist/fondue-components57.js +1 -1
- package/dist/fondue-components58.js +16 -10
- package/dist/fondue-components58.js.map +1 -1
- package/dist/fondue-components59.js +10 -4
- package/dist/fondue-components59.js.map +1 -1
- package/dist/fondue-components6.js +4 -4
- package/dist/fondue-components60.js +35 -18
- package/dist/fondue-components60.js.map +1 -1
- package/dist/fondue-components61.js +4 -10
- package/dist/fondue-components61.js.map +1 -1
- package/dist/fondue-components62.js +10 -34
- package/dist/fondue-components62.js.map +1 -1
- package/dist/fondue-components63.js +5 -35
- package/dist/fondue-components63.js.map +1 -1
- package/dist/fondue-components64.js +24 -4
- package/dist/fondue-components64.js.map +1 -1
- package/dist/fondue-components65.js +16 -12
- package/dist/fondue-components65.js.map +1 -1
- package/dist/fondue-components66.js +150 -4
- package/dist/fondue-components66.js.map +1 -1
- package/dist/fondue-components67.js +19 -25
- package/dist/fondue-components67.js.map +1 -1
- package/dist/fondue-components68.js +77 -16
- package/dist/fondue-components68.js.map +1 -1
- package/dist/fondue-components69.js +8 -151
- package/dist/fondue-components69.js.map +1 -1
- package/dist/fondue-components7.js +2 -2
- package/dist/fondue-components70.js +37 -19
- package/dist/fondue-components70.js.map +1 -1
- package/dist/fondue-components71.js +69 -76
- package/dist/fondue-components71.js.map +1 -1
- package/dist/fondue-components72.js +11 -8
- package/dist/fondue-components72.js.map +1 -1
- package/dist/fondue-components73.js +12 -36
- package/dist/fondue-components73.js.map +1 -1
- package/dist/fondue-components74.js +12 -70
- package/dist/fondue-components74.js.map +1 -1
- package/dist/fondue-components75.js +20 -10
- package/dist/fondue-components75.js.map +1 -1
- package/dist/fondue-components76.js +34 -13
- package/dist/fondue-components76.js.map +1 -1
- package/dist/fondue-components77.js +10 -12
- package/dist/fondue-components77.js.map +1 -1
- package/dist/fondue-components78.js +55 -20
- package/dist/fondue-components78.js.map +1 -1
- package/dist/fondue-components79.js +15 -34
- package/dist/fondue-components79.js.map +1 -1
- package/dist/fondue-components8.js +5 -5
- package/dist/fondue-components80.js +24 -9
- package/dist/fondue-components80.js.map +1 -1
- package/dist/fondue-components81.js +14 -55
- package/dist/fondue-components81.js.map +1 -1
- package/dist/fondue-components82.js +22 -14
- package/dist/fondue-components82.js.map +1 -1
- package/dist/fondue-components83.js +6 -24
- package/dist/fondue-components83.js.map +1 -1
- package/dist/fondue-components84.js +5 -13
- package/dist/fondue-components84.js.map +1 -1
- package/dist/fondue-components85.js +4 -22
- package/dist/fondue-components85.js.map +1 -1
- package/dist/fondue-components86.js +4 -8
- package/dist/fondue-components86.js.map +1 -1
- package/dist/fondue-components87.js +2 -7
- package/dist/fondue-components87.js.map +1 -1
- package/dist/fondue-components88.js +39 -4
- package/dist/fondue-components88.js.map +1 -1
- package/dist/fondue-components89.js +6 -5
- package/dist/fondue-components89.js.map +1 -1
- package/dist/fondue-components9.js +4 -4
- package/dist/fondue-components90.js +8 -8
- package/dist/index.d.ts +4 -117
- package/dist/style.css +1 -1
- package/package.json +5 -6
- package/dist/fondue-components91.js +0 -43
- package/dist/fondue-components91.js.map +0 -1
- package/dist/fondue-components92.js +0 -9
- package/dist/fondue-components92.js.map +0 -1
- package/dist/fondue-components93.js +0 -5
- package/dist/fondue-components93.js.map +0 -1
|
@@ -1,8 +1,43 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
|
|
6
|
-
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
|
|
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/
|
|
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-
|
|
6
|
-
import { addShowFocusRing as L, addAutoFocusAttribute as $ } from "./fondue-
|
|
7
|
-
import { useFondueTheme as k, ThemeProvider as G } from "./fondue-
|
|
8
|
-
import n from "./fondue-
|
|
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 = "
|
|
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:
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
colorName: _,
|
|
6
|
+
button: n,
|
|
7
|
+
colorIndicator: r,
|
|
8
8
|
actions: a
|
|
9
9
|
};
|
|
10
10
|
export {
|
|
11
11
|
a as actions,
|
|
12
|
-
|
|
12
|
+
n as button,
|
|
13
13
|
t as caret,
|
|
14
14
|
c as clearIcon,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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/
|
|
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<"
|
|
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: () => "
|
|
2287
|
+
export declare const useFondueTheme: () => "dark" | "light";
|
|
2401
2288
|
|
|
2402
2289
|
export { }
|
|
2403
2290
|
|