design-zystem 1.0.268 → 1.0.269

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.d.mts CHANGED
@@ -925,8 +925,9 @@ interface BannerProps {
925
925
  message?: string;
926
926
  action?: BannerAction;
927
927
  toggle?: BannerToggle;
928
+ children?: ReactNode;
928
929
  }
929
- declare const Banner: ({ variant, badge, title, subtitle, message, action, toggle, }: BannerProps) => react_jsx_runtime.JSX.Element;
930
+ declare const Banner: ({ variant, badge, title, subtitle, message, action, toggle, children, }: BannerProps) => react_jsx_runtime.JSX.Element;
930
931
 
931
932
  interface TooltipProps {
932
933
  children?: ReactNode;
package/dist/index.d.ts CHANGED
@@ -925,8 +925,9 @@ interface BannerProps {
925
925
  message?: string;
926
926
  action?: BannerAction;
927
927
  toggle?: BannerToggle;
928
+ children?: ReactNode;
928
929
  }
929
- declare const Banner: ({ variant, badge, title, subtitle, message, action, toggle, }: BannerProps) => react_jsx_runtime.JSX.Element;
930
+ declare const Banner: ({ variant, badge, title, subtitle, message, action, toggle, children, }: BannerProps) => react_jsx_runtime.JSX.Element;
930
931
 
931
932
  interface TooltipProps {
932
933
  children?: ReactNode;
package/dist/index.js CHANGED
@@ -5234,9 +5234,20 @@ var Banner = ({
5234
5234
  subtitle,
5235
5235
  message,
5236
5236
  action,
5237
- toggle
5237
+ toggle,
5238
+ children
5238
5239
  }) => {
5239
5240
  const style2 = variantStyles[variant];
5241
+ if (children) {
5242
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5243
+ StyledBanner,
5244
+ {
5245
+ $background: style2.background,
5246
+ $borderColor: style2.borderColor,
5247
+ children
5248
+ }
5249
+ );
5250
+ }
5240
5251
  return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
5241
5252
  StyledBanner,
5242
5253
  {
package/dist/index.mjs CHANGED
@@ -5118,9 +5118,20 @@ var Banner = ({
5118
5118
  subtitle,
5119
5119
  message,
5120
5120
  action,
5121
- toggle
5121
+ toggle,
5122
+ children
5122
5123
  }) => {
5123
5124
  const style2 = variantStyles[variant];
5125
+ if (children) {
5126
+ return /* @__PURE__ */ jsx54(
5127
+ StyledBanner,
5128
+ {
5129
+ $background: style2.background,
5130
+ $borderColor: style2.borderColor,
5131
+ children
5132
+ }
5133
+ );
5134
+ }
5124
5135
  return /* @__PURE__ */ jsxs28(
5125
5136
  StyledBanner,
5126
5137
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "design-zystem",
3
- "version": "1.0.268",
3
+ "version": "1.0.269",
4
4
  "description": "A React design system of importable components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",