@studiolxd/brand 38.17.0 → 40.0.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/CHANGELOG.md +141 -0
- package/dist/_shared/brandmessagescontext.js +15 -0
- package/dist/_shared/calendargrid.js +42 -42
- package/dist/_shared/datepicker.js +41 -41
- package/dist/_shared/imagecropdialog.js +54 -54
- package/dist/_shared/tokens.js +4 -0
- package/dist/_types/atoms/StarRating/StarRating.d.ts +87 -30
- package/dist/_types/messages/BrandMessages.d.ts +26 -0
- package/dist/_types/messages/BrandMessagesContext.d.ts +21 -0
- package/dist/_types/messages/BrandMessagesProvider.d.ts +46 -0
- package/dist/_types/messages/index.d.ts +5 -0
- package/dist/_types/molecules/Card/Card.d.ts +12 -1
- package/dist/_types/molecules/ConfirmDialog/ConfirmDialog.d.ts +42 -2
- package/dist/_types/molecules/Pagination/Pagination.d.ts +40 -23
- package/dist/_types/organisms/DataTable/DataTable.d.ts +3 -2
- package/dist/accordion.js +26 -26
- package/dist/alert.js +26 -26
- package/dist/annotation-thread.js +1 -1
- package/dist/app-header.js +8 -8
- package/dist/app-launcher.js +34 -34
- package/dist/app-shell.js +14 -14
- package/dist/assistant-message.js +8 -8
- package/dist/async-multi-select-field.js +9 -9
- package/dist/async-multi-select.js +40 -40
- package/dist/async-select-field.js +9 -9
- package/dist/async-select.js +64 -64
- package/dist/avatar-upload.js +40 -40
- package/dist/avatar.js +5 -5
- package/dist/banner.js +9 -9
- package/dist/brand.css +11 -2
- package/dist/button.js +7 -7
- package/dist/calendar-planner.js +16 -16
- package/dist/calendar.js +38 -38
- package/dist/card.js +28 -29
- package/dist/carousel.js +19 -19
- package/dist/chart.js +137 -137
- package/dist/chat-shell.js +23 -23
- package/dist/checkbox-field.js +11 -11
- package/dist/checkbox.js +7 -7
- package/dist/close-button.js +6 -6
- package/dist/code-block.js +15 -15
- package/dist/code.js +5 -5
- package/dist/collapsible.js +1 -1
- package/dist/columns.js +7 -7
- package/dist/command-palette.js +14 -14
- package/dist/confirm-dialog.css +1 -1
- package/dist/confirm-dialog.js +65 -42
- package/dist/connector-auth-shell.js +9 -9
- package/dist/consent.js +23 -23
- package/dist/container.js +6 -6
- package/dist/conversation-list.js +19 -19
- package/dist/conversation-thread.js +15 -15
- package/dist/copy-button.js +9 -9
- package/dist/copyable-value.js +17 -17
- package/dist/data-table.js +29 -29
- package/dist/date-picker-field.js +9 -9
- package/dist/date-time-field.js +12 -12
- package/dist/description-list.js +12 -12
- package/dist/docs-search.js +1 -1
- package/dist/dots-button.js +7 -7
- package/dist/dropdown-field.js +13 -13
- package/dist/email.js +44 -44
- package/dist/error-text.js +4 -4
- package/dist/field-row.js +20 -20
- package/dist/figure.js +8 -8
- package/dist/file-upload-field.js +9 -9
- package/dist/file-upload.js +29 -29
- package/dist/filter-bar.js +10 -10
- package/dist/floating-dock.js +17 -17
- package/dist/form-field.js +43 -43
- package/dist/form.js +14 -14
- package/dist/heading.js +5 -5
- package/dist/input-field.js +20 -20
- package/dist/input-phone-field.js +9 -9
- package/dist/input-phone.js +19 -19
- package/dist/input.js +5 -5
- package/dist/kbd.js +5 -5
- package/dist/label.js +5 -5
- package/dist/link.js +7 -7
- package/dist/list.js +7 -7
- package/dist/menu-button.js +7 -7
- package/dist/message-bubble.js +5 -5
- package/dist/message-composer.js +13 -13
- package/dist/messages.js +12 -0
- package/dist/multi-select-field.js +9 -9
- package/dist/multi-select.js +52 -52
- package/dist/notification-button.js +8 -8
- package/dist/notification-panel.js +25 -25
- package/dist/number-input-field.js +9 -9
- package/dist/number-input.js +11 -11
- package/dist/otp-field.js +9 -9
- package/dist/otp-input.js +48 -48
- package/dist/pagination.js +92 -89
- package/dist/paragraph.js +5 -5
- package/dist/password-field.js +15 -15
- package/dist/prose.js +4 -4
- package/dist/public-page-shell.js +11 -11
- package/dist/radio-field.js +11 -11
- package/dist/radio-group.js +5 -5
- package/dist/radio.js +5 -5
- package/dist/scroll-area.js +11 -11
- package/dist/search-form.js +8 -8
- package/dist/select-field.js +9 -9
- package/dist/select.js +85 -85
- package/dist/separator.js +6 -6
- package/dist/sidebar.js +16 -16
- package/dist/site-header.js +14 -14
- package/dist/site-shell.js +6 -6
- package/dist/sparkline.js +9 -9
- package/dist/star-rating.css +1 -1
- package/dist/star-rating.js +55 -41
- package/dist/stat-tile.js +12 -12
- package/dist/steps.js +32 -32
- package/dist/switcher-field.js +13 -13
- package/dist/switcher.js +8 -8
- package/dist/table-of-contents.js +14 -14
- package/dist/tag.js +5 -5
- package/dist/text.js +7 -7
- package/dist/textarea-field.js +11 -11
- package/dist/textarea.js +5 -5
- package/dist/time-field.js +9 -9
- package/dist/time-select.js +17 -17
- package/dist/toaster.js +16 -16
- package/dist/toggle-group.js +7 -7
- package/dist/toggle.js +5 -5
- package/dist/tokens.css +11 -2
- package/dist/tooltip.js +16 -16
- package/dist/tree-view.js +41 -41
- package/dist/uptime-bars.js +34 -34
- package/dist/user-message.js +8 -8
- package/dist/visually-hidden.js +5 -5
- package/package.json +5 -1
- package/src/tokens/components/description-list.css +1 -1
- package/src/tokens/components/star-rating.css +5 -0
- package/src/tokens/molecules/confirm-dialog.css +1 -0
- package/src/tokens/scss/components/_description-list.scss +1 -1
- package/src/tokens/scss/components/_star-rating.scss +3 -0
- package/src/tokens/scss/molecules/_confirm-dialog.scss +1 -0
- package/src/tokens/surface-invert.css +2 -0
- package/src/tokens/surface-public.css +1 -0
- package/src/tokens/tokens.json +4 -0
package/dist/date-time-field.js
CHANGED
|
@@ -6,8 +6,8 @@ import { Label as n } from "./label.js";
|
|
|
6
6
|
import { TimeSelect as r } from "./time-select.js";
|
|
7
7
|
import { n as i } from "./_shared/field-labels.js";
|
|
8
8
|
import { t as a } from "./_shared/datepicker.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
9
|
+
import { forwardRef as o, useCallback as s, useId as c } from "react";
|
|
10
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
11
11
|
//#region src/stories/molecules/DateTimeField/DateTimeField.tsx
|
|
12
12
|
function d(e, t) {
|
|
13
13
|
let n = new Date(e);
|
|
@@ -19,8 +19,8 @@ function f(e) {
|
|
|
19
19
|
m: e.getMinutes()
|
|
20
20
|
} : null;
|
|
21
21
|
}
|
|
22
|
-
var p =
|
|
23
|
-
let G = i(m), K = e(S), q =
|
|
22
|
+
var p = o(function({ id: o, label: p, labelHidden: m, value: h, placeholder: g, timeStep: _, minDate: v, maxDate: y, disabledDates: b, name: x, size: S, disabled: C, readOnly: w, error: T = !1, errorMessage: E, helperText: D, locale: O = "es-ES", className: k, calendarLabel: A, openCalendarLabel: j, invalidMessage: M, maskLetters: N, previousMonthLabel: P, nextMonthLabel: F, previousYearsLabel: I, nextYearsLabel: L, yearGridLabel: R, gridLabel: z, hoursLabel: B, minutesLabel: V, onChange: H, onBlur: U }, W) {
|
|
23
|
+
let G = i(m), K = e(S), q = c(), J = o ?? q, Y = `${J}-date`, X = E ? `${J}-error` : void 0, Z = D ? `${J}-helper` : void 0, Q = [X, Z].filter(Boolean).join(" ") || void 0, $ = T || !!E, ee = s((e) => {
|
|
24
24
|
if (!e) {
|
|
25
25
|
H?.(null);
|
|
26
26
|
return;
|
|
@@ -30,25 +30,25 @@ var p = c(function({ id: c, label: p, labelHidden: m, value: h, placeholder: g,
|
|
|
30
30
|
m: 0
|
|
31
31
|
};
|
|
32
32
|
H?.(d(e, t));
|
|
33
|
-
}, [h, H]), te =
|
|
33
|
+
}, [h, H]), te = s((e) => {
|
|
34
34
|
h && H?.(d(h, e));
|
|
35
35
|
}, [h, H]);
|
|
36
|
-
return /* @__PURE__ */
|
|
36
|
+
return /* @__PURE__ */ u("div", {
|
|
37
37
|
className: ["date-time-field", k].filter(Boolean).join(" "),
|
|
38
38
|
children: [
|
|
39
|
-
/* @__PURE__ */
|
|
39
|
+
/* @__PURE__ */ l(n, {
|
|
40
40
|
id: `${J}-label`,
|
|
41
41
|
htmlFor: Y,
|
|
42
42
|
hidden: G,
|
|
43
43
|
size: K,
|
|
44
44
|
children: p
|
|
45
45
|
}),
|
|
46
|
-
/* @__PURE__ */
|
|
46
|
+
/* @__PURE__ */ u("div", {
|
|
47
47
|
className: "date-time-field__controls",
|
|
48
48
|
role: "group",
|
|
49
49
|
"aria-labelledby": `${J}-label`,
|
|
50
50
|
"aria-describedby": Q,
|
|
51
|
-
children: [/* @__PURE__ */
|
|
51
|
+
children: [/* @__PURE__ */ l(a, {
|
|
52
52
|
ref: W,
|
|
53
53
|
className: "date-time-field__date",
|
|
54
54
|
id: Y,
|
|
@@ -75,7 +75,7 @@ var p = c(function({ id: c, label: p, labelHidden: m, value: h, placeholder: g,
|
|
|
75
75
|
nextYearsLabel: L,
|
|
76
76
|
yearGridLabel: R,
|
|
77
77
|
gridLabel: z
|
|
78
|
-
}), /* @__PURE__ */
|
|
78
|
+
}), /* @__PURE__ */ l(r, {
|
|
79
79
|
value: f(h),
|
|
80
80
|
onChange: te,
|
|
81
81
|
onBlur: U,
|
|
@@ -88,11 +88,11 @@ var p = c(function({ id: c, label: p, labelHidden: m, value: h, placeholder: g,
|
|
|
88
88
|
minutesLabel: V
|
|
89
89
|
})]
|
|
90
90
|
}),
|
|
91
|
-
E && /* @__PURE__ */
|
|
91
|
+
E && /* @__PURE__ */ l(t, {
|
|
92
92
|
id: X,
|
|
93
93
|
children: E
|
|
94
94
|
}),
|
|
95
|
-
D && /* @__PURE__ */
|
|
95
|
+
D && /* @__PURE__ */ l("span", {
|
|
96
96
|
id: Z,
|
|
97
97
|
className: "date-time-field__helper",
|
|
98
98
|
children: D
|
package/dist/description-list.js
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import './description-list.css';
|
|
3
3
|
import { CopyableValue as e } from "./copyable-value.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { forwardRef as t } from "react";
|
|
5
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
6
6
|
//#region src/stories/atoms/DescriptionList/DescriptionList.tsx
|
|
7
|
-
var r =
|
|
8
|
-
return /* @__PURE__ */
|
|
7
|
+
var r = t(function({ className: e, children: t, ...r }, i) {
|
|
8
|
+
return /* @__PURE__ */ n("dl", {
|
|
9
9
|
ref: i,
|
|
10
10
|
className: ["description-list", e].filter(Boolean).join(" "),
|
|
11
11
|
...r,
|
|
12
|
-
children:
|
|
12
|
+
children: t
|
|
13
13
|
});
|
|
14
|
-
}), i =
|
|
15
|
-
return /* @__PURE__ */
|
|
14
|
+
}), i = t(function({ as: e = "dt", className: t, children: r, ...i }, a) {
|
|
15
|
+
return /* @__PURE__ */ n(e, {
|
|
16
16
|
ref: a,
|
|
17
|
-
className: ["description-list__term",
|
|
17
|
+
className: ["description-list__term", t].filter(Boolean).join(" "),
|
|
18
18
|
...i,
|
|
19
19
|
children: r
|
|
20
20
|
});
|
|
21
|
-
}), a =
|
|
21
|
+
}), a = t(function({ as: t = "dd", className: r, children: i, copyable: a = !1, copyText: o, copyLabel: s = "Copiar", copiedLabel: c = "Copiado", ...l }, u) {
|
|
22
22
|
let d = [
|
|
23
23
|
"description-list__details",
|
|
24
24
|
a ? "description-list__details--copyable" : "",
|
|
25
25
|
r
|
|
26
26
|
].filter(Boolean).join(" ");
|
|
27
|
-
return a ? /* @__PURE__ */ t
|
|
27
|
+
return a ? /* @__PURE__ */ n(t, {
|
|
28
28
|
ref: u,
|
|
29
29
|
className: d,
|
|
30
30
|
...l,
|
|
31
|
-
children: /* @__PURE__ */
|
|
31
|
+
children: /* @__PURE__ */ n(e, {
|
|
32
32
|
copyText: o,
|
|
33
33
|
copyLabel: s,
|
|
34
34
|
copiedLabel: c,
|
|
35
35
|
children: i
|
|
36
36
|
})
|
|
37
|
-
}) : /* @__PURE__ */ t
|
|
37
|
+
}) : /* @__PURE__ */ n(t, {
|
|
38
38
|
ref: u,
|
|
39
39
|
className: d,
|
|
40
40
|
...l,
|
package/dist/docs-search.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import './docs-search.css';
|
|
3
3
|
import { Spinner as e } from "./spinner.js";
|
|
4
4
|
import { InputField as t } from "./input-field.js";
|
|
5
|
-
import { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
6
5
|
import "react";
|
|
6
|
+
import { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
7
7
|
import { Autocomplete as a } from "@base-ui/react/autocomplete";
|
|
8
8
|
//#region src/stories/molecules/DocsSearch/DocsSearch.tsx
|
|
9
9
|
function o(e) {
|
package/dist/dots-button.js
CHANGED
|
@@ -2,26 +2,26 @@
|
|
|
2
2
|
import './dots-button.css';
|
|
3
3
|
import { Icon as e } from "./icon.js";
|
|
4
4
|
import { Button as t } from "./button.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { forwardRef as n } from "react";
|
|
6
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
7
7
|
//#region src/stories/atoms/DotsButton/DotsButton.tsx
|
|
8
|
-
var i =
|
|
8
|
+
var i = n(function({ size: n = "md", orientation: i = "horizontal", "aria-label": a = "Más opciones", className: o, ...s }, c) {
|
|
9
9
|
let l = [
|
|
10
10
|
"dots-button",
|
|
11
11
|
i === "vertical" ? "dots-button--vertical" : "",
|
|
12
12
|
o
|
|
13
13
|
].filter(Boolean).join(" ");
|
|
14
|
-
return /* @__PURE__ */
|
|
14
|
+
return /* @__PURE__ */ r(t, {
|
|
15
15
|
ref: c,
|
|
16
16
|
variant: "ghost",
|
|
17
17
|
iconOnly: !0,
|
|
18
|
-
size:
|
|
18
|
+
size: n,
|
|
19
19
|
"aria-label": a,
|
|
20
20
|
className: l,
|
|
21
21
|
...s,
|
|
22
|
-
children: /* @__PURE__ */
|
|
22
|
+
children: /* @__PURE__ */ r(e, {
|
|
23
23
|
name: "dots",
|
|
24
|
-
size:
|
|
24
|
+
size: n === "lg" ? "md" : "sm"
|
|
25
25
|
})
|
|
26
26
|
});
|
|
27
27
|
});
|
package/dist/dropdown-field.js
CHANGED
|
@@ -6,12 +6,12 @@ import { ErrorText as n } from "./error-text.js";
|
|
|
6
6
|
import { Label as r } from "./label.js";
|
|
7
7
|
import { n as i } from "./_shared/field-labels.js";
|
|
8
8
|
import { Menu as a } from "./menu.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
9
|
+
import { forwardRef as o, useId as s } from "react";
|
|
10
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
11
11
|
//#region src/stories/molecules/DropdownField/DropdownField.tsx
|
|
12
|
-
var u =
|
|
13
|
-
let O = i(d), k = t(v), A =
|
|
14
|
-
return /* @__PURE__ */
|
|
12
|
+
var u = o(function({ id: o, label: u, labelHidden: d, "aria-label": f, items: p, value: m, onValueChange: h, children: g, inline: _ = !1, size: v, align: y = "start", disabled: b = !1, name: x, error: S = !1, errorMessage: C, helperText: w, onBlur: T, className: E }, D) {
|
|
13
|
+
let O = i(d), k = t(v), A = s(), j = o ?? A, M = C ? `${j}-error` : void 0, N = w ? `${j}-helper` : void 0, P = [M, N].filter(Boolean).join(" ") || void 0, F = S || !!C;
|
|
14
|
+
return /* @__PURE__ */ l("div", {
|
|
15
15
|
className: [
|
|
16
16
|
"dropdown-field",
|
|
17
17
|
_ ? "dropdown-field--inline" : "",
|
|
@@ -19,19 +19,19 @@ var u = c(function({ id: c, label: u, labelHidden: d, "aria-label": f, items: p,
|
|
|
19
19
|
E
|
|
20
20
|
].filter(Boolean).join(" "),
|
|
21
21
|
children: [
|
|
22
|
-
u && /* @__PURE__ */
|
|
22
|
+
u && /* @__PURE__ */ c(r, {
|
|
23
23
|
htmlFor: j,
|
|
24
24
|
hidden: O,
|
|
25
25
|
size: k,
|
|
26
26
|
children: u
|
|
27
27
|
}),
|
|
28
|
-
/* @__PURE__ */
|
|
28
|
+
/* @__PURE__ */ c(a, {
|
|
29
29
|
align: y,
|
|
30
30
|
size: k,
|
|
31
31
|
value: m,
|
|
32
32
|
onValueChange: h,
|
|
33
33
|
items: p,
|
|
34
|
-
trigger: /* @__PURE__ */
|
|
34
|
+
trigger: /* @__PURE__ */ l("button", {
|
|
35
35
|
ref: D,
|
|
36
36
|
type: "button",
|
|
37
37
|
id: j,
|
|
@@ -41,10 +41,10 @@ var u = c(function({ id: c, label: u, labelHidden: d, "aria-label": f, items: p,
|
|
|
41
41
|
"aria-invalid": F || void 0,
|
|
42
42
|
disabled: b,
|
|
43
43
|
onBlur: T,
|
|
44
|
-
children: [/* @__PURE__ */
|
|
44
|
+
children: [/* @__PURE__ */ c("span", {
|
|
45
45
|
className: "dropdown-field__value",
|
|
46
46
|
children: g
|
|
47
|
-
}), /* @__PURE__ */
|
|
47
|
+
}), /* @__PURE__ */ c(e, {
|
|
48
48
|
name: "chevron",
|
|
49
49
|
size: "sm",
|
|
50
50
|
className: "dropdown-field__icon",
|
|
@@ -52,16 +52,16 @@ var u = c(function({ id: c, label: u, labelHidden: d, "aria-label": f, items: p,
|
|
|
52
52
|
})]
|
|
53
53
|
})
|
|
54
54
|
}),
|
|
55
|
-
x && /* @__PURE__ */
|
|
55
|
+
x && /* @__PURE__ */ c("input", {
|
|
56
56
|
type: "hidden",
|
|
57
57
|
name: x,
|
|
58
58
|
value: m ?? ""
|
|
59
59
|
}),
|
|
60
|
-
C && /* @__PURE__ */
|
|
60
|
+
C && /* @__PURE__ */ c(n, {
|
|
61
61
|
id: M,
|
|
62
62
|
children: C
|
|
63
63
|
}),
|
|
64
|
-
w && /* @__PURE__ */
|
|
64
|
+
w && /* @__PURE__ */ c("span", {
|
|
65
65
|
id: N,
|
|
66
66
|
className: "dropdown-field__helper",
|
|
67
67
|
children: w
|
package/dist/email.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EMAIL_FONT_FILENAME as e, EMAIL_LOGO_FILENAME as t, emailLogoWidthFor as n } from "./brand-assets.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
3
|
+
import { Body as o, Button as s, Container as c, Font as l, Head as u, Heading as d, Hr as f, Html as p, Img as m, Link as h, Preview as g, Section as _, Text as v } from "react-email";
|
|
4
4
|
//#region src/stories/email/emailTokens.ts
|
|
5
5
|
var y = {
|
|
6
6
|
"--email-max-width": "600px",
|
|
@@ -211,50 +211,50 @@ var S = {
|
|
|
211
211
|
//#endregion
|
|
212
212
|
//#region src/stories/email/EmailLayout.tsx
|
|
213
213
|
function I(e) {
|
|
214
|
-
if (e.reasonLabel !== void 0) return /* @__PURE__ */ v
|
|
214
|
+
if (e.reasonLabel !== void 0) return /* @__PURE__ */ a(v, {
|
|
215
215
|
style: M.footnote,
|
|
216
216
|
children: [
|
|
217
217
|
e.reasonLabel,
|
|
218
218
|
" ",
|
|
219
|
-
/* @__PURE__ */
|
|
219
|
+
/* @__PURE__ */ i(h, {
|
|
220
220
|
href: e.unsubscribeUrl,
|
|
221
221
|
style: M.link,
|
|
222
222
|
children: e.unsubscribeLabel
|
|
223
223
|
})
|
|
224
224
|
]
|
|
225
225
|
});
|
|
226
|
-
let { unsubscribeUrl: t, preferencesUrl: n, manageLabel: r = "Para dejar de recibir estos avisos,", unsubscribeLabel:
|
|
226
|
+
let { unsubscribeUrl: t, preferencesUrl: n, manageLabel: r = "Para dejar de recibir estos avisos,", unsubscribeLabel: o = n ? "Darse de baja" : "date de baja", manageBeforeLabel: s = " o ", managePreferencesLabel: c = "gestiona tus preferencias", manageAfterLabel: l = "." } = e, u = /* @__PURE__ */ i(h, {
|
|
227
227
|
href: t,
|
|
228
228
|
style: M.link,
|
|
229
|
-
children:
|
|
229
|
+
children: o
|
|
230
230
|
});
|
|
231
|
-
return n ? /* @__PURE__ */ v
|
|
231
|
+
return n ? /* @__PURE__ */ a(v, {
|
|
232
232
|
style: M.footnote,
|
|
233
233
|
children: [
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
/* @__PURE__ */
|
|
234
|
+
u,
|
|
235
|
+
s,
|
|
236
|
+
/* @__PURE__ */ i(h, {
|
|
237
237
|
href: n,
|
|
238
238
|
style: M.link,
|
|
239
|
-
children:
|
|
239
|
+
children: c
|
|
240
240
|
}),
|
|
241
|
-
|
|
241
|
+
l
|
|
242
242
|
]
|
|
243
|
-
}) : /* @__PURE__ */ v
|
|
243
|
+
}) : /* @__PURE__ */ a(v, {
|
|
244
244
|
style: M.footnote,
|
|
245
245
|
children: [
|
|
246
246
|
r,
|
|
247
247
|
" ",
|
|
248
|
-
|
|
248
|
+
u
|
|
249
249
|
]
|
|
250
250
|
});
|
|
251
251
|
}
|
|
252
|
-
function L({ preview: e, appName: t, locale: n = "es", assetsBaseUrl:
|
|
253
|
-
let h =
|
|
254
|
-
return /* @__PURE__ */
|
|
252
|
+
function L({ preview: e, appName: t, locale: n = "es", assetsBaseUrl: r = k, logoAlt: s, optOut: d, children: f }) {
|
|
253
|
+
let h = r.replace(/\/$/, "");
|
|
254
|
+
return /* @__PURE__ */ a(p, {
|
|
255
255
|
lang: n,
|
|
256
256
|
children: [
|
|
257
|
-
/* @__PURE__ */
|
|
257
|
+
/* @__PURE__ */ a(u, { children: [/* @__PURE__ */ i(l, {
|
|
258
258
|
fontFamily: "Google Sans Flex",
|
|
259
259
|
fallbackFontFamily: "sans-serif",
|
|
260
260
|
webFont: {
|
|
@@ -263,9 +263,9 @@ function L({ preview: e, appName: t, locale: n = "es", assetsBaseUrl: i = k, log
|
|
|
263
263
|
},
|
|
264
264
|
fontWeight: w,
|
|
265
265
|
fontStyle: "normal"
|
|
266
|
-
}), /* @__PURE__ */
|
|
267
|
-
/* @__PURE__ */
|
|
268
|
-
/* @__PURE__ */
|
|
266
|
+
}), /* @__PURE__ */ i("style", { dangerouslySetInnerHTML: { __html: F } })] }),
|
|
267
|
+
/* @__PURE__ */ i(g, { children: e }),
|
|
268
|
+
/* @__PURE__ */ i(o, {
|
|
269
269
|
style: {
|
|
270
270
|
backgroundColor: S.canvas,
|
|
271
271
|
color: S.text,
|
|
@@ -276,23 +276,23 @@ function L({ preview: e, appName: t, locale: n = "es", assetsBaseUrl: i = k, log
|
|
|
276
276
|
margin: 0,
|
|
277
277
|
padding: 0
|
|
278
278
|
},
|
|
279
|
-
children: /* @__PURE__ */
|
|
279
|
+
children: /* @__PURE__ */ a(_, {
|
|
280
280
|
style: {
|
|
281
281
|
backgroundColor: S.canvas,
|
|
282
282
|
padding: `${b("--email-canvas-padding-block")} ${b("--email-canvas-padding-inline")}`,
|
|
283
283
|
width: "100%"
|
|
284
284
|
},
|
|
285
285
|
children: [
|
|
286
|
-
/* @__PURE__ */
|
|
286
|
+
/* @__PURE__ */ i(c, {
|
|
287
287
|
style: {
|
|
288
288
|
backgroundColor: S.background,
|
|
289
289
|
margin: "0 auto",
|
|
290
290
|
maxWidth: T,
|
|
291
291
|
padding: 0
|
|
292
292
|
},
|
|
293
|
-
children: /* @__PURE__ */
|
|
293
|
+
children: /* @__PURE__ */ i(m, {
|
|
294
294
|
src: `${h}/${O.filename}`,
|
|
295
|
-
alt:
|
|
295
|
+
alt: s ?? t,
|
|
296
296
|
width: O.width,
|
|
297
297
|
height: O.height,
|
|
298
298
|
style: {
|
|
@@ -303,7 +303,7 @@ function L({ preview: e, appName: t, locale: n = "es", assetsBaseUrl: i = k, log
|
|
|
303
303
|
}
|
|
304
304
|
})
|
|
305
305
|
}),
|
|
306
|
-
/* @__PURE__ */
|
|
306
|
+
/* @__PURE__ */ i(c, {
|
|
307
307
|
style: {
|
|
308
308
|
backgroundColor: S.background,
|
|
309
309
|
border: `${b("--email-border-width")} solid ${S.border}`,
|
|
@@ -312,16 +312,16 @@ function L({ preview: e, appName: t, locale: n = "es", assetsBaseUrl: i = k, log
|
|
|
312
312
|
maxWidth: T,
|
|
313
313
|
padding: `${b("--email-padding-block")} ${b("--email-padding-inline")}`
|
|
314
314
|
},
|
|
315
|
-
children: /* @__PURE__ */ _
|
|
315
|
+
children: /* @__PURE__ */ i(_, { children: f })
|
|
316
316
|
}),
|
|
317
|
-
|
|
317
|
+
d && /* @__PURE__ */ i(c, {
|
|
318
318
|
style: {
|
|
319
319
|
backgroundColor: S.canvas,
|
|
320
320
|
margin: "0 auto",
|
|
321
321
|
maxWidth: T,
|
|
322
322
|
padding: `${b("--email-opt-out-margin-block-start")} 0 0`
|
|
323
323
|
},
|
|
324
|
-
children: /* @__PURE__ */
|
|
324
|
+
children: /* @__PURE__ */ i(I, { ...d })
|
|
325
325
|
})
|
|
326
326
|
]
|
|
327
327
|
})
|
|
@@ -333,7 +333,7 @@ function L({ preview: e, appName: t, locale: n = "es", assetsBaseUrl: i = k, log
|
|
|
333
333
|
//#region src/stories/email/EmailPrimitives.tsx
|
|
334
334
|
function R({ children: e, level: t = 1, style: n }) {
|
|
335
335
|
let r = t === 1 ? M.heading : M.heading2;
|
|
336
|
-
return /* @__PURE__ */
|
|
336
|
+
return /* @__PURE__ */ i(d, {
|
|
337
337
|
as: `h${t}`,
|
|
338
338
|
style: {
|
|
339
339
|
...r,
|
|
@@ -343,7 +343,7 @@ function R({ children: e, level: t = 1, style: n }) {
|
|
|
343
343
|
});
|
|
344
344
|
}
|
|
345
345
|
function z({ children: e, emphasis: t = !1, style: n }) {
|
|
346
|
-
return /* @__PURE__ */
|
|
346
|
+
return /* @__PURE__ */ i(v, {
|
|
347
347
|
style: {
|
|
348
348
|
...M.text,
|
|
349
349
|
...t && M.textEmphasis,
|
|
@@ -353,7 +353,7 @@ function z({ children: e, emphasis: t = !1, style: n }) {
|
|
|
353
353
|
});
|
|
354
354
|
}
|
|
355
355
|
function B({ children: e, ordered: t = !1, style: n }) {
|
|
356
|
-
return /* @__PURE__ */
|
|
356
|
+
return /* @__PURE__ */ i(t ? "ol" : "ul", {
|
|
357
357
|
style: {
|
|
358
358
|
...M.list,
|
|
359
359
|
...n
|
|
@@ -362,7 +362,7 @@ function B({ children: e, ordered: t = !1, style: n }) {
|
|
|
362
362
|
});
|
|
363
363
|
}
|
|
364
364
|
function V({ children: e, style: t }) {
|
|
365
|
-
return /* @__PURE__ */
|
|
365
|
+
return /* @__PURE__ */ i("li", {
|
|
366
366
|
style: {
|
|
367
367
|
...M.listItem,
|
|
368
368
|
...t
|
|
@@ -371,7 +371,7 @@ function V({ children: e, style: t }) {
|
|
|
371
371
|
});
|
|
372
372
|
}
|
|
373
373
|
function H({ children: e, style: t }) {
|
|
374
|
-
return /* @__PURE__ */ _
|
|
374
|
+
return /* @__PURE__ */ i(_, {
|
|
375
375
|
style: {
|
|
376
376
|
...M.quote,
|
|
377
377
|
...t
|
|
@@ -380,7 +380,7 @@ function H({ children: e, style: t }) {
|
|
|
380
380
|
});
|
|
381
381
|
}
|
|
382
382
|
function U({ children: e, tone: t, style: n }) {
|
|
383
|
-
return /* @__PURE__ */
|
|
383
|
+
return /* @__PURE__ */ i("span", {
|
|
384
384
|
style: {
|
|
385
385
|
...M.tag,
|
|
386
386
|
...N[t],
|
|
@@ -390,13 +390,13 @@ function U({ children: e, tone: t, style: n }) {
|
|
|
390
390
|
});
|
|
391
391
|
}
|
|
392
392
|
function W({ style: e }) {
|
|
393
|
-
return /* @__PURE__ */
|
|
393
|
+
return /* @__PURE__ */ i(f, { style: {
|
|
394
394
|
...M.divider,
|
|
395
395
|
...e
|
|
396
396
|
} });
|
|
397
397
|
}
|
|
398
398
|
function G({ children: e, tone: t = "muted", style: n }) {
|
|
399
|
-
return /* @__PURE__ */
|
|
399
|
+
return /* @__PURE__ */ i(v, {
|
|
400
400
|
style: {
|
|
401
401
|
...t === "muted" ? M.muted : M.footnote,
|
|
402
402
|
...n
|
|
@@ -405,7 +405,7 @@ function G({ children: e, tone: t = "muted", style: n }) {
|
|
|
405
405
|
});
|
|
406
406
|
}
|
|
407
407
|
function K({ href: e, children: t, style: n }) {
|
|
408
|
-
return /* @__PURE__ */
|
|
408
|
+
return /* @__PURE__ */ i(h, {
|
|
409
409
|
href: e,
|
|
410
410
|
style: {
|
|
411
411
|
...M.link,
|
|
@@ -414,22 +414,22 @@ function K({ href: e, children: t, style: n }) {
|
|
|
414
414
|
children: t
|
|
415
415
|
});
|
|
416
416
|
}
|
|
417
|
-
function q({ href: e, children: t, fallbackLabel: n, style:
|
|
418
|
-
return /* @__PURE__ */
|
|
417
|
+
function q({ href: e, children: t, fallbackLabel: n, style: o }) {
|
|
418
|
+
return /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ i(s, {
|
|
419
419
|
href: e,
|
|
420
420
|
className: P,
|
|
421
421
|
style: {
|
|
422
422
|
...M.button,
|
|
423
423
|
marginBottom: 0,
|
|
424
|
-
...
|
|
424
|
+
...o
|
|
425
425
|
},
|
|
426
426
|
children: t
|
|
427
|
-
}), /* @__PURE__ */ v
|
|
427
|
+
}), /* @__PURE__ */ a(v, {
|
|
428
428
|
style: M.buttonFallback,
|
|
429
429
|
children: [
|
|
430
430
|
n,
|
|
431
|
-
/* @__PURE__ */
|
|
432
|
-
/* @__PURE__ */
|
|
431
|
+
/* @__PURE__ */ i("br", {}),
|
|
432
|
+
/* @__PURE__ */ i("span", {
|
|
433
433
|
style: M.buttonFallbackUrl,
|
|
434
434
|
children: e
|
|
435
435
|
})
|
package/dist/error-text.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import './error-text.css';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { forwardRef as e } from "react";
|
|
3
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
4
4
|
//#region src/stories/atoms/ErrorText/ErrorText.tsx
|
|
5
|
-
var n =
|
|
6
|
-
return /* @__PURE__ */ e
|
|
5
|
+
var n = e(function({ as: e = "p", className: n, children: r, ...i }, a) {
|
|
6
|
+
return /* @__PURE__ */ t(e, {
|
|
7
7
|
ref: a,
|
|
8
8
|
role: "alert",
|
|
9
9
|
className: ["error-text", n].filter(Boolean).join(" "),
|
package/dist/field-row.js
CHANGED
|
@@ -2,51 +2,51 @@
|
|
|
2
2
|
import './field-row.css';
|
|
3
3
|
import { n as e } from "./_shared/form-size.js";
|
|
4
4
|
import { t } from "./_shared/field-labels.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { Children as n, createContext as r, isValidElement as i, useContext as a } from "react";
|
|
6
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
7
7
|
//#region src/stories/molecules/FieldRow/FieldRow.tsx
|
|
8
|
-
var c =
|
|
8
|
+
var c = r(void 0);
|
|
9
9
|
function l({ labels: e = "first-row", empty: t, children: r, className: a, ...s }) {
|
|
10
|
-
let l =
|
|
11
|
-
return l.length === 0 && t ? /* @__PURE__ */
|
|
10
|
+
let l = n.toArray(r), u = ["field-rows", a].filter(Boolean).join(" ");
|
|
11
|
+
return l.length === 0 && t ? /* @__PURE__ */ o("div", {
|
|
12
12
|
className: u,
|
|
13
13
|
...s,
|
|
14
|
-
children: /* @__PURE__ */
|
|
14
|
+
children: /* @__PURE__ */ o("div", {
|
|
15
15
|
className: "field-rows__empty",
|
|
16
16
|
children: t
|
|
17
17
|
})
|
|
18
|
-
}) : /* @__PURE__ */
|
|
18
|
+
}) : /* @__PURE__ */ o("div", {
|
|
19
19
|
className: u,
|
|
20
20
|
...s,
|
|
21
|
-
children: l.map((t,
|
|
22
|
-
let
|
|
23
|
-
return /* @__PURE__ */
|
|
24
|
-
value: { labelled:
|
|
21
|
+
children: l.map((t, n) => {
|
|
22
|
+
let r = e === "every-row" || n === 0, a = i(t) && t.key != null ? t.key : n;
|
|
23
|
+
return /* @__PURE__ */ o(c.Provider, {
|
|
24
|
+
value: { labelled: r },
|
|
25
25
|
children: t
|
|
26
26
|
}, a);
|
|
27
27
|
})
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
|
-
function u({ widths:
|
|
31
|
-
let m = e(u), h =
|
|
30
|
+
function u({ widths: r, action: i, labelled: l, size: u, children: d, className: f, ...p }) {
|
|
31
|
+
let m = e(u), h = a(c), g = l ?? h?.labelled ?? !0, _ = n.toArray(d), v = [
|
|
32
32
|
"field-row",
|
|
33
33
|
m === "md" ? "" : `field-row--${m}`,
|
|
34
34
|
f
|
|
35
35
|
].filter(Boolean).join(" ");
|
|
36
|
-
return /* @__PURE__ */
|
|
36
|
+
return /* @__PURE__ */ o(t.Provider, {
|
|
37
37
|
value: !g,
|
|
38
|
-
children: /* @__PURE__ */
|
|
38
|
+
children: /* @__PURE__ */ s("div", {
|
|
39
39
|
className: v,
|
|
40
40
|
...p,
|
|
41
|
-
children: [_.map((e, t) => /* @__PURE__ */
|
|
42
|
-
className: `field-row__cell field-row__cell--${
|
|
41
|
+
children: [_.map((e, t) => /* @__PURE__ */ o("div", {
|
|
42
|
+
className: `field-row__cell field-row__cell--${r?.[t] ?? (t === 0 ? "grow" : "md")}`,
|
|
43
43
|
children: e
|
|
44
|
-
}, t)),
|
|
44
|
+
}, t)), i && /* @__PURE__ */ s("div", {
|
|
45
45
|
className: "field-row__action",
|
|
46
|
-
children: [g && /* @__PURE__ */
|
|
46
|
+
children: [g && /* @__PURE__ */ o("span", {
|
|
47
47
|
className: "field-row__action-offset",
|
|
48
48
|
"aria-hidden": "true"
|
|
49
|
-
}),
|
|
49
|
+
}), i]
|
|
50
50
|
})]
|
|
51
51
|
})
|
|
52
52
|
});
|
package/dist/figure.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './figure.css';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { forwardRef as e } from "react";
|
|
3
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
4
4
|
import { useRender as r } from "@base-ui/react/use-render";
|
|
5
5
|
//#region src/stories/atoms/Figure/Figure.tsx
|
|
6
6
|
var i = {
|
|
@@ -9,7 +9,7 @@ var i = {
|
|
|
9
9
|
"3:2": "figure__media--ratio-3-2",
|
|
10
10
|
"16:9": "figure__media--ratio-16-9",
|
|
11
11
|
"21:9": "figure__media--ratio-21-9"
|
|
12
|
-
}, a =
|
|
12
|
+
}, a = e(function({ src: e, alt: a = "", caption: o, ratio: s = "auto", fit: c = "cover", render: l, className: u, children: d, ...f }, p) {
|
|
13
13
|
let m = ["figure", u ?? ""].filter(Boolean).join(" "), h = [
|
|
14
14
|
"figure__media",
|
|
15
15
|
s === "auto" ? "" : i[s],
|
|
@@ -19,18 +19,18 @@ var i = {
|
|
|
19
19
|
enabled: l !== void 0,
|
|
20
20
|
props: { className: "figure__img" }
|
|
21
21
|
});
|
|
22
|
-
return /* @__PURE__ */
|
|
22
|
+
return /* @__PURE__ */ n("figure", {
|
|
23
23
|
ref: p,
|
|
24
24
|
className: m,
|
|
25
25
|
...f,
|
|
26
|
-
children: [/* @__PURE__ */
|
|
26
|
+
children: [/* @__PURE__ */ t("div", {
|
|
27
27
|
className: h,
|
|
28
|
-
children: g ?? (
|
|
28
|
+
children: g ?? (e === void 0 ? d : /* @__PURE__ */ t("img", {
|
|
29
29
|
className: "figure__img",
|
|
30
|
-
src:
|
|
30
|
+
src: e,
|
|
31
31
|
alt: a
|
|
32
32
|
}))
|
|
33
|
-
}), o !== void 0 && /* @__PURE__ */
|
|
33
|
+
}), o !== void 0 && /* @__PURE__ */ t("figcaption", {
|
|
34
34
|
className: "figure__caption",
|
|
35
35
|
children: o
|
|
36
36
|
})]
|