@e-infra/design-system 0.0.8 → 0.0.9
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/index.cjs.js +63 -63
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +63 -63
- package/dist/index.es.js.map +1 -1
- package/dist/types/components/compounds/{FeedbackForm.d.ts → feedbackform.d.ts} +1 -1
- package/dist/types/components/compounds/{FeedbackForm.d.ts.map → feedbackform.d.ts.map} +1 -1
- package/dist/types/components/compounds/index.d.ts +3 -0
- package/dist/types/components/compounds/index.d.ts.map +1 -0
- package/dist/types/components/index.d.ts +1 -2
- package/dist/types/components/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -3917,6 +3917,69 @@ const Footer = ({
|
|
|
3917
3917
|
] })
|
|
3918
3918
|
] });
|
|
3919
3919
|
};
|
|
3920
|
+
const defaultMessage = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
3921
|
+
/* @__PURE__ */ jsxRuntime.jsx("strong", { children: "We use cookies" }),
|
|
3922
|
+
" to improve your experience and analyze site usage. You can choose which cookies to accept.",
|
|
3923
|
+
" "
|
|
3924
|
+
] });
|
|
3925
|
+
const defaultLearnMoreLink = /* @__PURE__ */ jsxRuntime.jsx(
|
|
3926
|
+
"a",
|
|
3927
|
+
{
|
|
3928
|
+
href: "/cookies",
|
|
3929
|
+
className: "text-primary hover:text-primary-600 underline font-medium transition-colors duration-200",
|
|
3930
|
+
children: "Learn more"
|
|
3931
|
+
}
|
|
3932
|
+
);
|
|
3933
|
+
function CookiesBanner({
|
|
3934
|
+
className,
|
|
3935
|
+
message = defaultMessage,
|
|
3936
|
+
learnMoreLink = defaultLearnMoreLink,
|
|
3937
|
+
onReject,
|
|
3938
|
+
onFunctional,
|
|
3939
|
+
onAccept,
|
|
3940
|
+
...props
|
|
3941
|
+
}) {
|
|
3942
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3943
|
+
"div",
|
|
3944
|
+
{
|
|
3945
|
+
"data-slot": "cookies-banner",
|
|
3946
|
+
className: cn(
|
|
3947
|
+
"fixed bottom-0 left-0 right-0 bg-card border-t border-border shadow-lg z-50",
|
|
3948
|
+
className
|
|
3949
|
+
),
|
|
3950
|
+
...props,
|
|
3951
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "container mx-auto px-4 py-4", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4", children: [
|
|
3952
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-1", children: /* @__PURE__ */ jsxRuntime.jsxs(Small, { className: "text-foreground", children: [
|
|
3953
|
+
message,
|
|
3954
|
+
learnMoreLink
|
|
3955
|
+
] }) }),
|
|
3956
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-row gap-2 shrink-0", children: [
|
|
3957
|
+
/* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "ghost", size: "sm", type: "button", onClick: onReject, children: "Reject" }),
|
|
3958
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3959
|
+
Button,
|
|
3960
|
+
{
|
|
3961
|
+
variant: "ghost",
|
|
3962
|
+
size: "sm",
|
|
3963
|
+
type: "button",
|
|
3964
|
+
onClick: onFunctional,
|
|
3965
|
+
children: "Only Functional"
|
|
3966
|
+
}
|
|
3967
|
+
),
|
|
3968
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3969
|
+
Button,
|
|
3970
|
+
{
|
|
3971
|
+
variant: "default",
|
|
3972
|
+
size: "sm",
|
|
3973
|
+
type: "button",
|
|
3974
|
+
onClick: onAccept,
|
|
3975
|
+
children: "Accept All"
|
|
3976
|
+
}
|
|
3977
|
+
)
|
|
3978
|
+
] })
|
|
3979
|
+
] }) })
|
|
3980
|
+
}
|
|
3981
|
+
);
|
|
3982
|
+
}
|
|
3920
3983
|
function FeedbackButton({
|
|
3921
3984
|
onClick,
|
|
3922
3985
|
position = "bottom-right"
|
|
@@ -4179,69 +4242,6 @@ function FeedbackForm({
|
|
|
4179
4242
|
)
|
|
4180
4243
|
] });
|
|
4181
4244
|
}
|
|
4182
|
-
const defaultMessage = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
4183
|
-
/* @__PURE__ */ jsxRuntime.jsx("strong", { children: "We use cookies" }),
|
|
4184
|
-
" to improve your experience and analyze site usage. You can choose which cookies to accept.",
|
|
4185
|
-
" "
|
|
4186
|
-
] });
|
|
4187
|
-
const defaultLearnMoreLink = /* @__PURE__ */ jsxRuntime.jsx(
|
|
4188
|
-
"a",
|
|
4189
|
-
{
|
|
4190
|
-
href: "/cookies",
|
|
4191
|
-
className: "text-primary hover:text-primary-600 underline font-medium transition-colors duration-200",
|
|
4192
|
-
children: "Learn more"
|
|
4193
|
-
}
|
|
4194
|
-
);
|
|
4195
|
-
function CookiesBanner({
|
|
4196
|
-
className,
|
|
4197
|
-
message = defaultMessage,
|
|
4198
|
-
learnMoreLink = defaultLearnMoreLink,
|
|
4199
|
-
onReject,
|
|
4200
|
-
onFunctional,
|
|
4201
|
-
onAccept,
|
|
4202
|
-
...props
|
|
4203
|
-
}) {
|
|
4204
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4205
|
-
"div",
|
|
4206
|
-
{
|
|
4207
|
-
"data-slot": "cookies-banner",
|
|
4208
|
-
className: cn(
|
|
4209
|
-
"fixed bottom-0 left-0 right-0 bg-card border-t border-border shadow-lg z-50",
|
|
4210
|
-
className
|
|
4211
|
-
),
|
|
4212
|
-
...props,
|
|
4213
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "container mx-auto px-4 py-4", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4", children: [
|
|
4214
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-1", children: /* @__PURE__ */ jsxRuntime.jsxs(Small, { className: "text-foreground", children: [
|
|
4215
|
-
message,
|
|
4216
|
-
learnMoreLink
|
|
4217
|
-
] }) }),
|
|
4218
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-row gap-2 shrink-0", children: [
|
|
4219
|
-
/* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "ghost", size: "sm", type: "button", onClick: onReject, children: "Reject" }),
|
|
4220
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4221
|
-
Button,
|
|
4222
|
-
{
|
|
4223
|
-
variant: "ghost",
|
|
4224
|
-
size: "sm",
|
|
4225
|
-
type: "button",
|
|
4226
|
-
onClick: onFunctional,
|
|
4227
|
-
children: "Only Functional"
|
|
4228
|
-
}
|
|
4229
|
-
),
|
|
4230
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4231
|
-
Button,
|
|
4232
|
-
{
|
|
4233
|
-
variant: "default",
|
|
4234
|
-
size: "sm",
|
|
4235
|
-
type: "button",
|
|
4236
|
-
onClick: onAccept,
|
|
4237
|
-
children: "Accept All"
|
|
4238
|
-
}
|
|
4239
|
-
)
|
|
4240
|
-
] })
|
|
4241
|
-
] }) })
|
|
4242
|
-
}
|
|
4243
|
-
);
|
|
4244
|
-
}
|
|
4245
4245
|
exports.Accordion = Accordion;
|
|
4246
4246
|
exports.AccordionContent = AccordionContent;
|
|
4247
4247
|
exports.AccordionItem = AccordionItem;
|