@payfit/unity-components 0.0.0-alpha.7 → 0.0.0-alpha.8
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/alert/Alert.js +1 -1
- package/dist/cjs/components/avatar/parts/AvatarPair.js +1 -1
- package/dist/cjs/components/badge/Badge.d.ts +3 -0
- package/dist/cjs/components/badge/Badge.js +1 -1
- package/dist/cjs/components/breadcrumbs/parts/Breadcrumb.js +1 -1
- package/dist/cjs/components/checkbox/parts/CheckboxIndicator.js +1 -1
- package/dist/cjs/components/collapsible/Collapsible.d.ts +33 -0
- package/dist/cjs/components/collapsible/parts/CollapsibleContent.d.ts +36 -0
- package/dist/cjs/components/collapsible/parts/CollapsibleTitle.d.ts +39 -0
- package/dist/cjs/components/date-picker/DatePicker.js +1 -1
- package/dist/cjs/components/date-picker/parts/DateInput.js +1 -1
- package/dist/cjs/components/fieldset/Fieldset.d.ts +150 -0
- package/dist/cjs/components/fieldset/Fieldset.js +1 -0
- package/dist/cjs/components/fieldset/parts/FieldGroup.d.ts +27 -0
- package/dist/cjs/components/fieldset/parts/FieldGroup.js +1 -0
- package/dist/cjs/components/form-field/parts/FormControl.d.ts +23 -0
- package/dist/cjs/components/icon-button/CircularIconButton.js +1 -1
- package/dist/cjs/components/icon-button/IconButton.variants.js +1 -1
- package/dist/cjs/components/input/Input.js +1 -1
- package/dist/cjs/components/menu/parts/MenuContent.js +1 -1
- package/dist/cjs/components/multi-select/MultiSelect.d.ts +62 -0
- package/dist/cjs/components/multi-select/MultiSelect.js +1 -0
- package/dist/cjs/components/multi-select/Multiselect.context.d.ts +7 -0
- package/dist/cjs/components/multi-select/Multiselect.context.js +1 -0
- package/dist/cjs/components/multi-select/Multiselect.types.d.ts +109 -0
- package/dist/cjs/components/multi-select/hooks/use-combobox-filter.d.ts +12 -0
- package/dist/cjs/components/multi-select/hooks/use-combobox-filter.js +1 -0
- package/dist/cjs/components/multi-select/hooks/use-multiselection-state.d.ts +14 -0
- package/dist/cjs/components/multi-select/hooks/use-multiselection-state.js +1 -0
- package/dist/cjs/components/multi-select/parts/MultiSelectButton.d.ts +16 -0
- package/dist/cjs/components/multi-select/parts/MultiSelectButton.js +1 -0
- package/dist/cjs/components/multi-select/parts/MultiSelectOptGroup.d.ts +69 -0
- package/dist/cjs/components/multi-select/parts/MultiSelectOptGroup.js +1 -0
- package/dist/cjs/components/multi-select/parts/MultiSelectOption.d.ts +20 -0
- package/dist/cjs/components/multi-select/parts/MultiSelectOption.js +1 -0
- package/dist/cjs/components/multi-select/parts/MultiSelectPopover.d.ts +7 -0
- package/dist/cjs/components/multi-select/parts/MultiSelectPopover.js +1 -0
- package/dist/cjs/components/multi-select-field/MultiSelectField.d.ts +59 -0
- package/dist/cjs/components/multi-select-field/MultiSelectField.js +1 -0
- package/dist/cjs/components/segmented-button-group/SegmentedButtonGroup.d.ts +43 -0
- package/dist/cjs/components/segmented-button-group/SegmentedButtonGroups.context.d.ts +8 -0
- package/dist/cjs/components/segmented-button-group/parts/ToggleButton.d.ts +47 -0
- package/dist/cjs/components/select/Select.js +1 -1
- package/dist/cjs/components/select/parts/SearchInput.js +1 -1
- package/dist/cjs/components/selectable-button-group/SelectableButtonGroup.context.d.ts +2 -0
- package/dist/cjs/components/selectable-button-group/SelectableButtonGroup.context.js +1 -0
- package/dist/cjs/components/selectable-button-group/SelectableButtonGroup.d.ts +59 -0
- package/dist/cjs/components/selectable-button-group/SelectableButtonGroup.js +1 -0
- package/dist/cjs/components/selectable-button-group/parts/SelectableButton.d.ts +127 -0
- package/dist/cjs/components/selectable-button-group/parts/SelectableButton.js +1 -0
- package/dist/cjs/components/tabs/parts/TabList.js +1 -1
- package/dist/cjs/components/text-area/TextArea.js +1 -1
- package/dist/cjs/components/toast/UnityToast.d.ts +2 -2
- package/dist/cjs/components/toast/UnityToast.js +1 -1
- package/dist/cjs/components/tooltip/Tooltip.js +1 -1
- package/dist/cjs/index.d.ts +10 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/types/utils.d.ts +1 -0
- package/dist/esm/components/alert/Alert.mjs +1 -1
- package/dist/esm/components/app-menu/parts/AppMenuFooter.mjs +3 -3
- package/dist/esm/components/avatar/parts/AvatarPair.mjs +10 -10
- package/dist/esm/components/badge/Badge.d.mts +3 -0
- package/dist/esm/components/badge/Badge.mjs +12 -10
- package/dist/esm/components/breadcrumbs/parts/Breadcrumb.mjs +10 -10
- package/dist/esm/components/checkbox/parts/CheckboxIndicator.mjs +1 -1
- package/dist/esm/components/collapsible/Collapsible.d.mts +33 -0
- package/dist/esm/components/collapsible/parts/CollapsibleContent.d.mts +36 -0
- package/dist/esm/components/collapsible/parts/CollapsibleTitle.d.mts +39 -0
- package/dist/esm/components/date-picker/DatePicker.mjs +1 -1
- package/dist/esm/components/date-picker/parts/DateInput.mjs +7 -7
- package/dist/esm/components/fieldset/Fieldset.d.mts +150 -0
- package/dist/esm/components/fieldset/Fieldset.mjs +65 -0
- package/dist/esm/components/fieldset/parts/FieldGroup.d.mts +27 -0
- package/dist/esm/components/fieldset/parts/FieldGroup.mjs +18 -0
- package/dist/esm/components/form/Form.mjs +5 -5
- package/dist/esm/components/form-field/parts/FormControl.d.mts +23 -0
- package/dist/esm/components/icon-button/CircularIconButton.mjs +10 -11
- package/dist/esm/components/icon-button/IconButton.variants.mjs +9 -9
- package/dist/esm/components/input/Input.mjs +30 -30
- package/dist/esm/components/menu/parts/MenuContent.mjs +1 -1
- package/dist/esm/components/multi-select/MultiSelect.d.mts +62 -0
- package/dist/esm/components/multi-select/MultiSelect.mjs +230 -0
- package/dist/esm/components/multi-select/Multiselect.context.d.mts +7 -0
- package/dist/esm/components/multi-select/Multiselect.context.mjs +8 -0
- package/dist/esm/components/multi-select/Multiselect.types.d.mts +109 -0
- package/dist/esm/components/multi-select/hooks/use-combobox-filter.d.mts +12 -0
- package/dist/esm/components/multi-select/hooks/use-combobox-filter.mjs +22 -0
- package/dist/esm/components/multi-select/hooks/use-multiselection-state.d.mts +14 -0
- package/dist/esm/components/multi-select/hooks/use-multiselection-state.mjs +47 -0
- package/dist/esm/components/multi-select/parts/MultiSelectButton.d.mts +16 -0
- package/dist/esm/components/multi-select/parts/MultiSelectButton.mjs +160 -0
- package/dist/esm/components/multi-select/parts/MultiSelectOptGroup.d.mts +69 -0
- package/dist/esm/components/multi-select/parts/MultiSelectOptGroup.mjs +34 -0
- package/dist/esm/components/multi-select/parts/MultiSelectOption.d.mts +20 -0
- package/dist/esm/components/multi-select/parts/MultiSelectOption.mjs +85 -0
- package/dist/esm/components/multi-select/parts/MultiSelectPopover.d.mts +7 -0
- package/dist/esm/components/multi-select/parts/MultiSelectPopover.mjs +65 -0
- package/dist/esm/components/multi-select-field/MultiSelectField.d.mts +59 -0
- package/dist/esm/components/multi-select-field/MultiSelectField.mjs +81 -0
- package/dist/esm/components/segmented-button-group/SegmentedButtonGroup.d.mts +43 -0
- package/dist/esm/components/segmented-button-group/SegmentedButtonGroups.context.d.mts +8 -0
- package/dist/esm/components/segmented-button-group/parts/ToggleButton.d.mts +47 -0
- package/dist/esm/components/select/Select.mjs +19 -19
- package/dist/esm/components/select/parts/SearchInput.mjs +7 -7
- package/dist/esm/components/selectable-button-group/SelectableButtonGroup.context.d.mts +2 -0
- package/dist/esm/components/selectable-button-group/SelectableButtonGroup.context.mjs +5 -0
- package/dist/esm/components/selectable-button-group/SelectableButtonGroup.d.mts +59 -0
- package/dist/esm/components/selectable-button-group/SelectableButtonGroup.mjs +25 -0
- package/dist/esm/components/selectable-button-group/parts/SelectableButton.d.mts +127 -0
- package/dist/esm/components/selectable-button-group/parts/SelectableButton.mjs +98 -0
- package/dist/esm/components/tabs/parts/TabList.mjs +47 -25
- package/dist/esm/components/text-area/TextArea.mjs +28 -30
- package/dist/esm/components/toast/UnityToast.d.mts +2 -2
- package/dist/esm/components/toast/UnityToast.mjs +5 -5
- package/dist/esm/components/tooltip/Tooltip.mjs +11 -17
- package/dist/esm/index.d.mts +10 -0
- package/dist/esm/index.mjs +176 -155
- package/dist/esm/providers/router/RouterProvider.mjs +3 -3
- package/dist/esm/types/utils.d.mts +1 -0
- package/i18n/en-GB.json +1 -0
- package/i18n/es-ES.json +1 -0
- package/i18n/fr-FR.json +1 -0
- package/package.json +20 -18
- package/dist/cjs/components/index.d.ts +0 -4
- package/dist/esm/components/index.d.mts +0 -4
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as v } from "react";
|
|
3
3
|
import { TextArea as w } from "react-aria-components";
|
|
4
|
-
import { useIntl as
|
|
5
|
-
import { tv as
|
|
6
|
-
import { useResizable as
|
|
7
|
-
import { Icon as
|
|
8
|
-
import { Spinner as
|
|
9
|
-
const
|
|
4
|
+
import { useIntl as M } from "react-intl";
|
|
5
|
+
import { tv as z } from "tailwind-variants";
|
|
6
|
+
import { useResizable as L } from "../../hooks/use-resizable.mjs";
|
|
7
|
+
import { Icon as D } from "../icon/Icon.mjs";
|
|
8
|
+
import { Spinner as N } from "../spinner/Spinner.mjs";
|
|
9
|
+
const W = z({
|
|
10
10
|
slots: {
|
|
11
|
-
base: "uy-flex uy-border uy-rounded-100 focus-within:uy-outline-none focus-within:uy-ring-2 focus-within:uy-ring-utility-focus-ring focus-within:uy-ring-offset-2 active:uy-border-border-form-active uy-overflow-hidden uy-relative",
|
|
11
|
+
base: "uy-flex uy-border uy-border-solid uy-rounded-100 focus-within:uy-outline-none focus-within:uy-ring-2 focus-within:uy-ring-utility-focus-ring focus-within:uy-ring-offset-2 active:uy-border-border-form-active uy-overflow-hidden uy-relative",
|
|
12
12
|
inputWrapper: "uy-flex uy-gap-50 uy-flex-grow uy-pt-100 uy-pb-100 uy-pl-150 uy-pr-150 uy-rounded-100",
|
|
13
13
|
input: "uy-flex-grow uy-flex-shrink uy-outline-none uy-typography-body placeholder:uy-text-content-neutral-lowest uy-resize-none",
|
|
14
14
|
state: "uy-flex uy-gap-50 uy-flex-shrink-0 uy-basis-250",
|
|
@@ -56,38 +56,36 @@ const D = M({
|
|
|
56
56
|
isDisabled: !1,
|
|
57
57
|
isReadOnly: !1
|
|
58
58
|
}
|
|
59
|
-
}),
|
|
59
|
+
}), A = v(
|
|
60
60
|
({
|
|
61
61
|
isInvalid: n,
|
|
62
62
|
isLoading: s,
|
|
63
|
-
isDisabled:
|
|
64
|
-
isReadOnly:
|
|
63
|
+
isDisabled: t,
|
|
64
|
+
isReadOnly: o,
|
|
65
65
|
isResizable: i = !1,
|
|
66
|
-
...
|
|
67
|
-
},
|
|
68
|
-
const a =
|
|
69
|
-
isDisabled: !i ||
|
|
70
|
-
})
|
|
71
|
-
console.log("[TEXTAREA | userProps]", l), console.log("[TEXTAREA | ref]", f);
|
|
72
|
-
const { base: c, inputWrapper: p, input: g, state: x, resizeHandle: h } = D({
|
|
66
|
+
...y
|
|
67
|
+
}, b) => {
|
|
68
|
+
const a = M(), { containerRef: l, handleResizeStart: m } = L({
|
|
69
|
+
isDisabled: !i || t || o
|
|
70
|
+
}), { base: c, inputWrapper: p, input: g, state: x, resizeHandle: h } = W({
|
|
73
71
|
isInvalid: n,
|
|
74
|
-
isDisabled:
|
|
75
|
-
isReadOnly:
|
|
72
|
+
isDisabled: t,
|
|
73
|
+
isReadOnly: o
|
|
76
74
|
});
|
|
77
|
-
return /* @__PURE__ */ r("div", { ref:
|
|
75
|
+
return /* @__PURE__ */ r("div", { ref: l, className: c(), children: [
|
|
78
76
|
/* @__PURE__ */ r("div", { className: p(), children: [
|
|
79
77
|
/* @__PURE__ */ e(
|
|
80
78
|
w,
|
|
81
79
|
{
|
|
82
|
-
...
|
|
83
|
-
ref:
|
|
80
|
+
...y,
|
|
81
|
+
ref: b,
|
|
84
82
|
className: g(),
|
|
85
83
|
"aria-busy": s
|
|
86
84
|
}
|
|
87
85
|
),
|
|
88
86
|
/* @__PURE__ */ r("div", { className: x(), children: [
|
|
89
87
|
s && /* @__PURE__ */ e(
|
|
90
|
-
|
|
88
|
+
N,
|
|
91
89
|
{
|
|
92
90
|
color: "inherit",
|
|
93
91
|
size: "small",
|
|
@@ -98,7 +96,7 @@ const D = M({
|
|
|
98
96
|
}
|
|
99
97
|
),
|
|
100
98
|
n && /* @__PURE__ */ e(
|
|
101
|
-
|
|
99
|
+
D,
|
|
102
100
|
{
|
|
103
101
|
src: "WarningCircleOutlined",
|
|
104
102
|
color: "content.form.invalid",
|
|
@@ -110,7 +108,7 @@ const D = M({
|
|
|
110
108
|
)
|
|
111
109
|
] })
|
|
112
110
|
] }),
|
|
113
|
-
i && !
|
|
111
|
+
i && !t && !o && /* @__PURE__ */ e(
|
|
114
112
|
"div",
|
|
115
113
|
{
|
|
116
114
|
className: h(),
|
|
@@ -122,8 +120,8 @@ const D = M({
|
|
|
122
120
|
defaultMessage: "Resize textarea"
|
|
123
121
|
}),
|
|
124
122
|
onKeyDown: (u) => {
|
|
125
|
-
var
|
|
126
|
-
(u.key === "Enter" || u.key === " ") && (u.preventDefault(), (
|
|
123
|
+
var f, d;
|
|
124
|
+
(u.key === "Enter" || u.key === " ") && (u.preventDefault(), (d = (f = l.current) == null ? void 0 : f.querySelector("textarea")) == null || d.focus());
|
|
127
125
|
},
|
|
128
126
|
children: /* @__PURE__ */ r(
|
|
129
127
|
"svg",
|
|
@@ -156,8 +154,8 @@ const D = M({
|
|
|
156
154
|
] });
|
|
157
155
|
}
|
|
158
156
|
);
|
|
159
|
-
|
|
157
|
+
A.displayName = "TextArea";
|
|
160
158
|
export {
|
|
161
|
-
|
|
162
|
-
|
|
159
|
+
A as TextArea,
|
|
160
|
+
W as textArea
|
|
163
161
|
};
|
|
@@ -5,7 +5,7 @@ declare const unityToast: import('tailwind-variants').TVReturnType<{
|
|
|
5
5
|
success: string;
|
|
6
6
|
error: string;
|
|
7
7
|
};
|
|
8
|
-
}, undefined, "sm:uy-w-[416px] uy-border uy-rounded-75 uy-text-content-neutral uy-bg-surface-neutral uy-shadow-floating uy-p-100 uy-flex uy-gap-125", import('tailwind-variants/dist/config').TVConfig<{
|
|
8
|
+
}, undefined, "sm:uy-w-[416px] uy-border uy-border-solid uy-rounded-75 uy-text-content-neutral uy-bg-surface-neutral uy-shadow-floating uy-p-100 uy-flex uy-gap-125", import('tailwind-variants/dist/config').TVConfig<{
|
|
9
9
|
variant: {
|
|
10
10
|
success: string;
|
|
11
11
|
error: string;
|
|
@@ -25,7 +25,7 @@ declare const unityToast: import('tailwind-variants').TVReturnType<{
|
|
|
25
25
|
success: string;
|
|
26
26
|
error: string;
|
|
27
27
|
};
|
|
28
|
-
}, undefined, "sm:uy-w-[416px] uy-border uy-rounded-75 uy-text-content-neutral uy-bg-surface-neutral uy-shadow-floating uy-p-100 uy-flex uy-gap-125", import('tailwind-variants/dist/config').TVConfig<{
|
|
28
|
+
}, undefined, "sm:uy-w-[416px] uy-border uy-border-solid uy-rounded-75 uy-text-content-neutral uy-bg-surface-neutral uy-shadow-floating uy-p-100 uy-flex uy-gap-125", import('tailwind-variants/dist/config').TVConfig<{
|
|
29
29
|
variant: {
|
|
30
30
|
success: string;
|
|
31
31
|
error: string;
|
|
@@ -5,9 +5,9 @@ import { tv as m } from "tailwind-variants";
|
|
|
5
5
|
import { IconButton as d } from "../icon-button/IconButton.mjs";
|
|
6
6
|
import { Icon as f } from "../icon/Icon.mjs";
|
|
7
7
|
import { ToastTitle as p } from "./parts/ToastTitle.mjs";
|
|
8
|
-
import { ToastProvider as
|
|
9
|
-
const
|
|
10
|
-
base: "sm:uy-w-[416px] uy-border uy-rounded-75 uy-text-content-neutral uy-bg-surface-neutral uy-shadow-floating uy-p-100 uy-flex uy-gap-125",
|
|
8
|
+
import { ToastProvider as b } from "./Toast.context.mjs";
|
|
9
|
+
const g = m({
|
|
10
|
+
base: "sm:uy-w-[416px] uy-border uy-border-solid uy-rounded-75 uy-text-content-neutral uy-bg-surface-neutral uy-shadow-floating uy-p-100 uy-flex uy-gap-125",
|
|
11
11
|
variants: {
|
|
12
12
|
variant: {
|
|
13
13
|
success: "uy-border-border-success",
|
|
@@ -28,8 +28,8 @@ const b = m({
|
|
|
28
28
|
}) => {
|
|
29
29
|
const a = y();
|
|
30
30
|
x(e);
|
|
31
|
-
const u =
|
|
32
|
-
return /* @__PURE__ */ r(
|
|
31
|
+
const u = g({ variant: t });
|
|
32
|
+
return /* @__PURE__ */ r(b, { inline: o, children: /* @__PURE__ */ l(
|
|
33
33
|
"div",
|
|
34
34
|
{
|
|
35
35
|
tabIndex: -1,
|
|
@@ -1,26 +1,20 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
throw new Error(
|
|
10
|
-
"The tooltip can be applied only to Button and Link components, if you want to use it with something else, be sure to wrap it with a Actionable component"
|
|
11
|
-
);
|
|
12
|
-
return /* @__PURE__ */ n(a, { delay: 500, closeDelay: 1500, children: [
|
|
13
|
-
t,
|
|
14
|
-
/* @__PURE__ */ e(
|
|
1
|
+
import { jsxs as l, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { TooltipTrigger as u, Tooltip as r, Button as y } from "react-aria-components";
|
|
3
|
+
import { Button as a } from "../button/Button.mjs";
|
|
4
|
+
const i = (t) => t.type === a || t.type === y;
|
|
5
|
+
function d({ title: t, children: e }) {
|
|
6
|
+
return /* @__PURE__ */ l(u, { delay: 500, closeDelay: 1500, children: [
|
|
7
|
+
e,
|
|
8
|
+
/* @__PURE__ */ o(
|
|
15
9
|
r,
|
|
16
10
|
{
|
|
17
|
-
offset:
|
|
11
|
+
offset: i(e) ? 4 : 8,
|
|
18
12
|
className: "uy-inline-flex uy-rounded-50 uy-pl-100 uy-pr-100 uy-pt-50 uy-pb-50 uy-bg-grayscale-L12 uy-max-w-[300px]",
|
|
19
|
-
children: /* @__PURE__ */
|
|
13
|
+
children: /* @__PURE__ */ o("p", { className: "uy-typography-body-small uy-text-content-inverted uy-overflow-hidden uy-text-ellipsis uy-line-clamp-3", children: t })
|
|
20
14
|
}
|
|
21
15
|
)
|
|
22
16
|
] });
|
|
23
17
|
}
|
|
24
18
|
export {
|
|
25
|
-
|
|
19
|
+
d as default
|
|
26
20
|
};
|
package/dist/esm/index.d.mts
CHANGED
|
@@ -27,8 +27,11 @@ export * from './components/date-picker/DatePicker.mjs';
|
|
|
27
27
|
export * from './components/date-picker-field/DatePickerField.mjs';
|
|
28
28
|
export * from './components/dialog/Dialog.mjs';
|
|
29
29
|
export * from './components/dialog/parts/DialogActions.mjs';
|
|
30
|
+
export * from './components/dialog/parts/DialogActions/DialogButton.mjs';
|
|
30
31
|
export * from './components/dialog/parts/DialogContent.mjs';
|
|
31
32
|
export * from './components/dialog/parts/DialogTitle.mjs';
|
|
33
|
+
export * from './components/fieldset/Fieldset.mjs';
|
|
34
|
+
export * from './components/fieldset/parts/FieldGroup.mjs';
|
|
32
35
|
export * from './components/flex/Flex.mjs';
|
|
33
36
|
export * from './components/flex/Flex.variants.mjs';
|
|
34
37
|
export * from './components/flex/FlexItem.mjs';
|
|
@@ -54,6 +57,10 @@ export * from './components/menu/parts/MenuHeader.mjs';
|
|
|
54
57
|
export * from './components/menu/parts/MenuItem.mjs';
|
|
55
58
|
export * from './components/menu/parts/MenuSeparator.mjs';
|
|
56
59
|
export * from './components/menu/parts/MenuTrigger.mjs';
|
|
60
|
+
export * from './components/multi-select/MultiSelect.mjs';
|
|
61
|
+
export * from './components/multi-select/parts/MultiSelectOption.mjs';
|
|
62
|
+
export * from './components/multi-select/parts/MultiSelectOptGroup.mjs';
|
|
63
|
+
export * from './components/multi-select-field/MultiSelectField.mjs';
|
|
57
64
|
export * from './components/nav/Nav.mjs';
|
|
58
65
|
export * from './components/nav/parts/NavGroup.mjs';
|
|
59
66
|
export * from './components/nav/parts/NavItem.mjs';
|
|
@@ -67,6 +74,8 @@ export * from './components/select/parts/SelectOptionGroup.mjs';
|
|
|
67
74
|
export * from './components/select/parts/SelectOptionHelper.mjs';
|
|
68
75
|
export * from './components/select/Select.mjs';
|
|
69
76
|
export * from './components/select-field/SelectField.mjs';
|
|
77
|
+
export * from './components/selectable-button-group/SelectableButtonGroup.mjs';
|
|
78
|
+
export * from './components/selectable-button-group/parts/SelectableButton.mjs';
|
|
70
79
|
export * from './components/spinner/Spinner.mjs';
|
|
71
80
|
export * from './components/tabs/Tabs.mjs';
|
|
72
81
|
export * from './components/tabs/parts/Tab.mjs';
|
|
@@ -78,6 +87,7 @@ export * from './components/text-area/TextArea.mjs';
|
|
|
78
87
|
export * from './components/text-field/TextField.mjs';
|
|
79
88
|
export * from './components/toast/toast.mjs';
|
|
80
89
|
export * from './components/toast/ToastManager.mjs';
|
|
90
|
+
export * from './components/tooltip/Tooltip.mjs';
|
|
81
91
|
export * from './hooks/use-breakpoint-listener.mjs';
|
|
82
92
|
export * from './hooks/use-media-query.mjs';
|
|
83
93
|
export * from './hooks/use-form.mjs';
|
package/dist/esm/index.mjs
CHANGED
|
@@ -2,18 +2,18 @@ import { Actionable as e } from "./components/actionable/Actionable.mjs";
|
|
|
2
2
|
import { Alert as p } from "./components/alert/Alert.mjs";
|
|
3
3
|
import { AlertActions as m } from "./components/alert/parts/AlertActions.mjs";
|
|
4
4
|
import { AlertContent as a } from "./components/alert/parts/AlertContent.mjs";
|
|
5
|
-
import { AlertTitle as
|
|
5
|
+
import { AlertTitle as n } from "./components/alert/parts/AlertTitle.mjs";
|
|
6
6
|
import { Anchor as u } from "./components/anchor/Anchor.mjs";
|
|
7
7
|
import { AppLayout as d } from "./components/app-layout/AppLayout.mjs";
|
|
8
|
-
import { AppMenu as
|
|
9
|
-
import { AppMenuHeader as
|
|
10
|
-
import { AppMenuFooter as
|
|
11
|
-
import { AppMenuNavContent as
|
|
12
|
-
import { AppMenuContext as
|
|
13
|
-
import { Avatar as
|
|
14
|
-
import { getInitials as
|
|
15
|
-
import { AvatarFallback as
|
|
16
|
-
import { AvatarImage as
|
|
8
|
+
import { AppMenu as A } from "./components/app-menu/AppMenu.mjs";
|
|
9
|
+
import { AppMenuHeader as s } from "./components/app-menu/parts/AppMenuHeader.mjs";
|
|
10
|
+
import { AppMenuFooter as M } from "./components/app-menu/parts/AppMenuFooter.mjs";
|
|
11
|
+
import { AppMenuNavContent as B } from "./components/app-menu/parts/AppMenuNavContent.mjs";
|
|
12
|
+
import { AppMenuContext as k, AppMenuContextProvider as C, useAppMenuContext as I } from "./components/app-menu/parts/AppMenu.context.mjs";
|
|
13
|
+
import { Avatar as v } from "./components/avatar/Avatar.mjs";
|
|
14
|
+
import { getInitials as L } from "./components/avatar/utils.mjs";
|
|
15
|
+
import { AvatarFallback as h } from "./components/avatar/parts/AvatarFallback.mjs";
|
|
16
|
+
import { AvatarImage as y } from "./components/avatar/parts/AvatarImage.mjs";
|
|
17
17
|
import { AvatarPair as H } from "./components/avatar/parts/AvatarPair.mjs";
|
|
18
18
|
import { Badge as U } from "./components/badge/Badge.mjs";
|
|
19
19
|
import { Breadcrumbs as V } from "./components/breadcrumbs/Breadcrumbs.mjs";
|
|
@@ -22,85 +22,94 @@ import { Button as w } from "./components/button/Button.mjs";
|
|
|
22
22
|
import { Checkbox as E, checkbox as J } from "./components/checkbox/Checkbox.mjs";
|
|
23
23
|
import { CheckboxField as W } from "./components/checkbox-field/CheckboxField.mjs";
|
|
24
24
|
import { CheckboxGroup as Y, checkboxGroup as Z } from "./components/checkbox-group/CheckboxGroup.mjs";
|
|
25
|
-
import { CheckboxGroupField as
|
|
26
|
-
import { DatePicker as
|
|
27
|
-
import { DatePickerField as
|
|
28
|
-
import { Dialog as
|
|
29
|
-
import { DialogActions as
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
25
|
+
import { CheckboxGroupField as oo } from "./components/checkbox-group-field/CheckboxGroupField.mjs";
|
|
26
|
+
import { DatePicker as eo } from "./components/date-picker/DatePicker.mjs";
|
|
27
|
+
import { DatePickerField as po } from "./components/date-picker-field/DatePickerField.mjs";
|
|
28
|
+
import { Dialog as mo } from "./components/dialog/Dialog.mjs";
|
|
29
|
+
import { DialogActions as ao } from "./components/dialog/parts/DialogActions.mjs";
|
|
30
|
+
import { DialogButton as no } from "./components/dialog/parts/DialogActions/DialogButton.mjs";
|
|
31
|
+
import { DialogContent as uo } from "./components/dialog/parts/DialogContent.mjs";
|
|
32
|
+
import { DialogTitle as Fo } from "./components/dialog/parts/DialogTitle.mjs";
|
|
33
|
+
import { Fieldset as bo, fieldset as so } from "./components/fieldset/Fieldset.mjs";
|
|
34
|
+
import { FieldGroup as Mo } from "./components/fieldset/parts/FieldGroup.mjs";
|
|
35
|
+
import { Flex as Bo, Stack as To } from "./components/flex/Flex.mjs";
|
|
36
|
+
import { flex as Co, flexItem as Io } from "./components/flex/Flex.variants.mjs";
|
|
37
|
+
import { FlexItem as vo, StackItem as Go } from "./components/flex/FlexItem.mjs";
|
|
38
|
+
import { Form as Do } from "./components/form/Form.mjs";
|
|
39
|
+
import { FormField as Oo } from "./components/form-field/FormField.mjs";
|
|
40
|
+
import { FormControl as No } from "./components/form-field/parts/FormControl.mjs";
|
|
41
|
+
import { FormContextualLink as Ro } from "./components/form-field/parts/FormContextualLink.mjs";
|
|
42
|
+
import { FormFeedbackText as Qo } from "./components/form-field/parts/FormFeedbackText.mjs";
|
|
43
|
+
import { FormHelperText as _o } from "./components/form-field/parts/FormHelperText.mjs";
|
|
44
|
+
import { FormLabel as qo } from "./components/form-field/parts/FormLabel.mjs";
|
|
45
|
+
import { FullPageLoader as zo, fullPageLoader as Eo } from "./components/full-page-loader/FullPageLoader.mjs";
|
|
46
|
+
import { Grid as Ko } from "./components/grid/Grid.mjs";
|
|
47
|
+
import { grid as Xo, gridItem as Yo } from "./components/grid/Grid.variants.mjs";
|
|
48
|
+
import { GridItem as $o } from "./components/grid/GridItem.mjs";
|
|
49
|
+
import { Icon as rr } from "./components/icon/Icon.mjs";
|
|
50
|
+
import { IconButton as tr } from "./components/icon-button/IconButton.mjs";
|
|
51
|
+
import { Input as xr } from "./components/input/Input.mjs";
|
|
52
|
+
import { Label as fr } from "./components/label/Label.mjs";
|
|
53
|
+
import { Link as lr } from "./components/link/Link.mjs";
|
|
54
|
+
import { Menu as ir } from "./components/menu/Menu.mjs";
|
|
55
|
+
import { MenuContent as cr } from "./components/menu/parts/MenuContent.mjs";
|
|
56
|
+
import { MenuHeader as Fr } from "./components/menu/parts/MenuHeader.mjs";
|
|
57
|
+
import { MenuItem as br } from "./components/menu/parts/MenuItem.mjs";
|
|
58
|
+
import { MenuSeparator as gr } from "./components/menu/parts/MenuSeparator.mjs";
|
|
59
|
+
import { MenuTrigger as Sr } from "./components/menu/parts/MenuTrigger.mjs";
|
|
60
|
+
import { MultiSelect as Tr } from "./components/multi-select/MultiSelect.mjs";
|
|
61
|
+
import { MultiSelectOption as Cr } from "./components/multi-select/parts/MultiSelectOption.mjs";
|
|
62
|
+
import { MultiSelectOptGroup as Pr } from "./components/multi-select/parts/MultiSelectOptGroup.mjs";
|
|
63
|
+
import { MultiSelectField as Gr } from "./components/multi-select-field/MultiSelectField.mjs";
|
|
64
|
+
import { Nav as Dr } from "./components/nav/Nav.mjs";
|
|
65
|
+
import { NavGroup as Or } from "./components/nav/parts/NavGroup.mjs";
|
|
66
|
+
import { NavItem as Nr, navItemBase as Hr } from "./components/nav/parts/NavItem.mjs";
|
|
67
|
+
import { PayFitBrand as Ur } from "./components/payfit-brand/PayFitBrand.mjs";
|
|
68
|
+
import { PayFitBrandPreprod as Vr } from "./components/payfit-brand/PayFitPreprod.mjs";
|
|
69
|
+
import { Pill as jr } from "./components/pill/Pill.mjs";
|
|
70
|
+
import { ProgressBar as wr } from "./components/progress-bar/ProgressBar.mjs";
|
|
71
|
+
import { SelectButton as Er } from "./components/select/parts/SelectButton.mjs";
|
|
72
|
+
import { SelectOption as Kr } from "./components/select/parts/SelectOption.mjs";
|
|
73
|
+
import { SelectOptionGroup as Xr } from "./components/select/parts/SelectOptionGroup.mjs";
|
|
74
|
+
import { SelectOptionHelper as Zr } from "./components/select/parts/SelectOptionHelper.mjs";
|
|
75
|
+
import { Select as oe } from "./components/select/Select.mjs";
|
|
76
|
+
import { SelectField as ee } from "./components/select-field/SelectField.mjs";
|
|
77
|
+
import { SelectableButtonGroup as pe, selectableButtonGroup as xe } from "./components/selectable-button-group/SelectableButtonGroup.mjs";
|
|
78
|
+
import { SelectableButton as fe, selectableButton as ae } from "./components/selectable-button-group/parts/SelectableButton.mjs";
|
|
79
|
+
import { Spinner as ne } from "./components/spinner/Spinner.mjs";
|
|
80
|
+
import { Tabs as ue } from "./components/tabs/Tabs.mjs";
|
|
81
|
+
import { Tab as de } from "./components/tabs/parts/Tab.mjs";
|
|
82
|
+
import { TabList as Ae } from "./components/tabs/parts/TabList.mjs";
|
|
83
|
+
import { TabPanel as se } from "./components/tabs/parts/TabPanel.mjs";
|
|
84
|
+
import { Text as Me } from "./components/text/Text.mjs";
|
|
85
|
+
import { text as Be } from "./components/text/Text.variants.mjs";
|
|
86
|
+
import { TextArea as ke, textArea as Ce } from "./components/text-area/TextArea.mjs";
|
|
87
|
+
import { TextField as Pe } from "./components/text-field/TextField.mjs";
|
|
88
|
+
import { toast as Ge } from "./components/toast/toast.mjs";
|
|
89
|
+
import { TOAST_CONFIG as De, ToastManager as he } from "./components/toast/ToastManager.mjs";
|
|
90
|
+
import { useBreakpointListener as ye } from "./hooks/use-breakpoint-listener.mjs";
|
|
91
|
+
import { useMediaQuery as He } from "./hooks/use-media-query.mjs";
|
|
92
|
+
import { useUnityForm as Ue } from "./hooks/use-form.mjs";
|
|
93
|
+
import { RouterProvider as Ve, useRouter as _e } from "./providers/router/RouterProvider.mjs";
|
|
94
|
+
import { UnityReactRouterV5Provider as qe } from "./providers/router/integrations/UnityReactRouterV5Provider.mjs";
|
|
95
|
+
import { DialogTrigger as ze } from "react-aria-components";
|
|
87
96
|
export {
|
|
88
97
|
e as Actionable,
|
|
89
98
|
p as Alert,
|
|
90
99
|
m as AlertActions,
|
|
91
100
|
a as AlertContent,
|
|
92
|
-
|
|
101
|
+
n as AlertTitle,
|
|
93
102
|
u as Anchor,
|
|
94
103
|
d as AppLayout,
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
+
A as AppMenu,
|
|
105
|
+
k as AppMenuContext,
|
|
106
|
+
C as AppMenuContextProvider,
|
|
107
|
+
M as AppMenuFooter,
|
|
108
|
+
s as AppMenuHeader,
|
|
109
|
+
B as AppMenuNavContent,
|
|
110
|
+
v as Avatar,
|
|
111
|
+
h as AvatarFallback,
|
|
112
|
+
y as AvatarImage,
|
|
104
113
|
H as AvatarPair,
|
|
105
114
|
U as Badge,
|
|
106
115
|
j as Breadcrumb,
|
|
@@ -109,79 +118,91 @@ export {
|
|
|
109
118
|
E as Checkbox,
|
|
110
119
|
W as CheckboxField,
|
|
111
120
|
Y as CheckboxGroup,
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
121
|
+
oo as CheckboxGroupField,
|
|
122
|
+
eo as DatePicker,
|
|
123
|
+
po as DatePickerField,
|
|
124
|
+
mo as Dialog,
|
|
125
|
+
ao as DialogActions,
|
|
126
|
+
no as DialogButton,
|
|
127
|
+
uo as DialogContent,
|
|
128
|
+
Fo as DialogTitle,
|
|
129
|
+
ze as DialogTrigger,
|
|
130
|
+
Mo as FieldGroup,
|
|
131
|
+
bo as Fieldset,
|
|
132
|
+
Bo as Flex,
|
|
133
|
+
vo as FlexItem,
|
|
134
|
+
Do as Form,
|
|
135
|
+
Ro as FormContextualLink,
|
|
136
|
+
No as FormControl,
|
|
137
|
+
Qo as FormFeedbackText,
|
|
138
|
+
Oo as FormField,
|
|
139
|
+
_o as FormHelperText,
|
|
140
|
+
qo as FormLabel,
|
|
141
|
+
zo as FullPageLoader,
|
|
142
|
+
Ko as Grid,
|
|
143
|
+
$o as GridItem,
|
|
144
|
+
rr as Icon,
|
|
145
|
+
tr as IconButton,
|
|
146
|
+
xr as Input,
|
|
147
|
+
fr as Label,
|
|
148
|
+
lr as Link,
|
|
149
|
+
ir as Menu,
|
|
150
|
+
cr as MenuContent,
|
|
151
|
+
Fr as MenuHeader,
|
|
152
|
+
br as MenuItem,
|
|
153
|
+
gr as MenuSeparator,
|
|
154
|
+
Sr as MenuTrigger,
|
|
155
|
+
Tr as MultiSelect,
|
|
156
|
+
Gr as MultiSelectField,
|
|
157
|
+
Pr as MultiSelectOptGroup,
|
|
158
|
+
Cr as MultiSelectOption,
|
|
159
|
+
Dr as Nav,
|
|
160
|
+
Or as NavGroup,
|
|
161
|
+
Nr as NavItem,
|
|
162
|
+
Ur as PayFitBrand,
|
|
163
|
+
Vr as PayFitBrandPreprod,
|
|
164
|
+
jr as Pill,
|
|
165
|
+
wr as ProgressBar,
|
|
166
|
+
Ve as RouterProvider,
|
|
167
|
+
oe as Select,
|
|
168
|
+
Er as SelectButton,
|
|
169
|
+
ee as SelectField,
|
|
170
|
+
Kr as SelectOption,
|
|
171
|
+
Xr as SelectOptionGroup,
|
|
172
|
+
Zr as SelectOptionHelper,
|
|
173
|
+
fe as SelectableButton,
|
|
174
|
+
pe as SelectableButtonGroup,
|
|
175
|
+
ne as Spinner,
|
|
176
|
+
To as Stack,
|
|
177
|
+
Go as StackItem,
|
|
178
|
+
De as TOAST_CONFIG,
|
|
179
|
+
de as Tab,
|
|
180
|
+
Ae as TabList,
|
|
181
|
+
se as TabPanel,
|
|
182
|
+
ue as Tabs,
|
|
183
|
+
Me as Text,
|
|
184
|
+
ke as TextArea,
|
|
185
|
+
Pe as TextField,
|
|
186
|
+
he as ToastManager,
|
|
187
|
+
qe as UnityReactRouterV5Provider,
|
|
170
188
|
J as checkbox,
|
|
171
189
|
Z as checkboxGroup,
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
190
|
+
so as fieldset,
|
|
191
|
+
Co as flex,
|
|
192
|
+
Io as flexItem,
|
|
193
|
+
Eo as fullPageLoader,
|
|
194
|
+
L as getInitials,
|
|
195
|
+
Xo as grid,
|
|
196
|
+
Yo as gridItem,
|
|
197
|
+
Hr as navItemBase,
|
|
198
|
+
ae as selectableButton,
|
|
199
|
+
xe as selectableButtonGroup,
|
|
200
|
+
Be as text,
|
|
201
|
+
Ce as textArea,
|
|
202
|
+
Ge as toast,
|
|
203
|
+
I as useAppMenuContext,
|
|
204
|
+
ye as useBreakpointListener,
|
|
205
|
+
He as useMediaQuery,
|
|
206
|
+
_e as useRouter,
|
|
207
|
+
Ue as useUnityForm
|
|
187
208
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { useContext as u, createContext as i } from "react";
|
|
3
3
|
import { RouterProvider as d } from "react-aria-components";
|
|
4
|
-
const o =
|
|
4
|
+
const o = i(
|
|
5
5
|
null
|
|
6
|
-
), R = () =>
|
|
6
|
+
), R = () => u(o);
|
|
7
7
|
function m({
|
|
8
8
|
isActive: t,
|
|
9
9
|
children: n,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type IconName<T extends string> = T extends `${infer Base}${'Filled' | 'Outlined'}` ? Base : T;
|