@vkzstudio/muza-ui 1.2.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Accordion/Accordion.d.ts +52 -2
- package/dist/components/Accordion/Accordion.d.ts.map +1 -1
- package/dist/components/Accordion/Accordion.js +111 -76
- package/dist/components/ArticleCard/ArticleCard.d.ts +178 -0
- package/dist/components/ArticleCard/ArticleCard.d.ts.map +1 -0
- package/dist/components/ArticleCard/ArticleCard.js +542 -0
- package/dist/components/ArticleCard/ArticleCard.stories.d.ts +14 -0
- package/dist/components/ArticleCard/ArticleCard.stories.d.ts.map +1 -0
- package/dist/components/ArticleCard/index.d.ts +2 -0
- package/dist/components/ArticleCard/index.d.ts.map +1 -0
- package/dist/components/BalanceListView/BalanceListView.examples.d.ts +38 -0
- package/dist/components/BalanceListView/BalanceListView.examples.d.ts.map +1 -0
- package/dist/components/BalanceListView/BalanceListView.stories.d.ts +8 -0
- package/dist/components/BalanceListView/BalanceListView.stories.d.ts.map +1 -0
- package/dist/components/ButtonArrow/ButtonArrow.d.ts +3 -3
- package/dist/components/ButtonArrow/ButtonArrow.d.ts.map +1 -1
- package/dist/components/ButtonArrow/ButtonArrow.js +26 -25
- package/dist/components/Calendar/Calendar.d.ts.map +1 -1
- package/dist/components/Calendar/Calendar.js +5 -5
- package/dist/components/Calendar/index.d.ts +1 -2
- package/dist/components/Calendar/index.d.ts.map +1 -1
- package/dist/components/Carousel/Carousel.d.ts +9 -0
- package/dist/components/Carousel/Carousel.d.ts.map +1 -1
- package/dist/components/Carousel/Carousel.js +135 -133
- package/dist/components/CarouselSection/CarouselSection.examples.d.ts +34 -0
- package/dist/components/CarouselSection/CarouselSection.examples.d.ts.map +1 -0
- package/dist/components/CarouselSection/CarouselSection.stories.d.ts +8 -0
- package/dist/components/CarouselSection/CarouselSection.stories.d.ts.map +1 -0
- package/dist/components/CategoryCard/CategoryCard.d.ts +97 -0
- package/dist/components/CategoryCard/CategoryCard.d.ts.map +1 -0
- package/dist/components/CategoryCard/CategoryCard.js +152 -0
- package/dist/components/CategoryCard/CategoryCard.stories.d.ts +14 -0
- package/dist/components/CategoryCard/CategoryCard.stories.d.ts.map +1 -0
- package/dist/components/CategoryCard/index.d.ts +2 -0
- package/dist/components/CategoryCard/index.d.ts.map +1 -0
- package/dist/components/CategoryIcon/CategoryIcon.d.ts +45 -0
- package/dist/components/CategoryIcon/CategoryIcon.d.ts.map +1 -0
- package/dist/components/CategoryIcon/CategoryIcon.js +54 -0
- package/dist/components/CategoryIcon/CategoryIcon.stories.d.ts +10 -0
- package/dist/components/CategoryIcon/CategoryIcon.stories.d.ts.map +1 -0
- package/dist/components/CategoryIcon/index.d.ts +2 -0
- package/dist/components/CategoryIcon/index.d.ts.map +1 -0
- package/dist/components/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/components/DatePicker/DatePicker.js +5 -5
- package/dist/components/Dialog/Dialog.d.ts +12 -6
- package/dist/components/Dialog/Dialog.d.ts.map +1 -1
- package/dist/components/Dialog/Dialog.js +116 -120
- package/dist/components/Dialog/Dialog.stories.d.ts +1 -0
- package/dist/components/Dialog/Dialog.stories.d.ts.map +1 -1
- package/dist/components/DotDivider/DotDivider.d.ts +35 -0
- package/dist/components/DotDivider/DotDivider.d.ts.map +1 -0
- package/dist/components/DotDivider/DotDivider.js +31 -0
- package/dist/components/DotDivider/DotDivider.stories.d.ts +10 -0
- package/dist/components/DotDivider/DotDivider.stories.d.ts.map +1 -0
- package/dist/components/DotDivider/index.d.ts +2 -0
- package/dist/components/DotDivider/index.d.ts.map +1 -0
- package/dist/components/DropdownMenu/DropdownMenu.d.ts.map +1 -1
- package/dist/components/DropdownMenu/DropdownMenu.js +13 -13
- package/dist/components/EdgeButton/EdgeButton.d.ts.map +1 -1
- package/dist/components/EdgeButton/EdgeButton.js +10 -11
- package/dist/components/EmptyState/EmptyState.js +19 -19
- package/dist/components/FileUpload/FileItem.d.ts.map +1 -1
- package/dist/components/FileUpload/FileItem.js +8 -9
- package/dist/components/FileUpload/FileUpload.js +3 -3
- package/dist/components/HeartButton/HeartButton.d.ts +61 -0
- package/dist/components/HeartButton/HeartButton.d.ts.map +1 -0
- package/dist/components/HeartButton/HeartButton.js +88 -0
- package/dist/components/HeartButton/HeartButton.stories.d.ts +10 -0
- package/dist/components/HeartButton/HeartButton.stories.d.ts.map +1 -0
- package/dist/components/HeartButton/index.d.ts +2 -0
- package/dist/components/HeartButton/index.d.ts.map +1 -0
- package/dist/components/Icons/CustomBadges.d.ts +20 -0
- package/dist/components/Icons/CustomBadges.d.ts.map +1 -1
- package/dist/components/Icons/CustomBadges.js +176 -21
- package/dist/components/Icons/CustomIcons.d.ts +13 -0
- package/dist/components/Icons/CustomIcons.d.ts.map +1 -1
- package/dist/components/Icons/CustomIcons.js +50 -30
- package/dist/components/Icons/LogosAndBadges.stories.d.ts +2 -1
- package/dist/components/Icons/LogosAndBadges.stories.d.ts.map +1 -1
- package/dist/components/InputOTP/InputOTP.d.ts +95 -0
- package/dist/components/InputOTP/InputOTP.d.ts.map +1 -0
- package/dist/components/InputOTP/InputOTP.js +187 -0
- package/dist/components/InputOTP/InputOTP.stories.d.ts +18 -0
- package/dist/components/InputOTP/InputOTP.stories.d.ts.map +1 -0
- package/dist/components/InputOTP/index.d.ts +3 -0
- package/dist/components/InputOTP/index.d.ts.map +1 -0
- package/dist/components/InputOTP/useWebOtpAutofill.d.ts +33 -0
- package/dist/components/InputOTP/useWebOtpAutofill.d.ts.map +1 -0
- package/dist/components/InputOTP/useWebOtpAutofill.js +25 -0
- package/dist/components/LanguageSwitcher/LanguageSwitcher.d.ts.map +1 -1
- package/dist/components/LanguageSwitcher/LanguageSwitcher.js +65 -55
- package/dist/components/LoginScreen/LoginScreen.d.ts +10 -1
- package/dist/components/LoginScreen/LoginScreen.d.ts.map +1 -1
- package/dist/components/LoginScreen/LoginScreen.js +23 -17
- package/dist/components/MarketNav/MarketNav.examples.d.ts +60 -0
- package/dist/components/MarketNav/MarketNav.examples.d.ts.map +1 -0
- package/dist/components/MarketNav/MarketNav.stories.d.ts +9 -0
- package/dist/components/MarketNav/MarketNav.stories.d.ts.map +1 -0
- package/dist/components/MultiSelect/MultiSelect.js +1 -1
- package/dist/components/OfferCard/OfferCard.d.ts +206 -0
- package/dist/components/OfferCard/OfferCard.d.ts.map +1 -0
- package/dist/components/OfferCard/OfferCard.js +423 -0
- package/dist/components/OfferCard/OfferCard.stories.d.ts +15 -0
- package/dist/components/OfferCard/OfferCard.stories.d.ts.map +1 -0
- package/dist/components/OfferCard/index.d.ts +2 -0
- package/dist/components/OfferCard/index.d.ts.map +1 -0
- package/dist/components/PageContainer/PageContainer.d.ts +53 -0
- package/dist/components/PageContainer/PageContainer.d.ts.map +1 -0
- package/dist/components/PageContainer/PageContainer.js +49 -0
- package/dist/components/PageContainer/PageContainer.stories.d.ts +14 -0
- package/dist/components/PageContainer/PageContainer.stories.d.ts.map +1 -0
- package/dist/components/PageContainer/index.d.ts +2 -0
- package/dist/components/PageContainer/index.d.ts.map +1 -0
- package/dist/components/PartnerCard/PartnerCard.d.ts +234 -0
- package/dist/components/PartnerCard/PartnerCard.d.ts.map +1 -0
- package/dist/components/PartnerCard/PartnerCard.js +591 -0
- package/dist/components/PartnerCard/PartnerCard.stories.d.ts +14 -0
- package/dist/components/PartnerCard/PartnerCard.stories.d.ts.map +1 -0
- package/dist/components/PartnerCard/index.d.ts +2 -0
- package/dist/components/PartnerCard/index.d.ts.map +1 -0
- package/dist/components/PaymentMethodSelect/PaymentMethodSelect.examples.d.ts +35 -0
- package/dist/components/PaymentMethodSelect/PaymentMethodSelect.examples.d.ts.map +1 -0
- package/dist/components/PaymentMethodSelect/PaymentMethodSelect.stories.d.ts +11 -0
- package/dist/components/PaymentMethodSelect/PaymentMethodSelect.stories.d.ts.map +1 -0
- package/dist/components/Rating/Rating.d.ts +62 -0
- package/dist/components/Rating/Rating.d.ts.map +1 -0
- package/dist/components/Rating/Rating.js +88 -0
- package/dist/components/Rating/Rating.stories.d.ts +12 -0
- package/dist/components/Rating/Rating.stories.d.ts.map +1 -0
- package/dist/components/Rating/index.d.ts +2 -0
- package/dist/components/Rating/index.d.ts.map +1 -0
- package/dist/components/RatingBlock/RatingBlock.d.ts +65 -0
- package/dist/components/RatingBlock/RatingBlock.d.ts.map +1 -0
- package/dist/components/RatingBlock/RatingBlock.js +92 -0
- package/dist/components/RatingBlock/RatingBlock.stories.d.ts +12 -0
- package/dist/components/RatingBlock/RatingBlock.stories.d.ts.map +1 -0
- package/dist/components/RatingBlock/index.d.ts +2 -0
- package/dist/components/RatingBlock/index.d.ts.map +1 -0
- package/dist/components/ReorderableTable/ReorderableTable.stories.d.ts.map +1 -1
- package/dist/components/ResponsiveLayoutTable/ResponsiveLayoutTable.js +5 -5
- package/dist/components/SearchFilters/SearchFilters.d.ts +88 -0
- package/dist/components/SearchFilters/SearchFilters.d.ts.map +1 -0
- package/dist/components/SearchFilters/SearchFilters.js +176 -0
- package/dist/components/SearchFilters/SearchFilters.stories.d.ts +12 -0
- package/dist/components/SearchFilters/SearchFilters.stories.d.ts.map +1 -0
- package/dist/components/SearchFilters/index.d.ts +2 -0
- package/dist/components/SearchFilters/index.d.ts.map +1 -0
- package/dist/components/SegmentedControl/SegmentedControl.js +11 -11
- package/dist/components/Tag/Tag.d.ts.map +1 -1
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/TransactionsListView/TransactionsListView.d.ts +152 -0
- package/dist/components/TransactionsListView/TransactionsListView.d.ts.map +1 -0
- package/dist/components/TransactionsListView/TransactionsListView.js +367 -0
- package/dist/components/TransactionsListView/TransactionsListView.stories.d.ts +12 -0
- package/dist/components/TransactionsListView/TransactionsListView.stories.d.ts.map +1 -0
- package/dist/components/TransactionsListView/index.d.ts +2 -0
- package/dist/components/TransactionsListView/index.d.ts.map +1 -0
- package/dist/components/UniversalFooter/UniversalFooter.d.ts +6 -5
- package/dist/components/UniversalFooter/UniversalFooter.d.ts.map +1 -1
- package/dist/components/UniversalFooter/UniversalFooter.js +186 -177
- package/dist/components/UniversalFooter/UniversalFooter.stories.d.ts.map +1 -1
- package/dist/components/VoucherCard/VoucherCard.d.ts +105 -0
- package/dist/components/VoucherCard/VoucherCard.d.ts.map +1 -0
- package/dist/components/VoucherCard/VoucherCard.js +167 -0
- package/dist/components/VoucherCard/VoucherCard.stories.d.ts +9 -0
- package/dist/components/VoucherCard/VoucherCard.stories.d.ts.map +1 -0
- package/dist/components/VoucherCard/index.d.ts +2 -0
- package/dist/components/VoucherCard/index.d.ts.map +1 -0
- package/dist/components/index.d.ts +14 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/index.js +413 -352
- package/dist/muza-ui.css +1 -1
- package/dist/styles/primitives.css +5 -0
- package/dist/styles/token-colors.css +106 -30
- package/dist/styles/token-sizes.css +60 -16
- package/dist/translations/index.d.ts +2 -1
- package/dist/translations/index.d.ts.map +1 -1
- package/dist/translations/locales/cs.d.ts.map +1 -1
- package/dist/translations/locales/cs.js +30 -2
- package/dist/translations/locales/en.d.ts.map +1 -1
- package/dist/translations/locales/en.js +26 -2
- package/dist/translations/locales/sk.d.ts.map +1 -1
- package/dist/translations/locales/sk.js +30 -2
- package/dist/translations/resolvePluralTemplate.d.ts +10 -0
- package/dist/translations/resolvePluralTemplate.d.ts.map +1 -0
- package/dist/translations/resolvePluralTemplate.js +20 -0
- package/dist/translations/types.d.ts +57 -0
- package/dist/translations/types.d.ts.map +1 -1
- package/dist/utils/cn.d.ts.map +1 -1
- package/dist/utils/cn.js +124 -27
- package/dist/utils/disabledLinkProps.d.ts +14 -0
- package/dist/utils/disabledLinkProps.d.ts.map +1 -0
- package/dist/utils/disabledLinkProps.js +9 -0
- package/dist/{components/Calendar/utils → utils}/formatDate.d.ts +1 -1
- package/dist/utils/formatDate.d.ts.map +1 -0
- package/dist/utils/formatDateRange.d.ts.map +1 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/package.json +4 -3
- package/dist/components/Calendar/utils/formatDate.d.ts.map +0 -1
- package/dist/components/Calendar/utils/formatDateRange.d.ts.map +0 -1
- /package/dist/{components/Calendar/utils → utils}/formatDate.js +0 -0
- /package/dist/{components/Calendar/utils → utils}/formatDateRange.d.ts +0 -0
- /package/dist/{components/Calendar/utils → utils}/formatDateRange.js +0 -0
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
import { jsx as a, jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import * as
|
|
4
|
-
import { typographyVariants as
|
|
5
|
-
import { useMuzaTranslations as
|
|
6
|
-
import { cn as
|
|
7
|
-
import { XClose as
|
|
8
|
-
const
|
|
9
|
-
className:
|
|
10
|
-
ariaLabel:
|
|
1
|
+
import { jsx as a, jsxs as n, Fragment as N } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as p, Children as L, isValidElement as w } from "react";
|
|
3
|
+
import * as e from "@radix-ui/react-dialog";
|
|
4
|
+
import { typographyVariants as T } from "../Typography/Typography.js";
|
|
5
|
+
import { useMuzaTranslations as D } from "../../translations/TranslationContext.js";
|
|
6
|
+
import { cn as r } from "../../utils/cn.js";
|
|
7
|
+
import { XClose as z } from "../Icons/CustomIcons.js";
|
|
8
|
+
const X = e.Root, q = e.Title, G = e.Description, k = ({
|
|
9
|
+
className: i,
|
|
10
|
+
ariaLabel: o
|
|
11
11
|
}) => /* @__PURE__ */ a(
|
|
12
|
-
|
|
12
|
+
e.Close,
|
|
13
13
|
{
|
|
14
|
-
className:
|
|
15
|
-
"cursor-pointer
|
|
16
|
-
|
|
14
|
+
className: r(
|
|
15
|
+
"cursor-pointer text-icon-dark-primary-def focus-visible-default transition-opacity disabled:pointer-events-none",
|
|
16
|
+
i
|
|
17
17
|
),
|
|
18
|
-
"aria-label":
|
|
19
|
-
children: /* @__PURE__ */ a(
|
|
18
|
+
"aria-label": o,
|
|
19
|
+
children: /* @__PURE__ */ a(z, { className: "size-icon-medium" })
|
|
20
20
|
}
|
|
21
|
-
),
|
|
21
|
+
), F = p(
|
|
22
22
|
({
|
|
23
|
-
className:
|
|
24
|
-
icon:
|
|
25
|
-
children:
|
|
26
|
-
title:
|
|
27
|
-
hideCloseButton:
|
|
28
|
-
closeAriaLabel:
|
|
29
|
-
...
|
|
30
|
-
},
|
|
31
|
-
const y =
|
|
23
|
+
className: i,
|
|
24
|
+
icon: o,
|
|
25
|
+
children: t,
|
|
26
|
+
title: s,
|
|
27
|
+
hideCloseButton: m = !1,
|
|
28
|
+
closeAriaLabel: g,
|
|
29
|
+
...b
|
|
30
|
+
}, f) => {
|
|
31
|
+
const y = D(), c = g ?? y.dialog.closeAriaLabel;
|
|
32
32
|
return /* @__PURE__ */ a(
|
|
33
33
|
"div",
|
|
34
34
|
{
|
|
35
|
-
ref:
|
|
36
|
-
className:
|
|
35
|
+
ref: f,
|
|
36
|
+
className: r(
|
|
37
37
|
"-mx-comp-dialog-p -mt-comp-dialog-p border-b border-stroke-base-primary px-comp-dialog-p py-comp-dialog-p-hor-def",
|
|
38
|
-
|
|
38
|
+
i
|
|
39
39
|
),
|
|
40
|
-
...
|
|
41
|
-
children: /* @__PURE__ */
|
|
42
|
-
/* @__PURE__ */
|
|
43
|
-
|
|
40
|
+
...b,
|
|
41
|
+
children: /* @__PURE__ */ n("div", { className: "flex items-center gap-comp-dialog-gap", children: [
|
|
42
|
+
/* @__PURE__ */ n("div", { className: "flex min-w-0 flex-1 items-center gap-sm", children: [
|
|
43
|
+
o && /* @__PURE__ */ a("span", { className: "text-icon-brand-def [&>svg]:size-icon-medium", children: o }),
|
|
44
44
|
/* @__PURE__ */ a(
|
|
45
|
-
|
|
45
|
+
e.Title,
|
|
46
46
|
{
|
|
47
|
-
className:
|
|
48
|
-
"
|
|
49
|
-
|
|
47
|
+
className: r(
|
|
48
|
+
"min-w-0 flex-1 text-text-dark-primary-def",
|
|
49
|
+
T({
|
|
50
50
|
variant: "title",
|
|
51
51
|
size: "md",
|
|
52
52
|
weight: "medium",
|
|
53
53
|
fixY: !0
|
|
54
54
|
})
|
|
55
55
|
),
|
|
56
|
-
children:
|
|
56
|
+
children: s ?? t
|
|
57
57
|
}
|
|
58
58
|
)
|
|
59
59
|
] }),
|
|
60
|
-
!
|
|
61
|
-
|
|
60
|
+
!m && /* @__PURE__ */ a(
|
|
61
|
+
k,
|
|
62
62
|
{
|
|
63
63
|
className: "shrink-0",
|
|
64
|
-
ariaLabel:
|
|
64
|
+
ariaLabel: c
|
|
65
65
|
}
|
|
66
66
|
)
|
|
67
67
|
] })
|
|
@@ -69,99 +69,95 @@ const Q = o.Root, U = o.Title, Z = o.Description, A = ({
|
|
|
69
69
|
);
|
|
70
70
|
}
|
|
71
71
|
);
|
|
72
|
-
|
|
73
|
-
const
|
|
74
|
-
({ className:
|
|
72
|
+
F.displayName = "DialogHeader";
|
|
73
|
+
const H = p(
|
|
74
|
+
({ className: i, children: o, ...t }, s) => /* @__PURE__ */ a(
|
|
75
75
|
"div",
|
|
76
76
|
{
|
|
77
|
-
ref:
|
|
78
|
-
className:
|
|
79
|
-
"-mx-comp-dialog-p -mb-comp-dialog-p flex items-center justify-end gap-sm px-comp-dialog-p py-comp-dialog-p-hor-sm",
|
|
80
|
-
|
|
81
|
-
l
|
|
77
|
+
ref: s,
|
|
78
|
+
className: r(
|
|
79
|
+
"-mx-comp-dialog-p -mb-comp-dialog-p flex items-center justify-end gap-sm border-t border-stroke-base-primary px-comp-dialog-p py-comp-dialog-p-hor-sm",
|
|
80
|
+
i
|
|
82
81
|
),
|
|
83
|
-
...
|
|
84
|
-
children:
|
|
82
|
+
...t,
|
|
83
|
+
children: o
|
|
85
84
|
}
|
|
86
85
|
)
|
|
87
86
|
);
|
|
88
|
-
|
|
89
|
-
const
|
|
90
|
-
|
|
87
|
+
H.displayName = "DialogFooter";
|
|
88
|
+
const I = e.Trigger, j = e.Portal, J = e.Close, C = p(({ className: i, ...o }, t) => /* @__PURE__ */ a(
|
|
89
|
+
e.Overlay,
|
|
91
90
|
{
|
|
92
|
-
ref:
|
|
93
|
-
className:
|
|
94
|
-
"
|
|
95
|
-
|
|
91
|
+
ref: t,
|
|
92
|
+
className: r(
|
|
93
|
+
"fixed inset-0 z-50 grid place-items-center overflow-y-auto bg-surface-base-overlay px-layout-p-standard py-comp-dialog-p-hor-overlay data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",
|
|
94
|
+
i
|
|
96
95
|
),
|
|
97
|
-
...
|
|
96
|
+
...o
|
|
98
97
|
}
|
|
99
98
|
));
|
|
100
|
-
|
|
101
|
-
const
|
|
99
|
+
C.displayName = e.Overlay.displayName;
|
|
100
|
+
const O = p(
|
|
102
101
|
({
|
|
103
|
-
className:
|
|
104
|
-
children:
|
|
105
|
-
size:
|
|
106
|
-
closeAriaLabel:
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
102
|
+
className: i,
|
|
103
|
+
children: o,
|
|
104
|
+
size: t = "medium",
|
|
105
|
+
closeAriaLabel: s,
|
|
106
|
+
smallerContentYpadding: m = !1,
|
|
107
|
+
...g
|
|
108
|
+
}, b) => {
|
|
109
|
+
const f = D(), y = s ?? f.dialog.closeAriaLabel, c = L.toArray(o), u = c.find(
|
|
110
|
+
(l) => {
|
|
111
|
+
var d;
|
|
112
|
+
return w(l) && ((d = l.type) == null ? void 0 : d.displayName) === "DialogHeader";
|
|
113
113
|
}
|
|
114
|
-
),
|
|
115
|
-
(
|
|
116
|
-
var
|
|
117
|
-
return
|
|
114
|
+
), h = c.find(
|
|
115
|
+
(l) => {
|
|
116
|
+
var d;
|
|
117
|
+
return w(l) && ((d = l.type) == null ? void 0 : d.displayName) === "DialogFooter";
|
|
118
118
|
}
|
|
119
|
-
),
|
|
120
|
-
(
|
|
121
|
-
),
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
const F = e.scrollHeight > e.clientHeight;
|
|
125
|
-
x(F);
|
|
126
|
-
};
|
|
127
|
-
r(), setTimeout(r, 100), setTimeout(r, 250), setTimeout(r, 500);
|
|
128
|
-
const D = new ResizeObserver(r);
|
|
129
|
-
D.observe(e), e.firstElementChild && D.observe(e.firstElementChild), d.current = D;
|
|
130
|
-
}, []), R = p && C(m) ? B(m, { _showBorder: y }) : m;
|
|
131
|
-
return /* @__PURE__ */ a(W, { children: /* @__PURE__ */ a(L, { children: /* @__PURE__ */ a(
|
|
132
|
-
o.Content,
|
|
119
|
+
), A = c.filter(
|
|
120
|
+
(l) => l !== u && l !== h
|
|
121
|
+
), x = !!u, v = !!h;
|
|
122
|
+
return /* @__PURE__ */ a(j, { children: /* @__PURE__ */ a(C, { children: /* @__PURE__ */ a(
|
|
123
|
+
e.Content,
|
|
133
124
|
{
|
|
134
|
-
ref:
|
|
135
|
-
className:
|
|
136
|
-
"relative flex w-full flex-col rounded-
|
|
125
|
+
ref: b,
|
|
126
|
+
className: r(
|
|
127
|
+
"relative flex w-full flex-col rounded-comp-dialog-radius bg-surface-base-secondary px-comp-dialog-p duration-200 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
137
128
|
{
|
|
138
|
-
"max-w-comp-dialog-w-sm":
|
|
139
|
-
"max-w-comp-dialog-w-md":
|
|
140
|
-
"max-w-comp-dialog-w-lg":
|
|
141
|
-
"
|
|
142
|
-
"max-h-[calc(100vh-var(--spacing-comp-dialog-p-hor-overlay)*2)]": p || N
|
|
129
|
+
"max-w-comp-dialog-w-sm": t === "small",
|
|
130
|
+
"max-w-comp-dialog-w-md": t === "medium",
|
|
131
|
+
"max-w-comp-dialog-w-lg": t === "large",
|
|
132
|
+
"max-h-[calc(100vh-var(--spacing-comp-dialog-p-hor-overlay)*2)]": v || x
|
|
143
133
|
},
|
|
144
|
-
|
|
134
|
+
// Header/footer bleed to the edges via negative margins that cancel
|
|
135
|
+
// the root vertical padding, so it stays standard when either is
|
|
136
|
+
// present. A bare content dialog is padded directly by the root.
|
|
137
|
+
x || v ? "py-comp-dialog-p" : m ? "py-comp-dialog-p-hor-sm" : "pt-5xl pb-comp-dialog-p",
|
|
138
|
+
i
|
|
145
139
|
),
|
|
146
|
-
...
|
|
147
|
-
children:
|
|
148
|
-
|
|
140
|
+
...g,
|
|
141
|
+
children: x || v ? /* @__PURE__ */ n(N, { children: [
|
|
142
|
+
u,
|
|
149
143
|
/* @__PURE__ */ a(
|
|
150
144
|
"div",
|
|
151
145
|
{
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
146
|
+
className: r(
|
|
147
|
+
"-mr-[calc(var(--spacing-comp-dialog-p)-8px)] min-h-0 flex-1 overflow-y-auto pr-[calc(var(--spacing-comp-dialog-p)-8px-5px)] [&::-webkit-scrollbar]:w-[5px] [&::-webkit-scrollbar]:bg-transparent [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-stroke-base-secondary hover:[&::-webkit-scrollbar-thumb]:bg-stroke-base-primary [&::-webkit-scrollbar-track]:bg-transparent",
|
|
148
|
+
m ? "py-comp-dialog-p-hor-sm" : "py-comp-dialog-p"
|
|
149
|
+
),
|
|
150
|
+
children: /* @__PURE__ */ a("div", { children: A })
|
|
155
151
|
}
|
|
156
152
|
),
|
|
157
|
-
|
|
158
|
-
] }) : /* @__PURE__ */
|
|
159
|
-
|
|
153
|
+
h
|
|
154
|
+
] }) : /* @__PURE__ */ n(N, { children: [
|
|
155
|
+
o,
|
|
160
156
|
/* @__PURE__ */ a(
|
|
161
|
-
|
|
157
|
+
k,
|
|
162
158
|
{
|
|
163
159
|
className: "absolute top-4 right-4",
|
|
164
|
-
ariaLabel:
|
|
160
|
+
ariaLabel: y
|
|
165
161
|
}
|
|
166
162
|
)
|
|
167
163
|
] })
|
|
@@ -169,16 +165,16 @@ const X = b(
|
|
|
169
165
|
) }) });
|
|
170
166
|
}
|
|
171
167
|
);
|
|
172
|
-
|
|
168
|
+
O.displayName = e.Content.displayName;
|
|
173
169
|
export {
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
170
|
+
X as Dialog,
|
|
171
|
+
J as DialogClose,
|
|
172
|
+
O as DialogContent,
|
|
173
|
+
G as DialogDescription,
|
|
174
|
+
H as DialogFooter,
|
|
175
|
+
F as DialogHeader,
|
|
176
|
+
C as DialogOverlay,
|
|
177
|
+
j as DialogPortal,
|
|
178
|
+
q as DialogTitle,
|
|
179
|
+
I as DialogTrigger
|
|
184
180
|
};
|
|
@@ -15,5 +15,6 @@ export declare const Medium: Story;
|
|
|
15
15
|
export declare const Large: Story;
|
|
16
16
|
export declare const OverflowContent: Story;
|
|
17
17
|
export declare const WithHeaderAndFooter: Story;
|
|
18
|
+
export declare const SmallerContentYPadding: Story;
|
|
18
19
|
export declare const WithHeaderAndFooterLongContent: Story;
|
|
19
20
|
//# sourceMappingURL=Dialog.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Dialog/Dialog.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAI3D,OAAO,EACL,MAAM,EAOP,MAAM,UAAU,CAAA;AAEjB,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CAiD7B,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,eAAe,CAAC,CAAA;AAEtC,KAAK,eAAe,GAAG;IACrB,IAAI,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;IAClC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,cAAc,CAAC,EAAE,MAAM,CA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K5C,CAAA"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const dotDividerVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "invert" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
+
/** Props for the DotDivider component. */
|
|
7
|
+
export interface DotDividerProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof dotDividerVariants> {
|
|
8
|
+
/**
|
|
9
|
+
* Visual variant of the dot.
|
|
10
|
+
*
|
|
11
|
+
* - `default` — dark dot for use on light surfaces.
|
|
12
|
+
* - `invert` — light dot for use on dark surfaces.
|
|
13
|
+
*
|
|
14
|
+
* @default 'default'
|
|
15
|
+
*/
|
|
16
|
+
variant?: 'default' | 'invert';
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* A small decorative dot used as an inline separator between metadata pieces
|
|
20
|
+
* (e.g. `Author • Date • Category`).
|
|
21
|
+
*
|
|
22
|
+
* The dot is purely visual and is hidden from assistive technologies via
|
|
23
|
+
* `aria-hidden`. Use a comma or other punctuation in the underlying text if
|
|
24
|
+
* the separation needs to be conveyed semantically.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* <span className="inline-flex items-center gap-2">
|
|
28
|
+
* <span>Author</span>
|
|
29
|
+
* <DotDivider />
|
|
30
|
+
* <span>Date</span>
|
|
31
|
+
* </span>
|
|
32
|
+
*/
|
|
33
|
+
declare const DotDivider: React.ForwardRefExoticComponent<DotDividerProps & React.RefAttributes<HTMLSpanElement>>;
|
|
34
|
+
export { DotDivider, dotDividerVariants };
|
|
35
|
+
//# sourceMappingURL=DotDivider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DotDivider.d.ts","sourceRoot":"","sources":["../../../src/components/DotDivider/DotDivider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,KAAK,YAAY,EAAO,MAAM,0BAA0B,CAAA;AAGjE,QAAA,MAAM,kBAAkB;;8EAWvB,CAAA;AAED,0CAA0C;AAC1C,MAAM,WAAW,eACf,SAAQ,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,EAC3C,YAAY,CAAC,OAAO,kBAAkB,CAAC;IACzC;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAA;CAC/B;AAED;;;;;;;;;;;;;;GAcG;AACH,QAAA,MAAM,UAAU,yFASf,CAAA;AAGD,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,CAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import * as e from "react";
|
|
3
|
+
import { cva as o } from "class-variance-authority";
|
|
4
|
+
import { cn as n } from "../../utils/cn.js";
|
|
5
|
+
const m = o(
|
|
6
|
+
"inline-block size-comp-dot-divider-default shrink-0 rounded-full",
|
|
7
|
+
{
|
|
8
|
+
variants: {
|
|
9
|
+
variant: {
|
|
10
|
+
default: "bg-comp-dot-divider-def",
|
|
11
|
+
invert: "bg-comp-dot-divider-invert"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
defaultVariants: { variant: "default" }
|
|
15
|
+
}
|
|
16
|
+
), s = e.forwardRef(
|
|
17
|
+
({ className: i, variant: r, ...t }, a) => /* @__PURE__ */ d(
|
|
18
|
+
"span",
|
|
19
|
+
{
|
|
20
|
+
ref: a,
|
|
21
|
+
"aria-hidden": "true",
|
|
22
|
+
className: n(m({ variant: r, className: i })),
|
|
23
|
+
...t
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
);
|
|
27
|
+
s.displayName = "DotDivider";
|
|
28
|
+
export {
|
|
29
|
+
s as DotDivider,
|
|
30
|
+
m as dotDividerVariants
|
|
31
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { DotDivider } from './DotDivider';
|
|
3
|
+
declare const meta: Meta<typeof DotDivider>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof DotDivider>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Invert: Story;
|
|
8
|
+
export declare const AllVariants: Story;
|
|
9
|
+
export declare const InContext: Story;
|
|
10
|
+
//# sourceMappingURL=DotDivider.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DotDivider.stories.d.ts","sourceRoot":"","sources":["../../../src/components/DotDivider/DotDivider.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAE3D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,UAAU,CAgCjC,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAA;AAExC,eAAO,MAAM,OAAO,EAAE,KAUrB,CAAA;AAED,eAAO,MAAM,MAAM,EAAE,KAsBpB,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,KAmCzB,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KAmBvB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/DotDivider/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DropdownMenu.d.ts","sourceRoot":"","sources":["../../../src/components/DropdownMenu/DropdownMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,qBAAqB,MAAM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as b, Fragment as
|
|
1
|
+
import { jsx as e, jsxs as b, Fragment as N } from "react/jsx-runtime";
|
|
2
2
|
import * as m from "react";
|
|
3
3
|
import * as a from "@radix-ui/react-dropdown-menu";
|
|
4
|
-
import { cva as
|
|
4
|
+
import { cva as y } from "class-variance-authority";
|
|
5
5
|
import { Button as I } from "../Button/Button.js";
|
|
6
6
|
import { cn as s } from "../../utils/cn.js";
|
|
7
7
|
import { UnreadOutline as x } from "@solar-icons/react-perf";
|
|
@@ -55,9 +55,9 @@ const g = m.createContext(null), M = () => m.useContext(g), B = ({ ...o }) => /*
|
|
|
55
55
|
)
|
|
56
56
|
}
|
|
57
57
|
) });
|
|
58
|
-
}, w =
|
|
58
|
+
}, w = y(
|
|
59
59
|
[
|
|
60
|
-
"
|
|
60
|
+
"flex cursor-pointer items-center gap-sm rounded-md pt-md pr-lg pb-md pl-lg text-comp-dropdown-menu-text-base-def outline-0 transition-colors",
|
|
61
61
|
"hover:bg-comp-dropdown-menu-fill-base-hover hover:text-comp-dropdown-menu-text-base-hover",
|
|
62
62
|
"focus-within:bg-comp-dropdown-menu-fill-base-focused"
|
|
63
63
|
],
|
|
@@ -83,7 +83,7 @@ const g = m.createContext(null), M = () => m.useContext(g), B = ({ ...o }) => /*
|
|
|
83
83
|
), h = ({
|
|
84
84
|
children: o,
|
|
85
85
|
description: t
|
|
86
|
-
}) => typeof o == "function" ? /* @__PURE__ */ e(
|
|
86
|
+
}) => typeof o == "function" ? /* @__PURE__ */ e(N, { children: o }) : t ? /* @__PURE__ */ b(D, { flex: 1, direction: "column", className: "min-w-0", children: [
|
|
87
87
|
/* @__PURE__ */ e(
|
|
88
88
|
f,
|
|
89
89
|
{
|
|
@@ -135,8 +135,8 @@ const g = m.createContext(null), M = () => m.useContext(g), B = ({ ...o }) => /*
|
|
|
135
135
|
"span",
|
|
136
136
|
{
|
|
137
137
|
className: s("block [&>svg]:block [&>svg]:size-icon-small", {
|
|
138
|
-
"text-comp-dropdown-menu-
|
|
139
|
-
"
|
|
138
|
+
"text-comp-dropdown-menu-icon-error-def": t === "destructive",
|
|
139
|
+
"text-icon-dark-secondary-def group-hover:text-icon-brand-def group-focus-visible:text-comp-dropdown-menu-icon-base-focused": t !== "destructive",
|
|
140
140
|
"text-comp-dropdown-menu-icon-base-active": i
|
|
141
141
|
}),
|
|
142
142
|
children: r
|
|
@@ -199,14 +199,14 @@ const g = m.createContext(null), M = () => m.useContext(g), B = ({ ...o }) => /*
|
|
|
199
199
|
"span",
|
|
200
200
|
{
|
|
201
201
|
className: s({
|
|
202
|
-
"text-comp-dropdown-menu-
|
|
203
|
-
"
|
|
202
|
+
"text-comp-dropdown-menu-icon-error-def": r === "destructive",
|
|
203
|
+
"text-icon-dark-secondary-def group-hover:text-icon-brand-def group-focus-visible:text-comp-dropdown-menu-icon-base-focused": r !== "destructive"
|
|
204
204
|
}),
|
|
205
205
|
children: c
|
|
206
206
|
}
|
|
207
207
|
),
|
|
208
208
|
/* @__PURE__ */ e(h, { description: i, children: t }),
|
|
209
|
-
/* @__PURE__ */ e("span", { className: "text-
|
|
209
|
+
/* @__PURE__ */ e("span", { className: "text-icon-brand-def", children: /* @__PURE__ */ e(a.ItemIndicator, { children: /* @__PURE__ */ e(x, { className: "size-icon-small" }) }) })
|
|
210
210
|
]
|
|
211
211
|
}
|
|
212
212
|
), L = ({
|
|
@@ -244,15 +244,15 @@ const g = m.createContext(null), M = () => m.useContext(g), B = ({ ...o }) => /*
|
|
|
244
244
|
"span",
|
|
245
245
|
{
|
|
246
246
|
className: s({
|
|
247
|
-
"text-comp-dropdown-menu-
|
|
248
|
-
"
|
|
247
|
+
"text-comp-dropdown-menu-icon-error-def": n === "destructive",
|
|
248
|
+
"text-icon-dark-secondary-def group-hover:text-icon-brand-def group-focus-visible:text-comp-dropdown-menu-icon-base-focused": n !== "destructive",
|
|
249
249
|
"text-comp-dropdown-menu-text-base-disabled": d.disabled
|
|
250
250
|
}),
|
|
251
251
|
children: r
|
|
252
252
|
}
|
|
253
253
|
),
|
|
254
254
|
/* @__PURE__ */ e(h, { description: c, children: t }),
|
|
255
|
-
/* @__PURE__ */ e("span", { className: "text-
|
|
255
|
+
/* @__PURE__ */ e("span", { className: "text-icon-brand-def", children: /* @__PURE__ */ e(a.ItemIndicator, { children: /* @__PURE__ */ e(x, { className: "size-icon-small" }) }) })
|
|
256
256
|
]
|
|
257
257
|
}
|
|
258
258
|
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EdgeButton.d.ts","sourceRoot":"","sources":["../../../src/components/EdgeButton/EdgeButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,QAAA,MAAM,kBAAkB;;
|
|
1
|
+
{"version":3,"file":"EdgeButton.d.ts","sourceRoot":"","sources":["../../../src/components/EdgeButton/EdgeButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,QAAA,MAAM,kBAAkB;;8EAuBvB,CAAA;AAED;;;;GAIG;AACH,MAAM,WAAW,eACf,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;IACrD,oGAAoG;IACpG,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,wEAAwE;IACxE,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;;;;;;;;;;;;OAaG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,+EAA+E;IAC/E,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CACvB;AAED,QAAA,MAAM,UAAU,2FAmFf,CAAA;AAID,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,CAAA"}
|
|
@@ -2,7 +2,7 @@ import { jsx as e, jsxs as i, Fragment as a } from "react/jsx-runtime";
|
|
|
2
2
|
import s from "react";
|
|
3
3
|
import { Slot as h, Slottable as l } from "@radix-ui/react-slot";
|
|
4
4
|
import { cva as x } from "class-variance-authority";
|
|
5
|
-
import { sharedButtonVariants as
|
|
5
|
+
import { sharedButtonVariants as u } from "../Button/buttonVariants.js";
|
|
6
6
|
import { cn as y } from "../../utils/cn.js";
|
|
7
7
|
import { Typography as j } from "../Typography/Typography.js";
|
|
8
8
|
const _ = x(
|
|
@@ -13,15 +13,14 @@ const _ = x(
|
|
|
13
13
|
"&>svg]:duration-250 transition-colors duration-250 [&>svg]:transition-opacity",
|
|
14
14
|
"[&>svg]:size-icon-medium",
|
|
15
15
|
"disabled:pointer-events-none",
|
|
16
|
-
...
|
|
16
|
+
...u.primary
|
|
17
17
|
],
|
|
18
18
|
{
|
|
19
19
|
variants: {
|
|
20
20
|
disabled: {
|
|
21
21
|
true: [
|
|
22
|
-
// 'bg-comp-button-fill-primary-disabled text-comp-button-text-text-disabled',
|
|
23
22
|
"pointer-events-none",
|
|
24
|
-
"[&>svg]:text-comp-button-
|
|
23
|
+
"[&>svg]:text-comp-button-primary-text-disabled"
|
|
25
24
|
]
|
|
26
25
|
}
|
|
27
26
|
},
|
|
@@ -31,7 +30,7 @@ const _ = x(
|
|
|
31
30
|
}
|
|
32
31
|
), B = s.forwardRef(
|
|
33
32
|
({
|
|
34
|
-
onClick:
|
|
33
|
+
onClick: d,
|
|
35
34
|
disabled: p,
|
|
36
35
|
text: m,
|
|
37
36
|
className: c,
|
|
@@ -39,8 +38,8 @@ const _ = x(
|
|
|
39
38
|
icon: o,
|
|
40
39
|
children: t,
|
|
41
40
|
...f
|
|
42
|
-
},
|
|
43
|
-
const
|
|
41
|
+
}, g) => {
|
|
42
|
+
const b = n ? h : "button", r = m ? /* @__PURE__ */ e(
|
|
44
43
|
j,
|
|
45
44
|
{
|
|
46
45
|
component: "span",
|
|
@@ -68,10 +67,10 @@ const _ = x(
|
|
|
68
67
|
t
|
|
69
68
|
] });
|
|
70
69
|
return /* @__PURE__ */ e(
|
|
71
|
-
|
|
70
|
+
b,
|
|
72
71
|
{
|
|
73
|
-
ref:
|
|
74
|
-
onClick: p ? void 0 :
|
|
72
|
+
ref: g,
|
|
73
|
+
onClick: p ? void 0 : d,
|
|
75
74
|
...n ? {} : { type: "button", disabled: p },
|
|
76
75
|
className: y(
|
|
77
76
|
"inline-flex items-center justify-center",
|
|
@@ -80,7 +79,7 @@ const _ = x(
|
|
|
80
79
|
"cursor-pointer disabled:pointer-events-none",
|
|
81
80
|
"&>svg]:duration-250 transition-colors duration-250 [&>svg]:transition-opacity",
|
|
82
81
|
"[&>svg]:size-icon-medium",
|
|
83
|
-
...
|
|
82
|
+
...u.primary,
|
|
84
83
|
c
|
|
85
84
|
),
|
|
86
85
|
...f,
|