@payfit/unity-components 0.0.0-alpha.13 → 0.0.0-alpha.15
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/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/icon-button/CircularIconButton.cjs +1 -1
- package/dist/cjs/components/icon-button/CircularIconButton.d.cts +7 -0
- 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/SelectButton.cjs +1 -1
- package/dist/cjs/components/selectable-button-group/parts/SelectableButton.cjs +1 -1
- package/dist/cjs/components/table/Table.cjs +1 -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/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/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/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/icon-button/CircularIconButton.d.ts +7 -0
- package/dist/esm/components/icon-button/CircularIconButton.js +31 -30
- 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/SelectButton.js +7 -7
- package/dist/esm/components/selectable-button-group/parts/SelectableButton.js +29 -19
- package/dist/esm/components/table/Table.js +1 -1
- 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/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/package.json +6 -6
|
@@ -31,7 +31,7 @@ const t = e({
|
|
|
31
31
|
isDisabled: !1,
|
|
32
32
|
isLoading: !1
|
|
33
33
|
}
|
|
34
|
-
}),
|
|
34
|
+
}), a = e({
|
|
35
35
|
extend: t,
|
|
36
36
|
variants: {
|
|
37
37
|
variant: {
|
|
@@ -74,11 +74,11 @@ const t = e({
|
|
|
74
74
|
isLoading: !1,
|
|
75
75
|
class: {
|
|
76
76
|
button: [
|
|
77
|
-
"uy-bg-
|
|
78
|
-
"hover:uy-bg-
|
|
79
|
-
"active:uy-bg-
|
|
80
|
-
"focus:uy-bg-
|
|
81
|
-
"data-[pressed]:uy-bg-
|
|
77
|
+
"uy-bg-surface-danger-enabled",
|
|
78
|
+
"hover:uy-bg-surface-danger-hover",
|
|
79
|
+
"active:uy-bg-surface-danger-active",
|
|
80
|
+
"focus:uy-bg-surface-danger-focus",
|
|
81
|
+
"data-[pressed]:uy-bg-surface-danger-pressed"
|
|
82
82
|
],
|
|
83
83
|
icon: [
|
|
84
84
|
"uy-text-content-inverted-enabled",
|
|
@@ -96,18 +96,18 @@ const t = e({
|
|
|
96
96
|
isLoading: !1,
|
|
97
97
|
class: {
|
|
98
98
|
button: [
|
|
99
|
-
"uy-bg-
|
|
100
|
-
"hover:uy-bg-
|
|
101
|
-
"active:uy-bg-
|
|
102
|
-
"focus-visible:uy-bg-
|
|
103
|
-
"data-[pressed]:uy-bg-
|
|
99
|
+
"uy-bg-surface-warning-enabled",
|
|
100
|
+
"hover:uy-bg-surface-warning-hover",
|
|
101
|
+
"active:uy-bg-surface-warning-pressed",
|
|
102
|
+
"focus-visible:uy-bg-surface-warning-focus",
|
|
103
|
+
"data-[pressed]:uy-bg-surface-warning-pressed"
|
|
104
104
|
],
|
|
105
105
|
icon: [
|
|
106
|
-
"uy-text-content-
|
|
107
|
-
"group-hover:uy-text-content-
|
|
108
|
-
"active:uy-text-content-
|
|
109
|
-
"focus-visible:uy-text-content-
|
|
110
|
-
"data-[pressed]:uy-text-content-
|
|
106
|
+
"uy-text-content-neutral-enabled",
|
|
107
|
+
"group-hover:uy-text-content-neutral-hover",
|
|
108
|
+
"active:uy-text-content-neutral-pressed",
|
|
109
|
+
"focus-visible:uy-text-content-neutral-focus",
|
|
110
|
+
"data-[pressed]:uy-text-content-neutral-pressed"
|
|
111
111
|
]
|
|
112
112
|
}
|
|
113
113
|
},
|
|
@@ -118,14 +118,14 @@ const t = e({
|
|
|
118
118
|
isLoading: !1,
|
|
119
119
|
class: {
|
|
120
120
|
button: [
|
|
121
|
-
"uy-bg-surface-
|
|
122
|
-
"hover:uy-
|
|
123
|
-
"active:uy-
|
|
124
|
-
"focus-visible:uy-
|
|
125
|
-
"data-[pressed]:uy-
|
|
121
|
+
"uy-bg-surface-neutral-enabled",
|
|
122
|
+
"hover:uy-bg-surface-neutral-hover",
|
|
123
|
+
"active:uy-bg-surface-neutral-pressed",
|
|
124
|
+
"focus-visible:uy-bg-surface-neutral-focus",
|
|
125
|
+
"data-[pressed]:uy-bg-surface-neutral-pressed"
|
|
126
126
|
],
|
|
127
127
|
icon: [
|
|
128
|
-
"uy-text-content-neutral",
|
|
128
|
+
"uy-text-content-neutral-enabled",
|
|
129
129
|
"group-hover:uy-text-content-neutral-hover",
|
|
130
130
|
"active:uy-text-content-neutral-pressed",
|
|
131
131
|
"focus-visible:uy-text-content-neutral-focus",
|
|
@@ -154,7 +154,7 @@ const t = e({
|
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
]
|
|
157
|
-
}),
|
|
157
|
+
}), n = e({
|
|
158
158
|
extend: t,
|
|
159
159
|
variants: {
|
|
160
160
|
variant: {
|
|
@@ -172,17 +172,17 @@ const t = e({
|
|
|
172
172
|
isLoading: !1,
|
|
173
173
|
class: {
|
|
174
174
|
button: [
|
|
175
|
-
"uy-border uy-border-solid uy-border-border-
|
|
176
|
-
"hover:uy-border-border-
|
|
177
|
-
"active:uy-border-border-
|
|
178
|
-
"data-[pressed]:uy-border-border-
|
|
175
|
+
"uy-border uy-border-solid uy-border-border-neutral-high-enabled",
|
|
176
|
+
"hover:uy-border-border-neutral-high-hover",
|
|
177
|
+
"active:uy-border-border-neutral-high-active",
|
|
178
|
+
"data-[pressed]:uy-border-border-neutral-high-pressed"
|
|
179
179
|
],
|
|
180
180
|
icon: [
|
|
181
|
-
"uy-text-content-
|
|
182
|
-
"group-hover:uy-text-content-
|
|
183
|
-
"active:uy-text-content-
|
|
184
|
-
"data-[pressed]:uy-text-content-
|
|
185
|
-
"focus-visible:uy-text-content-
|
|
181
|
+
"uy-text-content-neutral-low-enabled",
|
|
182
|
+
"group-hover:uy-text-content-low-neutral-hover",
|
|
183
|
+
"active:uy-text-content-neutral-low-active",
|
|
184
|
+
"data-[pressed]:uy-text-content-neutral-low-pressed",
|
|
185
|
+
"focus-visible:uy-text-content-neutral-low-focus"
|
|
186
186
|
]
|
|
187
187
|
}
|
|
188
188
|
},
|
|
@@ -220,7 +220,7 @@ const t = e({
|
|
|
220
220
|
"hover:uy-border-border-inverted-hover",
|
|
221
221
|
"data-[pressed]:uy-border-border-inverted-pressed",
|
|
222
222
|
"active:uy-border-border-inverted-active",
|
|
223
|
-
"focus-visible:uy-border-border-inverted-focus"
|
|
223
|
+
"focus-visible:uy-border-border-inverted-focus focus-visible:uy-outline-utility-inverted-focus-ring"
|
|
224
224
|
],
|
|
225
225
|
icon: [
|
|
226
226
|
"uy-text-content-inverted",
|
|
@@ -244,7 +244,7 @@ const t = e({
|
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
246
|
]
|
|
247
|
-
}),
|
|
247
|
+
}), s = e({
|
|
248
248
|
extend: t,
|
|
249
249
|
variants: {
|
|
250
250
|
variant: {
|
|
@@ -268,7 +268,7 @@ const t = e({
|
|
|
268
268
|
"data-[pressed]:uy-bg-surface-neutral-pressed",
|
|
269
269
|
"active:uy-bg-surface-neutral-active"
|
|
270
270
|
],
|
|
271
|
-
icon: ["uy-text-content-neutral"]
|
|
271
|
+
icon: ["uy-text-content-neutral-low"]
|
|
272
272
|
}
|
|
273
273
|
},
|
|
274
274
|
{
|
|
@@ -303,10 +303,10 @@ const t = e({
|
|
|
303
303
|
],
|
|
304
304
|
icon: [
|
|
305
305
|
"uy-text-content-danger",
|
|
306
|
-
"group-hover:uy-text-content-danger
|
|
307
|
-
"data-[pressed]:uy-text-content-danger
|
|
308
|
-
"focus-visible:uy-text-content-danger
|
|
309
|
-
"active:uy-text-content-danger
|
|
306
|
+
"group-hover:uy-text-content-danger",
|
|
307
|
+
"data-[pressed]:uy-text-content-danger",
|
|
308
|
+
"focus-visible:uy-text-content-danger",
|
|
309
|
+
"active:uy-text-content-danger"
|
|
310
310
|
]
|
|
311
311
|
}
|
|
312
312
|
},
|
|
@@ -321,11 +321,11 @@ const t = e({
|
|
|
321
321
|
"active:uy-bg-surface-warning-lowest-active"
|
|
322
322
|
],
|
|
323
323
|
icon: [
|
|
324
|
-
"uy-text-content-warning",
|
|
325
|
-
"group-hover:uy-text-content-warning-
|
|
326
|
-
"data-[pressed]:uy-text-content-warning-
|
|
327
|
-
"focus-visible:uy-text-content-warning-
|
|
328
|
-
"active:uy-text-content-warning-
|
|
324
|
+
"uy-text-content-warning-high",
|
|
325
|
+
"group-hover:uy-text-content-warning-high",
|
|
326
|
+
"data-[pressed]:uy-text-content-warning-high",
|
|
327
|
+
"focus-visible:uy-text-content-warning-high",
|
|
328
|
+
"active:uy-text-content-warning-high"
|
|
329
329
|
]
|
|
330
330
|
}
|
|
331
331
|
},
|
|
@@ -350,7 +350,7 @@ const t = e({
|
|
|
350
350
|
]
|
|
351
351
|
});
|
|
352
352
|
export {
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
353
|
+
s as iconButtonGhost,
|
|
354
|
+
a as iconButtonPrimary,
|
|
355
|
+
n as iconButtonSecondary
|
|
356
356
|
};
|
|
@@ -9,11 +9,11 @@ import { Spinner as O } from "../spinner/Spinner.js";
|
|
|
9
9
|
const S = N({
|
|
10
10
|
slots: {
|
|
11
11
|
base: "uy-flex uy-h-500 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",
|
|
12
|
-
prefix: "uy-flex-grow-0 uy-content-center uy-pt-100 uy-pb-100 uy-pl-150 uy-pr-150 uy-border-r uy-border-solid uy-rounded-l-100 active:uy-border-border-form-active",
|
|
13
|
-
inputWrapper: "uy-flex uy-gap-50 uy-flex-grow uy-flex-nowrap uy-pt-100 uy-pb-100 uy-pl-150 uy-pr-150 uy-rounded-
|
|
12
|
+
prefix: "uy-flex-grow-0 uy-text-content-neutral-low uy-content-center uy-pt-100 uy-pb-100 uy-pl-150 uy-pr-150 uy-border-r uy-border-solid uy-rounded-l-100 active:uy-border-border-form-active",
|
|
13
|
+
inputWrapper: "uy-flex uy-gap-50 uy-flex-grow uy-flex-nowrap uy-pt-100 uy-pb-100 uy-pl-150 uy-pr-150 uy-rounded-100 uy-max-w-full uy-justify-between",
|
|
14
14
|
input: "uy-w-full uy-flex-1 uy-outline-none uy-typography-body placeholder:uy-text-content-neutral-lowest uy-min-w-0 uy-max-w-full",
|
|
15
15
|
state: "uy-flex uy-gap-50 uy-items-center uy-shrink-0",
|
|
16
|
-
suffix: "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 active:uy-border-border-form-active"
|
|
16
|
+
suffix: "uy-flex-grow-0 uy-text-content-neutral-low 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 active:uy-border-border-form-active"
|
|
17
17
|
},
|
|
18
18
|
variants: {
|
|
19
19
|
isInvalid: {
|
|
@@ -63,8 +63,8 @@ const S = N({
|
|
|
63
63
|
}), j = v(
|
|
64
64
|
({
|
|
65
65
|
type: s = "text",
|
|
66
|
-
prefix:
|
|
67
|
-
suffix:
|
|
66
|
+
prefix: l,
|
|
67
|
+
suffix: i,
|
|
68
68
|
isInvalid: f,
|
|
69
69
|
isLoading: r,
|
|
70
70
|
isDisabled: o,
|
|
@@ -85,7 +85,7 @@ const S = N({
|
|
|
85
85
|
isDisabled: !!o
|
|
86
86
|
}), w = a.value && !r && !u && !o;
|
|
87
87
|
return delete a.isRequired, /* @__PURE__ */ n("div", { className: b(), children: [
|
|
88
|
-
|
|
88
|
+
l ? /* @__PURE__ */ e("span", { className: m(), children: l }) : null,
|
|
89
89
|
/* @__PURE__ */ n("div", { className: c(), children: [
|
|
90
90
|
/* @__PURE__ */ e(
|
|
91
91
|
h,
|
|
@@ -139,7 +139,7 @@ const S = N({
|
|
|
139
139
|
)
|
|
140
140
|
] })
|
|
141
141
|
] }),
|
|
142
|
-
|
|
142
|
+
i ? /* @__PURE__ */ e("span", { className: g(), children: i }) : null
|
|
143
143
|
] });
|
|
144
144
|
}
|
|
145
145
|
);
|
|
@@ -15,7 +15,7 @@ export declare const link: import('tailwind-variants').TVReturnType<{
|
|
|
15
15
|
true: string;
|
|
16
16
|
false: string;
|
|
17
17
|
};
|
|
18
|
-
}, undefined, "uy-rounded-50 uy-underline uy-transition-colors disabled:uy-text-content-neutral-disabled focus-visible:uy-outline-none focus-visible:uy-ring-2 focus-visible:uy-ring-offset-2 focus-visible:uy-ring-utility-focus-ring", import('tailwind-variants/dist/config.js').TVConfig<{
|
|
18
|
+
}, undefined, "uy-rounded-50 uy-underline uy-transition-colors disabled:uy-text-content-neutral-disabled focus-visible:uy-outline-none focus-visible:uy-text-content-neutral-focus focus-visible:uy-ring-2 focus-visible:uy-ring-offset-2 focus-visible:uy-ring-utility-focus-ring", import('tailwind-variants/dist/config.js').TVConfig<{
|
|
19
19
|
variant: {
|
|
20
20
|
inline: string;
|
|
21
21
|
standalone: string;
|
|
@@ -83,7 +83,7 @@ export declare const link: import('tailwind-variants').TVReturnType<{
|
|
|
83
83
|
true: string;
|
|
84
84
|
false: string;
|
|
85
85
|
};
|
|
86
|
-
}, undefined, "uy-rounded-50 uy-underline uy-transition-colors disabled:uy-text-content-neutral-disabled focus-visible:uy-outline-none focus-visible:uy-ring-2 focus-visible:uy-ring-offset-2 focus-visible:uy-ring-utility-focus-ring", import('tailwind-variants/dist/config.js').TVConfig<{
|
|
86
|
+
}, undefined, "uy-rounded-50 uy-underline uy-transition-colors disabled:uy-text-content-neutral-disabled focus-visible:uy-outline-none focus-visible:uy-text-content-neutral-focus focus-visible:uy-ring-2 focus-visible:uy-ring-offset-2 focus-visible:uy-ring-utility-focus-ring", import('tailwind-variants/dist/config.js').TVConfig<{
|
|
87
87
|
variant: {
|
|
88
88
|
inline: string;
|
|
89
89
|
standalone: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { tv as t } from "tailwind-variants";
|
|
2
2
|
const a = t({
|
|
3
|
-
base: "uy-rounded-50 uy-underline uy-transition-colors disabled:uy-text-content-neutral-disabled focus-visible:uy-outline-none focus-visible:uy-ring-2 focus-visible:uy-ring-offset-2 focus-visible:uy-ring-utility-focus-ring",
|
|
3
|
+
base: "uy-rounded-50 uy-underline uy-transition-colors disabled:uy-text-content-neutral-disabled focus-visible:uy-outline-none focus-visible:uy-text-content-neutral-focus focus-visible:uy-ring-2 focus-visible:uy-ring-offset-2 focus-visible:uy-ring-utility-focus-ring",
|
|
4
4
|
variants: {
|
|
5
5
|
variant: {
|
|
6
6
|
inline: "uy-inline uy-text-inherit uy-font-medium uy-leading-inherit",
|
|
@@ -8,7 +8,7 @@ const a = t({
|
|
|
8
8
|
},
|
|
9
9
|
color: {
|
|
10
10
|
primary: "uy-text-content-primary-enabled hover:uy-text-content-primary-hover active:uy-text-content-primary-active data-[pressed]:uy-text-content-primary-active data-[current]:uy-text-content-primary-active aria-[current]:uy-text-content-primary-active",
|
|
11
|
-
secondary: "uy-text-content-neutral-enabled hover:uy-text-content-neutral-hover active:uy-text-content-neutral-active data-[pressed]:uy-text-content-neutral-
|
|
11
|
+
secondary: "uy-text-content-neutral-enabled hover:uy-text-content-neutral-hover active:uy-text-content-neutral-active data-[pressed]:uy-text-content-neutral-pressed data-[current]:uy-text-content-neutral-active aria-[current]:uy-text-content-neutral-active"
|
|
12
12
|
},
|
|
13
13
|
isDisabled: {
|
|
14
14
|
true: "data-[disabled]:uy-cursor-not-allowed",
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { jsxs as o } from "react/jsx-runtime";
|
|
2
|
-
import { MenuItem as
|
|
3
|
-
import { twMerge as
|
|
4
|
-
function
|
|
1
|
+
import { jsxs as s, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { MenuItem as y } from "react-aria-components";
|
|
3
|
+
import { twMerge as i } from "tailwind-merge";
|
|
4
|
+
function l({
|
|
5
5
|
prefix: e,
|
|
6
|
-
children:
|
|
7
|
-
href:
|
|
6
|
+
children: t,
|
|
7
|
+
href: u,
|
|
8
8
|
onAction: r,
|
|
9
|
-
className:
|
|
10
|
-
...
|
|
9
|
+
className: n,
|
|
10
|
+
...a
|
|
11
11
|
}) {
|
|
12
|
-
return /* @__PURE__ */
|
|
13
|
-
|
|
12
|
+
return /* @__PURE__ */ s(
|
|
13
|
+
y,
|
|
14
14
|
{
|
|
15
|
-
href:
|
|
15
|
+
href: u,
|
|
16
16
|
onAction: r,
|
|
17
|
-
className:
|
|
17
|
+
className: i(
|
|
18
18
|
"uy-cursor-pointer uy-flex uy-p-100 uy-items-start uy-gap-100 uy-rounded-25 uy-typography-body uy-text-content-neutral hover:uy-bg-surface-neutral-hover data-[pressed]:uy-bg-surface-neutral-pressed focus-visible:uy-outline-utility-focus-ring active:uy-bg-surface-neutral-active",
|
|
19
|
-
|
|
19
|
+
n
|
|
20
20
|
),
|
|
21
|
-
...
|
|
21
|
+
...a,
|
|
22
22
|
children: [
|
|
23
|
-
e || null,
|
|
24
|
-
|
|
23
|
+
/* @__PURE__ */ o("div", { className: "uy-text-content-neutral-low", children: e || null }),
|
|
24
|
+
t
|
|
25
25
|
]
|
|
26
26
|
}
|
|
27
27
|
);
|
|
28
28
|
}
|
|
29
|
-
|
|
29
|
+
l.displayName = "MenuItem";
|
|
30
30
|
export {
|
|
31
|
-
|
|
31
|
+
l as MenuItem
|
|
32
32
|
};
|
|
@@ -14,7 +14,7 @@ const H = U({
|
|
|
14
14
|
base: "uy-h-500 uy-flex uy-items-center uy-justify-between uy-py-100 uy-px-150 uy-w-full uy-border uy-border-solid uy-rounded-75 focus-within:uy-outline-none focus-within:uy-ring-2 focus-within:uy-ring-utility-focus-ring focus-within:uy-ring-offset-2 active:not([disabled]):uy-border-border-form-active !uy-pointer-events-auto",
|
|
15
15
|
inputValue: "uy-flex-1 uy-typography-body uy-text-content-form-enabled uy-text-left uy-line-clamp-1",
|
|
16
16
|
state: "uy-grow-0 uy-outline-none uy-typography-body placeholder:uy-text-content-neutral-lowest uy-inline-flex uy-gap-50 uy-items-center uy-px-100",
|
|
17
|
-
suffix: ""
|
|
17
|
+
suffix: "uy-text-content-neutral-low"
|
|
18
18
|
},
|
|
19
19
|
variants: {
|
|
20
20
|
isDisabled: {
|
|
@@ -70,8 +70,8 @@ function J({
|
|
|
70
70
|
selectedItems: g,
|
|
71
71
|
renderValue: m,
|
|
72
72
|
onClearButtonPress: i,
|
|
73
|
-
...
|
|
74
|
-
},
|
|
73
|
+
...w
|
|
74
|
+
}, h) {
|
|
75
75
|
const f = L(), s = R(), S = D(), M = K(S, "open"), y = k(G), a = y.maxVisibleItems ?? 0, l = y.selectedKeys ?? /* @__PURE__ */ new Set(), o = Array.from(g), { base: v, inputValue: I, state: C, suffix: V } = H({
|
|
76
76
|
isDisabled: !!r,
|
|
77
77
|
isReadOnly: !!t,
|
|
@@ -88,8 +88,8 @@ function J({
|
|
|
88
88
|
return /* @__PURE__ */ c(
|
|
89
89
|
$,
|
|
90
90
|
{
|
|
91
|
-
...
|
|
92
|
-
ref:
|
|
91
|
+
...w,
|
|
92
|
+
ref: h,
|
|
93
93
|
className: v(),
|
|
94
94
|
disabled: r || t,
|
|
95
95
|
"aria-invalid": n,
|
|
@@ -15,10 +15,10 @@ export declare const navItemBase: import('tailwind-variants').TVReturnType<{
|
|
|
15
15
|
false: string;
|
|
16
16
|
};
|
|
17
17
|
}, {
|
|
18
|
-
base: string;
|
|
18
|
+
base: string[];
|
|
19
19
|
prefix: string;
|
|
20
20
|
suffix: string;
|
|
21
|
-
label: string;
|
|
21
|
+
label: string[];
|
|
22
22
|
}, undefined, import('tailwind-variants/dist/config.js').TVConfig<{
|
|
23
23
|
level: {
|
|
24
24
|
0: string;
|
|
@@ -56,10 +56,10 @@ export declare const navItemBase: import('tailwind-variants').TVReturnType<{
|
|
|
56
56
|
false: string;
|
|
57
57
|
};
|
|
58
58
|
}, {
|
|
59
|
-
base: string;
|
|
59
|
+
base: string[];
|
|
60
60
|
prefix: string;
|
|
61
61
|
suffix: string;
|
|
62
|
-
label: string;
|
|
62
|
+
label: string[];
|
|
63
63
|
}, import('tailwind-variants').TVReturnType<{
|
|
64
64
|
level: {
|
|
65
65
|
0: string;
|
|
@@ -73,10 +73,10 @@ export declare const navItemBase: import('tailwind-variants').TVReturnType<{
|
|
|
73
73
|
false: string;
|
|
74
74
|
};
|
|
75
75
|
}, {
|
|
76
|
-
base: string;
|
|
76
|
+
base: string[];
|
|
77
77
|
prefix: string;
|
|
78
78
|
suffix: string;
|
|
79
|
-
label: string;
|
|
79
|
+
label: string[];
|
|
80
80
|
}, undefined, import('tailwind-variants/dist/config.js').TVConfig<{
|
|
81
81
|
level: {
|
|
82
82
|
0: string;
|
|
@@ -106,10 +106,12 @@ declare const navItem: import('tailwind-variants').TVReturnType<{
|
|
|
106
106
|
isActive: {
|
|
107
107
|
true: {
|
|
108
108
|
base: string;
|
|
109
|
+
prefix: string;
|
|
109
110
|
label: string;
|
|
110
111
|
};
|
|
111
112
|
false: {
|
|
112
113
|
base: string;
|
|
114
|
+
prefix: string;
|
|
113
115
|
label: string;
|
|
114
116
|
};
|
|
115
117
|
};
|
|
@@ -117,10 +119,12 @@ declare const navItem: import('tailwind-variants').TVReturnType<{
|
|
|
117
119
|
isActive: {
|
|
118
120
|
true: {
|
|
119
121
|
base: string;
|
|
122
|
+
prefix: string;
|
|
120
123
|
label: string;
|
|
121
124
|
};
|
|
122
125
|
false: {
|
|
123
126
|
base: string;
|
|
127
|
+
prefix: string;
|
|
124
128
|
label: string;
|
|
125
129
|
};
|
|
126
130
|
};
|
|
@@ -149,10 +153,10 @@ declare const navItem: import('tailwind-variants').TVReturnType<{
|
|
|
149
153
|
false: string;
|
|
150
154
|
};
|
|
151
155
|
}, {
|
|
152
|
-
base: string;
|
|
156
|
+
base: string[];
|
|
153
157
|
prefix: string;
|
|
154
158
|
suffix: string;
|
|
155
|
-
label: string;
|
|
159
|
+
label: string[];
|
|
156
160
|
}, import('tailwind-variants').TVReturnType<{
|
|
157
161
|
level: {
|
|
158
162
|
0: string;
|
|
@@ -166,10 +170,10 @@ declare const navItem: import('tailwind-variants').TVReturnType<{
|
|
|
166
170
|
false: string;
|
|
167
171
|
};
|
|
168
172
|
}, {
|
|
169
|
-
base: string;
|
|
173
|
+
base: string[];
|
|
170
174
|
prefix: string;
|
|
171
175
|
suffix: string;
|
|
172
|
-
label: string;
|
|
176
|
+
label: string[];
|
|
173
177
|
}, undefined, import('tailwind-variants/dist/config.js').TVConfig<{
|
|
174
178
|
level: {
|
|
175
179
|
0: string;
|
|
@@ -207,10 +211,10 @@ declare const navItem: import('tailwind-variants').TVReturnType<{
|
|
|
207
211
|
false: string;
|
|
208
212
|
};
|
|
209
213
|
}, {
|
|
210
|
-
base: string;
|
|
214
|
+
base: string[];
|
|
211
215
|
prefix: string;
|
|
212
216
|
suffix: string;
|
|
213
|
-
label: string;
|
|
217
|
+
label: string[];
|
|
214
218
|
}, import('tailwind-variants').TVReturnType<{
|
|
215
219
|
level: {
|
|
216
220
|
0: string;
|
|
@@ -224,10 +228,10 @@ declare const navItem: import('tailwind-variants').TVReturnType<{
|
|
|
224
228
|
false: string;
|
|
225
229
|
};
|
|
226
230
|
}, {
|
|
227
|
-
base: string;
|
|
231
|
+
base: string[];
|
|
228
232
|
prefix: string;
|
|
229
233
|
suffix: string;
|
|
230
|
-
label: string;
|
|
234
|
+
label: string[];
|
|
231
235
|
}, undefined, import('tailwind-variants/dist/config.js').TVConfig<{
|
|
232
236
|
level: {
|
|
233
237
|
0: string;
|
|
@@ -1,14 +1,20 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { Link as
|
|
3
|
-
import { twMerge as
|
|
4
|
-
import { tv as
|
|
5
|
-
import { useRouter as
|
|
6
|
-
const A =
|
|
1
|
+
import { jsx as u, jsxs as h } from "react/jsx-runtime";
|
|
2
|
+
import { Link as w, Button as N } from "react-aria-components";
|
|
3
|
+
import { twMerge as I } from "tailwind-merge";
|
|
4
|
+
import { tv as l } from "tailwind-variants";
|
|
5
|
+
import { useRouter as j } from "../../../providers/router/RouterProvider.js";
|
|
6
|
+
const A = l({
|
|
7
7
|
slots: {
|
|
8
|
-
base:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
base: [
|
|
9
|
+
"uy-group uy-grid uy-w-full uy-grid-cols-[auto_1fr_auto] uy-items-center uy-py-100 uy-px-150 uy-gap-100 uy-rounded-75 uy-outline-0 uy-transition-all",
|
|
10
|
+
"hover:uy-bg-surface-neutral-hover active:uy-bg-surface-neutral-active data-[pressed]:uy-bg-surface-neutral-pressed",
|
|
11
|
+
"focus:uy-outline-0 data-[focus-visible]:uy-outline-none data-[focus-visible]:uy-ring-2 data-[focus-visible]:uy-ring-utility-focus-ring data-[focus-visible]:uy-ring-offset-2"
|
|
12
|
+
],
|
|
13
|
+
prefix: "uy-p-25 empty:uy-hidden uy-text-content-neutral-low",
|
|
14
|
+
suffix: "uy-flex uy-gap-100 uy-items-center uy-text-content-neutral-low uy-justify-self-end uy-text-right empty:uy-hidden",
|
|
15
|
+
label: [
|
|
16
|
+
"uy-flex-1 uy-basis-full uy-text-left uy-truncate uy-overflow-hidden uy-whitespace-break-spaces uy-typography-body uy-text-content-neutral"
|
|
17
|
+
]
|
|
12
18
|
},
|
|
13
19
|
variants: {
|
|
14
20
|
level: {
|
|
@@ -23,16 +29,18 @@ const A = o({
|
|
|
23
29
|
false: ""
|
|
24
30
|
}
|
|
25
31
|
}
|
|
26
|
-
}), S =
|
|
32
|
+
}), S = l({
|
|
27
33
|
extend: A,
|
|
28
34
|
variants: {
|
|
29
35
|
isActive: {
|
|
30
36
|
true: {
|
|
31
37
|
base: "uy-bg-surface-neutral-active",
|
|
38
|
+
prefix: "uy-text-content-neutral",
|
|
32
39
|
label: "uy-typography-body-strong"
|
|
33
40
|
},
|
|
34
41
|
false: {
|
|
35
42
|
base: "",
|
|
43
|
+
prefix: "uy-text-content-neutral-low",
|
|
36
44
|
label: "uy-typography-body"
|
|
37
45
|
}
|
|
38
46
|
}
|
|
@@ -40,43 +48,43 @@ const A = o({
|
|
|
40
48
|
});
|
|
41
49
|
function k({
|
|
42
50
|
children: y,
|
|
43
|
-
level:
|
|
44
|
-
prefix:
|
|
51
|
+
level: s = 0,
|
|
52
|
+
prefix: n,
|
|
45
53
|
suffix: r,
|
|
46
54
|
onPress: c,
|
|
47
55
|
href: e,
|
|
48
|
-
isCurrent:
|
|
49
|
-
isDisabled:
|
|
56
|
+
isCurrent: p,
|
|
57
|
+
isDisabled: a = !1,
|
|
50
58
|
isExact: f = !1,
|
|
51
|
-
...
|
|
59
|
+
...d
|
|
52
60
|
}) {
|
|
53
|
-
const
|
|
61
|
+
const i = j(), b = e ? w : N, t = i && e ? i.isActive(e.toString(), f) : p, {
|
|
54
62
|
base: v,
|
|
55
|
-
label:
|
|
63
|
+
label: o,
|
|
56
64
|
prefix: m,
|
|
57
65
|
suffix: g
|
|
58
|
-
} = S({ level:
|
|
66
|
+
} = S({ level: s, isActive: t, isDisabled: a }), x = Object.assign(
|
|
59
67
|
{},
|
|
60
68
|
t !== void 0 && {
|
|
61
69
|
"data-current": t,
|
|
62
70
|
"aria-current": t ? "page" : void 0
|
|
63
71
|
},
|
|
64
|
-
!e && { tabIndex:
|
|
72
|
+
!e && { tabIndex: a ? -1 : void 0 }
|
|
65
73
|
);
|
|
66
|
-
return /* @__PURE__ */
|
|
74
|
+
return /* @__PURE__ */ u("li", { children: /* @__PURE__ */ h(
|
|
67
75
|
b,
|
|
68
76
|
{
|
|
69
|
-
className:
|
|
77
|
+
className: I(v(), o()),
|
|
70
78
|
href: e,
|
|
71
79
|
onPress: c,
|
|
72
|
-
isDisabled:
|
|
73
|
-
"data-level":
|
|
80
|
+
isDisabled: a,
|
|
81
|
+
"data-level": s,
|
|
74
82
|
...x,
|
|
75
|
-
...
|
|
83
|
+
...d,
|
|
76
84
|
children: [
|
|
77
|
-
|
|
78
|
-
/* @__PURE__ */
|
|
79
|
-
r && /* @__PURE__ */
|
|
85
|
+
n && /* @__PURE__ */ u("span", { className: m(), children: n({ isCurrent: t ?? !1 }) }),
|
|
86
|
+
/* @__PURE__ */ u("span", { className: o(), children: y }),
|
|
87
|
+
r && /* @__PURE__ */ u("span", { className: g(), children: r })
|
|
80
88
|
]
|
|
81
89
|
}
|
|
82
90
|
) });
|
|
@@ -15,7 +15,7 @@ const Q = C({
|
|
|
15
15
|
"active:uy-border-border-form-active"
|
|
16
16
|
],
|
|
17
17
|
wrapper: [
|
|
18
|
-
"uy-flex uy-gap-50 uy-flex-grow uy-flex-nowrap uy-pt-100 uy-pb-100 uy-pl-150 uy-pr-150 uy-rounded-
|
|
18
|
+
"uy-flex uy-gap-50 uy-flex-grow uy-flex-nowrap uy-pt-100 uy-pb-100 uy-pl-150 uy-pr-150 uy-rounded-100 uy-max-w-full uy-justify-between uy-items-center"
|
|
19
19
|
],
|
|
20
20
|
input: [
|
|
21
21
|
"uy-w-full uy-flex-1 uy-outline-none uy-typography-body uy-min-w-0 uy-max-w-full",
|
|
@@ -6,7 +6,7 @@ import { tv as l } from "tailwind-variants";
|
|
|
6
6
|
const d = l({
|
|
7
7
|
base: [
|
|
8
8
|
"uy-min-w-300 uy-h-300 uy-p-25 uy-flex uy-justify-center uy-items-center uy-typography-action uy-rounded-pill uy-transition-colors",
|
|
9
|
-
"enabled:uy-text-content-neutral-enabled enabled:
|
|
9
|
+
"enabled:uy-text-content-neutral-enabled enabled:uy-bg-transparent uy-cursor-pointer",
|
|
10
10
|
"data-[disabled]:uy-text-content-neutral-disabled data-[disabled]:uy-bg-surface-neutral-disabled data-[disabled]:uy-cursor-not-allowed",
|
|
11
11
|
"hover:uy-text-content-neutral-hover hover:uy-bg-surface-neutral-hover",
|
|
12
12
|
"active:uy-text-content-neutral-pressed active:uy-bg-surface-neutral-pressed data-[pressed]:uy-text-content-neutral-pressed data-[pressed]:uy-bg-surface-neutral-pressed",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { useIntl as
|
|
3
|
-
import { CircularIconButton as
|
|
2
|
+
import { useIntl as r } from "react-intl";
|
|
3
|
+
import { CircularIconButton as s } from "../../icon-button/CircularIconButton.js";
|
|
4
4
|
function u({ variant: t, ...n }) {
|
|
5
|
-
const o =
|
|
5
|
+
const o = r(), e = o.formatMessage({
|
|
6
6
|
id: t === "previous" ? "unity:component:common:previous" : "unity:component:common:next",
|
|
7
7
|
defaultMessage: t === "previous" ? "Previous" : "Next"
|
|
8
8
|
}), i = o.formatMessage(
|
|
@@ -15,10 +15,11 @@ function u({ variant: t, ...n }) {
|
|
|
15
15
|
}
|
|
16
16
|
);
|
|
17
17
|
return /* @__PURE__ */ a(
|
|
18
|
-
|
|
18
|
+
s,
|
|
19
19
|
{
|
|
20
20
|
...n,
|
|
21
21
|
asElement: "button",
|
|
22
|
+
color: "content.neutral.lowest",
|
|
22
23
|
title: e,
|
|
23
24
|
"aria-label": i,
|
|
24
25
|
icon: t === "previous" ? "CaretLeftOutlined" : "CaretRightOutlined"
|