@payfit/unity-components 0.0.0-alpha.13 → 0.0.0-alpha.16
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/cjs/components/app-menu/parts/AppMenuFooter.cjs +1 -1
- package/dist/cjs/components/avatar/parts/AvatarFallback.cjs +1 -1
- package/dist/cjs/components/badge/Badge.cjs +1 -1
- package/dist/cjs/components/bottom-sheet/BottomSheet.cjs +1 -1
- package/dist/cjs/components/breadcrumbs/Breadcrumbs.cjs +1 -1
- package/dist/cjs/components/breadcrumbs/Breadcrumbs.d.cts +1 -1
- package/dist/cjs/components/breadcrumbs/parts/Breadcrumb.cjs +1 -1
- package/dist/cjs/components/button/Button.variants.cjs +1 -1
- package/dist/cjs/components/checkbox/Checkbox.variants.cjs +1 -1
- package/dist/cjs/components/checkbox/parts/CheckboxIndicator.cjs +1 -1
- package/dist/cjs/components/date-calendar/DateCalendar.cjs +1 -1
- package/dist/cjs/components/date-calendar/parts/DateSegmentSelect.cjs +1 -1
- package/dist/cjs/components/date-picker/DatePicker.cjs +1 -1
- package/dist/cjs/components/dialog/Dialog.cjs +1 -1
- package/dist/cjs/components/icon-button/CircularIconButton.cjs +1 -1
- package/dist/cjs/components/icon-button/CircularIconButton.d.cts +7 -0
- package/dist/cjs/components/icon-button/IconButton.cjs +1 -1
- package/dist/cjs/components/icon-button/IconButton.d.cts +1 -4
- package/dist/cjs/components/icon-button/IconButton.variants.cjs +1 -1
- package/dist/cjs/components/input/Input.cjs +1 -1
- package/dist/cjs/components/link/Link.variants.cjs +1 -1
- package/dist/cjs/components/link/Link.variants.d.cts +2 -2
- package/dist/cjs/components/menu/parts/MenuItem.cjs +1 -1
- package/dist/cjs/components/multi-select/parts/MultiSelectButton.cjs +1 -1
- package/dist/cjs/components/nav/parts/NavItem.cjs +1 -1
- package/dist/cjs/components/nav/parts/NavItem.d.cts +18 -14
- package/dist/cjs/components/number-input/NumberInput.cjs +1 -1
- package/dist/cjs/components/pagination/parts/PaginationLink.cjs +1 -1
- package/dist/cjs/components/pagination/parts/PaginationNavButton.cjs +1 -1
- package/dist/cjs/components/payfit-brand/PayFitPreprod.cjs +1 -1
- package/dist/cjs/components/radio-button-group-field/RadioButtonGroupField.cjs +1 -1
- package/dist/cjs/components/search/Search.cjs +1 -1
- package/dist/cjs/components/segmented-button-group/SegmentedButtonGroup.cjs +1 -1
- package/dist/cjs/components/segmented-button-group/parts/ToggleButton.cjs +1 -1
- package/dist/cjs/components/select/Select.cjs +1 -1
- package/dist/cjs/components/select/Select.d.cts +3 -1
- package/dist/cjs/components/select/parts/SearchInput.cjs +1 -1
- package/dist/cjs/components/select/parts/SelectButton.cjs +1 -1
- package/dist/cjs/components/selectable-button-group/parts/SelectableButton.cjs +1 -1
- package/dist/cjs/components/side-panel/SidePanel.cjs +1 -1
- package/dist/cjs/components/table/Table.cjs +1 -1
- package/dist/cjs/components/table/parts/TableBody.cjs +1 -1
- package/dist/cjs/components/table/parts/TableBody.d.cts +36 -1
- package/dist/cjs/components/table/parts/TableHeader.cjs +1 -1
- package/dist/cjs/components/table/parts/TablePagination.cjs +1 -1
- package/dist/cjs/components/tabs/Tabs.variant.cjs +1 -1
- package/dist/cjs/components/tabs/Tabs.variant.d.cts +17 -0
- package/dist/cjs/components/tabs/parts/NavigationButton.cjs +1 -1
- package/dist/cjs/components/tabs/parts/TabList.cjs +1 -1
- package/dist/cjs/components/task-menu/TaskMenu.cjs +1 -0
- package/dist/cjs/components/task-menu/TaskMenu.context.cjs +1 -0
- package/dist/cjs/components/task-menu/TaskMenu.context.d.cts +24 -0
- package/dist/cjs/components/task-menu/TaskMenu.d.cts +92 -0
- package/dist/cjs/components/task-menu/parts/Content.cjs +1 -0
- package/dist/cjs/components/task-menu/parts/Content.d.cts +9 -0
- package/dist/cjs/components/task-menu/parts/Header.cjs +1 -0
- package/dist/cjs/components/task-menu/parts/Header.d.cts +5 -0
- package/dist/cjs/components/task-menu/parts/SubTask.cjs +1 -0
- package/dist/cjs/components/task-menu/parts/SubTask.d.cts +281 -0
- package/dist/cjs/components/task-menu/parts/Task.cjs +1 -0
- package/dist/cjs/components/task-menu/parts/Task.d.cts +279 -0
- package/dist/cjs/components/task-menu/parts/TaskGroup.cjs +1 -0
- package/dist/cjs/components/task-menu/parts/TaskGroup.d.cts +30 -0
- package/dist/cjs/components/task-menu/parts/dot.svg.cjs +1 -0
- package/dist/cjs/components/task-menu/parts/task.variants.cjs +1 -0
- package/dist/cjs/components/task-menu/parts/task.variants.d.cts +152 -0
- package/dist/cjs/components/toast/UnityToast.cjs +1 -1
- package/dist/cjs/components/toast/UnityToast.d.cts +2 -2
- package/dist/cjs/components/toggle-switch/ToggleSwitch.cjs +1 -1
- package/dist/cjs/hooks/use-media-query.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/index.d.cts +10 -6
- package/dist/cjs/utils/platform.cjs +1 -1
- package/dist/esm/components/app-menu/parts/AppMenuFooter.js +25 -25
- package/dist/esm/components/avatar/parts/AvatarFallback.js +1 -1
- package/dist/esm/components/badge/Badge.js +22 -22
- package/dist/esm/components/bottom-sheet/BottomSheet.js +1 -1
- package/dist/esm/components/breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/dist/esm/components/breadcrumbs/Breadcrumbs.js +19 -10
- package/dist/esm/components/breadcrumbs/parts/Breadcrumb.js +21 -14
- package/dist/esm/components/button/Button.variants.js +43 -41
- package/dist/esm/components/checkbox/Checkbox.variants.js +1 -1
- package/dist/esm/components/checkbox/parts/CheckboxIndicator.js +1 -1
- package/dist/esm/components/date-calendar/DateCalendar.js +7 -7
- package/dist/esm/components/date-calendar/parts/DateSegmentSelect.js +6 -6
- package/dist/esm/components/date-picker/DatePicker.js +7 -7
- package/dist/esm/components/dialog/Dialog.js +1 -1
- package/dist/esm/components/icon-button/CircularIconButton.d.ts +7 -0
- package/dist/esm/components/icon-button/CircularIconButton.js +31 -30
- package/dist/esm/components/icon-button/IconButton.d.ts +1 -4
- package/dist/esm/components/icon-button/IconButton.js +52 -49
- package/dist/esm/components/icon-button/IconButton.variants.js +47 -47
- package/dist/esm/components/input/Input.js +7 -7
- package/dist/esm/components/link/Link.variants.d.ts +2 -2
- package/dist/esm/components/link/Link.variants.js +2 -2
- package/dist/esm/components/menu/parts/MenuItem.js +18 -18
- package/dist/esm/components/multi-select/parts/MultiSelectButton.js +5 -5
- package/dist/esm/components/nav/parts/NavItem.d.ts +18 -14
- package/dist/esm/components/nav/parts/NavItem.js +36 -28
- package/dist/esm/components/number-input/NumberInput.js +1 -1
- package/dist/esm/components/pagination/parts/PaginationLink.js +1 -1
- package/dist/esm/components/pagination/parts/PaginationNavButton.js +5 -4
- package/dist/esm/components/payfit-brand/PayFitPreprod.js +16 -16
- package/dist/esm/components/radio-button-group-field/RadioButtonGroupField.js +9 -9
- package/dist/esm/components/search/Search.js +13 -13
- package/dist/esm/components/segmented-button-group/SegmentedButtonGroup.js +1 -1
- package/dist/esm/components/segmented-button-group/parts/ToggleButton.js +22 -22
- package/dist/esm/components/select/Select.d.ts +3 -1
- package/dist/esm/components/select/Select.js +36 -26
- package/dist/esm/components/select/parts/SearchInput.js +2 -1
- package/dist/esm/components/select/parts/SelectButton.js +7 -7
- package/dist/esm/components/selectable-button-group/parts/SelectableButton.js +29 -19
- package/dist/esm/components/side-panel/SidePanel.js +1 -1
- package/dist/esm/components/table/Table.js +1 -1
- package/dist/esm/components/table/parts/TableBody.d.ts +36 -1
- package/dist/esm/components/table/parts/TableBody.js +24 -20
- package/dist/esm/components/table/parts/TableHeader.js +1 -1
- package/dist/esm/components/table/parts/TablePagination.js +1 -1
- package/dist/esm/components/tabs/Tabs.variant.d.ts +17 -0
- package/dist/esm/components/tabs/Tabs.variant.js +8 -5
- package/dist/esm/components/tabs/parts/NavigationButton.js +15 -15
- package/dist/esm/components/tabs/parts/TabList.js +34 -34
- package/dist/esm/components/task-menu/TaskMenu.context.d.ts +24 -0
- package/dist/esm/components/task-menu/TaskMenu.context.js +60 -0
- package/dist/esm/components/task-menu/TaskMenu.d.ts +92 -0
- package/dist/esm/components/task-menu/TaskMenu.js +28 -0
- package/dist/esm/components/task-menu/parts/Content.d.ts +9 -0
- package/dist/esm/components/task-menu/parts/Content.js +48 -0
- package/dist/esm/components/task-menu/parts/Header.d.ts +5 -0
- package/dist/esm/components/task-menu/parts/Header.js +55 -0
- package/dist/esm/components/task-menu/parts/SubTask.d.ts +281 -0
- package/dist/esm/components/task-menu/parts/SubTask.js +193 -0
- package/dist/esm/components/task-menu/parts/Task.d.ts +279 -0
- package/dist/esm/components/task-menu/parts/Task.js +171 -0
- package/dist/esm/components/task-menu/parts/TaskGroup.d.ts +30 -0
- package/dist/esm/components/task-menu/parts/TaskGroup.js +174 -0
- package/dist/esm/components/task-menu/parts/dot.svg.js +5 -0
- package/dist/esm/components/task-menu/parts/task.variants.d.ts +152 -0
- package/dist/esm/components/task-menu/parts/task.variants.js +54 -0
- package/dist/esm/components/toast/UnityToast.d.ts +2 -2
- package/dist/esm/components/toast/UnityToast.js +16 -16
- package/dist/esm/components/toggle-switch/ToggleSwitch.js +1 -1
- package/dist/esm/hooks/use-media-query.js +12 -12
- package/dist/esm/index.d.ts +10 -6
- package/dist/esm/index.js +284 -273
- package/dist/esm/utils/platform.js +3 -7
- package/i18n/en-GB.json +4 -0
- package/i18n/es-ES.json +4 -0
- package/i18n/fr-FR.json +4 -0
- package/package.json +8 -8
|
@@ -1,21 +1,30 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { Breadcrumbs as
|
|
4
|
-
import { useBreakpointListener as
|
|
5
|
-
import { BreadcrumbsProvider as
|
|
6
|
-
import { breadcrumbsVariant as
|
|
7
|
-
const
|
|
8
|
-
const { base:
|
|
2
|
+
import { forwardRef as m, Fragment as d } from "react";
|
|
3
|
+
import { Breadcrumbs as p } from "react-aria-components";
|
|
4
|
+
import { useBreakpointListener as u } from "../../hooks/use-breakpoint-listener.js";
|
|
5
|
+
import { BreadcrumbsProvider as f } from "./Breadcrumbs.context.js";
|
|
6
|
+
import { breadcrumbsVariant as l } from "./Breadcrumbs.variant.js";
|
|
7
|
+
const b = (o, r, t) => o ? r.length === 0 ? null : t(r.at(r.length === 1 ? 0 : -2)) : r.map((a) => /* @__PURE__ */ e(d, { children: t(a) }, `${a.label}${a.href}`)), w = m(({ items: o, children: r, wrap: t = "nowrap", ...a }, i) => {
|
|
8
|
+
const { base: c } = l({ wrap: t }), n = u(), s = n === "xs" || n === "sm";
|
|
9
9
|
return /* @__PURE__ */ e(
|
|
10
|
-
|
|
10
|
+
f,
|
|
11
11
|
{
|
|
12
12
|
wrap: t,
|
|
13
13
|
isMobile: s,
|
|
14
14
|
isStaticApi: o === void 0,
|
|
15
|
-
children: /* @__PURE__ */ e(
|
|
15
|
+
children: /* @__PURE__ */ e(
|
|
16
|
+
p,
|
|
17
|
+
{
|
|
18
|
+
"data-dd-privacy": "allow",
|
|
19
|
+
ref: i,
|
|
20
|
+
className: c(),
|
|
21
|
+
...a,
|
|
22
|
+
children: o ? b(s, o, r) : r
|
|
23
|
+
}
|
|
24
|
+
)
|
|
16
25
|
}
|
|
17
26
|
);
|
|
18
27
|
});
|
|
19
28
|
export {
|
|
20
|
-
|
|
29
|
+
w as Breadcrumbs
|
|
21
30
|
};
|
|
@@ -1,22 +1,29 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as i, jsx as r, Fragment as h } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as x } from "react";
|
|
3
|
-
import { Breadcrumb as
|
|
4
|
-
import { Icon as
|
|
3
|
+
import { Breadcrumb as s } from "react-aria-components";
|
|
4
|
+
import { Icon as m } from "../../icon/Icon.js";
|
|
5
5
|
import { Link as u } from "../../link/Link.js";
|
|
6
6
|
import { Tooltip as g } from "../../tooltip/Tooltip.js";
|
|
7
|
-
import { useBreadcrumbsContext as
|
|
8
|
-
import { breadcrumbsVariant as
|
|
9
|
-
const
|
|
10
|
-
const { wrap:
|
|
7
|
+
import { useBreadcrumbsContext as w } from "../Breadcrumbs.context.js";
|
|
8
|
+
import { breadcrumbsVariant as B } from "../Breadcrumbs.variant.js";
|
|
9
|
+
const C = 25, l = ({ children: t, href: e }) => t.length > C ? /* @__PURE__ */ r(g, { title: t, children: /* @__PURE__ */ r(u, { isExact: !0, href: e, color: "secondary", maxCharactersTruncation: 25, children: t }) }) : /* @__PURE__ */ r(u, { isExact: !0, href: e, color: "secondary", maxCharactersTruncation: 25, children: t }), R = x((t, e) => {
|
|
10
|
+
const { wrap: d, isMobile: f, isStaticApi: p } = w(), { breadcrumb: o } = B({ wrap: d });
|
|
11
11
|
if (!t)
|
|
12
12
|
return null;
|
|
13
|
-
const { href: n, label: a, ...
|
|
14
|
-
return f && !p ? /* @__PURE__ */
|
|
15
|
-
/* @__PURE__ */ r(
|
|
16
|
-
/* @__PURE__ */ r(
|
|
17
|
-
] }) : /* @__PURE__ */ r(
|
|
18
|
-
/* @__PURE__ */ r(
|
|
19
|
-
/* @__PURE__ */ r(
|
|
13
|
+
const { href: n, label: a, ...c } = t;
|
|
14
|
+
return f && !p ? /* @__PURE__ */ i(s, { ref: e, ...c, className: o(), children: [
|
|
15
|
+
/* @__PURE__ */ r(m, { src: "CaretLeftOutlined", "aria-hidden": "true" }),
|
|
16
|
+
/* @__PURE__ */ r(l, { href: n, children: a })
|
|
17
|
+
] }) : /* @__PURE__ */ r(s, { ref: e, ...c, className: o(), children: ({ isCurrent: b }) => b ? /* @__PURE__ */ r("span", { className: "uy-text-nowrap uy-text-content-neutral-lowest", children: a }) : /* @__PURE__ */ i(h, { children: [
|
|
18
|
+
/* @__PURE__ */ r(l, { href: n, children: a }),
|
|
19
|
+
/* @__PURE__ */ r(
|
|
20
|
+
m,
|
|
21
|
+
{
|
|
22
|
+
src: "CaretRightOutlined",
|
|
23
|
+
"aria-hidden": "true",
|
|
24
|
+
color: "content.neutral.lowest"
|
|
25
|
+
}
|
|
26
|
+
)
|
|
20
27
|
] }) });
|
|
21
28
|
});
|
|
22
29
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { tv as e } from "tailwind-variants";
|
|
2
|
-
const
|
|
2
|
+
const t = e({
|
|
3
3
|
base: [
|
|
4
4
|
"uy-group",
|
|
5
5
|
"uy-rounded-75 uy-px-200 uy-h-500 uy-inline-flex uy-items-center uy-justify-center uy-whitespace-nowrap uy-typography-action uy-transition-colors",
|
|
@@ -25,33 +25,33 @@ const a = e({
|
|
|
25
25
|
size: "default"
|
|
26
26
|
}
|
|
27
27
|
}), r = e({
|
|
28
|
-
extend:
|
|
28
|
+
extend: t,
|
|
29
29
|
variants: {
|
|
30
30
|
color: {
|
|
31
31
|
primary: [
|
|
32
32
|
"uy-bg-surface-primary-enabled uy-text-content-inverted-enabled",
|
|
33
|
-
"hover:uy-bg-surface-primary-hover",
|
|
34
|
-
"active:uy-bg-surface-primary-active",
|
|
35
|
-
"data-[pressed]:uy-bg-surface-primary-
|
|
33
|
+
"hover:uy-bg-surface-primary-hover hover:uy-text-content-inverted-hover",
|
|
34
|
+
"active:uy-bg-surface-primary-active active:uy-text-content-inverted-hover",
|
|
35
|
+
"data-[pressed]:uy-bg-surface-primary-pressed data-[pressed]:uy-text-content-inverted-pressed"
|
|
36
36
|
],
|
|
37
37
|
warning: [
|
|
38
|
-
"uy-bg-surface-warning-enabled uy-text-content-
|
|
39
|
-
"hover:uy-bg-surface-warning-hover",
|
|
40
|
-
"active:uy-bg-surface-warning-active",
|
|
41
|
-
"data-[pressed]:uy-bg-surface-warning-
|
|
38
|
+
"uy-bg-surface-warning-enabled uy-text-content-neutral-enabled",
|
|
39
|
+
"hover:uy-bg-surface-warning-hover hover:uy-text-content-neutral-hover",
|
|
40
|
+
"active:uy-bg-surface-warning-active active:uy-text-content-neutral-active",
|
|
41
|
+
"data-[pressed]:uy-bg-surface-warning-pressed data-[pressed]:uy-text-content-neutral-pressed"
|
|
42
42
|
],
|
|
43
43
|
danger: [
|
|
44
44
|
"uy-bg-surface-danger-enabled uy-text-content-inverted-enabled",
|
|
45
|
-
"hover:uy-bg-surface-danger-hover",
|
|
46
|
-
"active:uy-bg-surface-danger-active",
|
|
47
|
-
"data-[pressed]:uy-bg-surface-danger-
|
|
45
|
+
"hover:uy-bg-surface-danger-hover hover:uy-text-content-inverted-hover",
|
|
46
|
+
"active:uy-bg-surface-danger-active active:uy-text-content-inverted",
|
|
47
|
+
"data-[pressed]:uy-bg-surface-danger-pressed data-[pressed]:uy-text-content-inverted"
|
|
48
48
|
],
|
|
49
49
|
inverted: [
|
|
50
|
-
"uy-bg-surface-
|
|
51
|
-
"hover:uy-bg-surface-
|
|
52
|
-
"active:uy-bg-surface-
|
|
53
|
-
"data-[pressed]:uy-bg-surface-
|
|
54
|
-
"focus-visible:uy-outline-utility-inverted-focus-ring"
|
|
50
|
+
"uy-bg-surface-neutral-enabled uy-text-content-neutral-enabled",
|
|
51
|
+
"hover:uy-bg-surface-neutral-hover hover:uy-text-content-neutral-hover",
|
|
52
|
+
"active:uy-bg-surface-neutral-active active:uy-text-content-neutral-active",
|
|
53
|
+
"data-[pressed]:uy-bg-surface-neutral-active data-[pressed]:uy-text-content-neutral-pressed",
|
|
54
|
+
"focus-visible:uy-outline-utility-inverted-focus-ring focus-visible:uy-text-content-neutral-focus focus-visible:uy-bg-surface-neutral-focus"
|
|
55
55
|
]
|
|
56
56
|
},
|
|
57
57
|
isDisabled: {
|
|
@@ -63,19 +63,21 @@ const a = e({
|
|
|
63
63
|
false: ""
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
}),
|
|
67
|
-
extend:
|
|
66
|
+
}), n = e({
|
|
67
|
+
extend: t,
|
|
68
68
|
base: "uy-border uy-border-solid",
|
|
69
69
|
variants: {
|
|
70
70
|
color: {
|
|
71
71
|
primary: [
|
|
72
|
-
"uy-bg-transparent uy-text-content-
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
72
|
+
"uy-bg-transparent uy-text-content-neutral-enabled uy-border-border-neutral-high-enabled",
|
|
73
|
+
"hover:uy-text-content-neutral-hover hover:uy-border-border-neutral-high-hover",
|
|
74
|
+
"active:uy-text-content-neutral-active active:uy-border-border-neutral-high-pressed",
|
|
75
|
+
"data-[pressed]:uy-text-content-neutral-pressed data-[pressed]:uy-border-border-neutral-high-pressed",
|
|
76
|
+
"focus-visible:uy-border-border-neutral-high-focus focus-visible:uy-text-content-neutral-focus"
|
|
76
77
|
],
|
|
77
78
|
inverted: [
|
|
78
|
-
"uy-bg-transparent uy-text-content-inverted uy-border-border-inverted-enabled"
|
|
79
|
+
"uy-bg-transparent uy-text-content-inverted uy-border-border-inverted-enabled",
|
|
80
|
+
"focus-visible:uy-outline-utility-inverted-focus-ring"
|
|
79
81
|
]
|
|
80
82
|
},
|
|
81
83
|
isDisabled: {
|
|
@@ -86,36 +88,36 @@ const a = e({
|
|
|
86
88
|
true: "data-[loading]:uy-text-content-neutral-disabled data-[loading]:uy-border-border-neutral-disabled"
|
|
87
89
|
}
|
|
88
90
|
}
|
|
89
|
-
}),
|
|
90
|
-
extend:
|
|
91
|
+
}), u = e({
|
|
92
|
+
extend: t,
|
|
91
93
|
variants: {
|
|
92
94
|
color: {
|
|
93
95
|
primary: [
|
|
94
|
-
"uy-bg-transparent uy-text-content-primary",
|
|
95
|
-
"enabled:hover:uy-bg-surface-primary-lowest-hover",
|
|
96
|
-
"active:uy-bg-surface-primary-lowest-active",
|
|
97
|
-
"data-[pressed]:uy-bg-surface-primary-lowest-
|
|
96
|
+
"uy-bg-transparent uy-text-content-primary-enabled",
|
|
97
|
+
"enabled:hover:uy-bg-surface-primary-lowest-hover enabled:hover:uy-text-content-primary-hover",
|
|
98
|
+
"enabled:active:uy-bg-surface-primary-lowest-active enabled:active:uy-text-content-primary-active",
|
|
99
|
+
"enabled:data-[pressed=true]:uy-bg-surface-primary-lowest-pressed enabled:data-[pressed=true]:uy-text-content-primary-pressed",
|
|
98
100
|
"focus-visible:uy-bg-transparent"
|
|
99
101
|
],
|
|
100
102
|
warning: [
|
|
101
103
|
"uy-bg-transparent uy-text-content-warning-enabled",
|
|
102
|
-
"enabled:hover:uy-bg-surface-warning-lowest-hover",
|
|
103
|
-
"active:uy-bg-surface-warning-lowest-active",
|
|
104
|
-
"data-[pressed]:uy-bg-surface-warning-lowest-
|
|
104
|
+
"enabled:hover:uy-bg-surface-warning-lowest-hover enabled:hover:uy-text-content-warning-hover",
|
|
105
|
+
"enabled:active:uy-bg-surface-warning-lowest-active enabled:active:uy-text-content-warning-active",
|
|
106
|
+
"enabled:data-[pressed=true]:uy-bg-surface-warning-lowest-pressed enabled:data-[pressed=true]:uy-text-content-warning-pressed",
|
|
105
107
|
"focus-visible:uy-bg-transparent"
|
|
106
108
|
],
|
|
107
109
|
danger: [
|
|
108
110
|
"uy-bg-transparent uy-text-content-danger-enabled",
|
|
109
|
-
"enabled:hover:uy-bg-surface-danger-lowest-hover",
|
|
110
|
-
"active:uy-bg-surface-danger-lowest-active",
|
|
111
|
-
"data-[pressed]:uy-bg-surface-danger-lowest-
|
|
111
|
+
"enabled:hover:uy-bg-surface-danger-lowest-hover enabled:hover:uy-text-content-danger-hover",
|
|
112
|
+
"enabled:active:uy-bg-surface-danger-lowest-active enabled:active:uy-text-content-danger-active",
|
|
113
|
+
"enabled:data-[pressed=true]:uy-bg-surface-danger-lowest-pressed enabled:data-[pressed=true]:uy-text-content-danger-pressed",
|
|
112
114
|
"focus-visible:uy-bg-transparent"
|
|
113
115
|
],
|
|
114
116
|
neutral: [
|
|
115
117
|
"uy-bg-transparent uy-text-content-neutral-enabled",
|
|
116
|
-
"enabled:hover:uy-bg-surface-neutral-hover",
|
|
117
|
-
"active:uy-bg-surface-neutral-active",
|
|
118
|
-
"data-[pressed]:uy-bg-surface-neutral-
|
|
118
|
+
"enabled:hover:uy-bg-surface-neutral-hover enabled:hover:uy-text-content-neutral-hover",
|
|
119
|
+
"enabled:active:uy-bg-surface-neutral-active enabled:active:uy-text-content-neutral-active",
|
|
120
|
+
"enabled:data-[pressed=true]:uy-bg-surface-neutral-pressed enabled:data-[pressed=true]:uy-text-content-neutral-pressed",
|
|
119
121
|
"focus-visible:uy-bg-transparent"
|
|
120
122
|
]
|
|
121
123
|
},
|
|
@@ -131,6 +133,6 @@ const a = e({
|
|
|
131
133
|
});
|
|
132
134
|
export {
|
|
133
135
|
r as buttonFilled,
|
|
134
|
-
|
|
135
|
-
|
|
136
|
+
u as buttonGhost,
|
|
137
|
+
n as buttonOutlined
|
|
136
138
|
};
|
|
@@ -2,7 +2,7 @@ import { tv as e } from "tailwind-variants";
|
|
|
2
2
|
const l = e({
|
|
3
3
|
slots: {
|
|
4
4
|
base: "uy-group uy-inline-flex uy-flex-col uy-gap-50 uy-py-[1px]",
|
|
5
|
-
wrapper: "uy-inline-flex uy-items-start uy-gap-[2px] uy-typography-body uy-text-content-form-enabled data-[focus-visible]:uy-outline data-[focus-visible]:uy-outline-[2px] data-[focus-visible]:uy-outline-utility-focus-ring data-[focus-visible]:uy-outline-offset-2 uy-rounded-25 uy-leading-[1lh]",
|
|
5
|
+
wrapper: "uy-inline-flex uy-items-start uy-gap-[2px] uy-typography-body uy-text-content-form-enabled data-[focus-visible]:uy-outline data-[focus-visible]:uy-outline-[2px] data-[focus-visible]:uy-outline-utility-focus-ring data-[focus-visible]:uy-outline-offset-2 uy-rounded-25 uy-leading-[1lh] data-[disabled]:uy-text-content-form-disabled",
|
|
6
6
|
asterisk: "uy-text-content-danger",
|
|
7
7
|
optionalTag: "uy-typography-body uy-leading-[1lh]",
|
|
8
8
|
descriptionsContainer: "uy-ml-300 uy-leading-0 uy-inline-flex uy-flex-col uy-gap-50",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as a, jsxs as r } from "react/jsx-runtime";
|
|
2
|
-
import { useState as
|
|
2
|
+
import { useState as b } from "react";
|
|
3
3
|
import { today as I, getLocalTimeZone as p, isToday as k } from "@internationalized/date";
|
|
4
4
|
import { Calendar as B, Heading as M, CalendarGrid as O, CalendarGridHeader as T, CalendarHeaderCell as W, CalendarGridBody as P, CalendarCell as R } from "react-aria-components";
|
|
5
5
|
import { tv as Z } from "tailwind-variants";
|
|
@@ -25,7 +25,7 @@ const z = Z({
|
|
|
25
25
|
// selected cells
|
|
26
26
|
"data-[selected]:uy-bg-surface-form-active data-[selected]:uy-text-content-inverted",
|
|
27
27
|
// "current day" (today) indicator
|
|
28
|
-
"data-[today]:after:uy-content-' ' data-[today]:after:uy-absolute data-[today]:after:uy-bottom-150 data-[today]:after:uy-w-100 data-[today]:after:uy-h-25 data-[today]:after:uy-bg-
|
|
28
|
+
"data-[today]:after:uy-content-' ' data-[today]:after:uy-absolute data-[today]:after:uy-bottom-150 data-[today]:after:uy-w-100 data-[today]:after:uy-h-25 data-[today]:after:uy-bg-surface-primary-active data-[today]:data-[selected]:after:uy-bg-content-inverted"
|
|
29
29
|
]
|
|
30
30
|
},
|
|
31
31
|
variants: {
|
|
@@ -48,9 +48,9 @@ function A({
|
|
|
48
48
|
onFocusChange: i,
|
|
49
49
|
...t
|
|
50
50
|
}) {
|
|
51
|
-
const f = I(p()), [g, x] =
|
|
51
|
+
const f = I(p()), [g, x] = b(
|
|
52
52
|
c ?? l ?? f
|
|
53
|
-
), [n, u] =
|
|
53
|
+
), [n, u] = b(
|
|
54
54
|
c ?? l ?? f
|
|
55
55
|
), D = $(), C = q({
|
|
56
56
|
startYear: d == null ? void 0 : d.year,
|
|
@@ -67,7 +67,7 @@ function A({
|
|
|
67
67
|
base: w,
|
|
68
68
|
calendarWrapper: G,
|
|
69
69
|
dialogHeader: L,
|
|
70
|
-
dialogHeaderGroup:
|
|
70
|
+
dialogHeaderGroup: m,
|
|
71
71
|
calendarGrid: S,
|
|
72
72
|
calendarHeaderCell: Y,
|
|
73
73
|
calendarCell: j
|
|
@@ -93,7 +93,7 @@ function A({
|
|
|
93
93
|
/* @__PURE__ */ r(
|
|
94
94
|
"div",
|
|
95
95
|
{
|
|
96
|
-
className:
|
|
96
|
+
className: m({
|
|
97
97
|
className: "uy-pl-100 uy-gap-200"
|
|
98
98
|
}),
|
|
99
99
|
children: [
|
|
@@ -123,7 +123,7 @@ function A({
|
|
|
123
123
|
/* @__PURE__ */ r(
|
|
124
124
|
"div",
|
|
125
125
|
{
|
|
126
|
-
className:
|
|
126
|
+
className: m({
|
|
127
127
|
className: "uy-ml-auto uy-gap-100"
|
|
128
128
|
}),
|
|
129
129
|
children: [
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as v, jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { useState as $ } from "react";
|
|
3
|
-
import { IconSprite as
|
|
4
|
-
import { useId as
|
|
5
|
-
import { useIntl as
|
|
3
|
+
import { IconSprite as w } from "@payfit/unity-icons";
|
|
4
|
+
import { useId as x } from "react-aria";
|
|
5
|
+
import { useIntl as I } from "react-intl";
|
|
6
6
|
function N({
|
|
7
7
|
items: o,
|
|
8
8
|
value: i,
|
|
@@ -13,7 +13,7 @@ function N({
|
|
|
13
13
|
const l = (t) => () => {
|
|
14
14
|
const a = o.find((b) => b.id === t);
|
|
15
15
|
return (a == null ? void 0 : a.name) ?? Array.from({ length: 3 }).join("\0");
|
|
16
|
-
}, r =
|
|
16
|
+
}, r = x(), c = I(), [p, f] = $(l(i)), d = `${r}-calendar-${e}-select-label`, u = `${r}-calendar-${e}-select`, m = `${r}-calendar-${e}-select-description`, h = e === "month" ? "unity:component:form-field:date-picker:segment-select:month:label" : "unity:component:form-field:date-picker:segment-select:year:label", g = e === "month" ? "unity:component:form-field:date-picker:segment-select:month:description" : "unity:component:form-field:date-picker:segment-select:year:description";
|
|
17
17
|
return /* @__PURE__ */ v("div", { className: "uy-isolation-isolate uy-relative uy-inline-flex uy-items-center uy-cursor-pointer", children: [
|
|
18
18
|
/* @__PURE__ */ n(
|
|
19
19
|
"label",
|
|
@@ -46,8 +46,8 @@ function N({
|
|
|
46
46
|
children: o.map((t) => /* @__PURE__ */ n("option", { value: t.id, children: t.name }, t.id))
|
|
47
47
|
}
|
|
48
48
|
),
|
|
49
|
-
/* @__PURE__ */ n("div", { className: "uy-absolute uy-right-0 uy-pointer-events-none", children: /* @__PURE__ */ n(
|
|
50
|
-
|
|
49
|
+
/* @__PURE__ */ n("div", { className: "uy-absolute uy-right-0 uy-pointer-events-none uy-text-content-neutral-low", children: /* @__PURE__ */ n(
|
|
50
|
+
w,
|
|
51
51
|
{
|
|
52
52
|
src: "CaretDownOutlined",
|
|
53
53
|
width: 20,
|
|
@@ -20,7 +20,7 @@ const $ = m({
|
|
|
20
20
|
"group-[:has(button:focus)]:data-[focus-within]:uy-outline-none group-[:has(button:focus)]:data-[focus-within]:uy-outline-offset-0 group-[:has(button:focus)]:data-[focus-within]:uy-outline-transparent"
|
|
21
21
|
],
|
|
22
22
|
suffix: [
|
|
23
|
-
"uy-flex-grow-0 uy-content-center uy-pt-100 uy-pb-100 uy-pl-150 uy-pr-150 uy-border-l uy-border-solid uy-rounded-r-100",
|
|
23
|
+
"uy-flex-grow-0 uy-content-center uy-pt-100 uy-pb-100 uy-pl-150 uy-pr-150 uy-border-l uy-border-solid uy-rounded-r-100 uy-text-content-neutral-low",
|
|
24
24
|
"hover:uy-bg-surface-neutral-hover active:uy-bg-surface-neutral-pressed active:uy-border-border-form-active data-[pressed]:uy-bg-surface-neutral-pressed data-[pressed]:uy-border-border-form-active",
|
|
25
25
|
"focus-visible:uy-outline-2 focus-visible:uy-outline-utility-focus-ring focus-visible:uy-outline-offset-[3px]"
|
|
26
26
|
]
|
|
@@ -54,7 +54,7 @@ const $ = m({
|
|
|
54
54
|
isReadOnly: !1,
|
|
55
55
|
className: {
|
|
56
56
|
base: "uy-border-border-form-enabled uy-bg-surface-form-enabled",
|
|
57
|
-
suffix: "uy-border-border-form-enabled uy-bg-surface-neutral
|
|
57
|
+
suffix: "uy-border-border-form-enabled uy-bg-surface-neutral uy-text-content-form-enabled"
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
]
|
|
@@ -70,7 +70,7 @@ const $ = m({
|
|
|
70
70
|
}
|
|
71
71
|
}), z = W(
|
|
72
72
|
({
|
|
73
|
-
value:
|
|
73
|
+
value: f,
|
|
74
74
|
defaultValue: n,
|
|
75
75
|
isInvalid: b,
|
|
76
76
|
isLoading: p,
|
|
@@ -80,7 +80,7 @@ const $ = m({
|
|
|
80
80
|
onBlur: o,
|
|
81
81
|
onFocus: i,
|
|
82
82
|
onChange: s,
|
|
83
|
-
onOpenChange:
|
|
83
|
+
onOpenChange: l,
|
|
84
84
|
id: v,
|
|
85
85
|
...e
|
|
86
86
|
}, A) => {
|
|
@@ -91,7 +91,7 @@ const $ = m({
|
|
|
91
91
|
}), y = (r) => {
|
|
92
92
|
s == null || s(r);
|
|
93
93
|
}, w = (r) => {
|
|
94
|
-
|
|
94
|
+
l == null || l(r), r ? i == null || i() : o == null || o();
|
|
95
95
|
}, k = (r) => e.isDateUnavailable ? e.isDateUnavailable(r) : !1, V = () => {
|
|
96
96
|
d == null || d();
|
|
97
97
|
};
|
|
@@ -101,7 +101,7 @@ const $ = m({
|
|
|
101
101
|
"data-dd-privacy": "mask",
|
|
102
102
|
...e,
|
|
103
103
|
className: x(),
|
|
104
|
-
value:
|
|
104
|
+
value: f,
|
|
105
105
|
defaultValue: n,
|
|
106
106
|
minValue: e.minValue,
|
|
107
107
|
maxValue: e.maxValue,
|
|
@@ -143,7 +143,7 @@ const $ = m({
|
|
|
143
143
|
children: /* @__PURE__ */ a(E, { className: "uy-p-150", "data-dd-privacy": "mask", children: /* @__PURE__ */ a(
|
|
144
144
|
O,
|
|
145
145
|
{
|
|
146
|
-
value:
|
|
146
|
+
value: f,
|
|
147
147
|
defaultValue: n,
|
|
148
148
|
minValue: e.minValue,
|
|
149
149
|
maxValue: e.maxValue,
|
|
@@ -9,7 +9,7 @@ import { DialogButton as v } from "./parts/DialogActions/DialogButton.js";
|
|
|
9
9
|
const w = x({
|
|
10
10
|
slots: {
|
|
11
11
|
overlay: [
|
|
12
|
-
"uy-fixed uy-inset-0 uy-z-
|
|
12
|
+
"uy-fixed uy-inset-0 uy-z-30 uy-overflow-y-auto",
|
|
13
13
|
"uy-flex uy-min-h-full uy-items-center uy-justify-center uy-text-center",
|
|
14
14
|
"uy-backdrop-blur-sm uy-bg-utility-backdrop/65"
|
|
15
15
|
],
|
|
@@ -9,6 +9,7 @@ export declare const circularIconButton: import('tailwind-variants').TVReturnTyp
|
|
|
9
9
|
color: {
|
|
10
10
|
'content.neutral': string;
|
|
11
11
|
'content.neutral.low': string;
|
|
12
|
+
'content.neutral.lowest': string;
|
|
12
13
|
};
|
|
13
14
|
}, undefined, string[], import('tailwind-variants/dist/config.js').TVConfig<{
|
|
14
15
|
size: {
|
|
@@ -18,6 +19,7 @@ export declare const circularIconButton: import('tailwind-variants').TVReturnTyp
|
|
|
18
19
|
color: {
|
|
19
20
|
'content.neutral': string;
|
|
20
21
|
'content.neutral.low': string;
|
|
22
|
+
'content.neutral.lowest': string;
|
|
21
23
|
};
|
|
22
24
|
}, {
|
|
23
25
|
size: {
|
|
@@ -27,6 +29,7 @@ export declare const circularIconButton: import('tailwind-variants').TVReturnTyp
|
|
|
27
29
|
color: {
|
|
28
30
|
'content.neutral': string;
|
|
29
31
|
'content.neutral.low': string;
|
|
32
|
+
'content.neutral.lowest': string;
|
|
30
33
|
};
|
|
31
34
|
}>, {
|
|
32
35
|
size: {
|
|
@@ -36,6 +39,7 @@ export declare const circularIconButton: import('tailwind-variants').TVReturnTyp
|
|
|
36
39
|
color: {
|
|
37
40
|
'content.neutral': string;
|
|
38
41
|
'content.neutral.low': string;
|
|
42
|
+
'content.neutral.lowest': string;
|
|
39
43
|
};
|
|
40
44
|
}, undefined, import('tailwind-variants').TVReturnType<{
|
|
41
45
|
size: {
|
|
@@ -45,6 +49,7 @@ export declare const circularIconButton: import('tailwind-variants').TVReturnTyp
|
|
|
45
49
|
color: {
|
|
46
50
|
'content.neutral': string;
|
|
47
51
|
'content.neutral.low': string;
|
|
52
|
+
'content.neutral.lowest': string;
|
|
48
53
|
};
|
|
49
54
|
}, undefined, string[], import('tailwind-variants/dist/config.js').TVConfig<{
|
|
50
55
|
size: {
|
|
@@ -54,6 +59,7 @@ export declare const circularIconButton: import('tailwind-variants').TVReturnTyp
|
|
|
54
59
|
color: {
|
|
55
60
|
'content.neutral': string;
|
|
56
61
|
'content.neutral.low': string;
|
|
62
|
+
'content.neutral.lowest': string;
|
|
57
63
|
};
|
|
58
64
|
}, {
|
|
59
65
|
size: {
|
|
@@ -63,6 +69,7 @@ export declare const circularIconButton: import('tailwind-variants').TVReturnTyp
|
|
|
63
69
|
color: {
|
|
64
70
|
'content.neutral': string;
|
|
65
71
|
'content.neutral.low': string;
|
|
72
|
+
'content.neutral.lowest': string;
|
|
66
73
|
};
|
|
67
74
|
}>, unknown, unknown, undefined>>;
|
|
68
75
|
export interface CircularIconButtonProps extends Omit<AriaButtonProps, 'className'>, VariantProps<typeof circularIconButton> {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as e, jsxs as c } from "react/jsx-runtime";
|
|
2
|
-
import { Button as v, Pressable as
|
|
3
|
-
import { tv as
|
|
2
|
+
import { Button as v, Pressable as w } from "react-aria-components";
|
|
3
|
+
import { tv as x } from "tailwind-variants";
|
|
4
4
|
import z from "../../hooks/use-id.js";
|
|
5
5
|
import { Icon as d } from "../icon/Icon.js";
|
|
6
6
|
import { Spinner as y } from "../spinner/Spinner.js";
|
|
7
7
|
import { Tooltip as b } from "../tooltip/Tooltip.js";
|
|
8
|
-
const I =
|
|
8
|
+
const I = x({
|
|
9
9
|
base: [
|
|
10
10
|
"uy-rounded-circle uy-flex uy-items-center uy-justify-center uy-transition-colors",
|
|
11
11
|
"active:uy-bg-surface-neutral-active",
|
|
@@ -21,70 +21,71 @@ const I = w({
|
|
|
21
21
|
},
|
|
22
22
|
color: {
|
|
23
23
|
"content.neutral": "uy-text-content-neutral",
|
|
24
|
-
"content.neutral.low": "uy-text-content-neutral-low"
|
|
24
|
+
"content.neutral.low": "uy-text-content-neutral-low",
|
|
25
|
+
"content.neutral.lowest": "uy-text-content-neutral-lowest"
|
|
25
26
|
}
|
|
26
27
|
},
|
|
27
28
|
defaultVariants: {
|
|
28
29
|
size: "default",
|
|
29
|
-
color: "content.neutral"
|
|
30
|
+
color: "content.neutral.low"
|
|
30
31
|
}
|
|
31
32
|
});
|
|
32
33
|
function N(m) {
|
|
33
34
|
const f = z(), {
|
|
34
|
-
onPress:
|
|
35
|
-
icon:
|
|
35
|
+
onPress: i,
|
|
36
|
+
icon: n,
|
|
36
37
|
color: p,
|
|
37
|
-
size:
|
|
38
|
+
size: r,
|
|
38
39
|
isLoading: t,
|
|
39
|
-
title:
|
|
40
|
-
isDisabled:
|
|
40
|
+
title: l,
|
|
41
|
+
isDisabled: o,
|
|
41
42
|
asElement: h = "default",
|
|
42
43
|
className: g,
|
|
43
|
-
...
|
|
44
|
-
} = m,
|
|
45
|
-
return h === "button" ? /* @__PURE__ */ e(b, { title:
|
|
44
|
+
...s
|
|
45
|
+
} = m, a = `icon-button-label-${f}`, u = I({ class: g, color: p, size: r });
|
|
46
|
+
return h === "button" ? /* @__PURE__ */ e(b, { title: l, children: /* @__PURE__ */ c(
|
|
46
47
|
v,
|
|
47
48
|
{
|
|
48
49
|
"data-dd-privacy": "allow",
|
|
49
|
-
...
|
|
50
|
-
onPress:
|
|
51
|
-
isDisabled:
|
|
52
|
-
"aria-labelledby":
|
|
50
|
+
...s,
|
|
51
|
+
onPress: i,
|
|
52
|
+
isDisabled: o || t,
|
|
53
|
+
"aria-labelledby": a,
|
|
53
54
|
"aria-busy": t,
|
|
54
55
|
className: u,
|
|
55
56
|
children: [
|
|
56
57
|
t ? /* @__PURE__ */ e(y, { size: "small", label: "Loading", color: "inherit" }) : /* @__PURE__ */ e(
|
|
57
58
|
d,
|
|
58
59
|
{
|
|
59
|
-
src:
|
|
60
|
-
size:
|
|
60
|
+
src: n,
|
|
61
|
+
size: r === "large" ? 24 : 20,
|
|
61
62
|
color: "inherit",
|
|
62
63
|
role: "presentation"
|
|
63
64
|
}
|
|
64
65
|
),
|
|
65
|
-
/* @__PURE__ */ e("span", { id:
|
|
66
|
+
/* @__PURE__ */ e("span", { id: a, className: "uy-sr-only", children: l })
|
|
66
67
|
]
|
|
67
68
|
}
|
|
68
|
-
) }) : /* @__PURE__ */ e(b, { title:
|
|
69
|
-
|
|
69
|
+
) }) : /* @__PURE__ */ e(b, { title: l, children: /* @__PURE__ */ e(
|
|
70
|
+
w,
|
|
70
71
|
{
|
|
71
72
|
"data-dd-privacy": "allow",
|
|
72
|
-
...
|
|
73
|
-
onPress:
|
|
74
|
-
isDisabled:
|
|
75
|
-
"aria-labelledby":
|
|
73
|
+
...s,
|
|
74
|
+
onPress: i,
|
|
75
|
+
isDisabled: o || t,
|
|
76
|
+
"aria-labelledby": a,
|
|
76
77
|
"aria-busy": t,
|
|
77
|
-
children: /* @__PURE__ */ c("div", { role: "button", "aria-disabled":
|
|
78
|
+
children: /* @__PURE__ */ c("div", { role: "button", "aria-disabled": o, className: u, children: [
|
|
78
79
|
t ? /* @__PURE__ */ e(y, { size: "small", label: "Loading", color: "inherit" }) : /* @__PURE__ */ e(
|
|
79
80
|
d,
|
|
80
81
|
{
|
|
81
|
-
src:
|
|
82
|
-
size:
|
|
82
|
+
src: n,
|
|
83
|
+
size: r === "large" ? 24 : 20,
|
|
83
84
|
color: "inherit",
|
|
84
85
|
role: "presentation"
|
|
85
86
|
}
|
|
86
87
|
),
|
|
87
|
-
/* @__PURE__ */ e("span", { id:
|
|
88
|
+
/* @__PURE__ */ e("span", { id: a, className: "uy-sr-only", children: l })
|
|
88
89
|
] })
|
|
89
90
|
}
|
|
90
91
|
) });
|
|
@@ -19,8 +19,5 @@ interface IconButtonVariantsSecondaryProps extends IconButtonBaseProps, Omit<Ico
|
|
|
19
19
|
}
|
|
20
20
|
interface IconButtonVariantsGhostProps extends IconButtonBaseProps, Omit<IconButtonGhost, 'variant' | 'color'>, Required<Pick<IconButtonGhost, 'variant' | 'color'>> {
|
|
21
21
|
}
|
|
22
|
-
export declare
|
|
23
|
-
export declare namespace IconButton {
|
|
24
|
-
var displayName: string;
|
|
25
|
-
}
|
|
22
|
+
export declare const IconButton: import('react').ForwardRefExoticComponent<(IconButtonVariantsPrimaryProps | IconButtonVariantsSecondaryProps | IconButtonVariantsGhostProps) & import('react').RefAttributes<HTMLButtonElement>>;
|
|
26
23
|
export {};
|