@studiolxd/brand 49.28.0 → 50.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/LICENSE +61 -0
- package/README.md +26 -4
- package/dist/_shared/assign-ref.js +6 -0
- package/dist/_shared/calendargrid.js +57 -57
- package/dist/_shared/datepicker.js +67 -65
- package/dist/_shared/default-render-link.js +7 -0
- package/dist/_shared/dialogsurface.js +1 -1
- package/dist/_shared/dropdownitems.js +14 -20
- package/dist/_shared/imagecropdialog.js +38 -441
- package/dist/_shared/overflow-focusable.js +15 -0
- package/dist/_shared/side-offset.js +13 -0
- package/dist/_shared/tokens.js +31 -129
- package/dist/_shared/useasyncoptions.js +30 -0
- package/dist/_types/atoms/Accordion/Accordion.d.ts +7 -1
- package/dist/_types/atoms/AsyncMultiSelect/AsyncMultiSelect.d.ts +8 -4
- package/dist/_types/atoms/AsyncSelect/AsyncSelect.d.ts +8 -4
- package/dist/_types/atoms/Autocomplete/Autocomplete.d.ts +10 -6
- package/dist/_types/atoms/CloseButton/CloseButton.d.ts +13 -3
- package/dist/_types/atoms/Fieldset/Fieldset.d.ts +1 -1
- package/dist/_types/atoms/InputPhone/InputPhone.d.ts +2 -0
- package/dist/_types/atoms/MultiSelect/MultiSelect.d.ts +11 -10
- package/dist/_types/atoms/Select/Select.d.ts +6 -0
- package/dist/_types/atoms/Skeleton/Skeleton.d.ts +1 -1
- package/dist/_types/atoms/Spinner/Spinner.d.ts +3 -1
- package/dist/_types/atoms/TypingIndicator/TypingIndicator.d.ts +3 -1
- package/dist/_types/atoms/_shared/useAsyncOptions.d.ts +36 -0
- package/dist/_types/constants/assign-ref.d.ts +12 -0
- package/dist/_types/constants/default-render-link.d.ts +13 -0
- package/dist/_types/constants/overflow-focusable.d.ts +15 -0
- package/dist/_types/constants/side-offset.d.ts +18 -0
- package/dist/_types/email/EmailLayout.d.ts +38 -21
- package/dist/_types/messages/BrandMessages.d.ts +8 -2
- package/dist/_types/messages/index.d.ts +1 -1
- package/dist/_types/molecules/AppLauncher/AppLauncher.d.ts +9 -3
- package/dist/_types/molecules/Calendar/Calendar.d.ts +10 -1
- package/dist/_types/molecules/CalendarPlanner/CalendarPlanner.d.ts +43 -13
- package/dist/_types/molecules/CalendarRoster/CalendarRoster.d.ts +10 -2
- package/dist/_types/molecules/ContextMenu/ContextMenu.d.ts +8 -1
- package/dist/_types/molecules/DatePicker/DatePicker.d.ts +6 -0
- package/dist/_types/molecules/DateTimeField/DateTimeField.d.ts +2 -0
- package/dist/_types/molecules/DocsSearch/DocsSearch.d.ts +2 -2
- package/dist/_types/molecules/FloatingToolbar/FloatingToolbar.d.ts +83 -0
- package/dist/_types/molecules/FormField/FormField.d.ts +5 -6
- package/dist/_types/molecules/LanguageSwitcher/LanguageSwitcher.d.ts +7 -3
- package/dist/_types/molecules/LoadingRegion/LoadingRegion.d.ts +12 -4
- package/dist/_types/molecules/Modal/Modal.d.ts +10 -4
- package/dist/_types/molecules/OrgSwitcher/OrgSwitcher.d.ts +7 -1
- package/dist/_types/molecules/PasswordField/PasswordField.d.ts +9 -2
- package/dist/_types/molecules/PrevNextNav/PrevNextNav.d.ts +3 -1
- package/dist/_types/molecules/RecurrenceField/RecurrenceField.d.ts +6 -1
- package/dist/_types/molecules/SidebarNav/SidebarNav.d.ts +18 -2
- package/dist/_types/molecules/SiteNav/SiteNav.d.ts +4 -1
- package/dist/_types/molecules/StatTile/StatTile.d.ts +15 -1
- package/dist/_types/molecules/Table/Table.d.ts +1 -1
- package/dist/_types/molecules/ThemeSwitcher/ThemeSwitcher.d.ts +38 -3
- package/dist/_types/molecules/Toast/Toaster.d.ts +8 -0
- package/dist/_types/molecules/UserMenu/UserMenu.d.ts +7 -1
- package/dist/_types/molecules/_shared/calendarGrid.d.ts +15 -2
- package/dist/_types/molecules/_shared/dialogSurface.d.ts +6 -1
- package/dist/_types/molecules/_shared/dropdownItems.d.ts +0 -2
- package/dist/_types/sections/AppHeader/AppHeader.d.ts +3 -1
- package/dist/_types/sections/AppShell/AppShell.d.ts +6 -1
- package/dist/_types/sections/LegalFooter/LegalFooter.d.ts +7 -1
- package/dist/_types/sections/Sidebar/Sidebar.d.ts +3 -1
- package/dist/_types/sections/SiteFooter/SiteFooter.d.ts +6 -2
- package/dist/_types/sections/SiteHeader/SiteHeader.d.ts +2 -2
- package/dist/_types/templates/ConnectorAuth/ConnectorAuthShell.d.ts +5 -2
- package/dist/_types/templates/ConnectorAuth/ConnectorConsentPage.d.ts +1 -1
- package/dist/_types/templates/ConnectorAuth/ConnectorExternalSignInPage.d.ts +1 -1
- package/dist/_types/templates/ConnectorAuth/ConnectorRejectionPage.d.ts +1 -1
- package/dist/_types/templates/ConnectorAuth/ConnectorSignInPage.d.ts +1 -1
- package/dist/_types/templates/ErrorPage/ErrorPage.d.ts +7 -1
- package/dist/_types/templates/NotFoundPage/NotFoundPage.d.ts +7 -1
- package/dist/_types/templates/PublicPageShell/PublicPageShell.d.ts +6 -0
- package/dist/accordion.css +1 -1
- package/dist/accordion.js +6 -5
- package/dist/alert.css +1 -1
- package/dist/app-header.js +16 -21
- package/dist/app-launcher.css +1 -1
- package/dist/app-launcher.js +29 -21
- package/dist/app-shell.js +43 -43
- package/dist/async-multi-select.css +1 -1
- package/dist/async-multi-select.js +104 -173
- package/dist/async-select.css +1 -1
- package/dist/async-select.js +81 -137
- package/dist/autocomplete.css +1 -1
- package/dist/autocomplete.js +76 -115
- package/dist/brand.css +77 -987
- package/dist/breadcrumb.js +11 -16
- package/dist/button.css +1 -1
- package/dist/calendar-planner.css +1 -1
- package/dist/calendar-planner.js +100 -95
- package/dist/calendar-roster.css +1 -1
- package/dist/calendar-roster.js +69 -61
- package/dist/calendar.css +1 -1
- package/dist/calendar.js +86 -85
- package/dist/card.css +1 -1
- package/dist/card.js +42 -41
- package/dist/chart.css +1 -1
- package/dist/chat-shell.js +48 -47
- package/dist/checkbox.css +1 -1
- package/dist/close-button.js +14 -12
- package/dist/command-palette.css +1 -1
- package/dist/connector-consent-page.js +19 -18
- package/dist/connector-external-sign-in-page.js +6 -5
- package/dist/connector-rejection-page.js +5 -4
- package/dist/connector-sign-in-page.js +10 -9
- package/dist/consent.css +1 -1
- package/dist/context-menu.js +3 -2
- package/dist/conversation-list.css +1 -1
- package/dist/conversation-thread.css +1 -1
- package/dist/conversation-thread.js +1 -0
- package/dist/data-table.js +74 -1625
- package/dist/date-time-field.js +7 -6
- package/dist/docs-search.js +36 -38
- package/dist/email.js +10 -7
- package/dist/error-page.js +2 -2
- package/dist/fieldset.css +1 -1
- package/dist/figure.js +1 -0
- package/dist/file-upload.css +1 -1
- package/dist/file-upload.js +48 -50
- package/dist/floating-toolbar.css +1 -0
- package/dist/floating-toolbar.js +64 -0
- package/dist/form-field.js +55 -53
- package/dist/imagecropdialog.css +1 -1
- package/dist/input-phone.css +1 -1
- package/dist/input-phone.js +30 -31
- package/dist/input.css +1 -1
- package/dist/label.css +1 -1
- package/dist/language-switcher.js +37 -44
- package/dist/legal-footer.js +12 -17
- package/dist/loading-region.css +1 -1
- package/dist/loading-region.js +8 -8
- package/dist/menu.css +1 -1
- package/dist/menu.js +4 -3
- package/dist/message-bubble.css +1 -1
- package/dist/message-composer.css +1 -1
- package/dist/modal.css +1 -1
- package/dist/modal.js +9 -9
- package/dist/multi-select.css +1 -1
- package/dist/multi-select.js +104 -172
- package/dist/not-found-page.js +8 -5
- package/dist/notification-list.js +16 -21
- package/dist/notification-panel.js +34 -46
- package/dist/number-badge.css +1 -1
- package/dist/number-input.css +1 -1
- package/dist/org-switcher.css +1 -1
- package/dist/org-switcher.js +13 -11
- package/dist/password-field.js +40 -39
- package/dist/popover.css +1 -1
- package/dist/popover.js +9 -15
- package/dist/prev-next-nav.js +8 -7
- package/dist/public-page-shell.js +7 -6
- package/dist/radio.css +1 -1
- package/dist/recurrence-field.css +1 -1
- package/dist/recurrence-field.js +38 -37
- package/dist/select.css +1 -1
- package/dist/select.js +3 -2
- package/dist/sheet.css +1 -1
- package/dist/sidebar-nav.css +1 -1
- package/dist/sidebar-nav.js +75 -70
- package/dist/sidebar.css +1 -1
- package/dist/sidebar.js +46 -42
- package/dist/site-footer.js +28 -28
- package/dist/site-header.js +39 -44
- package/dist/site-nav.js +10 -19
- package/dist/site-search.js +34 -36
- package/dist/site-shell.js +17 -16
- package/dist/skeleton.js +8 -6
- package/dist/sortable.js +20 -19
- package/dist/spinner.js +11 -7
- package/dist/stat-tile.js +24 -26
- package/dist/switcher.css +1 -1
- package/dist/table.css +1 -1
- package/dist/table.js +57 -45
- package/dist/textarea.css +1 -1
- package/dist/theme-switcher.js +57 -56
- package/dist/toaster.css +1 -1
- package/dist/toggle.css +1 -1
- package/dist/tokens.css +75 -986
- package/dist/tooltip.css +1 -1
- package/dist/tooltip.js +20 -27
- package/dist/typing-indicator.css +1 -1
- package/dist/typing-indicator.js +4 -4
- package/dist/user-menu.css +1 -1
- package/dist/user-menu.js +38 -45
- package/dist/visuallyhidden.css +1 -1
- package/package.json +26 -14
- package/src/tokens/components/async-multi-select.css +4 -0
- package/src/tokens/components/async-select.css +3 -0
- package/src/tokens/components/autocomplete.css +1 -0
- package/src/tokens/components/breadcrumb.css +0 -2
- package/src/tokens/components/button.css +0 -23
- package/src/tokens/components/control.css +0 -4
- package/src/tokens/components/file-upload.css +0 -4
- package/src/tokens/components/radio.css +2 -0
- package/src/tokens/components/site-header.css +0 -1
- package/src/tokens/index.css +5 -7
- package/src/tokens/molecules/async-multi-select-field.css +0 -6
- package/src/tokens/molecules/async-select-field.css +0 -6
- package/src/tokens/molecules/autocomplete-field.css +0 -5
- package/src/tokens/molecules/avatar-upload.css +0 -6
- package/src/tokens/molecules/calendar-roster.css +5 -0
- package/src/tokens/molecules/chart.css +0 -3
- package/src/tokens/molecules/checkbox-field.css +0 -6
- package/src/tokens/molecules/consent.css +1 -0
- package/src/tokens/molecules/conversation-thread.css +10 -0
- package/src/tokens/molecules/date-picker-field.css +0 -6
- package/src/tokens/molecules/date-time-field.css +0 -6
- package/src/tokens/molecules/dropdown-field.css +0 -6
- package/src/tokens/molecules/file-upload-field.css +0 -6
- package/src/tokens/molecules/floating-toolbar.css +18 -0
- package/src/tokens/molecules/floating-toolbar.ts +4 -0
- package/src/tokens/molecules/input-field.css +0 -1
- package/src/tokens/molecules/input-phone-field.css +0 -6
- package/src/tokens/molecules/modal.css +1 -0
- package/src/tokens/molecules/multi-select-field.css +0 -6
- package/src/tokens/molecules/number-input-field.css +0 -6
- package/src/tokens/molecules/otp-field.css +0 -6
- package/src/tokens/molecules/radio-field.css +0 -6
- package/src/tokens/molecules/recurrence-field.css +1 -0
- package/src/tokens/molecules/select-field.css +0 -6
- package/src/tokens/molecules/sidebar-nav.css +0 -6
- package/src/tokens/molecules/site-search.css +0 -2
- package/src/tokens/molecules/switcher-field.css +0 -1
- package/src/tokens/molecules/table.css +1 -0
- package/src/tokens/molecules/textarea-field.css +0 -6
- package/src/tokens/molecules/time-field.css +0 -6
- package/src/tokens/scss/_index.legacy.scss +1 -0
- package/src/tokens/scss/_index.scss +1 -0
- package/src/tokens/scss/components/_async-multi-select.scss +4 -0
- package/src/tokens/scss/components/_async-select.scss +3 -0
- package/src/tokens/scss/components/_autocomplete.scss +1 -0
- package/src/tokens/scss/components/_breadcrumb.scss +0 -2
- package/src/tokens/scss/components/_button.scss +0 -23
- package/src/tokens/scss/components/_control.scss +0 -4
- package/src/tokens/scss/components/_file-upload.scss +0 -4
- package/src/tokens/scss/components/_site-header.scss +0 -1
- package/src/tokens/scss/molecules/_async-multi-select-field.scss +0 -5
- package/src/tokens/scss/molecules/_async-select-field.scss +0 -5
- package/src/tokens/scss/molecules/_autocomplete-field.scss +0 -5
- package/src/tokens/scss/molecules/_avatar-upload.scss +0 -5
- package/src/tokens/scss/molecules/_calendar-roster.scss +4 -0
- package/src/tokens/scss/molecules/_chart.scss +0 -2
- package/src/tokens/scss/molecules/_checkbox-field.scss +0 -5
- package/src/tokens/scss/molecules/_consent.scss +1 -0
- package/src/tokens/scss/molecules/_conversation-thread.scss +3 -0
- package/src/tokens/scss/molecules/_date-picker-field.scss +0 -5
- package/src/tokens/scss/molecules/_date-time-field.scss +0 -5
- package/src/tokens/scss/molecules/_dropdown-field.scss +0 -5
- package/src/tokens/scss/molecules/_file-upload-field.scss +0 -5
- package/src/tokens/scss/molecules/_floating-toolbar.scss +15 -0
- package/src/tokens/scss/molecules/_input-field.scss +0 -1
- package/src/tokens/scss/molecules/_input-phone-field.scss +0 -5
- package/src/tokens/scss/molecules/_modal.scss +1 -0
- package/src/tokens/scss/molecules/_multi-select-field.scss +0 -5
- package/src/tokens/scss/molecules/_number-input-field.scss +0 -5
- package/src/tokens/scss/molecules/_otp-field.scss +0 -5
- package/src/tokens/scss/molecules/_radio-field.scss +0 -5
- package/src/tokens/scss/molecules/_recurrence-field.scss +1 -0
- package/src/tokens/scss/molecules/_select-field.scss +0 -5
- package/src/tokens/scss/molecules/_sidebar-nav.scss +0 -4
- package/src/tokens/scss/molecules/_site-search.scss +0 -2
- package/src/tokens/scss/molecules/_switcher-field.scss +0 -1
- package/src/tokens/scss/molecules/_table.scss +1 -0
- package/src/tokens/scss/molecules/_textarea-field.scss +0 -5
- package/src/tokens/scss/molecules/_time-field.scss +0 -5
- package/src/tokens/surface-dark-derived.css +2 -1
- package/src/tokens/surface-invert.css +15 -21
- package/src/tokens/surface-public.css +0 -19
- package/src/tokens/tokens.json +31 -129
- package/CHANGELOG.md +0 -8154
- package/dist/_types/data/home.d.ts +0 -83
- package/dist/_types/pages/Auth/AuthPage.d.ts +0 -24
- package/dist/_types/pages/Onboarding/OnboardingPage.d.ts +0 -37
- package/dist/_types/pages/Status/StatusPage.d.ts +0 -37
- package/dist/_types/pages/Status/_datos.d.ts +0 -47
- package/src/tokens/surface-light.css +0 -782
- package/src/tokens/utils.test.ts +0 -86
|
@@ -6,40 +6,28 @@ import { VisuallyHidden as n } from "./visually-hidden.js";
|
|
|
6
6
|
import { Button as r } from "./button.js";
|
|
7
7
|
import { Heading as i } from "./heading.js";
|
|
8
8
|
import { Paragraph as a } from "./paragraph.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
9
|
+
import { t as o } from "./_shared/side-offset.js";
|
|
10
|
+
import { Popover as s } from "./popover.js";
|
|
11
|
+
import { Text as c } from "./text.js";
|
|
12
|
+
import { t as l } from "./_shared/default-render-link.js";
|
|
13
|
+
import { NotificationButton as u } from "./notification-button.js";
|
|
14
|
+
import { useCallback as d, useId as f, useRef as p, useState as m } from "react";
|
|
15
|
+
import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
14
16
|
//#region src/stories/molecules/NotificationPanel/NotificationPanel.tsx
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
function _() {
|
|
20
|
-
let e = document.documentElement;
|
|
21
|
-
return g(getComputedStyle(e).getPropertyValue("--notification-panel-offset").trim());
|
|
22
|
-
}
|
|
23
|
-
function v({ children: e, ...t }) {
|
|
24
|
-
return /* @__PURE__ */ m("a", {
|
|
25
|
-
...t,
|
|
26
|
-
children: e
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
var y = "button, a[href]", b = "notification-panel__footer-link";
|
|
30
|
-
function x({ items: g = [], count: x = 0, max: S, onRead: C, onMarkAllRead: w, allHref: T, preferencesHref: E, renderLink: D = v, label: O, countLabel: k, panelLabel: A, unreadLabel: j, emptyLabel: M, allLabel: N, preferencesLabel: P, markAllReadLabel: F, open: I, defaultOpen: L, onOpenChange: R, className: z }) {
|
|
31
|
-
let B = e("notificationPanel"), V = u(), H = d(null), [U, W] = f([]), G = (e) => e.unread && !U.includes(e.id), K = g.some(G), q = (e) => {
|
|
17
|
+
var v = o("--notification-panel-offset"), y = "button, a[href]", b = "notification-panel__footer-link";
|
|
18
|
+
function x({ items: o = [], count: x = 0, max: S, onRead: C, onMarkAllRead: w, allHref: T, preferencesHref: E, renderLink: D = l, label: O, countLabel: k, panelLabel: A, unreadLabel: j, emptyLabel: M, allLabel: N, preferencesLabel: P, markAllReadLabel: F, open: I, defaultOpen: L, onOpenChange: R, className: z }) {
|
|
19
|
+
let B = e("notificationPanel"), V = f(), H = p(null), [U, W] = m([]), G = (e) => e.unread && !U.includes(e.id), K = o.some(G), q = (e) => {
|
|
32
20
|
G(e) && (W((t) => [...t, e.id]), C(e.id));
|
|
33
21
|
}, J = () => {
|
|
34
|
-
W(
|
|
35
|
-
}, Y =
|
|
22
|
+
W(o.map((e) => e.id)), w?.();
|
|
23
|
+
}, Y = d(() => {
|
|
36
24
|
let e = H.current;
|
|
37
25
|
return e ? e.querySelector(".notification-panel__item-action") ?? e.querySelector(y) : null;
|
|
38
26
|
}, []), X = (e, t) => {
|
|
39
27
|
e || W([]), R?.(e, t);
|
|
40
28
|
}, Z = `${V}-title`, Q = B("panel", A);
|
|
41
|
-
return /* @__PURE__ */
|
|
42
|
-
trigger: /* @__PURE__ */
|
|
29
|
+
return /* @__PURE__ */ g(s, {
|
|
30
|
+
trigger: /* @__PURE__ */ g(u, {
|
|
43
31
|
count: x,
|
|
44
32
|
max: S,
|
|
45
33
|
label: O,
|
|
@@ -47,62 +35,62 @@ function x({ items: g = [], count: x = 0, max: S, onRead: C, onMarkAllRead: w, a
|
|
|
47
35
|
}),
|
|
48
36
|
label: Q,
|
|
49
37
|
align: "end",
|
|
50
|
-
sideOffset:
|
|
38
|
+
sideOffset: v,
|
|
51
39
|
open: I,
|
|
52
40
|
defaultOpen: L,
|
|
53
41
|
onOpenChange: X,
|
|
54
42
|
initialFocus: Y,
|
|
55
43
|
className: ["notification-panel", z].filter(Boolean).join(" "),
|
|
56
|
-
children: /* @__PURE__ */
|
|
44
|
+
children: /* @__PURE__ */ _("div", {
|
|
57
45
|
className: "notification-panel__body",
|
|
58
46
|
ref: H,
|
|
59
47
|
children: [
|
|
60
|
-
/* @__PURE__ */
|
|
48
|
+
/* @__PURE__ */ g(n, { children: /* @__PURE__ */ g(i, {
|
|
61
49
|
level: 2,
|
|
62
50
|
size: 3,
|
|
63
51
|
id: Z,
|
|
64
52
|
children: Q
|
|
65
53
|
}) }),
|
|
66
|
-
|
|
54
|
+
o.length === 0 ? /* @__PURE__ */ g("div", {
|
|
67
55
|
className: "notification-panel__empty",
|
|
68
|
-
children: /* @__PURE__ */
|
|
56
|
+
children: /* @__PURE__ */ g(a, {
|
|
69
57
|
size: "small",
|
|
70
58
|
children: B("empty", M)
|
|
71
59
|
})
|
|
72
|
-
}) : /* @__PURE__ */
|
|
60
|
+
}) : /* @__PURE__ */ g("ul", {
|
|
73
61
|
className: "notification-panel__list",
|
|
74
62
|
"aria-labelledby": Z,
|
|
75
|
-
children:
|
|
63
|
+
children: o.map((e, r) => {
|
|
76
64
|
let i = G(e), a = `${V}-t-${r}`;
|
|
77
|
-
return /* @__PURE__ */
|
|
65
|
+
return /* @__PURE__ */ g("li", {
|
|
78
66
|
className: "notification-panel__item",
|
|
79
|
-
children: /* @__PURE__ */
|
|
67
|
+
children: /* @__PURE__ */ _("button", {
|
|
80
68
|
type: "button",
|
|
81
69
|
className: "notification-panel__item-action",
|
|
82
70
|
"aria-disabled": i ? void 0 : !0,
|
|
83
71
|
onClick: () => q(e),
|
|
84
|
-
children: [/* @__PURE__ */
|
|
72
|
+
children: [/* @__PURE__ */ g("span", {
|
|
85
73
|
className: "notification-panel__indicator",
|
|
86
|
-
children: i && /* @__PURE__ */ h
|
|
74
|
+
children: i && /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(t, {
|
|
87
75
|
name: "dot",
|
|
88
76
|
size: "sm",
|
|
89
77
|
className: "notification-panel__dot"
|
|
90
|
-
}), /* @__PURE__ */
|
|
91
|
-
}), /* @__PURE__ */
|
|
78
|
+
}), /* @__PURE__ */ g(n, { children: B("unread", j) })] })
|
|
79
|
+
}), /* @__PURE__ */ _("span", {
|
|
92
80
|
className: "notification-panel__item-text",
|
|
93
81
|
children: [
|
|
94
|
-
/* @__PURE__ */
|
|
82
|
+
/* @__PURE__ */ g(c, {
|
|
95
83
|
id: a,
|
|
96
84
|
tone: i ? "default" : "muted",
|
|
97
85
|
className: "notification-panel__item-title",
|
|
98
86
|
children: e.title
|
|
99
87
|
}),
|
|
100
|
-
e.body && /* @__PURE__ */
|
|
88
|
+
e.body && /* @__PURE__ */ g(c, {
|
|
101
89
|
tone: "muted",
|
|
102
90
|
className: "notification-panel__item-body",
|
|
103
91
|
children: e.body
|
|
104
92
|
}),
|
|
105
|
-
/* @__PURE__ */
|
|
93
|
+
/* @__PURE__ */ g(c, {
|
|
106
94
|
tone: "muted",
|
|
107
95
|
className: "notification-panel__item-time",
|
|
108
96
|
children: e.time
|
|
@@ -113,9 +101,9 @@ function x({ items: g = [], count: x = 0, max: S, onRead: C, onMarkAllRead: w, a
|
|
|
113
101
|
}, e.id);
|
|
114
102
|
})
|
|
115
103
|
}),
|
|
116
|
-
w && K && /* @__PURE__ */
|
|
104
|
+
w && K && /* @__PURE__ */ g("div", {
|
|
117
105
|
className: "notification-panel__mark-all",
|
|
118
|
-
children: /* @__PURE__ */
|
|
106
|
+
children: /* @__PURE__ */ g(r, {
|
|
119
107
|
variant: "outline",
|
|
120
108
|
size: "sm",
|
|
121
109
|
block: !0,
|
|
@@ -123,9 +111,9 @@ function x({ items: g = [], count: x = 0, max: S, onRead: C, onMarkAllRead: w, a
|
|
|
123
111
|
children: B("markAllRead", F)
|
|
124
112
|
})
|
|
125
113
|
}),
|
|
126
|
-
/* @__PURE__ */
|
|
114
|
+
/* @__PURE__ */ g("div", {
|
|
127
115
|
className: "notification-panel__footer",
|
|
128
|
-
children: /* @__PURE__ */
|
|
116
|
+
children: /* @__PURE__ */ _("div", {
|
|
129
117
|
className: "notification-panel__footer-links",
|
|
130
118
|
children: [D({
|
|
131
119
|
href: T,
|
package/dist/number-badge.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.number-badge{min-
|
|
1
|
+
.number-badge{min-inline-size:var(--number-badge-min-size);block-size:var(--number-badge-min-size);padding-inline:var(--number-badge-padding-inline);border-radius:var(--number-badge-border-radius);font-family:var(--number-badge-font-family);font-size:var(--number-badge-font-size);font-weight:var(--number-badge-font-weight);line-height:var(--number-badge-line-height);white-space:nowrap;justify-content:center;align-items:center;display:inline-flex}.number-badge--primary{background-color:var(--number-badge-primary-bg);color:var(--number-badge-primary-color)}.number-badge--accent-1{background-color:var(--number-badge-accent-1-bg);color:var(--number-badge-accent-1-color)}.number-badge--accent-2{background-color:var(--number-badge-accent-2-bg);color:var(--number-badge-accent-2-color)}.number-badge--support-1{background-color:var(--number-badge-support-1-bg);color:var(--number-badge-support-1-color)}.number-badge--support-2{background-color:var(--number-badge-support-2-bg);color:var(--number-badge-support-2-color)}.number-badge--danger{background-color:var(--number-badge-danger-bg);color:var(--number-badge-danger-color)}.number-badge--success{background-color:var(--number-badge-success-bg);color:var(--number-badge-success-color)}.number-badge--neutral{background-color:var(--number-badge-neutral-bg);color:var(--number-badge-neutral-color)}
|
package/dist/number-input.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.number-input{min-block-size:var(--number-input-height);border-radius:var(--number-input-border-radius);border-width:var(--number-input-border-width);border-style:var(--number-input-border-style);border-color:var(--number-input-border-color);background-color:var(--number-input-bg);transition:border-color var(--number-input-transition-duration) var(--number-input-transition-easing);box-sizing:border-box;align-items:stretch;display:inline-flex;overflow:hidden}.number-input.number-input--focused{box-shadow:inset 0 0 0 calc(var(--number-input-focus-ring-width) + var(--number-input-focus-ring-inset-offset)) var(--number-input-focus-ring-color), inset 0 0 0 var(--number-input-focus-ring-inset-offset) var(--number-input-bg);border-color:var(--number-input-focus-border-color);outline:none}.number-input__field{min-
|
|
1
|
+
.number-input{min-block-size:var(--number-input-height);border-radius:var(--number-input-border-radius);border-width:var(--number-input-border-width);border-style:var(--number-input-border-style);border-color:var(--number-input-border-color);background-color:var(--number-input-bg);transition:border-color var(--number-input-transition-duration) var(--number-input-transition-easing);box-sizing:border-box;align-items:stretch;display:inline-flex;overflow:hidden}.number-input.number-input--focused{box-shadow:inset 0 0 0 calc(var(--number-input-focus-ring-width) + var(--number-input-focus-ring-inset-offset)) var(--number-input-focus-ring-color), inset 0 0 0 var(--number-input-focus-ring-inset-offset) var(--number-input-bg);border-color:var(--number-input-focus-border-color);outline:none}.number-input__field{min-inline-size:0;padding-block:0;padding-inline:var(--number-input-padding-inline);color:var(--number-input-color);font-family:var(--number-input-font-family);font-size:var(--number-input-font-size);font-weight:var(--number-input-font-weight);line-height:var(--number-input-line-height);text-align:center;-moz-appearance:textfield;background-color:#0000;border:none;outline:none;flex:1}.number-input__field::-webkit-inner-spin-button{appearance:none;margin:0}.number-input__field::-webkit-outer-spin-button{appearance:none;margin:0}.number-input__btn{inline-size:var(--number-input-btn-width);background-color:var(--number-input-btn-bg);color:var(--number-input-btn-color);cursor:pointer;transition:box-shadow var(--number-input-transition-duration) var(--number-input-transition-easing);border:none;flex-shrink:0;justify-content:center;align-items:center;display:flex}.number-input__btn:hover:not(:disabled){box-shadow:inset 0 calc(-1 * var(--number-input-btn-hover-line-width)) 0 0 var(--number-input-btn-hover-line-color)}.number-input__btn--decrement{border-inline-end-width:var(--number-input-border-width);border-inline-end-style:var(--number-input-border-style);border-inline-end-color:var(--number-input-btn-separator-color)}.number-input__btn--increment{border-inline-start-width:var(--number-input-border-width);border-inline-start-style:var(--number-input-border-style);border-inline-start-color:var(--number-input-btn-separator-color)}.number-input.number-input--error{border-color:var(--number-input-error-border-color);background-color:var(--number-input-error-bg)}.number-input.number-input--error .number-input__field{color:var(--number-input-error-color)}.number-input.number-input--error.number-input--focused{box-shadow:inset 0 0 0 calc(var(--number-input-focus-ring-width) + var(--number-input-focus-ring-inset-offset)) var(--number-input-error-focus-ring-color), inset 0 0 0 var(--number-input-focus-ring-inset-offset) var(--number-input-error-bg);border-color:var(--number-input-error-focus-border-color);outline:none}.number-input.number-input--disabled{cursor:var(--number-input-disabled-cursor);background-color:var(--number-input-disabled-bg);border-color:var(--number-input-disabled-border-color);pointer-events:none}.number-input.number-input--disabled .number-input__field{color:var(--number-input-disabled-color)}.number-input.number-input--disabled .number-input__btn{color:var(--number-input-disabled-btn-color)}.number-input.number-input--sm{--number-input-height:var(--number-input-sm-height);--number-input-padding-inline:var(--number-input-sm-padding-inline);--number-input-font-size:var(--number-input-sm-font-size)}.number-input.number-input--lg{--number-input-height:var(--number-input-lg-height);--number-input-padding-inline:var(--number-input-lg-padding-inline);--number-input-font-size:var(--number-input-lg-font-size)}.number-input.number-input--compact{--number-input-height:var(--number-input-compact-height);--number-input-padding-inline:var(--number-input-compact-padding-inline);--number-input-font-size:var(--number-input-compact-font-size);--number-input-btn-width:var(--number-input-compact-btn-width)}.number-input.number-input--compact .number-input__field{inline-size:var(--number-input-compact-field-width);flex:none}
|
package/dist/org-switcher.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.org-switcher__trigger{all:unset;box-sizing:border-box;align-items:center;gap:var(--org-switcher-trigger-gap);
|
|
1
|
+
.org-switcher__trigger{all:unset;box-sizing:border-box;align-items:center;gap:var(--org-switcher-trigger-gap);inline-size:auto;max-inline-size:100%;padding-block:var(--org-switcher-trigger-padding-block);padding-inline:var(--org-switcher-trigger-padding-inline);border-radius:var(--org-switcher-trigger-border-radius);cursor:pointer;transition:background-color var(--org-switcher-transition-duration) var(--org-switcher-transition-easing);display:flex}.org-switcher__trigger.org-switcher__trigger--block{inline-size:100%}.org-switcher__trigger.org-switcher__trigger--compact{justify-content:center;padding-inline:0}.org-switcher__trigger:focus-visible{outline:var(--org-switcher-focus-ring-width) solid var(--org-switcher-focus-ring-color);outline-offset:var(--org-switcher-focus-ring-offset)}.org-switcher__name{text-overflow:ellipsis;white-space:nowrap;min-inline-size:0;font-size:var(--org-switcher-name-font-size);font-weight:var(--org-switcher-name-font-weight);color:var(--org-switcher-name-color);flex:1;overflow:hidden}.org-switcher__chevron{transition:transform var(--org-switcher-transition-duration) var(--org-switcher-transition-easing);flex-shrink:0;transform:rotate(90deg)}.org-switcher__trigger[data-popup-open] .org-switcher__chevron{transform:rotate(-90deg)}@keyframes org-switcher-open{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes org-switcher-close{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.95)}}.org-switcher__content{box-sizing:border-box;background-color:var(--org-switcher-content-bg);border-width:var(--org-switcher-content-border-width);border-style:solid;border-color:var(--org-switcher-content-border-color);border-radius:var(--org-switcher-content-border-radius);box-shadow:var(--org-switcher-content-shadow);padding-block:var(--org-switcher-content-padding-block);padding-inline:var(--org-switcher-content-padding-inline);min-inline-size:var(--org-switcher-content-min-width);transform-origin:var(--transform-origin);max-block-size:var(--org-switcher-content-max-height,var(--available-height));overscroll-behavior:contain;outline:none;overflow-y:auto}.org-switcher__content[data-open]{animation:org-switcher-open var(--org-switcher-transition-duration) var(--org-switcher-transition-easing)}.org-switcher__content[data-closed]{animation:org-switcher-close var(--org-switcher-transition-duration) var(--org-switcher-transition-easing)}.org-switcher__item{align-items:center;gap:var(--org-switcher-trigger-gap);padding-block:var(--org-switcher-item-padding-block);padding-inline:var(--org-switcher-item-padding-inline);border-radius:var(--org-switcher-item-border-radius);font-size:var(--org-switcher-item-font-size);font-weight:var(--org-switcher-item-font-weight);color:var(--org-switcher-item-color);box-shadow:none;cursor:pointer;transition:background-color var(--org-switcher-transition-duration) var(--org-switcher-transition-easing), color var(--org-switcher-transition-duration) var(--org-switcher-transition-easing);outline:none;text-decoration:none;display:flex}.org-switcher__item:focus-visible{outline:none}.org-switcher__item[data-highlighted]{background-color:var(--org-switcher-item-highlighted-bg);color:var(--org-switcher-item-highlighted-color)}.org-switcher__item--active,.org-switcher__item--active[data-highlighted]{font-weight:var(--org-switcher-name-font-weight)}.org-switcher__separator{block-size:var(--org-switcher-separator-height);background-color:var(--org-switcher-separator-color);margin-block:var(--org-switcher-separator-margin-block);border:none}.org-switcher__item.org-switcher__item--destructive{color:var(--org-switcher-item-destructive-color)}.org-switcher__item.org-switcher__item--destructive[data-highlighted]{background-color:var(--org-switcher-item-destructive-highlighted-bg);color:var(--org-switcher-item-destructive-highlighted-color)}.org-switcher__positioner{z-index:var(--org-switcher-content-z-index)}
|
package/dist/org-switcher.js
CHANGED
|
@@ -4,22 +4,24 @@ import { n as e } from "./_shared/brandmessagescontext.js";
|
|
|
4
4
|
import { Icon as t } from "./icon.js";
|
|
5
5
|
import { n } from "./_shared/portal-container.js";
|
|
6
6
|
import { Avatar as r } from "./avatar.js";
|
|
7
|
-
import {
|
|
7
|
+
import { t as i } from "./_shared/default-render-link.js";
|
|
8
|
+
import { t as a } from "./_shared/dropdownitems.js";
|
|
8
9
|
import { n as o } from "./_shared/sidebarcontext.js";
|
|
9
10
|
import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
10
11
|
import { Menu as u } from "@base-ui/react/menu";
|
|
11
12
|
//#region src/stories/molecules/OrgSwitcher/OrgSwitcher.tsx
|
|
12
|
-
function d({ label: d, block: f = !1, compact: p, current: m, organizations: h, onOrgChange: g, defaultOpen: _, items: v, renderLink: y =
|
|
13
|
-
let
|
|
13
|
+
function d({ label: d, block: f = !1, compact: p, current: m, organizations: h, onOrgChange: g, defaultOpen: _, items: v, renderLink: y = i, className: b }) {
|
|
14
|
+
let x = e("orgSwitcher"), S = n(void 0), C = h.filter((e) => e.id !== m.id), w = o(), T = p ?? w.rail;
|
|
14
15
|
return /* @__PURE__ */ l(u.Root, {
|
|
15
16
|
defaultOpen: _,
|
|
16
17
|
children: [/* @__PURE__ */ l(u.Trigger, {
|
|
17
18
|
className: [
|
|
18
19
|
"org-switcher__trigger",
|
|
19
|
-
f && !
|
|
20
|
-
|
|
20
|
+
f && !T ? "org-switcher__trigger--block" : "",
|
|
21
|
+
T ? "org-switcher__trigger--compact" : "",
|
|
22
|
+
b
|
|
21
23
|
].filter(Boolean).join(" "),
|
|
22
|
-
"aria-label": d ??
|
|
24
|
+
"aria-label": d ?? x("trigger")(m.name),
|
|
23
25
|
children: [
|
|
24
26
|
/* @__PURE__ */ c(r, {
|
|
25
27
|
src: m.logoUrl,
|
|
@@ -28,18 +30,18 @@ function d({ label: d, block: f = !1, compact: p, current: m, organizations: h,
|
|
|
28
30
|
size: "sm",
|
|
29
31
|
shape: "square"
|
|
30
32
|
}),
|
|
31
|
-
!
|
|
33
|
+
!T && /* @__PURE__ */ c("span", {
|
|
32
34
|
className: "org-switcher__name",
|
|
33
35
|
children: m.name
|
|
34
36
|
}),
|
|
35
|
-
!
|
|
37
|
+
!T && /* @__PURE__ */ c(t, {
|
|
36
38
|
name: "chevron",
|
|
37
39
|
size: "sm",
|
|
38
40
|
className: "org-switcher__chevron"
|
|
39
41
|
})
|
|
40
42
|
]
|
|
41
43
|
}), /* @__PURE__ */ c(u.Portal, {
|
|
42
|
-
container:
|
|
44
|
+
container: S,
|
|
43
45
|
children: /* @__PURE__ */ c(u.Positioner, {
|
|
44
46
|
className: "org-switcher__positioner",
|
|
45
47
|
sideOffset: 4,
|
|
@@ -59,7 +61,7 @@ function d({ label: d, block: f = !1, compact: p, current: m, organizations: h,
|
|
|
59
61
|
shape: "square"
|
|
60
62
|
}), /* @__PURE__ */ c("span", { children: m.name })]
|
|
61
63
|
}),
|
|
62
|
-
|
|
64
|
+
C.map((e) => /* @__PURE__ */ l(u.Item, {
|
|
63
65
|
className: "org-switcher__item",
|
|
64
66
|
onClick: () => g(e.id),
|
|
65
67
|
children: [/* @__PURE__ */ c(r, {
|
|
@@ -70,7 +72,7 @@ function d({ label: d, block: f = !1, compact: p, current: m, organizations: h,
|
|
|
70
72
|
shape: "square"
|
|
71
73
|
}), /* @__PURE__ */ c("span", { children: e.name })]
|
|
72
74
|
}, e.id)),
|
|
73
|
-
v && v.length > 0 && /* @__PURE__ */ l(s, { children: [/* @__PURE__ */ c(u.Separator, { className: "org-switcher__separator" }),
|
|
75
|
+
v && v.length > 0 && /* @__PURE__ */ l(s, { children: [/* @__PURE__ */ c(u.Separator, { className: "org-switcher__separator" }), a({
|
|
74
76
|
items: v,
|
|
75
77
|
itemClass: (e) => ["org-switcher__item", e ? "org-switcher__item--destructive" : ""].filter(Boolean).join(" "),
|
|
76
78
|
separatorClass: "org-switcher__separator",
|
package/dist/password-field.js
CHANGED
|
@@ -7,60 +7,61 @@ import { n as r } from "./_shared/form-size.js";
|
|
|
7
7
|
import { ErrorText as i } from "./error-text.js";
|
|
8
8
|
import { Input as a } from "./input.js";
|
|
9
9
|
import { Label as o } from "./label.js";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
10
|
+
import { n as s } from "./_shared/field-labels.js";
|
|
11
|
+
import { forwardRef as c, useId as l, useState as u } from "react";
|
|
12
|
+
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
12
13
|
//#region src/stories/molecules/PasswordField/PasswordField.tsx
|
|
13
|
-
var
|
|
14
|
-
let
|
|
15
|
-
return /* @__PURE__ */
|
|
16
|
-
className: ["password-field",
|
|
14
|
+
var p = c(function({ label: c, labelHidden: p, error: m = !1, errorMessage: h, helperText: g, action: _, size: v, showPasswordLabel: y, hidePasswordLabel: b, className: x, id: S, disabled: C, placeholder: w, ...T }, E) {
|
|
15
|
+
let D = e("passwordField"), O = r(v), k = s(p), A = l(), j = S ?? A, [M, N] = u(!1), P = h ? `${j}-error` : void 0, F = g ? `${j}-helper` : void 0, I = [P, F].filter(Boolean).join(" ") || void 0;
|
|
16
|
+
return /* @__PURE__ */ f("div", {
|
|
17
|
+
className: ["password-field", x ?? ""].filter(Boolean).join(" "),
|
|
17
18
|
children: [
|
|
18
|
-
|
|
19
|
-
htmlFor:
|
|
20
|
-
hidden:
|
|
21
|
-
size:
|
|
22
|
-
children:
|
|
19
|
+
c && /* @__PURE__ */ d(o, {
|
|
20
|
+
htmlFor: j,
|
|
21
|
+
hidden: k,
|
|
22
|
+
size: O,
|
|
23
|
+
children: c
|
|
23
24
|
}),
|
|
24
|
-
/* @__PURE__ */
|
|
25
|
-
className: ["password-field__wrapper",
|
|
26
|
-
children: [/* @__PURE__ */
|
|
27
|
-
ref:
|
|
28
|
-
id:
|
|
29
|
-
size:
|
|
30
|
-
error:
|
|
31
|
-
placeholder:
|
|
32
|
-
"aria-describedby":
|
|
33
|
-
...
|
|
34
|
-
type:
|
|
35
|
-
disabled:
|
|
36
|
-
}), /* @__PURE__ */
|
|
25
|
+
/* @__PURE__ */ f("div", {
|
|
26
|
+
className: ["password-field__wrapper", O === "md" ? "" : `password-field__wrapper--${O}`].filter(Boolean).join(" "),
|
|
27
|
+
children: [/* @__PURE__ */ d(a, {
|
|
28
|
+
ref: E,
|
|
29
|
+
id: j,
|
|
30
|
+
size: O,
|
|
31
|
+
error: m || !!h,
|
|
32
|
+
placeholder: w ?? (c && k ? c : void 0),
|
|
33
|
+
"aria-describedby": I,
|
|
34
|
+
...T,
|
|
35
|
+
type: M ? "text" : "password",
|
|
36
|
+
disabled: C
|
|
37
|
+
}), /* @__PURE__ */ f("button", {
|
|
37
38
|
type: "button",
|
|
38
39
|
className: "password-field__toggle",
|
|
39
|
-
onClick: () =>
|
|
40
|
-
disabled:
|
|
41
|
-
"aria-controls":
|
|
42
|
-
"aria-pressed":
|
|
43
|
-
children: [/* @__PURE__ */
|
|
44
|
-
name:
|
|
40
|
+
onClick: () => N((e) => !e),
|
|
41
|
+
disabled: C,
|
|
42
|
+
"aria-controls": j,
|
|
43
|
+
"aria-pressed": M,
|
|
44
|
+
children: [/* @__PURE__ */ d(n, { children: M ? D("hide", b) : D("show", y) }), /* @__PURE__ */ d(t, {
|
|
45
|
+
name: M ? "eye-off" : "eye",
|
|
45
46
|
className: "password-field__icon"
|
|
46
47
|
})]
|
|
47
48
|
})]
|
|
48
49
|
}),
|
|
49
|
-
|
|
50
|
-
id:
|
|
51
|
-
children:
|
|
50
|
+
h && /* @__PURE__ */ d(i, {
|
|
51
|
+
id: P,
|
|
52
|
+
children: h
|
|
52
53
|
}),
|
|
53
|
-
|
|
54
|
-
id:
|
|
54
|
+
g && /* @__PURE__ */ d("span", {
|
|
55
|
+
id: F,
|
|
55
56
|
className: "password-field__helper",
|
|
56
|
-
children:
|
|
57
|
+
children: g
|
|
57
58
|
}),
|
|
58
|
-
|
|
59
|
+
_ && /* @__PURE__ */ d("div", {
|
|
59
60
|
className: "password-field__action",
|
|
60
|
-
children:
|
|
61
|
+
children: _
|
|
61
62
|
})
|
|
62
63
|
]
|
|
63
64
|
});
|
|
64
65
|
});
|
|
65
66
|
//#endregion
|
|
66
|
-
export {
|
|
67
|
+
export { p as PasswordField };
|
package/dist/popover.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.popover{box-sizing:border-box;background-color:var(--popover-bg);border-width:var(--popover-border-width);border-style:solid;border-color:var(--popover-border-color);border-radius:var(--popover-border-radius);padding-block:var(--popover-padding-block);padding-inline:var(--popover-padding-inline);transform-origin:var(--transform-origin);max-
|
|
1
|
+
.popover{box-sizing:border-box;background-color:var(--popover-bg);border-width:var(--popover-border-width);border-style:solid;border-color:var(--popover-border-color);border-radius:var(--popover-border-radius);padding-block:var(--popover-padding-block);padding-inline:var(--popover-padding-inline);transform-origin:var(--transform-origin);max-block-size:var(--popover-max-height,var(--available-height));overscroll-behavior:contain;animation-duration:var(--popover-transition-duration);animation-timing-function:var(--popover-transition-easing);outline:none;overflow-y:auto}.popover:focus-visible{outline:var(--popover-focus-ring-width) solid var(--popover-focus-ring-color);outline-offset:var(--popover-focus-ring-offset)}.popover[data-open]{animation-name:popover-in}.popover[data-closed]{animation-name:popover-out}@keyframes popover-in{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes popover-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.95)}}.popover__positioner{z-index:var(--popover-z-index)}
|
package/dist/popover.js
CHANGED
|
@@ -1,34 +1,28 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import './popover.css';
|
|
3
3
|
import { n as e } from "./_shared/portal-container.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { t } from "./_shared/side-offset.js";
|
|
5
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
6
|
+
import { Popover as i } from "@base-ui/react/popover";
|
|
6
7
|
//#region src/stories/atoms/Popover/Popover.tsx
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
return Number.isNaN(t) ? 0 : e.endsWith("rem") ? t * parseFloat(getComputedStyle(document.documentElement).fontSize) : t;
|
|
10
|
-
}
|
|
11
|
-
function a() {
|
|
12
|
-
let e = document.documentElement;
|
|
13
|
-
return i(getComputedStyle(e).getPropertyValue("--popover-offset").trim());
|
|
14
|
-
}
|
|
15
|
-
function o({ trigger: i, anchor: o, children: s, label: c, open: l, defaultOpen: u, onOpenChange: d, onPointerDownOutside: f, onFocusOutside: p, onEscapeKeyDown: m, side: h = "bottom", align: g = "start", sideOffset: _, initialFocus: v, container: y, className: b }) {
|
|
8
|
+
var a = t("--popover-offset");
|
|
9
|
+
function o({ trigger: t, anchor: o, children: s, label: c, open: l, defaultOpen: u, onOpenChange: d, onPointerDownOutside: f, onFocusOutside: p, onEscapeKeyDown: m, side: h = "bottom", align: g = "start", sideOffset: _, initialFocus: v, container: y, className: b }) {
|
|
16
10
|
let x = e(y);
|
|
17
|
-
return /* @__PURE__ */
|
|
11
|
+
return /* @__PURE__ */ r(i.Root, {
|
|
18
12
|
open: l,
|
|
19
13
|
defaultOpen: u,
|
|
20
14
|
onOpenChange: (e, t) => {
|
|
21
15
|
e || (t.reason === "outside-press" ? f?.(t) : t.reason === "focus-out" ? p?.(t) : t.reason === "escape-key" && m?.(t)), d?.(e, t);
|
|
22
16
|
},
|
|
23
|
-
children: [
|
|
17
|
+
children: [t !== void 0 && /* @__PURE__ */ n(i.Trigger, { render: t }), /* @__PURE__ */ n(i.Portal, {
|
|
24
18
|
container: x,
|
|
25
|
-
children: /* @__PURE__ */
|
|
19
|
+
children: /* @__PURE__ */ n(i.Positioner, {
|
|
26
20
|
className: "popover__positioner",
|
|
27
21
|
anchor: o,
|
|
28
22
|
side: h,
|
|
29
23
|
align: g,
|
|
30
24
|
sideOffset: _ ?? a,
|
|
31
|
-
children: /* @__PURE__ */
|
|
25
|
+
children: /* @__PURE__ */ n(i.Popup, {
|
|
32
26
|
"aria-label": c,
|
|
33
27
|
initialFocus: v,
|
|
34
28
|
className: ["popover", b].filter(Boolean).join(" "),
|
package/dist/prev-next-nav.js
CHANGED
|
@@ -43,23 +43,24 @@ function a({ href: e, onClick: a, label: o, title: s, disabled: c, direction: l,
|
|
|
43
43
|
children: m
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
|
-
function o({ prevHref: t, nextHref: n, prevOnClick: o, nextOnClick: s, prevLabel: c, nextLabel: l, prevTitle: u, nextTitle: d, label: f, labelId: p, linkComponent: m, size: h = "md" }) {
|
|
47
|
-
let
|
|
46
|
+
function o({ prevHref: t, nextHref: n, prevOnClick: o, nextOnClick: s, prevLabel: c, nextLabel: l, prevTitle: u, nextTitle: d, label: f, labelId: p, linkComponent: m, size: h = "md", className: g }) {
|
|
47
|
+
let _ = e("prevNextNav"), v = h === "sm" ? "sm" : "md";
|
|
48
48
|
return /* @__PURE__ */ i("div", {
|
|
49
49
|
className: [
|
|
50
50
|
"prev-next-nav",
|
|
51
51
|
h === "sm" ? "prev-next-nav--sm" : "",
|
|
52
|
-
u !== void 0 || d !== void 0 ? "prev-next-nav--titled" : ""
|
|
52
|
+
u !== void 0 || d !== void 0 ? "prev-next-nav--titled" : "",
|
|
53
|
+
g
|
|
53
54
|
].filter(Boolean).join(" "),
|
|
54
55
|
children: [
|
|
55
56
|
/* @__PURE__ */ r(a, {
|
|
56
57
|
href: t,
|
|
57
58
|
onClick: o,
|
|
58
|
-
label:
|
|
59
|
+
label: _("previous", c),
|
|
59
60
|
disabled: !t && !o,
|
|
60
61
|
direction: "prev",
|
|
61
62
|
title: u,
|
|
62
|
-
chevronSize:
|
|
63
|
+
chevronSize: v,
|
|
63
64
|
linkComponent: m
|
|
64
65
|
}),
|
|
65
66
|
f !== void 0 && /* @__PURE__ */ r("strong", {
|
|
@@ -70,11 +71,11 @@ function o({ prevHref: t, nextHref: n, prevOnClick: o, nextOnClick: s, prevLabel
|
|
|
70
71
|
/* @__PURE__ */ r(a, {
|
|
71
72
|
href: n,
|
|
72
73
|
onClick: s,
|
|
73
|
-
label:
|
|
74
|
+
label: _("next", l),
|
|
74
75
|
disabled: !n && !s,
|
|
75
76
|
direction: "next",
|
|
76
77
|
title: d,
|
|
77
|
-
chevronSize:
|
|
78
|
+
chevronSize: v,
|
|
78
79
|
linkComponent: m
|
|
79
80
|
})
|
|
80
81
|
]
|
|
@@ -7,23 +7,24 @@ import { SiteShell as r } from "./site-shell.js";
|
|
|
7
7
|
import { forwardRef as i } from "react";
|
|
8
8
|
import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
9
9
|
//#region src/stories/templates/PublicPageShell/PublicPageShell.tsx
|
|
10
|
-
var c = i(function({ children: i, header: c, footer: l, preferences: u, preferencesLabel: d, preferencesWidth: f = "xl", mainWidth: p = "xl", mainSpace: m = "xl", mainFlush: h = !1, id: g = "main-content", shell: _ = !0 },
|
|
11
|
-
let
|
|
10
|
+
var c = i(function({ children: i, header: c, footer: l, preferences: u, preferencesLabel: d, preferencesWidth: f = "xl", mainWidth: p = "xl", mainSpace: m = "xl", mainFlush: h = !1, id: g = "main-content", shell: _ = !0, className: v }, y) {
|
|
11
|
+
let b = e("publicPageShell");
|
|
12
12
|
if (!_) return /* @__PURE__ */ o(a, { children: i });
|
|
13
|
-
let
|
|
13
|
+
let x = u && /* @__PURE__ */ o(t, {
|
|
14
14
|
as: "section",
|
|
15
15
|
width: f,
|
|
16
16
|
className: "public-page-shell__preferences",
|
|
17
|
-
"aria-label":
|
|
17
|
+
"aria-label": b("preferences", d),
|
|
18
18
|
children: /* @__PURE__ */ o("div", {
|
|
19
19
|
className: "public-page-shell__preferences-row",
|
|
20
20
|
children: u
|
|
21
21
|
})
|
|
22
22
|
});
|
|
23
23
|
return /* @__PURE__ */ o(r, {
|
|
24
|
-
ref:
|
|
24
|
+
ref: y,
|
|
25
|
+
className: v,
|
|
25
26
|
header: c && /* @__PURE__ */ o(n, { children: c }),
|
|
26
|
-
footer: (
|
|
27
|
+
footer: (x || l) && /* @__PURE__ */ s(a, { children: [x && /* @__PURE__ */ o(n, { children: x }), l && /* @__PURE__ */ o(n, { children: l })] }),
|
|
27
28
|
children: /* @__PURE__ */ o(t, {
|
|
28
29
|
as: "main",
|
|
29
30
|
id: g,
|
package/dist/radio.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.radio{appearance:none;box-sizing:border-box;
|
|
1
|
+
.radio{appearance:none;box-sizing:border-box;inline-size:var(--radio-size);block-size:var(--radio-size);border-width:var(--radio-border-width);border-style:var(--radio-border-style);border-color:var(--radio-border-color);border-radius:var(--radio-border-radius);background-color:var(--radio-bg);cursor:var(--radio-cursor);transition:border-color var(--radio-transition-duration) var(--radio-transition-easing);flex-shrink:0;place-content:center;display:grid;position:relative}.radio:after{content:"";inline-size:max(100%, var(--radio-target-size));block-size:max(100%, var(--radio-target-size));position:absolute;inset-block-start:50%;inset-inline-start:50%;translate:-50% -50%}.radio:before{content:"";inline-size:var(--radio-dot-size);block-size:var(--radio-dot-size);background-color:var(--radio-dot-color);transition:transform var(--radio-transition-duration) var(--radio-transition-easing);border-radius:50%;transform:scale(0)}.radio:checked:before{transform:scale(1)}.radio.radio--error{border-color:var(--radio-error-border-color)}.radio:focus-visible{outline:var(--radio-focus-ring-width) solid var(--radio-focus-ring-color);outline-offset:var(--radio-focus-ring-offset)}.radio:disabled{border-color:var(--radio-disabled-border-color);cursor:var(--radio-disabled-cursor);pointer-events:none}.radio:disabled:checked:before{background-color:var(--radio-disabled-dot-color)}.radio.radio--sm{--radio-size:var(--radio-sm-size);--radio-dot-size:var(--radio-sm-dot-size)}.radio.radio--lg{--radio-size:var(--radio-lg-size);--radio-dot-size:var(--radio-lg-dot-size)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.recurrence-field{gap:var(--recurrence-field-gap);flex-direction:column;display:flex}.recurrence-field__row{gap:var(--recurrence-field-row-gap);flex-wrap:wrap;display:flex}.recurrence-field__interval{inline-size:var(--recurrence-field-interval-width);flex:none}.recurrence-field__end{flex:
|
|
1
|
+
.recurrence-field{gap:var(--recurrence-field-gap);flex-direction:column;display:flex}.recurrence-field__row{gap:var(--recurrence-field-row-gap);flex-wrap:wrap;display:flex}.recurrence-field__interval{inline-size:var(--recurrence-field-interval-width);flex:none}.recurrence-field__end{flex:1 1 var(--recurrence-field-end-flex-basis);min-inline-size:0}.recurrence-field__weekdays-label{font-size:var(--recurrence-field-legend-font-size);font-weight:var(--recurrence-field-legend-font-weight);color:var(--recurrence-field-legend-color);margin-block-end:var(--recurrence-field-legend-margin-block-end);display:block}.recurrence-field__weekdays{gap:var(--recurrence-field-weekdays-gap);flex-wrap:wrap;display:flex}
|