@frontify/fondue-components 1.3.2 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/dist/fondue-components.js +1 -1
  2. package/dist/fondue-components10.js +2 -2
  3. package/dist/fondue-components11.js +68 -45
  4. package/dist/fondue-components11.js.map +1 -1
  5. package/dist/fondue-components12.js +2 -2
  6. package/dist/fondue-components13.js +12 -8
  7. package/dist/fondue-components13.js.map +1 -1
  8. package/dist/fondue-components14.js +153 -10
  9. package/dist/fondue-components14.js.map +1 -1
  10. package/dist/fondue-components15.js +21 -57
  11. package/dist/fondue-components15.js.map +1 -1
  12. package/dist/fondue-components16.js +18 -18
  13. package/dist/fondue-components16.js.map +1 -1
  14. package/dist/fondue-components17.js +15 -112
  15. package/dist/fondue-components17.js.map +1 -1
  16. package/dist/fondue-components18.js +25 -15
  17. package/dist/fondue-components18.js.map +1 -1
  18. package/dist/fondue-components19.js +54 -24
  19. package/dist/fondue-components19.js.map +1 -1
  20. package/dist/fondue-components20.js +12 -55
  21. package/dist/fondue-components20.js.map +1 -1
  22. package/dist/fondue-components21.js +31 -13
  23. package/dist/fondue-components21.js.map +1 -1
  24. package/dist/fondue-components22.js +23 -33
  25. package/dist/fondue-components22.js.map +1 -1
  26. package/dist/fondue-components23.js +9 -25
  27. package/dist/fondue-components23.js.map +1 -1
  28. package/dist/fondue-components24.js +6 -8
  29. package/dist/fondue-components24.js.map +1 -1
  30. package/dist/fondue-components25.js +15 -5
  31. package/dist/fondue-components25.js.map +1 -1
  32. package/dist/fondue-components26.js +2 -15
  33. package/dist/fondue-components26.js.map +1 -1
  34. package/dist/fondue-components28.js.map +1 -1
  35. package/dist/fondue-components29.js.map +1 -1
  36. package/dist/fondue-components3.js +11 -13
  37. package/dist/fondue-components3.js.map +1 -1
  38. package/dist/fondue-components4.js +2 -2
  39. package/dist/fondue-components4.js.map +1 -1
  40. package/dist/fondue-components5.js +1 -1
  41. package/dist/fondue-components6.js +2 -2
  42. package/dist/fondue-components7.js +1 -1
  43. package/dist/fondue-components8.js +1 -1
  44. package/dist/fondue-components9.js +1 -1
  45. package/dist/style.css +1 -1
  46. package/package.json +23 -23
  47. package/dist/fondue-components2.js +0 -2
  48. package/dist/fondue-components2.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import "./fondue-components2.js";
1
+ /* empty css */
2
2
  import { Button as e } from "./fondue-components3.js";
3
3
  import { Checkbox as m } from "./fondue-components4.js";
4
4
  import { Dialog as f } from "./fondue-components5.js";
@@ -1,8 +1,8 @@
1
1
  import { jsxs as l, jsx as t } from "react/jsx-runtime";
2
2
  import * as r from "@radix-ui/react-toggle-group";
3
3
  import { forwardRef as m } from "react";
