@frontify/fondue-components 12.0.0 → 13.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 +38 -32
- package/dist/fondue-components.js.map +1 -1
- package/dist/fondue-components10.js +2 -2
- package/dist/fondue-components11.js +3 -3
- package/dist/fondue-components12.js +2 -2
- package/dist/fondue-components13.js +47 -24
- package/dist/fondue-components13.js.map +1 -1
- package/dist/fondue-components14.js +24 -39
- package/dist/fondue-components14.js.map +1 -1
- package/dist/fondue-components15.js +37 -64
- package/dist/fondue-components15.js.map +1 -1
- package/dist/fondue-components16.js +16 -31
- package/dist/fondue-components16.js.map +1 -1
- package/dist/fondue-components17.js +66 -47
- package/dist/fondue-components17.js.map +1 -1
- package/dist/fondue-components18.js +36 -132
- package/dist/fondue-components18.js.map +1 -1
- package/dist/fondue-components19.js +42 -50
- package/dist/fondue-components19.js.map +1 -1
- package/dist/fondue-components20.js +132 -29
- package/dist/fondue-components20.js.map +1 -1
- package/dist/fondue-components21.js +51 -143
- package/dist/fondue-components21.js.map +1 -1
- package/dist/fondue-components22.js +28 -118
- package/dist/fondue-components22.js.map +1 -1
- package/dist/fondue-components23.js +148 -60
- package/dist/fondue-components23.js.map +1 -1
- package/dist/fondue-components24.js +112 -49
- package/dist/fondue-components24.js.map +1 -1
- package/dist/fondue-components25.js +33 -7
- package/dist/fondue-components25.js.map +1 -1
- package/dist/fondue-components26.js +66 -32
- package/dist/fondue-components26.js.map +1 -1
- package/dist/fondue-components27.js +7 -5
- package/dist/fondue-components27.js.map +1 -1
- package/dist/fondue-components28.js +55 -11
- package/dist/fondue-components28.js.map +1 -1
- package/dist/fondue-components29.js +32 -155
- package/dist/fondue-components29.js.map +1 -1
- package/dist/fondue-components3.js +2 -2
- package/dist/fondue-components30.js +5 -118
- package/dist/fondue-components30.js.map +1 -1
- package/dist/fondue-components31.js +10 -116
- package/dist/fondue-components31.js.map +1 -1
- package/dist/fondue-components32.js +147 -13
- package/dist/fondue-components32.js.map +1 -1
- package/dist/fondue-components33.js +116 -30
- package/dist/fondue-components33.js.map +1 -1
- package/dist/fondue-components34.js +118 -37
- package/dist/fondue-components34.js.map +1 -1
- package/dist/fondue-components35.js +20 -129
- package/dist/fondue-components35.js.map +1 -1
- package/dist/fondue-components36.js +32 -21
- package/dist/fondue-components36.js.map +1 -1
- package/dist/fondue-components37.js +37 -45
- package/dist/fondue-components37.js.map +1 -1
- package/dist/fondue-components38.js +130 -13
- package/dist/fondue-components38.js.map +1 -1
- package/dist/fondue-components39.js +20 -14
- package/dist/fondue-components39.js.map +1 -1
- package/dist/fondue-components4.js +4 -4
- package/dist/fondue-components40.js +45 -60
- package/dist/fondue-components40.js.map +1 -1
- package/dist/fondue-components41.js +13 -18
- package/dist/fondue-components41.js.map +1 -1
- package/dist/fondue-components42.js +12 -14
- package/dist/fondue-components42.js.map +1 -1
- package/dist/fondue-components43.js +60 -5
- package/dist/fondue-components43.js.map +1 -1
- package/dist/fondue-components44.js +18 -15
- package/dist/fondue-components44.js.map +1 -1
- package/dist/fondue-components45.js +18 -4
- package/dist/fondue-components45.js.map +1 -1
- package/dist/fondue-components46.js +5 -35
- package/dist/fondue-components46.js.map +1 -1
- package/dist/fondue-components47.js +13 -11
- package/dist/fondue-components47.js.map +1 -1
- package/dist/fondue-components48.js +1 -1
- package/dist/fondue-components49.js +18 -24
- package/dist/fondue-components49.js.map +1 -1
- package/dist/fondue-components5.js +2 -2
- package/dist/fondue-components50.js +35 -17
- package/dist/fondue-components50.js.map +1 -1
- package/dist/fondue-components51.js +6 -141
- package/dist/fondue-components51.js.map +1 -1
- package/dist/fondue-components52.js +13 -16
- package/dist/fondue-components52.js.map +1 -1
- package/dist/fondue-components53.js +4 -72
- package/dist/fondue-components53.js.map +1 -1
- package/dist/fondue-components54.js +25 -8
- package/dist/fondue-components54.js.map +1 -1
- package/dist/fondue-components55.js +16 -32
- package/dist/fondue-components55.js.map +1 -1
- package/dist/fondue-components56.js +140 -47
- package/dist/fondue-components56.js.map +1 -1
- package/dist/fondue-components57.js +16 -11
- package/dist/fondue-components57.js.map +1 -1
- package/dist/fondue-components58.js +72 -12
- package/dist/fondue-components58.js.map +1 -1
- package/dist/fondue-components59.js +8 -8
- package/dist/fondue-components59.js.map +1 -1
- package/dist/fondue-components6.js +5 -5
- package/dist/fondue-components60.js +32 -12
- package/dist/fondue-components60.js.map +1 -1
- package/dist/fondue-components61.js +48 -20
- package/dist/fondue-components61.js.map +1 -1
- package/dist/fondue-components62.js +11 -15
- package/dist/fondue-components62.js.map +1 -1
- package/dist/fondue-components63.js +12 -52
- package/dist/fondue-components63.js.map +1 -1
- package/dist/fondue-components64.js +7 -14
- package/dist/fondue-components64.js.map +1 -1
- package/dist/fondue-components65.js +12 -17
- package/dist/fondue-components65.js.map +1 -1
- package/dist/fondue-components66.js +20 -6
- package/dist/fondue-components66.js.map +1 -1
- package/dist/fondue-components67.js +15 -7
- package/dist/fondue-components67.js.map +1 -1
- package/dist/fondue-components68.js +53 -2
- package/dist/fondue-components68.js.map +1 -1
- package/dist/fondue-components69.js +14 -14
- package/dist/fondue-components7.js +3 -3
- package/dist/fondue-components70.js +25 -38
- package/dist/fondue-components70.js.map +1 -1
- package/dist/fondue-components71.js +21 -0
- package/dist/fondue-components71.js.map +1 -0
- package/dist/fondue-components72.js +10 -0
- package/dist/fondue-components72.js.map +1 -0
- package/dist/fondue-components73.js +10 -0
- package/dist/fondue-components73.js.map +1 -0
- package/dist/fondue-components74.js +5 -0
- package/dist/fondue-components74.js.map +1 -0
- package/dist/fondue-components75.js +18 -0
- package/dist/fondue-components75.js.map +1 -0
- package/dist/fondue-components76.js +42 -0
- package/dist/fondue-components76.js.map +1 -0
- package/dist/fondue-components8.js +2 -2
- package/dist/fondue-components9.js +85 -77
- package/dist/fondue-components9.js.map +1 -1
- package/dist/index.d.ts +159 -0
- package/dist/style.css +1 -1
- package/package.json +4 -4
|
@@ -1,52 +1,58 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
import { Box as t } from "./fondue-components3.js";
|
|
3
|
-
import { Button as
|
|
3
|
+
import { Button as m } from "./fondue-components4.js";
|
|
4
4
|
import { Checkbox as f } from "./fondue-components5.js";
|
|
5
5
|
import { ColorPicker as l } from "./fondue-components6.js";
|
|
6
6
|
import { Dialog as d } from "./fondue-components7.js";
|
|
7
7
|
import { Divider as T } from "./fondue-components8.js";
|
|
8
8
|
import { Dropdown as S } from "./fondue-components9.js";
|
|
9
|
-
import { Flex as
|
|
9
|
+
import { Flex as h } from "./fondue-components10.js";
|
|
10
10
|
import { Flyout as C } from "./fondue-components11.js";
|
|
11
11
|
import { Grid as B } from "./fondue-components12.js";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
12
|
+
import { Heading as F } from "./fondue-components13.js";
|
|
13
|
+
import { Label as k } from "./fondue-components14.js";
|
|
14
|
+
import { LoadingBar as v } from "./fondue-components15.js";
|
|
15
|
+
import { LoadingCircle as P } from "./fondue-components16.js";
|
|
16
|
+
import { ScrollArea as A } from "./fondue-components17.js";
|
|
17
|
+
import { Section as H } from "./fondue-components18.js";
|
|
18
|
+
import { SegmentedControl as j } from "./fondue-components19.js";
|
|
19
|
+
import { Select as z } from "./fondue-components20.js";
|
|
20
|
+
import { Slider as J } from "./fondue-components21.js";
|
|
21
|
+
import { Switch as M } from "./fondue-components22.js";
|
|
22
|
+
import { Table as O } from "./fondue-components23.js";
|
|
23
|
+
import { Tabs as R } from "./fondue-components24.js";
|
|
24
|
+
import { Text as V } from "./fondue-components25.js";
|
|
25
|
+
import { TextInput as X } from "./fondue-components26.js";
|
|
26
|
+
import { ThemeContext as Z, ThemeProvider as _, useFondueTheme as $ } from "./fondue-components27.js";
|
|
27
|
+
import { Tooltip as ro } from "./fondue-components28.js";
|
|
25
28
|
export {
|
|
26
29
|
t as Box,
|
|
27
|
-
|
|
30
|
+
m as Button,
|
|
28
31
|
f as Checkbox,
|
|
29
32
|
l as ColorPicker,
|
|
30
33
|
d as Dialog,
|
|
31
34
|
T as Divider,
|
|
32
35
|
S as Dropdown,
|
|
33
|
-
|
|
36
|
+
h as Flex,
|
|
34
37
|
C as Flyout,
|
|
35
38
|
B as Grid,
|
|
36
|
-
F as
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
P as
|
|
40
|
-
A as
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
J as
|
|
45
|
-
M as
|
|
46
|
-
O as
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
39
|
+
F as Heading,
|
|
40
|
+
k as Label,
|
|
41
|
+
v as LoadingBar,
|
|
42
|
+
P as LoadingCircle,
|
|
43
|
+
A as ScrollArea,
|
|
44
|
+
H as Section,
|
|
45
|
+
j as SegmentedControl,
|
|
46
|
+
z as Select,
|
|
47
|
+
J as Slider,
|
|
48
|
+
M as Switch,
|
|
49
|
+
O as Table,
|
|
50
|
+
R as Tabs,
|
|
51
|
+
V as Text,
|
|
52
|
+
X as TextInput,
|
|
53
|
+
Z as ThemeContext,
|
|
54
|
+
_ as ThemeProvider,
|
|
55
|
+
ro as Tooltip,
|
|
56
|
+
$ as useFondueTheme
|
|
51
57
|
};
|
|
52
58
|
//# 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,7 +1,7 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as n } from "react";
|
|
3
|
-
import { propsToCssVariables as y } from "./fondue-
|
|
4
|
-
import x from "./fondue-
|
|
3
|
+
import { propsToCssVariables as y } from "./fondue-components29.js";
|
|
4
|
+
import x from "./fondue-components46.js";
|
|
5
5
|
const u = n(
|
|
6
6
|
({
|
|
7
7
|
as: a = "div",
|
|
@@ -2,9 +2,9 @@ import { jsx as a, jsxs as l } from "react/jsx-runtime";
|
|
|
2
2
|
import { IconCross as w } from "@frontify/fondue-icons";
|
|
3
3
|
import * as i from "@radix-ui/react-popover";
|
|
4
4
|
import { forwardRef as s } from "react";
|
|
5
|
-
import { addAutoFocusAttribute as x, addShowFocusRing as C } from "./fondue-
|
|
6
|
-
import { useFondueTheme as b, ThemeProvider as T } from "./fondue-
|
|
7
|
-
import d from "./fondue-
|
|
5
|
+
import { addAutoFocusAttribute as x, addShowFocusRing as C } from "./fondue-components41.js";
|
|
6
|
+
import { useFondueTheme as b, ThemeProvider as T } from "./fondue-components27.js";
|
|
7
|
+
import d from "./fondue-components47.js";
|
|
8
8
|
const n = ({ children: t, ...o }) => /* @__PURE__ */ a(i.Root, { ...o, children: t });
|
|
9
9
|
n.displayName = "Flyout.Root";
|
|
10
10
|
const m = ({ asChild: t = !0, children: o, "data-test-id": e = "fondue-flyout-trigger", ...r }, u) => /* @__PURE__ */ a(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as f } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as y } from "react";
|
|
3
|
-
import { propsToCssVariables as n } from "./fondue-
|
|
4
|
-
import u from "./fondue-
|
|
3
|
+
import { propsToCssVariables as n } from "./fondue-components29.js";
|
|
4
|
+
import u from "./fondue-components48.js";
|
|
5
5
|
const c = y(
|
|
6
6
|
({
|
|
7
7
|
as: a = "div",
|
|
@@ -1,27 +1,50 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
1
|
+
import { jsx as y } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as g } from "react";
|
|
3
|
+
import { cn as x } from "./fondue-components31.js";
|
|
4
|
+
import a from "./fondue-components49.js";
|
|
5
|
+
const $ = g(
|
|
6
|
+
({
|
|
7
|
+
as: e = "span",
|
|
8
|
+
children: i,
|
|
9
|
+
className: r,
|
|
10
|
+
color: d = "default",
|
|
11
|
+
role: o,
|
|
12
|
+
size: t = "medium",
|
|
13
|
+
weight: l = "default",
|
|
14
|
+
"data-test-id": s = "fondue-heading",
|
|
15
|
+
"aria-describedby": p,
|
|
16
|
+
"aria-expanded": m,
|
|
17
|
+
"aria-haspopup": n,
|
|
18
|
+
"aria-hidden": b,
|
|
19
|
+
"aria-label": f,
|
|
20
|
+
"aria-labelledby": u,
|
|
21
|
+
...c
|
|
22
|
+
}, h) => /* @__PURE__ */ y(
|
|
23
|
+
e,
|
|
24
|
+
{
|
|
25
|
+
className: x([
|
|
26
|
+
a.root,
|
|
27
|
+
a[`size-${t}`],
|
|
28
|
+
a[`weight-${l}`],
|
|
29
|
+
a[`color-${d}`],
|
|
30
|
+
r
|
|
31
|
+
]),
|
|
32
|
+
role: o,
|
|
33
|
+
"aria-label": f,
|
|
34
|
+
"aria-hidden": b,
|
|
35
|
+
"aria-describedby": p,
|
|
36
|
+
"aria-labelledby": u,
|
|
37
|
+
"aria-expanded": m,
|
|
38
|
+
"aria-haspopup": n,
|
|
39
|
+
"data-test-id": s,
|
|
40
|
+
ref: h,
|
|
41
|
+
...c,
|
|
42
|
+
children: i
|
|
43
|
+
}
|
|
44
|
+
)
|
|
45
|
+
);
|
|
46
|
+
$.displayName = "Heading";
|
|
23
47
|
export {
|
|
24
|
-
|
|
25
|
-
s as LabelComponent
|
|
48
|
+
$ as Heading
|
|
26
49
|
};
|
|
27
50
|
//# sourceMappingURL=fondue-components13.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components13.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"fondue-components13.js","sources":["../src/components/Heading/Heading.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { type ElementType, type ForwardedRef, forwardRef, type ReactNode } from 'react';\n\nimport { type CommonAriaProps } from '#/helpers/aria';\nimport { cn } from '#/utilities/styleUtilities';\n\nimport styles from './styles/heading.module.scss';\n\ntype HeadingWeight = 'default' | 'strong';\ntype HeadingSize = 'medium' | 'large' | 'x-large' | 'xx-large';\ntype HeadingColor = 'default' | 'weak' | 'x-weak' | 'disabled' | 'negative' | 'positive' | 'warning' | 'interactive';\n\ntype TagType = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'span' | 'p';\n\nexport type HeadingProps<TTag extends TagType = 'span'> = CommonAriaProps & {\n 'data-test-id'?: string;\n as?: TTag;\n children?: ReactNode;\n color?: HeadingColor;\n size?: HeadingSize;\n weight?: HeadingWeight;\n className?: string;\n};\n\ntype HeadingElementType<TTag extends TagType> = TTag extends 'span'\n ? HTMLSpanElement\n : TTag extends 'p'\n ? HTMLParagraphElement\n : HTMLHeadingElement;\n\nexport const Heading = forwardRef(\n (\n {\n as: Tag = 'span' as ElementType,\n children,\n className,\n color = 'default',\n role,\n size = 'medium',\n weight = 'default',\n 'data-test-id': dataTestId = 'fondue-heading',\n 'aria-describedby': ariaDescribedBy,\n 'aria-expanded': ariaExpanded,\n 'aria-haspopup': ariaHasPopup,\n 'aria-hidden': ariaHidden,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledBy,\n ...props\n },\n ref,\n ) => {\n return (\n <Tag\n className={cn([\n styles.root,\n styles[`size-${size}`],\n styles[`weight-${weight}`],\n styles[`color-${color}`],\n className,\n ])}\n role={role}\n aria-label={ariaLabel}\n aria-hidden={ariaHidden}\n aria-describedby={ariaDescribedBy}\n aria-labelledby={ariaLabelledBy}\n aria-expanded={ariaExpanded}\n aria-haspopup={ariaHasPopup}\n data-test-id={dataTestId}\n ref={ref}\n {...props}\n >\n {children}\n </Tag>\n );\n },\n) as (<TTag extends TagType = 'span'>(\n props: HeadingProps<TTag> & { ref?: ForwardedRef<HeadingElementType<TTag>> },\n) => JSX.Element) & { displayName: string };\n\nHeading.displayName = 'Heading';\n"],"names":["Heading","forwardRef","Tag","children","className","color","role","size","weight","dataTestId","ariaDescribedBy","ariaExpanded","ariaHasPopup","ariaHidden","ariaLabel","ariaLabelledBy","props","ref","jsx","cn","styles"],"mappings":";;;;AA+BO,MAAMA,IAAUC;AAAA,EACnB,CACI;AAAA,IACI,IAAIC,IAAM;AAAA,IACV,UAAAC;AAAA,IACA,WAAAC;AAAA,IACA,OAAAC,IAAQ;AAAA,IACR,MAAAC;AAAA,IACA,MAAAC,IAAO;AAAA,IACP,QAAAC,IAAS;AAAA,IACT,gBAAgBC,IAAa;AAAA,IAC7B,oBAAoBC;AAAA,IACpB,iBAAiBC;AAAA,IACjB,iBAAiBC;AAAA,IACjB,eAAeC;AAAA,IACf,cAAcC;AAAA,IACd,mBAAmBC;AAAA,IACnB,GAAGC;AAAA,KAEPC,MAGI,gBAAAC;AAAA,IAAChB;AAAA,IAAA;AAAA,MACG,WAAWiB,EAAG;AAAA,QACVC,EAAO;AAAA,QACPA,EAAO,QAAQb,CAAI,EAAE;AAAA,QACrBa,EAAO,UAAUZ,CAAM,EAAE;AAAA,QACzBY,EAAO,SAASf,CAAK,EAAE;AAAA,QACvBD;AAAA,MAAA,CACH;AAAA,MACD,MAAAE;AAAA,MACA,cAAYQ;AAAA,MACZ,eAAaD;AAAA,MACb,oBAAkBH;AAAA,MAClB,mBAAiBK;AAAA,MACjB,iBAAeJ;AAAA,MACf,iBAAeC;AAAA,MACf,gBAAcH;AAAA,MACd,KAAAQ;AAAA,MACC,GAAGD;AAAA,MAEH,UAAAb;AAAA,IAAA;AAAA,EACL;AAGZ;AAIAH,EAAQ,cAAc;"}
|
|
@@ -1,42 +1,27 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import {
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
style: {
|
|
24
|
-
"--loading-bar-value": a,
|
|
25
|
-
"--loading-bar-max": r,
|
|
26
|
-
"--loading-bar-proportion": "calc(var(--loading-bar-value) / var(--loading-bar-max))"
|
|
27
|
-
},
|
|
28
|
-
...l,
|
|
29
|
-
children: /* @__PURE__ */ i(
|
|
30
|
-
t.Indicator,
|
|
31
|
-
{
|
|
32
|
-
className: f({ variant: o, indeterminateState: a === null })
|
|
33
|
-
}
|
|
34
|
-
)
|
|
35
|
-
}
|
|
36
|
-
)
|
|
37
|
-
);
|
|
38
|
-
p.displayName = "LoadingBar";
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import * as d from "@radix-ui/react-label";
|
|
3
|
+
import { forwardRef as i } from "react";
|
|
4
|
+
import { cn as n } from "./fondue-components31.js";
|
|
5
|
+
const s = ({ className: e, "data-test-id": a = "fondue-label", ...t }, r) => /* @__PURE__ */ o(
|
|
6
|
+
d.Root,
|
|
7
|
+
{
|
|
8
|
+
ref: r,
|
|
9
|
+
"data-required": t.required,
|
|
10
|
+
className: n(
|
|
11
|
+
'tw-group tw-flex tw-gap-1 tw-font-sans tw-font-normal peer-data-[state="checked"]:tw-font-medium peer-data-[state="indeterminate"]:tw-font-medium tw-text-body-medium tw-text-text-weak peer-hover:tw-text-text has-[+_*_input:hover:not(:disabled)]:tw-text-text tw-transition-colors',
|
|
12
|
+
// Disabled state if siblings has disabled state
|
|
13
|
+
"has-[+_*_:disabled]:tw-text-text-disabled has-[~_:disabled]:tw-cursor-not-allowed peer-disabled:tw-text-text-disabled peer-disabled:tw-cursor-not-allowed",
|
|
14
|
+
// Required asterisk
|
|
15
|
+
'after:tw-hidden data-[required="true"]:after:tw-flex after:tw-content-["*"] after:-tw-ml-1 after:tw-font-sans after:tw-text-body-small after:tw-font-medium after:tw-text-text-negative group-hover:tw-text-text-negative-hover',
|
|
16
|
+
e
|
|
17
|
+
),
|
|
18
|
+
"data-test-id": a,
|
|
19
|
+
...t
|
|
20
|
+
}
|
|
21
|
+
), w = i(s);
|
|
22
|
+
w.displayName = "Label";
|
|
39
23
|
export {
|
|
40
|
-
|
|
24
|
+
w as Label,
|
|
25
|
+
s as LabelComponent
|
|
41
26
|
};
|
|
42
27
|
//# sourceMappingURL=fondue-components14.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components14.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"fondue-components14.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 ReactNode } from 'react';\n\nimport { cn } from '#/utilities/styleUtilities';\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 className?: string;\n 'data-test-id'?: string;\n};\n\nexport const LabelComponent = (\n { className, 'data-test-id': dataTestId = 'fondue-label', ...props }: LabelProps,\n ref: ForwardedRef<HTMLLabelElement>,\n) => {\n return (\n <LabelPrimitive.Root\n ref={ref}\n data-required={props.required}\n className={cn(\n 'tw-group tw-flex tw-gap-1 tw-font-sans tw-font-normal peer-data-[state=\"checked\"]:tw-font-medium peer-data-[state=\"indeterminate\"]:tw-font-medium tw-text-body-medium tw-text-text-weak peer-hover:tw-text-text has-[+_*_input:hover:not(:disabled)]:tw-text-text tw-transition-colors',\n // Disabled state if siblings has disabled state\n 'has-[+_*_:disabled]:tw-text-text-disabled has-[~_:disabled]:tw-cursor-not-allowed peer-disabled:tw-text-text-disabled peer-disabled:tw-cursor-not-allowed',\n // Required asterisk\n 'after:tw-hidden data-[required=\"true\"]:after:tw-flex after:tw-content-[\"*\"] after:-tw-ml-1 after:tw-font-sans after:tw-text-body-small after:tw-font-medium after:tw-text-text-negative group-hover:tw-text-text-negative-hover',\n className,\n )}\n data-test-id={dataTestId}\n {...props}\n />\n );\n};\n\nexport const Label = forwardRef<HTMLLabelElement, LabelProps>(LabelComponent);\nLabel.displayName = 'Label';\n"],"names":["LabelComponent","className","dataTestId","props","ref","jsx","LabelPrimitive","cn","Label","forwardRef"],"mappings":";;;;AAuBa,MAAAA,IAAiB,CAC1B,EAAE,WAAAC,GAAW,gBAAgBC,IAAa,gBAAgB,GAAGC,EAAM,GACnEC,MAGI,gBAAAC;AAAA,EAACC,EAAe;AAAA,EAAf;AAAA,IACG,KAAAF;AAAA,IACA,iBAAeD,EAAM;AAAA,IACrB,WAAWI;AAAA,MACP;AAAA;AAAA,MAEA;AAAA;AAAA,MAEA;AAAA,MACAN;AAAA,IACJ;AAAA,IACA,gBAAcC;AAAA,IACb,GAAGC;AAAA,EAAA;AACR,GAIKK,IAAQC,EAAyCT,CAAc;AAC5EQ,EAAM,cAAc;"}
|
|
@@ -1,69 +1,42 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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-components50.js";
|
|
5
|
+
const p = m(
|
|
6
|
+
({
|
|
7
|
+
value: a,
|
|
8
|
+
max: r = 100,
|
|
9
|
+
rounded: d = !0,
|
|
10
|
+
variant: o = "default",
|
|
11
|
+
size: e = "medium",
|
|
12
|
+
"data-test-id": n = "fondue-loading-bar",
|
|
13
|
+
...l
|
|
14
|
+
}, s) => /* @__PURE__ */ i(
|
|
15
|
+
t.Root,
|
|
16
|
+
{
|
|
17
|
+
ref: s,
|
|
18
|
+
"data-test-id": n,
|
|
19
|
+
className: g({ rounded: d, size: e, variant: o }),
|
|
20
|
+
"aria-busy": a !== r,
|
|
21
|
+
value: a,
|
|
22
|
+
max: r,
|
|
23
|
+
style: {
|
|
24
|
+
"--loading-bar-value": a,
|
|
25
|
+
"--loading-bar-max": r,
|
|
26
|
+
"--loading-bar-proportion": "calc(var(--loading-bar-value) / var(--loading-bar-max))"
|
|
27
|
+
},
|
|
28
|
+
...l,
|
|
29
|
+
children: /* @__PURE__ */ i(
|
|
30
|
+
t.Indicator,
|
|
23
31
|
{
|
|
24
|
-
className: a
|
|
25
|
-
style: { maxHeight: e },
|
|
26
|
-
"data-test-id": `${r}-viewport`,
|
|
27
|
-
"data-show-shadow": c,
|
|
28
|
-
children: i
|
|
32
|
+
className: f({ variant: o, indeterminateState: a === null })
|
|
29
33
|
}
|
|
30
|
-
)
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
orientation: "vertical",
|
|
36
|
-
"data-test-id": `${r}-vertical-scrollbar`,
|
|
37
|
-
children: /* @__PURE__ */ l(
|
|
38
|
-
o.Thumb,
|
|
39
|
-
{
|
|
40
|
-
className: a.thumb,
|
|
41
|
-
"data-test-id": `${r}-vertical-scrollbar-thumb`
|
|
42
|
-
}
|
|
43
|
-
)
|
|
44
|
-
}
|
|
45
|
-
),
|
|
46
|
-
/* @__PURE__ */ l(
|
|
47
|
-
o.Scrollbar,
|
|
48
|
-
{
|
|
49
|
-
className: a.scrollbar,
|
|
50
|
-
orientation: "horizontal",
|
|
51
|
-
"data-test-id": `${r}-horizontal-scrollbar`,
|
|
52
|
-
children: /* @__PURE__ */ l(
|
|
53
|
-
o.Thumb,
|
|
54
|
-
{
|
|
55
|
-
className: a.thumb,
|
|
56
|
-
"data-test-id": `${r}-horizontal-scrollbar-thumb`
|
|
57
|
-
}
|
|
58
|
-
)
|
|
59
|
-
}
|
|
60
|
-
),
|
|
61
|
-
/* @__PURE__ */ l(o.Corner, { className: a.corner, "data-test-id": `${r}-corner` })
|
|
62
|
-
]
|
|
63
|
-
}
|
|
64
|
-
), d = b(h);
|
|
65
|
-
d.displayName = "ScrollArea";
|
|
34
|
+
)
|
|
35
|
+
}
|
|
36
|
+
)
|
|
37
|
+
);
|
|
38
|
+
p.displayName = "LoadingBar";
|
|
66
39
|
export {
|
|
67
|
-
|
|
40
|
+
p as LoadingBar
|
|
68
41
|
};
|
|
69
42
|
//# sourceMappingURL=fondue-components15.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components15.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"fondue-components15.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,KAEPC,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,MAChC;AAAA,MAEH,GAAGK;AAAA,MAEJ,UAAA,gBAAAE;AAAA,QAACC,EAAuB;AAAA,QAAvB;AAAA,UACG,WAAWE,EAAiB,EAAE,SAAAR,GAAS,oBAAoBH,MAAU,KAAM,CAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IAC/E;AAAA,EACJ;AAGZ;AACAF,EAAW,cAAc;"}
|
|
@@ -1,39 +1,24 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
const y = m(
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as i } from "react";
|
|
3
|
+
import d from "./fondue-components51.js";
|
|
4
|
+
const s = i(
|
|
6
5
|
({
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"
|
|
12
|
-
"aria-describedby": d,
|
|
13
|
-
"aria-labelledby": s,
|
|
14
|
-
"aria-expanded": t,
|
|
15
|
-
"aria-haspopup": p,
|
|
16
|
-
...l
|
|
17
|
-
}, b) => /* @__PURE__ */ n(
|
|
18
|
-
"section",
|
|
6
|
+
variant: t = "progress",
|
|
7
|
+
size: a = "medium",
|
|
8
|
+
"data-test-id": r = "fondue-loading-circle-content"
|
|
9
|
+
}, o) => /* @__PURE__ */ e(
|
|
10
|
+
"div",
|
|
19
11
|
{
|
|
20
|
-
|
|
21
|
-
"data-test-id":
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"aria-hidden": o,
|
|
26
|
-
"aria-describedby": d,
|
|
27
|
-
"aria-labelledby": s,
|
|
28
|
-
"aria-expanded": t,
|
|
29
|
-
"aria-haspopup": p,
|
|
30
|
-
ref: b,
|
|
31
|
-
children: e
|
|
12
|
+
ref: o,
|
|
13
|
+
"data-test-id": r,
|
|
14
|
+
"data-variant": t,
|
|
15
|
+
"data-size": a,
|
|
16
|
+
className: d.root
|
|
32
17
|
}
|
|
33
18
|
)
|
|
34
19
|
);
|
|
35
|
-
|
|
20
|
+
s.displayName = "LoadingCircle";
|
|
36
21
|
export {
|
|
37
|
-
|
|
22
|
+
s as LoadingCircle
|
|
38
23
|
};
|
|
39
24
|
//# sourceMappingURL=fondue-components16.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components16.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"fondue-components16.js","sources":["../src/components/LoadingCircle/LoadingCircle.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { forwardRef, type ForwardedRef } from 'react';\n\nimport styles from './styles/loadingCircleStyles.module.scss';\n\nexport type LoadingCircleProps = {\n /**\n * The variant of the loading circle.\n * @default 'progress'\n */\n variant?: 'progress' | 'success' | 'danger';\n /**\n * The size of the loading circle\n * @default \"medium\"\n */\n size?: 'xx-small' | 'x-small' | 'small' | 'medium' | 'large';\n 'data-test-id'?: string;\n};\n\nexport const LoadingCircle = forwardRef<HTMLDivElement, LoadingCircleProps>(\n (\n {\n variant = 'progress',\n size = 'medium',\n 'data-test-id': dataTestId = 'fondue-loading-circle-content',\n }: LoadingCircleProps,\n ref: ForwardedRef<HTMLDivElement>,\n ) => {\n return (\n <div\n ref={ref}\n data-test-id={dataTestId}\n data-variant={variant}\n data-size={size}\n className={styles.root}\n ></div>\n );\n },\n);\nLoadingCircle.displayName = 'LoadingCircle';\n"],"names":["LoadingCircle","forwardRef","variant","size","dataTestId","ref","jsx","styles"],"mappings":";;;AAoBO,MAAMA,IAAgBC;AAAA,EACzB,CACI;AAAA,IACI,SAAAC,IAAU;AAAA,IACV,MAAAC,IAAO;AAAA,IACP,gBAAgBC,IAAa;AAAA,KAEjCC,MAGI,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACG,KAAAD;AAAA,MACA,gBAAcD;AAAA,MACd,gBAAcF;AAAA,MACd,aAAWC;AAAA,MACX,WAAWI,EAAO;AAAA,IAAA;AAAA,EACrB;AAGb;AACAP,EAAc,cAAc;"}
|