@plumile/ui 0.1.69 → 0.1.72
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/lib/esm/atomic/molecules/breadcrumb_navigation/BreadcrumbMenuDropdown.js +12 -2
- package/lib/esm/atomic/molecules/breadcrumb_navigation/BreadcrumbMenuDropdown.js.map +1 -1
- package/lib/esm/atomic/molecules/breadcrumb_navigation/BreadcrumbNavigation.js +35 -46
- package/lib/esm/atomic/molecules/breadcrumb_navigation/BreadcrumbNavigation.js.map +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownArticleContainer.css.js +0 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownFootnoteReference.css.js +1 -0
- package/lib/esm/atomic/templates/detail-page/DetailPage.js +49 -0
- package/lib/esm/atomic/templates/detail-page/DetailPage.js.map +1 -0
- package/lib/esm/atomic/templates/detail-page/detailPage.css.js +8 -0
- package/lib/esm/atomic/templates/detail-page/detailPage.css.js.map +1 -0
- package/lib/esm/atomic/templates/page-container/PageContainer.js +36 -0
- package/lib/esm/atomic/templates/page-container/PageContainer.js.map +1 -0
- package/lib/esm/atomic/templates/page-container/pageContainer.css.js +8 -0
- package/lib/esm/atomic/templates/page-container/pageContainer.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_page_header/BackofficePageHeader.js +27 -21
- package/lib/esm/backoffice/molecules/backoffice_page_header/BackofficePageHeader.js.map +1 -1
- package/lib/esm/backoffice/molecules/backoffice_page_header/backofficePageHeader.css.js +2 -2
- package/lib/esm/backoffice/molecules/backoffice_page_header/backofficePageHeader.css.js.map +1 -1
- package/lib/esm/index.js +103 -102
- package/lib/esm/style.css +1 -1
- package/lib/esm/theme/ThemeProvider.js +14 -14
- package/lib/esm/theme/ThemeProvider.js.map +1 -1
- package/lib/esm/theme/themeContract.js +1 -1
- package/lib/esm/theme/themeContract.js.map +1 -1
- package/lib/types/atomic/molecules/breadcrumb_navigation/BreadcrumbMenuDropdown.d.ts.map +1 -1
- package/lib/types/atomic/molecules/breadcrumb_navigation/BreadcrumbNavigation.d.ts +5 -7
- package/lib/types/atomic/molecules/breadcrumb_navigation/BreadcrumbNavigation.d.ts.map +1 -1
- package/lib/types/atomic/molecules/breadcrumb_navigation/types.d.ts +18 -0
- package/lib/types/atomic/molecules/breadcrumb_navigation/types.d.ts.map +1 -1
- package/lib/types/atomic/templates/detail-page/DetailPage.d.ts +19 -0
- package/lib/types/atomic/templates/detail-page/DetailPage.d.ts.map +1 -0
- package/lib/types/atomic/templates/detail-page/detailPage.css.d.ts +9 -0
- package/lib/types/atomic/templates/detail-page/detailPage.css.d.ts.map +1 -0
- package/lib/types/atomic/templates/page-container/PageContainer.d.ts +14 -0
- package/lib/types/atomic/templates/page-container/PageContainer.d.ts.map +1 -0
- package/lib/types/atomic/templates/page-container/pageContainer.css.d.ts +7 -0
- package/lib/types/atomic/templates/page-container/pageContainer.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_page_header/BackofficePageHeader.d.ts +2 -1
- package/lib/types/backoffice/molecules/backoffice_page_header/BackofficePageHeader.d.ts.map +1 -1
- package/lib/types/backoffice/molecules/backoffice_page_header/backofficePageHeader.css.d.ts +2 -0
- package/lib/types/backoffice/molecules/backoffice_page_header/backofficePageHeader.css.d.ts.map +1 -1
- package/lib/types/index.d.ts +3 -2
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/theme/ThemeProvider.d.ts +1 -1
- package/lib/types/theme/ThemeProvider.d.ts.map +1 -1
- package/package.json +2 -2
- package/lib/esm/atomic/molecules/profile_dropdown/ProfileDropdown.js +0 -119
- package/lib/esm/atomic/molecules/profile_dropdown/ProfileDropdown.js.map +0 -1
- package/lib/esm/atomic/molecules/profile_dropdown/profileDropdown.css.js +0 -8
- package/lib/esm/atomic/molecules/profile_dropdown/profileDropdown.css.js.map +0 -1
- package/lib/types/atomic/molecules/profile_dropdown/ProfileDropdown.d.ts +0 -24
- package/lib/types/atomic/molecules/profile_dropdown/ProfileDropdown.d.ts.map +0 -1
- package/lib/types/atomic/molecules/profile_dropdown/profileDropdown.css.d.ts +0 -14
- package/lib/types/atomic/molecules/profile_dropdown/profileDropdown.css.d.ts.map +0 -1
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { cx as e } from "../../../theme/tools.js";
|
|
2
|
-
import { ChevronDownSvg as t } from "../../../icons/ChevronDownSvg.js";
|
|
3
|
-
import { ProfileDropdownLogoutSvg as n } from "../../../icons/ProfileDropdownLogoutSvg.js";
|
|
4
|
-
import { ProfileDropdownOrganizationSvg as r } from "../../../icons/ProfileDropdownOrganizationSvg.js";
|
|
5
|
-
import { avatar as i, chevron as a, chevronOpen as o, container as s, dropdown as c, menuIcon as l, menuItem as u, menuLabel as d, organizationName as f, selectButton as p, selectContent as m, selectText as h, userName as g } from "./profileDropdown.css.js";
|
|
6
|
-
import { useEffect as _, useRef as v, useState as y } from "react";
|
|
7
|
-
import { jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
8
|
-
import { Link as S } from "@plumile/router";
|
|
9
|
-
//#region src/atomic/molecules/profile_dropdown/ProfileDropdown.tsx
|
|
10
|
-
var C = {
|
|
11
|
-
menuAriaLabel: "User menu",
|
|
12
|
-
profileSecurity: "Profile & Security",
|
|
13
|
-
switchOrganizations: "Switch Organizations",
|
|
14
|
-
signOut: "Sign Out"
|
|
15
|
-
}, w = (w) => {
|
|
16
|
-
let [T, E] = y(!1), D = v(null), { viewer: O, organization: k, labels: A = C } = w, j = () => {
|
|
17
|
-
E((e) => !e);
|
|
18
|
-
}, M = () => {
|
|
19
|
-
E(!1);
|
|
20
|
-
};
|
|
21
|
-
_(() => {
|
|
22
|
-
let e = (e) => {
|
|
23
|
-
D.current != null && !D.current.contains(e.target) && E(!1);
|
|
24
|
-
};
|
|
25
|
-
return document.addEventListener("mousedown", e), () => {
|
|
26
|
-
document.removeEventListener("mousedown", e);
|
|
27
|
-
};
|
|
28
|
-
}, []);
|
|
29
|
-
let N = [O.firstName, O.lastName].filter((e) => e.trim().length > 0).join(" "), P = null;
|
|
30
|
-
return T && (P = /* @__PURE__ */ x("div", {
|
|
31
|
-
className: c,
|
|
32
|
-
role: "menu",
|
|
33
|
-
children: [
|
|
34
|
-
/* @__PURE__ */ x(S, {
|
|
35
|
-
to: w.profilePath,
|
|
36
|
-
className: u,
|
|
37
|
-
onClick: M,
|
|
38
|
-
children: [/* @__PURE__ */ b("span", {
|
|
39
|
-
className: l,
|
|
40
|
-
children: /* @__PURE__ */ b(r, {
|
|
41
|
-
width: 16,
|
|
42
|
-
height: 16
|
|
43
|
-
})
|
|
44
|
-
}), /* @__PURE__ */ b("span", {
|
|
45
|
-
className: d,
|
|
46
|
-
children: A.profileSecurity
|
|
47
|
-
})]
|
|
48
|
-
}),
|
|
49
|
-
/* @__PURE__ */ x(S, {
|
|
50
|
-
to: k.switchPath,
|
|
51
|
-
className: u,
|
|
52
|
-
onClick: M,
|
|
53
|
-
children: [/* @__PURE__ */ b("span", {
|
|
54
|
-
className: l,
|
|
55
|
-
children: /* @__PURE__ */ b(r, {
|
|
56
|
-
width: 16,
|
|
57
|
-
height: 16
|
|
58
|
-
})
|
|
59
|
-
}), /* @__PURE__ */ b("span", {
|
|
60
|
-
className: d,
|
|
61
|
-
children: A.switchOrganizations
|
|
62
|
-
})]
|
|
63
|
-
}),
|
|
64
|
-
/* @__PURE__ */ x("button", {
|
|
65
|
-
className: u,
|
|
66
|
-
onClick: () => {
|
|
67
|
-
w.onSignOut?.(), M();
|
|
68
|
-
},
|
|
69
|
-
type: "button",
|
|
70
|
-
role: "menuitem",
|
|
71
|
-
children: [/* @__PURE__ */ b("span", {
|
|
72
|
-
className: l,
|
|
73
|
-
children: /* @__PURE__ */ b(n, {
|
|
74
|
-
width: 16,
|
|
75
|
-
height: 16
|
|
76
|
-
})
|
|
77
|
-
}), /* @__PURE__ */ b("span", {
|
|
78
|
-
className: d,
|
|
79
|
-
children: A.signOut
|
|
80
|
-
})]
|
|
81
|
-
})
|
|
82
|
-
]
|
|
83
|
-
})), /* @__PURE__ */ x("div", {
|
|
84
|
-
className: e(s, w.className),
|
|
85
|
-
ref: D,
|
|
86
|
-
children: [/* @__PURE__ */ x("button", {
|
|
87
|
-
className: p,
|
|
88
|
-
onClick: j,
|
|
89
|
-
"aria-expanded": T,
|
|
90
|
-
"aria-haspopup": "menu",
|
|
91
|
-
"aria-label": A.menuAriaLabel,
|
|
92
|
-
type: "button",
|
|
93
|
-
children: [/* @__PURE__ */ x("span", {
|
|
94
|
-
className: m,
|
|
95
|
-
children: [/* @__PURE__ */ b("span", {
|
|
96
|
-
className: i,
|
|
97
|
-
children: O.initials
|
|
98
|
-
}), /* @__PURE__ */ x("span", {
|
|
99
|
-
className: h,
|
|
100
|
-
children: [/* @__PURE__ */ b("span", {
|
|
101
|
-
className: g,
|
|
102
|
-
children: N
|
|
103
|
-
}), /* @__PURE__ */ b("span", {
|
|
104
|
-
className: f,
|
|
105
|
-
children: k.name
|
|
106
|
-
})]
|
|
107
|
-
})]
|
|
108
|
-
}), /* @__PURE__ */ b(t, {
|
|
109
|
-
width: 16,
|
|
110
|
-
height: 16,
|
|
111
|
-
className: e(a, { [o]: T })
|
|
112
|
-
})]
|
|
113
|
-
}), P]
|
|
114
|
-
});
|
|
115
|
-
};
|
|
116
|
-
//#endregion
|
|
117
|
-
export { w as ProfileDropdown, w as default };
|
|
118
|
-
|
|
119
|
-
//# sourceMappingURL=ProfileDropdown.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProfileDropdown.js","names":[],"sources":["../../../../../src/atomic/molecules/profile_dropdown/ProfileDropdown.tsx"],"sourcesContent":["import { useEffect, useRef, useState, type JSX } from 'react';\nimport { Link } from '@plumile/router';\n\nimport { ChevronDownSvg } from '../../../icons/ChevronDownSvg.js';\nimport { ProfileDropdownLogoutSvg } from '../../../icons/ProfileDropdownLogoutSvg.js';\nimport { ProfileDropdownOrganizationSvg } from '../../../icons/ProfileDropdownOrganizationSvg.js';\nimport { cx } from '../../../theme/tools.js';\nimport * as classes from './profileDropdown.css.js';\n\ntype Props = {\n viewer: {\n firstName: string;\n lastName: string;\n initials: string;\n };\n profilePath: string;\n organization: {\n name: string;\n switchPath: string;\n };\n labels?: {\n menuAriaLabel: string;\n profileSecurity: string;\n switchOrganizations: string;\n signOut: string;\n };\n className?: string;\n onSignOut?: () => void;\n};\n\nconst DEFAULT_LABELS = {\n menuAriaLabel: 'User menu',\n profileSecurity: 'Profile & Security',\n switchOrganizations: 'Switch Organizations',\n signOut: 'Sign Out',\n};\n\nexport const ProfileDropdown = (props: Props): JSX.Element | null => {\n const [isOpen, setIsOpen] = useState(false);\n const dropdownRef = useRef<HTMLDivElement>(null);\n\n const { viewer, organization, labels = DEFAULT_LABELS } = props;\n\n const toggleDropdown = (): void => {\n setIsOpen((prev) => {\n return !prev;\n });\n };\n\n const closeDropdown = (): void => {\n setIsOpen(false);\n };\n\n useEffect(() => {\n const handleClickOutside = (event: MouseEvent): void => {\n if (\n dropdownRef.current != null &&\n !dropdownRef.current.contains(event.target as Node)\n ) {\n setIsOpen(false);\n }\n };\n\n document.addEventListener('mousedown', handleClickOutside);\n return () => {\n document.removeEventListener('mousedown', handleClickOutside);\n };\n }, []);\n\n const displayNameParts = [viewer.firstName, viewer.lastName].filter(\n (part) => {\n return part.trim().length > 0;\n },\n );\n const userDisplayName = displayNameParts.join(' ');\n\n let dropdownMenu: JSX.Element | null = null;\n if (isOpen) {\n dropdownMenu = (\n <div className={classes.dropdown} role=\"menu\">\n <Link\n to={props.profilePath}\n className={classes.menuItem}\n onClick={closeDropdown}\n >\n <span className={classes.menuIcon}>\n <ProfileDropdownOrganizationSvg width={16} height={16} />\n </span>\n <span className={classes.menuLabel}>{labels.profileSecurity}</span>\n </Link>\n <Link\n to={organization.switchPath}\n className={classes.menuItem}\n onClick={closeDropdown}\n >\n <span className={classes.menuIcon}>\n <ProfileDropdownOrganizationSvg width={16} height={16} />\n </span>\n <span className={classes.menuLabel}>\n {labels.switchOrganizations}\n </span>\n </Link>\n\n <button\n className={classes.menuItem}\n onClick={() => {\n props.onSignOut?.();\n closeDropdown();\n }}\n type=\"button\"\n role=\"menuitem\"\n >\n <span className={classes.menuIcon}>\n <ProfileDropdownLogoutSvg width={16} height={16} />\n </span>\n <span className={classes.menuLabel}>{labels.signOut}</span>\n </button>\n </div>\n );\n }\n\n return (\n <div className={cx(classes.container, props.className)} ref={dropdownRef}>\n <button\n className={classes.selectButton}\n onClick={toggleDropdown}\n aria-expanded={isOpen}\n aria-haspopup=\"menu\"\n aria-label={labels.menuAriaLabel}\n type=\"button\"\n >\n <span className={classes.selectContent}>\n <span className={classes.avatar}>{viewer.initials}</span>\n <span className={classes.selectText}>\n <span className={classes.userName}>{userDisplayName}</span>\n <span className={classes.organizationName}>\n {organization.name}\n </span>\n </span>\n </span>\n <ChevronDownSvg\n width={16}\n height={16}\n className={cx(classes.chevron, {\n [classes.chevronOpen]: isOpen,\n })}\n />\n </button>\n\n {dropdownMenu}\n </div>\n );\n};\n\nexport default ProfileDropdown;\n"],"mappings":";;;;;;;;;AA8BA,IAAM,IAAiB;CACrB,eAAe;CACf,iBAAiB;CACjB,qBAAqB;CACrB,SAAS;CACV,EAEY,KAAmB,MAAqC;CACnE,IAAM,CAAC,GAAQ,KAAa,EAAS,GAAM,EACrC,IAAc,EAAuB,KAAK,EAE1C,EAAE,WAAQ,iBAAc,YAAS,MAAmB,GAEpD,UAA6B;AACjC,KAAW,MACF,CAAC,EACR;IAGE,UAA4B;AAChC,IAAU,GAAM;;AAGlB,SAAgB;EACd,IAAM,KAAsB,MAA4B;AACtD,GACE,EAAY,WAAW,QACvB,CAAC,EAAY,QAAQ,SAAS,EAAM,OAAe,IAEnD,EAAU,GAAM;;AAKpB,SADA,SAAS,iBAAiB,aAAa,EAAmB,QAC7C;AACX,YAAS,oBAAoB,aAAa,EAAmB;;IAE9D,EAAE,CAAC;CAON,IAAM,IALmB,CAAC,EAAO,WAAW,EAAO,SAAS,CAAC,QAC1D,MACQ,EAAK,MAAM,CAAC,SAAS,EAE/B,CACwC,KAAK,IAAI,EAE9C,IAAmC;AA6CvC,QA5CI,MACF,IACE,kBAAC,OAAD;EAAK,WAAW;EAAkB,MAAK;YAAvC;GACE,kBAAC,GAAD;IACE,IAAI,EAAM;IACV,WAAW;IACX,SAAS;cAHX,CAKE,kBAAC,QAAD;KAAM,WAAW;eACf,kBAAC,GAAD;MAAgC,OAAO;MAAI,QAAQ;MAAM,CAAA;KACpD,CAAA,EACP,kBAAC,QAAD;KAAM,WAAW;eAAoB,EAAO;KAAuB,CAAA,CAC9D;;GACP,kBAAC,GAAD;IACE,IAAI,EAAa;IACjB,WAAW;IACX,SAAS;cAHX,CAKE,kBAAC,QAAD;KAAM,WAAW;eACf,kBAAC,GAAD;MAAgC,OAAO;MAAI,QAAQ;MAAM,CAAA;KACpD,CAAA,EACP,kBAAC,QAAD;KAAM,WAAW;eACd,EAAO;KACH,CAAA,CACF;;GAEP,kBAAC,UAAD;IACE,WAAW;IACX,eAAe;AAEb,KADA,EAAM,aAAa,EACnB,GAAe;;IAEjB,MAAK;IACL,MAAK;cAPP,CASE,kBAAC,QAAD;KAAM,WAAW;eACf,kBAAC,GAAD;MAA0B,OAAO;MAAI,QAAQ;MAAM,CAAA;KAC9C,CAAA,EACP,kBAAC,QAAD;KAAM,WAAW;eAAoB,EAAO;KAAe,CAAA,CACpD;;GACL;MAKR,kBAAC,OAAD;EAAK,WAAW,EAAG,GAAmB,EAAM,UAAU;EAAE,KAAK;YAA7D,CACE,kBAAC,UAAD;GACE,WAAW;GACX,SAAS;GACT,iBAAe;GACf,iBAAc;GACd,cAAY,EAAO;GACnB,MAAK;aANP,CAQE,kBAAC,QAAD;IAAM,WAAW;cAAjB,CACE,kBAAC,QAAD;KAAM,WAAW;eAAiB,EAAO;KAAgB,CAAA,EACzD,kBAAC,QAAD;KAAM,WAAW;eAAjB,CACE,kBAAC,QAAD;MAAM,WAAW;gBAAmB;MAAuB,CAAA,EAC3D,kBAAC,QAAD;MAAM,WAAW;gBACd,EAAa;MACT,CAAA,CACF;OACF;OACP,kBAAC,GAAD;IACE,OAAO;IACP,QAAQ;IACR,WAAW,EAAG,GAAiB,GAC5B,IAAsB,GACxB,CAAC;IACF,CAAA,CACK;MAER,EACG"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/* empty css */
|
|
2
|
-
/* empty css */
|
|
3
|
-
//#region src/atomic/molecules/profile_dropdown/profileDropdown.css.ts
|
|
4
|
-
var e = "_1vukrf60 txvbqbpsf txvbqbu6f", t = "_1vukrf61 txvbqbnv6 txvbqboif txvbqbp5f txvbqblx6 txvbqb9io txvbqbco txvbqbdoo txvbqbu6f txvbqb1rx txvbqbv4h txvbqbv txvbqbt5o txvbqb1co txvbqb1qf txvbqbwo", n = "_1vukrf62 txvbqb9io txvbqbco txvbqbaof txvbqb9mx txvbqbk4x", r = "_1vukrf63 txvbqb9io txvbqbco txvbqbdnx txvbqbtx6 txvbqbc6o txvbqb1sx txvbqbuy6 txvbqbv9z txvbqb8o txvbqbamo txvbqb66", i = "_1vukrf64 txvbqb9io txvbqbai6 txvbqbk4x", a = "_1vukrf65 txvbqbps6 txvbqbthf txvbqbdpf txvbqbiio txvbqbuso txvbqbkgo txvbqbv4h txvbqb1ro txvbqb1co txvbqb1qf txvbqb106 txvbqbuux txvbqbl9x txvbqb8s6", o = "_1vukrf66 txvbqb8x txvbqbamo txvbqbv53 txvbqbuw6 txvbqbl6f txvbqbt6f", s = "_1vukrf67 txvbqb8o txvbqbamo txvbqbv53 txvbqbvar txvbqbuw6 txvbqbl6f txvbqbt6f", c = "_1vukrf69 _1vukrf68 txvbqbnv6 txvbqboif txvbqbp5f txvbqblx6 txvbqb77 txvbqb6x txvbqb7k txvbqb9io txvbqbco txvbqbu6f txvbqb12f txvbqb1px txvbqbuzj txvbqb1rf txvbqbv txvbqbt5o txvbqb3b txvbqbva3 txvbqb8x txvbqbamo", l = "_1vukrf6a txvbqb9io txvbqbco txvbqbdnx txvbqbha6 txvbqbv4z", u = "_1vukrf6b txvbqb9mx txvbqbuw6", d = "_1vukrf6c txvbqbv9p txvbqb7g txvbqb6x txvbqb7k", f = "_1vukrf6d txvbqb2w";
|
|
5
|
-
//#endregion
|
|
6
|
-
export { r as avatar, d as chevron, f as chevronOpen, e as container, a as dropdown, l as menuIcon, c as menuItem, u as menuLabel, s as organizationName, t as selectButton, n as selectContent, i as selectText, o as userName };
|
|
7
|
-
|
|
8
|
-
//# sourceMappingURL=profileDropdown.css.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"profileDropdown.css.js","names":[],"sources":["../../../../../src/atomic/molecules/profile_dropdown/profileDropdown.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\n\nimport { sprinkles } from '../../../theme/sprinkles.css.js';\nimport { vars } from '../../../theme/themeContract.js';\n\nexport const container = sprinkles({\n position: 'relative',\n width: 'full',\n});\n\nexport const selectButton = sprinkles({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n width: 'full',\n paddingY: 2,\n paddingX: 3,\n borderRadius: 'xl',\n backgroundColor: 'brandWhite',\n cursor: 'pointer',\n textAlign: 'left',\n borderWidth: 'default',\n borderStyle: 'solid',\n borderColor: 'borderSubtle',\n});\n\nexport const selectContent = sprinkles({\n display: 'flex',\n alignItems: 'center',\n gap: 3,\n flex: 1,\n minWidth: 0,\n});\n\nexport const avatar = sprinkles({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n width: 8,\n height: 8,\n borderRadius: '1/2',\n backgroundImage: 'brandDiagonal',\n color: 'brandWhite',\n fontSize: 'xs',\n fontWeight: 'semibold',\n textTransform: 'uppercase',\n});\n\nexport const selectText = sprinkles({\n display: 'flex',\n flexDirection: 'column',\n minWidth: 0,\n});\n\nexport const dropdown = sprinkles({\n position: 'absolute',\n top: 'full',\n left: 0,\n marginTop: 1.5,\n width: 'max',\n minWidth: 'full',\n backgroundColor: 'brandWhite',\n borderRadius: 'lg',\n borderWidth: 'default',\n borderStyle: 'solid',\n borderColor: 'brandPrimaryRed',\n zIndex: 30,\n padding: 2,\n boxShadow: 'profileDropdownShadow',\n});\n\nexport const userName = sprinkles({\n fontSize: 'sm',\n fontWeight: 'semibold',\n color: 'black',\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n});\n\nexport const organizationName = sprinkles({\n fontSize: 'xs',\n fontWeight: 'semibold',\n color: 'black',\n opacity: 50,\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n});\n\nexport const menuItem = style([\n sprinkles({\n transitionProperty: 'default',\n transitionDuration: 150,\n transitionTimingFunction: 'ease',\n display: 'flex',\n alignItems: 'center',\n width: 'full',\n paddingY: 2,\n paddingX: 3,\n borderWidth: 0,\n borderStyle: 'none',\n backgroundColor: 'transparent',\n borderRadius: 'md',\n cursor: 'pointer',\n textAlign: 'left',\n textDecoration: 'none',\n color: 'brandDarkGray',\n fontSize: 'sm',\n fontWeight: 'semibold',\n }),\n {\n selectors: {\n '& + &': {\n marginTop: vars.spacing[1],\n },\n },\n ':hover': {\n backgroundColor: vars.colors.brandLightGray,\n color: vars.colors.brandPrimaryRed,\n textDecoration: 'none',\n },\n ':focus-visible': {\n outline: 'none',\n boxShadow: `0 0 0 2px ${vars.colors.brandPrimaryRed}`,\n },\n },\n]);\n\nexport const menuIcon = sprinkles({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n marginRight: 3,\n color: 'current',\n});\n\nexport const menuLabel = sprinkles({\n flex: 1,\n whiteSpace: 'nowrap',\n});\n\nexport const chevron = sprinkles({\n color: 'brandPrimaryRed',\n transitionProperty: 'transform',\n transitionDuration: 150,\n transitionTimingFunction: 'ease',\n});\n\nexport const chevronOpen = sprinkles({\n rotate: 180,\n});\n"],"mappings":""}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { type JSX } from 'react';
|
|
2
|
-
type Props = {
|
|
3
|
-
viewer: {
|
|
4
|
-
firstName: string;
|
|
5
|
-
lastName: string;
|
|
6
|
-
initials: string;
|
|
7
|
-
};
|
|
8
|
-
profilePath: string;
|
|
9
|
-
organization: {
|
|
10
|
-
name: string;
|
|
11
|
-
switchPath: string;
|
|
12
|
-
};
|
|
13
|
-
labels?: {
|
|
14
|
-
menuAriaLabel: string;
|
|
15
|
-
profileSecurity: string;
|
|
16
|
-
switchOrganizations: string;
|
|
17
|
-
signOut: string;
|
|
18
|
-
};
|
|
19
|
-
className?: string;
|
|
20
|
-
onSignOut?: () => void;
|
|
21
|
-
};
|
|
22
|
-
export declare const ProfileDropdown: (props: Props) => JSX.Element | null;
|
|
23
|
-
export default ProfileDropdown;
|
|
24
|
-
//# sourceMappingURL=ProfileDropdown.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProfileDropdown.d.ts","sourceRoot":"","sources":["../../../../../src/atomic/molecules/profile_dropdown/ProfileDropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA+B,KAAK,GAAG,EAAE,MAAM,OAAO,CAAC;AAS9D,KAAK,KAAK,GAAG;IACX,MAAM,EAAE;QACN,SAAS,EAAE,MAAM,CAAC;QAClB,QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE;QACZ,IAAI,EAAE,MAAM,CAAC;QACb,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,MAAM,CAAC,EAAE;QACP,aAAa,EAAE,MAAM,CAAC;QACtB,eAAe,EAAE,MAAM,CAAC;QACxB,mBAAmB,EAAE,MAAM,CAAC;QAC5B,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB,CAAC;AASF,eAAO,MAAM,eAAe,GAAI,OAAO,KAAK,KAAG,GAAG,CAAC,OAAO,GAAG,IAmH5D,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare const container: string;
|
|
2
|
-
export declare const selectButton: string;
|
|
3
|
-
export declare const selectContent: string;
|
|
4
|
-
export declare const avatar: string;
|
|
5
|
-
export declare const selectText: string;
|
|
6
|
-
export declare const dropdown: string;
|
|
7
|
-
export declare const userName: string;
|
|
8
|
-
export declare const organizationName: string;
|
|
9
|
-
export declare const menuItem: string;
|
|
10
|
-
export declare const menuIcon: string;
|
|
11
|
-
export declare const menuLabel: string;
|
|
12
|
-
export declare const chevron: string;
|
|
13
|
-
export declare const chevronOpen: string;
|
|
14
|
-
//# sourceMappingURL=profileDropdown.css.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"profileDropdown.css.d.ts","sourceRoot":"","sources":["../../../../../src/atomic/molecules/profile_dropdown/profileDropdown.css.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,SAAS,QAGpB,CAAC;AAEH,eAAO,MAAM,YAAY,QAcvB,CAAC;AAEH,eAAO,MAAM,aAAa,QAMxB,CAAC;AAEH,eAAO,MAAM,MAAM,QAYjB,CAAC;AAEH,eAAO,MAAM,UAAU,QAIrB,CAAC;AAEH,eAAO,MAAM,QAAQ,QAenB,CAAC;AAEH,eAAO,MAAM,QAAQ,QAOnB,CAAC;AAEH,eAAO,MAAM,gBAAgB,QAQ3B,CAAC;AAEH,eAAO,MAAM,QAAQ,QAqCnB,CAAC;AAEH,eAAO,MAAM,QAAQ,QAMnB,CAAC;AAEH,eAAO,MAAM,SAAS,QAGpB,CAAC;AAEH,eAAO,MAAM,OAAO,QAKlB,CAAC;AAEH,eAAO,MAAM,WAAW,QAEtB,CAAC"}
|