@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
package/dist/card.js
CHANGED
|
@@ -3,12 +3,13 @@ import './card.css';
|
|
|
3
3
|
import { VisuallyHidden as e } from "./visually-hidden.js";
|
|
4
4
|
import { Arrow as t } from "./arrow.js";
|
|
5
5
|
import { Heading as n } from "./heading.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
6
|
+
import { t as r } from "./_shared/assign-ref.js";
|
|
7
|
+
import { Paragraph as i } from "./paragraph.js";
|
|
8
|
+
import { forwardRef as a, useCallback as o, useRef as s } from "react";
|
|
9
|
+
import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
10
|
+
import { useRender as d } from "@base-ui/react/use-render";
|
|
10
11
|
//#region src/stories/molecules/Card/Card.tsx
|
|
11
|
-
var
|
|
12
|
+
var f = a(function({ href: r, render: i, external: a = !1, title: o, description: s, ctaLabel: f, color: p = "outline", variant: m = "default", media: h, linkOverlay: g = !1, selectable: _ = !1, selected: v = !1, className: y, children: b, ...x }, S) {
|
|
12
13
|
let C = [
|
|
13
14
|
"card",
|
|
14
15
|
`card--${p}`,
|
|
@@ -17,26 +18,26 @@ var d = i(function({ href: r, render: i, external: a = !1, title: o, description
|
|
|
17
18
|
_ ? "card--selectable" : "",
|
|
18
19
|
_ && v ? "card--selected" : "",
|
|
19
20
|
y ?? ""
|
|
20
|
-
].filter(Boolean).join(" "), w = /* @__PURE__ */
|
|
21
|
-
o !== void 0 && /* @__PURE__ */
|
|
21
|
+
].filter(Boolean).join(" "), w = /* @__PURE__ */ u(c, { children: [
|
|
22
|
+
o !== void 0 && /* @__PURE__ */ l(n, {
|
|
22
23
|
level: 2,
|
|
23
24
|
size: 8,
|
|
24
25
|
children: o
|
|
25
26
|
}),
|
|
26
|
-
|
|
27
|
+
s && (typeof s == "string" ? /* @__PURE__ */ l("p", { children: s }) : s),
|
|
27
28
|
b,
|
|
28
|
-
f !== void 0 && /* @__PURE__ */
|
|
29
|
-
] }), T = h && /* @__PURE__ */
|
|
29
|
+
f !== void 0 && /* @__PURE__ */ u(c, { children: [/* @__PURE__ */ l(e, { children: f }), /* @__PURE__ */ l(t, { size: "lg" })] })
|
|
30
|
+
] }), T = h && /* @__PURE__ */ l("div", {
|
|
30
31
|
className: "card__media",
|
|
31
|
-
children: /* @__PURE__ */
|
|
32
|
+
children: /* @__PURE__ */ l("img", {
|
|
32
33
|
src: h.src,
|
|
33
34
|
alt: h.alt
|
|
34
35
|
})
|
|
35
|
-
}), E = m === "default" && !h ? w : /* @__PURE__ */
|
|
36
|
+
}), E = m === "default" && !h ? w : /* @__PURE__ */ u(c, { children: [T, /* @__PURE__ */ l("div", {
|
|
36
37
|
className: "card__body",
|
|
37
38
|
children: w
|
|
38
39
|
})] });
|
|
39
|
-
return
|
|
40
|
+
return d({
|
|
40
41
|
render: i,
|
|
41
42
|
ref: S,
|
|
42
43
|
enabled: i !== void 0,
|
|
@@ -45,12 +46,12 @@ var d = i(function({ href: r, render: i, external: a = !1, title: o, description
|
|
|
45
46
|
...x,
|
|
46
47
|
children: E
|
|
47
48
|
}
|
|
48
|
-
}) || (r === void 0 ? /* @__PURE__ */
|
|
49
|
+
}) || (r === void 0 ? /* @__PURE__ */ l("div", {
|
|
49
50
|
ref: S,
|
|
50
51
|
className: C,
|
|
51
52
|
...x,
|
|
52
53
|
children: b
|
|
53
|
-
}) : /* @__PURE__ */
|
|
54
|
+
}) : /* @__PURE__ */ l("a", {
|
|
54
55
|
ref: S,
|
|
55
56
|
href: r,
|
|
56
57
|
className: C,
|
|
@@ -62,21 +63,21 @@ var d = i(function({ href: r, render: i, external: a = !1, title: o, description
|
|
|
62
63
|
children: E
|
|
63
64
|
}));
|
|
64
65
|
});
|
|
65
|
-
function
|
|
66
|
+
function p(e, t, n) {
|
|
66
67
|
return [
|
|
67
68
|
e,
|
|
68
69
|
t ? "card__interactive" : "",
|
|
69
70
|
n
|
|
70
71
|
].filter(Boolean).join(" ");
|
|
71
72
|
}
|
|
72
|
-
var
|
|
73
|
-
return /* @__PURE__ */
|
|
73
|
+
var m = a(function({ interactive: e, className: t, ...n }, r) {
|
|
74
|
+
return /* @__PURE__ */ l("div", {
|
|
74
75
|
ref: r,
|
|
75
|
-
className:
|
|
76
|
+
className: p("card__header", e, t),
|
|
76
77
|
...n
|
|
77
78
|
});
|
|
78
|
-
}),
|
|
79
|
-
return /* @__PURE__ */
|
|
79
|
+
}), h = a(function({ level: e = 3, size: t = 4, className: r, children: i, ...a }, o) {
|
|
80
|
+
return /* @__PURE__ */ l(n, {
|
|
80
81
|
ref: o,
|
|
81
82
|
level: e,
|
|
82
83
|
size: t,
|
|
@@ -84,8 +85,8 @@ var p = i(function({ interactive: e, className: t, ...n }, r) {
|
|
|
84
85
|
...a,
|
|
85
86
|
children: i
|
|
86
87
|
});
|
|
87
|
-
}),
|
|
88
|
-
return /* @__PURE__ */
|
|
88
|
+
}), g = a(function({ size: e = "small", lines: t, className: n, children: r, ...a }, o) {
|
|
89
|
+
return /* @__PURE__ */ l(i, {
|
|
89
90
|
ref: o,
|
|
90
91
|
size: e,
|
|
91
92
|
className: [
|
|
@@ -94,27 +95,27 @@ var p = i(function({ interactive: e, className: t, ...n }, r) {
|
|
|
94
95
|
n
|
|
95
96
|
].filter(Boolean).join(" "),
|
|
96
97
|
...a,
|
|
97
|
-
children:
|
|
98
|
+
children: r
|
|
98
99
|
});
|
|
99
|
-
}),
|
|
100
|
-
let
|
|
101
|
-
return /* @__PURE__ */
|
|
102
|
-
ref:
|
|
103
|
-
|
|
104
|
-
}, [
|
|
100
|
+
}), _ = a(function({ isolate: e = !0, className: t, onClick: n, ...i }, a) {
|
|
101
|
+
let c = s(null);
|
|
102
|
+
return /* @__PURE__ */ l("div", {
|
|
103
|
+
ref: o((e) => {
|
|
104
|
+
c.current = e, r(a, e);
|
|
105
|
+
}, [a]),
|
|
105
106
|
className: ["card__action", t].filter(Boolean).join(" "),
|
|
106
107
|
onClick: (t) => {
|
|
107
108
|
if (e) {
|
|
108
109
|
t.stopPropagation();
|
|
109
|
-
let e =
|
|
110
|
+
let e = c.current;
|
|
110
111
|
(e?.contains(t.target) ?? !1) && e?.parentElement?.closest("a[href], [role=\"link\"]") && t.preventDefault();
|
|
111
112
|
}
|
|
112
113
|
n?.(t);
|
|
113
114
|
},
|
|
114
|
-
...
|
|
115
|
+
...i
|
|
115
116
|
});
|
|
116
|
-
}),
|
|
117
|
-
return /* @__PURE__ */
|
|
117
|
+
}), v = a(function({ isolate: e = !0, className: t, onClick: n, ...r }, i) {
|
|
118
|
+
return /* @__PURE__ */ l("div", {
|
|
118
119
|
ref: i,
|
|
119
120
|
className: ["card__selection", t].filter(Boolean).join(" "),
|
|
120
121
|
onClick: (t) => {
|
|
@@ -122,18 +123,18 @@ var p = i(function({ interactive: e, className: t, ...n }, r) {
|
|
|
122
123
|
},
|
|
123
124
|
...r
|
|
124
125
|
});
|
|
125
|
-
}),
|
|
126
|
-
return /* @__PURE__ */
|
|
126
|
+
}), y = a(function({ interactive: e, className: t, ...n }, r) {
|
|
127
|
+
return /* @__PURE__ */ l("div", {
|
|
127
128
|
ref: r,
|
|
128
|
-
className:
|
|
129
|
+
className: p("card__content", e, t),
|
|
129
130
|
...n
|
|
130
131
|
});
|
|
131
|
-
}),
|
|
132
|
-
return /* @__PURE__ */
|
|
132
|
+
}), b = a(function({ direction: e = "row", interactive: t, className: n, ...r }, i) {
|
|
133
|
+
return /* @__PURE__ */ l("div", {
|
|
133
134
|
ref: i,
|
|
134
|
-
className:
|
|
135
|
+
className: p("card__footer", t, [e === "column" ? "card__footer--column" : "", n].filter(Boolean).join(" ") || void 0),
|
|
135
136
|
...r
|
|
136
137
|
});
|
|
137
138
|
});
|
|
138
139
|
//#endregion
|
|
139
|
-
export {
|
|
140
|
+
export { f as Card, _ as CardAction, y as CardContent, g as CardDescription, b as CardFooter, m as CardHeader, v as CardSelection, h as CardTitle };
|
package/dist/chart.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.chart{gap:var(--chart-block-gap);font-family:var(--chart-label-font-family);flex-direction:column;margin:0;display:flex}.chart__title{color:var(--chart-label-color);font-family:var(--chart-label-font-family);font-size:var(--chart-label-font-size);font-weight:var(--chart-value-font-weight)}.chart__caption,.chart__empty{color:var(--chart-label-color);font-family:var(--chart-label-font-family);font-size:var(--chart-label-font-size);margin:0}.chart__plot{position:relative}.chart__canvas{width:100%;height:auto;display:block;overflow:visible}.chart__grid-line{stroke:var(--chart-grid-color);stroke-width:var(--chart-grid-width);fill:none}.chart__axis{stroke:var(--chart-axis-color);stroke-width:var(--chart-axis-width)}.chart__axis-label{fill:var(--chart-label-color);font-family:var(--chart-label-font-family);font-size:var(--chart-label-font-size);font-weight:var(--chart-label-font-weight);font-variant-numeric:tabular-nums}.chart__value-label,.chart__center-value{fill:var(--chart-label-color);font-family:var(--chart-label-font-family);font-size:var(--chart-label-font-size);font-weight:var(--chart-value-font-weight)}.chart__crosshair{stroke:var(--chart-crosshair-color);stroke-width:var(--chart-grid-width)}.chart [data-slot="1"]{--chart-mark-color:var(--chart-series-1)}.chart [data-slot="2"]{--chart-mark-color:var(--chart-series-2)}.chart [data-slot="3"]{--chart-mark-color:var(--chart-series-3)}.chart [data-slot="4"]{--chart-mark-color:var(--chart-series-4)}.chart [data-slot="5"]{--chart-mark-color:var(--chart-series-5)}.chart [data-slot="6"]{--chart-mark-color:var(--chart-series-6)}.chart [data-slot="7"]{--chart-mark-color:var(--chart-series-7)}.chart [data-slot="8"]{--chart-mark-color:var(--chart-series-8)}.chart [data-slot=muted]{--chart-mark-color:var(--chart-muted-color)}.chart__line{fill:none;stroke-width:var(--chart-line-width);stroke-linecap:round;stroke-linejoin:round}.chart__line:not([stroke]){stroke:var(--chart-mark-color)}.chart__area{fill-opacity:var(--chart-area-fill-opacity);stroke:none}.chart__area:not([fill]){fill:var(--chart-mark-color)}.chart__marker{stroke:var(--chart-surface);stroke-width:var(--chart-marker-ring-width)}.chart__marker:not([fill]){fill:var(--chart-mark-color)}.chart__bar,.chart__slice,.chart__funnel-step,.chart__tile,.chart__radial-bar{transition:fill-opacity var(--chart-transition-duration) var(--chart-transition-easing)}.chart__bar:not([fill]),.chart__slice:not([fill]),.chart__funnel-step:not([fill]),.chart__tile:not([fill]),.chart__radial-bar:not([fill]){fill:var(--chart-mark-color)}.chart__funnel-step,.chart__tile,.chart__radial-bar{stroke:var(--chart-surface);stroke-width:var(--chart-mark-gap)}.chart__radial-track{fill:var(--chart-radial-track-color);stroke:none}.chart__point{stroke:var(--chart-surface);stroke-width:var(--chart-marker-ring-width);transition:fill-opacity var(--chart-transition-duration) var(--chart-transition-easing)}.chart__point:not([fill]){fill:var(--chart-mark-color)}.chart__radar-shape{fill-opacity:var(--chart-radar-fill-opacity);stroke-width:var(--chart-line-width);stroke-linejoin:round}.chart__radar-shape:not([fill]){fill:var(--chart-mark-color)}.chart__radar-shape:not([stroke]){stroke:var(--chart-mark-color)}.chart__tile-label{fill:var(--chart-tile-label-color);font-family:var(--chart-label-font-family);font-size:var(--chart-label-font-size)}.chart__tile-label[data-slot="1"]{--chart-tile-label-color:var(--chart-tile-label-color-1)}.chart__tile-label[data-slot="2"]{--chart-tile-label-color:var(--chart-tile-label-color-2)}.chart__tile-label[data-slot="3"]{--chart-tile-label-color:var(--chart-tile-label-color-3)}.chart__tile-label[data-slot="4"]{--chart-tile-label-color:var(--chart-tile-label-color-4)}.chart__tile-label[data-slot="5"]{--chart-tile-label-color:var(--chart-tile-label-color-5)}.chart__tile-label[data-slot="6"]{--chart-tile-label-color:var(--chart-tile-label-color-6)}.chart__tile-label[data-slot="7"]{--chart-tile-label-color:var(--chart-tile-label-color-7)}.chart__tile-label[data-slot="8"]{--chart-tile-label-color:var(--chart-tile-label-color-8)}.chart__slice{stroke:var(--chart-surface);stroke-width:var(--chart-mark-gap)}.chart__line.chart__line--muted,.chart__area.chart__area--muted,.chart__marker.chart__marker--muted,.chart__bar.chart__bar--muted,.chart__slice.chart__slice--muted,.chart__funnel-step.chart__funnel-step--muted,.chart__tile.chart__tile--muted,.chart__radial-bar.chart__radial-bar--muted,.chart__point.chart__point--muted,.chart__radar-shape.chart__radar-shape--muted{--chart-mark-color:var(--chart-muted-color)}:is(.chart__marks:has([data-active]) .chart__bar:not([data-active]),.chart__marks:has([data-active]) .chart__slice:not([data-active]),.chart__marks:has([data-active]) .chart__funnel-step:not([data-active]),.chart__marks:has([data-active]) .chart__tile:not([data-active]),.chart__marks:has([data-active]) .chart__radial-bar:not([data-active]),.chart__marks:has([data-active]) .chart__point:not([data-active])){fill-opacity:var(--chart-hover-opacity)}.chart__hit-layer{background:0 0;position:absolute}.chart__hit-layer:focus-visible{outline:var(--control-focus-ring-width) solid var(--chart-axis-color);outline-offset:var(--control-focus-ring-inset-offset)}.chart__tooltip{transform:translate(-50%, calc(-100% - var(--chart-tooltip-offset)));max-
|
|
1
|
+
.chart{gap:var(--chart-block-gap);font-family:var(--chart-label-font-family);flex-direction:column;margin:0;display:flex}.chart__title{color:var(--chart-label-color);font-family:var(--chart-label-font-family);font-size:var(--chart-label-font-size);font-weight:var(--chart-value-font-weight)}.chart__caption,.chart__empty{color:var(--chart-label-color);font-family:var(--chart-label-font-family);font-size:var(--chart-label-font-size);margin:0}.chart__plot{position:relative}.chart__canvas{width:100%;height:auto;display:block;overflow:visible}.chart__grid-line{stroke:var(--chart-grid-color);stroke-width:var(--chart-grid-width);fill:none}.chart__axis{stroke:var(--chart-axis-color);stroke-width:var(--chart-axis-width)}.chart__axis-label{fill:var(--chart-label-color);font-family:var(--chart-label-font-family);font-size:var(--chart-label-font-size);font-weight:var(--chart-label-font-weight);font-variant-numeric:tabular-nums}.chart__value-label,.chart__center-value{fill:var(--chart-label-color);font-family:var(--chart-label-font-family);font-size:var(--chart-label-font-size);font-weight:var(--chart-value-font-weight)}.chart__crosshair{stroke:var(--chart-crosshair-color);stroke-width:var(--chart-grid-width)}.chart [data-slot="1"]{--chart-mark-color:var(--chart-series-1)}.chart [data-slot="2"]{--chart-mark-color:var(--chart-series-2)}.chart [data-slot="3"]{--chart-mark-color:var(--chart-series-3)}.chart [data-slot="4"]{--chart-mark-color:var(--chart-series-4)}.chart [data-slot="5"]{--chart-mark-color:var(--chart-series-5)}.chart [data-slot="6"]{--chart-mark-color:var(--chart-series-6)}.chart [data-slot="7"]{--chart-mark-color:var(--chart-series-7)}.chart [data-slot="8"]{--chart-mark-color:var(--chart-series-8)}.chart [data-slot=muted]{--chart-mark-color:var(--chart-muted-color)}.chart__line{fill:none;stroke-width:var(--chart-line-width);stroke-linecap:round;stroke-linejoin:round}.chart__line:not([stroke]){stroke:var(--chart-mark-color)}.chart__area{fill-opacity:var(--chart-area-fill-opacity);stroke:none}.chart__area:not([fill]){fill:var(--chart-mark-color)}.chart__marker{stroke:var(--chart-surface);stroke-width:var(--chart-marker-ring-width)}.chart__marker:not([fill]){fill:var(--chart-mark-color)}.chart__bar,.chart__slice,.chart__funnel-step,.chart__tile,.chart__radial-bar{transition:fill-opacity var(--chart-transition-duration) var(--chart-transition-easing)}.chart__bar:not([fill]),.chart__slice:not([fill]),.chart__funnel-step:not([fill]),.chart__tile:not([fill]),.chart__radial-bar:not([fill]){fill:var(--chart-mark-color)}.chart__funnel-step,.chart__tile,.chart__radial-bar{stroke:var(--chart-surface);stroke-width:var(--chart-mark-gap)}.chart__radial-track{fill:var(--chart-radial-track-color);stroke:none}.chart__point{stroke:var(--chart-surface);stroke-width:var(--chart-marker-ring-width);transition:fill-opacity var(--chart-transition-duration) var(--chart-transition-easing)}.chart__point:not([fill]){fill:var(--chart-mark-color)}.chart__radar-shape{fill-opacity:var(--chart-radar-fill-opacity);stroke-width:var(--chart-line-width);stroke-linejoin:round}.chart__radar-shape:not([fill]){fill:var(--chart-mark-color)}.chart__radar-shape:not([stroke]){stroke:var(--chart-mark-color)}.chart__tile-label{fill:var(--chart-tile-label-color);font-family:var(--chart-label-font-family);font-size:var(--chart-label-font-size)}.chart__tile-label[data-slot="1"]{--chart-tile-label-color:var(--chart-tile-label-color-1)}.chart__tile-label[data-slot="2"]{--chart-tile-label-color:var(--chart-tile-label-color-2)}.chart__tile-label[data-slot="3"]{--chart-tile-label-color:var(--chart-tile-label-color-3)}.chart__tile-label[data-slot="4"]{--chart-tile-label-color:var(--chart-tile-label-color-4)}.chart__tile-label[data-slot="5"]{--chart-tile-label-color:var(--chart-tile-label-color-5)}.chart__tile-label[data-slot="6"]{--chart-tile-label-color:var(--chart-tile-label-color-6)}.chart__tile-label[data-slot="7"]{--chart-tile-label-color:var(--chart-tile-label-color-7)}.chart__tile-label[data-slot="8"]{--chart-tile-label-color:var(--chart-tile-label-color-8)}.chart__slice{stroke:var(--chart-surface);stroke-width:var(--chart-mark-gap)}.chart__line.chart__line--muted,.chart__area.chart__area--muted,.chart__marker.chart__marker--muted,.chart__bar.chart__bar--muted,.chart__slice.chart__slice--muted,.chart__funnel-step.chart__funnel-step--muted,.chart__tile.chart__tile--muted,.chart__radial-bar.chart__radial-bar--muted,.chart__point.chart__point--muted,.chart__radar-shape.chart__radar-shape--muted{--chart-mark-color:var(--chart-muted-color)}:is(.chart__marks:has([data-active]) .chart__bar:not([data-active]),.chart__marks:has([data-active]) .chart__slice:not([data-active]),.chart__marks:has([data-active]) .chart__funnel-step:not([data-active]),.chart__marks:has([data-active]) .chart__tile:not([data-active]),.chart__marks:has([data-active]) .chart__radial-bar:not([data-active]),.chart__marks:has([data-active]) .chart__point:not([data-active])){fill-opacity:var(--chart-hover-opacity)}.chart__hit-layer{background:0 0;position:absolute}.chart__hit-layer:focus-visible{outline:var(--control-focus-ring-width) solid var(--chart-axis-color);outline-offset:var(--control-focus-ring-inset-offset)}.chart__tooltip{transform:translate(-50%, calc(-100% - var(--chart-tooltip-offset)));max-inline-size:var(--chart-tooltip-max-width);padding-block:var(--chart-tooltip-padding-block);padding-inline:var(--chart-tooltip-padding-inline);border-radius:var(--chart-tooltip-border-radius);background:var(--chart-tooltip-bg);color:var(--chart-tooltip-color);font-family:var(--chart-label-font-family);font-size:var(--chart-tooltip-font-size);line-height:var(--chart-tooltip-line-height);pointer-events:none;position:absolute}.chart__tooltip-header{font-weight:var(--chart-value-font-weight);margin:0}.chart__tooltip-list{gap:var(--chart-tooltip-row-gap);flex-direction:column;margin:0;padding:0;list-style:none;display:flex}.chart__tooltip-row{align-items:center;gap:var(--chart-tooltip-row-gap);display:flex}.chart__tooltip-key{inline-size:var(--chart-legend-swatch-line-width);block-size:var(--chart-line-width);flex:none;display:inline-block}.chart__tooltip-value{font-weight:var(--chart-value-font-weight);font-variant-numeric:tabular-nums}.chart__legend-item{align-items:center;gap:var(--chart-legend-gap);display:inline-flex}.chart__legend-item.chart__legend-item--muted .chart__legend-swatch{--chart-mark-color:var(--chart-muted-color)}.chart__legend-swatch{inline-size:var(--chart-legend-swatch-size);block-size:var(--chart-legend-swatch-size);flex:none;display:inline-block}.chart__legend-swatch rect:not([fill]),.chart__tooltip-key rect:not([fill]){fill:var(--chart-mark-color)}.chart__legend-swatch.chart__legend-swatch--line{inline-size:var(--chart-legend-swatch-line-width);block-size:var(--chart-line-width)}
|
package/dist/chat-shell.js
CHANGED
|
@@ -3,98 +3,99 @@ import './chat-shell.css';
|
|
|
3
3
|
import { n as e } from "./_shared/brandmessagescontext.js";
|
|
4
4
|
import { Icon as t } from "./icon.js";
|
|
5
5
|
import { Button as n } from "./button.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
6
|
+
import { t as r } from "./_shared/assign-ref.js";
|
|
7
|
+
import { Sheet as i } from "./sheet.js";
|
|
8
|
+
import { t as a } from "./_shared/media-query.js";
|
|
9
|
+
import { forwardRef as o, useCallback as s, useState as c } from "react";
|
|
10
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
10
11
|
//#region src/stories/templates/ChatShell/ChatShell.tsx
|
|
11
|
-
var
|
|
12
|
-
let
|
|
13
|
-
|
|
14
|
-
}, [
|
|
15
|
-
|
|
16
|
-
let
|
|
17
|
-
|
|
18
|
-
}, [
|
|
19
|
-
return /* @__PURE__ */
|
|
20
|
-
ref:
|
|
12
|
+
var d = "(min-width: 1024px)", f = o(function({ list: o, header: f, children: p, composer: m, listLabel: h, listTriggerLabel: g, listOpen: _, onListOpenChange: v, className: y, ...b }, x) {
|
|
13
|
+
let S = e("chatShell"), C = a(d), w = C ?? !0, [T, E] = c(!1), [D, O] = c(null), k = s((e) => {
|
|
14
|
+
O(e), r(x, e);
|
|
15
|
+
}, [x]), [A, j] = c(C);
|
|
16
|
+
C !== A && (j(C), C && E(!1));
|
|
17
|
+
let M = s((e) => {
|
|
18
|
+
_ === void 0 && E(e), v?.(e);
|
|
19
|
+
}, [_, v]), N = !w && (_ ?? T), P = o != null && w, F = o != null && !w;
|
|
20
|
+
return /* @__PURE__ */ u("div", {
|
|
21
|
+
ref: k,
|
|
21
22
|
className: [
|
|
22
23
|
"chat-shell",
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
P ? "chat-shell--with-list" : "",
|
|
25
|
+
y ?? ""
|
|
25
26
|
].filter(Boolean).join(" "),
|
|
26
|
-
"data-layout":
|
|
27
|
-
...
|
|
27
|
+
"data-layout": C === null ? void 0 : w ? "column" : "drawer",
|
|
28
|
+
...b,
|
|
28
29
|
children: [
|
|
29
|
-
|
|
30
|
+
P && /* @__PURE__ */ l("aside", {
|
|
30
31
|
className: "chat-shell__list",
|
|
31
|
-
"aria-label":
|
|
32
|
-
children:
|
|
32
|
+
"aria-label": S("list", h),
|
|
33
|
+
children: o
|
|
33
34
|
}),
|
|
34
|
-
/* @__PURE__ */
|
|
35
|
+
/* @__PURE__ */ u("div", {
|
|
35
36
|
className: "chat-shell__main",
|
|
36
37
|
children: [
|
|
37
|
-
(
|
|
38
|
+
(f || F) && /* @__PURE__ */ u("header", {
|
|
38
39
|
className: "chat-shell__header",
|
|
39
|
-
children: [
|
|
40
|
+
children: [F && /* @__PURE__ */ l(n, {
|
|
40
41
|
variant: "ghost",
|
|
41
42
|
size: "sm",
|
|
42
43
|
iconOnly: !0,
|
|
43
|
-
"aria-label":
|
|
44
|
+
"aria-label": S("listTrigger", g),
|
|
44
45
|
"aria-haspopup": "dialog",
|
|
45
|
-
"aria-expanded":
|
|
46
|
+
"aria-expanded": N,
|
|
46
47
|
className: "chat-shell__list-trigger",
|
|
47
|
-
onClick: () =>
|
|
48
|
-
children: /* @__PURE__ */
|
|
48
|
+
onClick: () => M(!0),
|
|
49
|
+
children: /* @__PURE__ */ l(t, {
|
|
49
50
|
name: "layout-sidebar",
|
|
50
51
|
size: "sm"
|
|
51
52
|
})
|
|
52
|
-
}),
|
|
53
|
+
}), f && /* @__PURE__ */ l("div", {
|
|
53
54
|
className: "chat-shell__header-content",
|
|
54
|
-
children:
|
|
55
|
+
children: f
|
|
55
56
|
})]
|
|
56
57
|
}),
|
|
57
|
-
/* @__PURE__ */
|
|
58
|
+
/* @__PURE__ */ l("div", {
|
|
58
59
|
className: "chat-shell__thread",
|
|
59
|
-
children:
|
|
60
|
+
children: p
|
|
60
61
|
}),
|
|
61
|
-
|
|
62
|
+
m && /* @__PURE__ */ l("div", {
|
|
62
63
|
className: "chat-shell__composer",
|
|
63
|
-
children:
|
|
64
|
+
children: m
|
|
64
65
|
})
|
|
65
66
|
]
|
|
66
67
|
}),
|
|
67
|
-
|
|
68
|
+
F && /* @__PURE__ */ u(i, {
|
|
68
69
|
side: "left",
|
|
69
|
-
open:
|
|
70
|
-
onOpenChange:
|
|
71
|
-
title:
|
|
70
|
+
open: N,
|
|
71
|
+
onOpenChange: M,
|
|
72
|
+
title: S("list", h),
|
|
72
73
|
titleHidden: !0,
|
|
73
|
-
container:
|
|
74
|
+
container: D ?? void 0,
|
|
74
75
|
hideClose: !0,
|
|
75
76
|
className: "chat-shell__drawer",
|
|
76
|
-
children: [/* @__PURE__ */
|
|
77
|
+
children: [/* @__PURE__ */ l("header", {
|
|
77
78
|
className: "chat-shell__header",
|
|
78
|
-
children: /* @__PURE__ */
|
|
79
|
+
children: /* @__PURE__ */ l(n, {
|
|
79
80
|
variant: "ghost",
|
|
80
81
|
size: "sm",
|
|
81
82
|
iconOnly: !0,
|
|
82
|
-
"aria-label":
|
|
83
|
+
"aria-label": S("listTrigger", g),
|
|
83
84
|
"aria-expanded": !0,
|
|
84
85
|
className: "chat-shell__list-trigger",
|
|
85
|
-
onClick: () =>
|
|
86
|
-
children: /* @__PURE__ */
|
|
86
|
+
onClick: () => M(!1),
|
|
87
|
+
children: /* @__PURE__ */ l(t, {
|
|
87
88
|
name: "layout-sidebar",
|
|
88
89
|
size: "sm"
|
|
89
90
|
})
|
|
90
91
|
})
|
|
91
|
-
}), /* @__PURE__ */
|
|
92
|
+
}), /* @__PURE__ */ l("div", {
|
|
92
93
|
className: "chat-shell__drawer-list",
|
|
93
|
-
children:
|
|
94
|
+
children: o
|
|
94
95
|
})]
|
|
95
96
|
})
|
|
96
97
|
]
|
|
97
98
|
});
|
|
98
99
|
});
|
|
99
100
|
//#endregion
|
|
100
|
-
export {
|
|
101
|
+
export { f as ChatShell };
|
package/dist/checkbox.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.checkbox{all:unset;box-sizing:border-box;
|
|
1
|
+
.checkbox{all:unset;box-sizing:border-box;inline-size:var(--checkbox-size);block-size:var(--checkbox-size);border-width:var(--checkbox-border-width);border-style:var(--checkbox-border-style);border-color:var(--checkbox-border-color);border-radius:var(--checkbox-border-radius);background-color:var(--checkbox-bg);cursor:var(--checkbox-cursor);transition:background-color var(--checkbox-transition-duration) var(--checkbox-transition-easing), border-color var(--checkbox-transition-duration) var(--checkbox-transition-easing);flex-shrink:0;place-content:center;display:grid;position:relative}.checkbox:after{content:"";inline-size:max(100%, var(--checkbox-target-size));block-size:max(100%, var(--checkbox-target-size));position:absolute;inset-block-start:50%;inset-inline-start:50%;translate:-50% -50%}.checkbox__indicator{inline-size:var(--checkbox-check-size);block-size:var(--checkbox-check-size);background-color:var(--checkbox-check-color);clip-path:polygon(14% 44%,0 65%,50% 100%,100% 16%,80% 0%,43% 62%);transform:scale(0) rotate(var(--checkbox-check-rotate));transition:transform var(--checkbox-transition-duration) var(--checkbox-transition-easing)}.checkbox[data-indeterminate] .checkbox__indicator{clip-path:none;inline-size:60%;block-size:var(--checkbox-border-width);background-color:var(--checkbox-check-color);transform:none}.checkbox[data-checked]{background-color:var(--checkbox-bg-checked)}.checkbox[data-checked] .checkbox__indicator,.checkbox[data-indeterminate] .checkbox__indicator{transform:scale(1) rotate(var(--checkbox-check-rotate))}.checkbox[data-indeterminate] .checkbox__indicator{transform:none}.checkbox:focus-visible{outline:var(--checkbox-focus-ring-width) solid var(--checkbox-focus-ring-color);outline-offset:var(--checkbox-focus-ring-offset)}.checkbox[data-disabled]{border-color:var(--checkbox-disabled-border-color);cursor:var(--checkbox-disabled-cursor);pointer-events:none}.checkbox.checkbox--error{border-color:var(--checkbox-error-border-color)}.checkbox[data-disabled][data-checked],.checkbox[data-disabled][data-indeterminate]{background-color:var(--checkbox-disabled-bg-checked);border-color:var(--checkbox-disabled-border-color)}.checkbox.checkbox--sm{--checkbox-size:var(--checkbox-sm-size);--checkbox-check-size:var(--checkbox-sm-check-size)}.checkbox.checkbox--lg{--checkbox-size:var(--checkbox-lg-size);--checkbox-check-size:var(--checkbox-lg-check-size)}
|
package/dist/close-button.js
CHANGED
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import './close-button.css';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { n as e } from "./_shared/brandmessagescontext.js";
|
|
4
|
+
import { Icon as t } from "./icon.js";
|
|
5
|
+
import { forwardRef as n } from "react";
|
|
6
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
6
7
|
//#region src/stories/atoms/CloseButton/CloseButton.tsx
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
var i = n(function({ label: n, size: i = "md", className: a, ...o }, s) {
|
|
9
|
+
let c = e("closeButton");
|
|
10
|
+
return /* @__PURE__ */ r("button", {
|
|
11
|
+
ref: s,
|
|
10
12
|
type: "button",
|
|
11
13
|
className: [
|
|
12
14
|
"close-button",
|
|
13
|
-
|
|
14
|
-
|
|
15
|
+
i === "md" ? "" : `close-button--${i}`,
|
|
16
|
+
a
|
|
15
17
|
].filter(Boolean).join(" "),
|
|
16
|
-
"aria-label":
|
|
17
|
-
...
|
|
18
|
-
children: /* @__PURE__ */
|
|
18
|
+
"aria-label": c("label", n),
|
|
19
|
+
...o,
|
|
20
|
+
children: /* @__PURE__ */ r(t, { name: "close" })
|
|
19
21
|
});
|
|
20
22
|
});
|
|
21
23
|
//#endregion
|
|
22
|
-
export {
|
|
24
|
+
export { i as CloseButton };
|
package/dist/command-palette.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.command-palette{max-
|
|
1
|
+
.command-palette{max-block-size:var(--command-palette-max-height);flex-direction:column;display:flex}.command-palette__input{box-sizing:border-box;inline-size:100%;padding-block:var(--command-palette-input-padding-block);padding-inline:var(--command-palette-input-padding-inline);border:0;border-block-end:var(--command-palette-input-border-width) solid var(--command-palette-input-border-color);color:inherit;font-family:inherit;font-size:var(--command-palette-input-font-size);background:0 0;outline:none}.command-palette__input:focus-visible{box-shadow:inset 0 0 0 var(--command-palette-input-focus-ring-width) var(--command-palette-input-focus-ring-color);border-block-end-color:var(--command-palette-input-focus-border-color);outline:none}.command-palette__input::placeholder{color:var(--command-palette-input-placeholder-color)}.command-palette__list{padding-block:var(--command-palette-list-padding-block);padding-inline:var(--command-palette-list-padding-inline);outline:none;overflow-y:auto}.command-palette__empty{padding-block:var(--command-palette-empty-padding-block);padding-inline:var(--command-palette-empty-padding-inline);text-align:center;font-size:var(--command-palette-empty-font-size);color:var(--command-palette-empty-color)}.command-palette__empty:empty{clip-path:inset(50%);white-space:nowrap;block-size:1px;inline-size:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.command-palette__heading{padding-block:var(--command-palette-heading-padding-block);padding-inline:var(--command-palette-heading-padding-inline);font-size:var(--command-palette-heading-font-size);font-weight:var(--command-palette-heading-font-weight);color:var(--command-palette-heading-color)}.command-palette__item{align-items:center;gap:var(--command-palette-item-gap);padding-block:var(--command-palette-item-padding-block);padding-inline:var(--command-palette-item-padding-inline);border-radius:var(--command-palette-item-border-radius);font-size:var(--command-palette-item-font-size);color:var(--command-palette-item-color);cursor:pointer;outline:none;display:flex}.command-palette__item[data-highlighted]{background-color:var(--command-palette-item-highlighted-bg);color:var(--command-palette-item-highlighted-color)}.command-palette__item[data-disabled]{opacity:var(--opacity-disabled);cursor:not-allowed}.command-palette__item-icon{flex-shrink:0;display:inline-flex}.command-palette__item-icon svg{width:var(--command-palette-item-icon-size);height:var(--command-palette-item-icon-size)}
|
|
@@ -8,35 +8,35 @@ import { t as a } from "./_shared/untrustedtext.js";
|
|
|
8
8
|
import { ConnectorRequestSummary as o } from "./connector-request-summary.js";
|
|
9
9
|
import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
10
10
|
//#region src/stories/templates/ConnectorAuth/ConnectorConsentPage.tsx
|
|
11
|
-
function u({ clientName: u, productName: d, accountEmail: f, scope: p = "read", redirectHost: m, action: h, hiddenFields: g, decisionName: _ = "decision", approveValue: v = "approve", denyValue: y = "deny", onApprove: b, onDeny: x, denyHref: S, initialFocus: C = "none", title: w, intro: T, redirectNotice: E, approveLabel: D, denyLabel: O, scopeReadLabel: k, scopeWriteLabel: A, expandLabel: j, collapseLabel: M, valueQuotes: N, summaryLabels: P, links: F, header: I, footer: L, preferences: R, preferencesLabel: z, id: B, shell: V }) {
|
|
12
|
-
let
|
|
11
|
+
function u({ clientName: u, productName: d, accountEmail: f, scope: p = "read", redirectHost: m, action: h, hiddenFields: g, decisionName: _ = "decision", approveValue: v = "approve", denyValue: y = "deny", onApprove: b, onDeny: x, denyHref: S, initialFocus: C = "none", title: w, intro: T, redirectNotice: E, approveLabel: D, denyLabel: O, scopeReadLabel: k, scopeWriteLabel: A, expandLabel: j, collapseLabel: M, valueQuotes: N, summaryLabels: P, links: F, header: I, footer: L, preferences: R, preferencesLabel: z, id: B, shell: V, className: H }) {
|
|
12
|
+
let U = e("connectorConsent"), W = h !== void 0, G = p === "read" ? k : A, K = (e) => /* @__PURE__ */ c(a, {
|
|
13
13
|
value: e,
|
|
14
14
|
quotes: N
|
|
15
|
-
}),
|
|
15
|
+
}), q = S === void 0 ? /* @__PURE__ */ c(t, {
|
|
16
16
|
variant: "outline",
|
|
17
|
-
type:
|
|
18
|
-
name:
|
|
19
|
-
value:
|
|
17
|
+
type: W ? "submit" : "button",
|
|
18
|
+
name: W ? _ : void 0,
|
|
19
|
+
value: W ? y : void 0,
|
|
20
20
|
onClick: x,
|
|
21
21
|
autoFocus: C === "deny",
|
|
22
|
-
children:
|
|
22
|
+
children: U("deny", O)
|
|
23
23
|
}) : /* @__PURE__ */ c(t, {
|
|
24
24
|
variant: "outline",
|
|
25
25
|
href: S,
|
|
26
|
-
children:
|
|
27
|
-
}),
|
|
28
|
-
type:
|
|
29
|
-
name:
|
|
30
|
-
value:
|
|
26
|
+
children: U("deny", O)
|
|
27
|
+
}), J = /* @__PURE__ */ c(t, {
|
|
28
|
+
type: W ? "submit" : "button",
|
|
29
|
+
name: W ? _ : void 0,
|
|
30
|
+
value: W ? v : void 0,
|
|
31
31
|
onClick: b,
|
|
32
32
|
children: D
|
|
33
33
|
});
|
|
34
34
|
return /* @__PURE__ */ c(i, {
|
|
35
|
-
title: w ??
|
|
35
|
+
title: w ?? U("title"),
|
|
36
36
|
description: T({
|
|
37
|
-
client: /* @__PURE__ */ c("strong", { children:
|
|
38
|
-
what:
|
|
39
|
-
email: /* @__PURE__ */ c("strong", { children:
|
|
37
|
+
client: /* @__PURE__ */ c("strong", { children: K(u) }),
|
|
38
|
+
what: G,
|
|
39
|
+
email: /* @__PURE__ */ c("strong", { children: K(f) })
|
|
40
40
|
}),
|
|
41
41
|
header: I,
|
|
42
42
|
footer: L,
|
|
@@ -44,13 +44,14 @@ function u({ clientName: u, productName: d, accountEmail: f, scope: p = "read",
|
|
|
44
44
|
preferencesLabel: z,
|
|
45
45
|
id: B,
|
|
46
46
|
shell: V,
|
|
47
|
+
className: H,
|
|
47
48
|
children: /* @__PURE__ */ l(r, {
|
|
48
49
|
size: "lg",
|
|
49
50
|
blockActions: !0,
|
|
50
51
|
method: typeof h == "string" ? "post" : void 0,
|
|
51
52
|
action: h,
|
|
52
53
|
links: F,
|
|
53
|
-
actions: /* @__PURE__ */ l(s, { children: [
|
|
54
|
+
actions: /* @__PURE__ */ l(s, { children: [q, J] }),
|
|
54
55
|
children: [
|
|
55
56
|
g && Object.entries(g).map(([e, t]) => /* @__PURE__ */ c("input", {
|
|
56
57
|
type: "hidden",
|
|
@@ -70,7 +71,7 @@ function u({ clientName: u, productName: d, accountEmail: f, scope: p = "read",
|
|
|
70
71
|
valueQuotes: N,
|
|
71
72
|
...P
|
|
72
73
|
}),
|
|
73
|
-
/* @__PURE__ */ c(n, { children: E({ host: /* @__PURE__ */ c("strong", { children:
|
|
74
|
+
/* @__PURE__ */ c(n, { children: E({ host: /* @__PURE__ */ c("strong", { children: K(m) }) }) })
|
|
74
75
|
]
|
|
75
76
|
})
|
|
76
77
|
});
|
|
@@ -10,10 +10,10 @@ import { ConnectorAuthShell as s } from "./connector-auth-shell.js";
|
|
|
10
10
|
import { t as c } from "./_shared/untrustedtext.js";
|
|
11
11
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
12
12
|
//#region src/stories/templates/ConnectorAuth/ConnectorExternalSignInPage.tsx
|
|
13
|
-
function d({ platformName: d, organization: f, organizationDefaultValue: p, organizationName: m = "org", action: h, onSubmit: g, hiddenFields: _, error: v, title: y, intro: b, signingInTo: x, valueQuotes: S, organizationLabel: C, submitLabel: w, extra: T, links: E, header: D, footer: O, preferences: k, preferencesLabel: A, id: j, shell: M }) {
|
|
14
|
-
let
|
|
13
|
+
function d({ platformName: d, organization: f, organizationDefaultValue: p, organizationName: m = "org", action: h, onSubmit: g, hiddenFields: _, error: v, title: y, intro: b, signingInTo: x, valueQuotes: S, organizationLabel: C, submitLabel: w, extra: T, links: E, header: D, footer: O, preferences: k, preferencesLabel: A, id: j, shell: M, className: N }) {
|
|
14
|
+
let P = e("connectorExternalSignIn");
|
|
15
15
|
return /* @__PURE__ */ l(s, {
|
|
16
|
-
title: y ??
|
|
16
|
+
title: y ?? P("title"),
|
|
17
17
|
description: b({ platform: d }),
|
|
18
18
|
header: D,
|
|
19
19
|
footer: O,
|
|
@@ -21,6 +21,7 @@ function d({ platformName: d, organization: f, organizationDefaultValue: p, orga
|
|
|
21
21
|
preferencesLabel: A,
|
|
22
22
|
id: j,
|
|
23
23
|
shell: M,
|
|
24
|
+
className: N,
|
|
24
25
|
children: /* @__PURE__ */ u(n, {
|
|
25
26
|
align: "stretch",
|
|
26
27
|
children: [
|
|
@@ -38,7 +39,7 @@ function d({ platformName: d, organization: f, organizationDefaultValue: p, orga
|
|
|
38
39
|
links: E,
|
|
39
40
|
actions: /* @__PURE__ */ l(t, {
|
|
40
41
|
type: "submit",
|
|
41
|
-
children:
|
|
42
|
+
children: P("submit", w)(d)
|
|
42
43
|
}),
|
|
43
44
|
children: [_ && Object.entries(_).map(([e, t]) => /* @__PURE__ */ l("input", {
|
|
44
45
|
type: "hidden",
|
|
@@ -47,7 +48,7 @@ function d({ platformName: d, organization: f, organizationDefaultValue: p, orga
|
|
|
47
48
|
}, e)), f === void 0 ? /* @__PURE__ */ l(o, {
|
|
48
49
|
id: m,
|
|
49
50
|
name: m,
|
|
50
|
-
label:
|
|
51
|
+
label: P("organization", C),
|
|
51
52
|
defaultValue: p,
|
|
52
53
|
autoComplete: "off",
|
|
53
54
|
required: !0
|
|
@@ -7,8 +7,8 @@ import { Paragraph as i } from "./paragraph.js";
|
|
|
7
7
|
import { ConnectorAuthShell as a } from "./connector-auth-shell.js";
|
|
8
8
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
9
9
|
//#region src/stories/templates/ConnectorAuth/ConnectorRejectionPage.tsx
|
|
10
|
-
function c({ title: c, description: l, hint: u, code: d, codeLabel: f, retryHref: p, onRetry: m, retryLabel: h, retryAction: g, aside: _, header: v, footer: y, preferences: b, preferencesLabel: x, id: S, shell: C }) {
|
|
11
|
-
let
|
|
10
|
+
function c({ title: c, description: l, hint: u, code: d, codeLabel: f, retryHref: p, onRetry: m, retryLabel: h, retryAction: g, aside: _, header: v, footer: y, preferences: b, preferencesLabel: x, id: S, shell: C, className: w }) {
|
|
11
|
+
let T = e("connectorRejection"), E = g ?? (p === void 0 ? m ? /* @__PURE__ */ o(t, {
|
|
12
12
|
onClick: m,
|
|
13
13
|
children: h
|
|
14
14
|
}) : null : /* @__PURE__ */ o(t, {
|
|
@@ -21,7 +21,7 @@ function c({ title: c, description: l, hint: u, code: d, codeLabel: f, retryHref
|
|
|
21
21
|
intro: d === void 0 ? void 0 : /* @__PURE__ */ s(i, {
|
|
22
22
|
size: "small",
|
|
23
23
|
children: [
|
|
24
|
-
|
|
24
|
+
T("code", f),
|
|
25
25
|
": ",
|
|
26
26
|
/* @__PURE__ */ o(r, { children: d })
|
|
27
27
|
]
|
|
@@ -33,12 +33,13 @@ function c({ title: c, description: l, hint: u, code: d, codeLabel: f, retryHref
|
|
|
33
33
|
preferencesLabel: x,
|
|
34
34
|
id: S,
|
|
35
35
|
shell: C,
|
|
36
|
+
className: w,
|
|
36
37
|
children: /* @__PURE__ */ s(n, {
|
|
37
38
|
align: "stretch",
|
|
38
39
|
children: [/* @__PURE__ */ o(i, {
|
|
39
40
|
size: "large",
|
|
40
41
|
children: u
|
|
41
|
-
}),
|
|
42
|
+
}), E]
|
|
42
43
|
})
|
|
43
44
|
});
|
|
44
45
|
}
|
|
@@ -7,23 +7,23 @@ import { t as i } from "./_shared/untrustedtext.js";
|
|
|
7
7
|
import { ConnectorRequestSummary as a } from "./connector-request-summary.js";
|
|
8
8
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
9
9
|
//#region src/stories/templates/ConnectorAuth/ConnectorSignInPage.tsx
|
|
10
|
-
function c({ clientName: c, productName: l, scope: u, redirectHost: d, signInHref: f, onSignIn: p, action: m, hiddenFields: h, title: g, intro: _, fallbackProductName: v, signInLabel: y, scopeReadLabel: b, scopeWriteLabel: x, expandLabel: S, collapseLabel: C, valueQuotes: w, summaryLabels: T, links: E, header: D, footer: O, preferences: k, preferencesLabel: A, id: j, shell: M }) {
|
|
11
|
-
let
|
|
12
|
-
type:
|
|
10
|
+
function c({ clientName: c, productName: l, scope: u, redirectHost: d, signInHref: f, onSignIn: p, action: m, hiddenFields: h, title: g, intro: _, fallbackProductName: v, signInLabel: y, scopeReadLabel: b, scopeWriteLabel: x, expandLabel: S, collapseLabel: C, valueQuotes: w, summaryLabels: T, links: E, header: D, footer: O, preferences: k, preferencesLabel: A, id: j, shell: M, className: N }) {
|
|
11
|
+
let P = e("connectorSignIn"), F = m !== void 0, I = f === void 0 ? /* @__PURE__ */ o(t, {
|
|
12
|
+
type: F ? "submit" : "button",
|
|
13
13
|
onClick: p,
|
|
14
|
-
children:
|
|
14
|
+
children: P("signIn", y)
|
|
15
15
|
}) : /* @__PURE__ */ o(t, {
|
|
16
16
|
href: f,
|
|
17
|
-
children:
|
|
17
|
+
children: P("signIn", y)
|
|
18
18
|
});
|
|
19
19
|
return /* @__PURE__ */ o(r, {
|
|
20
|
-
title: g ??
|
|
20
|
+
title: g ?? P("title"),
|
|
21
21
|
description: _({
|
|
22
22
|
client: /* @__PURE__ */ o("strong", { children: /* @__PURE__ */ o(i, {
|
|
23
23
|
value: c,
|
|
24
24
|
quotes: w
|
|
25
25
|
}) }),
|
|
26
|
-
product: l ?? v ??
|
|
26
|
+
product: l ?? v ?? P("fallbackProduct")
|
|
27
27
|
}),
|
|
28
28
|
header: D,
|
|
29
29
|
footer: O,
|
|
@@ -31,13 +31,14 @@ function c({ clientName: c, productName: l, scope: u, redirectHost: d, signInHre
|
|
|
31
31
|
preferencesLabel: A,
|
|
32
32
|
id: j,
|
|
33
33
|
shell: M,
|
|
34
|
+
className: N,
|
|
34
35
|
children: /* @__PURE__ */ s(n, {
|
|
35
36
|
size: "lg",
|
|
36
37
|
blockActions: !0,
|
|
37
|
-
method:
|
|
38
|
+
method: F ? "post" : void 0,
|
|
38
39
|
action: m,
|
|
39
40
|
links: E,
|
|
40
|
-
actions:
|
|
41
|
+
actions: I,
|
|
41
42
|
children: [h && Object.entries(h).map(([e, t]) => /* @__PURE__ */ o("input", {
|
|
42
43
|
type: "hidden",
|
|
43
44
|
name: e,
|
package/dist/consent.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.consent-banner{z-index:var(--consent-banner-z-index);background-color:var(--consent-banner-bg);color:var(--consent-banner-color);border-block-start:var(--consent-banner-border-width) solid var(--consent-banner-border-color);padding-block:var(--consent-banner-padding-block);padding-inline:var(--consent-banner-padding-inline);position:fixed;inset-block-end:0;inset-inline:0}.consent-banner__inner{justify-content:space-between;align-items:center;gap:var(--consent-banner-gap);max-inline-size:var(--consent-banner-max-inline-size);flex-wrap:wrap;margin-inline:auto;display:flex}.consent-banner__text{gap:var(--consent-banner-text-gap);flex-direction:column;flex:
|
|
1
|
+
.consent-banner{z-index:var(--consent-banner-z-index);background-color:var(--consent-banner-bg);color:var(--consent-banner-color);border-block-start:var(--consent-banner-border-width) solid var(--consent-banner-border-color);padding-block:var(--consent-banner-padding-block);padding-inline:var(--consent-banner-padding-inline);position:fixed;inset-block-end:0;inset-inline:0}.consent-banner__inner{justify-content:space-between;align-items:center;gap:var(--consent-banner-gap);max-inline-size:var(--consent-banner-max-inline-size);flex-wrap:wrap;margin-inline:auto;display:flex}.consent-banner__text{gap:var(--consent-banner-text-gap);flex-direction:column;flex:1 1 var(--consent-banner-text-flex-basis);min-inline-size:0;display:flex}.consent-banner__title{font-size:var(--consent-banner-title-font-size);color:inherit;margin-block:0}.consent-banner__description{font-size:var(--consent-banner-description-font-size);color:inherit;margin-block:0}.consent-banner__actions{align-self:stretch;align-items:stretch;gap:var(--consent-banner-actions-gap);flex-direction:column;display:flex}.consent-banner__actions>*{inline-size:100%}@media (width>=768px){.consent-banner__actions{flex-flow:wrap;align-self:auto;align-items:center}.consent-banner__actions>*{inline-size:auto}}.consent-preferences{gap:var(--consent-preferences-gap);flex-direction:column;display:flex}.consent-preferences__list{gap:var(--consent-preferences-category-gap);flex-direction:column;margin:0;padding:0;list-style:none;display:flex}
|