@frontify/fondue-components 1.3.4 → 1.4.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 +15 -11
- package/dist/fondue-components.js.map +1 -1
- package/dist/fondue-components10.js +36 -44
- package/dist/fondue-components10.js.map +1 -1
- package/dist/fondue-components11.js +46 -72
- package/dist/fondue-components11.js.map +1 -1
- package/dist/fondue-components12.js +76 -45
- package/dist/fondue-components12.js.map +1 -1
- package/dist/fondue-components13.js +65 -11
- package/dist/fondue-components13.js.map +1 -1
- package/dist/fondue-components14.js +45 -154
- package/dist/fondue-components14.js.map +1 -1
- package/dist/fondue-components15.js +10 -116
- package/dist/fondue-components15.js.map +1 -1
- package/dist/fondue-components16.js +59 -22
- package/dist/fondue-components16.js.map +1 -1
- package/dist/fondue-components17.js +111 -14
- package/dist/fondue-components17.js.map +1 -1
- package/dist/fondue-components18.js +112 -24
- package/dist/fondue-components18.js.map +1 -1
- package/dist/fondue-components19.js +15 -54
- package/dist/fondue-components19.js.map +1 -1
- package/dist/fondue-components20.js +15 -17
- package/dist/fondue-components20.js.map +1 -1
- package/dist/fondue-components21.js +51 -26
- package/dist/fondue-components21.js.map +1 -1
- package/dist/fondue-components22.js +16 -24
- package/dist/fondue-components22.js.map +1 -1
- package/dist/fondue-components23.js +17 -9
- package/dist/fondue-components23.js.map +1 -1
- package/dist/fondue-components24.js +35 -6
- package/dist/fondue-components24.js.map +1 -1
- package/dist/fondue-components25.js +24 -14
- package/dist/fondue-components25.js.map +1 -1
- package/dist/fondue-components26.js +9 -2
- package/dist/fondue-components26.js.map +1 -1
- package/dist/fondue-components27.js +106 -2356
- package/dist/fondue-components27.js.map +1 -1
- package/dist/fondue-components28.js +12 -143
- package/dist/fondue-components28.js.map +1 -1
- package/dist/fondue-components29.js +38 -29
- package/dist/fondue-components29.js.map +1 -1
- package/dist/fondue-components3.js +20 -18
- package/dist/fondue-components3.js.map +1 -1
- package/dist/fondue-components30.js +11 -0
- package/dist/fondue-components30.js.map +1 -0
- package/dist/fondue-components31.js +24 -0
- package/dist/fondue-components31.js.map +1 -0
- package/dist/fondue-components32.js +59 -0
- package/dist/fondue-components32.js.map +1 -0
- package/dist/fondue-components33.js +21 -0
- package/dist/fondue-components33.js.map +1 -0
- package/dist/fondue-components34.js +18 -0
- package/dist/fondue-components34.js.map +1 -0
- package/dist/fondue-components35.js +5 -0
- package/dist/fondue-components35.js.map +1 -0
- package/dist/fondue-components36.js +2363 -0
- package/dist/fondue-components36.js.map +1 -0
- package/dist/fondue-components37.js +146 -0
- package/dist/fondue-components37.js.map +1 -0
- package/dist/fondue-components38.js +42 -0
- package/dist/fondue-components38.js.map +1 -0
- package/dist/fondue-components39.js +32 -0
- package/dist/fondue-components39.js.map +1 -0
- package/dist/fondue-components4.js +2 -2
- package/dist/fondue-components5.js +54 -50
- package/dist/fondue-components5.js.map +1 -1
- package/dist/fondue-components6.js +2 -2
- package/dist/fondue-components7.js +77 -50
- package/dist/fondue-components7.js.map +1 -1
- package/dist/fondue-components8.js +56 -22
- package/dist/fondue-components8.js.map +1 -1
- package/dist/fondue-components9.js +24 -39
- package/dist/fondue-components9.js.map +1 -1
- package/dist/index.d.ts +251 -7
- package/dist/style.css +1 -1
- package/package.json +9 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components13.js","sources":["../src/
|
|
1
|
+
{"version":3,"file":"fondue-components13.js","sources":["../src/components/TextInput/TextInput.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { IconCheckMark, IconExclamationMarkTriangle } from '@frontify/fondue-icons';\nimport {\n forwardRef,\n useRef,\n type ChangeEvent,\n type ForwardedRef,\n type KeyboardEvent,\n type ReactNode,\n type SyntheticEvent,\n} from 'react';\n\nimport { cn } from '#/utilities/styleUtilities';\n\nimport styles from './styles/text.module.scss';\n\nexport type TextInputProps = {\n id?: string;\n name?: string;\n /**\n * The place where the input slots are placed\n */\n children?: ReactNode;\n /**\n * The default value of the text input\n * Used for uncontrolled components\n */\n defaultValue?: string | number;\n /**\n * The controlled value of the text input\n */\n value?: string | number;\n /**\n * Type of the text input\n * @default \"text\"\n */\n type?: 'date' | 'email' | 'hidden' | 'number' | 'password' | 'search' | 'tel' | 'text' | 'time' | 'url';\n /**\n * The placeholder in the text input\n */\n placeholder?: string;\n /**\n * Disable the text input\n * @default false\n */\n disabled?: boolean;\n /**\n * Make the text input required in form\n * @default false\n */\n required?: boolean;\n /**\n * Make the text input spell-checkable\n * @default true\n */\n spellCheck?: boolean;\n /**\n * Make the text input read-only\n * @default false\n */\n readOnly?: boolean;\n /**\n * Set the type of input so autocomplete can help the user\n * @default \"on\"\n */\n autoComplete?: string;\n /**\n * The maximum length of the text input\n */\n maxLength?: number;\n /**\n * Status of the text input\n * @default \"neutral\"\n */\n status?: 'neutral' | 'success' | 'error' | 'loading';\n className?: string;\n /**\n * Event handler called when the text input value changes\n */\n onChange?: (event: ChangeEvent<HTMLInputElement>) => void;\n /**\n * Event handler called when the text input is blurred\n */\n onBlur?: (event: ChangeEvent<HTMLInputElement>) => void;\n /**\n * Event handler called when the text input is focused\n */\n onFocus?: (event: ChangeEvent<HTMLInputElement>) => void;\n /**\n * Event handler called when a key is pressed\n */\n onKeyDown?: (event: KeyboardEvent<HTMLInputElement>) => void;\n /**\n * Event handler called when a key is released\n */\n onKeyUp?: (event: KeyboardEvent<HTMLInputElement>) => void;\n /**\n * Event handler called when the text inside of text input is selected\n */\n onSelect?: (event: SyntheticEvent<HTMLInputElement>) => void;\n 'data-test-id'?: string;\n 'aria-label'?: string;\n 'aria-labelledby'?: string;\n 'aria-describedby'?: string;\n};\n\nexport const TextFieldRoot = (\n {\n children,\n className,\n status = 'neutral',\n 'data-test-id': dataTestId = 'fondue-text-input',\n ...inputProps\n }: TextInputProps,\n ref: ForwardedRef<HTMLInputElement>,\n) => {\n const wasClicked = useRef(false);\n\n return (\n <div className={cn(styles.root, className)} data-status={status} data-test-id={dataTestId}>\n {status === 'loading' ? (\n <div className={styles.loadingStatus} data-test-id={`${dataTestId}-loader`} />\n ) : null}\n <input\n onMouseDown={(mouseEvent) => {\n wasClicked.current = true;\n mouseEvent.currentTarget.dataset.showFocusRing = 'false';\n }}\n type=\"text\"\n {...inputProps}\n onFocus={(focusEvent) => {\n if (!wasClicked.current) {\n focusEvent.target.dataset.showFocusRing = 'true';\n }\n inputProps.onFocus?.(focusEvent);\n }}\n onBlur={(blurEvent) => {\n blurEvent.target.dataset.showFocusRing = 'false';\n wasClicked.current = false;\n inputProps.onBlur?.(blurEvent);\n }}\n ref={ref}\n className={styles.input}\n aria-invalid={status === 'error'}\n />\n\n {status === 'success' ? (\n <IconCheckMark size={16} className={styles.iconSuccess} data-test-id={`${dataTestId}-success-icon`} />\n ) : null}\n\n {status === 'error' ? (\n <IconExclamationMarkTriangle\n size={16}\n className={styles.iconError}\n data-test-id={`${dataTestId}-error-icon`}\n />\n ) : null}\n\n {children}\n </div>\n );\n};\nTextFieldRoot.displayName = 'TextField.Root';\n\nexport type TextFieldSlotProps = {\n children: ReactNode;\n name?: 'left' | 'right';\n className?: string;\n};\n\nexport const TextFieldSlot = (\n { name, className, ...slotProps }: TextFieldSlotProps,\n forwardedRef: ForwardedRef<HTMLDivElement>,\n) => {\n return (\n <div\n data-slot={true}\n data-name={name}\n {...slotProps}\n ref={forwardedRef}\n className={cn(styles.slot, className)}\n />\n );\n};\n\nTextFieldSlot.displayName = 'TextField.Slot';\n\nconst ForwardedRefTextFieldRoot = forwardRef<HTMLInputElement, TextInputProps>(TextFieldRoot);\nconst ForwardedRefTextFieldSlot = forwardRef<HTMLDivElement, TextFieldSlotProps>(TextFieldSlot);\n// @ts-expect-error We support both single component (without slots) and compound components (with slots)\nexport const TextInput: typeof TextFieldRoot & {\n Root: typeof ForwardedRefTextFieldRoot;\n Slot: typeof ForwardedRefTextFieldSlot;\n} = ForwardedRefTextFieldRoot;\nTextInput.Root = ForwardedRefTextFieldRoot;\nTextInput.Slot = ForwardedRefTextFieldSlot;\n"],"names":["TextFieldRoot","children","className","status","dataTestId","inputProps","ref","wasClicked","useRef","jsxs","cn","styles","jsx","mouseEvent","focusEvent","_a","blurEvent","IconCheckMark","IconExclamationMarkTriangle","TextFieldSlot","name","slotProps","forwardedRef","ForwardedRefTextFieldRoot","forwardRef","ForwardedRefTextFieldSlot","TextInput"],"mappings":";;;;;AA2GO,MAAMA,IAAgB,CACzB;AAAA,EACI,UAAAC;AAAA,EACA,WAAAC;AAAA,EACA,QAAAC,IAAS;AAAA,EACT,gBAAgBC,IAAa;AAAA,EAC7B,GAAGC;AACP,GACAC,MACC;AACK,QAAAC,IAAaC,EAAO,EAAK;AAG3B,SAAA,gBAAAC,EAAC,OAAI,EAAA,WAAWC,EAAGC,EAAO,MAAMT,CAAS,GAAG,eAAaC,GAAQ,gBAAcC,GAC1E,UAAA;AAAA,IAAWD,MAAA,YACP,gBAAAS,EAAA,OAAA,EAAI,WAAWD,EAAO,eAAe,gBAAc,GAAGP,CAAU,UAAA,CAAW,IAC5E;AAAA,IACJ,gBAAAQ;AAAA,MAAC;AAAA,MAAA;AAAA,QACG,aAAa,CAACC,MAAe;AACzB,UAAAN,EAAW,UAAU,IACVM,EAAA,cAAc,QAAQ,gBAAgB;AAAA,QACrD;AAAA,QACA,MAAK;AAAA,QACJ,GAAGR;AAAA,QACJ,SAAS,CAACS,MAAe;;AACjB,UAACP,EAAW,YACDO,EAAA,OAAO,QAAQ,gBAAgB,UAE9CC,IAAAV,EAAW,YAAX,QAAAU,EAAA,KAAAV,GAAqBS;AAAA,QACzB;AAAA,QACA,QAAQ,CAACE,MAAc;;AACT,UAAAA,EAAA,OAAO,QAAQ,gBAAgB,SACzCT,EAAW,UAAU,KACrBQ,IAAAV,EAAW,WAAX,QAAAU,EAAA,KAAAV,GAAoBW;AAAA,QACxB;AAAA,QACA,KAAAV;AAAA,QACA,WAAWK,EAAO;AAAA,QAClB,gBAAcR,MAAW;AAAA,MAAA;AAAA,IAC7B;AAAA,IAECA,MAAW,YACP,gBAAAS,EAAAK,GAAA,EAAc,MAAM,IAAI,WAAWN,EAAO,aAAa,gBAAc,GAAGP,CAAU,gBAAiB,CAAA,IACpG;AAAA,IAEHD,MAAW,UACR,gBAAAS;AAAA,MAACM;AAAA,MAAA;AAAA,QACG,MAAM;AAAA,QACN,WAAWP,EAAO;AAAA,QAClB,gBAAc,GAAGP,CAAU;AAAA,MAAA;AAAA,IAAA,IAE/B;AAAA,IAEHH;AAAA,EACL,EAAA,CAAA;AAER;AACAD,EAAc,cAAc;AAQf,MAAAmB,IAAgB,CACzB,EAAE,MAAAC,GAAM,WAAAlB,GAAW,GAAGmB,KACtBC,MAGI,gBAAAV;AAAA,EAAC;AAAA,EAAA;AAAA,IACG,aAAW;AAAA,IACX,aAAWQ;AAAA,IACV,GAAGC;AAAA,IACJ,KAAKC;AAAA,IACL,WAAWZ,EAAGC,EAAO,MAAMT,CAAS;AAAA,EAAA;AAAA;AAKhDiB,EAAc,cAAc;AAE5B,MAAMI,IAA4BC,EAA6CxB,CAAa,GACtFyB,IAA4BD,EAA+CL,CAAa,GAEjFO,IAGTH;AACJG,EAAU,OAAOH;AACjBG,EAAU,OAAOD;"}
|
|
@@ -1,158 +1,49 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
loud: ""
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
compoundVariants: [
|
|
39
|
-
{
|
|
40
|
-
disabled: !1,
|
|
41
|
-
style: "default",
|
|
42
|
-
emphasis: "default",
|
|
43
|
-
class: "tw-bg-button-background tw-border-button-border hover:tw-bg-button-background-hover active:tw-bg-button-background-pressed"
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
disabled: !1,
|
|
47
|
-
style: "default",
|
|
48
|
-
emphasis: "weak",
|
|
49
|
-
class: "tw-border-transparent hover:tw-bg-button-background-hover hover:tw-border-button-border active:tw-bg-button-background-pressed"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
disabled: !1,
|
|
53
|
-
style: "default",
|
|
54
|
-
emphasis: "strong",
|
|
55
|
-
class: "tw-bg-button-strong-background tw-border-button-strong-border hover:tw-bg-button-strong-background-hover active:tw-bg-button-strong-background-pressed"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
disabled: !1,
|
|
59
|
-
style: "positive",
|
|
60
|
-
emphasis: "default",
|
|
61
|
-
class: "tw-bg-button-positive-background tw-border-button-positive-border hover:tw-bg-button-positive-background-hover active:tw-bg-button-positive-background-pressed"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
disabled: !1,
|
|
65
|
-
style: "positive",
|
|
66
|
-
emphasis: "weak",
|
|
67
|
-
class: "tw-border-transparent hover:tw-bg-button-positive-background-hover hover:tw-border-button-positive-border active:tw-bg-button-positive-background-pressed"
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
disabled: !1,
|
|
71
|
-
style: "positive",
|
|
72
|
-
emphasis: "strong",
|
|
73
|
-
class: "tw-bg-button-strong-positive-background tw-border-button-strong-positive-border hover:tw-bg-button-strong-positive-background-hover active:tw-bg-button-strong-positive-background-pressed"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
disabled: !1,
|
|
77
|
-
style: "negative",
|
|
78
|
-
emphasis: "default",
|
|
79
|
-
class: "tw-bg-button-negative-background tw-border-button-negative-border hover:tw-bg-button-negative-background-hover active:tw-bg-button-negative-background-pressed"
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
disabled: !1,
|
|
83
|
-
style: "negative",
|
|
84
|
-
emphasis: "weak",
|
|
85
|
-
class: "tw-border-transparent hover:tw-bg-button-negative-background-hover hover:tw-border-button-negative-border active:tw-bg-button-negative-background-pressed"
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
disabled: !1,
|
|
89
|
-
style: "negative",
|
|
90
|
-
emphasis: "strong",
|
|
91
|
-
class: "tw-bg-button-strong-negative-background tw-border-button-strong-negative-border hover:tw-bg-button-strong-negative-background-hover active:tw-bg-button-strong-negative-background-pressed"
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
disabled: !1,
|
|
95
|
-
style: "danger",
|
|
96
|
-
emphasis: "default",
|
|
97
|
-
class: "tw-bg-button-background tw-border-button-border hover:tw-bg-button-background-hover active:tw-bg-button-background-pressed"
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
disabled: !1,
|
|
101
|
-
style: "danger",
|
|
102
|
-
emphasis: "weak",
|
|
103
|
-
class: "tw-border-transparent hover:tw-bg-button-background-hover active:tw-bg-button-background-pressed"
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
disabled: !1,
|
|
107
|
-
style: "danger",
|
|
108
|
-
emphasis: "strong",
|
|
109
|
-
class: "tw-bg-button-danger-background tw-border-button-danger-border hover:tw-bg-button-danger-background-hover active:tw-bg-button-danger-background-pressed"
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
disabled: !1,
|
|
113
|
-
style: "loud",
|
|
114
|
-
emphasis: "default",
|
|
115
|
-
class: "tw-bg-box-selected tw-border-button-border hover:tw-bg-box-selected-hover active:tw-bg-box-selected-pressed "
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
disabled: !1,
|
|
119
|
-
style: "loud",
|
|
120
|
-
emphasis: "weak",
|
|
121
|
-
class: "tw-border-transparent hover:tw-bg-box-selected-hover active:tw-bg-box-selected-pressed"
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
disabled: !1,
|
|
125
|
-
style: "loud",
|
|
126
|
-
emphasis: "strong",
|
|
127
|
-
class: "tw-bg-box-selected-strong tw-border-box-selected-strong hover:tw-bg-box-selected-strong-hover active:tw-bg-box-selected-strong-pressed "
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
aspect: "default",
|
|
131
|
-
size: "small",
|
|
132
|
-
class: "tw-px-2"
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
aspect: "default",
|
|
136
|
-
size: "medium",
|
|
137
|
-
class: "tw-px-4"
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
aspect: "default",
|
|
141
|
-
size: "large",
|
|
142
|
-
class: "tw-px-6"
|
|
143
|
-
}
|
|
144
|
-
],
|
|
145
|
-
defaultVariants: {
|
|
146
|
-
style: "default",
|
|
147
|
-
emphasis: "strong",
|
|
148
|
-
size: "medium",
|
|
149
|
-
rounding: "medium",
|
|
150
|
-
hugWidth: !0,
|
|
151
|
-
aspect: "default",
|
|
152
|
-
disabled: !1
|
|
1
|
+
import { jsx as t, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import * as o from "@radix-ui/react-tooltip";
|
|
3
|
+
import { forwardRef as a } from "react";
|
|
4
|
+
import { cn as T } from "./fondue-components15.js";
|
|
5
|
+
import { tooltipContentStyles as f, tooltipArrowStyles as g } from "./fondue-components34.js";
|
|
6
|
+
const d = ({ children: i, enterDelay: e = 700, open: r, onOpenChange: n }) => /* @__PURE__ */ t(o.Provider, { children: /* @__PURE__ */ t(o.Root, { delayDuration: e, open: r, onOpenChange: n, children: i }) });
|
|
7
|
+
d.displayName = "Tooltip.Root";
|
|
8
|
+
const s = ({ children: i, "data-test-id": e = "fondue-tooltip-content" }, r) => /* @__PURE__ */ t(o.Trigger, { "data-test-id": e, asChild: !0, ref: r, children: i });
|
|
9
|
+
s.displayName = "Tooltip.Trigger";
|
|
10
|
+
const p = ({
|
|
11
|
+
children: i,
|
|
12
|
+
className: e,
|
|
13
|
+
maxWidth: r,
|
|
14
|
+
"data-test-id": n = "fondue-tooltip-content",
|
|
15
|
+
...l
|
|
16
|
+
}, m) => /* @__PURE__ */ t(o.Portal, { children: /* @__PURE__ */ c(
|
|
17
|
+
o.Content,
|
|
18
|
+
{
|
|
19
|
+
"data-test-id": n,
|
|
20
|
+
className: T(
|
|
21
|
+
f({
|
|
22
|
+
...l
|
|
23
|
+
}),
|
|
24
|
+
e
|
|
25
|
+
),
|
|
26
|
+
style: { maxWidth: r },
|
|
27
|
+
collisionPadding: 16,
|
|
28
|
+
sideOffset: 8,
|
|
29
|
+
ref: m,
|
|
30
|
+
...l,
|
|
31
|
+
children: [
|
|
32
|
+
i,
|
|
33
|
+
/* @__PURE__ */ t(o.Arrow, { asChild: !0, children: /* @__PURE__ */ t("div", { "aria-hidden": "true", className: g }) })
|
|
34
|
+
]
|
|
153
35
|
}
|
|
154
|
-
});
|
|
36
|
+
) });
|
|
37
|
+
p.displayName = "Tooltip.Content";
|
|
38
|
+
const R = {
|
|
39
|
+
Root: d,
|
|
40
|
+
Trigger: a(s),
|
|
41
|
+
Content: a(p)
|
|
42
|
+
};
|
|
155
43
|
export {
|
|
156
|
-
|
|
44
|
+
R as Tooltip,
|
|
45
|
+
p as TooltipContent,
|
|
46
|
+
d as TooltipRoot,
|
|
47
|
+
s as TooltipTrigger
|
|
157
48
|
};
|
|
158
49
|
//# 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/Tooltip/Tooltip.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport * as RadixTooltip from '@radix-ui/react-tooltip';\nimport { forwardRef, type ForwardedRef, type ReactElement, type ReactNode } from 'react';\n\nimport { cn } from '#/utilities/styleUtilities';\n\nimport { tooltipArrowStyles, tooltipContentStyles } from './styles/tooltipStyles';\n\nexport type TooltipRootProps = {\n /**\n * Sets the open state of the tooltip.\n */\n open?: boolean;\n /**\n * Callback that is called when the open state of the tooltip changes.\n */\n onOpenChange?: (open: boolean) => void;\n /**\n * The delay in milliseconds before the tooltip appears.\n * @default 700\n */\n enterDelay?: number;\n children: Array<ReactElement<TooltipTriggerProps | TooltipContentProps>>;\n};\nexport type TooltipTriggerProps = { children: ReactNode; 'data-test-id'?: string };\nexport type TooltipContentProps = {\n /**\n * @default spacious\n */\n padding?: 'spacious' | 'compact';\n /**\n * Defines the preffered side of the tooltip. It will not be respected if there are collisions with the viewport.\n */\n side?: 'top' | 'right' | 'bottom' | 'left';\n maxWidth?: string;\n className?: string;\n children: ReactNode;\n 'data-test-id'?: string;\n};\n\nexport const TooltipRoot = ({ children, enterDelay = 700, open, onOpenChange }: TooltipRootProps) => {\n return (\n <RadixTooltip.Provider>\n <RadixTooltip.Root delayDuration={enterDelay} open={open} onOpenChange={onOpenChange}>\n {children}\n </RadixTooltip.Root>\n </RadixTooltip.Provider>\n );\n};\nTooltipRoot.displayName = 'Tooltip.Root';\n\nexport const TooltipTrigger = (\n { children, 'data-test-id': dataTestId = 'fondue-tooltip-content' }: TooltipTriggerProps,\n ref: ForwardedRef<HTMLButtonElement>,\n) => {\n return (\n <RadixTooltip.Trigger data-test-id={dataTestId} asChild ref={ref}>\n {children}\n </RadixTooltip.Trigger>\n );\n};\nTooltipTrigger.displayName = 'Tooltip.Trigger';\n\nexport const TooltipContent = (\n {\n children,\n className,\n maxWidth,\n 'data-test-id': dataTestId = 'fondue-tooltip-content',\n ...props\n }: TooltipContentProps,\n ref: ForwardedRef<HTMLDivElement>,\n) => {\n return (\n <RadixTooltip.Portal>\n <RadixTooltip.Content\n data-test-id={dataTestId}\n className={cn(\n tooltipContentStyles({\n ...props,\n }),\n className,\n )}\n style={{ maxWidth }}\n collisionPadding={16}\n sideOffset={8}\n ref={ref}\n {...props}\n >\n {children}\n\n <RadixTooltip.Arrow asChild>\n <div aria-hidden=\"true\" className={tooltipArrowStyles} />\n </RadixTooltip.Arrow>\n </RadixTooltip.Content>\n </RadixTooltip.Portal>\n );\n};\nTooltipContent.displayName = 'Tooltip.Content';\n\nexport const Tooltip = {\n Root: TooltipRoot,\n Trigger: forwardRef<HTMLButtonElement, TooltipTriggerProps>(TooltipTrigger),\n Content: forwardRef<HTMLDivElement, TooltipContentProps>(TooltipContent),\n};\n"],"names":["TooltipRoot","children","enterDelay","open","onOpenChange","jsx","RadixTooltip","TooltipTrigger","dataTestId","ref","TooltipContent","className","maxWidth","props","jsxs","cn","tooltipContentStyles","tooltipArrowStyles","Tooltip","forwardRef"],"mappings":";;;;;AAyCa,MAAAA,IAAc,CAAC,EAAE,UAAAC,GAAU,YAAAC,IAAa,KAAK,MAAAC,GAAM,cAAAC,QAEvD,gBAAAC,EAAAC,EAAa,UAAb,EACG,UAAC,gBAAAD,EAAAC,EAAa,MAAb,EAAkB,eAAeJ,GAAY,MAAAC,GAAY,cAAAC,GACrD,UAAAH,GACL,EACJ,CAAA;AAGRD,EAAY,cAAc;AAEb,MAAAO,IAAiB,CAC1B,EAAE,UAAAN,GAAU,gBAAgBO,IAAa,4BACzCC,MAGI,gBAAAJ,EAACC,EAAa,SAAb,EAAqB,gBAAcE,GAAY,SAAO,IAAC,KAAAC,GACnD,UAAAR,EACL,CAAA;AAGRM,EAAe,cAAc;AAEtB,MAAMG,IAAiB,CAC1B;AAAA,EACI,UAAAT;AAAA,EACA,WAAAU;AAAA,EACA,UAAAC;AAAA,EACA,gBAAgBJ,IAAa;AAAA,EAC7B,GAAGK;AACP,GACAJ,MAGI,gBAAAJ,EAACC,EAAa,QAAb,EACG,UAAA,gBAAAQ;AAAA,EAACR,EAAa;AAAA,EAAb;AAAA,IACG,gBAAcE;AAAA,IACd,WAAWO;AAAA,MACPC,EAAqB;AAAA,QACjB,GAAGH;AAAA,MAAA,CACN;AAAA,MACDF;AAAA,IACJ;AAAA,IACA,OAAO,EAAE,UAAAC,EAAS;AAAA,IAClB,kBAAkB;AAAA,IAClB,YAAY;AAAA,IACZ,KAAAH;AAAA,IACC,GAAGI;AAAA,IAEH,UAAA;AAAA,MAAAZ;AAAA,MAEA,gBAAAI,EAAAC,EAAa,OAAb,EAAmB,SAAO,IACvB,UAAC,gBAAAD,EAAA,OAAA,EAAI,eAAY,QAAO,WAAWY,EAAA,CAAoB,EAC3D,CAAA;AAAA,IAAA;AAAA,EAAA;AAER,EAAA,CAAA;AAGRP,EAAe,cAAc;AAEtB,MAAMQ,IAAU;AAAA,EACnB,MAAMlB;AAAA,EACN,SAASmB,EAAmDZ,CAAc;AAAA,EAC1E,SAASY,EAAgDT,CAAc;AAC3E;"}
|
|
@@ -1,121 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
},
|
|
9
|
-
style: {
|
|
10
|
-
default: "",
|
|
11
|
-
positive: "",
|
|
12
|
-
negative: "",
|
|
13
|
-
danger: "",
|
|
14
|
-
loud: ""
|
|
15
|
-
},
|
|
16
|
-
disabled: {
|
|
17
|
-
true: "tw-text-box-disabled-inverse"
|
|
1
|
+
import { extendTailwindMerge as e } from "./fondue-components36.js";
|
|
2
|
+
import { tv as o } from "./fondue-components37.js";
|
|
3
|
+
const r = e({
|
|
4
|
+
prefix: "tw-",
|
|
5
|
+
extend: {
|
|
6
|
+
classGroups: {
|
|
7
|
+
"font-size": ["text-body-x-small", "text-body-small", "text-body-medium", "text-body-large"]
|
|
18
8
|
}
|
|
19
|
-
},
|
|
20
|
-
compoundVariants: [
|
|
21
|
-
{
|
|
22
|
-
disabled: !1,
|
|
23
|
-
style: "default",
|
|
24
|
-
emphasis: "default",
|
|
25
|
-
class: "[&_svg]:tw-text-button-icon group-hover:[&_svg]:tw-text-button-icon-hover group-active:[&_svg]:tw-text-button-icon-pressed [&_svg]:tw-leading-none"
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
disabled: !1,
|
|
29
|
-
style: "default",
|
|
30
|
-
emphasis: "weak",
|
|
31
|
-
class: "[&_svg]:tw-text-button-icon group-hover:[&_svg]:tw-text-button-icon-hover group-active:[&_svg]:tw-text-button-icon-pressed [&_svg]:tw-leading-none"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
disabled: !1,
|
|
35
|
-
style: "default",
|
|
36
|
-
emphasis: "strong",
|
|
37
|
-
class: "[&_svg]:tw-text-button-strong-icon group-hover:[&_svg]:tw-text-button-strong-icon-hover group-active:[&_svg]:tw-text-button-strong-icon-pressed [&_svg]:tw-leading-none"
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
disabled: !1,
|
|
41
|
-
style: "positive",
|
|
42
|
-
emphasis: "default",
|
|
43
|
-
class: "[&_svg]:tw-text-button-positive-icon group-hover:[&_svg]:tw-text-button-positive-icon-hover group-active:[&_svg]:tw-text-button-positive-icon-pressed [&_svg]:tw-leading-none"
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
disabled: !1,
|
|
47
|
-
style: "positive",
|
|
48
|
-
emphasis: "weak",
|
|
49
|
-
class: "[&_svg]:tw-text-button-strong-positive-icon group-hover:[&_svg]:tw-text-button-strong-positive-icon-hovergroup-active:[&_svg]:tw-text-button-strong-positive-icon-pressed [&_svg]:tw-leading-none"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
disabled: !1,
|
|
53
|
-
style: "positive",
|
|
54
|
-
emphasis: "strong",
|
|
55
|
-
class: "[&_svg]:tw-text-button-strong-positive-icon group-hover:[&_svg]:tw-text-button-strong-positive-icon-hover group-active:[&_svg]:tw-text-button-strong-positive-icon-pressed [&_svg]:tw-leading-none"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
disabled: !1,
|
|
59
|
-
style: "negative",
|
|
60
|
-
emphasis: "default",
|
|
61
|
-
class: "[&_svg]:tw-text-button-negative-icon group-hover:[&_svg]:tw-text-button-negative-icon-hovergroup-active:[&_svg]:tw-text-button-negative-icon-pressed [&_svg]:tw-leading-none"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
disabled: !1,
|
|
65
|
-
style: "negative",
|
|
66
|
-
emphasis: "weak",
|
|
67
|
-
class: "[&_svg]:tw-text-button-negative-icon group-hover:[&_svg]:tw-text-button-negative-icon-hovergroup-active:[&_svg]:tw-text-button-negative-icon-pressed [&_svg]:tw-leading-none"
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
disabled: !1,
|
|
71
|
-
style: "negative",
|
|
72
|
-
emphasis: "strong",
|
|
73
|
-
class: "[&_svg]:tw-text-button-strong-negative-icon group-hover:[&_svg]:tw-text-button-strong-negative-icon-hovergroup-active:[&_svg]:tw-text-button-strong-negative-icon-pressed [&_svg]:tw-leading-none"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
disabled: !1,
|
|
77
|
-
style: "danger",
|
|
78
|
-
emphasis: "default",
|
|
79
|
-
class: "[&_svg]:tw-text-button-negative-icon group-hover:[&_svg]:tw-text-button-negative-icon-hovergroup-active:[&_svg]:tw-text-button-negative-icon-pressed [&_svg]:tw-leading-none"
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
disabled: !1,
|
|
83
|
-
style: "danger",
|
|
84
|
-
emphasis: "weak",
|
|
85
|
-
class: "[&_svg]:tw-text-button-negative-icon group-hover:[&_svg]:tw-text-button-negative-icon-hovergroup-active:[&_svg]:tw-text-button-negative-icon-pressed [&_svg]:tw-leading-none"
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
disabled: !1,
|
|
89
|
-
style: "danger",
|
|
90
|
-
emphasis: "strong",
|
|
91
|
-
class: "[&_svg]:tw-text-button-danger-icon group-hover:[&_svg]:tw-text-button-danger-icon-hovergroup-active:[&_svg]:tw-text-button-danger-icon-pressed [&_svg]:tw-leading-none"
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
disabled: !1,
|
|
95
|
-
style: "loud",
|
|
96
|
-
emphasis: "default",
|
|
97
|
-
class: "[&_svg]:tw-text-box-selected-inverse group-hover:[&_svg]:tw-text-box-selected-inverse-hovergroup-active:[&_svg]:tw-text-box-selected-inverse-pressed [&_svg]:tw-leading-none"
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
disabled: !1,
|
|
101
|
-
style: "loud",
|
|
102
|
-
emphasis: "weak",
|
|
103
|
-
class: "[&_svg]:tw-text-box-selected-inverse group-hover:[&_svg]:tw-text-box-selected-inverse-hovergroup-active:[&_svg]:tw-text-box-selected-inverse-pressed [&_svg]:tw-leading-none"
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
disabled: !1,
|
|
107
|
-
style: "loud",
|
|
108
|
-
emphasis: "strong",
|
|
109
|
-
class: "[&_svg]:tw-text-box-selected-strong-inverse group-hover:[&_svg]:tw-text-box-selected-strong-inversegroup-active:[&_svg]:tw-text-box-selected-strong-inverse [&_svg]:tw-leading-none"
|
|
110
|
-
}
|
|
111
|
-
],
|
|
112
|
-
defaultVariants: {
|
|
113
|
-
emphasis: "strong",
|
|
114
|
-
style: "default",
|
|
115
|
-
disabled: !1
|
|
116
9
|
}
|
|
117
|
-
});
|
|
10
|
+
}), m = (...t) => r(...t), x = (t) => o(t);
|
|
118
11
|
export {
|
|
119
|
-
|
|
12
|
+
m as cn,
|
|
13
|
+
x as sv
|
|
120
14
|
};
|
|
121
15
|
//# sourceMappingURL=fondue-components15.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components15.js","sources":["../src/
|
|
1
|
+
{"version":3,"file":"fondue-components15.js","sources":["../src/utilities/styleUtilities.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { extendTailwindMerge } from 'tailwind-merge';\nimport { tv, type TV } from 'tailwind-variants';\n\ntype ClassNameValue = ClassNameArray | string | null | undefined | 0 | false;\ntype ClassNameArray = ClassNameValue[];\n\nconst customTwMerge = extendTailwindMerge({\n prefix: 'tw-',\n extend: {\n classGroups: {\n 'font-size': ['text-body-x-small', 'text-body-small', 'text-body-medium', 'text-body-large'],\n },\n },\n});\n\nexport const cn = (...classLists: ClassNameValue[]): string => {\n return customTwMerge(...classLists);\n};\n\nexport const sv: TV = (variants) => {\n return tv(variants);\n};\n"],"names":["customTwMerge","extendTailwindMerge","cn","classLists","sv","variants","tv"],"mappings":";;AAQA,MAAMA,IAAgBC,EAAoB;AAAA,EACtC,QAAQ;AAAA,EACR,QAAQ;AAAA,IACJ,aAAa;AAAA,MACT,aAAa,CAAC,qBAAqB,mBAAmB,oBAAoB,iBAAiB;AAAA,IAC/F;AAAA,EACJ;AACJ,CAAC,GAEYC,IAAK,IAAIC,MACXH,EAAc,GAAGG,CAAU,GAGzBC,IAAS,CAACC,MACZC,EAAGD,CAAQ;"}
|
|
@@ -1,6 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { FOCUS_OUTLINE as e } from "./fondue-components35.js";
|
|
2
|
+
import { sv as t } from "./fondue-components15.js";
|
|
3
|
+
const r = t({
|
|
4
|
+
base: `tw-group tw-border tw-relative tw-flex tw-flex-row tw-gap-2 tw-items-center tw-justify-center tw-cursor-pointer tw-font-body tw-font-medium ${e}`,
|
|
3
5
|
variants: {
|
|
6
|
+
disabled: {
|
|
7
|
+
true: "tw-not-allowed tw-pointer-events-none tw-border-transparent tw-text-box-disabled-inverse tw-bg-box-disabled"
|
|
8
|
+
},
|
|
9
|
+
rounding: {
|
|
10
|
+
medium: "tw-rounded",
|
|
11
|
+
full: "tw-rounded-full"
|
|
12
|
+
},
|
|
13
|
+
size: {
|
|
14
|
+
small: "tw-h-6 tw-text-body-small",
|
|
15
|
+
medium: "tw-h-9 tw-text-body-medium",
|
|
16
|
+
large: "tw-h-12 tw-text-body-large"
|
|
17
|
+
},
|
|
18
|
+
aspect: {
|
|
19
|
+
square: "tw-aspect-square tw-px-0",
|
|
20
|
+
default: ""
|
|
21
|
+
},
|
|
22
|
+
hugWidth: {
|
|
23
|
+
false: "tw-w-full"
|
|
24
|
+
},
|
|
4
25
|
emphasis: {
|
|
5
26
|
default: "",
|
|
6
27
|
weak: "",
|
|
@@ -12,9 +33,6 @@ const s = t({
|
|
|
12
33
|
negative: "",
|
|
13
34
|
danger: "",
|
|
14
35
|
loud: ""
|
|
15
|
-
},
|
|
16
|
-
disabled: {
|
|
17
|
-
true: "tw-text-box-disabled-inverse"
|
|
18
36
|
}
|
|
19
37
|
},
|
|
20
38
|
compoundVariants: [
|
|
@@ -22,100 +40,119 @@ const s = t({
|
|
|
22
40
|
disabled: !1,
|
|
23
41
|
style: "default",
|
|
24
42
|
emphasis: "default",
|
|
25
|
-
class: "tw-
|
|
43
|
+
class: "tw-bg-button-background tw-border-button-border hover:tw-bg-button-background-hover active:tw-bg-button-background-pressed"
|
|
26
44
|
},
|
|
27
45
|
{
|
|
28
46
|
disabled: !1,
|
|
29
47
|
style: "default",
|
|
30
48
|
emphasis: "weak",
|
|
31
|
-
class: "tw-
|
|
49
|
+
class: "tw-border-transparent hover:tw-bg-button-background-hover hover:tw-border-button-border active:tw-bg-button-background-pressed"
|
|
32
50
|
},
|
|
33
51
|
{
|
|
34
52
|
disabled: !1,
|
|
35
53
|
style: "default",
|
|
36
54
|
emphasis: "strong",
|
|
37
|
-
class: "tw-
|
|
55
|
+
class: "tw-bg-button-strong-background tw-border-button-strong-border hover:tw-bg-button-strong-background-hover active:tw-bg-button-strong-background-pressed"
|
|
38
56
|
},
|
|
39
57
|
{
|
|
40
58
|
disabled: !1,
|
|
41
59
|
style: "positive",
|
|
42
60
|
emphasis: "default",
|
|
43
|
-
class: "tw-
|
|
61
|
+
class: "tw-bg-button-positive-background tw-border-button-positive-border hover:tw-bg-button-positive-background-hover active:tw-bg-button-positive-background-pressed"
|
|
44
62
|
},
|
|
45
63
|
{
|
|
46
64
|
disabled: !1,
|
|
47
65
|
style: "positive",
|
|
48
66
|
emphasis: "weak",
|
|
49
|
-
class: "tw-
|
|
67
|
+
class: "tw-border-transparent hover:tw-bg-button-positive-background-hover hover:tw-border-button-positive-border active:tw-bg-button-positive-background-pressed"
|
|
50
68
|
},
|
|
51
69
|
{
|
|
52
70
|
disabled: !1,
|
|
53
71
|
style: "positive",
|
|
54
72
|
emphasis: "strong",
|
|
55
|
-
class: "tw-
|
|
73
|
+
class: "tw-bg-button-strong-positive-background tw-border-button-strong-positive-border hover:tw-bg-button-strong-positive-background-hover active:tw-bg-button-strong-positive-background-pressed"
|
|
56
74
|
},
|
|
57
75
|
{
|
|
58
76
|
disabled: !1,
|
|
59
77
|
style: "negative",
|
|
60
78
|
emphasis: "default",
|
|
61
|
-
class: "tw-
|
|
79
|
+
class: "tw-bg-button-negative-background tw-border-button-negative-border hover:tw-bg-button-negative-background-hover active:tw-bg-button-negative-background-pressed"
|
|
62
80
|
},
|
|
63
81
|
{
|
|
64
82
|
disabled: !1,
|
|
65
83
|
style: "negative",
|
|
66
84
|
emphasis: "weak",
|
|
67
|
-
class: "tw-
|
|
85
|
+
class: "tw-border-transparent hover:tw-bg-button-negative-background-hover hover:tw-border-button-negative-border active:tw-bg-button-negative-background-pressed"
|
|
68
86
|
},
|
|
69
87
|
{
|
|
70
88
|
disabled: !1,
|
|
71
89
|
style: "negative",
|
|
72
90
|
emphasis: "strong",
|
|
73
|
-
class: "tw-
|
|
91
|
+
class: "tw-bg-button-strong-negative-background tw-border-button-strong-negative-border hover:tw-bg-button-strong-negative-background-hover active:tw-bg-button-strong-negative-background-pressed"
|
|
74
92
|
},
|
|
75
93
|
{
|
|
76
94
|
disabled: !1,
|
|
77
95
|
style: "danger",
|
|
78
96
|
emphasis: "default",
|
|
79
|
-
class: "tw-
|
|
97
|
+
class: "tw-bg-button-background tw-border-button-border hover:tw-bg-button-background-hover active:tw-bg-button-background-pressed"
|
|
80
98
|
},
|
|
81
99
|
{
|
|
82
100
|
disabled: !1,
|
|
83
101
|
style: "danger",
|
|
84
102
|
emphasis: "weak",
|
|
85
|
-
class: "tw-
|
|
103
|
+
class: "tw-border-transparent hover:tw-bg-button-background-hover active:tw-bg-button-background-pressed"
|
|
86
104
|
},
|
|
87
105
|
{
|
|
88
106
|
disabled: !1,
|
|
89
107
|
style: "danger",
|
|
90
108
|
emphasis: "strong",
|
|
91
|
-
class: "tw-
|
|
109
|
+
class: "tw-bg-button-danger-background tw-border-button-danger-border hover:tw-bg-button-danger-background-hover active:tw-bg-button-danger-background-pressed"
|
|
92
110
|
},
|
|
93
111
|
{
|
|
94
112
|
disabled: !1,
|
|
95
113
|
style: "loud",
|
|
96
114
|
emphasis: "default",
|
|
97
|
-
class: "tw-
|
|
115
|
+
class: "tw-bg-box-selected tw-border-button-border hover:tw-bg-box-selected-hover active:tw-bg-box-selected-pressed "
|
|
98
116
|
},
|
|
99
117
|
{
|
|
100
118
|
disabled: !1,
|
|
101
119
|
style: "loud",
|
|
102
120
|
emphasis: "weak",
|
|
103
|
-
class: "tw-
|
|
121
|
+
class: "tw-border-transparent hover:tw-bg-box-selected-hover active:tw-bg-box-selected-pressed"
|
|
104
122
|
},
|
|
105
123
|
{
|
|
106
124
|
disabled: !1,
|
|
107
125
|
style: "loud",
|
|
108
126
|
emphasis: "strong",
|
|
109
|
-
class: "tw-
|
|
127
|
+
class: "tw-bg-box-selected-strong tw-border-box-selected-strong hover:tw-bg-box-selected-strong-hover active:tw-bg-box-selected-strong-pressed "
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
aspect: "default",
|
|
131
|
+
size: "small",
|
|
132
|
+
class: "tw-px-2"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
aspect: "default",
|
|
136
|
+
size: "medium",
|
|
137
|
+
class: "tw-px-4"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
aspect: "default",
|
|
141
|
+
size: "large",
|
|
142
|
+
class: "tw-px-6"
|
|
110
143
|
}
|
|
111
144
|
],
|
|
112
145
|
defaultVariants: {
|
|
113
|
-
emphasis: "strong",
|
|
114
146
|
style: "default",
|
|
147
|
+
emphasis: "strong",
|
|
148
|
+
size: "medium",
|
|
149
|
+
rounding: "medium",
|
|
150
|
+
hugWidth: !0,
|
|
151
|
+
aspect: "default",
|
|
115
152
|
disabled: !1
|
|
116
153
|
}
|
|
117
154
|
});
|
|
118
155
|
export {
|
|
119
|
-
|
|
156
|
+
r as buttonStyles
|
|
120
157
|
};
|
|
121
158
|
//# sourceMappingURL=fondue-components16.js.map
|