4
- import { useControllableState as S } from "./fondue-components23.js";
5
- import { segmentedControlRootStyles as f, segmentedControlActiveIndicatorStyles as I, segmentedControlItemStyles as y, segmentedControlItemSeparatorStyles as N, segmentedControlItemLabelStyles as u, segmentedControlItemLabelActiveStyles as b, segmentedControlItemLabelInactiveStyles as h } from "./fondue-components24.js";
4
+ import { useControllableState as S } from "./fondue-components22.js";
5
+ import { segmentedControlRootStyles as f, segmentedControlActiveIndicatorStyles as I, segmentedControlItemStyles as y, segmentedControlItemSeparatorStyles as N, segmentedControlItemLabelStyles as u, segmentedControlItemLabelActiveStyles as b, segmentedControlItemLabelInactiveStyles as h } from "./fondue-components23.js";
6
6
  const d = ({ children: e, value: o, defaultValue: s, onValueChange: c, ...a }, g) => {
7
7
  const [p, C] = S({
8
8
  prop: o,
@@ -1,53 +1,76 @@
1
- import { jsxs as f, jsx as o } from "react/jsx-runtime";
2
- import { IconCheckMark as p, IconExclamationMarkTriangle as u } from "@frontify/fondue-icons";
3
- import { forwardRef as a } from "react";
4
- import { cn as i } from "./fondue-components14.js";
5
- import { rootStyles as w, loadingStatusStyles as S, inputStyles as F, slotStyles as N } from "./fondue-components25.js";
6
- const s = ({
7
- children: l,
8
- className: r,
9
- status: t = "neutral",
10
- "data-test-id": e = "fondue-text-input",
11
- ...m
12
- }, x) => /* @__PURE__ */ f("div", { className: i(w, r), "data-status": t, "data-test-id": e, children: [
13
- t === "loading" ? /* @__PURE__ */ o("div", { className: S, "data-test-id": `${e}-loader` }) : null,
14
- /* @__PURE__ */ o("input", { type: "text", ...m, ref: x, className: F, "aria-invalid": t === "error" }),
15
- t === "success" ? /* @__PURE__ */ o(
16
- p,
17
- {
18
- size: 16,
19
- className: "tw-flex tw-text-text-positive tw-h-full tw-items-center tw-ml-3",
20
- "data-test-id": `${e}-success-icon`
21
- }
22
- ) : null,
23
- t === "error" ? /* @__PURE__ */ o(
24
- u,
25
- {
26
- size: 16,
27
- className: "tw-flex tw-text-text-negative tw-h-full tw-items-center tw-ml-3",
28
- "data-test-id": `${e}-error-icon`
29
- }
30
- ) : null,
31
- l
32
- ] });
33
- s.displayName = "TextField.Root";
34
- const n = ({ name: l, className: r, ...t }, e) => /* @__PURE__ */ o(
1
+ import { jsxs as F, jsx as r } from "react/jsx-runtime";
2
+ import { IconCheckMark as R, IconExclamationMarkTriangle as g } from "@frontify/fondue-icons";
3
+ import { forwardRef as d, useRef as S } from "react";
4
+ import { cn as n } from "./fondue-components13.js";
5
+ import { rootStyles as N, loadingStatusStyles as h, inputStyles as y, slotStyles as T } from "./fondue-components24.js";
6
+ const m = ({
7
+ children: s,
8
+ className: i,
9
+ status: e = "neutral",
10
+ "data-test-id": o = "fondue-text-input",
11
+ ...t
12
+ }, u) => {
13
+ const c = S(!1);
14
+ return /* @__PURE__ */ F("div", { className: n(N, i), "data-status": e, "data-test-id": o, children: [
15
+ e === "loading" ? /* @__PURE__ */ r("div", { className: h, "data-test-id": `${o}-loader` }) : null,
16
+ /* @__PURE__ */ r(
17
+ "input",
18
+ {
19
+ onMouseDown: (a) => {
20
+ c.current = !0, a.currentTarget.dataset.showFocusRing = "false";
21
+ },
22
+ type: "text",
23
+ ...t,
24
+ onFocus: (a) => {
25
+ var l;
26
+ c.current || (a.target.dataset.showFocusRing = "true"), (l = t.onFocus) == null || l.call(t, a);
27
+ },
28
+ onBlur: (a) => {
29
+ var l;
30
+ a.target.dataset.showFocusRing = "false", c.current = !1, (l = t.onBlur) == null || l.call(t, a);
31
+ },
32
+ ref: u,
33
+ className: y,
34
+ "aria-invalid": e === "error"
35
+ }
36
+ ),
37
+ e === "success" ? /* @__PURE__ */ r(
38
+ R,
39
+ {
40
+ size: 16,
41
+ className: "tw-flex tw-text-text-positive tw-h-full tw-items-center tw-ml-3",
42
+ "data-test-id": `${o}-success-icon`
43
+ }
44
+ ) : null,
45
+ e === "error" ? /* @__PURE__ */ r(
46
+ g,
47
+ {
48
+ size: 16,
49
+ className: "tw-flex tw-text-text-negative tw-h-full tw-items-center tw-ml-3",
50
+ "data-test-id": `${o}-error-icon`
51
+ }
52
+ ) : null,
53
+ s
54
+ ] });
55
+ };
56
+ m.displayName = "TextField.Root";
57
+ const f = ({ name: s, className: i, ...e }, o) => /* @__PURE__ */ r(
35
58
  "div",
36
59
  {
37
60
  "data-slot": !0,
38
- "data-name": l,
39
- ...t,
40
- ref: e,
41
- className: i(N, r)
61
+ "data-name": s,
62
+ ...e,
63
+ ref: o,
64
+ className: n(T, i)
42
65
  }
43
66
  );
44
- n.displayName = "TextField.Slot";
45
- const d = a(s), y = a(n), c = d;
46
- c.Root = d;
47
- c.Slot = y;
67
+ f.displayName = "TextField.Slot";
68
+ const x = d(m), k = d(f), w = x;
69
+ w.Root = x;
70
+ w.Slot = k;
48
71
  export {
49
- s as TextFieldRoot,
50
- n as TextFieldSlot,
51
- c as TextInput
72
+ m as TextFieldRoot,
73
+ f as TextFieldSlot,
74
+ w as TextInput
52
75
  };
53
76
  //# sourceMappingURL=fondue-components11.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"fondue-components11.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 type SyntheticEvent,\n forwardRef,\n type ChangeEvent,\n type ForwardedRef,\n type KeyboardEvent,\n type ReactNode,\n} from 'react';\n\nimport { cn } from '#/utilities/styleUtilities';\n\nimport { inputStyles, loadingStatusStyles, rootStyles, slotStyles } from './styles/textInputStyles';\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 return (\n <div className={cn(rootStyles, className)} data-status={status} data-test-id={dataTestId}>\n {status === 'loading' ? (\n <div className={loadingStatusStyles} data-test-id={`${dataTestId}-loader`} />\n ) : null}\n\n <input type=\"text\" {...inputProps} ref={ref} className={inputStyles} aria-invalid={status === 'error'} />\n\n {status === 'success' ? (\n <IconCheckMark\n size={16}\n className=\"tw-flex tw-text-text-positive tw-h-full tw-items-center tw-ml-3\"\n data-test-id={`${dataTestId}-success-icon`}\n />\n ) : null}\n\n {status === 'error' ? (\n <IconExclamationMarkTriangle\n size={16}\n className=\"tw-flex tw-text-text-negative tw-h-full tw-items-center tw-ml-3\"\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(slotStyles, 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","jsxs","cn","rootStyles","loadingStatusStyles","jsx","inputStyles","IconCheckMark","IconExclamationMarkTriangle","TextFieldSlot","name","slotProps","forwardedRef","slotStyles","ForwardedRefTextFieldRoot","forwardRef","ForwardedRefTextFieldSlot","TextInput"],"mappings":";;;;;AA0GO,MAAMA,IAAgB,CACzB;AAAA,EACI,UAAAC;AAAA,EACA,WAAAC;AAAA,EACA,QAAAC,IAAS;AAAA,EACT,gBAAgBC,IAAa;AAAA,EAC7B,GAAGC;AACP,GACAC,MAGI,gBAAAC,EAAC,OAAI,EAAA,WAAWC,EAAGC,GAAYP,CAAS,GAAG,eAAaC,GAAQ,gBAAcC,GACzE,UAAA;AAAA,EAAWD,MAAA,8BACP,OAAI,EAAA,WAAWO,GAAqB,gBAAc,GAAGN,CAAU,UAAA,CAAW,IAC3E;AAAA,EAEJ,gBAAAO,EAAC,SAAM,EAAA,MAAK,QAAQ,GAAGN,GAAY,KAAAC,GAAU,WAAWM,GAAa,gBAAcT,MAAW,QAAS,CAAA;AAAA,EAEtGA,MAAW,YACR,gBAAAQ;AAAA,IAACE;AAAA,IAAA;AAAA,MACG,MAAM;AAAA,MACN,WAAU;AAAA,MACV,gBAAc,GAAGT,CAAU;AAAA,IAAA;AAAA,EAAA,IAE/B;AAAA,EAEHD,MAAW,UACR,gBAAAQ;AAAA,IAACG;AAAA,IAAA;AAAA,MACG,MAAM;AAAA,MACN,WAAU;AAAA,MACV,gBAAc,GAAGV,CAAU;AAAA,IAAA;AAAA,EAAA,IAE/B;AAAA,EAEHH;AACL,EAAA,CAAA;AAGRD,EAAc,cAAc;AAQf,MAAAe,IAAgB,CACzB,EAAE,MAAAC,GAAM,WAAAd,GAAW,GAAGe,KACtBC,MAGI,gBAAAP;AAAA,EAAC;AAAA,EAAA;AAAA,IACG,aAAW;AAAA,IACX,aAAWK;AAAA,IACV,GAAGC;AAAA,IACJ,KAAKC;AAAA,IACL,WAAWV,EAAGW,GAAYjB,CAAS;AAAA,EAAA;AAAA;AAK/Ca,EAAc,cAAc;AAE5B,MAAMK,IAA4BC,EAA6CrB,CAAa,GACtFsB,IAA4BD,EAA+CN,CAAa,GAEjFQ,IAGTH;AACJG,EAAU,OAAOH;AACjBG,EAAU,OAAOD;"}
1
+ {"version":3,"file":"fondue-components11.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 { inputStyles, loadingStatusStyles, rootStyles, slotStyles } from './styles/textInputStyles';\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(rootStyles, className)} data-status={status} data-test-id={dataTestId}>\n {status === 'loading' ? (\n <div className={loadingStatusStyles} 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={inputStyles}\n aria-invalid={status === 'error'}\n />\n\n {status === 'success' ? (\n <IconCheckMark\n size={16}\n className=\"tw-flex tw-text-text-positive tw-h-full tw-items-center tw-ml-3\"\n data-test-id={`${dataTestId}-success-icon`}\n />\n ) : null}\n\n {status === 'error' ? (\n <IconExclamationMarkTriangle\n size={16}\n className=\"tw-flex tw-text-text-negative tw-h-full tw-items-center tw-ml-3\"\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(slotStyles, 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","rootStyles","loadingStatusStyles","jsx","mouseEvent","focusEvent","_a","blurEvent","inputStyles","IconCheckMark","IconExclamationMarkTriangle","TextFieldSlot","name","slotProps","forwardedRef","slotStyles","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,GAAYT,CAAS,GAAG,eAAaC,GAAQ,gBAAcC,GACzE,UAAA;AAAA,IAAWD,MAAA,8BACP,OAAI,EAAA,WAAWS,GAAqB,gBAAc,GAAGR,CAAU,UAAA,CAAW,IAC3E;AAAA,IACJ,gBAAAS;AAAA,MAAC;AAAA,MAAA;AAAA,QACG,aAAa,CAACC,MAAe;AACzB,UAAAP,EAAW,UAAU,IACVO,EAAA,cAAc,QAAQ,gBAAgB;AAAA,QACrD;AAAA,QACA,MAAK;AAAA,QACJ,GAAGT;AAAA,QACJ,SAAS,CAACU,MAAe;;AACjB,UAACR,EAAW,YACDQ,EAAA,OAAO,QAAQ,gBAAgB,UAE9CC,IAAAX,EAAW,YAAX,QAAAW,EAAA,KAAAX,GAAqBU;AAAA,QACzB;AAAA,QACA,QAAQ,CAACE,MAAc;;AACT,UAAAA,EAAA,OAAO,QAAQ,gBAAgB,SACzCV,EAAW,UAAU,KACrBS,IAAAX,EAAW,WAAX,QAAAW,EAAA,KAAAX,GAAoBY;AAAA,QACxB;AAAA,QACA,KAAAX;AAAA,QACA,WAAWY;AAAA,QACX,gBAAcf,MAAW;AAAA,MAAA;AAAA,IAC7B;AAAA,IAECA,MAAW,YACR,gBAAAU;AAAA,MAACM;AAAA,MAAA;AAAA,QACG,MAAM;AAAA,QACN,WAAU;AAAA,QACV,gBAAc,GAAGf,CAAU;AAAA,MAAA;AAAA,IAAA,IAE/B;AAAA,IAEHD,MAAW,UACR,gBAAAU;AAAA,MAACO;AAAA,MAAA;AAAA,QACG,MAAM;AAAA,QACN,WAAU;AAAA,QACV,gBAAc,GAAGhB,CAAU;AAAA,MAAA;AAAA,IAAA,IAE/B;AAAA,IAEHH;AAAA,EACL,EAAA,CAAA;AAER;AACAD,EAAc,cAAc;AAQf,MAAAqB,IAAgB,CACzB,EAAE,MAAAC,GAAM,WAAApB,GAAW,GAAGqB,KACtBC,MAGI,gBAAAX;AAAA,EAAC;AAAA,EAAA;AAAA,IACG,aAAW;AAAA,IACX,aAAWS;AAAA,IACV,GAAGC;AAAA,IACJ,KAAKC;AAAA,IACL,WAAWd,EAAGe,GAAYvB,CAAS;AAAA,EAAA;AAAA;AAK/CmB,EAAc,cAAc;AAE5B,MAAMK,IAA4BC,EAA6C3B,CAAa,GACtF4B,IAA4BD,EAA+CN,CAAa,GAEjFQ,IAGTH;AACJG,EAAU,OAAOH;AACjBG,EAAU,OAAOD;"}
@@ -1,8 +1,8 @@
1
1
  import { jsx as t, jsxs as c } from "react/jsx-runtime";
2
2
  import * as o from "@radix-ui/react-tooltip";
3
3
  import { forwardRef as l } from "react";
4
- import { cn as T } from "./fondue-components14.js";
5
- import { tooltipContentStyles as f, tooltipArrowStyles as g } from "./fondue-components26.js";
4
+ import { cn as T } from "./fondue-components13.js";
5
+ import { tooltipContentStyles as f, tooltipArrowStyles as g } from "./fondue-components25.js";
6
6
  const a = ({ children: i, enterDelay: e = 700 }) => /* @__PURE__ */ t(o.Provider, { children: /* @__PURE__ */ t(o.Root, { delayDuration: e, children: i }) });
7
7
  a.displayName = "Tooltip.Root";
8
8
  const d = ({ children: i, "data-test-id": e = "fondue-tooltip-content" }, r) => /* @__PURE__ */ t(o.Trigger, { "data-test-id": e, asChild: !0, ref: r, children: i });
@@ -1,11 +1,15 @@
1
- import { cn as t } from "./fondue-components14.js";
2
- const i = "tw-ring-4 tw-ring-blue tw-ring-offset-2 dark:tw-ring-offset-black tw-outline-none", n = "focus-visible:tw-ring-4 focus-visible:tw-ring-blue focus-visible:tw-ring-offset-2 focus-visible:dark:tw-ring-offset-black focus-visible:tw-outline-none";
3
- t([i, "tw-ring-inset"]);
4
- t([n, "tw-ring-inset"]);
5
- const o = "focus-visible:tw-outline tw-outline-4 tw-outline-offset-2 tw-outline-blue";
1
+ import { extendTailwindMerge as e } from "./fondue-components27.js";
2
+ import { tv as o } from "./fondue-components28.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"]
8
+ }
9
+ }
10
+ }), m = (...t) => r(...t), x = (t) => o(t);
6
11
  export {
7
- o as FOCUS_OUTLINE,
8
- i as FOCUS_STYLE,
9
- n as FOCUS_VISIBLE_STYLE
12
+ m as cn,
13
+ x as sv
10
14
  };
