@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/index.js CHANGED
@@ -49203,28 +49203,52 @@ var AgGridTable = AgGridTableInner;
49203
49203
 
49204
49204
  function PageHeader(_a) {
49205
49205
  var title = _a.title,
49206
- subtitle = _a.subtitle,
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
- className: clsx('pb-4 mb-6 border-b border-mw-neutral-200 dark:border-mw-neutral-700', className)
49219
+ id: headerId,
49220
+ className: combinedClass
49212
49221
  }, props, {
49213
49222
  children: require$$1.jsxs("div", {
49214
- className: "flex flex-row items-center justify-between px-6",
49223
+ className: "self-stretch px-4 inline-flex justify-start items-start",
49215
49224
  children: [require$$1.jsxs("div", {
49216
- className: "space-y-1",
49217
- children: [require$$1.jsx("h1", {
49218
- className: "text-xl font-semibold leading-[2rem] tracking-tight text-mw-neutral-900 dark:text-white",
49219
- children: title
49220
- }), subtitle && (/* Figma: 14px font, 400 weight, 18px line-height, #717171 */
49221
- require$$1.jsx("p", {
49222
- className: "text-sm leading-[1.125rem] text-mw-neutral-500 dark:text-mw-neutral-400",
49223
- children: subtitle
49224
- }))]
49225
- }), actions && require$$1.jsx("div", {
49226
- className: "flex flex-wrap items-center gap-2",
49227
- children: actions
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;