@liner-fe/design-library 1.2.17 → 1.2.19
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.js +9 -14
- package/package.json +3 -3
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: "
|
|
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
|
|
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
|
] }),
|
|
@@ -239,7 +239,7 @@ var NewsBanner = ({ tag, onClick, onCloseClick, content }) => {
|
|
|
239
239
|
children: content
|
|
240
240
|
}
|
|
241
241
|
) }),
|
|
242
|
-
/* @__PURE__ */ jsx("div", { className: "flex flex-col items-start justify-center", children: /* @__PURE__ */ jsx("div", { className: "pl-component-100 flex items-center", children: /* @__PURE__ */ jsx(IconArrowRight, { type: "neutral-label-primary", size: "xs" }) }) })
|
|
242
|
+
/* @__PURE__ */ jsx("div", { className: "hidden s:flex flex-col items-start justify-center", children: /* @__PURE__ */ jsx("div", { className: "pl-component-100 flex items-center", children: /* @__PURE__ */ jsx(IconArrowRight, { type: "neutral-label-primary", size: "xs" }) }) })
|
|
243
243
|
] })
|
|
244
244
|
] }) }),
|
|
245
245
|
onCloseClick && /* @__PURE__ */ jsx(
|
|
@@ -249,7 +249,7 @@ var NewsBanner = ({ tag, onClick, onCloseClick, content }) => {
|
|
|
249
249
|
icon: {
|
|
250
250
|
icon: IconClose
|
|
251
251
|
},
|
|
252
|
-
level: "
|
|
252
|
+
level: "quaternary",
|
|
253
253
|
size: "s"
|
|
254
254
|
}
|
|
255
255
|
)
|
|
@@ -257,17 +257,12 @@ var NewsBanner = ({ tag, onClick, onCloseClick, content }) => {
|
|
|
257
257
|
}
|
|
258
258
|
);
|
|
259
259
|
};
|
|
260
|
-
var AlertBanner = ({
|
|
261
|
-
onClick,
|
|
262
|
-
onCloseClick,
|
|
263
|
-
content,
|
|
264
|
-
label = "Label"
|
|
265
|
-
}) => {
|
|
260
|
+
var AlertBanner = ({ onClick, onCloseClick, content, label }) => {
|
|
266
261
|
return /* @__PURE__ */ jsxs(
|
|
267
262
|
"div",
|
|
268
263
|
{
|
|
269
264
|
onClick,
|
|
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",
|
|
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",
|
|
271
266
|
children: [
|
|
272
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: [
|
|
273
268
|
/* @__PURE__ */ jsx("div", { className: "flex h-[16px] w-[16px] items-center justify-center", children: /* @__PURE__ */ jsx(IconExclamationmarkFill, { size: "xs", fill: true }) }),
|
|
@@ -282,7 +277,7 @@ var AlertBanner = ({
|
|
|
282
277
|
children: content
|
|
283
278
|
}
|
|
284
279
|
) }),
|
|
285
|
-
/* @__PURE__ */ jsx("div", { className: "flex
|
|
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(
|
|
286
281
|
"div",
|
|
287
282
|
{
|
|
288
283
|
className: "border-neutral-border-opaque-strong bg-neutral-fill-overlay-lowest flex h-[24px] flex-col items-end justify-center rounded-xs border",
|
|
@@ -306,7 +301,7 @@ var AlertBanner = ({
|
|
|
306
301
|
icon: {
|
|
307
302
|
icon: IconClose
|
|
308
303
|
},
|
|
309
|
-
level: "
|
|
304
|
+
level: "quaternary",
|
|
310
305
|
size: "s",
|
|
311
306
|
onClick: onCloseClick
|
|
312
307
|
}
|
|
@@ -332,7 +327,7 @@ var PromotionBanner = ({
|
|
|
332
327
|
"div",
|
|
333
328
|
{
|
|
334
329
|
onClick,
|
|
335
|
-
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",
|
|
336
331
|
children: [
|
|
337
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: [
|
|
338
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.
|
|
3
|
+
"version": "1.2.19",
|
|
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",
|
|
13
14
|
"@liner-fe/icon": "^0.2.76",
|
|
14
|
-
"@liner-fe/prism": "^2.12.12"
|
|
15
|
-
"@liner-fe/design-token": "^2.5.50"
|
|
15
|
+
"@liner-fe/prism": "^2.12.12"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"@chromatic-com/storybook": "^4.1.1",
|