11
15
  //# sourceMappingURL=fondue-components13.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"fondue-components13.js","sources":["../src/utilities/focusStyle.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { cn } from './styleUtilities';\n\nexport const FOCUS_STYLE = 'tw-ring-4 tw-ring-blue tw-ring-offset-2 dark:tw-ring-offset-black tw-outline-none';\nexport const FOCUS_STYLE_NO_OFFSET = 'tw-ring-4 tw-ring-blue dark:tw-ring-offset-black tw-outline-none';\nexport const FOCUS_VISIBLE_STYLE =\n 'focus-visible:tw-ring-4 focus-visible:tw-ring-blue focus-visible:tw-ring-offset-2 focus-visible:dark:tw-ring-offset-black focus-visible:tw-outline-none';\nexport const FOCUS_STYLE_INSET = cn([FOCUS_STYLE, 'tw-ring-inset']);\nexport const FOCUS_VISIBLE_STYLE_INSET = cn([FOCUS_VISIBLE_STYLE, 'tw-ring-inset']);\nexport const FOCUS_WITHIN_STYLE =\n 'focus-within:tw-ring-4 focus-within:tw-ring-blue focus-within:tw-ring-offset-2 focus-within:dark:tw-ring-offset-black focus-within:tw-outline-none';\nexport const FOCUS_OUTLINE = 'focus-visible:tw-outline tw-outline-4 tw-outline-offset-2 tw-outline-blue';\n"],"names":["FOCUS_STYLE","FOCUS_VISIBLE_STYLE","cn","FOCUS_OUTLINE"],"mappings":";AAIO,MAAMA,IAAc,qFAEdC,IACT;AAC6BC,EAAG,CAACF,GAAa,eAAe,CAAC;AACzBE,EAAG,CAACD,GAAqB,eAAe,CAAC;AAG3E,MAAME,IAAgB;"}
