@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
|
@@ -8,7 +8,17 @@ import { Link as p } from "@plumile/router";
|
|
|
8
8
|
//#region src/atomic/molecules/breadcrumb_navigation/BreadcrumbMenuDropdown.tsx
|
|
9
9
|
var m = ({ node: m, menu: h, ariaLabel: g, searchPlaceholder: _, searchAriaLabel: v, emptyLabel: y, emptyMatchesLabel: b }) => {
|
|
10
10
|
let x = h?.items ?? [];
|
|
11
|
-
return /* @__PURE__ */ d("div", {
|
|
11
|
+
return h == null ? /* @__PURE__ */ d("div", {
|
|
12
|
+
className: o,
|
|
13
|
+
children: /* @__PURE__ */ d("div", {
|
|
14
|
+
className: a,
|
|
15
|
+
children: /* @__PURE__ */ d(p, {
|
|
16
|
+
to: m.to,
|
|
17
|
+
className: i,
|
|
18
|
+
children: m.name
|
|
19
|
+
})
|
|
20
|
+
})
|
|
21
|
+
}) : /* @__PURE__ */ d("div", {
|
|
12
22
|
className: o,
|
|
13
23
|
children: /* @__PURE__ */ f("div", {
|
|
14
24
|
className: a,
|
|
@@ -32,7 +42,7 @@ var m = ({ node: m, menu: h, ariaLabel: g, searchPlaceholder: _, searchAriaLabel
|
|
|
32
42
|
contentClassName: s,
|
|
33
43
|
children: /* @__PURE__ */ d(u, {
|
|
34
44
|
items: x,
|
|
35
|
-
selectedId: h
|
|
45
|
+
selectedId: h.selectedId,
|
|
36
46
|
searchPlaceholder: _,
|
|
37
47
|
searchAriaLabel: v,
|
|
38
48
|
emptyLabel: y,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BreadcrumbMenuDropdown.js","names":[],"sources":["../../../../../src/atomic/molecules/breadcrumb_navigation/BreadcrumbMenuDropdown.tsx"],"sourcesContent":["import { type JSX } from 'react';\nimport { Link } from '@plumile/router';\nimport { ChevronDownSvg } from '../../../icons/ChevronDownSvg.js';\nimport { Dropdown } from '../dropdown/Dropdown.js';\nimport { cx } from '../../../theme/tools.js';\n\nimport * as styles from './breadcrumbNavigation.css.js';\nimport { BreadcrumbMenuPopover } from './BreadcrumbMenuPopover.js';\nimport type { BreadcrumbMenuConfig, BreadcrumbNode } from './types.js';\n\ntype Props = {\n node: BreadcrumbNode;\n menu?: BreadcrumbMenuConfig;\n ariaLabel: string;\n searchPlaceholder: string;\n searchAriaLabel: string;\n emptyLabel: string;\n emptyMatchesLabel: string;\n};\n\nexport const BreadcrumbMenuDropdown = ({\n node,\n menu,\n ariaLabel,\n searchPlaceholder,\n searchAriaLabel,\n emptyLabel,\n emptyMatchesLabel,\n}: Props): JSX.Element => {\n const menuItems = menu?.items ?? [];\n\n return (\n <div className={styles.breadcrumbSection}>\n {/* <span className={styles.breadcrumbLabel}>{sectionLabel}</span> */}\n <div className={styles.breadcrumbNameRow}>\n <Link to={node.to} className={styles.breadcrumbLink}>\n {node.name}\n </Link>\n <Dropdown\n trigger={(isOpen) => {\n return (\n <button type=\"button\" className={styles.breadcrumbChevronButton}>\n <ChevronDownSvg\n width={14}\n height={14}\n className={cx(styles.breadcrumbChevron, {\n [styles.breadcrumbChevronOpen]: isOpen,\n })}\n />\n </button>\n );\n }}\n ariaLabel={ariaLabel}\n placement=\"bottom-start\"\n matchTriggerWidth={false}\n contentClassName={styles.popoverPanel}\n >\n <BreadcrumbMenuPopover\n items={menuItems}\n selectedId={menu
|
|
1
|
+
{"version":3,"file":"BreadcrumbMenuDropdown.js","names":[],"sources":["../../../../../src/atomic/molecules/breadcrumb_navigation/BreadcrumbMenuDropdown.tsx"],"sourcesContent":["import { type JSX } from 'react';\nimport { Link } from '@plumile/router';\nimport { ChevronDownSvg } from '../../../icons/ChevronDownSvg.js';\nimport { Dropdown } from '../dropdown/Dropdown.js';\nimport { cx } from '../../../theme/tools.js';\n\nimport * as styles from './breadcrumbNavigation.css.js';\nimport { BreadcrumbMenuPopover } from './BreadcrumbMenuPopover.js';\nimport type { BreadcrumbMenuConfig, BreadcrumbNode } from './types.js';\n\ntype Props = {\n node: BreadcrumbNode;\n menu?: BreadcrumbMenuConfig;\n ariaLabel: string;\n searchPlaceholder: string;\n searchAriaLabel: string;\n emptyLabel: string;\n emptyMatchesLabel: string;\n};\n\nexport const BreadcrumbMenuDropdown = ({\n node,\n menu,\n ariaLabel,\n searchPlaceholder,\n searchAriaLabel,\n emptyLabel,\n emptyMatchesLabel,\n}: Props): JSX.Element => {\n const menuItems = menu?.items ?? [];\n\n if (menu == null) {\n return (\n <div className={styles.breadcrumbSection}>\n <div className={styles.breadcrumbNameRow}>\n <Link to={node.to} className={styles.breadcrumbLink}>\n {node.name}\n </Link>\n </div>\n </div>\n );\n }\n\n return (\n <div className={styles.breadcrumbSection}>\n {/* <span className={styles.breadcrumbLabel}>{sectionLabel}</span> */}\n <div className={styles.breadcrumbNameRow}>\n <Link to={node.to} className={styles.breadcrumbLink}>\n {node.name}\n </Link>\n <Dropdown\n trigger={(isOpen) => {\n return (\n <button type=\"button\" className={styles.breadcrumbChevronButton}>\n <ChevronDownSvg\n width={14}\n height={14}\n className={cx(styles.breadcrumbChevron, {\n [styles.breadcrumbChevronOpen]: isOpen,\n })}\n />\n </button>\n );\n }}\n ariaLabel={ariaLabel}\n placement=\"bottom-start\"\n matchTriggerWidth={false}\n contentClassName={styles.popoverPanel}\n >\n <BreadcrumbMenuPopover\n items={menuItems}\n selectedId={menu.selectedId}\n searchPlaceholder={searchPlaceholder}\n searchAriaLabel={searchAriaLabel}\n emptyLabel={emptyLabel}\n emptyMatchesLabel={emptyMatchesLabel}\n />\n </Dropdown>\n </div>\n </div>\n );\n};\n"],"mappings":";;;;;;;;AAoBA,IAAa,KAA0B,EACrC,SACA,SACA,cACA,sBACA,oBACA,eACA,2BACwB;CACxB,IAAM,IAAY,GAAM,SAAS,EAAE;AAcnC,QAZI,KAAQ,OAER,kBAAC,OAAD;EAAK,WAAW;YACd,kBAAC,OAAD;GAAK,WAAW;aACd,kBAAC,GAAD;IAAM,IAAI,EAAK;IAAI,WAAW;cAC3B,EAAK;IACD,CAAA;GACH,CAAA;EACF,CAAA,GAKR,kBAAC,OAAD;EAAK,WAAW;YAEd,kBAAC,OAAD;GAAK,WAAW;aAAhB,CACE,kBAAC,GAAD;IAAM,IAAI,EAAK;IAAI,WAAW;cAC3B,EAAK;IACD,CAAA,EACP,kBAAC,GAAD;IACE,UAAU,MAEN,kBAAC,UAAD;KAAQ,MAAK;KAAS,WAAW;eAC/B,kBAAC,GAAD;MACE,OAAO;MACP,QAAQ;MACR,WAAW,EAAG,GAA0B,GACrC,IAA+B,GACjC,CAAC;MACF,CAAA;KACK,CAAA;IAGF;IACX,WAAU;IACV,mBAAmB;IACnB,kBAAkB;cAElB,kBAAC,GAAD;KACE,OAAO;KACP,YAAY,EAAK;KACE;KACF;KACL;KACO;KACnB,CAAA;IACO,CAAA,CACP;;EACF,CAAA"}
|
|
@@ -1,63 +1,52 @@
|
|
|
1
1
|
import { cx as e } from "../../../theme/tools.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { Link as d } from "@plumile/router";
|
|
2
|
+
import { SidebarHomeSvg as t } from "../../../icons/SidebarHomeSvg.js";
|
|
3
|
+
import { breadcrumb as n, breadcrumbItem as r, breadcrumbList as i, breadcrumbSeparator as a, homeIcon as o, homeLink as s } from "./breadcrumbNavigation.css.js";
|
|
4
|
+
import { BreadcrumbMenuDropdown as c } from "./BreadcrumbMenuDropdown.js";
|
|
5
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
6
|
+
import { Link as u } from "@plumile/router";
|
|
8
7
|
//#region src/atomic/molecules/breadcrumb_navigation/BreadcrumbNavigation.tsx
|
|
9
|
-
var
|
|
10
|
-
let {
|
|
11
|
-
|
|
12
|
-
className:
|
|
13
|
-
children: /* @__PURE__ */ u
|
|
14
|
-
to:
|
|
15
|
-
className:
|
|
16
|
-
"aria-label":
|
|
17
|
-
children: /* @__PURE__ */
|
|
8
|
+
var d = (d) => {
|
|
9
|
+
let { root: f, rootAriaLabel: p, items: m = [], className: h } = d, g = [];
|
|
10
|
+
g.push(/* @__PURE__ */ l("li", {
|
|
11
|
+
className: r,
|
|
12
|
+
children: /* @__PURE__ */ l(u, {
|
|
13
|
+
to: f.to,
|
|
14
|
+
className: s,
|
|
15
|
+
"aria-label": p,
|
|
16
|
+
children: /* @__PURE__ */ l(t, {
|
|
18
17
|
width: 16,
|
|
19
18
|
height: 16,
|
|
20
|
-
className:
|
|
19
|
+
className: o
|
|
21
20
|
})
|
|
22
21
|
})
|
|
23
|
-
}, "home"))
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
22
|
+
}, "home"));
|
|
23
|
+
for (let e of m) g.push(/* @__PURE__ */ l("li", {
|
|
24
|
+
className: r,
|
|
25
|
+
children: /* @__PURE__ */ l(c, {
|
|
26
|
+
node: e.node,
|
|
27
|
+
menu: e.menu,
|
|
28
|
+
ariaLabel: e.labels?.ariaLabel ?? e.node.name,
|
|
29
|
+
searchPlaceholder: e.labels?.searchPlaceholder ?? "",
|
|
30
|
+
searchAriaLabel: e.labels?.searchAriaLabel ?? "",
|
|
31
|
+
emptyLabel: e.labels?.emptyLabel ?? "",
|
|
32
|
+
emptyMatchesLabel: e.labels?.emptyMatchesLabel ?? ""
|
|
33
33
|
})
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
node: h,
|
|
38
|
-
menu: _,
|
|
39
|
-
ariaLabel: E,
|
|
40
|
-
searchPlaceholder: w,
|
|
41
|
-
searchAriaLabel: w,
|
|
42
|
-
emptyLabel: T,
|
|
43
|
-
emptyMatchesLabel: b
|
|
44
|
-
})
|
|
45
|
-
}, "project"));
|
|
46
|
-
let O = D.flatMap((e, t) => t === 0 ? [e] : [/* @__PURE__ */ u("li", {
|
|
47
|
-
className: o,
|
|
34
|
+
}, e.id));
|
|
35
|
+
let _ = g.flatMap((e, t) => t === 0 ? [e] : [/* @__PURE__ */ l("li", {
|
|
36
|
+
className: a,
|
|
48
37
|
"aria-hidden": "true",
|
|
49
38
|
children: "/"
|
|
50
39
|
}, `separator-${t}`), e]);
|
|
51
|
-
return /* @__PURE__ */
|
|
52
|
-
className: e(
|
|
40
|
+
return /* @__PURE__ */ l("nav", {
|
|
41
|
+
className: e(n, h),
|
|
53
42
|
"aria-label": "Breadcrumb",
|
|
54
|
-
children: /* @__PURE__ */
|
|
55
|
-
className:
|
|
56
|
-
children:
|
|
43
|
+
children: /* @__PURE__ */ l("ol", {
|
|
44
|
+
className: i,
|
|
45
|
+
children: _
|
|
57
46
|
})
|
|
58
47
|
});
|
|
59
48
|
};
|
|
60
49
|
//#endregion
|
|
61
|
-
export {
|
|
50
|
+
export { d as BreadcrumbNavigation };
|
|
62
51
|
|
|
63
52
|
//# sourceMappingURL=BreadcrumbNavigation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BreadcrumbNavigation.js","names":[],"sources":["../../../../../src/atomic/molecules/breadcrumb_navigation/BreadcrumbNavigation.tsx"],"sourcesContent":["import { type JSX } from 'react';\nimport {
|
|
1
|
+
{"version":3,"file":"BreadcrumbNavigation.js","names":[],"sources":["../../../../../src/atomic/molecules/breadcrumb_navigation/BreadcrumbNavigation.tsx"],"sourcesContent":["import { type JSX } from 'react';\nimport { Link } from '@plumile/router';\nimport { SidebarHomeSvg } from '../../../icons/SidebarHomeSvg.js';\n\nimport * as styles from './breadcrumbNavigation.css.js';\nimport { cx } from '../../../theme/tools.js';\nimport { BreadcrumbMenuDropdown } from './BreadcrumbMenuDropdown.js';\nimport type { BreadcrumbNavigationItem, BreadcrumbNode } from './types.js';\n\ntype Props = {\n root: BreadcrumbNode;\n rootAriaLabel: string;\n items?: readonly BreadcrumbNavigationItem[];\n className?: string;\n};\n\nexport const BreadcrumbNavigation = (props: Props): JSX.Element => {\n const { root, rootAriaLabel, items = [], className } = props;\n const breadcrumbItems: JSX.Element[] = [];\n\n breadcrumbItems.push(\n <li key=\"home\" className={styles.breadcrumbItem}>\n <Link to={root.to} className={styles.homeLink} aria-label={rootAriaLabel}>\n <SidebarHomeSvg width={16} height={16} className={styles.homeIcon} />\n </Link>\n </li>,\n );\n\n for (const item of items) {\n breadcrumbItems.push(\n <li key={item.id} className={styles.breadcrumbItem}>\n <BreadcrumbMenuDropdown\n node={item.node}\n menu={item.menu}\n ariaLabel={item.labels?.ariaLabel ?? item.node.name}\n searchPlaceholder={item.labels?.searchPlaceholder ?? ''}\n searchAriaLabel={item.labels?.searchAriaLabel ?? ''}\n emptyLabel={item.labels?.emptyLabel ?? ''}\n emptyMatchesLabel={item.labels?.emptyMatchesLabel ?? ''}\n />\n </li>,\n );\n }\n\n const breadcrumbsWithSeparators = breadcrumbItems.flatMap((item, index) => {\n if (index === 0) {\n return [item];\n }\n return [\n <li\n key={`separator-${index}`}\n className={styles.breadcrumbSeparator}\n aria-hidden=\"true\"\n >\n /{/* <ChevronRightSvg width={16} height={16} /> */}\n </li>,\n item,\n ];\n });\n\n return (\n <nav className={cx(styles.breadcrumb, className)} aria-label=\"Breadcrumb\">\n <ol className={styles.breadcrumbList}>{breadcrumbsWithSeparators}</ol>\n </nav>\n );\n};\n\nexport type {\n BreadcrumbNavigationItem,\n BreadcrumbNode,\n BreadcrumbMenuItem,\n BreadcrumbMenuConfig,\n BreadcrumbMenuLabels,\n} from './types.js';\n"],"mappings":";;;;;;;AAgBA,IAAa,KAAwB,MAA8B;CACjE,IAAM,EAAE,SAAM,kBAAe,WAAQ,EAAE,EAAE,iBAAc,GACjD,IAAiC,EAAE;AAEzC,GAAgB,KACd,kBAAC,MAAD;EAAe,WAAW;YACxB,kBAAC,GAAD;GAAM,IAAI,EAAK;GAAI,WAAW;GAAiB,cAAY;aACzD,kBAAC,GAAD;IAAgB,OAAO;IAAI,QAAQ;IAAI,WAAW;IAAmB,CAAA;GAChE,CAAA;EACJ,EAJG,OAIH,CACN;AAED,MAAK,IAAM,KAAQ,EACjB,GAAgB,KACd,kBAAC,MAAD;EAAkB,WAAW;YAC3B,kBAAC,GAAD;GACE,MAAM,EAAK;GACX,MAAM,EAAK;GACX,WAAW,EAAK,QAAQ,aAAa,EAAK,KAAK;GAC/C,mBAAmB,EAAK,QAAQ,qBAAqB;GACrD,iBAAiB,EAAK,QAAQ,mBAAmB;GACjD,YAAY,EAAK,QAAQ,cAAc;GACvC,mBAAmB,EAAK,QAAQ,qBAAqB;GACrD,CAAA;EACC,EAVI,EAAK,GAUT,CACN;CAGH,IAAM,IAA4B,EAAgB,SAAS,GAAM,MAC3D,MAAU,IACL,CAAC,EAAK,GAER,CACL,kBAAC,MAAD;EAEE,WAAW;EACX,eAAY;YACb;EAEI,EALE,aAAa,IAKf,EACL,EACD,CACD;AAEF,QACE,kBAAC,OAAD;EAAK,WAAW,EAAG,GAAmB,EAAU;EAAE,cAAW;YAC3D,kBAAC,MAAD;GAAI,WAAW;aAAwB;GAA+B,CAAA;EAClE,CAAA"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { cx as e } from "../../../theme/tools.js";
|
|
2
|
+
import { BackofficePageHeader as t } from "../../../backoffice/molecules/backoffice_page_header/BackofficePageHeader.js";
|
|
3
|
+
import { actions as n, container as r, content as i, contentSection as a } from "./detailPage.css.js";
|
|
4
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
5
|
+
//#region src/atomic/templates/detail-page/DetailPage.tsx
|
|
6
|
+
var c = (e, t) => {
|
|
7
|
+
let r = t ?? [], i = r.length > 0, a = e != null;
|
|
8
|
+
return !a && !i ? null : /* @__PURE__ */ s("div", {
|
|
9
|
+
className: n,
|
|
10
|
+
children: [i && /* @__PURE__ */ o("div", {
|
|
11
|
+
className: "_8ct8xq3 txvbqb9io txvbqbco txvbqbao6 txvbqbajx",
|
|
12
|
+
children: r.map((e, t) => /* @__PURE__ */ o("div", {
|
|
13
|
+
className: "_8ct8xq4 txvbqb9io txvbqbco",
|
|
14
|
+
children: e
|
|
15
|
+
}, t))
|
|
16
|
+
}), a && /* @__PURE__ */ o("div", {
|
|
17
|
+
className: "_8ct8xq5 txvbqb9io txvbqbco",
|
|
18
|
+
children: e
|
|
19
|
+
})]
|
|
20
|
+
});
|
|
21
|
+
}, l = ({ title: n, subtitle: a, primaryAction: l, secondaryActions: u, headerSupplement: d, children: f, className: p, contentClassName: m }) => /* @__PURE__ */ s("div", {
|
|
22
|
+
className: e(r, p),
|
|
23
|
+
children: [
|
|
24
|
+
/* @__PURE__ */ o(t, {
|
|
25
|
+
title: n,
|
|
26
|
+
subtitle: a,
|
|
27
|
+
actions: c(l, u)
|
|
28
|
+
}),
|
|
29
|
+
d != null && /* @__PURE__ */ o("div", {
|
|
30
|
+
className: "_8ct8xq1 txvbqb9io txvbqbai6 txvbqbaoo",
|
|
31
|
+
children: d
|
|
32
|
+
}),
|
|
33
|
+
/* @__PURE__ */ o("div", {
|
|
34
|
+
className: e(i, m),
|
|
35
|
+
children: f
|
|
36
|
+
})
|
|
37
|
+
]
|
|
38
|
+
}), u = ({ children: t, className: n, withBaseStyles: r = !0, ...i }) => {
|
|
39
|
+
let s;
|
|
40
|
+
return r ? s = e(a, n) : n != null && (s = n), /* @__PURE__ */ o("div", {
|
|
41
|
+
...i,
|
|
42
|
+
className: s,
|
|
43
|
+
children: t
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
//#endregion
|
|
47
|
+
export { l as DetailPage, l as default, u as DetailPageContent };
|
|
48
|
+
|
|
49
|
+
//# sourceMappingURL=DetailPage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DetailPage.js","names":[],"sources":["../../../../../src/atomic/templates/detail-page/DetailPage.tsx"],"sourcesContent":["import { type ComponentPropsWithoutRef, type JSX, type ReactNode } from 'react';\n\nimport { BackofficePageHeader } from '../../../backoffice/molecules/backoffice_page_header/BackofficePageHeader.js';\nimport { cx } from '../../../theme/tools.js';\nimport * as styles from './detailPage.css.js';\n\nexport type DetailPageProps = {\n title: string;\n subtitle?: ReactNode;\n primaryAction?: ReactNode;\n secondaryActions?: readonly ReactNode[];\n headerSupplement?: ReactNode;\n children: ReactNode;\n className?: string;\n contentClassName?: string;\n};\n\nexport type DetailPageContentProps = ComponentPropsWithoutRef<'div'> & {\n children: ReactNode;\n withBaseStyles?: boolean;\n};\n\nconst renderActions = (\n primaryAction?: ReactNode,\n secondaryActions?: readonly ReactNode[],\n): ReactNode | null => {\n const secondaryList = secondaryActions ?? [];\n const hasSecondary = secondaryList.length > 0;\n const hasPrimary = primaryAction != null;\n\n if (!hasPrimary && !hasSecondary) {\n return null;\n }\n\n return (\n <div className={styles.actions}>\n {hasSecondary && (\n <div className={styles.secondaryActions}>\n {secondaryList.map((action, index) => {\n return (\n <div key={index} className={styles.actionItem}>\n {action}\n </div>\n );\n })}\n </div>\n )}\n {hasPrimary && (\n <div className={styles.primaryAction}>{primaryAction}</div>\n )}\n </div>\n );\n};\n\nexport const DetailPage = ({\n title,\n subtitle,\n primaryAction,\n secondaryActions,\n headerSupplement,\n children,\n className,\n contentClassName,\n}: DetailPageProps): JSX.Element => {\n return (\n <div className={cx(styles.container, className)}>\n <BackofficePageHeader\n title={title}\n subtitle={subtitle}\n actions={renderActions(primaryAction, secondaryActions)}\n />\n {headerSupplement != null && (\n <div className={styles.headerSupplement}>{headerSupplement}</div>\n )}\n <div className={cx(styles.content, contentClassName)}>{children}</div>\n </div>\n );\n};\n\nexport const DetailPageContent = ({\n children,\n className,\n withBaseStyles = true,\n ...rest\n}: DetailPageContentProps): JSX.Element => {\n let contentClassName: string | undefined;\n if (withBaseStyles) {\n contentClassName = cx(styles.contentSection, className);\n } else if (className != null) {\n contentClassName = className;\n }\n\n return (\n <div {...rest} className={contentClassName}>\n {children}\n </div>\n );\n};\n\nexport default DetailPage;\n"],"mappings":";;;;;AAsBA,IAAM,KACJ,GACA,MACqB;CACrB,IAAM,IAAgB,KAAoB,EAAE,EACtC,IAAe,EAAc,SAAS,GACtC,IAAa,KAAiB;AAMpC,QAJI,CAAC,KAAc,CAAC,IACX,OAIP,kBAAC,OAAD;EAAK,WAAW;YAAhB,CACG,KACC,kBAAC,OAAD;GAAK,WAAW;aACb,EAAc,KAAK,GAAQ,MAExB,kBAAC,OAAD;IAAiB,WAAW;cACzB;IACG,EAFI,EAEJ,CAER;GACE,CAAA,EAEP,KACC,kBAAC,OAAD;GAAK,WAAW;aAAuB;GAAoB,CAAA,CAEzD;;GAIG,KAAc,EACzB,UACA,aACA,kBACA,qBACA,kBAAA,GACA,aACA,cACA,0BAGE,kBAAC,OAAD;CAAK,WAAW,EAAG,GAAkB,EAAU;WAA/C;EACE,kBAAC,GAAD;GACS;GACG;GACV,SAAS,EAAc,GAAe,EAAiB;GACvD,CAAA;EACD,KAAoB,QACnB,kBAAC,OAAD;GAAK,WAAW;aAA0B;GAAuB,CAAA;EAEnE,kBAAC,OAAD;GAAK,WAAW,EAAG,GAAgB,EAAiB;GAAG;GAAe,CAAA;EAClE;IAIG,KAAqB,EAChC,aACA,cACA,oBAAiB,IACjB,GAAG,QACsC;CACzC,IAAI;AAOJ,QANI,IACF,IAAmB,EAAG,GAAuB,EAAU,GAC9C,KAAa,SACtB,IAAmB,IAInB,kBAAC,OAAD;EAAK,GAAI;EAAM,WAAW;EACvB;EACG,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
/* empty css */
|
|
3
|
+
//#region src/atomic/templates/detail-page/detailPage.css.ts
|
|
4
|
+
var e = "_8ct8xq0 txvbqb9io txvbqbai6 txvbqbap6 txvbqbnvf txvbqbp5x", t = "_8ct8xq1 txvbqb9io txvbqbai6 txvbqbaoo", n = "_8ct8xq2 txvbqb9io txvbqbco txvbqbdo6 txvbqbao6 txvbqbajx", r = "_8ct8xq3 txvbqb9io txvbqbco txvbqbao6 txvbqbajx", i = "_8ct8xq4 txvbqb9io txvbqbco", a = "_8ct8xq5 txvbqb9io txvbqbco", o = "_8ct8xq6 txvbqb9io txvbqbai6 txvbqbap6", s = "_8ct8xq7 txvbqb9io txvbqbai6 txvbqbaoo";
|
|
5
|
+
//#endregion
|
|
6
|
+
export { i as actionItem, n as actions, e as container, o as content, s as contentSection, t as headerSupplement, a as primaryAction, r as secondaryActions };
|
|
7
|
+
|
|
8
|
+
//# sourceMappingURL=detailPage.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"detailPage.css.js","names":[],"sources":["../../../../../src/atomic/templates/detail-page/detailPage.css.ts"],"sourcesContent":["import { sprinkles } from '../../../theme/sprinkles.css.js';\n\nexport const container = sprinkles({\n display: 'flex',\n flexDirection: 'column',\n gap: 6,\n paddingLeft: 4,\n paddingTop: 4,\n});\n\nexport const headerSupplement = sprinkles({\n display: 'flex',\n flexDirection: 'column',\n gap: 4,\n});\n\nexport const actions = sprinkles({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'flex-end',\n gap: 2,\n flexWrap: 'wrap',\n});\n\nexport const secondaryActions = sprinkles({\n display: 'flex',\n alignItems: 'center',\n gap: 2,\n flexWrap: 'wrap',\n});\n\nexport const actionItem = sprinkles({\n display: 'flex',\n alignItems: 'center',\n});\n\nexport const primaryAction = sprinkles({\n display: 'flex',\n alignItems: 'center',\n});\n\nexport const content = sprinkles({\n display: 'flex',\n flexDirection: 'column',\n gap: 6,\n});\n\nexport const contentSection = sprinkles({\n display: 'flex',\n flexDirection: 'column',\n gap: 4,\n});\n"],"mappings":""}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { cx as e } from "../../../theme/tools.js";
|
|
2
|
+
import { BackofficePageHeader as t } from "../../../backoffice/molecules/backoffice_page_header/BackofficePageHeader.js";
|
|
3
|
+
import { actions as n, container as r, content as i } from "./pageContainer.css.js";
|
|
4
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
5
|
+
//#region src/atomic/templates/page-container/PageContainer.tsx
|
|
6
|
+
var s = ({ title: s, subtitle: c, primaryAction: l, secondaryActions: u, leftAction: d, children: f, className: p, contentClassName: m }) => {
|
|
7
|
+
let h = u ?? [], g = l != null, _ = h.length > 0, v = null;
|
|
8
|
+
return (g || _) && (v = /* @__PURE__ */ o("div", {
|
|
9
|
+
className: n,
|
|
10
|
+
children: [_ && /* @__PURE__ */ a("div", {
|
|
11
|
+
className: "_1u2lre42 txvbqb9io txvbqbco txvbqbao6 txvbqbajx",
|
|
12
|
+
children: h.map((e, t) => /* @__PURE__ */ a("div", {
|
|
13
|
+
className: "_1u2lre43 txvbqb9io txvbqbco",
|
|
14
|
+
children: e
|
|
15
|
+
}, t))
|
|
16
|
+
}), g && /* @__PURE__ */ a("div", {
|
|
17
|
+
className: "_1u2lre44 txvbqb9io txvbqbco",
|
|
18
|
+
children: l
|
|
19
|
+
})]
|
|
20
|
+
})), /* @__PURE__ */ o("div", {
|
|
21
|
+
className: e(r, p),
|
|
22
|
+
children: [/* @__PURE__ */ a(t, {
|
|
23
|
+
title: s,
|
|
24
|
+
subtitle: c,
|
|
25
|
+
actions: v,
|
|
26
|
+
leftActions: d
|
|
27
|
+
}), /* @__PURE__ */ a("div", {
|
|
28
|
+
className: e(i, m),
|
|
29
|
+
children: f
|
|
30
|
+
})]
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
//#endregion
|
|
34
|
+
export { s as PageContainer, s as default };
|
|
35
|
+
|
|
36
|
+
//# sourceMappingURL=PageContainer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PageContainer.js","names":[],"sources":["../../../../../src/atomic/templates/page-container/PageContainer.tsx"],"sourcesContent":["import { type JSX, type ReactNode } from 'react';\n\nimport { BackofficePageHeader } from '../../../backoffice/molecules/backoffice_page_header/BackofficePageHeader.js';\nimport { cx } from '../../../theme/tools.js';\nimport * as styles from './pageContainer.css.js';\n\nexport type PageContainerProps = {\n title: string;\n subtitle?: ReactNode;\n primaryAction?: ReactNode;\n secondaryActions?: readonly ReactNode[];\n leftAction?: ReactNode;\n children: ReactNode;\n className?: string;\n contentClassName?: string;\n};\n\nexport const PageContainer = ({\n title,\n subtitle,\n primaryAction,\n secondaryActions,\n leftAction,\n children,\n className,\n contentClassName,\n}: PageContainerProps): JSX.Element => {\n const secondary = secondaryActions ?? [];\n const hasPrimaryAction = primaryAction != null;\n const hasSecondaryActions = secondary.length > 0;\n\n let actions: ReactNode | null = null;\n if (hasPrimaryAction || hasSecondaryActions) {\n actions = (\n <div className={styles.actions}>\n {hasSecondaryActions && (\n <div className={styles.secondaryActions}>\n {secondary.map((action, index) => {\n return (\n <div key={index} className={styles.actionItem}>\n {action}\n </div>\n );\n })}\n </div>\n )}\n {hasPrimaryAction && (\n <div className={styles.primaryAction}>{primaryAction}</div>\n )}\n </div>\n );\n }\n\n return (\n <div className={cx(styles.container, className)}>\n <BackofficePageHeader\n title={title}\n subtitle={subtitle}\n actions={actions}\n leftActions={leftAction}\n />\n <div className={cx(styles.content, contentClassName)}>{children}</div>\n </div>\n );\n};\n\nexport default PageContainer;\n"],"mappings":";;;;;AAiBA,IAAa,KAAiB,EAC5B,UACA,aACA,eAAA,GACA,kBAAA,GACA,eACA,aACA,cACA,0BACqC;CACrC,IAAM,IAAY,KAAoB,EAAE,EAClC,IAAmB,KAAiB,MACpC,IAAsB,EAAU,SAAS,GAE3C,IAA4B;AAsBhC,SArBI,KAAoB,OACtB,IACE,kBAAC,OAAD;EAAK,WAAW;YAAhB,CACG,KACC,kBAAC,OAAD;GAAK,WAAW;aACb,EAAU,KAAK,GAAQ,MAEpB,kBAAC,OAAD;IAAiB,WAAW;cACzB;IACG,EAFI,EAEJ,CAER;GACE,CAAA,EAEP,KACC,kBAAC,OAAD;GAAK,WAAW;aAAuB;GAAoB,CAAA,CAEzD;MAKR,kBAAC,OAAD;EAAK,WAAW,EAAG,GAAkB,EAAU;YAA/C,CACE,kBAAC,GAAD;GACS;GACG;GACD,SAAA;GACT,aAAa;GACb,CAAA,EACF,kBAAC,OAAD;GAAK,WAAW,EAAG,GAAgB,EAAiB;GAAG;GAAe,CAAA,CAClE"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
/* empty css */
|
|
3
|
+
//#region src/atomic/templates/page-container/pageContainer.css.ts
|
|
4
|
+
var e = "_1u2lre40 txvbqbnvo txvbqboix txvbqb9io txvbqbai6 txvbqbap6 txvbqbcf txvbqbu6f txvbqbef txvbqbp66 txvbqb9mx txvbqbjg6", t = "_1u2lre41 txvbqb9io txvbqbco txvbqbdo6 txvbqbao6 txvbqbajx", n = "_1u2lre42 txvbqb9io txvbqbco txvbqbao6 txvbqbajx", r = "_1u2lre43 txvbqb9io txvbqbco", i = "_1u2lre44 txvbqb9io txvbqbco", a = "_1u2lre45 txvbqbu6f txvbqb9io txvbqbcf txvbqbai6";
|
|
5
|
+
//#endregion
|
|
6
|
+
export { r as actionItem, t as actions, e as container, a as content, i as primaryAction, n as secondaryActions };
|
|
7
|
+
|
|
8
|
+
//# sourceMappingURL=pageContainer.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pageContainer.css.js","names":[],"sources":["../../../../../src/atomic/templates/page-container/pageContainer.css.ts"],"sourcesContent":["import { sprinkles } from '../../../theme/sprinkles.css.js';\n\nexport const container = sprinkles({\n display: 'flex',\n flexDirection: 'column',\n gap: 6,\n alignItems: 'flex-start',\n width: 'full',\n alignSelf: 'stretch',\n paddingTop: 5,\n paddingX: 5,\n flex: 1,\n minHeight: 0,\n});\n\nexport const actions = sprinkles({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'flex-end',\n gap: 2,\n flexWrap: 'wrap',\n});\n\nexport const secondaryActions = sprinkles({\n display: 'flex',\n alignItems: 'center',\n gap: 2,\n flexWrap: 'wrap',\n});\n\nexport const actionItem = sprinkles({\n display: 'flex',\n alignItems: 'center',\n});\n\nexport const primaryAction = sprinkles({\n display: 'flex',\n alignItems: 'center',\n});\n\nexport const content = sprinkles({\n width: 'full',\n display: 'flex',\n alignItems: 'flex-start',\n flexDirection: 'column',\n});\n"],"mappings":""}
|
|
@@ -1,31 +1,37 @@
|
|
|
1
1
|
import { cx as e } from "../../../theme/tools.js";
|
|
2
|
-
import { container as t,
|
|
2
|
+
import { container as t, headerRow as n, left as r, title as i, titleRow as a } from "./backofficePageHeader.css.js";
|
|
3
3
|
import "../../../index.js";
|
|
4
|
-
import { jsx as
|
|
4
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
5
5
|
//#region src/backoffice/molecules/backoffice_page_header/BackofficePageHeader.tsx
|
|
6
|
-
var
|
|
7
|
-
className: e(t,
|
|
8
|
-
children: [/* @__PURE__ */
|
|
9
|
-
className:
|
|
10
|
-
children: [/* @__PURE__ */
|
|
11
|
-
className:
|
|
12
|
-
children: [/* @__PURE__ */
|
|
13
|
-
className:
|
|
14
|
-
children:
|
|
15
|
-
}),
|
|
16
|
-
className:
|
|
17
|
-
children:
|
|
6
|
+
var c = ({ title: c, subtitle: l, actions: u, meta: d, leftActions: f, className: p }) => /* @__PURE__ */ s("div", {
|
|
7
|
+
className: e(t, p),
|
|
8
|
+
children: [/* @__PURE__ */ s("div", {
|
|
9
|
+
className: r,
|
|
10
|
+
children: [/* @__PURE__ */ s("div", {
|
|
11
|
+
className: n,
|
|
12
|
+
children: [f != null && /* @__PURE__ */ o("div", {
|
|
13
|
+
className: "_1puq2a83",
|
|
14
|
+
children: f
|
|
15
|
+
}), /* @__PURE__ */ s("div", {
|
|
16
|
+
className: a,
|
|
17
|
+
children: [/* @__PURE__ */ o("h1", {
|
|
18
|
+
className: i,
|
|
19
|
+
children: c
|
|
20
|
+
}), d != null && /* @__PURE__ */ o("div", {
|
|
21
|
+
className: "_1puq2a87",
|
|
22
|
+
children: d
|
|
23
|
+
})]
|
|
18
24
|
})]
|
|
19
|
-
}),
|
|
20
|
-
className: "
|
|
21
|
-
children:
|
|
25
|
+
}), l != null && (typeof l != "string" || l.trim() !== "") && /* @__PURE__ */ o("p", {
|
|
26
|
+
className: "_1puq2a86",
|
|
27
|
+
children: l
|
|
22
28
|
})]
|
|
23
|
-
}),
|
|
24
|
-
className: "
|
|
25
|
-
children:
|
|
29
|
+
}), u != null && /* @__PURE__ */ o("div", {
|
|
30
|
+
className: "_1puq2a88",
|
|
31
|
+
children: u
|
|
26
32
|
})]
|
|
27
33
|
});
|
|
28
34
|
//#endregion
|
|
29
|
-
export {
|
|
35
|
+
export { c as BackofficePageHeader, c as default };
|
|
30
36
|
|
|
31
37
|
//# sourceMappingURL=BackofficePageHeader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BackofficePageHeader.js","names":[],"sources":["../../../../../src/backoffice/molecules/backoffice_page_header/BackofficePageHeader.tsx"],"sourcesContent":["import { type JSX, type ReactNode } from 'react';\n\nimport { cx } from '@plumile/ui';\n\nimport * as styles from './backofficePageHeader.css.js';\n\nexport type BackofficePageHeaderProps = {\n title: string;\n subtitle?: ReactNode;\n actions?: ReactNode;\n meta?: ReactNode;\n className?: string;\n};\n\nexport const BackofficePageHeader = ({\n title,\n subtitle,\n actions,\n meta,\n className,\n}: BackofficePageHeaderProps): JSX.Element => {\n return (\n <div className={cx(styles.container, className)}>\n <div className={styles.left}>\n <div className={styles.
|
|
1
|
+
{"version":3,"file":"BackofficePageHeader.js","names":[],"sources":["../../../../../src/backoffice/molecules/backoffice_page_header/BackofficePageHeader.tsx"],"sourcesContent":["import { type JSX, type ReactNode } from 'react';\n\nimport { cx } from '@plumile/ui';\n\nimport * as styles from './backofficePageHeader.css.js';\n\nexport type BackofficePageHeaderProps = {\n title: string;\n subtitle?: ReactNode;\n actions?: ReactNode;\n meta?: ReactNode;\n leftActions?: ReactNode;\n className?: string;\n};\n\nexport const BackofficePageHeader = ({\n title,\n subtitle,\n actions,\n meta,\n leftActions,\n className,\n}: BackofficePageHeaderProps): JSX.Element => {\n return (\n <div className={cx(styles.container, className)}>\n <div className={styles.left}>\n <div className={styles.headerRow}>\n {leftActions != null && (\n <div className={styles.leftActions}>{leftActions}</div>\n )}\n <div className={styles.titleRow}>\n <h1 className={styles.title}>{title}</h1>\n {meta != null && <div className={styles.metaRow}>{meta}</div>}\n </div>\n </div>\n {subtitle != null &&\n (typeof subtitle !== 'string' || subtitle.trim() !== '') && (\n <p className={styles.subtitle}>{subtitle}</p>\n )}\n </div>\n {actions != null && <div className={styles.actions}>{actions}</div>}\n </div>\n );\n};\n\nexport default BackofficePageHeader;\n"],"mappings":";;;;;AAeA,IAAa,KAAwB,EACnC,OAAA,GACA,UAAA,GACA,SAAA,GACA,SACA,aAAA,GACA,mBAGE,kBAAC,OAAD;CAAK,WAAW,EAAG,GAAkB,EAAU;WAA/C,CACE,kBAAC,OAAD;EAAK,WAAW;YAAhB,CACE,kBAAC,OAAD;GAAK,WAAW;aAAhB,CACG,KAAe,QACd,kBAAC,OAAD;IAAK,WAAW;cAAqB;IAAkB,CAAA,EAEzD,kBAAC,OAAD;IAAK,WAAW;cAAhB,CACE,kBAAC,MAAD;KAAI,WAAW;eAAe;KAAW,CAAA,EACxC,KAAQ,QAAQ,kBAAC,OAAD;KAAK,WAAW;eAAiB;KAAW,CAAA,CACzD;MACF;MACL,KAAY,SACV,OAAO,KAAa,YAAY,EAAS,MAAM,KAAK,OACnD,kBAAC,KAAD;GAAG,WAAW;aAAkB;GAAa,CAAA,CAE7C;KACL,KAAW,QAAQ,kBAAC,OAAD;EAAK,WAAW;YAAiB;EAAc,CAAA,CAC/D"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
//#region src/backoffice/molecules/backoffice_page_header/backofficePageHeader.css.ts
|
|
3
|
-
var e = "_1puq2a80", t = "_1puq2a81", n = "_1puq2a82", r = "_1puq2a83", i = "_1puq2a84", a = "_1puq2a85", o = "_1puq2a86";
|
|
3
|
+
var e = "_1puq2a80", t = "_1puq2a81", n = "_1puq2a82", r = "_1puq2a83", i = "_1puq2a84", a = "_1puq2a85", o = "_1puq2a86", s = "_1puq2a87", c = "_1puq2a88";
|
|
4
4
|
//#endregion
|
|
5
|
-
export {
|
|
5
|
+
export { c as actions, e as container, n as headerRow, t as left, r as leftActions, s as metaRow, o as subtitle, a as title, i as titleRow };
|
|
6
6
|
|
|
7
7
|
//# sourceMappingURL=backofficePageHeader.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backofficePageHeader.css.js","names":[],"sources":["../../../../../src/backoffice/molecules/backoffice_page_header/backofficePageHeader.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\n\nimport { vars } from '@plumile/ui/theme/themeContract.js';\n\nexport const container = style({\n display: 'flex',\n alignItems: 'flex-start',\n justifyContent: 'space-between',\n gap: vars.spacing[4],\n flexWrap: 'wrap',\n});\n\nexport const left = style({\n display: 'flex',\n flexDirection: 'column',\n gap: vars.spacing[2],\n minWidth: 0,\n flex: 1,\n});\n\nexport const titleRow = style({\n display: 'flex',\n alignItems: 'center',\n gap: vars.spacing[2],\n flexWrap: 'wrap',\n});\n\nexport const title = style({\n fontSize: vars.fontSize['2xl'],\n lineHeight: vars.lineHeight['2xl'],\n fontWeight: vars.fontWeight.semibold,\n color: vars.colors.text,\n margin: 0,\n});\n\nexport const subtitle = style({\n margin: 0,\n fontSize: vars.fontSize.base,\n lineHeight: vars.lineHeight.base,\n color: vars.colors.textSecondary,\n});\n\nexport const metaRow = style({\n display: 'flex',\n alignItems: 'center',\n gap: vars.spacing[2],\n flexWrap: 'wrap',\n});\n\nexport const actions = style({\n display: 'flex',\n alignItems: 'center',\n gap: vars.spacing[2],\n flexWrap: 'wrap',\n});\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"backofficePageHeader.css.js","names":[],"sources":["../../../../../src/backoffice/molecules/backoffice_page_header/backofficePageHeader.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\n\nimport { vars } from '@plumile/ui/theme/themeContract.js';\n\nexport const container = style({\n display: 'flex',\n alignItems: 'flex-start',\n justifyContent: 'space-between',\n gap: vars.spacing[4],\n flexWrap: 'wrap',\n});\n\nexport const left = style({\n display: 'flex',\n flexDirection: 'column',\n gap: vars.spacing[2],\n minWidth: 0,\n flex: 1,\n});\n\nexport const headerRow = style({\n display: 'flex',\n alignItems: 'center',\n gap: vars.spacing[3],\n flexWrap: 'wrap',\n minWidth: 0,\n});\n\nexport const leftActions = style({\n display: 'flex',\n alignItems: 'center',\n gap: vars.spacing[2],\n flexWrap: 'wrap',\n flexShrink: 0,\n});\n\nexport const titleRow = style({\n display: 'flex',\n alignItems: 'center',\n gap: vars.spacing[2],\n flexWrap: 'wrap',\n minWidth: 0,\n});\n\nexport const title = style({\n fontSize: vars.fontSize['2xl'],\n lineHeight: vars.lineHeight['2xl'],\n fontWeight: vars.fontWeight.semibold,\n color: vars.colors.text,\n margin: 0,\n});\n\nexport const subtitle = style({\n margin: 0,\n fontSize: vars.fontSize.base,\n lineHeight: vars.lineHeight.base,\n color: vars.colors.textSecondary,\n});\n\nexport const metaRow = style({\n display: 'flex',\n alignItems: 'center',\n gap: vars.spacing[2],\n flexWrap: 'wrap',\n});\n\nexport const actions = style({\n display: 'flex',\n alignItems: 'center',\n gap: vars.spacing[2],\n flexWrap: 'wrap',\n});\n"],"mappings":""}
|