@liner-fe/prism 1.12.3 → 1.12.5
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/assets/index.d.ts +2 -0
- package/lib/components/Icon/index.d.ts +2 -0
- package/lib/index.css +110 -85
- package/lib/index.css.map +2 -2
- package/lib/index.mjs +264 -115
- package/lib/index.mjs.map +4 -4
- package/lib/type/index.d.ts +1 -1
- package/lib/utils/object.d.ts +1 -1
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -5956,6 +5956,118 @@ var ICArrowDropDown = /* @__PURE__ */ __name((props) => {
|
|
|
5956
5956
|
return /* @__PURE__ */ jsx127(Fragment2, {});
|
|
5957
5957
|
}, "ICArrowDropDown");
|
|
5958
5958
|
|
|
5959
|
+
// src/assets/bell.tsx
|
|
5960
|
+
import { jsx as jsx128, jsxs as jsxs91 } from "react/jsx-runtime";
|
|
5961
|
+
var ICBell = /* @__PURE__ */ __name((props) => {
|
|
5962
|
+
const { thick = false, fill = false, size = 32, color = "#1E1E1F" } = props;
|
|
5963
|
+
if (thick) {
|
|
5964
|
+
return /* @__PURE__ */ jsxs91("svg", { ...props, width: size, height: size, viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
5965
|
+
/* @__PURE__ */ jsx128(
|
|
5966
|
+
"path",
|
|
5967
|
+
{
|
|
5968
|
+
"fill-rule": "evenodd",
|
|
5969
|
+
"clip-rule": "evenodd",
|
|
5970
|
+
d: "M27 7C27 5.34315 25.6569 4 24 4C22.3431 4 21 5.34315 21 7V7.35005C15.2666 8.71286 11 13.8957 11 20.0813V30L7.82996 34.6984C6.71794 35.9958 7.63976 38 9.34847 38H38.6516C40.3603 38 41.2821 35.9958 40.1701 34.6984L37 30V20.0813C37 13.8957 32.7334 8.71282 27 7.35003V7ZM15 20.0813C15 15.0423 19.0529 11 24 11C28.9471 11 33 15.0423 33 20.0813V31.2232L34.8735 34H13.1265L15 31.2232V20.0813Z",
|
|
5971
|
+
fill: color
|
|
5972
|
+
}
|
|
5973
|
+
),
|
|
5974
|
+
/* @__PURE__ */ jsx128("path", { d: "M28 40H20C20 42.2091 21.7909 44 24 44C26.2091 44 28 42.2091 28 40Z", fill: color })
|
|
5975
|
+
] });
|
|
5976
|
+
}
|
|
5977
|
+
if (fill) {
|
|
5978
|
+
return /* @__PURE__ */ jsxs91("svg", { ...props, width: size, height: size, viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
5979
|
+
/* @__PURE__ */ jsx128(
|
|
5980
|
+
"path",
|
|
5981
|
+
{
|
|
5982
|
+
d: "M27 7C27 5.34315 25.6569 4 24 4C22.3431 4 21 5.34315 21 7V7.35005C15.2666 8.71286 11 13.8957 11 20.0813V30L7.82996 34.6984C6.71794 35.9958 7.63976 38 9.34847 38H38.6516C40.3603 38 41.2821 35.9958 40.1701 34.6984L37 30V20.0813C37 13.8957 32.7334 8.71282 27 7.35003V7Z",
|
|
5983
|
+
fill: color
|
|
5984
|
+
}
|
|
5985
|
+
),
|
|
5986
|
+
/* @__PURE__ */ jsx128("path", { d: "M28 40H20C20 42.2091 21.7909 44 24 44C26.2091 44 28 42.2091 28 40Z", fill: color })
|
|
5987
|
+
] });
|
|
5988
|
+
}
|
|
5989
|
+
return /* @__PURE__ */ jsxs91("svg", { ...props, width: size, height: size, viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
5990
|
+
/* @__PURE__ */ jsx128(
|
|
5991
|
+
"path",
|
|
5992
|
+
{
|
|
5993
|
+
"fill-rule": "evenodd",
|
|
5994
|
+
"clip-rule": "evenodd",
|
|
5995
|
+
d: "M27 7C27 5.34315 25.6569 4 24 4C22.3431 4 21 5.34315 21 7V7.35005C15.2666 8.71286 11 13.8957 11 20.0813V30L7.82996 34.6984C6.71794 35.9958 7.63976 38 9.34847 38H38.6516C40.3603 38 41.2821 35.9958 40.1701 34.6984L37 30V20.0813C37 13.8957 32.7334 8.71282 27 7.35003V7ZM34 20.0813V30.9174L36.7546 35H11.2455L14 30.9174V20.0813C14 14.4959 18.4948 10 24 10C29.5053 10 34 14.4959 34 20.0813Z",
|
|
5996
|
+
fill: color
|
|
5997
|
+
}
|
|
5998
|
+
),
|
|
5999
|
+
/* @__PURE__ */ jsx128("path", { d: "M28 40H20C20 42.2091 21.7909 44 24 44C26.2091 44 28 42.2091 28 40Z", fill: color })
|
|
6000
|
+
] });
|
|
6001
|
+
}, "ICBell");
|
|
6002
|
+
|
|
6003
|
+
// src/assets/secret-mode.tsx
|
|
6004
|
+
import { jsx as jsx129, jsxs as jsxs92 } from "react/jsx-runtime";
|
|
6005
|
+
var ICSecretMode = /* @__PURE__ */ __name((props) => {
|
|
6006
|
+
const { thick = false, fill = false, size = 32, color = "#1E1E1F" } = props;
|
|
6007
|
+
if (thick) {
|
|
6008
|
+
return /* @__PURE__ */ jsxs92("svg", { ...props, width: size, height: size, viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
6009
|
+
/* @__PURE__ */ jsx129(
|
|
6010
|
+
"path",
|
|
6011
|
+
{
|
|
6012
|
+
"fill-rule": "evenodd",
|
|
6013
|
+
"clip-rule": "evenodd",
|
|
6014
|
+
d: "M26.7522 5.82644C28.7965 4.33614 31.6935 5.09416 32.746 7.39474L38.1985 19.3138C39.9664 18.9653 41.7247 18.5512 43.4697 18.0713L44.5303 21.9281C40.4688 23.045 36.3389 23.8244 32.1819 24.2661C26.9324 24.877 21.6312 24.8962 16.3784 24.3236C12.0323 23.8937 7.71369 23.0952 3.46973 21.9281L4.53035 18.0713C6.2903 18.5553 8.06379 18.9724 9.84708 19.3227L15.2544 7.40979C16.3021 5.10175 19.2049 4.33765 21.2531 5.83078L23.9997 7.83301L26.7522 5.82644ZM31.7394 20.2906C26.7714 20.8172 21.7627 20.8353 16.7919 20.3449C15.8411 20.241 14.8921 20.1165 13.9454 19.9715L18.8968 9.06308L23.9997 12.7831L29.1085 9.05873L34.101 19.9721C33.3153 20.0924 32.5279 20.1986 31.7394 20.2906Z",
|
|
6015
|
+
fill: color
|
|
6016
|
+
}
|
|
6017
|
+
),
|
|
6018
|
+
/* @__PURE__ */ jsx129(
|
|
6019
|
+
"path",
|
|
6020
|
+
{
|
|
6021
|
+
"fill-rule": "evenodd",
|
|
6022
|
+
"clip-rule": "evenodd",
|
|
6023
|
+
d: "M22.4332 35.2272C21.9199 39.2522 18.4821 42.3636 14.3176 42.3636C9.79887 42.3636 6.13574 38.7005 6.13574 34.1818C6.13574 29.6631 9.79887 26 14.3176 26C17.795 26 20.7657 28.1694 21.9502 31.2287C23.3588 30.9283 24.8182 30.9412 26.2225 31.2674C27.5065 28.429 30.3631 26.4541 33.681 26.4541C38.1997 26.4541 41.8628 30.1172 41.8628 34.6359C41.8628 39.1546 38.1997 42.8177 33.681 42.8177C29.3568 42.8177 25.8161 39.4632 25.5193 35.2145C24.5088 34.9413 23.4419 34.9455 22.4332 35.2272ZM14.3176 38.3636C16.6271 38.3636 18.4994 36.4914 18.4994 34.1818C18.4994 31.8723 16.6271 30 14.3176 30C12.008 30 10.1357 31.8723 10.1357 34.1818C10.1357 36.4914 12.008 38.3636 14.3176 38.3636ZM33.681 38.8177C35.9905 38.8177 37.8628 36.9455 37.8628 34.6359C37.8628 32.3264 35.9905 30.4541 33.681 30.4541C31.3714 30.4541 29.4991 32.3264 29.4991 34.6359C29.4991 36.9455 31.3714 38.8177 33.681 38.8177Z",
|
|
6024
|
+
fill: color
|
|
6025
|
+
}
|
|
6026
|
+
)
|
|
6027
|
+
] });
|
|
6028
|
+
}
|
|
6029
|
+
if (fill) {
|
|
6030
|
+
return /* @__PURE__ */ jsxs92("svg", { ...props, width: size, height: size, viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
6031
|
+
/* @__PURE__ */ jsx129(
|
|
6032
|
+
"path",
|
|
6033
|
+
{
|
|
6034
|
+
d: "M26.7522 5.82644C28.7966 4.33614 31.6936 5.09416 32.746 7.39473L38.1985 19.3138C39.9665 18.9653 41.7248 18.5512 43.4697 18.0713L44.5303 21.9281C40.469 23.045 36.3392 23.8243 32.1825 24.266C26.9329 24.877 21.6317 24.8962 16.3789 24.3236C12.0326 23.8937 7.71385 23.0952 3.46973 21.9281L4.53035 18.0713C6.29032 18.5553 8.06382 18.9724 9.84712 19.3227L15.2545 7.40979C16.3021 5.10175 19.2049 4.33765 21.2531 5.83078L23.9997 7.83301L26.7522 5.82644Z",
|
|
6035
|
+
fill: color
|
|
6036
|
+
}
|
|
6037
|
+
),
|
|
6038
|
+
/* @__PURE__ */ jsx129(
|
|
6039
|
+
"path",
|
|
6040
|
+
{
|
|
6041
|
+
"fill-rule": "evenodd",
|
|
6042
|
+
"clip-rule": "evenodd",
|
|
6043
|
+
d: "M22.4332 35.2272C21.9199 39.2522 18.4821 42.3636 14.3176 42.3636C9.79887 42.3636 6.13574 38.7005 6.13574 34.1818C6.13574 29.6631 9.79887 26 14.3176 26C17.795 26 20.7657 28.1694 21.9502 31.2287C23.3588 30.9283 24.8182 30.9412 26.2225 31.2674C27.5065 28.429 30.3631 26.4541 33.681 26.4541C38.1997 26.4541 41.8628 30.1172 41.8628 34.6359C41.8628 39.1546 38.1997 42.8177 33.681 42.8177C29.3568 42.8177 25.8161 39.4632 25.5193 35.2145C24.5088 34.9413 23.4419 34.9455 22.4332 35.2272ZM14.3176 38.3636C16.6271 38.3636 18.4994 36.4914 18.4994 34.1818C18.4994 31.8723 16.6271 30 14.3176 30C12.008 30 10.1357 31.8723 10.1357 34.1818C10.1357 36.4914 12.008 38.3636 14.3176 38.3636ZM33.681 38.8177C35.9905 38.8177 37.8628 36.9455 37.8628 34.6359C37.8628 32.3264 35.9905 30.4541 33.681 30.4541C31.3714 30.4541 29.4991 32.3264 29.4991 34.6359C29.4991 36.9455 31.3714 38.8177 33.681 38.8177Z",
|
|
6044
|
+
fill: color
|
|
6045
|
+
}
|
|
6046
|
+
)
|
|
6047
|
+
] });
|
|
6048
|
+
}
|
|
6049
|
+
return /* @__PURE__ */ jsxs92("svg", { ...props, width: size, height: size, viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
6050
|
+
/* @__PURE__ */ jsx129(
|
|
6051
|
+
"path",
|
|
6052
|
+
{
|
|
6053
|
+
"fill-rule": "evenodd",
|
|
6054
|
+
"clip-rule": "evenodd",
|
|
6055
|
+
d: "M37.9077 19.8799L32.2913 7.6026C31.3704 5.58959 28.8355 4.92632 27.0468 6.23033L23.9997 8.45163L20.9586 6.23468C19.1664 4.92818 16.6264 5.59677 15.7097 7.61632L10.1391 19.8889C8.21278 19.5212 6.29744 19.0761 4.39776 18.5537L3.60229 21.4463C7.83456 22.6102 12.1415 23.4051 16.4758 23.8311C21.6631 24.3933 26.8976 24.3743 32.0817 23.7742C36.2278 23.3363 40.347 22.5603 44.3978 21.4463L43.6023 18.5537C41.718 19.0719 39.8183 19.514 37.9077 19.8799ZM29.5632 8.85059C29.4317 8.56302 29.0695 8.46827 28.814 8.65456L23.9997 12.1642L19.1913 8.6589C18.9353 8.47226 18.5725 8.56777 18.4415 8.85628L13.2187 20.3626C14.4037 20.5561 15.5926 20.7175 16.7841 20.8469C21.7617 21.3351 26.7768 21.3169 31.7517 20.7924C32.7801 20.6731 33.8063 20.53 34.8297 20.3629L29.5632 8.85059Z",
|
|
6056
|
+
fill: color
|
|
6057
|
+
}
|
|
6058
|
+
),
|
|
6059
|
+
/* @__PURE__ */ jsx129(
|
|
6060
|
+
"path",
|
|
6061
|
+
{
|
|
6062
|
+
"fill-rule": "evenodd",
|
|
6063
|
+
"clip-rule": "evenodd",
|
|
6064
|
+
d: "M22.4834 34.697C22.2176 38.9757 18.6632 42.3636 14.3176 42.3636C9.79887 42.3636 6.13574 38.7005 6.13574 34.1818C6.13574 29.6631 9.79887 26 14.3176 26C17.9727 26 21.068 28.3968 22.1176 31.7045C23.4078 31.4387 24.7412 31.4492 26.028 31.7359C27.1985 28.6487 30.1834 26.4541 33.681 26.4541C38.1997 26.4541 41.8628 30.1172 41.8628 34.6359C41.8628 39.1546 38.1997 42.8177 33.681 42.8177C29.1813 42.8177 25.5301 39.1855 25.4993 34.6931C24.5088 34.4513 23.4734 34.4526 22.4834 34.697ZM14.3176 39.3636C17.1794 39.3636 19.4994 37.0437 19.4994 34.1818C19.4994 31.32 17.1794 29 14.3176 29C11.4557 29 9.13574 31.32 9.13574 34.1818C9.13574 37.0437 11.4557 39.3636 14.3176 39.3636ZM33.681 39.8177C36.5428 39.8177 38.8628 37.4978 38.8628 34.6359C38.8628 31.7741 36.5428 29.4541 33.681 29.4541C30.8191 29.4541 28.4991 31.7741 28.4991 34.6359C28.4991 37.4978 30.8191 39.8177 33.681 39.8177Z",
|
|
6065
|
+
fill: color
|
|
6066
|
+
}
|
|
6067
|
+
)
|
|
6068
|
+
] });
|
|
6069
|
+
}, "ICSecretMode");
|
|
6070
|
+
|
|
5959
6071
|
// src/utils/icon.ts
|
|
5960
6072
|
var iconMap = {
|
|
5961
6073
|
"close-fill": ICCloseFill,
|
|
@@ -6084,14 +6196,19 @@ var iconMap = {
|
|
|
6084
6196
|
timer: ICTimer,
|
|
6085
6197
|
"play-button": ICPlayButton,
|
|
6086
6198
|
"text-select": ICTextSelect,
|
|
6087
|
-
"arrow-drop-down": ICArrowDropDown
|
|
6199
|
+
"arrow-drop-down": ICArrowDropDown,
|
|
6200
|
+
bell: ICBell,
|
|
6201
|
+
"secret-mode": ICSecretMode
|
|
6088
6202
|
};
|
|
6089
6203
|
|
|
6090
6204
|
// src/utils/object.ts
|
|
6091
6205
|
var objectToArray = /* @__PURE__ */ __name((obj) => {
|
|
6092
6206
|
return Object.entries(obj);
|
|
6093
6207
|
}, "objectToArray");
|
|
6094
|
-
var arrayToStyleObject = /* @__PURE__ */ __name((colorKeys2, style) => colorKeys2.reduce(
|
|
6208
|
+
var arrayToStyleObject = /* @__PURE__ */ __name((colorKeys2, style, prefix) => colorKeys2.reduce(
|
|
6209
|
+
(acc, value) => ({ ...acc, [value]: prefix ? style[`${prefix}-${value}`] : style[value] }),
|
|
6210
|
+
{}
|
|
6211
|
+
), "arrayToStyleObject");
|
|
6095
6212
|
|
|
6096
6213
|
// src/components/Button/index.tsx
|
|
6097
6214
|
import { Children, cloneElement, forwardRef } from "react";
|
|
@@ -6138,33 +6255,55 @@ import clsx from "clsx";
|
|
|
6138
6255
|
|
|
6139
6256
|
// src/components/Icon/style.module.scss
|
|
6140
6257
|
var style_module_default2 = {
|
|
6141
|
-
"icon": "
|
|
6142
|
-
"neutral-label-primary": "_neutral-label-
|
|
6143
|
-
"neutral-label-secondary": "_neutral-label-
|
|
6144
|
-
"neutral-label-tertiary": "_neutral-label-
|
|
6145
|
-
"neutral-label-quaternary": "_neutral-label-
|
|
6146
|
-
"neutral-label-static-primary": "_neutral-label-static-
|
|
6147
|
-
"neutral-label-static-secondary": "_neutral-label-static-
|
|
6148
|
-
"inverse-label-primary": "_inverse-label-
|
|
6149
|
-
"inverse-label-secondary": "_inverse-label-
|
|
6150
|
-
"inverse-label-tertiary": "_inverse-label-
|
|
6151
|
-
"inverse-label-quaternary": "_inverse-label-
|
|
6152
|
-
"inverse-label-static-primary": "_inverse-label-static-
|
|
6153
|
-
"inverse-label-static-secondary": "_inverse-label-static-
|
|
6154
|
-
"brand-label-primary": "_brand-label-
|
|
6155
|
-
"brand-label-secondary": "_brand-label-
|
|
6156
|
-
"function-label-positive": "_function-label-
|
|
6157
|
-
"function-label-negative": "_function-label-
|
|
6158
|
-
"function-label-caution": "_function-label-
|
|
6159
|
-
"accent-yellow": "_accent-
|
|
6160
|
-
"accent-mint": "_accent-
|
|
6161
|
-
"accent-cyan": "_accent-
|
|
6162
|
-
"accent-purple": "_accent-
|
|
6163
|
-
"accent-pink": "_accent-
|
|
6258
|
+
"icon": "_icon_8x0ip_1",
|
|
6259
|
+
"neutral-label-primary": "_neutral-label-primary_8x0ip_8",
|
|
6260
|
+
"neutral-label-secondary": "_neutral-label-secondary_8x0ip_13",
|
|
6261
|
+
"neutral-label-tertiary": "_neutral-label-tertiary_8x0ip_18",
|
|
6262
|
+
"neutral-label-quaternary": "_neutral-label-quaternary_8x0ip_23",
|
|
6263
|
+
"neutral-label-static-primary": "_neutral-label-static-primary_8x0ip_28",
|
|
6264
|
+
"neutral-label-static-secondary": "_neutral-label-static-secondary_8x0ip_33",
|
|
6265
|
+
"inverse-label-primary": "_inverse-label-primary_8x0ip_38",
|
|
6266
|
+
"inverse-label-secondary": "_inverse-label-secondary_8x0ip_43",
|
|
6267
|
+
"inverse-label-tertiary": "_inverse-label-tertiary_8x0ip_48",
|
|
6268
|
+
"inverse-label-quaternary": "_inverse-label-quaternary_8x0ip_53",
|
|
6269
|
+
"inverse-label-static-primary": "_inverse-label-static-primary_8x0ip_58",
|
|
6270
|
+
"inverse-label-static-secondary": "_inverse-label-static-secondary_8x0ip_63",
|
|
6271
|
+
"brand-label-primary": "_brand-label-primary_8x0ip_68",
|
|
6272
|
+
"brand-label-secondary": "_brand-label-secondary_8x0ip_73",
|
|
6273
|
+
"function-label-positive": "_function-label-positive_8x0ip_78",
|
|
6274
|
+
"function-label-negative": "_function-label-negative_8x0ip_83",
|
|
6275
|
+
"function-label-caution": "_function-label-caution_8x0ip_88",
|
|
6276
|
+
"accent-yellow": "_accent-yellow_8x0ip_93",
|
|
6277
|
+
"accent-mint": "_accent-mint_8x0ip_98",
|
|
6278
|
+
"accent-cyan": "_accent-cyan_8x0ip_103",
|
|
6279
|
+
"accent-purple": "_accent-purple_8x0ip_108",
|
|
6280
|
+
"accent-pink": "_accent-pink_8x0ip_113",
|
|
6281
|
+
"fill-neutral-label-primary": "_fill-neutral-label-primary_8x0ip_118",
|
|
6282
|
+
"fill-neutral-label-secondary": "_fill-neutral-label-secondary_8x0ip_122",
|
|
6283
|
+
"fill-neutral-label-tertiary": "_fill-neutral-label-tertiary_8x0ip_126",
|
|
6284
|
+
"fill-neutral-label-quaternary": "_fill-neutral-label-quaternary_8x0ip_130",
|
|
6285
|
+
"fill-neutral-label-static-primary": "_fill-neutral-label-static-primary_8x0ip_134",
|
|
6286
|
+
"fill-neutral-label-static-secondary": "_fill-neutral-label-static-secondary_8x0ip_138",
|
|
6287
|
+
"fill-inverse-label-primary": "_fill-inverse-label-primary_8x0ip_142",
|
|
6288
|
+
"fill-inverse-label-secondary": "_fill-inverse-label-secondary_8x0ip_146",
|
|
6289
|
+
"fill-inverse-label-tertiary": "_fill-inverse-label-tertiary_8x0ip_150",
|
|
6290
|
+
"fill-inverse-label-quaternary": "_fill-inverse-label-quaternary_8x0ip_154",
|
|
6291
|
+
"fill-inverse-label-static-primary": "_fill-inverse-label-static-primary_8x0ip_158",
|
|
6292
|
+
"fill-inverse-label-static-secondary": "_fill-inverse-label-static-secondary_8x0ip_162",
|
|
6293
|
+
"fill-brand-label-primary": "_fill-brand-label-primary_8x0ip_166",
|
|
6294
|
+
"fill-brand-label-secondary": "_fill-brand-label-secondary_8x0ip_170",
|
|
6295
|
+
"fill-function-label-positive": "_fill-function-label-positive_8x0ip_174",
|
|
6296
|
+
"fill-function-label-negative": "_fill-function-label-negative_8x0ip_178",
|
|
6297
|
+
"fill-function-label-caution": "_fill-function-label-caution_8x0ip_182",
|
|
6298
|
+
"fill-accent-yellow": "_fill-accent-yellow_8x0ip_186",
|
|
6299
|
+
"fill-accent-mint": "_fill-accent-mint_8x0ip_190",
|
|
6300
|
+
"fill-accent-cyan": "_fill-accent-cyan_8x0ip_194",
|
|
6301
|
+
"fill-accent-purple": "_fill-accent-purple_8x0ip_198",
|
|
6302
|
+
"fill-accent-pink": "_fill-accent-pink_8x0ip_202"
|
|
6164
6303
|
};
|
|
6165
6304
|
|
|
6166
6305
|
// src/components/Icon/index.tsx
|
|
6167
|
-
import { jsx as
|
|
6306
|
+
import { jsx as jsx130 } from "react/jsx-runtime";
|
|
6168
6307
|
var iconSizeMap = {
|
|
6169
6308
|
xs: 16,
|
|
6170
6309
|
s: 20,
|
|
@@ -6199,19 +6338,29 @@ var colorKeys = [
|
|
|
6199
6338
|
];
|
|
6200
6339
|
var iconVariants = cva(style_module_default2.icon, {
|
|
6201
6340
|
variants: {
|
|
6202
|
-
type: arrayToStyleObject(colorKeys, style_module_default2)
|
|
6341
|
+
type: arrayToStyleObject(colorKeys, style_module_default2),
|
|
6342
|
+
fillType: arrayToStyleObject(colorKeys, style_module_default2, "fill")
|
|
6203
6343
|
}
|
|
6204
6344
|
});
|
|
6205
6345
|
var getIconComponent = /* @__PURE__ */ __name((iconKey, map) => map[iconKey], "getIconComponent");
|
|
6206
6346
|
var Icon = /* @__PURE__ */ __name((props) => {
|
|
6207
|
-
const {
|
|
6347
|
+
const {
|
|
6348
|
+
name,
|
|
6349
|
+
type = "neutral-label-primary",
|
|
6350
|
+
fillType,
|
|
6351
|
+
size = "m",
|
|
6352
|
+
thick = false,
|
|
6353
|
+
fill = false,
|
|
6354
|
+
className,
|
|
6355
|
+
...rest
|
|
6356
|
+
} = props;
|
|
6208
6357
|
const IconComponent = getIconComponent(name, iconMap);
|
|
6209
6358
|
const iconSize = iconSizeMap[size];
|
|
6210
|
-
return /* @__PURE__ */
|
|
6359
|
+
return /* @__PURE__ */ jsx130(
|
|
6211
6360
|
IconComponent,
|
|
6212
6361
|
{
|
|
6213
6362
|
...rest,
|
|
6214
|
-
className: clsx(iconVariants({ type }), className),
|
|
6363
|
+
className: clsx(iconVariants({ type, fillType }), className),
|
|
6215
6364
|
size: iconSize,
|
|
6216
6365
|
thick,
|
|
6217
6366
|
fill
|
|
@@ -6220,7 +6369,7 @@ var Icon = /* @__PURE__ */ __name((props) => {
|
|
|
6220
6369
|
}, "Icon");
|
|
6221
6370
|
|
|
6222
6371
|
// src/components/Button/index.tsx
|
|
6223
|
-
import { jsx as
|
|
6372
|
+
import { jsx as jsx131, jsxs as jsxs93 } from "react/jsx-runtime";
|
|
6224
6373
|
var buttonIconSizeMap = {
|
|
6225
6374
|
cta: "m",
|
|
6226
6375
|
l: "s",
|
|
@@ -6307,22 +6456,22 @@ var DefaultButton = forwardRef(
|
|
|
6307
6456
|
className: clsx2(defaultButtonVariants({ level, fill, align, size, width }), className),
|
|
6308
6457
|
ref
|
|
6309
6458
|
},
|
|
6310
|
-
/* @__PURE__ */
|
|
6311
|
-
!!leftIcon && /* @__PURE__ */
|
|
6312
|
-
/* @__PURE__ */
|
|
6313
|
-
!!rightIcon && /* @__PURE__ */
|
|
6459
|
+
/* @__PURE__ */ jsxs93("span", { className: clsx2(defaultButtonChildrenVariants({ size })), children: [
|
|
6460
|
+
!!leftIcon && /* @__PURE__ */ jsx131(Icon, { name: leftIcon.name, size: buttonIconSizeMap[size], thick: buttonSizeIconThickMap[size] }),
|
|
6461
|
+
/* @__PURE__ */ jsx131("p", { className: style_module_default.content, children: newChildren }),
|
|
6462
|
+
!!rightIcon && /* @__PURE__ */ jsx131(Icon, { name: rightIcon.name, size: buttonIconSizeMap[size], thick: buttonSizeIconThickMap[size] })
|
|
6314
6463
|
] })
|
|
6315
6464
|
);
|
|
6316
6465
|
return ParentClone;
|
|
6317
6466
|
}
|
|
6318
|
-
return /* @__PURE__ */
|
|
6467
|
+
return /* @__PURE__ */ jsx131(
|
|
6319
6468
|
"button",
|
|
6320
6469
|
{
|
|
6321
6470
|
...rest,
|
|
6322
6471
|
className: clsx2(defaultButtonVariants({ level, fill, align, size, width }), className),
|
|
6323
6472
|
ref,
|
|
6324
|
-
children: /* @__PURE__ */
|
|
6325
|
-
!!leftIcon && /* @__PURE__ */
|
|
6473
|
+
children: /* @__PURE__ */ jsxs93("span", { className: clsx2(defaultButtonChildrenVariants({ size })), children: [
|
|
6474
|
+
!!leftIcon && /* @__PURE__ */ jsx131(
|
|
6326
6475
|
Icon,
|
|
6327
6476
|
{
|
|
6328
6477
|
name: leftIcon.name,
|
|
@@ -6331,8 +6480,8 @@ var DefaultButton = forwardRef(
|
|
|
6331
6480
|
fill: leftIcon.fill
|
|
6332
6481
|
}
|
|
6333
6482
|
),
|
|
6334
|
-
/* @__PURE__ */
|
|
6335
|
-
!!rightIcon && /* @__PURE__ */
|
|
6483
|
+
/* @__PURE__ */ jsx131("p", { className: style_module_default.content, children }),
|
|
6484
|
+
!!rightIcon && /* @__PURE__ */ jsx131(
|
|
6336
6485
|
Icon,
|
|
6337
6486
|
{
|
|
6338
6487
|
name: rightIcon.name,
|
|
@@ -6349,16 +6498,16 @@ var DefaultButton = forwardRef(
|
|
|
6349
6498
|
var TextButton = forwardRef(
|
|
6350
6499
|
({ level = "inverse-primary", asChild = false, className, ...rest }, ref) => {
|
|
6351
6500
|
const Component = asChild ? Slot : "button";
|
|
6352
|
-
return /* @__PURE__ */
|
|
6501
|
+
return /* @__PURE__ */ jsx131(Component, { ...rest, className: clsx2(textButtonVariants({ level }), className), ref });
|
|
6353
6502
|
}
|
|
6354
6503
|
);
|
|
6355
6504
|
var Button = forwardRef((props, ref) => {
|
|
6356
6505
|
switch (props.as) {
|
|
6357
6506
|
case "default":
|
|
6358
6507
|
case void 0:
|
|
6359
|
-
return /* @__PURE__ */
|
|
6508
|
+
return /* @__PURE__ */ jsx131(DefaultButton, { ...props, ref });
|
|
6360
6509
|
case "text":
|
|
6361
|
-
return /* @__PURE__ */
|
|
6510
|
+
return /* @__PURE__ */ jsx131(TextButton, { ...props, ref });
|
|
6362
6511
|
}
|
|
6363
6512
|
});
|
|
6364
6513
|
|
|
@@ -6443,7 +6592,7 @@ var colorVariants = cva3(style_module_default4.typography, {
|
|
|
6443
6592
|
});
|
|
6444
6593
|
|
|
6445
6594
|
// src/components/Typography/Paragraph.tsx
|
|
6446
|
-
import { jsx as
|
|
6595
|
+
import { jsx as jsx132 } from "react/jsx-runtime";
|
|
6447
6596
|
var Paragraph = /* @__PURE__ */ __name(({
|
|
6448
6597
|
size,
|
|
6449
6598
|
type,
|
|
@@ -6453,7 +6602,7 @@ var Paragraph = /* @__PURE__ */ __name(({
|
|
|
6453
6602
|
color = "neutral-label-primary",
|
|
6454
6603
|
...rest
|
|
6455
6604
|
}) => {
|
|
6456
|
-
return /* @__PURE__ */
|
|
6605
|
+
return /* @__PURE__ */ jsx132(
|
|
6457
6606
|
"p",
|
|
6458
6607
|
{
|
|
6459
6608
|
...rest,
|
|
@@ -6465,13 +6614,13 @@ var Paragraph = /* @__PURE__ */ __name(({
|
|
|
6465
6614
|
|
|
6466
6615
|
// src/components/Toast/index.tsx
|
|
6467
6616
|
import { useRecoilValue, useSetRecoilState as useSetRecoilState2 } from "recoil";
|
|
6468
|
-
import { jsx as
|
|
6617
|
+
import { jsx as jsx133, jsxs as jsxs94 } from "react/jsx-runtime";
|
|
6469
6618
|
import { createElement } from "react";
|
|
6470
6619
|
var Toaster = /* @__PURE__ */ __name(() => {
|
|
6471
6620
|
const { list } = useRecoilValue(toastAtom);
|
|
6472
|
-
return /* @__PURE__ */
|
|
6621
|
+
return /* @__PURE__ */ jsxs94(Provider, { children: [
|
|
6473
6622
|
list.map((props) => /* @__PURE__ */ createElement(SingleToast, { ...props, key: props.toastId })),
|
|
6474
|
-
/* @__PURE__ */
|
|
6623
|
+
/* @__PURE__ */ jsx133(Viewport, { className: style_module_default3.ToastViewport })
|
|
6475
6624
|
] });
|
|
6476
6625
|
}, "Toaster");
|
|
6477
6626
|
var SingleToast = /* @__PURE__ */ __name((props) => {
|
|
@@ -6500,10 +6649,10 @@ var SingleToast = /* @__PURE__ */ __name((props) => {
|
|
|
6500
6649
|
clearTimeout(timerRef.current);
|
|
6501
6650
|
};
|
|
6502
6651
|
}, []);
|
|
6503
|
-
return /* @__PURE__ */
|
|
6504
|
-
icon && /* @__PURE__ */
|
|
6505
|
-
/* @__PURE__ */
|
|
6506
|
-
/* @__PURE__ */
|
|
6652
|
+
return /* @__PURE__ */ jsxs94(Root, { className: style_module_default3.ToastRoot, open: isOpen, ...props, children: [
|
|
6653
|
+
icon && /* @__PURE__ */ jsx133("i", { className: style_module_default3.Icon, children: /* @__PURE__ */ jsx133(Icon, { ...icon, size: "s" }) }),
|
|
6654
|
+
/* @__PURE__ */ jsxs94(Title, { className: style_module_default3.ToastTitle, children: [
|
|
6655
|
+
/* @__PURE__ */ jsx133(
|
|
6507
6656
|
Paragraph,
|
|
6508
6657
|
{
|
|
6509
6658
|
className: style_module_default3.TitleText,
|
|
@@ -6514,7 +6663,7 @@ var SingleToast = /* @__PURE__ */ __name((props) => {
|
|
|
6514
6663
|
children: message
|
|
6515
6664
|
}
|
|
6516
6665
|
),
|
|
6517
|
-
button && /* @__PURE__ */
|
|
6666
|
+
button && /* @__PURE__ */ jsx133(
|
|
6518
6667
|
Button,
|
|
6519
6668
|
{
|
|
6520
6669
|
onClick: () => {
|
|
@@ -6537,7 +6686,7 @@ var SingleToast = /* @__PURE__ */ __name((props) => {
|
|
|
6537
6686
|
|
|
6538
6687
|
// src/components/Typography/Heading.tsx
|
|
6539
6688
|
import clsx4 from "clsx";
|
|
6540
|
-
import { jsx as
|
|
6689
|
+
import { jsx as jsx134 } from "react/jsx-runtime";
|
|
6541
6690
|
var Heading = /* @__PURE__ */ __name(({
|
|
6542
6691
|
size,
|
|
6543
6692
|
children,
|
|
@@ -6547,7 +6696,7 @@ var Heading = /* @__PURE__ */ __name(({
|
|
|
6547
6696
|
...rest
|
|
6548
6697
|
}) => {
|
|
6549
6698
|
const Element = `h${size}`;
|
|
6550
|
-
return /* @__PURE__ */
|
|
6699
|
+
return /* @__PURE__ */ jsx134(
|
|
6551
6700
|
Element,
|
|
6552
6701
|
{
|
|
6553
6702
|
...rest,
|
|
@@ -6559,7 +6708,7 @@ var Heading = /* @__PURE__ */ __name(({
|
|
|
6559
6708
|
|
|
6560
6709
|
// src/components/Typography/Display.tsx
|
|
6561
6710
|
import clsx5 from "clsx";
|
|
6562
|
-
import { jsx as
|
|
6711
|
+
import { jsx as jsx135 } from "react/jsx-runtime";
|
|
6563
6712
|
var Display = /* @__PURE__ */ __name(({
|
|
6564
6713
|
size,
|
|
6565
6714
|
type,
|
|
@@ -6569,7 +6718,7 @@ var Display = /* @__PURE__ */ __name(({
|
|
|
6569
6718
|
color = "neutral-label-primary",
|
|
6570
6719
|
...rest
|
|
6571
6720
|
}) => {
|
|
6572
|
-
return /* @__PURE__ */
|
|
6721
|
+
return /* @__PURE__ */ jsx135(
|
|
6573
6722
|
"p",
|
|
6574
6723
|
{
|
|
6575
6724
|
...rest,
|
|
@@ -6581,7 +6730,7 @@ var Display = /* @__PURE__ */ __name(({
|
|
|
6581
6730
|
|
|
6582
6731
|
// src/components/Typography/Title.tsx
|
|
6583
6732
|
import clsx6 from "clsx";
|
|
6584
|
-
import { jsx as
|
|
6733
|
+
import { jsx as jsx136 } from "react/jsx-runtime";
|
|
6585
6734
|
var Title2 = /* @__PURE__ */ __name(({
|
|
6586
6735
|
weight,
|
|
6587
6736
|
size,
|
|
@@ -6591,7 +6740,7 @@ var Title2 = /* @__PURE__ */ __name(({
|
|
|
6591
6740
|
color = "neutral-label-primary",
|
|
6592
6741
|
...rest
|
|
6593
6742
|
}) => {
|
|
6594
|
-
return /* @__PURE__ */
|
|
6743
|
+
return /* @__PURE__ */ jsx136(
|
|
6595
6744
|
"p",
|
|
6596
6745
|
{
|
|
6597
6746
|
...rest,
|
|
@@ -6603,7 +6752,7 @@ var Title2 = /* @__PURE__ */ __name(({
|
|
|
6603
6752
|
|
|
6604
6753
|
// src/components/Typography/Caption.tsx
|
|
6605
6754
|
import clsx7 from "clsx";
|
|
6606
|
-
import { jsx as
|
|
6755
|
+
import { jsx as jsx137 } from "react/jsx-runtime";
|
|
6607
6756
|
var Caption = /* @__PURE__ */ __name(({
|
|
6608
6757
|
children,
|
|
6609
6758
|
size,
|
|
@@ -6613,7 +6762,7 @@ var Caption = /* @__PURE__ */ __name(({
|
|
|
6613
6762
|
color = "neutral-label-primary",
|
|
6614
6763
|
...rest
|
|
6615
6764
|
}) => {
|
|
6616
|
-
return /* @__PURE__ */
|
|
6765
|
+
return /* @__PURE__ */ jsx137(
|
|
6617
6766
|
"p",
|
|
6618
6767
|
{
|
|
6619
6768
|
...rest,
|
|
@@ -6651,7 +6800,7 @@ var style_module_default5 = {
|
|
|
6651
6800
|
// src/components/Popover/index.tsx
|
|
6652
6801
|
import { cva as cva4 } from "class-variance-authority";
|
|
6653
6802
|
import { clsx as clsx8 } from "clsx";
|
|
6654
|
-
import { jsx as
|
|
6803
|
+
import { jsx as jsx138, jsxs as jsxs95 } from "react/jsx-runtime";
|
|
6655
6804
|
var DEFAULT_OFFSET = -6;
|
|
6656
6805
|
var popoverVariants = cva4(style_module_default5.content, {
|
|
6657
6806
|
variants: {
|
|
@@ -6673,9 +6822,9 @@ var popoverTagVariants = cva4([style_module_default5.tag, "lp-sys-typo-caption3-
|
|
|
6673
6822
|
var popoverTitleVariants = cva4([style_module_default5.title, "lp-sys-typo-paragraph3-normal-bold"]);
|
|
6674
6823
|
var popoverDescriptionVariants = cva4([style_module_default5.description, "lp-sys-typo-caption1-normal-regular"]);
|
|
6675
6824
|
var popoverFooterVariants = cva4([style_module_default5.footer, "lp-sys-typo-caption1-normal-medium"]);
|
|
6676
|
-
var PopoverRoot = /* @__PURE__ */ __name(({ isOpen, children, onChange }) => /* @__PURE__ */
|
|
6677
|
-
var PopoverTrigger = /* @__PURE__ */ __name(({ by }) => /* @__PURE__ */
|
|
6678
|
-
var PopoverAnchor = /* @__PURE__ */ __name(({ className }) => /* @__PURE__ */
|
|
6825
|
+
var PopoverRoot = /* @__PURE__ */ __name(({ isOpen, children, onChange }) => /* @__PURE__ */ jsx138(PopoverPrimitive.Root, { open: isOpen, onOpenChange: onChange, children }), "PopoverRoot");
|
|
6826
|
+
var PopoverTrigger = /* @__PURE__ */ __name(({ by }) => /* @__PURE__ */ jsx138(PopoverPrimitive.Trigger, { asChild: true, children: by }), "PopoverTrigger");
|
|
6827
|
+
var PopoverAnchor = /* @__PURE__ */ __name(({ className }) => /* @__PURE__ */ jsx138(
|
|
6679
6828
|
"svg",
|
|
6680
6829
|
{
|
|
6681
6830
|
className,
|
|
@@ -6685,7 +6834,7 @@ var PopoverAnchor = /* @__PURE__ */ __name(({ className }) => /* @__PURE__ */ js
|
|
|
6685
6834
|
height: "10",
|
|
6686
6835
|
viewBox: "0 0 30 10",
|
|
6687
6836
|
fill: "none",
|
|
6688
|
-
children: /* @__PURE__ */
|
|
6837
|
+
children: /* @__PURE__ */ jsx138(
|
|
6689
6838
|
"path",
|
|
6690
6839
|
{
|
|
6691
6840
|
"fill-rule": "evenodd",
|
|
@@ -6710,7 +6859,7 @@ var PopoverContent = React.forwardRef(
|
|
|
6710
6859
|
onClose,
|
|
6711
6860
|
className,
|
|
6712
6861
|
...props
|
|
6713
|
-
}, ref) => /* @__PURE__ */
|
|
6862
|
+
}, ref) => /* @__PURE__ */ jsx138(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsxs95(
|
|
6714
6863
|
PopoverPrimitive.Content,
|
|
6715
6864
|
{
|
|
6716
6865
|
ref,
|
|
@@ -6720,24 +6869,24 @@ var PopoverContent = React.forwardRef(
|
|
|
6720
6869
|
className: clsx8(popoverVariants({ level }), className),
|
|
6721
6870
|
...props,
|
|
6722
6871
|
children: [
|
|
6723
|
-
/* @__PURE__ */
|
|
6724
|
-
/* @__PURE__ */
|
|
6725
|
-
tag && /* @__PURE__ */
|
|
6726
|
-
icon && /* @__PURE__ */
|
|
6727
|
-
/* @__PURE__ */
|
|
6728
|
-
/* @__PURE__ */
|
|
6872
|
+
/* @__PURE__ */ jsxs95("div", { className: style_module_default5.contentContainer, children: [
|
|
6873
|
+
/* @__PURE__ */ jsxs95("div", { className: style_module_default5.heading, children: [
|
|
6874
|
+
tag && /* @__PURE__ */ jsx138("span", { className: popoverTagVariants(), children: tag }),
|
|
6875
|
+
icon && /* @__PURE__ */ jsx138(Icon, { name: icon.name, size: "xs", thick: icon.thick, fill: icon.fill }),
|
|
6876
|
+
/* @__PURE__ */ jsx138("p", { className: popoverTitleVariants(), children: title }),
|
|
6877
|
+
/* @__PURE__ */ jsx138(
|
|
6729
6878
|
PopoverPrimitive.PopoverClose,
|
|
6730
6879
|
{
|
|
6731
6880
|
className: style_module_default5.closeButton,
|
|
6732
6881
|
onClick: () => {
|
|
6733
6882
|
onClose?.();
|
|
6734
6883
|
},
|
|
6735
|
-
children: /* @__PURE__ */
|
|
6884
|
+
children: /* @__PURE__ */ jsx138(Icon, { name: "close-fill", size: "s", fill: true, thick: true, type: "neutral-label-static-primary" })
|
|
6736
6885
|
}
|
|
6737
6886
|
)
|
|
6738
6887
|
] }),
|
|
6739
|
-
/* @__PURE__ */
|
|
6740
|
-
onConfirm && /* @__PURE__ */
|
|
6888
|
+
/* @__PURE__ */ jsx138("p", { className: popoverDescriptionVariants(), children: description }),
|
|
6889
|
+
onConfirm && /* @__PURE__ */ jsx138("div", { className: popoverFooterVariants(), children: /* @__PURE__ */ jsx138(
|
|
6741
6890
|
Button,
|
|
6742
6891
|
{
|
|
6743
6892
|
as: "text",
|
|
@@ -6749,7 +6898,7 @@ var PopoverContent = React.forwardRef(
|
|
|
6749
6898
|
}
|
|
6750
6899
|
) })
|
|
6751
6900
|
] }),
|
|
6752
|
-
/* @__PURE__ */
|
|
6901
|
+
/* @__PURE__ */ jsx138(PopoverPrimitive.Arrow, { asChild: true, children: /* @__PURE__ */ jsx138(PopoverAnchor, { className: clsx8(popoverAnchorVariants({ level })) }) })
|
|
6753
6902
|
]
|
|
6754
6903
|
}
|
|
6755
6904
|
) })
|
|
@@ -6774,14 +6923,14 @@ var style_module_default6 = {
|
|
|
6774
6923
|
// src/components/Tooltip/index.tsx
|
|
6775
6924
|
import { cva as cva5 } from "class-variance-authority";
|
|
6776
6925
|
import clsx9 from "clsx";
|
|
6777
|
-
import { jsx as
|
|
6926
|
+
import { jsx as jsx139 } from "react/jsx-runtime";
|
|
6778
6927
|
var DEFAULT_OFFSET2 = "medium";
|
|
6779
6928
|
var tooltipVariants = cva5([style_module_default6.tooltip, "lp-sys-typo-caption1-normal-medium"]);
|
|
6780
6929
|
var TooltipProvider = TooltipPrimitive.Provider;
|
|
6781
|
-
var TooltipRoot = /* @__PURE__ */ __name(({ children }) => /* @__PURE__ */
|
|
6782
|
-
var TooltipTrigger = /* @__PURE__ */ __name(({ by }) => /* @__PURE__ */
|
|
6930
|
+
var TooltipRoot = /* @__PURE__ */ __name(({ children }) => /* @__PURE__ */ jsx139(TooltipPrimitive.Root, { delayDuration: 0, children }), "TooltipRoot");
|
|
6931
|
+
var TooltipTrigger = /* @__PURE__ */ __name(({ by }) => /* @__PURE__ */ jsx139(TooltipPrimitive.Trigger, { asChild: true, children: by }), "TooltipTrigger");
|
|
6783
6932
|
var TooltipContent = forwardRef3(
|
|
6784
|
-
({ description, position = "top", className, offset = DEFAULT_OFFSET2, ...props }, ref) => /* @__PURE__ */
|
|
6933
|
+
({ description, position = "top", className, offset = DEFAULT_OFFSET2, ...props }, ref) => /* @__PURE__ */ jsx139(
|
|
6785
6934
|
TooltipPrimitive.Content,
|
|
6786
6935
|
{
|
|
6787
6936
|
ref,
|
|
@@ -6789,7 +6938,7 @@ var TooltipContent = forwardRef3(
|
|
|
6789
6938
|
sideOffset: offset === "medium" ? 4 : 8,
|
|
6790
6939
|
className: clsx9(tooltipVariants(), className),
|
|
6791
6940
|
...props,
|
|
6792
|
-
children: /* @__PURE__ */
|
|
6941
|
+
children: /* @__PURE__ */ jsx139("p", { className: style_module_default6.tooltipContent, children: description })
|
|
6793
6942
|
}
|
|
6794
6943
|
)
|
|
6795
6944
|
);
|
|
@@ -6821,7 +6970,7 @@ var style_module_default7 = {
|
|
|
6821
6970
|
|
|
6822
6971
|
// src/components/IconButton/index.tsx
|
|
6823
6972
|
import { Slot as Slot2 } from "@radix-ui/react-slot";
|
|
6824
|
-
import { jsx as
|
|
6973
|
+
import { jsx as jsx140 } from "react/jsx-runtime";
|
|
6825
6974
|
var iconButtonSizeIconSizeMap = {
|
|
6826
6975
|
l: "m",
|
|
6827
6976
|
m: "s",
|
|
@@ -6849,7 +6998,7 @@ var iconButtonVariants = cva6([style_module_default7.iconButton], {
|
|
|
6849
6998
|
var IconButton = forwardRef4(
|
|
6850
6999
|
({ asChild, level = "primary", name, thick = false, fill = false, size = "m", className, ...rest }, ref) => {
|
|
6851
7000
|
const Comp = asChild ? Slot2 : "button";
|
|
6852
|
-
return /* @__PURE__ */
|
|
7001
|
+
return /* @__PURE__ */ jsx140(Comp, { ...rest, className: clsx10(iconButtonVariants({ level, size }), className), ref, children: /* @__PURE__ */ jsx140(Icon, { name, thick, fill, size: iconButtonSizeIconSizeMap[size] }) });
|
|
6853
7002
|
}
|
|
6854
7003
|
);
|
|
6855
7004
|
|
|
@@ -6892,7 +7041,7 @@ var style_module_default9 = {
|
|
|
6892
7041
|
|
|
6893
7042
|
// src/components/_Label/index.tsx
|
|
6894
7043
|
import { cva as cva7 } from "class-variance-authority";
|
|
6895
|
-
import { jsx as
|
|
7044
|
+
import { jsx as jsx141 } from "react/jsx-runtime";
|
|
6896
7045
|
var defaultLabelVariants = cva7(["lp-sys-typo-paragraph2-normal-medium", style_module_default9.label], {
|
|
6897
7046
|
variants: {
|
|
6898
7047
|
level: {
|
|
@@ -6932,7 +7081,7 @@ var Label = forwardRef5(
|
|
|
6932
7081
|
error = false,
|
|
6933
7082
|
...props
|
|
6934
7083
|
}, ref) => {
|
|
6935
|
-
return /* @__PURE__ */
|
|
7084
|
+
return /* @__PURE__ */ jsx141(
|
|
6936
7085
|
LabelPrimitive.Root,
|
|
6937
7086
|
{
|
|
6938
7087
|
ref,
|
|
@@ -6944,17 +7093,17 @@ var Label = forwardRef5(
|
|
|
6944
7093
|
);
|
|
6945
7094
|
|
|
6946
7095
|
// src/components/CheckBox/index.tsx
|
|
6947
|
-
import { Fragment as Fragment3, jsx as
|
|
7096
|
+
import { Fragment as Fragment3, jsx as jsx142, jsxs as jsxs96 } from "react/jsx-runtime";
|
|
6948
7097
|
var Checkbox = forwardRef6(
|
|
6949
7098
|
({ className, label, description, ...props }, ref) => {
|
|
6950
|
-
const CheckboxWrapper = /* @__PURE__ */ __name(({ children }) => label ? /* @__PURE__ */
|
|
6951
|
-
/* @__PURE__ */
|
|
7099
|
+
const CheckboxWrapper = /* @__PURE__ */ __name(({ children }) => label ? /* @__PURE__ */ jsxs96(Label, { position: "right", htmlFor: props.id, children: [
|
|
7100
|
+
/* @__PURE__ */ jsxs96("div", { className: style_module_default8["label-wrapper"], children: [
|
|
6952
7101
|
label,
|
|
6953
|
-
/* @__PURE__ */
|
|
7102
|
+
/* @__PURE__ */ jsx142(Paragraph, { className: style_module_default8.description, size: 3, type: "normal", weight: "regular", children: description })
|
|
6954
7103
|
] }),
|
|
6955
7104
|
children
|
|
6956
|
-
] }) : /* @__PURE__ */
|
|
6957
|
-
return /* @__PURE__ */
|
|
7105
|
+
] }) : /* @__PURE__ */ jsx142(Fragment3, { children }), "CheckboxWrapper");
|
|
7106
|
+
return /* @__PURE__ */ jsx142(CheckboxWrapper, { children: /* @__PURE__ */ jsx142(CheckboxPrimitive.Root, { className: clsx12(style_module_default8.checkbox, className), ref, ...props, children: /* @__PURE__ */ jsx142(CheckboxPrimitive.Indicator, { className: style_module_default8["checkbox-indicator"], children: /* @__PURE__ */ jsx142(Icon, { name: "check-mark", thick: true, size: "xs", type: "inverse-label-primary" }) }) }) });
|
|
6958
7107
|
}
|
|
6959
7108
|
);
|
|
6960
7109
|
|
|
@@ -6973,19 +7122,19 @@ var style_module_default10 = {
|
|
|
6973
7122
|
};
|
|
6974
7123
|
|
|
6975
7124
|
// src/components/Radio/index.tsx
|
|
6976
|
-
import { Fragment as Fragment4, jsx as
|
|
6977
|
-
var RadioIndicator = /* @__PURE__ */ __name(() => /* @__PURE__ */
|
|
6978
|
-
var RadioRoot = forwardRef7(({ className, ...props }, ref) => /* @__PURE__ */
|
|
7125
|
+
import { Fragment as Fragment4, jsx as jsx143, jsxs as jsxs97 } from "react/jsx-runtime";
|
|
7126
|
+
var RadioIndicator = /* @__PURE__ */ __name(() => /* @__PURE__ */ jsx143("svg", { xmlns: "http://www.w3.org/2000/svg", width: "10", height: "10", viewBox: "0 0 10 10", fill: "none", children: /* @__PURE__ */ jsx143("circle", { cx: "5", cy: "5", r: "5", fill: "#313133" }) }), "RadioIndicator");
|
|
7127
|
+
var RadioRoot = forwardRef7(({ className, ...props }, ref) => /* @__PURE__ */ jsx143(RadioGroupPrimitive.Root, { className: clsx13(style_module_default10.radio, className), ...props }));
|
|
6979
7128
|
var RadioItem = forwardRef7(
|
|
6980
7129
|
({ className, label, description, ...props }, ref) => {
|
|
6981
|
-
const RadioItemWrapper = /* @__PURE__ */ __name(({ children }) => label ? /* @__PURE__ */
|
|
6982
|
-
/* @__PURE__ */
|
|
7130
|
+
const RadioItemWrapper = /* @__PURE__ */ __name(({ children }) => label ? /* @__PURE__ */ jsxs97(Label, { position: "right", htmlFor: props.id, children: [
|
|
7131
|
+
/* @__PURE__ */ jsxs97("div", { className: style_module_default10["label-wrapper"], children: [
|
|
6983
7132
|
label,
|
|
6984
|
-
/* @__PURE__ */
|
|
7133
|
+
/* @__PURE__ */ jsx143(Paragraph, { className: style_module_default10.description, size: 3, type: "normal", weight: "regular", children: description })
|
|
6985
7134
|
] }),
|
|
6986
7135
|
children
|
|
6987
|
-
] }) : /* @__PURE__ */
|
|
6988
|
-
return /* @__PURE__ */
|
|
7136
|
+
] }) : /* @__PURE__ */ jsx143(Fragment4, { children }), "RadioItemWrapper");
|
|
7137
|
+
return /* @__PURE__ */ jsx143(RadioItemWrapper, { children: /* @__PURE__ */ jsx143(RadioGroupPrimitive.Item, { ref, className: clsx13(style_module_default10["radio-item"], className), ...props, children: /* @__PURE__ */ jsx143(RadioGroupPrimitive.Indicator, { className: style_module_default10.indicator, children: /* @__PURE__ */ jsx143(RadioIndicator, {}) }) }) });
|
|
6989
7138
|
}
|
|
6990
7139
|
);
|
|
6991
7140
|
var Radio = Object.assign(RadioRoot, {
|
|
@@ -7025,7 +7174,7 @@ var style_module_default11 = {
|
|
|
7025
7174
|
// src/components/Textfield/index.tsx
|
|
7026
7175
|
import { cva as cva8 } from "class-variance-authority";
|
|
7027
7176
|
import clsx14 from "clsx";
|
|
7028
|
-
import { Fragment as Fragment5, jsx as
|
|
7177
|
+
import { Fragment as Fragment5, jsx as jsx144, jsxs as jsxs98 } from "react/jsx-runtime";
|
|
7029
7178
|
var defaultTextfieldVariants = cva8(style_module_default11.textfield);
|
|
7030
7179
|
var Textfield = forwardRef8((props, ref) => {
|
|
7031
7180
|
const {
|
|
@@ -7073,8 +7222,8 @@ var Textfield = forwardRef8((props, ref) => {
|
|
|
7073
7222
|
setDeidentifiy((prev) => !prev);
|
|
7074
7223
|
}, "handleDeidentify");
|
|
7075
7224
|
useImperativeHandle(ref, () => inputRef.current);
|
|
7076
|
-
return /* @__PURE__ */
|
|
7077
|
-
/* @__PURE__ */
|
|
7225
|
+
return /* @__PURE__ */ jsxs98("div", { className: style_module_default11["textfield-container"], children: [
|
|
7226
|
+
/* @__PURE__ */ jsx144(
|
|
7078
7227
|
"div",
|
|
7079
7228
|
{
|
|
7080
7229
|
className: clsx14(defaultTextfieldVariants(), {
|
|
@@ -7082,8 +7231,8 @@ var Textfield = forwardRef8((props, ref) => {
|
|
|
7082
7231
|
[style_module_default11["label-out-textfield"]]: labelType === "out"
|
|
7083
7232
|
}),
|
|
7084
7233
|
onClick: handleTextfieldClick,
|
|
7085
|
-
children: /* @__PURE__ */
|
|
7086
|
-
/* @__PURE__ */
|
|
7234
|
+
children: /* @__PURE__ */ jsxs98("div", { className: style_module_default11["input-wrapper"], children: [
|
|
7235
|
+
/* @__PURE__ */ jsx144(
|
|
7087
7236
|
"input",
|
|
7088
7237
|
{
|
|
7089
7238
|
className: clsx14(style_module_default11.input, {
|
|
@@ -7098,7 +7247,7 @@ var Textfield = forwardRef8((props, ref) => {
|
|
|
7098
7247
|
...rest
|
|
7099
7248
|
}
|
|
7100
7249
|
),
|
|
7101
|
-
/* @__PURE__ */
|
|
7250
|
+
/* @__PURE__ */ jsx144(
|
|
7102
7251
|
Label,
|
|
7103
7252
|
{
|
|
7104
7253
|
className: clsx14(style_module_default11.label, {
|
|
@@ -7110,8 +7259,8 @@ var Textfield = forwardRef8((props, ref) => {
|
|
|
7110
7259
|
children: labelText
|
|
7111
7260
|
}
|
|
7112
7261
|
),
|
|
7113
|
-
/* @__PURE__ */
|
|
7114
|
-
textfieldValue && /* @__PURE__ */
|
|
7262
|
+
/* @__PURE__ */ jsxs98("div", { className: style_module_default11["input-action-buttons"], children: [
|
|
7263
|
+
textfieldValue && /* @__PURE__ */ jsx144(
|
|
7115
7264
|
IconButton,
|
|
7116
7265
|
{
|
|
7117
7266
|
className: style_module_default11["action-button"],
|
|
@@ -7123,7 +7272,7 @@ var Textfield = forwardRef8((props, ref) => {
|
|
|
7123
7272
|
onClick: handleClear
|
|
7124
7273
|
}
|
|
7125
7274
|
),
|
|
7126
|
-
isPassword && /* @__PURE__ */
|
|
7275
|
+
isPassword && /* @__PURE__ */ jsx144(
|
|
7127
7276
|
IconButton,
|
|
7128
7277
|
{
|
|
7129
7278
|
className: style_module_default11["action-button"],
|
|
@@ -7135,17 +7284,17 @@ var Textfield = forwardRef8((props, ref) => {
|
|
|
7135
7284
|
onClick: handleDeidentify
|
|
7136
7285
|
}
|
|
7137
7286
|
),
|
|
7138
|
-
button && /* @__PURE__ */
|
|
7287
|
+
button && /* @__PURE__ */ jsx144(Button, { size: "m", type: "button", onClick: button.onClick, children: button.text })
|
|
7139
7288
|
] })
|
|
7140
7289
|
] })
|
|
7141
7290
|
}
|
|
7142
7291
|
),
|
|
7143
|
-
/* @__PURE__ */
|
|
7144
|
-
/* @__PURE__ */
|
|
7145
|
-
/* @__PURE__ */
|
|
7146
|
-
/* @__PURE__ */
|
|
7292
|
+
/* @__PURE__ */ jsxs98("div", { className: style_module_default11.footer, children: [
|
|
7293
|
+
/* @__PURE__ */ jsx144("div", { className: style_module_default11["error-wrapper"], children: error && /* @__PURE__ */ jsxs98(Fragment5, { children: [
|
|
7294
|
+
/* @__PURE__ */ jsx144(Icon, { className: style_module_default11["error-icon"], name: "exclamationmark-fill", fill: true, thick: true, size: "xs" }),
|
|
7295
|
+
/* @__PURE__ */ jsx144(Caption, { size: 3, type: "normal", weight: "regular", className: style_module_default11["error-message"], children: error })
|
|
7147
7296
|
] }) }),
|
|
7148
|
-
maxCharacter && /* @__PURE__ */
|
|
7297
|
+
maxCharacter && /* @__PURE__ */ jsxs98(Caption, { className: style_module_default11.character, size: 3, type: "normal", weight: "regular", children: [
|
|
7149
7298
|
isControlled ? controlledValue.length : value.length,
|
|
7150
7299
|
"/",
|
|
7151
7300
|
maxCharacter
|