1
+ {"version":3,"file":"fondue-components13.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,15 +1,158 @@
1
- import { extendTailwindMerge as e } from "./fondue-components27.js";
2
- import { tv as o } from "./fondue-components28.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"]
1
+ import { FOCUS_OUTLINE as e } from "./fondue-components26.js";
2
+ import { sv as t } from "./fondue-components13.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}`,
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
+ },
25
+ emphasis: {
26
+ default: "",
27
+ weak: "",
28
+ strong: ""
29
+ },
30
+ style: {
31
+ default: "",
32
+ positive: "",
33
+ negative: "",
34
+ danger: "",
35
+ loud: ""
8
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
9
153
  }
10
- }), m = (...t) => r(...t), x = (t) => o(t);
154
+ });
11
155
  export {
12
- m as cn,
13
- x as sv
156
+ r as buttonStyles
14
157
  };
15
158
  //# sourceMappingURL=fondue-components14.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"fondue-components14.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
+ {"version":3,"file":"fondue-components14.js","sources":["../src/components/Button/styles/buttonStyles.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { FOCUS_OUTLINE } from '#/utilities/focusStyle';\nimport { sv } from '#/utilities/styleUtilities';\n\nexport const buttonStyles = sv({\n base:\n '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 ' +\n `${FOCUS_OUTLINE}`,\n variants: {\n disabled: {\n true: 'tw-not-allowed tw-pointer-events-none tw-border-transparent tw-text-box-disabled-inverse tw-bg-box-disabled',\n },\n rounding: {\n medium: 'tw-rounded',\n full: 'tw-rounded-full',\n },\n size: {\n small: 'tw-h-6 tw-text-body-small',\n medium: 'tw-h-9 tw-text-body-medium',\n large: 'tw-h-12 tw-text-body-large',\n },\n aspect: {\n square: 'tw-aspect-square tw-px-0',\n default: '',\n },\n hugWidth: {\n false: 'tw-w-full',\n },\n emphasis: {\n default: '',\n weak: '',\n strong: '',\n },\n style: {\n default: '',\n positive: '',\n negative: '',\n danger: '',\n loud: '',\n },\n },\n compoundVariants: [\n {\n disabled: false,\n style: 'default',\n emphasis: 'default',\n class:\n 'tw-bg-button-background tw-border-button-border ' +\n 'hover:tw-bg-button-background-hover ' +\n 'active:tw-bg-button-background-pressed',\n },\n {\n disabled: false,\n style: 'default',\n emphasis: 'weak',\n class:\n 'tw-border-transparent ' +\n 'hover:tw-bg-button-background-hover hover:tw-border-button-border ' +\n 'active:tw-bg-button-background-pressed',\n },\n {\n disabled: false,\n style: 'default',\n emphasis: 'strong',\n class:\n 'tw-bg-button-strong-background tw-border-button-strong-border ' +\n 'hover:tw-bg-button-strong-background-hover ' +\n 'active:tw-bg-button-strong-background-pressed',\n },\n {\n disabled: false,\n style: 'positive',\n emphasis: 'default',\n class:\n 'tw-bg-button-positive-background tw-border-button-positive-border ' +\n 'hover:tw-bg-button-positive-background-hover ' +\n 'active:tw-bg-button-positive-background-pressed',\n },\n {\n disabled: false,\n style: 'positive',\n emphasis: 'weak',\n class:\n 'tw-border-transparent ' +\n 'hover:tw-bg-button-positive-background-hover hover:tw-border-button-positive-border ' +\n 'active:tw-bg-button-positive-background-pressed',\n },\n {\n disabled: false,\n style: 'positive',\n emphasis: 'strong',\n class:\n 'tw-bg-button-strong-positive-background tw-border-button-strong-positive-border ' +\n 'hover:tw-bg-button-strong-positive-background-hover ' +\n 'active:tw-bg-button-strong-positive-background-pressed',\n },\n {\n disabled: false,\n style: 'negative',\n emphasis: 'default',\n class:\n 'tw-bg-button-negative-background tw-border-button-negative-border ' +\n 'hover:tw-bg-button-negative-background-hover ' +\n 'active:tw-bg-button-negative-background-pressed',\n },\n {\n disabled: false,\n style: 'negative',\n emphasis: 'weak',\n class:\n 'tw-border-transparent ' +\n 'hover:tw-bg-button-negative-background-hover hover:tw-border-button-negative-border ' +\n 'active:tw-bg-button-negative-background-pressed',\n },\n {\n disabled: false,\n style: 'negative',\n emphasis: 'strong',\n class:\n 'tw-bg-button-strong-negative-background tw-border-button-strong-negative-border ' +\n 'hover:tw-bg-button-strong-negative-background-hover ' +\n 'active:tw-bg-button-strong-negative-background-pressed',\n },\n {\n disabled: false,\n style: 'danger',\n emphasis: 'default',\n class:\n 'tw-bg-button-background tw-border-button-border ' +\n 'hover:tw-bg-button-background-hover ' +\n 'active:tw-bg-button-background-pressed',\n },\n {\n disabled: false,\n style: 'danger',\n emphasis: 'weak',\n class:\n 'tw-border-transparent ' +\n 'hover:tw-bg-button-background-hover ' +\n 'active:tw-bg-button-background-pressed',\n },\n {\n disabled: false,\n style: 'danger',\n emphasis: 'strong',\n class:\n 'tw-bg-button-danger-background tw-border-button-danger-border ' +\n 'hover:tw-bg-button-danger-background-hover ' +\n 'active:tw-bg-button-danger-background-pressed',\n },\n {\n disabled: false,\n style: 'loud',\n emphasis: 'default',\n class:\n 'tw-bg-box-selected tw-border-button-border ' +\n 'hover:tw-bg-box-selected-hover ' +\n 'active:tw-bg-box-selected-pressed ',\n },\n {\n disabled: false,\n style: 'loud',\n emphasis: 'weak',\n class: 'tw-border-transparent hover:tw-bg-box-selected-hover active:tw-bg-box-selected-pressed',\n },\n {\n disabled: false,\n style: 'loud',\n emphasis: 'strong',\n class:\n 'tw-bg-box-selected-strong tw-border-box-selected-strong ' +\n 'hover:tw-bg-box-selected-strong-hover ' +\n 'active:tw-bg-box-selected-strong-pressed ',\n },\n {\n aspect: 'default',\n size: 'small',\n class: 'tw-px-2',\n },\n {\n aspect: 'default',\n size: 'medium',\n class: 'tw-px-4',\n },\n {\n aspect: 'default',\n size: 'large',\n class: 'tw-px-6',\n },\n ],\n defaultVariants: {\n style: 'default',\n emphasis: 'strong',\n size: 'medium',\n rounding: 'medium',\n hugWidth: true,\n aspect: 'default',\n disabled: false,\n },\n});\n"],"names":["buttonStyles","sv","FOCUS_OUTLINE"],"mappings":"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"}
@@ -1,26 +1,6 @@
1
- import { sv as e } from "./fondue-components14.js";
1
+ import { sv as e } from "./fondue-components13.js";
2
2
  const s = e({
3
- 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",
4
3
  variants: {
5
- disabled: {
6
- true: "tw-not-allowed tw-pointer-events-none tw-border-transparent tw-text-box-disabled-inverse tw-bg-box-disabled"
7
- },
8
- rounding: {
9
- medium: "tw-rounded",
10
- full: "tw-rounded-full"
11
- },
12
- size: {
13
- small: "tw-h-6 tw-text-body-small",
14
- medium: "tw-h-9 tw-text-body-medium",
15
- large: "tw-h-12 tw-text-body-large"
16
- },
17
- aspect: {
18
- square: "tw-aspect-square tw-px-0",
19
- default: ""
20
- },
21
- hugWidth: {
22
- false: "tw-w-full"
23
- },
24
4
  emphasis: {
25
5
  default: "",
26
6
  weak: "",
@@ -32,6 +12,9 @@ const s = e({
32
12
  negative: "",
33
13
  danger: "",
34
14
  loud: ""
15
+ },
16
+ disabled: {
17
+ true: "tw-text-box-disabled-inverse"
35
18
  }
36
19
  },
37
20
  compoundVariants: [
@@ -39,119 +22,100 @@ const s = e({
39
22
  disabled: !1,
40
23
  style: "default",
41
24
  emphasis: "default",
42
- class: "tw-bg-button-background tw-border-button-border hover:tw-bg-button-background-hover active:tw-bg-button-background-pressed"
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"
43
26
  },
44
27
  {
45
28
  disabled: !1,
46
29
  style: "default",
47
30
  emphasis: "weak",
48
- class: "tw-border-transparent hover:tw-bg-button-background-hover hover:tw-border-button-border active:tw-bg-button-background-pressed"
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"
49
32
  },
50
33
  {
51
34
  disabled: !1,
52
35
  style: "default",
53
36
  emphasis: "strong",
54
- 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"
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"
55
38
  },
56
39
  {
57
40
  disabled: !1,
58
41
  style: "positive",
59
42
  emphasis: "default",
60
- 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"
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"
61
44
  },
62
45
  {
63
46
  disabled: !1,
64
47
  style: "positive",
65
48
  emphasis: "weak",
66
- class: "tw-border-transparent hover:tw-bg-button-positive-background-hover hover:tw-border-button-positive-border active:tw-bg-button-positive-background-pressed"
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"
67
50
  },
68
51
  {
69
52
  disabled: !1,
70
53
  style: "positive",
71
54
  emphasis: "strong",
72
- 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"
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"
73
56
  },
74
57
  {
75
58
  disabled: !1,
76
59
  style: "negative",
77
60
  emphasis: "default",
78
- 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"
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"
79
62
  },
80
63
  {
81
64
  disabled: !1,
82
65
  style: "negative",
83
66
  emphasis: "weak",
84
- class: "tw-border-transparent hover:tw-bg-button-negative-background-hover hover:tw-border-button-negative-border active:tw-bg-button-negative-background-pressed"
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"
85
68
  },
86
69
  {
87
70
  disabled: !1,
88
71
  style: "negative",
89
72
  emphasis: "strong",
90
- 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"
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"
91
74
  },
92
75
  {
93
76
  disabled: !1,
94
77
  style: "danger",
95
78
  emphasis: "default",
96
- class: "tw-bg-button-background tw-border-button-border hover:tw-bg-button-background-hover active:tw-bg-button-background-pressed"
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"
97
80
  },
98
81
  {
99
82
  disabled: !1,
100
83
  style: "danger",
101
84
  emphasis: "weak",
102
- class: "tw-border-transparent hover:tw-bg-button-background-hover active:tw-bg-button-background-pressed"
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"
103
86
  },
104
87
  {
105
88
  disabled: !1,
106
89
  style: "danger",
107
90
  emphasis: "strong",
108
- 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"
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"
109
92
  },
110
93
  {
111
94
  disabled: !1,
112
95
  style: "loud",
113
96
  emphasis: "default",
114
- class: "tw-bg-box-selected tw-border-button-border hover:tw-bg-box-selected-hover active:tw-bg-box-selected-pressed "
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"
115
98
  },
116
99
  {
117
100
  disabled: !1,
118
101
  style: "loud",
119
102
  emphasis: "weak",
120
- class: "tw-border-transparent hover:tw-bg-box-selected-hover active:tw-bg-box-selected-pressed"
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"
121
104
  },
122
105
  {
123
106
  disabled: !1,
124
107
  style: "loud",
125
108
  emphasis: "strong",
126
- 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 "
127
- },
128
- {
129
- aspect: "default",
130
- size: "small",
131
- class: "tw-px-2"
132
- },
133
- {
134
- aspect: "default",
135
- size: "medium",
136
- class: "tw-px-4"
137
- },
138
- {
139
- aspect: "default",
140
- size: "large",
141
- class: "tw-px-6"
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"
142
110
  }
143
111
  ],
144
112
  defaultVariants: {
145
- style: "default",
146
113
  emphasis: "strong",
147
- size: "medium",
148
- rounding: "medium",
149
- hugWidth: !0,
150
- aspect: "default",
114
+ style: "default",
151
115
  disabled: !1
152
116
  }
153
117
  });
154
118
  export {
155
- s as buttonStyles
119
+ s as iconStyles
156
120
  };
157
121
  //# sourceMappingURL=fondue-components15.js.map