@liner-fe/design-library 1.2.16 → 1.2.18

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
@@ -220,11 +220,11 @@ var NewsBanner = ({ tag, onClick, onCloseClick, content }) => {
220
220
  return /* @__PURE__ */ jsxs(
221
221
  "div",
222
222
  {
223
- className: "px-positive-400 py-component-200 hover:bg-brand-fill-low-hover bg-brand-fill-low flex h-[44px] w-full items-center justify-between cursor-pointer",
223
+ className: "pl-positive-600 pr-positive-400 m:pl-positive-400 py-component-200 hover:bg-brand-fill-low-hover bg-brand-fill-low flex h-[44px] w-full items-center justify-between cursor-pointer gap-positive-300",
224
224
  onClick,
225
225
  children: [
226
226
  /* @__PURE__ */ jsx("div", { className: "flex w-full grow flex-col items-start", children: /* @__PURE__ */ jsxs("div", { className: "gap-positive-200 flex items-center", children: [
227
- tag && /* @__PURE__ */ jsxs("div", { className: "gap-positive-150 flex items-center", children: [
227
+ tag && /* @__PURE__ */ jsxs("div", { className: "gap-positive-150 items-center s:flex hidden", children: [
228
228
  /* @__PURE__ */ jsx(Paragraph, { color: "brand-label-primary", size: 4, weight: "medium", type: "normal", children: tag }),
229
229
  /* @__PURE__ */ jsx("div", { className: "bg-neutral-border-overlay-normal h-[12px] w-px" })
230
230
  ] }),
@@ -249,7 +249,7 @@ var NewsBanner = ({ tag, onClick, onCloseClick, content }) => {
249
249
  icon: {
250
250
  icon: IconClose
251
251
  },
252
- level: "primary",
252
+ level: "quaternary",
253
253
  size: "s"
254
254
  }
255
255
  )
@@ -257,12 +257,12 @@ var NewsBanner = ({ tag, onClick, onCloseClick, content }) => {
257
257
  }
258
258
  );
259
259
  };
260
- var AlertBanner = ({ onClick, onCloseClick, content }) => {
260
+ var AlertBanner = ({ onClick, onCloseClick, content, label }) => {
261
261
  return /* @__PURE__ */ jsxs(
262
262
  "div",
263
263
  {
264
264
  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",
265
+ 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 gap-positive-300",
266
266
  children: [
267
267
  /* @__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
268
  /* @__PURE__ */ jsx("div", { className: "flex h-[16px] w-[16px] items-center justify-center", children: /* @__PURE__ */ jsx(IconExclamationmarkFill, { size: "xs", fill: true }) }),
@@ -277,7 +277,7 @@ var AlertBanner = ({ onClick, onCloseClick, content }) => {
277
277
  children: content
278
278
  }
279
279
  ) }),
280
- /* @__PURE__ */ jsx("div", { className: "flex flex-col items-start justify-center", children: /* @__PURE__ */ jsx("div", { className: "pl-component-200 flex flex-col items-start", children: /* @__PURE__ */ jsx(
280
+ label && /* @__PURE__ */ jsx("div", { className: "flex-col items-start justify-center hidden s:flex", children: /* @__PURE__ */ jsx("div", { className: "pl-component-200 flex flex-col items-start", children: /* @__PURE__ */ jsx(
281
281
  "div",
282
282
  {
283
283
  className: "border-neutral-border-opaque-strong bg-neutral-fill-overlay-lowest flex h-[24px] flex-col items-end justify-center rounded-xs border",
@@ -288,7 +288,7 @@ var AlertBanner = ({ onClick, onCloseClick, content }) => {
288
288
  size: 1,
289
289
  weight: "regular",
290
290
  type: "normal",
291
- children: "Label"
291
+ children: label
292
292
  }
293
293
  ) }) })
294
294
  }
@@ -301,7 +301,7 @@ var AlertBanner = ({ onClick, onCloseClick, content }) => {
301
301
  icon: {
302
302
  icon: IconClose
303
303
  },
304
- level: "primary",
304
+ level: "quaternary",
305
305
  size: "s",
306
306
  onClick: onCloseClick
307
307
  }
@@ -327,7 +327,7 @@ var PromotionBanner = ({
327
327
  "div",
328
328
  {
329
329
  onClick,
330
- className: "px-positive-600 m:px-positive-400 py-component-200 bg-inverse-container-static-high hover:bg-inverse-container-static-high-hover flex h-[44px] w-full items-center justify-between cursor-pointer",
330
+ className: "px-positive-600 m:px-positive-400 py-component-200 bg-inverse-container-static-high hover:bg-inverse-container-static-high-hover flex h-[44px] w-full items-center justify-between cursor-pointer gap-positive-300",
331
331
  children: [
332
332
  /* @__PURE__ */ jsx("div", { className: "flex w-full grow flex-col items-start", children: /* @__PURE__ */ jsxs("div", { className: "gap-positive-200 flex items-center", children: [
333
333
  tag && /* @__PURE__ */ jsxs("div", { className: "gap-positive-150 s:flex items-center hidden", children: [
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.18",
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",