@liner-fe/design-library 1.2.16 → 1.2.17

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/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ButtonProps, TextButtonProps } from '@liner-fe/prism';
3
3
  import { ClassValue } from 'clsx';
4
- import { ReactNode } from 'react';
4
+ import { ReactNode, MouseEventHandler } from 'react';
5
5
 
6
6
  declare const TemplateDialog: {
7
7
  ({ open, preventEscape, onOpenChange, children, }: {
@@ -69,7 +69,7 @@ declare const SideBanner: ({ button, onCloseClick }: SideBannerProps) => react_j
69
69
 
70
70
  interface BaseType {
71
71
  onClick: () => void;
72
- onCloseClick?: (e?: React.MouseEvent<HTMLButtonElement>) => void;
72
+ onCloseClick?: MouseEventHandler<HTMLButtonElement>;
73
73
  mountEffectCallback?: () => void;
74
74
  content: string;
75
75
  }
@@ -79,6 +79,7 @@ interface NewsType extends BaseType {
79
79
  }
80
80
  interface AlertType extends BaseType {
81
81
  type: 'alert';
82
+ label?: string;
82
83
  }
83
84
  interface PromotionType extends BaseType {
84
85
  type: 'promotion';
package/lib/index.js CHANGED
@@ -257,12 +257,17 @@ var NewsBanner = ({ tag, onClick, onCloseClick, content }) => {
257
257
  }
258
258
  );
259
259
  };
260
- var AlertBanner = ({ onClick, onCloseClick, content }) => {
260
+ var AlertBanner = ({
261
+ onClick,
262
+ onCloseClick,
263
+ content,
264
+ label = "Label"
265
+ }) => {
261
266
  return /* @__PURE__ */ jsxs(
262
267
  "div",
263
268
  {
264
269
  onClick,
265
- className: "py-component-200 pl-gap-positive-600 pr-gap-positive-400 flex h-[44px] w-full items-center justify-between bg-[rgba(254,143,22,0.45)] hover:bg-[rgba(254,143,22,0.48)] cursor-pointer",
270
+ className: "m:pl-positive-400 py-component-200 pl-positive-600 pr-positive-400 flex h-[44px] w-full items-center justify-between bg-[rgba(254,143,22,0.45)] hover:bg-[rgba(254,143,22,0.48)] cursor-pointer",
266
271
  children: [
267
272
  /* @__PURE__ */ jsx("div", { className: "flex w-full grow flex-col items-start", children: /* @__PURE__ */ jsxs("div", { className: "gap-positive-200 flex items-center", children: [
268
273
  /* @__PURE__ */ jsx("div", { className: "flex h-[16px] w-[16px] items-center justify-center", children: /* @__PURE__ */ jsx(IconExclamationmarkFill, { size: "xs", fill: true }) }),
@@ -288,7 +293,7 @@ var AlertBanner = ({ onClick, onCloseClick, content }) => {
288
293
  size: 1,
289
294
  weight: "regular",
290
295
  type: "normal",
291
- children: "Label"
296
+ children: label
292
297
  }
293
298
  ) }) })
294
299
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liner-fe/design-library",
3
- "version": "1.2.16",
3
+ "version": "1.2.17",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "@tailwindcss/vite": "^4.1.14",
@@ -10,9 +10,9 @@
10
10
  "react-dom": "18.2.0",
11
11
  "tailwind-merge": "^3.3.1",
12
12
  "tailwindcss": "^4.1.14",
13
- "@liner-fe/design-token": "^2.5.50",
14
13
  "@liner-fe/icon": "^0.2.76",
15
- "@liner-fe/prism": "^2.12.12"
14
+ "@liner-fe/prism": "^2.12.12",
15
+ "@liner-fe/design-token": "^2.5.50"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@chromatic-com/storybook": "^4.1.1",