@liner-fe/prism 2.12.2 → 2.12.3
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.css +174 -315
- package/lib/index.d.ts +26 -35
- package/lib/index.js +479 -522
- package/package.json +2 -2
package/lib/index.js
CHANGED
|
@@ -25,32 +25,30 @@ import {
|
|
|
25
25
|
|
|
26
26
|
// src/components/Button/style.module.scss
|
|
27
27
|
var style_module_default = {
|
|
28
|
-
"button": "
|
|
29
|
-
"loading-with-disabled": "_loading-with-
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"secondary": "
|
|
33
|
-
"tertiary": "
|
|
34
|
-
"quaternary": "
|
|
35
|
-
"quinary": "
|
|
36
|
-
"negative": "
|
|
37
|
-
"static": "
|
|
38
|
-
"inverse-static": "_inverse-
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"content": "
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"children": "
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"m-children": "_m-children_1rp2x_197",
|
|
53
|
-
"s-children": "_s-children_1rp2x_202"
|
|
28
|
+
"button": "_button_3le0q_1",
|
|
29
|
+
"loading-with-disabled": "_loading-with-disabled_3le0q_16",
|
|
30
|
+
"primary": "_primary_3le0q_23",
|
|
31
|
+
"loading": "_loading_3le0q_16",
|
|
32
|
+
"secondary": "_secondary_3le0q_35",
|
|
33
|
+
"tertiary": "_tertiary_3le0q_48",
|
|
34
|
+
"quaternary": "_quaternary_3le0q_60",
|
|
35
|
+
"quinary": "_quinary_3le0q_72",
|
|
36
|
+
"negative": "_negative_3le0q_84",
|
|
37
|
+
"static": "_static_3le0q_96",
|
|
38
|
+
"inverse-static": "_inverse-static_3le0q_108",
|
|
39
|
+
"cta": "_cta_3le0q_120",
|
|
40
|
+
"l": "_l_3le0q_16",
|
|
41
|
+
"m": "_m_3le0q_135",
|
|
42
|
+
"s": "_s_3le0q_35",
|
|
43
|
+
"align-center": "_align-center_3le0q_149",
|
|
44
|
+
"content": "_content_3le0q_154",
|
|
45
|
+
"full": "_full_3le0q_160",
|
|
46
|
+
"fit-content": "_fit-content_3le0q_164",
|
|
47
|
+
"children": "_children_3le0q_168",
|
|
48
|
+
"cta-children": "_cta-children_3le0q_175",
|
|
49
|
+
"l-children": "_l-children_3le0q_180",
|
|
50
|
+
"m-children": "_m-children_3le0q_185",
|
|
51
|
+
"s-children": "_s-children_3le0q_190"
|
|
54
52
|
};
|
|
55
53
|
|
|
56
54
|
// src/components/Button/index.tsx
|
|
@@ -148,81 +146,45 @@ var SpinnerLoader = /* @__PURE__ */ __name(({
|
|
|
148
146
|
|
|
149
147
|
// src/components/Button/index.tsx
|
|
150
148
|
import { Fragment, jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
149
|
+
var DEFAULT_LEVEL_OPTIONS = [
|
|
150
|
+
"primary",
|
|
151
|
+
"secondary",
|
|
152
|
+
"tertiary",
|
|
153
|
+
"quaternary",
|
|
154
|
+
"quinary",
|
|
155
|
+
"negative",
|
|
156
|
+
"static",
|
|
157
|
+
"inverse-static"
|
|
158
|
+
];
|
|
159
|
+
var DEFAULT_SIZE_OPTIONS = ["cta", "l", "m", "s"];
|
|
151
160
|
var buttonIconSizeMap = {
|
|
152
161
|
cta: "m",
|
|
153
162
|
l: "s",
|
|
154
163
|
m: "s",
|
|
155
164
|
s: "xs"
|
|
156
165
|
};
|
|
157
|
-
var buttonSizeIconThickMap = {
|
|
158
|
-
cta: true,
|
|
159
|
-
l: false,
|
|
160
|
-
m: false,
|
|
161
|
-
s: false
|
|
162
|
-
};
|
|
163
|
-
var buttonLoadingSizeMap = {
|
|
164
|
-
cta: "m",
|
|
165
|
-
l: "s",
|
|
166
|
-
m: "s",
|
|
167
|
-
s: "xs"
|
|
168
|
-
};
|
|
169
166
|
var buttonLoadingLevelMap = {
|
|
170
167
|
primary: "inverse-label-static-primary",
|
|
171
|
-
secondary: "
|
|
168
|
+
secondary: "brand-label-primary",
|
|
172
169
|
tertiary: "neutral-label-primary",
|
|
173
170
|
quaternary: "neutral-label-primary",
|
|
174
|
-
quinary: "neutral-label-
|
|
171
|
+
quinary: "neutral-label-secondary",
|
|
175
172
|
negative: "inverse-label-static-primary",
|
|
176
173
|
static: "neutral-label-static-primary",
|
|
177
|
-
inverse: "inverse-label-primary"
|
|
178
|
-
"inverse-static": "neutral-label-static-primary"
|
|
174
|
+
"inverse-static": "inverse-label-static-primary"
|
|
179
175
|
};
|
|
180
176
|
var buttonFillLevelIconTypeMap = {
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
"inverse-static": "inverse-label-static-primary"
|
|
190
|
-
},
|
|
191
|
-
false: {
|
|
192
|
-
primary: "neutral-label-primary",
|
|
193
|
-
secondary: "neutral-label-secondary",
|
|
194
|
-
tertiary: void 0,
|
|
195
|
-
quaternary: void 0,
|
|
196
|
-
quinary: void 0,
|
|
197
|
-
negative: void 0,
|
|
198
|
-
static: void 0,
|
|
199
|
-
"inverse-static": void 0
|
|
200
|
-
}
|
|
201
|
-
};
|
|
202
|
-
var buttonFillLevelIconFillTypeMap = {
|
|
203
|
-
true: {
|
|
204
|
-
primary: "neutral-label-static-primary",
|
|
205
|
-
secondary: "neutral-label-primary",
|
|
206
|
-
tertiary: "inverse-label-primary",
|
|
207
|
-
quaternary: "inverse-label-primary",
|
|
208
|
-
quinary: "neutral-label-static-primary",
|
|
209
|
-
negative: "neutral-label-static-primary",
|
|
210
|
-
static: "inverse-label-static-primary",
|
|
211
|
-
"inverse-static": "neutral-label-static-primary"
|
|
212
|
-
},
|
|
213
|
-
false: {
|
|
214
|
-
primary: "inverse-label-primary",
|
|
215
|
-
secondary: "inverse-label-secondary",
|
|
216
|
-
tertiary: void 0,
|
|
217
|
-
quaternary: void 0,
|
|
218
|
-
quinary: void 0,
|
|
219
|
-
negative: void 0,
|
|
220
|
-
static: void 0,
|
|
221
|
-
"inverse-static": void 0
|
|
222
|
-
}
|
|
177
|
+
primary: "inverse-label-static-primary",
|
|
178
|
+
secondary: "brand-label-primary",
|
|
179
|
+
tertiary: "neutral-label-primary",
|
|
180
|
+
quaternary: "neutral-label-primary",
|
|
181
|
+
quinary: "neutral-label-quaternary",
|
|
182
|
+
negative: "inverse-label-static-primary",
|
|
183
|
+
static: "neutral-label-static-primary",
|
|
184
|
+
"inverse-static": "inverse-label-static-primary"
|
|
223
185
|
};
|
|
224
186
|
var defaultButtonVariants = cva2({
|
|
225
|
-
base:
|
|
187
|
+
base: style_module_default.button,
|
|
226
188
|
variants: {
|
|
227
189
|
level: {
|
|
228
190
|
primary: style_module_default.primary,
|
|
@@ -234,14 +196,6 @@ var defaultButtonVariants = cva2({
|
|
|
234
196
|
static: style_module_default.static,
|
|
235
197
|
"inverse-static": style_module_default["inverse-static"]
|
|
236
198
|
},
|
|
237
|
-
fill: {
|
|
238
|
-
true: style_module_default.button,
|
|
239
|
-
false: style_module_default.ghost
|
|
240
|
-
},
|
|
241
|
-
align: {
|
|
242
|
-
center: style_module_default["align-center"],
|
|
243
|
-
spaceBetween: style_module_default["align-space-between"]
|
|
244
|
-
},
|
|
245
199
|
size: {
|
|
246
200
|
cta: [style_module_default.cta, "lp-sys-typo-paragraph2-normal-bold"],
|
|
247
201
|
l: [style_module_default.l, "lp-sys-typo-paragraph3-normal-bold"],
|
|
@@ -265,12 +219,20 @@ var defaultButtonChildrenVariants = cva2({
|
|
|
265
219
|
}
|
|
266
220
|
}
|
|
267
221
|
});
|
|
222
|
+
var fillTypeMap = {
|
|
223
|
+
primary: "brand-container-mid",
|
|
224
|
+
secondary: "inverse-label-primary",
|
|
225
|
+
tertiary: "inverse-label-primary",
|
|
226
|
+
quaternary: "inverse-label-primary",
|
|
227
|
+
quinary: "inverse-label-primary",
|
|
228
|
+
negative: "function-label-negative",
|
|
229
|
+
static: "inverse-label-static-primary",
|
|
230
|
+
"inverse-static": "inverse-container-static-high"
|
|
231
|
+
};
|
|
268
232
|
var DefaultButton = forwardRef(
|
|
269
233
|
({
|
|
270
234
|
asChild = false,
|
|
271
235
|
level = "primary",
|
|
272
|
-
fill = true,
|
|
273
|
-
align = "center",
|
|
274
236
|
size = "cta",
|
|
275
237
|
width = "fit-content",
|
|
276
238
|
className,
|
|
@@ -278,25 +240,26 @@ var DefaultButton = forwardRef(
|
|
|
278
240
|
rightIcon,
|
|
279
241
|
isLoading = false,
|
|
280
242
|
children,
|
|
243
|
+
disabled,
|
|
281
244
|
...rest
|
|
282
245
|
}, ref) => {
|
|
283
246
|
const iconProps = {
|
|
284
247
|
size: buttonIconSizeMap[size],
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
fillType: buttonFillLevelIconFillTypeMap[`${fill}`][level]
|
|
248
|
+
type: buttonFillLevelIconTypeMap[level],
|
|
249
|
+
fillType: fillTypeMap[level]
|
|
288
250
|
};
|
|
289
|
-
const isLoadingWithDisabled = isLoading &&
|
|
251
|
+
const isLoadingWithDisabled = isLoading && disabled;
|
|
252
|
+
const isLoadingOrDisabled = isLoading || disabled;
|
|
290
253
|
const renderContent = /* @__PURE__ */ __name((children2) => /* @__PURE__ */ jsxs2("span", { className: clsx(defaultButtonChildrenVariants({ size })), children: [
|
|
291
254
|
!!leftIcon && !isLoading && /* @__PURE__ */ jsx2(leftIcon.icon, { ...iconProps, ...leftIcon }),
|
|
292
255
|
isLoading ? !!leftIcon || !!rightIcon ? /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
293
|
-
/* @__PURE__ */ jsx2(Loading, { size:
|
|
256
|
+
/* @__PURE__ */ jsx2(Loading, { size: buttonIconSizeMap[size], level: buttonLoadingLevelMap[level] }),
|
|
294
257
|
/* @__PURE__ */ jsx2("p", { className: style_module_default.content, children: children2 })
|
|
295
258
|
] }) : /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
296
259
|
/* @__PURE__ */ jsx2(
|
|
297
260
|
Loading,
|
|
298
261
|
{
|
|
299
|
-
size:
|
|
262
|
+
size: buttonIconSizeMap[size],
|
|
300
263
|
level: buttonLoadingLevelMap[level],
|
|
301
264
|
style: {
|
|
302
265
|
position: "absolute",
|
|
@@ -328,8 +291,10 @@ var DefaultButton = forwardRef(
|
|
|
328
291
|
{
|
|
329
292
|
...rest,
|
|
330
293
|
className: clsx(
|
|
331
|
-
defaultButtonVariants({ level,
|
|
294
|
+
defaultButtonVariants({ level, size, width }),
|
|
295
|
+
style_module_default["align-center"],
|
|
332
296
|
isLoadingWithDisabled && style_module_default["loading-with-disabled"],
|
|
297
|
+
isLoading && style_module_default["loading"],
|
|
333
298
|
className
|
|
334
299
|
),
|
|
335
300
|
ref
|
|
@@ -343,14 +308,17 @@ var DefaultButton = forwardRef(
|
|
|
343
308
|
{
|
|
344
309
|
...rest,
|
|
345
310
|
className: clsx(
|
|
346
|
-
defaultButtonVariants({ level,
|
|
311
|
+
defaultButtonVariants({ level, size, width }),
|
|
312
|
+
style_module_default["align-center"],
|
|
347
313
|
isLoadingWithDisabled && style_module_default["loading-with-disabled"],
|
|
314
|
+
isLoading && style_module_default["loading"],
|
|
348
315
|
className
|
|
349
316
|
),
|
|
350
317
|
ref,
|
|
351
318
|
"aria-label": rest["aria-label"] || "button",
|
|
352
319
|
role: "button",
|
|
353
320
|
tabIndex: 0,
|
|
321
|
+
disabled: isLoadingOrDisabled,
|
|
354
322
|
children: renderContent(children)
|
|
355
323
|
}
|
|
356
324
|
);
|
|
@@ -932,7 +900,10 @@ import { createElement } from "react";
|
|
|
932
900
|
var Toaster = /* @__PURE__ */ __name(() => {
|
|
933
901
|
const list = useRecoilValue(toastAtom);
|
|
934
902
|
return /* @__PURE__ */ jsxs3(Provider, { children: [
|
|
935
|
-
list.map((props) =>
|
|
903
|
+
list.map((props) => (
|
|
904
|
+
// eslint-disable-next-line react/prop-types
|
|
905
|
+
/* @__PURE__ */ createElement(SingleToast, { ...props, key: props.toastId })
|
|
906
|
+
)),
|
|
936
907
|
/* @__PURE__ */ jsx4(Viewport, { className: style_module_default3.ToastViewport })
|
|
937
908
|
] });
|
|
938
909
|
}, "Toaster");
|
|
@@ -1005,7 +976,6 @@ var SingleToast = /* @__PURE__ */ __name((props) => {
|
|
|
1005
976
|
},
|
|
1006
977
|
level: "static",
|
|
1007
978
|
size: "s",
|
|
1008
|
-
align: "center",
|
|
1009
979
|
children: button.label
|
|
1010
980
|
}
|
|
1011
981
|
)
|
|
@@ -1250,123 +1220,12 @@ var style_module_default5 = {
|
|
|
1250
1220
|
};
|
|
1251
1221
|
|
|
1252
1222
|
// src/components/Popover/index.tsx
|
|
1253
|
-
import { cva as cva4 } from "cva";
|
|
1254
|
-
import { clsx as clsx8 } from "clsx";
|
|
1255
|
-
import { IconCloseFill } from "@liner-fe/icon";
|
|
1256
|
-
|
|
1257
|
-
// src/components/TextButton/index.tsx
|
|
1258
1223
|
import { cva as cva3 } from "cva";
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
"button": "_button_14tzo_1",
|
|
1263
|
-
"text": "_text_14tzo_27",
|
|
1264
|
-
"size-m": "_size-m_14tzo_34",
|
|
1265
|
-
"size-s": "_size-s_14tzo_37",
|
|
1266
|
-
"primary": "_primary_14tzo_40",
|
|
1267
|
-
"secondary": "_secondary_14tzo_44",
|
|
1268
|
-
"tertiary": "_tertiary_14tzo_48",
|
|
1269
|
-
"inverse": "_inverse_14tzo_52",
|
|
1270
|
-
"inverse-static": "_inverse-static_14tzo_56",
|
|
1271
|
-
"thick": "_thick_14tzo_61",
|
|
1272
|
-
"underline": "_underline_14tzo_65",
|
|
1273
|
-
"text-children": "_text-children_14tzo_70"
|
|
1274
|
-
};
|
|
1275
|
-
|
|
1276
|
-
// src/components/TextButton/index.tsx
|
|
1277
|
-
import { Children as Children2, cloneElement as cloneElement2, forwardRef as forwardRef7 } from "react";
|
|
1278
|
-
import clsx7 from "clsx";
|
|
1279
|
-
import { jsx as jsx10, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
1280
|
-
var textButtonLevelIconTypeMap = {
|
|
1281
|
-
primary: "brand-label-primary",
|
|
1282
|
-
secondary: "neutral-label-primary",
|
|
1283
|
-
tertiary: "neutral-label-secondary",
|
|
1284
|
-
inverse: "inverse-label-primary",
|
|
1285
|
-
"inverse-static": "inverse-label-static-primary"
|
|
1286
|
-
};
|
|
1287
|
-
var textButtonLevelIconFillTypeMap = {
|
|
1288
|
-
primary: "inverse-label-static-primary",
|
|
1289
|
-
secondary: "inverse-label-secondary",
|
|
1290
|
-
tertiary: "inverse-label-secondary",
|
|
1291
|
-
inverse: "neutral-label-primary",
|
|
1292
|
-
"inverse-static": "neutral-label-static-primary"
|
|
1293
|
-
};
|
|
1294
|
-
var textButtonVariants = cva3({
|
|
1295
|
-
base: [style_module_default6.button, style_module_default6.text],
|
|
1296
|
-
variants: {
|
|
1297
|
-
level: {
|
|
1298
|
-
primary: [style_module_default6["primary"], "lp-sys-typo-caption1-normal-medium"],
|
|
1299
|
-
secondary: [style_module_default6["secondary"], "lp-sys-typo-caption1-normal-medium"],
|
|
1300
|
-
tertiary: [style_module_default6["tertiary"], "lp-sys-typo-caption1-normal-medium"],
|
|
1301
|
-
inverse: [style_module_default6["inverse"], "lp-sys-typo-caption1-normal-medium"],
|
|
1302
|
-
"inverse-static": [style_module_default6["inverse-static"], "lp-sys-typo-caption1-normal-medium"]
|
|
1303
|
-
},
|
|
1304
|
-
size: {
|
|
1305
|
-
m: style_module_default6["size-m"],
|
|
1306
|
-
s: style_module_default6["size-s"]
|
|
1307
|
-
},
|
|
1308
|
-
thick: {
|
|
1309
|
-
true: style_module_default6.thick
|
|
1310
|
-
},
|
|
1311
|
-
underline: {
|
|
1312
|
-
true: style_module_default6.underline
|
|
1313
|
-
}
|
|
1314
|
-
}
|
|
1315
|
-
});
|
|
1316
|
-
var TextButton = forwardRef7(
|
|
1317
|
-
({
|
|
1318
|
-
level = "primary",
|
|
1319
|
-
thick = false,
|
|
1320
|
-
underline = false,
|
|
1321
|
-
size = "m",
|
|
1322
|
-
asChild = false,
|
|
1323
|
-
leftIcon,
|
|
1324
|
-
rightIcon,
|
|
1325
|
-
className,
|
|
1326
|
-
children,
|
|
1327
|
-
...rest
|
|
1328
|
-
}, ref) => {
|
|
1329
|
-
const getIconProps = /* @__PURE__ */ __name((icon) => ({
|
|
1330
|
-
size: size === "m" ? "s" : "xs",
|
|
1331
|
-
thick: true,
|
|
1332
|
-
type: textButtonLevelIconTypeMap[level],
|
|
1333
|
-
fillType: textButtonLevelIconFillTypeMap[level],
|
|
1334
|
-
...icon
|
|
1335
|
-
}), "getIconProps");
|
|
1336
|
-
const renderContent = /* @__PURE__ */ __name((children2) => /* @__PURE__ */ jsxs4("span", { className: style_module_default6["text-children"], children: [
|
|
1337
|
-
leftIcon && /* @__PURE__ */ jsx10(leftIcon.icon, { ...getIconProps(leftIcon) }),
|
|
1338
|
-
/* @__PURE__ */ jsx10("p", { children: children2 }),
|
|
1339
|
-
rightIcon && /* @__PURE__ */ jsx10(rightIcon.icon, { ...getIconProps(rightIcon) })
|
|
1340
|
-
] }), "renderContent");
|
|
1341
|
-
if (asChild) {
|
|
1342
|
-
const parent = Children2.only(children);
|
|
1343
|
-
return cloneElement2(
|
|
1344
|
-
parent,
|
|
1345
|
-
{
|
|
1346
|
-
...rest,
|
|
1347
|
-
className: clsx7(textButtonVariants({ level, thick, underline, size }), className),
|
|
1348
|
-
ref
|
|
1349
|
-
},
|
|
1350
|
-
renderContent(parent.props.children)
|
|
1351
|
-
);
|
|
1352
|
-
}
|
|
1353
|
-
return /* @__PURE__ */ jsx10(
|
|
1354
|
-
"button",
|
|
1355
|
-
{
|
|
1356
|
-
className: clsx7(textButtonVariants({ level, thick, underline, size }), className),
|
|
1357
|
-
ref,
|
|
1358
|
-
...rest,
|
|
1359
|
-
children: renderContent(children)
|
|
1360
|
-
}
|
|
1361
|
-
);
|
|
1362
|
-
}
|
|
1363
|
-
);
|
|
1364
|
-
TextButton.displayName = "TextButton";
|
|
1365
|
-
|
|
1366
|
-
// src/components/Popover/index.tsx
|
|
1367
|
-
import { Fragment as Fragment3, jsx as jsx11, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1224
|
+
import { clsx as clsx7 } from "clsx";
|
|
1225
|
+
import { IconCloseFill } from "@liner-fe/icon";
|
|
1226
|
+
import { Fragment as Fragment3, jsx as jsx10, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
1368
1227
|
var DEFAULT_OFFSET = -6;
|
|
1369
|
-
var popoverVariants =
|
|
1228
|
+
var popoverVariants = cva3({
|
|
1370
1229
|
base: style_module_default5.content,
|
|
1371
1230
|
variants: {
|
|
1372
1231
|
level: {
|
|
@@ -1375,7 +1234,7 @@ var popoverVariants = cva4({
|
|
|
1375
1234
|
}
|
|
1376
1235
|
}
|
|
1377
1236
|
});
|
|
1378
|
-
var popoverAnchorVariants =
|
|
1237
|
+
var popoverAnchorVariants = cva3({
|
|
1379
1238
|
base: style_module_default5.anchor,
|
|
1380
1239
|
variants: {
|
|
1381
1240
|
level: {
|
|
@@ -1384,15 +1243,15 @@ var popoverAnchorVariants = cva4({
|
|
|
1384
1243
|
}
|
|
1385
1244
|
}
|
|
1386
1245
|
});
|
|
1387
|
-
var popoverTagVariants =
|
|
1388
|
-
var popoverTitleVariants =
|
|
1389
|
-
var popoverDescriptionVariants =
|
|
1246
|
+
var popoverTagVariants = cva3({ base: [style_module_default5.tag, "lp-sys-typo-caption3-normal-bold"] });
|
|
1247
|
+
var popoverTitleVariants = cva3({ base: [style_module_default5.title, "lp-sys-typo-paragraph3-normal-bold"] });
|
|
1248
|
+
var popoverDescriptionVariants = cva3({
|
|
1390
1249
|
base: [style_module_default5.description, "lp-sys-typo-caption1-normal-regular"]
|
|
1391
1250
|
});
|
|
1392
|
-
var popoverFooterVariants =
|
|
1393
|
-
var PopoverRoot = /* @__PURE__ */ __name(({ isOpen, children, onChange }) => /* @__PURE__ */
|
|
1394
|
-
var PopoverTrigger = /* @__PURE__ */ __name(({ by }) => /* @__PURE__ */
|
|
1395
|
-
var PopoverAnchor = /* @__PURE__ */ __name(({ className }) => /* @__PURE__ */
|
|
1251
|
+
var popoverFooterVariants = cva3({ base: [style_module_default5.footer, "lp-sys-typo-caption1-normal-medium"] });
|
|
1252
|
+
var PopoverRoot = /* @__PURE__ */ __name(({ isOpen, children, onChange }) => /* @__PURE__ */ jsx10(PopoverPrimitive.Root, { open: isOpen, onOpenChange: onChange, children }), "PopoverRoot");
|
|
1253
|
+
var PopoverTrigger = /* @__PURE__ */ __name(({ by }) => /* @__PURE__ */ jsx10(PopoverPrimitive.Trigger, { asChild: true, children: by }), "PopoverTrigger");
|
|
1254
|
+
var PopoverAnchor = /* @__PURE__ */ __name(({ className }) => /* @__PURE__ */ jsx10(
|
|
1396
1255
|
"svg",
|
|
1397
1256
|
{
|
|
1398
1257
|
className,
|
|
@@ -1401,7 +1260,7 @@ var PopoverAnchor = /* @__PURE__ */ __name(({ className }) => /* @__PURE__ */ js
|
|
|
1401
1260
|
height: "10",
|
|
1402
1261
|
viewBox: "0 0 30 10",
|
|
1403
1262
|
fill: "none",
|
|
1404
|
-
children: /* @__PURE__ */
|
|
1263
|
+
children: /* @__PURE__ */ jsx10(
|
|
1405
1264
|
"path",
|
|
1406
1265
|
{
|
|
1407
1266
|
fillRule: "evenodd",
|
|
@@ -1430,8 +1289,8 @@ var PopoverContent = React3.forwardRef(
|
|
|
1430
1289
|
children,
|
|
1431
1290
|
container,
|
|
1432
1291
|
...props
|
|
1433
|
-
}, ref) => /* @__PURE__ */
|
|
1434
|
-
/* @__PURE__ */
|
|
1292
|
+
}, ref) => /* @__PURE__ */ jsx10(PopoverPrimitive.Portal, { container, children: /* @__PURE__ */ jsxs4(Fragment3, { children: [
|
|
1293
|
+
/* @__PURE__ */ jsxs4(
|
|
1435
1294
|
PopoverPrimitive.Content,
|
|
1436
1295
|
{
|
|
1437
1296
|
ref,
|
|
@@ -1439,43 +1298,44 @@ var PopoverContent = React3.forwardRef(
|
|
|
1439
1298
|
side: position,
|
|
1440
1299
|
sideOffset: DEFAULT_OFFSET,
|
|
1441
1300
|
onPointerDownOutside,
|
|
1442
|
-
className:
|
|
1301
|
+
className: clsx7(popoverVariants({ level }), className),
|
|
1443
1302
|
...props,
|
|
1444
1303
|
children: [
|
|
1445
|
-
/* @__PURE__ */
|
|
1446
|
-
(tag || icon || onClose) && /* @__PURE__ */
|
|
1447
|
-
tag && /* @__PURE__ */
|
|
1448
|
-
icon && /* @__PURE__ */
|
|
1449
|
-
/* @__PURE__ */
|
|
1450
|
-
onClose && /* @__PURE__ */
|
|
1304
|
+
/* @__PURE__ */ jsxs4("div", { className: style_module_default5.contentContainer, children: [
|
|
1305
|
+
(tag || icon || onClose) && /* @__PURE__ */ jsxs4("div", { className: style_module_default5.heading, children: [
|
|
1306
|
+
tag && /* @__PURE__ */ jsx10("span", { className: popoverTagVariants(), children: tag }),
|
|
1307
|
+
icon && /* @__PURE__ */ jsx10(icon.icon, { size: "xs", thick: icon.thick, fill: icon.fill }),
|
|
1308
|
+
/* @__PURE__ */ jsx10("p", { className: popoverTitleVariants(), children: title }),
|
|
1309
|
+
onClose && /* @__PURE__ */ jsx10(
|
|
1451
1310
|
PopoverPrimitive.PopoverClose,
|
|
1452
1311
|
{
|
|
1453
1312
|
className: style_module_default5.closeButton,
|
|
1454
1313
|
onClick: () => {
|
|
1455
1314
|
onClose();
|
|
1456
1315
|
},
|
|
1457
|
-
children: /* @__PURE__ */
|
|
1316
|
+
children: /* @__PURE__ */ jsx10(IconCloseFill, { size: "s", fill: true, thick: true, type: "neutral-label-static-primary" })
|
|
1458
1317
|
}
|
|
1459
1318
|
)
|
|
1460
1319
|
] }),
|
|
1461
|
-
description && /* @__PURE__ */
|
|
1462
|
-
onConfirm && /* @__PURE__ */
|
|
1463
|
-
|
|
1320
|
+
description && /* @__PURE__ */ jsx10("p", { className: popoverDescriptionVariants(), children: description }),
|
|
1321
|
+
onConfirm && /* @__PURE__ */ jsx10("div", { className: popoverFooterVariants(), children: /* @__PURE__ */ jsx10(
|
|
1322
|
+
Button,
|
|
1464
1323
|
{
|
|
1465
|
-
level: "
|
|
1324
|
+
level: "static",
|
|
1466
1325
|
onClick: () => {
|
|
1467
1326
|
onConfirm?.();
|
|
1468
1327
|
},
|
|
1328
|
+
size: "s",
|
|
1469
1329
|
children: confirmText
|
|
1470
1330
|
}
|
|
1471
1331
|
) }),
|
|
1472
1332
|
children
|
|
1473
1333
|
] }),
|
|
1474
|
-
/* @__PURE__ */
|
|
1334
|
+
/* @__PURE__ */ jsx10(PopoverPrimitive.Arrow, { asChild: true, children: /* @__PURE__ */ jsx10(PopoverAnchor, { className: clsx7(popoverAnchorVariants({ level })) }) })
|
|
1475
1335
|
]
|
|
1476
1336
|
}
|
|
1477
1337
|
),
|
|
1478
|
-
isOverlay && /* @__PURE__ */
|
|
1338
|
+
isOverlay && /* @__PURE__ */ jsx10("div", { "data-radix-popper-overlay": true, className: style_module_default5.overlay })
|
|
1479
1339
|
] }) })
|
|
1480
1340
|
);
|
|
1481
1341
|
var Popover = Object.assign(PopoverRoot, {
|
|
@@ -1487,24 +1347,24 @@ var Popover = Object.assign(PopoverRoot, {
|
|
|
1487
1347
|
|
|
1488
1348
|
// src/components/Tooltip/index.tsx
|
|
1489
1349
|
import { Tooltip as TooltipPrimitive } from "radix-ui";
|
|
1490
|
-
import { forwardRef as
|
|
1350
|
+
import { forwardRef as forwardRef8 } from "react";
|
|
1491
1351
|
|
|
1492
1352
|
// src/components/Tooltip/style.module.scss
|
|
1493
|
-
var
|
|
1353
|
+
var style_module_default6 = {
|
|
1494
1354
|
"tooltip": "_tooltip_1cynk_1",
|
|
1495
1355
|
"tooltipContent": "_tooltipContent_1cynk_10"
|
|
1496
1356
|
};
|
|
1497
1357
|
|
|
1498
1358
|
// src/components/Tooltip/index.tsx
|
|
1499
|
-
import { cva as
|
|
1500
|
-
import
|
|
1501
|
-
import { jsx as
|
|
1359
|
+
import { cva as cva4 } from "cva";
|
|
1360
|
+
import clsx8 from "clsx";
|
|
1361
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
1502
1362
|
var DEFAULT_OFFSET2 = "medium";
|
|
1503
|
-
var tooltipVariants =
|
|
1363
|
+
var tooltipVariants = cva4({ base: [style_module_default6.tooltip, "lp-sys-typo-caption1-normal-medium"] });
|
|
1504
1364
|
var TooltipProvider = TooltipPrimitive.Provider;
|
|
1505
|
-
var TooltipRoot = /* @__PURE__ */ __name(({ children, ...props }) => /* @__PURE__ */
|
|
1506
|
-
var TooltipTrigger = /* @__PURE__ */ __name(({ by }) => /* @__PURE__ */
|
|
1507
|
-
var TooltipContent =
|
|
1365
|
+
var TooltipRoot = /* @__PURE__ */ __name(({ children, ...props }) => /* @__PURE__ */ jsx11(TooltipPrimitive.Root, { delayDuration: 0, ...props, children }), "TooltipRoot");
|
|
1366
|
+
var TooltipTrigger = /* @__PURE__ */ __name(({ by }) => /* @__PURE__ */ jsx11(TooltipPrimitive.Trigger, { asChild: true, children: by }), "TooltipTrigger");
|
|
1367
|
+
var TooltipContent = forwardRef8(
|
|
1508
1368
|
({
|
|
1509
1369
|
description,
|
|
1510
1370
|
position = "top",
|
|
@@ -1512,16 +1372,16 @@ var TooltipContent = forwardRef9(
|
|
|
1512
1372
|
offset = DEFAULT_OFFSET2,
|
|
1513
1373
|
collisionPadding,
|
|
1514
1374
|
...props
|
|
1515
|
-
}, ref) => /* @__PURE__ */
|
|
1375
|
+
}, ref) => /* @__PURE__ */ jsx11(
|
|
1516
1376
|
TooltipPrimitive.Content,
|
|
1517
1377
|
{
|
|
1518
1378
|
ref,
|
|
1519
1379
|
side: position,
|
|
1520
1380
|
sideOffset: offset === "medium" ? 4 : 8,
|
|
1521
1381
|
collisionPadding,
|
|
1522
|
-
className:
|
|
1382
|
+
className: clsx8(tooltipVariants(), className),
|
|
1523
1383
|
...props,
|
|
1524
|
-
children: /* @__PURE__ */
|
|
1384
|
+
children: /* @__PURE__ */ jsx11("p", { className: style_module_default6.tooltipContent, children: description })
|
|
1525
1385
|
}
|
|
1526
1386
|
)
|
|
1527
1387
|
);
|
|
@@ -1533,108 +1393,107 @@ var Tooltip = Object.assign(TooltipRoot, {
|
|
|
1533
1393
|
});
|
|
1534
1394
|
|
|
1535
1395
|
// src/components/IconButton/index.tsx
|
|
1536
|
-
import { cva as
|
|
1537
|
-
import { forwardRef as
|
|
1538
|
-
import
|
|
1396
|
+
import { cva as cva5 } from "cva";
|
|
1397
|
+
import { forwardRef as forwardRef9 } from "react";
|
|
1398
|
+
import clsx9 from "clsx";
|
|
1539
1399
|
|
|
1540
1400
|
// src/components/IconButton/style.module.scss
|
|
1541
|
-
var
|
|
1542
|
-
"iconButton": "
|
|
1543
|
-
"primary": "
|
|
1544
|
-
"
|
|
1545
|
-
"
|
|
1546
|
-
"
|
|
1547
|
-
"
|
|
1548
|
-
"
|
|
1549
|
-
"
|
|
1550
|
-
"inverse-static": "_inverse-
|
|
1551
|
-
"
|
|
1552
|
-
"
|
|
1553
|
-
"
|
|
1554
|
-
"s": "_s_1ys32_27",
|
|
1555
|
-
"xs": "_xs_1ys32_201"
|
|
1401
|
+
var style_module_default7 = {
|
|
1402
|
+
"iconButton": "_iconButton_ntpe2_1",
|
|
1403
|
+
"primary": "_primary_ntpe2_13",
|
|
1404
|
+
"loading": "_loading_ntpe2_19",
|
|
1405
|
+
"secondary": "_secondary_ntpe2_23",
|
|
1406
|
+
"tertiary": "_tertiary_ntpe2_34",
|
|
1407
|
+
"quaternary": "_quaternary_ntpe2_45",
|
|
1408
|
+
"quinary": "_quinary_ntpe2_52",
|
|
1409
|
+
"static": "_static_ntpe2_60",
|
|
1410
|
+
"inverse-static": "_inverse-static_ntpe2_67",
|
|
1411
|
+
"l": "_l_ntpe2_19",
|
|
1412
|
+
"m": "_m_ntpe2_80",
|
|
1413
|
+
"s": "_s_ntpe2_23"
|
|
1556
1414
|
};
|
|
1557
1415
|
|
|
1558
1416
|
// src/components/IconButton/index.tsx
|
|
1559
1417
|
import { Slot as SlotPrimitive } from "radix-ui";
|
|
1560
|
-
import { jsx as
|
|
1418
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
1561
1419
|
var { Slot } = SlotPrimitive;
|
|
1420
|
+
var ICON_SIZE_OPTIONS = ["l", "m", "s"];
|
|
1421
|
+
var ICON_LEVEL_OPTIONS = [
|
|
1422
|
+
"primary",
|
|
1423
|
+
"secondary",
|
|
1424
|
+
"tertiary",
|
|
1425
|
+
"quaternary",
|
|
1426
|
+
"quinary",
|
|
1427
|
+
"static",
|
|
1428
|
+
"inverse-static"
|
|
1429
|
+
];
|
|
1562
1430
|
var iconButtonSizeIconSizeMap = {
|
|
1563
|
-
l: "
|
|
1564
|
-
m: "s",
|
|
1565
|
-
s: "xs",
|
|
1566
|
-
xs: "xs"
|
|
1567
|
-
};
|
|
1568
|
-
var iconButtonLoadingSizeMap = {
|
|
1569
|
-
l: "m",
|
|
1431
|
+
l: "s",
|
|
1570
1432
|
m: "s",
|
|
1571
|
-
s: "xs"
|
|
1572
|
-
xs: "xs"
|
|
1433
|
+
s: "xs"
|
|
1573
1434
|
};
|
|
1574
1435
|
var iconButtonLoadingLevelMap = {
|
|
1575
1436
|
primary: "inverse-label-static-primary",
|
|
1576
|
-
secondary: "
|
|
1437
|
+
secondary: "brand-label-primary",
|
|
1577
1438
|
tertiary: "neutral-label-primary",
|
|
1578
1439
|
quaternary: "neutral-label-primary",
|
|
1579
|
-
|
|
1440
|
+
quinary: "neutral-label-secondary",
|
|
1580
1441
|
static: "neutral-label-static-primary",
|
|
1581
|
-
inverse: "inverse-label-primary"
|
|
1582
|
-
"inverse-static": "neutral-label-static-primary"
|
|
1442
|
+
"inverse-static": "inverse-label-static-primary"
|
|
1583
1443
|
};
|
|
1584
1444
|
var iconButtonLevelIconTypeMap = {
|
|
1585
|
-
|
|
1445
|
+
disabled: {
|
|
1446
|
+
primary: "neutral-label-tertiary",
|
|
1447
|
+
secondary: "neutral-label-tertiary",
|
|
1448
|
+
tertiary: "neutral-label-tertiary",
|
|
1449
|
+
quaternary: "neutral-label-quaternary",
|
|
1450
|
+
quinary: "neutral-label-quaternary",
|
|
1451
|
+
static: "neutral-label-tertiary",
|
|
1452
|
+
"inverse-static": "inverse-label-tertiary"
|
|
1453
|
+
},
|
|
1454
|
+
enabled: {
|
|
1586
1455
|
primary: "inverse-label-static-primary",
|
|
1587
|
-
secondary: "
|
|
1456
|
+
secondary: "brand-label-primary",
|
|
1588
1457
|
tertiary: "neutral-label-primary",
|
|
1589
1458
|
quaternary: "neutral-label-primary",
|
|
1590
|
-
|
|
1459
|
+
quinary: "neutral-label-secondary",
|
|
1591
1460
|
static: "neutral-label-static-primary",
|
|
1592
|
-
inverse: "inverse-label-primary",
|
|
1593
|
-
"inverse-static": "inverse-label-static-primary"
|
|
1594
|
-
},
|
|
1595
|
-
ghost: {
|
|
1596
|
-
primary: "neutral-label-primary",
|
|
1597
|
-
secondary: "neutral-label-secondary",
|
|
1598
|
-
tertiary: "neutral-label-tertiary",
|
|
1599
|
-
quaternary: "neutral-label-quaternary",
|
|
1600
|
-
// fill-false에 quaternary 타입이 존재하지 않으므로, 실제로 사용되지는 않습니다
|
|
1601
|
-
negative: "function-label-negative",
|
|
1602
|
-
static: "neutral-label-static-primary",
|
|
1603
|
-
inverse: "inverse-label-primary",
|
|
1604
1461
|
"inverse-static": "inverse-label-static-primary"
|
|
1605
1462
|
}
|
|
1606
1463
|
};
|
|
1607
|
-
var iconButtonVariants =
|
|
1608
|
-
base: [
|
|
1464
|
+
var iconButtonVariants = cva5({
|
|
1465
|
+
base: [style_module_default7.iconButton],
|
|
1609
1466
|
variants: {
|
|
1610
1467
|
level: {
|
|
1611
|
-
primary:
|
|
1612
|
-
secondary:
|
|
1613
|
-
tertiary:
|
|
1614
|
-
quaternary:
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
inverse:
|
|
1618
|
-
"inverse-static": style_module_default8["inverse-static"]
|
|
1468
|
+
primary: style_module_default7.primary,
|
|
1469
|
+
secondary: style_module_default7.secondary,
|
|
1470
|
+
tertiary: style_module_default7.tertiary,
|
|
1471
|
+
quaternary: style_module_default7.quaternary,
|
|
1472
|
+
static: style_module_default7.static,
|
|
1473
|
+
quinary: style_module_default7.quinary,
|
|
1474
|
+
"inverse-static": style_module_default7["inverse-static"]
|
|
1619
1475
|
},
|
|
1620
1476
|
size: {
|
|
1621
|
-
l:
|
|
1622
|
-
m:
|
|
1623
|
-
s:
|
|
1624
|
-
xs: style_module_default8.xs
|
|
1625
|
-
},
|
|
1626
|
-
fill: {
|
|
1627
|
-
true: void 0,
|
|
1628
|
-
false: style_module_default8.ghost
|
|
1477
|
+
l: style_module_default7.l,
|
|
1478
|
+
m: style_module_default7.m,
|
|
1479
|
+
s: style_module_default7.s
|
|
1629
1480
|
}
|
|
1630
1481
|
}
|
|
1631
1482
|
});
|
|
1632
|
-
var
|
|
1483
|
+
var fillTypeMap2 = {
|
|
1484
|
+
primary: "brand-container-mid",
|
|
1485
|
+
secondary: "inverse-label-primary",
|
|
1486
|
+
tertiary: "inverse-label-primary",
|
|
1487
|
+
quaternary: "inverse-label-primary",
|
|
1488
|
+
quinary: "inverse-label-primary",
|
|
1489
|
+
static: "inverse-label-static-primary",
|
|
1490
|
+
"inverse-static": "neutral-label-static-primary"
|
|
1491
|
+
};
|
|
1492
|
+
var IconButton = forwardRef9(
|
|
1633
1493
|
({
|
|
1634
1494
|
asChild,
|
|
1635
1495
|
level = "primary",
|
|
1636
1496
|
size = "m",
|
|
1637
|
-
fill = true,
|
|
1638
1497
|
className,
|
|
1639
1498
|
icon,
|
|
1640
1499
|
isLoading = false,
|
|
@@ -1642,19 +1501,30 @@ var IconButton = forwardRef10(
|
|
|
1642
1501
|
...rest
|
|
1643
1502
|
}, ref) => {
|
|
1644
1503
|
const Comp = asChild ? Slot : "button";
|
|
1645
|
-
return /* @__PURE__ */
|
|
1504
|
+
return /* @__PURE__ */ jsx12(
|
|
1646
1505
|
Comp,
|
|
1647
1506
|
{
|
|
1648
1507
|
...rest,
|
|
1649
|
-
className:
|
|
1508
|
+
className: clsx9(
|
|
1509
|
+
iconButtonVariants({ level, size }),
|
|
1510
|
+
className,
|
|
1511
|
+
isLoading && style_module_default7["loading"]
|
|
1512
|
+
),
|
|
1650
1513
|
ref,
|
|
1651
|
-
disabled: disabled
|
|
1514
|
+
disabled: disabled || isLoading,
|
|
1652
1515
|
role: "button",
|
|
1653
|
-
children: isLoading ? /* @__PURE__ */
|
|
1516
|
+
children: isLoading ? /* @__PURE__ */ jsx12(
|
|
1517
|
+
Loading,
|
|
1518
|
+
{
|
|
1519
|
+
size: iconButtonSizeIconSizeMap[size],
|
|
1520
|
+
level: iconButtonLoadingLevelMap[level]
|
|
1521
|
+
}
|
|
1522
|
+
) : /* @__PURE__ */ jsx12(
|
|
1654
1523
|
icon.icon,
|
|
1655
1524
|
{
|
|
1656
1525
|
size: iconButtonSizeIconSizeMap[size],
|
|
1657
|
-
type: iconButtonLevelIconTypeMap[
|
|
1526
|
+
type: iconButtonLevelIconTypeMap[disabled ? "disabled" : "enabled"][level],
|
|
1527
|
+
fillType: fillTypeMap2[level],
|
|
1658
1528
|
...icon
|
|
1659
1529
|
}
|
|
1660
1530
|
)
|
|
@@ -1668,7 +1538,7 @@ IconButton.displayName = "IconButton";
|
|
|
1668
1538
|
import { Checkbox as CheckboxPrimitive } from "radix-ui";
|
|
1669
1539
|
|
|
1670
1540
|
// src/components/CheckBox/style.module.scss
|
|
1671
|
-
var
|
|
1541
|
+
var style_module_default8 = {
|
|
1672
1542
|
"checkbox": "_checkbox_1vnvk_1",
|
|
1673
1543
|
"checkbox-indicator": "_checkbox-indicator_1vnvk_39",
|
|
1674
1544
|
"icon-minus": "_icon-minus_1vnvk_46",
|
|
@@ -1678,16 +1548,16 @@ var style_module_default9 = {
|
|
|
1678
1548
|
};
|
|
1679
1549
|
|
|
1680
1550
|
// src/components/CheckBox/index.tsx
|
|
1681
|
-
import { forwardRef as
|
|
1682
|
-
import
|
|
1551
|
+
import { forwardRef as forwardRef11 } from "react";
|
|
1552
|
+
import clsx11 from "clsx";
|
|
1683
1553
|
|
|
1684
1554
|
// src/components/Label/index.tsx
|
|
1685
|
-
import { forwardRef as
|
|
1555
|
+
import { forwardRef as forwardRef10 } from "react";
|
|
1686
1556
|
import { Label as LabelPrimitive } from "radix-ui";
|
|
1687
|
-
import
|
|
1557
|
+
import clsx10 from "clsx";
|
|
1688
1558
|
|
|
1689
1559
|
// src/components/Label/style.module.scss
|
|
1690
|
-
var
|
|
1560
|
+
var style_module_default9 = {
|
|
1691
1561
|
"label": "_label_1bwg6_1",
|
|
1692
1562
|
"error": "_error_1bwg6_12",
|
|
1693
1563
|
"primary": "_primary_1bwg6_16",
|
|
@@ -1704,38 +1574,38 @@ var style_module_default10 = {
|
|
|
1704
1574
|
};
|
|
1705
1575
|
|
|
1706
1576
|
// src/components/Label/index.tsx
|
|
1707
|
-
import { cva as
|
|
1708
|
-
import { jsx as
|
|
1709
|
-
var defaultLabelVariants =
|
|
1710
|
-
base: ["lp-sys-typo-paragraph2-normal-medium",
|
|
1577
|
+
import { cva as cva6 } from "cva";
|
|
1578
|
+
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
1579
|
+
var defaultLabelVariants = cva6({
|
|
1580
|
+
base: ["lp-sys-typo-paragraph2-normal-medium", style_module_default9.label],
|
|
1711
1581
|
variants: {
|
|
1712
1582
|
level: {
|
|
1713
|
-
primary:
|
|
1714
|
-
secondary:
|
|
1583
|
+
primary: style_module_default9.primary,
|
|
1584
|
+
secondary: style_module_default9.secondary
|
|
1715
1585
|
},
|
|
1716
1586
|
position: {
|
|
1717
|
-
top:
|
|
1718
|
-
right:
|
|
1587
|
+
top: style_module_default9.top,
|
|
1588
|
+
right: style_module_default9.right
|
|
1719
1589
|
},
|
|
1720
1590
|
size: {
|
|
1721
|
-
l: ["lp-sys-typo-paragraph3-normal-bold",
|
|
1722
|
-
m: ["lp-sys-typo-caption1-normal-medium",
|
|
1723
|
-
s: ["lp-sys-typo-caption2-normal-medium",
|
|
1591
|
+
l: ["lp-sys-typo-paragraph3-normal-bold", style_module_default9.l],
|
|
1592
|
+
m: ["lp-sys-typo-caption1-normal-medium", style_module_default9.m],
|
|
1593
|
+
s: ["lp-sys-typo-caption2-normal-medium", style_module_default9.s]
|
|
1724
1594
|
},
|
|
1725
1595
|
offset: {
|
|
1726
|
-
high:
|
|
1727
|
-
medium:
|
|
1728
|
-
low:
|
|
1596
|
+
high: style_module_default9["offset-high"],
|
|
1597
|
+
medium: style_module_default9["offset-medium"],
|
|
1598
|
+
low: style_module_default9["offset-low"]
|
|
1729
1599
|
},
|
|
1730
1600
|
disabled: {
|
|
1731
|
-
true:
|
|
1601
|
+
true: style_module_default9.disabled
|
|
1732
1602
|
},
|
|
1733
1603
|
error: {
|
|
1734
|
-
true:
|
|
1604
|
+
true: style_module_default9.error
|
|
1735
1605
|
}
|
|
1736
1606
|
}
|
|
1737
1607
|
});
|
|
1738
|
-
var Label =
|
|
1608
|
+
var Label = forwardRef10(
|
|
1739
1609
|
({
|
|
1740
1610
|
className,
|
|
1741
1611
|
level = "primary",
|
|
@@ -1746,11 +1616,11 @@ var Label = forwardRef11(
|
|
|
1746
1616
|
error = false,
|
|
1747
1617
|
...props
|
|
1748
1618
|
}, ref) => {
|
|
1749
|
-
return /* @__PURE__ */
|
|
1619
|
+
return /* @__PURE__ */ jsx13(
|
|
1750
1620
|
LabelPrimitive.Root,
|
|
1751
1621
|
{
|
|
1752
1622
|
ref,
|
|
1753
|
-
className:
|
|
1623
|
+
className: clsx10(
|
|
1754
1624
|
defaultLabelVariants({ level, position, size, offset, disabled, error }),
|
|
1755
1625
|
className
|
|
1756
1626
|
),
|
|
@@ -1763,33 +1633,33 @@ Label.displayName = "Label";
|
|
|
1763
1633
|
|
|
1764
1634
|
// src/components/CheckBox/index.tsx
|
|
1765
1635
|
import { IconCheckMark, IconMinus } from "@liner-fe/icon";
|
|
1766
|
-
import { Fragment as Fragment4, jsx as
|
|
1767
|
-
var Checkbox =
|
|
1636
|
+
import { Fragment as Fragment4, jsx as jsx14, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1637
|
+
var Checkbox = forwardRef11(
|
|
1768
1638
|
({ className, label, description, ...props }, ref) => {
|
|
1769
|
-
const CheckboxWrapper = /* @__PURE__ */ __name(({ children }) => label ? /* @__PURE__ */
|
|
1770
|
-
/* @__PURE__ */
|
|
1771
|
-
/* @__PURE__ */
|
|
1772
|
-
description && /* @__PURE__ */
|
|
1639
|
+
const CheckboxWrapper = /* @__PURE__ */ __name(({ children }) => label ? /* @__PURE__ */ jsxs5(Label, { position: "right", htmlFor: props.id, children: [
|
|
1640
|
+
/* @__PURE__ */ jsxs5("div", { className: style_module_default8["label-wrapper"], children: [
|
|
1641
|
+
/* @__PURE__ */ jsx14(Paragraph, { type: "normal", weight: "medium", size: 3, children: label }),
|
|
1642
|
+
description && /* @__PURE__ */ jsx14(Paragraph, { className: style_module_default8.description, size: 3, type: "normal", weight: "regular", children: description })
|
|
1773
1643
|
] }),
|
|
1774
1644
|
children
|
|
1775
|
-
] }) : /* @__PURE__ */
|
|
1776
|
-
return /* @__PURE__ */
|
|
1777
|
-
/* @__PURE__ */
|
|
1645
|
+
] }) : /* @__PURE__ */ jsx14(Fragment4, { children }), "CheckboxWrapper");
|
|
1646
|
+
return /* @__PURE__ */ jsx14(CheckboxWrapper, { children: /* @__PURE__ */ jsx14(CheckboxPrimitive.Root, { className: clsx11(style_module_default8.checkbox, className), ref, ...props, children: /* @__PURE__ */ jsxs5(CheckboxPrimitive.Indicator, { className: style_module_default8["checkbox-indicator"], children: [
|
|
1647
|
+
/* @__PURE__ */ jsx14(
|
|
1778
1648
|
IconCheckMark,
|
|
1779
1649
|
{
|
|
1780
1650
|
thick: true,
|
|
1781
1651
|
size: "xs",
|
|
1782
1652
|
type: "inverse-label-primary",
|
|
1783
|
-
className:
|
|
1653
|
+
className: style_module_default8["icon-check"]
|
|
1784
1654
|
}
|
|
1785
1655
|
),
|
|
1786
|
-
/* @__PURE__ */
|
|
1656
|
+
/* @__PURE__ */ jsx14(
|
|
1787
1657
|
IconMinus,
|
|
1788
1658
|
{
|
|
1789
1659
|
thick: true,
|
|
1790
1660
|
size: "xs",
|
|
1791
1661
|
type: "inverse-label-primary",
|
|
1792
|
-
className:
|
|
1662
|
+
className: style_module_default8["icon-minus"]
|
|
1793
1663
|
}
|
|
1794
1664
|
)
|
|
1795
1665
|
] }) }) });
|
|
@@ -1798,11 +1668,11 @@ var Checkbox = forwardRef12(
|
|
|
1798
1668
|
|
|
1799
1669
|
// src/components/Radio/index.tsx
|
|
1800
1670
|
import { RadioGroup as RadioGroupPrimitive } from "radix-ui";
|
|
1801
|
-
import
|
|
1802
|
-
import { forwardRef as
|
|
1671
|
+
import clsx12 from "clsx";
|
|
1672
|
+
import { forwardRef as forwardRef12 } from "react";
|
|
1803
1673
|
|
|
1804
1674
|
// src/components/Radio/style.module.scss
|
|
1805
|
-
var
|
|
1675
|
+
var style_module_default10 = {
|
|
1806
1676
|
"radio-item": "_radio-item_1ct7a_1",
|
|
1807
1677
|
"indicator": "_indicator_1ct7a_44",
|
|
1808
1678
|
"label-wrapper": "_label-wrapper_1ct7a_50",
|
|
@@ -1810,27 +1680,27 @@ var style_module_default11 = {
|
|
|
1810
1680
|
};
|
|
1811
1681
|
|
|
1812
1682
|
// src/components/Radio/index.tsx
|
|
1813
|
-
import { Fragment as Fragment5, jsx as
|
|
1814
|
-
var RadioIndicator = /* @__PURE__ */ __name(() => /* @__PURE__ */
|
|
1815
|
-
var RadioRoot =
|
|
1683
|
+
import { Fragment as Fragment5, jsx as jsx15, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1684
|
+
var RadioIndicator = /* @__PURE__ */ __name(() => /* @__PURE__ */ jsx15("svg", { xmlns: "http://www.w3.org/2000/svg", width: "10", height: "10", viewBox: "0 0 10 10", fill: "none", children: /* @__PURE__ */ jsx15("circle", { cx: "5", cy: "5", r: "5", fill: "#313133" }) }), "RadioIndicator");
|
|
1685
|
+
var RadioRoot = forwardRef12(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(RadioGroupPrimitive.Root, { ref, className, ...props }));
|
|
1816
1686
|
RadioRoot.displayName = "RadioRoot";
|
|
1817
|
-
var RadioItem =
|
|
1687
|
+
var RadioItem = forwardRef12(
|
|
1818
1688
|
({ className, label, description, ...props }, ref) => {
|
|
1819
|
-
const RadioItemWrapper = /* @__PURE__ */ __name(({ children }) => label ? /* @__PURE__ */
|
|
1820
|
-
/* @__PURE__ */
|
|
1689
|
+
const RadioItemWrapper = /* @__PURE__ */ __name(({ children }) => label ? /* @__PURE__ */ jsxs6(Label, { position: "right", children: [
|
|
1690
|
+
/* @__PURE__ */ jsxs6("div", { className: style_module_default10["label-wrapper"], children: [
|
|
1821
1691
|
label,
|
|
1822
|
-
description && /* @__PURE__ */
|
|
1692
|
+
description && /* @__PURE__ */ jsx15(Paragraph, { className: style_module_default10.description, size: 3, type: "normal", weight: "regular", children: description })
|
|
1823
1693
|
] }),
|
|
1824
1694
|
children
|
|
1825
|
-
] }) : /* @__PURE__ */
|
|
1826
|
-
return /* @__PURE__ */
|
|
1695
|
+
] }) : /* @__PURE__ */ jsx15(Fragment5, { children }), "RadioItemWrapper");
|
|
1696
|
+
return /* @__PURE__ */ jsx15(RadioItemWrapper, { children: /* @__PURE__ */ jsx15(
|
|
1827
1697
|
RadioGroupPrimitive.Item,
|
|
1828
1698
|
{
|
|
1829
1699
|
ref,
|
|
1830
|
-
className:
|
|
1700
|
+
className: clsx12(style_module_default10["radio-item"], className),
|
|
1831
1701
|
...props,
|
|
1832
1702
|
"aria-label": label,
|
|
1833
|
-
children: /* @__PURE__ */
|
|
1703
|
+
children: /* @__PURE__ */ jsx15(RadioGroupPrimitive.Indicator, { className: style_module_default10.indicator, children: /* @__PURE__ */ jsx15(RadioIndicator, {}) })
|
|
1834
1704
|
}
|
|
1835
1705
|
) });
|
|
1836
1706
|
}
|
|
@@ -1842,7 +1712,7 @@ var Radio = Object.assign(RadioRoot, {
|
|
|
1842
1712
|
|
|
1843
1713
|
// src/components/Textfield/index.tsx
|
|
1844
1714
|
import {
|
|
1845
|
-
forwardRef as
|
|
1715
|
+
forwardRef as forwardRef13,
|
|
1846
1716
|
useId,
|
|
1847
1717
|
useImperativeHandle,
|
|
1848
1718
|
useRef as useRef2,
|
|
@@ -1850,7 +1720,7 @@ import {
|
|
|
1850
1720
|
} from "react";
|
|
1851
1721
|
|
|
1852
1722
|
// src/components/Textfield/style.module.scss
|
|
1853
|
-
var
|
|
1723
|
+
var style_module_default11 = {
|
|
1854
1724
|
"textfield-container": "_textfield-container_1v086_1",
|
|
1855
1725
|
"textfield": "_textfield_1v086_1",
|
|
1856
1726
|
"label": "_label_1v086_10",
|
|
@@ -1872,8 +1742,8 @@ var style_module_default12 = {
|
|
|
1872
1742
|
};
|
|
1873
1743
|
|
|
1874
1744
|
// src/components/Textfield/index.tsx
|
|
1875
|
-
import { cva as
|
|
1876
|
-
import
|
|
1745
|
+
import { cva as cva7 } from "cva";
|
|
1746
|
+
import clsx13 from "clsx";
|
|
1877
1747
|
import {
|
|
1878
1748
|
IconCloseFill as IconCloseFill2,
|
|
1879
1749
|
IconExclamationmarkFill,
|
|
@@ -1881,17 +1751,17 @@ import {
|
|
|
1881
1751
|
IconVisibilityOff
|
|
1882
1752
|
} from "@liner-fe/icon";
|
|
1883
1753
|
import { flushSync } from "react-dom";
|
|
1884
|
-
import { Fragment as Fragment6, jsx as
|
|
1885
|
-
var defaultTextfieldVariants =
|
|
1886
|
-
base:
|
|
1754
|
+
import { Fragment as Fragment6, jsx as jsx16, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1755
|
+
var defaultTextfieldVariants = cva7({
|
|
1756
|
+
base: style_module_default11.textfield,
|
|
1887
1757
|
variants: {
|
|
1888
1758
|
color: {
|
|
1889
|
-
"neutral-container-mid":
|
|
1890
|
-
"neutral-container-lowest":
|
|
1759
|
+
"neutral-container-mid": style_module_default11.gray,
|
|
1760
|
+
"neutral-container-lowest": style_module_default11.white
|
|
1891
1761
|
}
|
|
1892
1762
|
}
|
|
1893
1763
|
});
|
|
1894
|
-
var Textfield =
|
|
1764
|
+
var Textfield = forwardRef13((props, ref) => {
|
|
1895
1765
|
const {
|
|
1896
1766
|
id = useId(),
|
|
1897
1767
|
type,
|
|
@@ -1959,20 +1829,20 @@ var Textfield = forwardRef14((props, ref) => {
|
|
|
1959
1829
|
}
|
|
1960
1830
|
return "text";
|
|
1961
1831
|
})();
|
|
1962
|
-
return /* @__PURE__ */
|
|
1963
|
-
/* @__PURE__ */
|
|
1832
|
+
return /* @__PURE__ */ jsxs7("div", { className: style_module_default11["textfield-container"], "data-disabled": disabled, "data-error": !!error, children: [
|
|
1833
|
+
/* @__PURE__ */ jsx16(
|
|
1964
1834
|
"div",
|
|
1965
1835
|
{
|
|
1966
|
-
className:
|
|
1967
|
-
[
|
|
1836
|
+
className: clsx13(defaultTextfieldVariants({ color }), {
|
|
1837
|
+
[style_module_default11["label-out-textfield"]]: !label || labelType === "out"
|
|
1968
1838
|
}),
|
|
1969
1839
|
onClick: handleTextfieldClick,
|
|
1970
|
-
children: /* @__PURE__ */
|
|
1971
|
-
/* @__PURE__ */
|
|
1840
|
+
children: /* @__PURE__ */ jsxs7("div", { className: style_module_default11["input-wrapper"], children: [
|
|
1841
|
+
/* @__PURE__ */ jsx16(
|
|
1972
1842
|
"input",
|
|
1973
1843
|
{
|
|
1974
|
-
className:
|
|
1975
|
-
[
|
|
1844
|
+
className: clsx13(style_module_default11.input, {
|
|
1845
|
+
[style_module_default11["label-out-input"]]: !label || labelType === "out" || labelType === "visually-hidden"
|
|
1976
1846
|
}),
|
|
1977
1847
|
type: inputType,
|
|
1978
1848
|
placeholder,
|
|
@@ -1983,27 +1853,26 @@ var Textfield = forwardRef14((props, ref) => {
|
|
|
1983
1853
|
...rest
|
|
1984
1854
|
}
|
|
1985
1855
|
),
|
|
1986
|
-
/* @__PURE__ */
|
|
1856
|
+
/* @__PURE__ */ jsx16(
|
|
1987
1857
|
Label,
|
|
1988
1858
|
{
|
|
1989
|
-
className:
|
|
1990
|
-
[
|
|
1991
|
-
[
|
|
1992
|
-
[
|
|
1859
|
+
className: clsx13(style_module_default11.label, {
|
|
1860
|
+
[style_module_default11["label-in"]]: labelType === "in",
|
|
1861
|
+
[style_module_default11["label-out"]]: !label || labelType === "out",
|
|
1862
|
+
[style_module_default11["label-visually-hidden"]]: labelType === "visually-hidden"
|
|
1993
1863
|
}),
|
|
1994
1864
|
size: label?.type === "out" ? "s" : void 0,
|
|
1995
1865
|
htmlFor: id,
|
|
1996
1866
|
children: labelText
|
|
1997
1867
|
}
|
|
1998
1868
|
),
|
|
1999
|
-
/* @__PURE__ */
|
|
2000
|
-
textfieldValue && !disabled && /* @__PURE__ */
|
|
1869
|
+
/* @__PURE__ */ jsxs7("div", { className: style_module_default11["input-action-buttons"], children: [
|
|
1870
|
+
textfieldValue && !disabled && /* @__PURE__ */ jsx16(
|
|
2001
1871
|
IconButton,
|
|
2002
1872
|
{
|
|
2003
1873
|
tabIndex: -1,
|
|
2004
|
-
className:
|
|
1874
|
+
className: style_module_default11["action-button"],
|
|
2005
1875
|
level: "secondary",
|
|
2006
|
-
fill: false,
|
|
2007
1876
|
icon: {
|
|
2008
1877
|
icon: IconCloseFill2,
|
|
2009
1878
|
size: "s",
|
|
@@ -2015,13 +1884,12 @@ var Textfield = forwardRef14((props, ref) => {
|
|
|
2015
1884
|
}
|
|
2016
1885
|
}
|
|
2017
1886
|
),
|
|
2018
|
-
isPassword && !disabled && /* @__PURE__ */
|
|
1887
|
+
isPassword && !disabled && /* @__PURE__ */ jsx16(
|
|
2019
1888
|
IconButton,
|
|
2020
1889
|
{
|
|
2021
1890
|
tabIndex: -1,
|
|
2022
|
-
className:
|
|
1891
|
+
className: style_module_default11["action-button"],
|
|
2023
1892
|
level: "secondary",
|
|
2024
|
-
fill: false,
|
|
2025
1893
|
icon: {
|
|
2026
1894
|
icon: deidentifiy ? IconVisibilityOff : IconVisibility,
|
|
2027
1895
|
size: "s",
|
|
@@ -2033,27 +1901,27 @@ var Textfield = forwardRef14((props, ref) => {
|
|
|
2033
1901
|
}
|
|
2034
1902
|
}
|
|
2035
1903
|
),
|
|
2036
|
-
buttonProps && /* @__PURE__ */
|
|
1904
|
+
buttonProps && /* @__PURE__ */ jsx16(Button, { ...buttonProps, size: "m", type: "button" })
|
|
2037
1905
|
] })
|
|
2038
1906
|
] })
|
|
2039
1907
|
}
|
|
2040
1908
|
),
|
|
2041
|
-
displayFooter && /* @__PURE__ */
|
|
2042
|
-
/* @__PURE__ */
|
|
2043
|
-
/* @__PURE__ */
|
|
2044
|
-
/* @__PURE__ */
|
|
1909
|
+
displayFooter && /* @__PURE__ */ jsxs7("div", { className: style_module_default11.footer, children: [
|
|
1910
|
+
/* @__PURE__ */ jsx16("div", { className: style_module_default11["error-wrapper"], children: error && /* @__PURE__ */ jsxs7(Fragment6, { children: [
|
|
1911
|
+
/* @__PURE__ */ jsx16(IconExclamationmarkFill, { fill: true, thick: true, size: "xs", type: "function-label-negative" }),
|
|
1912
|
+
/* @__PURE__ */ jsx16(
|
|
2045
1913
|
Caption,
|
|
2046
1914
|
{
|
|
2047
1915
|
size: 3,
|
|
2048
1916
|
type: "normal",
|
|
2049
1917
|
weight: "regular",
|
|
2050
1918
|
color: "function-label-negative",
|
|
2051
|
-
className:
|
|
1919
|
+
className: style_module_default11["error-message"],
|
|
2052
1920
|
children: error
|
|
2053
1921
|
}
|
|
2054
1922
|
)
|
|
2055
1923
|
] }) }),
|
|
2056
|
-
maxCharacter && /* @__PURE__ */
|
|
1924
|
+
maxCharacter && /* @__PURE__ */ jsxs7(Caption, { className: style_module_default11.character, size: 3, type: "normal", weight: "regular", children: [
|
|
2057
1925
|
isControlled ? controlledValue.length : value.length,
|
|
2058
1926
|
"/",
|
|
2059
1927
|
maxCharacter
|
|
@@ -2068,7 +1936,7 @@ import { Select as SelectPrimitive } from "radix-ui";
|
|
|
2068
1936
|
import { ScrollArea } from "radix-ui";
|
|
2069
1937
|
|
|
2070
1938
|
// src/components/Select/style.module.scss
|
|
2071
|
-
var
|
|
1939
|
+
var style_module_default12 = {
|
|
2072
1940
|
"label-container": "_label-container_c4pnp_101",
|
|
2073
1941
|
"select-label": "_select-label_c4pnp_107",
|
|
2074
1942
|
"trigger": "_trigger_c4pnp_112",
|
|
@@ -2096,17 +1964,17 @@ var style_module_default13 = {
|
|
|
2096
1964
|
// src/components/Select/index.tsx
|
|
2097
1965
|
import { IconCheckMark as IconCheckMark2, IconDropDown } from "@liner-fe/icon";
|
|
2098
1966
|
import {
|
|
2099
|
-
forwardRef as
|
|
1967
|
+
forwardRef as forwardRef14,
|
|
2100
1968
|
useEffect as useEffect2,
|
|
2101
1969
|
useState as useState3
|
|
2102
1970
|
} from "react";
|
|
2103
|
-
import
|
|
2104
|
-
import { jsx as
|
|
2105
|
-
var Badge = /* @__PURE__ */ __name(({ children }) => /* @__PURE__ */
|
|
2106
|
-
var SelectContent =
|
|
1971
|
+
import clsx14 from "clsx";
|
|
1972
|
+
import { jsx as jsx17, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1973
|
+
var Badge = /* @__PURE__ */ __name(({ children }) => /* @__PURE__ */ jsx17("div", { className: style_module_default12.badgeContainer, children: /* @__PURE__ */ jsx17(Caption, { className: style_module_default12.badge, size: 2, type: "normal", weight: "medium", children }) }), "Badge");
|
|
1974
|
+
var SelectContent = forwardRef14(
|
|
2107
1975
|
(props, ref) => {
|
|
2108
1976
|
const { id, isResponsive, popSide, sideOffset, listLabel, children, container } = props;
|
|
2109
|
-
return /* @__PURE__ */
|
|
1977
|
+
return /* @__PURE__ */ jsx17(SelectPrimitive.Portal, { container, children: /* @__PURE__ */ jsx17(
|
|
2110
1978
|
SelectPrimitive.Content,
|
|
2111
1979
|
{
|
|
2112
1980
|
id: `select-content-${id}`,
|
|
@@ -2121,24 +1989,24 @@ var SelectContent = forwardRef15(
|
|
|
2121
1989
|
e.stopPropagation();
|
|
2122
1990
|
};
|
|
2123
1991
|
},
|
|
2124
|
-
className:
|
|
2125
|
-
[
|
|
1992
|
+
className: clsx14(style_module_default12["desktop-content"], {
|
|
1993
|
+
[style_module_default12["responsive"]]: isResponsive
|
|
2126
1994
|
}),
|
|
2127
1995
|
position: "popper",
|
|
2128
1996
|
side: popSide,
|
|
2129
1997
|
sideOffset,
|
|
2130
1998
|
avoidCollisions: false,
|
|
2131
|
-
children: /* @__PURE__ */
|
|
2132
|
-
/* @__PURE__ */
|
|
1999
|
+
children: /* @__PURE__ */ jsxs8(ScrollArea.Root, { className: style_module_default12.scrollAreaRoot, type: "always", children: [
|
|
2000
|
+
/* @__PURE__ */ jsx17(SelectPrimitive.Viewport, { asChild: true, children: /* @__PURE__ */ jsx17(
|
|
2133
2001
|
ScrollArea.Viewport,
|
|
2134
2002
|
{
|
|
2135
|
-
className:
|
|
2003
|
+
className: style_module_default12.scrollAreaViewport,
|
|
2136
2004
|
style: { maxHeight: "268px", overflowY: "auto" },
|
|
2137
|
-
children: /* @__PURE__ */
|
|
2138
|
-
listLabel && /* @__PURE__ */
|
|
2005
|
+
children: /* @__PURE__ */ jsxs8(SelectPrimitive.Group, { children: [
|
|
2006
|
+
listLabel && /* @__PURE__ */ jsx17(SelectPrimitive.Label, { asChild: true, children: /* @__PURE__ */ jsx17(
|
|
2139
2007
|
Label,
|
|
2140
2008
|
{
|
|
2141
|
-
className:
|
|
2009
|
+
className: style_module_default12["desktop-label"],
|
|
2142
2010
|
level: "secondary",
|
|
2143
2011
|
size: "m",
|
|
2144
2012
|
offset: "low",
|
|
@@ -2149,13 +2017,13 @@ var SelectContent = forwardRef15(
|
|
|
2149
2017
|
] })
|
|
2150
2018
|
}
|
|
2151
2019
|
) }),
|
|
2152
|
-
/* @__PURE__ */
|
|
2020
|
+
/* @__PURE__ */ jsx17(ScrollArea.Scrollbar, { className: style_module_default12.scrollAreaScrollbar, orientation: "vertical", children: /* @__PURE__ */ jsx17(ScrollArea.Thumb, { className: style_module_default12.scrollAreaThumb }) })
|
|
2153
2021
|
] })
|
|
2154
2022
|
}
|
|
2155
2023
|
) });
|
|
2156
2024
|
}
|
|
2157
2025
|
);
|
|
2158
|
-
var SelectRoot =
|
|
2026
|
+
var SelectRoot = forwardRef14(
|
|
2159
2027
|
(props, ref) => {
|
|
2160
2028
|
const {
|
|
2161
2029
|
id,
|
|
@@ -2179,12 +2047,12 @@ var SelectRoot = forwardRef15(
|
|
|
2179
2047
|
useEffect2(() => {
|
|
2180
2048
|
setIsOpen(open);
|
|
2181
2049
|
}, [open]);
|
|
2182
|
-
return /* @__PURE__ */
|
|
2183
|
-
/* @__PURE__ */
|
|
2184
|
-
/* @__PURE__ */
|
|
2050
|
+
return /* @__PURE__ */ jsxs8("div", { children: [
|
|
2051
|
+
/* @__PURE__ */ jsxs8("div", { className: style_module_default12["label-container"], children: [
|
|
2052
|
+
/* @__PURE__ */ jsx17(
|
|
2185
2053
|
Label,
|
|
2186
2054
|
{
|
|
2187
|
-
className:
|
|
2055
|
+
className: style_module_default12["select-label"],
|
|
2188
2056
|
level: "secondary",
|
|
2189
2057
|
size: "m",
|
|
2190
2058
|
offset: "low",
|
|
@@ -2192,9 +2060,9 @@ var SelectRoot = forwardRef15(
|
|
|
2192
2060
|
children: label
|
|
2193
2061
|
}
|
|
2194
2062
|
),
|
|
2195
|
-
badge && /* @__PURE__ */
|
|
2063
|
+
badge && /* @__PURE__ */ jsx17(Badge, { children: badge })
|
|
2196
2064
|
] }),
|
|
2197
|
-
/* @__PURE__ */
|
|
2065
|
+
/* @__PURE__ */ jsxs8(
|
|
2198
2066
|
SelectPrimitive.Root,
|
|
2199
2067
|
{
|
|
2200
2068
|
...rest,
|
|
@@ -2204,21 +2072,21 @@ var SelectRoot = forwardRef15(
|
|
|
2204
2072
|
setIsOpen(open2);
|
|
2205
2073
|
},
|
|
2206
2074
|
children: [
|
|
2207
|
-
/* @__PURE__ */
|
|
2208
|
-
/* @__PURE__ */
|
|
2209
|
-
/* @__PURE__ */
|
|
2075
|
+
/* @__PURE__ */ jsxs8(SelectPrimitive.Trigger, { className: style_module_default12.trigger, ref, id, children: [
|
|
2076
|
+
/* @__PURE__ */ jsx17(SelectPrimitive.Value, { className: style_module_default12.placeholder, placeholder }),
|
|
2077
|
+
/* @__PURE__ */ jsx17(SelectPrimitive.Icon, { className: style_module_default12.openIcon, children: /* @__PURE__ */ jsx17(IconDropDown, { fill: true, thick: true, size: "xs" }) })
|
|
2210
2078
|
] }),
|
|
2211
|
-
/* @__PURE__ */
|
|
2079
|
+
/* @__PURE__ */ jsx17(SelectContent, { ...contentProps })
|
|
2212
2080
|
]
|
|
2213
2081
|
}
|
|
2214
2082
|
)
|
|
2215
2083
|
] });
|
|
2216
2084
|
}
|
|
2217
2085
|
);
|
|
2218
|
-
var SelectItem = /* @__PURE__ */ __name(({ value, text, disabled, icon, onClick }) => /* @__PURE__ */
|
|
2086
|
+
var SelectItem = /* @__PURE__ */ __name(({ value, text, disabled, icon, onClick }) => /* @__PURE__ */ jsxs8(
|
|
2219
2087
|
SelectPrimitive.Item,
|
|
2220
2088
|
{
|
|
2221
|
-
className:
|
|
2089
|
+
className: style_module_default12.item,
|
|
2222
2090
|
value,
|
|
2223
2091
|
disabled,
|
|
2224
2092
|
onClick: (e) => {
|
|
@@ -2226,9 +2094,9 @@ var SelectItem = /* @__PURE__ */ __name(({ value, text, disabled, icon, onClick
|
|
|
2226
2094
|
onClick?.();
|
|
2227
2095
|
},
|
|
2228
2096
|
children: [
|
|
2229
|
-
/* @__PURE__ */
|
|
2230
|
-
icon && /* @__PURE__ */
|
|
2231
|
-
/* @__PURE__ */
|
|
2097
|
+
/* @__PURE__ */ jsx17(SelectPrimitive.ItemText, { children: /* @__PURE__ */ jsx17(Paragraph, { size: 3, type: "normal", weight: "medium", children: text ?? value }) }),
|
|
2098
|
+
icon && /* @__PURE__ */ jsx17(SelectPrimitive.Icon, { className: style_module_default12.icon, children: /* @__PURE__ */ jsx17(icon.icon, { size: "xs", ...icon }) }),
|
|
2099
|
+
/* @__PURE__ */ jsx17(SelectPrimitive.ItemIndicator, { className: style_module_default12.itemIndicator, children: /* @__PURE__ */ jsx17(IconCheckMark2, { thick: true, size: "xs", type: "brand-label-primary" }) })
|
|
2232
2100
|
]
|
|
2233
2101
|
}
|
|
2234
2102
|
), "SelectItem");
|
|
@@ -2237,7 +2105,7 @@ var Select = Object.assign(SelectRoot, {
|
|
|
2237
2105
|
});
|
|
2238
2106
|
|
|
2239
2107
|
// src/components/List/style.module.scss
|
|
2240
|
-
var
|
|
2108
|
+
var style_module_default13 = {
|
|
2241
2109
|
"list": "_list_1ki30_1",
|
|
2242
2110
|
"item": "_item_1ki30_8",
|
|
2243
2111
|
"icon": "_icon_1ki30_42"
|
|
@@ -2249,11 +2117,11 @@ import { useState as useState4 } from "react";
|
|
|
2249
2117
|
|
|
2250
2118
|
// src/hooks/collection.tsx
|
|
2251
2119
|
import { createContext, useContext, useMemo } from "react";
|
|
2252
|
-
import { jsx as
|
|
2120
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
2253
2121
|
var CollectionContext = createContext(void 0);
|
|
2254
2122
|
var CollectionProvider = /* @__PURE__ */ __name(({ value, onChangeValue, children }) => {
|
|
2255
2123
|
const contextValue = useMemo(() => ({ value, onChangeValue }), [value, onChangeValue]);
|
|
2256
|
-
return /* @__PURE__ */
|
|
2124
|
+
return /* @__PURE__ */ jsx18(CollectionContext.Provider, { value: contextValue, children });
|
|
2257
2125
|
}, "CollectionProvider");
|
|
2258
2126
|
var useCollectionContext = /* @__PURE__ */ __name(() => {
|
|
2259
2127
|
const context = useContext(CollectionContext);
|
|
@@ -2264,10 +2132,10 @@ var useCollectionContext = /* @__PURE__ */ __name(() => {
|
|
|
2264
2132
|
}, "useCollectionContext");
|
|
2265
2133
|
|
|
2266
2134
|
// src/components/List/index.tsx
|
|
2267
|
-
import
|
|
2268
|
-
import { jsx as
|
|
2135
|
+
import clsx15 from "clsx";
|
|
2136
|
+
import { jsx as jsx19, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
2269
2137
|
var ListRoot = /* @__PURE__ */ __name(({ children, className, ...props }) => {
|
|
2270
|
-
return /* @__PURE__ */
|
|
2138
|
+
return /* @__PURE__ */ jsx19(CollectionProvider, { ...props, children: /* @__PURE__ */ jsx19("ul", { className: clsx15(style_module_default13.list, className), children }) });
|
|
2271
2139
|
}, "ListRoot");
|
|
2272
2140
|
var Item = /* @__PURE__ */ __name(({ value, text, disabled, icon, onClick }) => {
|
|
2273
2141
|
const [isFocused, setIsFocused] = useState4(false);
|
|
@@ -2275,17 +2143,17 @@ var Item = /* @__PURE__ */ __name(({ value, text, disabled, icon, onClick }) =>
|
|
|
2275
2143
|
const isSelected = contextValue === value;
|
|
2276
2144
|
const renderIcon = /* @__PURE__ */ __name(() => {
|
|
2277
2145
|
if (isSelected) {
|
|
2278
|
-
return /* @__PURE__ */
|
|
2146
|
+
return /* @__PURE__ */ jsx19(IconCheckMark3, { type: "brand-label-primary", thick: true });
|
|
2279
2147
|
}
|
|
2280
2148
|
if (icon) {
|
|
2281
|
-
return /* @__PURE__ */
|
|
2149
|
+
return /* @__PURE__ */ jsx19(icon.icon, { className: style_module_default13.icon, size: "xs", ...icon });
|
|
2282
2150
|
}
|
|
2283
2151
|
return null;
|
|
2284
2152
|
}, "renderIcon");
|
|
2285
|
-
return /* @__PURE__ */
|
|
2153
|
+
return /* @__PURE__ */ jsxs9(
|
|
2286
2154
|
"li",
|
|
2287
2155
|
{
|
|
2288
|
-
className:
|
|
2156
|
+
className: style_module_default13.item,
|
|
2289
2157
|
value,
|
|
2290
2158
|
"aria-disabled": disabled || void 0,
|
|
2291
2159
|
"data-disabled": disabled ? "" : void 0,
|
|
@@ -2300,7 +2168,7 @@ var Item = /* @__PURE__ */ __name(({ value, text, disabled, icon, onClick }) =>
|
|
|
2300
2168
|
onChangeValue?.(value);
|
|
2301
2169
|
},
|
|
2302
2170
|
children: [
|
|
2303
|
-
/* @__PURE__ */
|
|
2171
|
+
/* @__PURE__ */ jsx19(Paragraph, { size: 3, type: "normal", weight: "medium", children: text }),
|
|
2304
2172
|
renderIcon()
|
|
2305
2173
|
]
|
|
2306
2174
|
}
|
|
@@ -2309,7 +2177,7 @@ var Item = /* @__PURE__ */ __name(({ value, text, disabled, icon, onClick }) =>
|
|
|
2309
2177
|
var List = Object.assign(ListRoot, { Item });
|
|
2310
2178
|
|
|
2311
2179
|
// src/components/Snackbar/style.module.scss
|
|
2312
|
-
var
|
|
2180
|
+
var style_module_default14 = {
|
|
2313
2181
|
"Viewport": "_Viewport_1q9l5_1",
|
|
2314
2182
|
"ViewportRight": "_ViewportRight_1q9l5_21",
|
|
2315
2183
|
"ViewportLeft": "_ViewportLeft_1q9l5_25",
|
|
@@ -2355,32 +2223,32 @@ var useSnackbar = /* @__PURE__ */ __name(() => {
|
|
|
2355
2223
|
}, "useSnackbar");
|
|
2356
2224
|
|
|
2357
2225
|
// src/components/Snackbar/SnackbarIcon/style.module.scss
|
|
2358
|
-
var
|
|
2226
|
+
var style_module_default15 = {
|
|
2359
2227
|
"container": "_container_1witc_1"
|
|
2360
2228
|
};
|
|
2361
2229
|
|
|
2362
2230
|
// src/components/Snackbar/SnackbarIcon/index.tsx
|
|
2363
|
-
import { jsx as
|
|
2231
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
2364
2232
|
var SnackbarIcon = /* @__PURE__ */ __name((props) => {
|
|
2365
2233
|
const { icon } = props;
|
|
2366
2234
|
if (!icon) return null;
|
|
2367
|
-
return /* @__PURE__ */
|
|
2235
|
+
return /* @__PURE__ */ jsx20(icon.icon, { ...icon, size: "m", className: style_module_default15.container });
|
|
2368
2236
|
}, "SnackbarIcon");
|
|
2369
2237
|
|
|
2370
2238
|
// src/components/Snackbar/index.tsx
|
|
2371
2239
|
import { IconArrowForward } from "@liner-fe/icon";
|
|
2372
2240
|
|
|
2373
2241
|
// src/components/Snackbar/SnackbarTitle/index.tsx
|
|
2374
|
-
import { jsx as
|
|
2375
|
-
var SnackbarTitle = /* @__PURE__ */ __name(({ title }) => /* @__PURE__ */
|
|
2242
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
2243
|
+
var SnackbarTitle = /* @__PURE__ */ __name(({ title }) => /* @__PURE__ */ jsx21(Paragraph, { type: "normal", weight: "medium", size: 3, color: "inverse-label-static-primary", children: title }), "SnackbarTitle");
|
|
2376
2244
|
|
|
2377
2245
|
// src/components/Snackbar/SnackbarDescription/index.tsx
|
|
2378
|
-
import { jsx as
|
|
2246
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
2379
2247
|
var SnackbarDescription = /* @__PURE__ */ __name(({ description }) => {
|
|
2380
2248
|
if (!description) {
|
|
2381
2249
|
return null;
|
|
2382
2250
|
}
|
|
2383
|
-
return /* @__PURE__ */
|
|
2251
|
+
return /* @__PURE__ */ jsx22(Paragraph, { type: "normal", weight: "regular", size: 4, color: "inverse-label-static-secondary", children: description });
|
|
2384
2252
|
}, "SnackbarDescription");
|
|
2385
2253
|
|
|
2386
2254
|
// src/components/Snackbar/index.tsx
|
|
@@ -2388,9 +2256,9 @@ import clsx18 from "clsx";
|
|
|
2388
2256
|
|
|
2389
2257
|
// src/components/Snackbar/SnackbarClose/index.tsx
|
|
2390
2258
|
import { IconCloseFill as IconCloseFill3 } from "@liner-fe/icon";
|
|
2391
|
-
import { jsx as
|
|
2259
|
+
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
2392
2260
|
var SnackbarClose = /* @__PURE__ */ __name(({ onCloseSnackbar, className }) => {
|
|
2393
|
-
return /* @__PURE__ */
|
|
2261
|
+
return /* @__PURE__ */ jsx23("div", { className, children: /* @__PURE__ */ jsx23(
|
|
2394
2262
|
IconButton,
|
|
2395
2263
|
{
|
|
2396
2264
|
icon: {
|
|
@@ -2408,6 +2276,113 @@ var SnackbarClose = /* @__PURE__ */ __name(({ onCloseSnackbar, className }) => {
|
|
|
2408
2276
|
) });
|
|
2409
2277
|
}, "SnackbarClose");
|
|
2410
2278
|
|
|
2279
|
+
// src/components/TextButton/index.tsx
|
|
2280
|
+
import { cva as cva8 } from "cva";
|
|
2281
|
+
|
|
2282
|
+
// src/components/TextButton/style.module.scss
|
|
2283
|
+
var style_module_default16 = {
|
|
2284
|
+
"button": "_button_zsyf9_1",
|
|
2285
|
+
"text": "_text_zsyf9_20",
|
|
2286
|
+
"primary": "_primary_zsyf9_23",
|
|
2287
|
+
"secondary": "_secondary_zsyf9_29",
|
|
2288
|
+
"tertiary": "_tertiary_zsyf9_35",
|
|
2289
|
+
"m": "_m_zsyf9_42",
|
|
2290
|
+
"text-children": "_text-children_zsyf9_42",
|
|
2291
|
+
"s": "_s_zsyf9_29",
|
|
2292
|
+
"xs": "_xs_zsyf9_50",
|
|
2293
|
+
"underline": "_underline_zsyf9_54"
|
|
2294
|
+
};
|
|
2295
|
+
|
|
2296
|
+
// src/components/TextButton/index.tsx
|
|
2297
|
+
import { Children as Children2, cloneElement as cloneElement2, forwardRef as forwardRef15 } from "react";
|
|
2298
|
+
import clsx16 from "clsx";
|
|
2299
|
+
import { classNames } from "@liner-fe/design-token";
|
|
2300
|
+
import { jsx as jsx24, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
2301
|
+
var TEXT_LEVEL_OPTIONS = ["primary", "secondary", "tertiary"];
|
|
2302
|
+
var TEXT_SIZE_OPTIONS = ["m", "s", "xs"];
|
|
2303
|
+
var textButtonSizeIconSizeMap = {
|
|
2304
|
+
m: "s",
|
|
2305
|
+
s: "xs",
|
|
2306
|
+
xs: "xs"
|
|
2307
|
+
};
|
|
2308
|
+
var textButtonLevelIconTypeMap = {
|
|
2309
|
+
enabled: {
|
|
2310
|
+
primary: "brand-label-primary",
|
|
2311
|
+
secondary: "neutral-label-primary",
|
|
2312
|
+
tertiary: "neutral-label-secondary"
|
|
2313
|
+
},
|
|
2314
|
+
disabled: {
|
|
2315
|
+
primary: "neutral-label-tertiary",
|
|
2316
|
+
secondary: "neutral-label-tertiary",
|
|
2317
|
+
tertiary: "neutral-label-tertiary"
|
|
2318
|
+
}
|
|
2319
|
+
};
|
|
2320
|
+
var textButtonVariants = cva8({
|
|
2321
|
+
base: [style_module_default16.button, style_module_default16.text],
|
|
2322
|
+
variants: {
|
|
2323
|
+
level: {
|
|
2324
|
+
primary: style_module_default16["primary"],
|
|
2325
|
+
secondary: style_module_default16["secondary"],
|
|
2326
|
+
tertiary: style_module_default16["tertiary"]
|
|
2327
|
+
},
|
|
2328
|
+
size: {
|
|
2329
|
+
m: [classNames.typography["lp-sys-typo-paragraph4-normal-regular"], style_module_default16.m],
|
|
2330
|
+
s: [classNames.typography["lp-sys-typo-caption1-normal-regular"], style_module_default16.s],
|
|
2331
|
+
xs: [classNames.typography["lp-sys-typo-caption2-normal-regular"], style_module_default16.xs]
|
|
2332
|
+
},
|
|
2333
|
+
underline: {
|
|
2334
|
+
true: style_module_default16.underline
|
|
2335
|
+
}
|
|
2336
|
+
}
|
|
2337
|
+
});
|
|
2338
|
+
var TextButton = forwardRef15(
|
|
2339
|
+
({
|
|
2340
|
+
level = "primary",
|
|
2341
|
+
underline = false,
|
|
2342
|
+
size = "m",
|
|
2343
|
+
asChild = false,
|
|
2344
|
+
leftIcon,
|
|
2345
|
+
rightIcon,
|
|
2346
|
+
className,
|
|
2347
|
+
children,
|
|
2348
|
+
...rest
|
|
2349
|
+
}, ref) => {
|
|
2350
|
+
const getIconProps = /* @__PURE__ */ __name((icon) => ({
|
|
2351
|
+
size: textButtonSizeIconSizeMap[size],
|
|
2352
|
+
type: textButtonLevelIconTypeMap[rest.disabled ? "disabled" : "enabled"][level],
|
|
2353
|
+
fillType: "inverse-label-primary",
|
|
2354
|
+
...icon
|
|
2355
|
+
}), "getIconProps");
|
|
2356
|
+
const renderContent = /* @__PURE__ */ __name((children2) => /* @__PURE__ */ jsxs10("span", { className: style_module_default16["text-children"], children: [
|
|
2357
|
+
leftIcon && /* @__PURE__ */ jsx24(leftIcon.icon, { ...getIconProps(leftIcon) }),
|
|
2358
|
+
/* @__PURE__ */ jsx24("p", { children: children2 }),
|
|
2359
|
+
rightIcon && /* @__PURE__ */ jsx24(rightIcon.icon, { ...getIconProps(rightIcon) })
|
|
2360
|
+
] }), "renderContent");
|
|
2361
|
+
if (asChild) {
|
|
2362
|
+
const parent = Children2.only(children);
|
|
2363
|
+
return cloneElement2(
|
|
2364
|
+
parent,
|
|
2365
|
+
{
|
|
2366
|
+
...rest,
|
|
2367
|
+
className: clsx16(textButtonVariants({ level, underline, size }), className),
|
|
2368
|
+
ref
|
|
2369
|
+
},
|
|
2370
|
+
renderContent(parent.props.children)
|
|
2371
|
+
);
|
|
2372
|
+
}
|
|
2373
|
+
return /* @__PURE__ */ jsx24(
|
|
2374
|
+
"button",
|
|
2375
|
+
{
|
|
2376
|
+
className: clsx16(textButtonVariants({ level, underline, size }), className),
|
|
2377
|
+
ref,
|
|
2378
|
+
...rest,
|
|
2379
|
+
children: renderContent(children)
|
|
2380
|
+
}
|
|
2381
|
+
);
|
|
2382
|
+
}
|
|
2383
|
+
);
|
|
2384
|
+
TextButton.displayName = "TextButton";
|
|
2385
|
+
|
|
2411
2386
|
// src/components/Snackbar/SnackbarButton/style.module.scss
|
|
2412
2387
|
var style_module_default17 = {
|
|
2413
2388
|
"Container": "_Container_4sip5_1",
|
|
@@ -2472,14 +2447,14 @@ var Snackbar = /* @__PURE__ */ __name(() => {
|
|
|
2472
2447
|
// eslint-disable-next-line react/prop-types
|
|
2473
2448
|
/* @__PURE__ */ createElement3(SingleSnackbar, { ...props, key: props.snackbarId, position: "right" })
|
|
2474
2449
|
)),
|
|
2475
|
-
/* @__PURE__ */ jsx26(Viewport2, { className: clsx18(
|
|
2450
|
+
/* @__PURE__ */ jsx26(Viewport2, { className: clsx18(style_module_default14.Viewport, style_module_default14.ViewportRight) })
|
|
2476
2451
|
] }),
|
|
2477
2452
|
/* @__PURE__ */ jsxs12(Provider2, { children: [
|
|
2478
2453
|
leftSnackbars.map((props) => (
|
|
2479
2454
|
// eslint-disable-next-line react/prop-types
|
|
2480
2455
|
/* @__PURE__ */ createElement3(SingleSnackbar, { ...props, key: props.snackbarId, position: "left" })
|
|
2481
2456
|
)),
|
|
2482
|
-
/* @__PURE__ */ jsx26(Viewport2, { className: clsx18(
|
|
2457
|
+
/* @__PURE__ */ jsx26(Viewport2, { className: clsx18(style_module_default14.Viewport, style_module_default14.ViewportLeft) })
|
|
2483
2458
|
] })
|
|
2484
2459
|
] });
|
|
2485
2460
|
}, "Snackbar");
|
|
@@ -2522,11 +2497,11 @@ var SingleSnackbar = /* @__PURE__ */ __name((props) => {
|
|
|
2522
2497
|
Root2,
|
|
2523
2498
|
{
|
|
2524
2499
|
onSwipeEnd: onCloseSnackbar,
|
|
2525
|
-
className: clsx18(
|
|
2500
|
+
className: clsx18(style_module_default14.Root, style_module_default14.NavigationWrapper),
|
|
2526
2501
|
onClick: props.onClick,
|
|
2527
2502
|
open: isOpen,
|
|
2528
2503
|
children: [
|
|
2529
|
-
/* @__PURE__ */ jsxs12("div", { className: clsx18(
|
|
2504
|
+
/* @__PURE__ */ jsxs12("div", { className: clsx18(style_module_default14.Content, style_module_default14.MarginRight12), children: [
|
|
2530
2505
|
/* @__PURE__ */ jsx26(SnackbarTitle, { title }),
|
|
2531
2506
|
/* @__PURE__ */ jsx26(SnackbarDescription, { description })
|
|
2532
2507
|
] }),
|
|
@@ -2536,11 +2511,11 @@ var SingleSnackbar = /* @__PURE__ */ __name((props) => {
|
|
|
2536
2511
|
fill: true,
|
|
2537
2512
|
thick: true,
|
|
2538
2513
|
type: "inverse-label-static-primary",
|
|
2539
|
-
className: description ?
|
|
2514
|
+
className: description ? style_module_default14.minWidth32 : style_module_default14.minWidth24,
|
|
2540
2515
|
size: description ? "l" : "m"
|
|
2541
2516
|
}
|
|
2542
2517
|
),
|
|
2543
|
-
/* @__PURE__ */ jsx26(SnackbarClose, { onCloseSnackbar, className:
|
|
2518
|
+
/* @__PURE__ */ jsx26(SnackbarClose, { onCloseSnackbar, className: style_module_default14.CloseButton })
|
|
2544
2519
|
]
|
|
2545
2520
|
}
|
|
2546
2521
|
);
|
|
@@ -2550,10 +2525,10 @@ var SingleSnackbar = /* @__PURE__ */ __name((props) => {
|
|
|
2550
2525
|
Root2,
|
|
2551
2526
|
{
|
|
2552
2527
|
onSwipeEnd: onCloseSnackbar,
|
|
2553
|
-
className: clsx18(
|
|
2528
|
+
className: clsx18(style_module_default14.Root, style_module_default14.gap300, style_module_default14.extendedContainer),
|
|
2554
2529
|
open: isOpen,
|
|
2555
2530
|
children: [
|
|
2556
|
-
/* @__PURE__ */ jsxs12("div", { className:
|
|
2531
|
+
/* @__PURE__ */ jsxs12("div", { className: style_module_default14.Content, children: [
|
|
2557
2532
|
/* @__PURE__ */ jsx26(SnackbarTitle, { title }),
|
|
2558
2533
|
/* @__PURE__ */ jsx26(SnackbarDescription, { description })
|
|
2559
2534
|
] }),
|
|
@@ -2561,25 +2536,25 @@ var SingleSnackbar = /* @__PURE__ */ __name((props) => {
|
|
|
2561
2536
|
SnackbarButton,
|
|
2562
2537
|
{
|
|
2563
2538
|
button: props.button,
|
|
2564
|
-
containerStyle:
|
|
2539
|
+
containerStyle: style_module_default14.JustifyEnd,
|
|
2565
2540
|
onCloseSnackbar
|
|
2566
2541
|
}
|
|
2567
2542
|
),
|
|
2568
|
-
/* @__PURE__ */ jsx26(SnackbarClose, { onCloseSnackbar, className:
|
|
2543
|
+
/* @__PURE__ */ jsx26(SnackbarClose, { onCloseSnackbar, className: style_module_default14.CloseButton })
|
|
2569
2544
|
]
|
|
2570
2545
|
}
|
|
2571
2546
|
);
|
|
2572
2547
|
}
|
|
2573
|
-
return /* @__PURE__ */ jsxs12(Root2, { onSwipeEnd: onCloseSnackbar, className: clsx18(
|
|
2574
|
-
/* @__PURE__ */ jsxs12("div", { className:
|
|
2548
|
+
return /* @__PURE__ */ jsxs12(Root2, { onSwipeEnd: onCloseSnackbar, className: clsx18(style_module_default14.Root, style_module_default14.Wrapper), open: isOpen, children: [
|
|
2549
|
+
/* @__PURE__ */ jsxs12("div", { className: style_module_default14.ContentWrapper, children: [
|
|
2575
2550
|
/* @__PURE__ */ jsx26(SnackbarIcon, { icon: props.icon }),
|
|
2576
|
-
/* @__PURE__ */ jsxs12("div", { className: clsx18(
|
|
2551
|
+
/* @__PURE__ */ jsxs12("div", { className: clsx18(style_module_default14.Content, style_module_default14.MarginRight12), children: [
|
|
2577
2552
|
/* @__PURE__ */ jsx26(SnackbarTitle, { title }),
|
|
2578
2553
|
/* @__PURE__ */ jsx26(SnackbarDescription, { description })
|
|
2579
2554
|
] })
|
|
2580
2555
|
] }),
|
|
2581
2556
|
/* @__PURE__ */ jsx26(SnackbarButton, { button: props.button, onCloseSnackbar }),
|
|
2582
|
-
/* @__PURE__ */ jsx26(SnackbarClose, { onCloseSnackbar, className:
|
|
2557
|
+
/* @__PURE__ */ jsx26(SnackbarClose, { onCloseSnackbar, className: style_module_default14.CloseButton })
|
|
2583
2558
|
] });
|
|
2584
2559
|
}, "SingleSnackbar");
|
|
2585
2560
|
|
|
@@ -3409,14 +3384,7 @@ var CompactCoachMarkContent = forwardRef18(
|
|
|
3409
3384
|
onMouseLeave: () => setIsHover(false),
|
|
3410
3385
|
...props,
|
|
3411
3386
|
children: [
|
|
3412
|
-
tag && /* @__PURE__ */ jsx30(
|
|
3413
|
-
Tag,
|
|
3414
|
-
{
|
|
3415
|
-
color: level === "inverse" ? "neutral-label-primary" : "neutral-label-static-primary",
|
|
3416
|
-
backgroundColor: level === "inverse" ? "neutral-container-lowest" : "neutral-container-static-lowest",
|
|
3417
|
-
children: tag
|
|
3418
|
-
}
|
|
3419
|
-
),
|
|
3387
|
+
tag && /* @__PURE__ */ jsx30(Tag, { color: "neutral-label-primary", backgroundColor: "neutral-container-lowest", children: tag }),
|
|
3420
3388
|
/* @__PURE__ */ jsx30(
|
|
3421
3389
|
Caption,
|
|
3422
3390
|
{
|
|
@@ -3532,9 +3500,8 @@ var CoachMarkContent = forwardRef19(
|
|
|
3532
3500
|
IconButton,
|
|
3533
3501
|
{
|
|
3534
3502
|
icon: { icon: IconClose },
|
|
3535
|
-
size: "
|
|
3536
|
-
level:
|
|
3537
|
-
fill: false,
|
|
3503
|
+
size: "s",
|
|
3504
|
+
level: "inverse-static",
|
|
3538
3505
|
className: style_module_default21.closeButton,
|
|
3539
3506
|
onClick: onClose
|
|
3540
3507
|
}
|
|
@@ -3546,8 +3513,8 @@ var CoachMarkContent = forwardRef19(
|
|
|
3546
3513
|
tag && /* @__PURE__ */ jsx31(
|
|
3547
3514
|
Tag,
|
|
3548
3515
|
{
|
|
3549
|
-
color:
|
|
3550
|
-
backgroundColor:
|
|
3516
|
+
color: "neutral-label-static-primary",
|
|
3517
|
+
backgroundColor: "neutral-container-static-lowest",
|
|
3551
3518
|
children: tag
|
|
3552
3519
|
}
|
|
3553
3520
|
),
|
|
@@ -3557,7 +3524,7 @@ var CoachMarkContent = forwardRef19(
|
|
|
3557
3524
|
size: "xs",
|
|
3558
3525
|
thick: icon.thick,
|
|
3559
3526
|
fill: icon.fill,
|
|
3560
|
-
type:
|
|
3527
|
+
type: "inverse-label-static-primary"
|
|
3561
3528
|
}
|
|
3562
3529
|
),
|
|
3563
3530
|
title && /* @__PURE__ */ jsx31(
|
|
@@ -3566,7 +3533,7 @@ var CoachMarkContent = forwardRef19(
|
|
|
3566
3533
|
size: 4,
|
|
3567
3534
|
type: "normal",
|
|
3568
3535
|
weight: "bold",
|
|
3569
|
-
color:
|
|
3536
|
+
color: "inverse-label-static-primary",
|
|
3570
3537
|
children: title
|
|
3571
3538
|
}
|
|
3572
3539
|
)
|
|
@@ -3587,7 +3554,7 @@ var CoachMarkContent = forwardRef19(
|
|
|
3587
3554
|
size: 2,
|
|
3588
3555
|
type: "normal",
|
|
3589
3556
|
weight: "regular",
|
|
3590
|
-
color:
|
|
3557
|
+
color: "inverse-label-static-secondary",
|
|
3591
3558
|
className: style_module_default21.description,
|
|
3592
3559
|
children: description
|
|
3593
3560
|
}
|
|
@@ -3595,29 +3562,13 @@ var CoachMarkContent = forwardRef19(
|
|
|
3595
3562
|
] })
|
|
3596
3563
|
] }),
|
|
3597
3564
|
/* @__PURE__ */ jsxs16("footer", { className: style_module_default21.footer, children: [
|
|
3598
|
-
step ? /* @__PURE__ */ jsxs16(
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
weight: "regular",
|
|
3604
|
-
color: level === "inverse" ? "inverse-label-secondary" : "inverse-label-static-secondary",
|
|
3605
|
-
children: [
|
|
3606
|
-
step.current,
|
|
3607
|
-
" / ",
|
|
3608
|
-
step.total
|
|
3609
|
-
]
|
|
3610
|
-
}
|
|
3611
|
-
) : /* @__PURE__ */ jsx31("div", { className: style_module_default21.empty }),
|
|
3565
|
+
step ? /* @__PURE__ */ jsxs16(Caption, { size: 2, type: "normal", weight: "regular", color: "inverse-label-static-secondary", children: [
|
|
3566
|
+
step.current,
|
|
3567
|
+
" / ",
|
|
3568
|
+
step.total
|
|
3569
|
+
] }) : /* @__PURE__ */ jsx31("div", { className: style_module_default21.empty }),
|
|
3612
3570
|
/* @__PURE__ */ jsxs16("div", { className: style_module_default21.buttonGroup, children: [
|
|
3613
|
-
secondaryButton && /* @__PURE__ */ jsx31(
|
|
3614
|
-
TextButton,
|
|
3615
|
-
{
|
|
3616
|
-
size: "s",
|
|
3617
|
-
level: level === "inverse" ? "inverse" : "inverse-static",
|
|
3618
|
-
...secondaryButton
|
|
3619
|
-
}
|
|
3620
|
-
),
|
|
3571
|
+
secondaryButton && /* @__PURE__ */ jsx31(Button, { size: "s", level: "inverse-static", ...secondaryButton }),
|
|
3621
3572
|
primaryButton && /* @__PURE__ */ jsx31(Button, { size: "s", level: coachMarkLevelButtonLevelMap[level], ...primaryButton })
|
|
3622
3573
|
] })
|
|
3623
3574
|
] })
|
|
@@ -3636,9 +3587,13 @@ export {
|
|
|
3636
3587
|
Checkbox,
|
|
3637
3588
|
CoachMark,
|
|
3638
3589
|
CompactCoachMark,
|
|
3590
|
+
DEFAULT_LEVEL_OPTIONS,
|
|
3591
|
+
DEFAULT_SIZE_OPTIONS,
|
|
3639
3592
|
DefaultButton,
|
|
3640
3593
|
Display,
|
|
3641
3594
|
Heading,
|
|
3595
|
+
ICON_LEVEL_OPTIONS,
|
|
3596
|
+
ICON_SIZE_OPTIONS,
|
|
3642
3597
|
IconButton,
|
|
3643
3598
|
Label,
|
|
3644
3599
|
List,
|
|
@@ -3653,6 +3608,8 @@ export {
|
|
|
3653
3608
|
Select,
|
|
3654
3609
|
SingleSnackbar,
|
|
3655
3610
|
Snackbar,
|
|
3611
|
+
TEXT_LEVEL_OPTIONS,
|
|
3612
|
+
TEXT_SIZE_OPTIONS,
|
|
3656
3613
|
Tag,
|
|
3657
3614
|
TextButton,
|
|
3658
3615
|
Textfield,
|