@moving-walls/design-system 1.0.10 → 1.0.12
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/dist/components/ui/PageHeader.d.ts +11 -1
- package/dist/components/ui/index.d.ts +1 -1
- package/dist/index.esm.js +41 -17
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +41 -16
- package/dist/index.js.map +1 -1
- package/dist/styles/index.css +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -49203,28 +49203,52 @@ var AgGridTable = AgGridTableInner;
|
|
|
49203
49203
|
|
|
49204
49204
|
function PageHeader(_a) {
|
|
49205
49205
|
var title = _a.title,
|
|
49206
|
-
|
|
49206
|
+
description = _a.description,
|
|
49207
|
+
subtitle = _a.subtitle;
|
|
49208
|
+
_a.titleKey;
|
|
49209
|
+
_a.descriptionKey;
|
|
49210
|
+
var leftAction = _a.leftAction,
|
|
49207
49211
|
actions = _a.actions,
|
|
49208
49212
|
className = _a.className,
|
|
49209
|
-
props = __rest$1(_a, ["title", "subtitle", "actions", "className"]);
|
|
49213
|
+
props = __rest$1(_a, ["title", "description", "subtitle", "titleKey", "descriptionKey", "leftAction", "actions", "className"]);
|
|
49214
|
+
var desc = description !== null && description !== void 0 ? description : subtitle;
|
|
49215
|
+
var headerId = "page-header-".concat(title.toLowerCase().trim().split(/\s+/).join('-'));
|
|
49216
|
+
var baseClass = 'bg-white flex flex-col justify-start items-start gap-4 border-b border-container-border pt-4 pb-3 dark:bg-mw-neutral-900 dark:border-mw-neutral-800';
|
|
49217
|
+
var combinedClass = className ? "".concat(baseClass, " ").concat(className) : baseClass;
|
|
49210
49218
|
return require$$1.jsx("div", Object.assign({
|
|
49211
|
-
|
|
49219
|
+
id: headerId,
|
|
49220
|
+
className: combinedClass
|
|
49212
49221
|
}, props, {
|
|
49213
49222
|
children: require$$1.jsxs("div", {
|
|
49214
|
-
className: "
|
|
49223
|
+
className: "self-stretch px-4 inline-flex justify-start items-start",
|
|
49215
49224
|
children: [require$$1.jsxs("div", {
|
|
49216
|
-
className: "
|
|
49217
|
-
children: [require$$1.jsx("
|
|
49218
|
-
|
|
49219
|
-
|
|
49220
|
-
|
|
49221
|
-
|
|
49222
|
-
|
|
49223
|
-
|
|
49224
|
-
})
|
|
49225
|
-
|
|
49226
|
-
|
|
49227
|
-
|
|
49225
|
+
className: "pt-2 flex justify-start items-start gap-2",
|
|
49226
|
+
children: [leftAction && require$$1.jsx("div", {
|
|
49227
|
+
id: "".concat(headerId, "-left-action"),
|
|
49228
|
+
className: "p-2 flex justify-center items-center gap-1",
|
|
49229
|
+
children: require$$1.jsx("div", {
|
|
49230
|
+
className: "relative overflow-hidden",
|
|
49231
|
+
children: leftAction
|
|
49232
|
+
})
|
|
49233
|
+
}), require$$1.jsxs("div", {
|
|
49234
|
+
className: "self-stretch inline-flex flex-col justify-start items-start gap-1",
|
|
49235
|
+
children: [require$$1.jsx("div", {
|
|
49236
|
+
id: "".concat(headerId, "-title"),
|
|
49237
|
+
className: "self-stretch justify-start text-xl font-semibold leading-loose text-mw-neutral-900 dark:text-white",
|
|
49238
|
+
children: title
|
|
49239
|
+
}), desc && require$$1.jsx("div", {
|
|
49240
|
+
id: "".concat(headerId, "-description"),
|
|
49241
|
+
className: "self-stretch justify-start text-neutral-500 text-sm font-normal leading-none dark:text-mw-neutral-400",
|
|
49242
|
+
children: desc
|
|
49243
|
+
})]
|
|
49244
|
+
})]
|
|
49245
|
+
}), require$$1.jsx("div", {
|
|
49246
|
+
id: "".concat(headerId, "-actions"),
|
|
49247
|
+
className: "flex-1 self-stretch flex justify-end items-end gap-2",
|
|
49248
|
+
children: actions && require$$1.jsx("div", {
|
|
49249
|
+
className: "flex items-center gap-4",
|
|
49250
|
+
children: actions
|
|
49251
|
+
})
|
|
49228
49252
|
})]
|
|
49229
49253
|
})
|
|
49230
49254
|
}));
|
|
@@ -57125,6 +57149,7 @@ exports.List = List;
|
|
|
57125
57149
|
exports.ListItem = ListItem;
|
|
57126
57150
|
exports.Loading = Loading;
|
|
57127
57151
|
exports.MWBounceLoader = MWBounceLoader;
|
|
57152
|
+
exports.MWBrandLoader = MWBrandLoader;
|
|
57128
57153
|
exports.MWDotsLoader = MWDotsLoader;
|
|
57129
57154
|
exports.MWHeartbeatLoader = MWHeartbeatLoader;
|
|
57130
57155
|
exports.MWLoader = MWLoader;
|