@youngonesworks/ui 0.1.42 → 0.1.43
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/dist/components/accordion/AccordionWrapper.test.d.ts +1 -0
- package/dist/components/appleAppButtonIcon/appleAppButtonIcon.test.d.ts +1 -0
- package/dist/components/autoCompleteInput/autoCompleteInput.test.d.ts +1 -0
- package/dist/components/avatar/avatar.test.d.ts +1 -0
- package/dist/components/avatar/index.d.ts +1 -1
- package/dist/components/avatarIndicator/avatarIndicator.test.d.ts +1 -0
- package/dist/components/badge/badge.test.d.ts +1 -0
- package/dist/components/badge/index.d.ts +1 -1
- package/dist/components/bigBadge/bigBadge.test.d.ts +1 -0
- package/dist/components/breadCrumb/breadCrumb.test.d.ts +1 -0
- package/dist/components/checkbox/checkbox.test.d.ts +1 -0
- package/dist/components/divider/divider.test.d.ts +1 -0
- package/dist/components/filters/filters.test.d.ts +1 -0
- package/dist/components/googleAppButtonIcon/googleAppButtonIcon.test.d.ts +1 -0
- package/dist/components/hamburgerMenuButton/hamburgerMenuButton.test.d.ts +1 -0
- package/dist/components/hr/hr.test.d.ts +1 -0
- package/dist/components/island/island.test.d.ts +1 -0
- package/dist/components/label/label.test.d.ts +1 -0
- package/dist/components/loader/loader.test.d.ts +1 -0
- package/dist/components/logo/logo.test.d.ts +1 -0
- package/dist/components/modal/modal.test.d.ts +1 -0
- package/dist/components/numberField/numberField.test.d.ts +1 -0
- package/dist/components/pageUnavailable/pageUnavailable.test.d.ts +1 -0
- package/dist/components/passwordInput/passwordInput.test.d.ts +1 -0
- package/dist/components/popover/popover.test.d.ts +1 -0
- package/dist/components/progressBar/progressBar.test.d.ts +1 -0
- package/dist/components/radioButton/radioButton.test.d.ts +1 -0
- package/dist/components/rating/rating.test.d.ts +1 -0
- package/dist/components/regionSelector/regionSelector.test.d.ts +1 -0
- package/dist/components/reviews/reviews.test.d.ts +1 -0
- package/dist/components/scrollToTop/scrollToTop.test.d.ts +1 -0
- package/dist/components/searchInput/searchInput.test.d.ts +1 -0
- package/dist/components/select/select.test.d.ts +1 -0
- package/dist/components/settingsCard/settingsCard.test.d.ts +1 -0
- package/dist/components/skeleton/index.d.ts +2 -1
- package/dist/components/skeleton/skeleton.test.d.ts +1 -0
- package/dist/components/skillPill/skillPill.test.d.ts +1 -0
- package/dist/components/stickyMobileButton/stickyMobileButton.test.d.ts +1 -0
- package/dist/components/table/index.d.ts +1 -1
- package/dist/components/table/table.test.d.ts +1 -0
- package/dist/components/table/tableCell/tableCell.test.d.ts +1 -0
- package/dist/components/table/tableHeader/tableHeader.test.d.ts +1 -0
- package/dist/components/table/tableHeaderItem/index.d.ts +1 -1
- package/dist/components/table/tableHeaderItem/tableHeaderItem.test.d.ts +1 -0
- package/dist/components/table/tableHeaderRow/tableHeaderRow.test.d.ts +1 -0
- package/dist/components/table/tableRow/index.d.ts +1 -1
- package/dist/components/table/tableRow/tableRow.test.d.ts +1 -0
- package/dist/components/tabs/TabsWrapper.test.d.ts +1 -0
- package/dist/components/tabs/tabs.test.d.ts +1 -0
- package/dist/components/textArea/textArea.test.d.ts +1 -0
- package/dist/components/textInput/textInput.test.d.ts +1 -0
- package/dist/components/themeIcon/themeIcon.test.d.ts +1 -0
- package/dist/components/toggle/toggle.test.d.ts +1 -0
- package/dist/components/tooltip/tooltip.test.d.ts +1 -0
- package/dist/components/truncatedText/truncatedText.test.d.ts +1 -0
- package/dist/components/unorderedList/unorderedList.test.d.ts +1 -0
- package/dist/components/unorderedListItem/unorderedListItem.test.d.ts +1 -0
- package/dist/components/unstyledButton/unstyledButton.test.d.ts +1 -0
- package/dist/components/wysiwygEditor/wysiwygEditor.test.d.ts +1 -0
- package/dist/index.cjs +244 -131
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +244 -131
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
package/dist/index.cjs
CHANGED
|
@@ -100215,6 +100215,8 @@ const AccordionItem = ({ controlContent, panelContent, style: style$1 = "light",
|
|
|
100215
100215
|
//#endregion
|
|
100216
100216
|
//#region src/components/accordion/AccordionWrapper.tsx
|
|
100217
100217
|
const AccordionWrapper = ({ children, className }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
100218
|
+
"data-testid": "accordion-wrapper",
|
|
100219
|
+
"data-component": "accordionWrapper",
|
|
100218
100220
|
className: cn(className, "flex flex-col gap-2"),
|
|
100219
100221
|
children
|
|
100220
100222
|
});
|
|
@@ -103003,13 +103005,14 @@ Alert.displayName = "Alert";
|
|
|
103003
103005
|
const AppleAppButtonIcon = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
103004
103006
|
viewBox: "0 0 198 66",
|
|
103005
103007
|
fill: "none",
|
|
103006
|
-
"data-
|
|
103008
|
+
"data-testid": "AppleAppButtonIcon",
|
|
103007
103009
|
xmlns: "http://www.w3.org/2000/svg",
|
|
103008
103010
|
...props,
|
|
103009
103011
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("g", {
|
|
103010
103012
|
clipPath: "url(#clip0_890_9231)",
|
|
103011
103013
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("mask", {
|
|
103012
103014
|
id: "mask0_890_9231",
|
|
103015
|
+
"data-testid": "apple-icon-mask",
|
|
103013
103016
|
style: { maskType: "luminance" },
|
|
103014
103017
|
maskUnits: "userSpaceOnUse",
|
|
103015
103018
|
x: 0,
|
|
@@ -103024,10 +103027,12 @@ const AppleAppButtonIcon = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs
|
|
|
103024
103027
|
mask: "url(#mask0_890_9231)",
|
|
103025
103028
|
children: [
|
|
103026
103029
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
103030
|
+
"data-testid": "apple-icon-path-1",
|
|
103027
103031
|
d: "M181.76 0.000213943H15.7354C15.1303 0.000213943 14.5323 0.000213943 13.9288 0.00350538C13.4235 0.00679681 12.9223 0.0163585 12.4122 0.024406C11.304 0.03741 10.1984 0.13463 9.10507 0.31522C8.01324 0.499742 6.95563 0.847618 5.96798 1.34708C4.98154 1.85077 4.08019 2.50527 3.29665 3.28682C2.509 4.06618 1.85244 4.967 1.3522 5.95468C0.850583 6.94038 0.502759 7.99664 0.320743 9.08699C0.136996 10.176 0.0381201 11.2775 0.0250025 12.3817C0.00968747 12.8863 0.00807013 13.3926 0 13.8972V51.9366C0.00807013 52.4476 0.00968747 52.9427 0.0250025 53.4538C0.0381241 54.558 0.137 55.6595 0.320743 56.7484C0.502256 57.8394 0.850101 58.8962 1.3522 59.8823C1.85221 60.8668 2.50888 61.764 3.29665 62.539C4.07723 63.324 4.97915 63.979 5.96798 64.4788C6.95561 64.9796 8.01312 65.3296 9.10507 65.5169C10.1986 65.696 11.3041 65.7933 12.4122 65.808C12.9223 65.8191 13.4235 65.8255 13.9288 65.8255C14.5323 65.8288 15.1303 65.8288 15.7354 65.8288H181.76C182.352 65.8288 182.955 65.8288 183.548 65.8255C184.051 65.8255 184.567 65.8191 185.07 65.808C186.176 65.7941 187.28 65.6969 188.37 65.5169C189.466 65.3282 190.527 64.9784 191.52 64.4788C192.507 63.9787 193.408 63.3237 194.189 62.539C194.975 61.761 195.632 60.8644 196.139 59.8823C196.637 58.8955 196.981 57.8387 197.161 56.7484C197.344 55.6594 197.446 54.5581 197.467 53.4538C197.473 52.9427 197.473 52.4476 197.473 51.9366C197.486 51.3388 197.486 50.7442 197.486 50.1366V15.694C197.486 15.0913 197.486 14.4935 197.473 13.8972C197.473 13.3926 197.473 12.8863 197.467 12.3816C197.446 11.2773 197.344 10.1761 197.161 9.08692C196.981 7.9972 196.637 6.94102 196.139 5.95461C195.12 3.97494 193.504 2.36351 191.52 1.34694C190.527 0.848691 189.466 0.500906 188.37 0.315072C187.28 0.133686 186.176 0.0364325 185.07 0.0241756C184.567 0.0161445 184.051 0.00650058 183.548 0.00329142C182.955 0 182.352 0.000213943 181.76 0.000213943Z",
|
|
103028
103032
|
fill: "#A6A6A6"
|
|
103029
103033
|
}),
|
|
103030
103034
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
103035
|
+
"data-testid": "apple-icon-path-2",
|
|
103031
103036
|
d: "M13.9369 64.3888C13.4341 64.3888 12.9434 64.3824 12.4446 64.3711C11.4111 64.3577 10.38 64.268 9.35986 64.1028C8.4086 63.9394 7.48707 63.6355 6.62569 63.201C5.7722 62.7703 4.99375 62.2054 4.32016 61.528C3.63684 60.8586 3.06793 60.0823 2.63598 59.2298C2.19929 58.3717 1.89707 57.4519 1.73986 56.5024C1.57008 55.4824 1.47822 54.4508 1.46507 53.4167C1.45462 53.0697 1.44092 51.914 1.44092 51.914V13.8972C1.44092 13.8972 1.4555 12.7593 1.46515 12.425C1.47774 11.3926 1.56906 10.3627 1.73834 9.3441C1.89585 8.3921 2.1983 7.46967 2.63523 6.60876C3.06558 5.7568 3.63132 4.97988 4.31055 4.30813C4.98901 3.63 5.76994 3.0622 6.62488 2.62544C7.48428 2.19243 8.40406 1.89067 9.3534 1.73027C10.3769 1.56334 11.4116 1.47309 12.4486 1.46028L13.9377 1.44019H183.54L185.047 1.46109C186.074 1.47326 187.1 1.56271 188.114 1.72867C189.074 1.89107 190.002 2.19494 190.872 2.63027C192.584 3.51047 193.978 4.90303 194.857 6.61278C195.287 7.46774 195.585 8.38265 195.74 9.32644C195.912 10.3534 196.008 11.3914 196.027 12.4322C196.032 12.8983 196.032 13.3989 196.032 13.8972C196.045 14.5144 196.045 15.1017 196.045 15.6939V50.1365C196.045 50.7345 196.045 51.3179 196.032 51.9061C196.032 52.4412 196.032 52.9315 196.025 53.4361C196.006 54.4583 195.911 55.4778 195.744 56.4864C195.589 57.4427 195.289 58.3696 194.853 59.2347C194.418 60.078 193.852 60.8477 193.177 61.5151C192.502 62.1962 191.722 62.7644 190.867 63.1979C190.001 63.6356 189.072 63.9407 188.114 64.1028C187.095 64.2688 186.063 64.3587 185.029 64.3711C184.546 64.3824 184.04 64.3888 183.548 64.3888L181.76 64.392L13.9369 64.3888Z",
|
|
103032
103037
|
fill: "#1B1C1E"
|
|
103033
103038
|
}),
|
|
@@ -103127,6 +103132,7 @@ const AppleAppButtonIcon = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs
|
|
|
103127
103132
|
})]
|
|
103128
103133
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("defs", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("clipPath", {
|
|
103129
103134
|
id: "clip0_890_9231",
|
|
103135
|
+
"data-testid": "apple-icon-clippath",
|
|
103130
103136
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("rect", {
|
|
103131
103137
|
width: 197.486,
|
|
103132
103138
|
height: 65.8286,
|
|
@@ -103141,6 +103147,7 @@ const TextInput = react.default.forwardRef(({ rightSection, leftSection, classNa
|
|
|
103141
103147
|
const [showPassword, setShowPassword] = react.default.useState(false);
|
|
103142
103148
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
103143
103149
|
"data-component": "TextInput",
|
|
103150
|
+
"data-testid": "TextInput",
|
|
103144
103151
|
className: clsx_default("relative", wrapperClassName),
|
|
103145
103152
|
children: [
|
|
103146
103153
|
label && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("label", {
|
|
@@ -103179,10 +103186,12 @@ const TextInput = react.default.forwardRef(({ rightSection, leftSection, classNa
|
|
|
103179
103186
|
password && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
103180
103187
|
className: "absolute inset-y-0 right-4 flex content-center items-center justify-center align-middle text-sm font-medium text-black",
|
|
103181
103188
|
children: showPassword ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconEyeCheck, {
|
|
103189
|
+
"data-testid": "password-visibility-toggle",
|
|
103182
103190
|
className: "cursor-pointer text-gray-500",
|
|
103183
103191
|
size: 15,
|
|
103184
103192
|
onClick: () => setShowPassword(false)
|
|
103185
103193
|
}) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconEyeOff, {
|
|
103194
|
+
"data-testid": "password-visibility-toggle",
|
|
103186
103195
|
className: "cursor-pointer text-gray-500",
|
|
103187
103196
|
size: 15,
|
|
103188
103197
|
onClick: () => setShowPassword(true)
|
|
@@ -103231,15 +103240,16 @@ const radiusFormatter = {
|
|
|
103231
103240
|
12: "rounded-3xl",
|
|
103232
103241
|
100: "rounded-full"
|
|
103233
103242
|
};
|
|
103234
|
-
const Avatar = ({ src, alt = "", size: size$3 = 50, radius = 100 }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
103243
|
+
const Avatar = ({ src, alt = "", size: size$3 = 50, radius = 100, "data-testid": dataTestId = "avatar" }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
103235
103244
|
"data-component": "Avatar",
|
|
103236
|
-
"data-testid":
|
|
103245
|
+
"data-testid": dataTestId,
|
|
103237
103246
|
children: src && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("img", {
|
|
103238
103247
|
src,
|
|
103239
103248
|
className: cn("aspect-square appearance-none object-cover", radiusFormatter[radius]),
|
|
103240
103249
|
alt,
|
|
103241
103250
|
width: size$3,
|
|
103242
|
-
height: size$3
|
|
103251
|
+
height: size$3,
|
|
103252
|
+
"data-testid": "avatar-img"
|
|
103243
103253
|
})
|
|
103244
103254
|
});
|
|
103245
103255
|
Avatar.displayName = "Avatar";
|
|
@@ -103249,6 +103259,7 @@ Avatar.displayName = "Avatar";
|
|
|
103249
103259
|
const AvatarIndicator = ({ indicatorCount, className }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
103250
103260
|
className: cn("inline-flex h-5 min-w-5 flex-col items-center justify-center gap-2.5 rounded border-2 border-solid border-white bg-blue-950 px-1.5", className),
|
|
103251
103261
|
"data-component": "AvatarIndicator",
|
|
103262
|
+
"data-testid": "AvatarIndicator",
|
|
103252
103263
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
103253
103264
|
className: "font-['Gotham'] text-[10px] leading-[10px] font-bold text-white",
|
|
103254
103265
|
children: `+${indicatorCount}`
|
|
@@ -103257,9 +103268,10 @@ const AvatarIndicator = ({ indicatorCount, className }) => /* @__PURE__ */ (0, r
|
|
|
103257
103268
|
|
|
103258
103269
|
//#endregion
|
|
103259
103270
|
//#region src/components/badge/index.tsx
|
|
103260
|
-
const Badge = ({ styleVariant = COLOR.ACCENT_BLUE, className, favorite, mobile = false, badgeBorder = false,...props }) => /* @__PURE__ */ (0, react_jsx_runtime.
|
|
103271
|
+
const Badge = ({ styleVariant = COLOR.ACCENT_BLUE, className, favorite, mobile = false, badgeBorder = false, fullWidth = false,...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
103272
|
+
"data-testid": "badge",
|
|
103261
103273
|
"data-component": "Badge",
|
|
103262
|
-
className: clsx_default("inline-flex h-[1.375rem] max-w-full place-content-center items-center p-[10px] align-middle text-xs leading-[20px] font-medium tracking-wide text-wrap whitespace-normal normal-case", mobile ? "rounded-s" : "rounded-[2rem]", badgeBorder && {
|
|
103274
|
+
className: clsx_default("inline-flex h-[1.375rem] max-w-full place-content-center items-center p-[10px] align-middle text-xs leading-[20px] font-medium tracking-wide text-wrap whitespace-normal normal-case", mobile ? "rounded-s" : "rounded-[2rem]", fullWidth && "w-full", badgeBorder && {
|
|
103263
103275
|
"border-accent-blue": styleVariant === COLOR.ACCENT_BLUE,
|
|
103264
103276
|
"border-green-light": styleVariant === COLOR.GREEN_LIGHT,
|
|
103265
103277
|
"border-red-500": styleVariant === COLOR.RED,
|
|
@@ -103282,10 +103294,21 @@ const Badge = ({ styleVariant = COLOR.ACCENT_BLUE, className, favorite, mobile =
|
|
|
103282
103294
|
"bg-white text-black": styleVariant === COLOR.WHITE
|
|
103283
103295
|
}, className),
|
|
103284
103296
|
...props,
|
|
103285
|
-
children:
|
|
103286
|
-
|
|
103287
|
-
|
|
103288
|
-
|
|
103297
|
+
children: [
|
|
103298
|
+
props.leftSection && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
103299
|
+
"data-testid": "left-section",
|
|
103300
|
+
children: props.leftSection
|
|
103301
|
+
}),
|
|
103302
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
103303
|
+
"data-testid": "badge-content",
|
|
103304
|
+
className: cn("block h-5 overflow-hidden text-ellipsis whitespace-nowrap", { "flex items-center": favorite }),
|
|
103305
|
+
children: props.children
|
|
103306
|
+
}),
|
|
103307
|
+
props.rightSection && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
103308
|
+
"data-testid": "right-section",
|
|
103309
|
+
children: props.rightSection
|
|
103310
|
+
})
|
|
103311
|
+
]
|
|
103289
103312
|
});
|
|
103290
103313
|
Badge.displayName = "Badge";
|
|
103291
103314
|
|
|
@@ -103293,6 +103316,7 @@ Badge.displayName = "Badge";
|
|
|
103293
103316
|
//#region src/components/bigBadge/index.tsx
|
|
103294
103317
|
const BigBadge = ({ styleVariant = COLOR.GREEN, className, children,...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
103295
103318
|
"data-component": "BigBadge",
|
|
103319
|
+
"data-testid": "big-badge",
|
|
103296
103320
|
className: cn("grid h-9 max-w-full min-w-[140px] place-content-center rounded-full border border-solid px-6 py-1 text-sm font-medium whitespace-nowrap lowercase", {
|
|
103297
103321
|
"border-green text-green bg-white": styleVariant === COLOR.GREEN,
|
|
103298
103322
|
"border-accent-blue text-accent-blue bg-white": styleVariant === COLOR.ACCENT_BLUE,
|
|
@@ -103301,9 +103325,8 @@ const BigBadge = ({ styleVariant = COLOR.GREEN, className, children,...props })
|
|
|
103301
103325
|
"border-red-500 bg-white text-red-500": styleVariant === COLOR.RED,
|
|
103302
103326
|
"group-hover:bg-red-50": styleVariant === COLOR.RED,
|
|
103303
103327
|
"border-gray-200 bg-white text-black": styleVariant === COLOR.WHITE,
|
|
103304
|
-
"": styleVariant === COLOR.WHITE
|
|
103305
|
-
|
|
103306
|
-
}),
|
|
103328
|
+
"": styleVariant === COLOR.WHITE
|
|
103329
|
+
}, className),
|
|
103307
103330
|
...props,
|
|
103308
103331
|
children
|
|
103309
103332
|
});
|
|
@@ -103451,10 +103474,12 @@ Button.displayName = "Button";
|
|
|
103451
103474
|
//#endregion
|
|
103452
103475
|
//#region src/components/checkbox/index.tsx
|
|
103453
103476
|
const CheckboxComponent = ({ size: size$3 = "md", className, error: error$1, mediumBoldText, label, labelClassName, indeterminate = false, disabled = false,...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
103477
|
+
"data-testid": "checkbox-wrapper",
|
|
103454
103478
|
className: cn("relative grid gap-2", className),
|
|
103455
103479
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
103456
103480
|
className: cn("flex cursor-pointer items-center gap-3", labelClassName),
|
|
103457
103481
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
103482
|
+
"data-testid": `checkbox-container-${size$3}`,
|
|
103458
103483
|
className: cn("relative grid shrink-0 place-content-center", size$3 === "sm" ? "size-4" : "size-5"),
|
|
103459
103484
|
children: [
|
|
103460
103485
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
@@ -103466,6 +103491,7 @@ const CheckboxComponent = ({ size: size$3 = "md", className, error: error$1, med
|
|
|
103466
103491
|
ref
|
|
103467
103492
|
}),
|
|
103468
103493
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
|
|
103494
|
+
"data-testid": "checkbox-checkmark",
|
|
103469
103495
|
className: cn("pointer-events-none absolute top-1/2 left-1/2 hidden -translate-x-1/2 -translate-y-1/2 stroke-white outline-hidden peer-checked:block", { "stroke-gray-300": disabled }, size$3 === "sm" ? "size-3" : "size-4"),
|
|
103470
103496
|
xmlns: "http://www.w3.org/2000/svg",
|
|
103471
103497
|
viewBox: "0 0 24 24",
|
|
@@ -103477,6 +103503,7 @@ const CheckboxComponent = ({ size: size$3 = "md", className, error: error$1, med
|
|
|
103477
103503
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("polyline", { points: "20 6 9 17 4 12" })
|
|
103478
103504
|
}),
|
|
103479
103505
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
|
|
103506
|
+
"data-testid": "checkbox-indeterminate",
|
|
103480
103507
|
className: cn("pointer-events-none absolute left-1/2 hidden -translate-x-1/2 -translate-y-1/2 stroke-black outline-hidden", { "stroke-gray-300": disabled }, size$3 === "sm" ? "top-[60%] size-3" : "top-1/2 size-4", { block: indeterminate }),
|
|
103481
103508
|
xmlns: "http://www.w3.org/2000/svg",
|
|
103482
103509
|
viewBox: "0 0 24 24",
|
|
@@ -103494,7 +103521,8 @@ const CheckboxComponent = ({ size: size$3 = "md", className, error: error$1, med
|
|
|
103494
103521
|
})
|
|
103495
103522
|
]
|
|
103496
103523
|
}), label && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
103497
|
-
|
|
103524
|
+
"data-testid": "checkbox-label",
|
|
103525
|
+
className: cn("grow text-sm font-normal", labelClassName, { "font-medium": mediumBoldText }),
|
|
103498
103526
|
children: label
|
|
103499
103527
|
})]
|
|
103500
103528
|
}), error$1 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("small", {
|
|
@@ -103578,10 +103606,12 @@ const Filters = ({ filters, setFilters, selectedFilters, selectedFiltersText, fi
|
|
|
103578
103606
|
};
|
|
103579
103607
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
103580
103608
|
className: "grid justify-end gap-3",
|
|
103609
|
+
"data-testid": "filters-component",
|
|
103581
103610
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
103582
103611
|
className: "flex items-center justify-end gap-3",
|
|
103583
103612
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
103584
103613
|
className: "text-sm font-medium",
|
|
103614
|
+
"data-testid": "filters-title",
|
|
103585
103615
|
children: selectedFiltersText
|
|
103586
103616
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FilterButton, {
|
|
103587
103617
|
onClick: () => setShowFilters(!showFilters),
|
|
@@ -103592,6 +103622,8 @@ const Filters = ({ filters, setFilters, selectedFilters, selectedFiltersText, fi
|
|
|
103592
103622
|
})]
|
|
103593
103623
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
103594
103624
|
ref: content,
|
|
103625
|
+
"data-testid": "filters-items-container",
|
|
103626
|
+
"data-visible": showFilters,
|
|
103595
103627
|
className: cn("flex flex-wrap justify-end gap-2 overflow-hidden opacity-0 ease-in-out [transition:max-height_0.4s,opacity_0.3s]", showFilters && "opacity-100"),
|
|
103596
103628
|
style: { maxHeight: showFilters ? `${content?.current?.scrollHeight}px` : "0px" },
|
|
103597
103629
|
children: filters.map((filter) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FilterItem, {
|
|
@@ -103609,18 +103641,22 @@ const GoogleAppButtonIcon = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsx
|
|
|
103609
103641
|
viewBox: "0 0 224 66",
|
|
103610
103642
|
fill: "none",
|
|
103611
103643
|
xmlns: "http://www.w3.org/2000/svg",
|
|
103644
|
+
"data-testid": "googleAppButtonIcon",
|
|
103612
103645
|
"data-component": "googleAppButtonIcon",
|
|
103613
103646
|
...props,
|
|
103614
103647
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("g", {
|
|
103648
|
+
"data-testid": "google-app-icon-g",
|
|
103615
103649
|
clipPath: "url(#clip0_890_9261)",
|
|
103616
103650
|
children: [
|
|
103617
103651
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
103652
|
+
"data-testid": "google-app-icon-path",
|
|
103618
103653
|
fillRule: "evenodd",
|
|
103619
103654
|
clipRule: "evenodd",
|
|
103620
103655
|
d: "M215.718 65.8286H8.73944C4.17466 65.8286 0.457031 62.1186 0.457031 57.6V8.22857C0.457031 3.69363 4.17466 0 8.73944 0H215.718C220.278 0 224 3.69363 224 8.22857V57.6C224 62.1186 220.278 65.8286 215.718 65.8286Z",
|
|
103621
103656
|
fill: "#1B1C1E"
|
|
103622
103657
|
}),
|
|
103623
103658
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
103659
|
+
"data-testid": "google-app-icon-path",
|
|
103624
103660
|
fillRule: "evenodd",
|
|
103625
103661
|
clipRule: "evenodd",
|
|
103626
103662
|
d: "M215.718 1.31739C219.545 1.31739 222.679 4.42415 222.679 8.22857V57.6C222.679 61.4045 219.566 64.5112 215.718 64.5112H8.73944C4.91079 64.5112 1.77712 61.4045 1.77712 57.6V8.22857C1.77712 4.42415 4.89022 1.31739 8.73944 1.31739H215.718ZM215.718 0H8.73944C4.17466 0 0.457031 3.71004 0.457031 8.22857V57.6C0.457031 62.1349 4.17466 65.8286 8.73944 65.8286H215.718C220.278 65.8286 224 62.1349 224 57.6V8.22857C224 3.71004 220.278 0 215.718 0Z",
|
|
@@ -103682,110 +103718,113 @@ const GoogleAppButtonIcon = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsx
|
|
|
103682
103718
|
fill: "white"
|
|
103683
103719
|
})
|
|
103684
103720
|
]
|
|
103685
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("defs", {
|
|
103686
|
-
|
|
103687
|
-
|
|
103688
|
-
|
|
103689
|
-
|
|
103690
|
-
|
|
103691
|
-
|
|
103692
|
-
|
|
103693
|
-
|
|
103694
|
-
|
|
103695
|
-
|
|
103696
|
-
|
|
103697
|
-
|
|
103698
|
-
|
|
103699
|
-
|
|
103700
|
-
|
|
103701
|
-
|
|
103702
|
-
|
|
103703
|
-
|
|
103704
|
-
|
|
103705
|
-
|
|
103706
|
-
|
|
103707
|
-
|
|
103708
|
-
|
|
103709
|
-
|
|
103710
|
-
|
|
103711
|
-
|
|
103712
|
-
|
|
103713
|
-
|
|
103714
|
-
|
|
103715
|
-
|
|
103716
|
-
|
|
103717
|
-
|
|
103718
|
-
|
|
103719
|
-
|
|
103720
|
-
|
|
103721
|
-
|
|
103722
|
-
|
|
103723
|
-
|
|
103724
|
-
|
|
103725
|
-
|
|
103726
|
-
|
|
103727
|
-
|
|
103728
|
-
|
|
103729
|
-
|
|
103730
|
-
|
|
103731
|
-
|
|
103732
|
-
|
|
103733
|
-
|
|
103734
|
-
|
|
103735
|
-
|
|
103736
|
-
|
|
103737
|
-
|
|
103738
|
-
|
|
103739
|
-
|
|
103740
|
-
|
|
103741
|
-
|
|
103742
|
-
|
|
103743
|
-
|
|
103744
|
-
|
|
103745
|
-
|
|
103746
|
-
|
|
103747
|
-
|
|
103748
|
-
|
|
103749
|
-
stopColor: "#
|
|
103750
|
-
})]
|
|
103751
|
-
}),
|
|
103752
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("linearGradient", {
|
|
103753
|
-
id: "paint3_linear_890_9261",
|
|
103754
|
-
x1: 12.4868,
|
|
103755
|
-
y1: .294332,
|
|
103756
|
-
x2: 24.1726,
|
|
103757
|
-
y2: 20.0238,
|
|
103758
|
-
gradientUnits: "userSpaceOnUse",
|
|
103759
|
-
children: [
|
|
103760
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", { stopColor: "#32A071" }),
|
|
103761
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
|
|
103762
|
-
offset: .0685,
|
|
103763
|
-
stopColor: "#2DA771"
|
|
103764
|
-
}),
|
|
103765
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
|
|
103766
|
-
offset: .4762,
|
|
103767
|
-
stopColor: "#15CF74"
|
|
103768
|
-
}),
|
|
103769
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
|
|
103770
|
-
offset: .8009,
|
|
103771
|
-
stopColor: "#06E775"
|
|
103772
|
-
}),
|
|
103773
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
|
|
103721
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("defs", {
|
|
103722
|
+
"data-testid": "google-app-icon-defs",
|
|
103723
|
+
children: [
|
|
103724
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("linearGradient", {
|
|
103725
|
+
id: "paint0_linear_890_9261",
|
|
103726
|
+
x1: 36.405,
|
|
103727
|
+
y1: 14.3285,
|
|
103728
|
+
x2: 3.68775,
|
|
103729
|
+
y2: 23.0638,
|
|
103730
|
+
gradientUnits: "userSpaceOnUse",
|
|
103731
|
+
children: [
|
|
103732
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", { stopColor: "#00A0FF" }),
|
|
103733
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
|
|
103734
|
+
offset: .00657,
|
|
103735
|
+
stopColor: "#00A1FF"
|
|
103736
|
+
}),
|
|
103737
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
|
|
103738
|
+
offset: .2601,
|
|
103739
|
+
stopColor: "#00BEFF"
|
|
103740
|
+
}),
|
|
103741
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
|
|
103742
|
+
offset: .5122,
|
|
103743
|
+
stopColor: "#00D2FF"
|
|
103744
|
+
}),
|
|
103745
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
|
|
103746
|
+
offset: .7604,
|
|
103747
|
+
stopColor: "#00DFFF"
|
|
103748
|
+
}),
|
|
103749
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
|
|
103750
|
+
offset: 1,
|
|
103751
|
+
stopColor: "#00E3FF"
|
|
103752
|
+
})
|
|
103753
|
+
]
|
|
103754
|
+
}),
|
|
103755
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("linearGradient", {
|
|
103756
|
+
id: "paint1_linear_890_9261",
|
|
103757
|
+
x1: 56.253,
|
|
103758
|
+
y1: 32.9142,
|
|
103759
|
+
x2: 16.3504,
|
|
103760
|
+
y2: 32.9142,
|
|
103761
|
+
gradientUnits: "userSpaceOnUse",
|
|
103762
|
+
children: [
|
|
103763
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", { stopColor: "#FFE000" }),
|
|
103764
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
|
|
103765
|
+
offset: .4087,
|
|
103766
|
+
stopColor: "#FFBD00"
|
|
103767
|
+
}),
|
|
103768
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
|
|
103769
|
+
offset: .7754,
|
|
103770
|
+
stopColor: "#FFA500"
|
|
103771
|
+
}),
|
|
103772
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
|
|
103773
|
+
offset: 1,
|
|
103774
|
+
stopColor: "#FF9C00"
|
|
103775
|
+
})
|
|
103776
|
+
]
|
|
103777
|
+
}),
|
|
103778
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("linearGradient", {
|
|
103779
|
+
id: "paint2_linear_890_9261",
|
|
103780
|
+
x1: 41.3981,
|
|
103781
|
+
y1: 36.6951,
|
|
103782
|
+
x2: 15.2049,
|
|
103783
|
+
y2: 80.8704,
|
|
103784
|
+
gradientUnits: "userSpaceOnUse",
|
|
103785
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", { stopColor: "#FF3A44" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
|
|
103774
103786
|
offset: 1,
|
|
103775
|
-
stopColor: "#
|
|
103787
|
+
stopColor: "#C31162"
|
|
103788
|
+
})]
|
|
103789
|
+
}),
|
|
103790
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("linearGradient", {
|
|
103791
|
+
id: "paint3_linear_890_9261",
|
|
103792
|
+
x1: 12.4868,
|
|
103793
|
+
y1: .294332,
|
|
103794
|
+
x2: 24.1726,
|
|
103795
|
+
y2: 20.0238,
|
|
103796
|
+
gradientUnits: "userSpaceOnUse",
|
|
103797
|
+
children: [
|
|
103798
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", { stopColor: "#32A071" }),
|
|
103799
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
|
|
103800
|
+
offset: .0685,
|
|
103801
|
+
stopColor: "#2DA771"
|
|
103802
|
+
}),
|
|
103803
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
|
|
103804
|
+
offset: .4762,
|
|
103805
|
+
stopColor: "#15CF74"
|
|
103806
|
+
}),
|
|
103807
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
|
|
103808
|
+
offset: .8009,
|
|
103809
|
+
stopColor: "#06E775"
|
|
103810
|
+
}),
|
|
103811
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("stop", {
|
|
103812
|
+
offset: 1,
|
|
103813
|
+
stopColor: "#00F076"
|
|
103814
|
+
})
|
|
103815
|
+
]
|
|
103816
|
+
}),
|
|
103817
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("clipPath", {
|
|
103818
|
+
id: "clip0_890_9261",
|
|
103819
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("rect", {
|
|
103820
|
+
width: 223.543,
|
|
103821
|
+
height: 65.8286,
|
|
103822
|
+
fill: "white",
|
|
103823
|
+
transform: "translate(0.457031)"
|
|
103776
103824
|
})
|
|
103777
|
-
]
|
|
103778
|
-
}),
|
|
103779
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("clipPath", {
|
|
103780
|
-
id: "clip0_890_9261",
|
|
103781
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("rect", {
|
|
103782
|
-
width: 223.543,
|
|
103783
|
-
height: 65.8286,
|
|
103784
|
-
fill: "white",
|
|
103785
|
-
transform: "translate(0.457031)"
|
|
103786
103825
|
})
|
|
103787
|
-
|
|
103788
|
-
|
|
103826
|
+
]
|
|
103827
|
+
})]
|
|
103789
103828
|
});
|
|
103790
103829
|
|
|
103791
103830
|
//#endregion
|
|
@@ -103800,9 +103839,18 @@ const HamburgerMenuButton = (0, react.forwardRef)(({ menuState, setMenuState },
|
|
|
103800
103839
|
"aria-label": "Mobile Menu button",
|
|
103801
103840
|
ref,
|
|
103802
103841
|
children: [
|
|
103803
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
103804
|
-
|
|
103805
|
-
|
|
103842
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
103843
|
+
"data-testid": "hamburger-line-top",
|
|
103844
|
+
className: cn(defaultClasses, "top-0 left-0 w-6", { "translation top-1/2 translate-y-[-50%] rotate-45 transform duration-150 ease-in": menuState })
|
|
103845
|
+
}),
|
|
103846
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
103847
|
+
"data-testid": "hamburger-line-middle",
|
|
103848
|
+
className: cn(defaultClasses, "top-1/2 right-0 w-4 translate-y-[-50%]", { "translation opacity-0 ease-in": menuState })
|
|
103849
|
+
}),
|
|
103850
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
103851
|
+
"data-testid": "hamburger-line-bottom",
|
|
103852
|
+
className: cn(defaultClasses, "bottom-0 left-0 w-6", { "translation top-1/2 translate-y-[-50%] -rotate-45 transform duration-150 ease-in": menuState })
|
|
103853
|
+
})
|
|
103806
103854
|
]
|
|
103807
103855
|
});
|
|
103808
103856
|
});
|
|
@@ -103819,8 +103867,10 @@ HR.displayName = "HR";
|
|
|
103819
103867
|
//#endregion
|
|
103820
103868
|
//#region src/components/island/index.tsx
|
|
103821
103869
|
const Island = ({ children, className, noShadow = false, noPadding = false,...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
103870
|
+
"data-testid": "island",
|
|
103822
103871
|
"data-component": "island",
|
|
103823
|
-
className: cn("relative bg-white px-5 py-5
|
|
103872
|
+
className: cn("relative bg-white px-5 py-5 md:px-10 md:py-9", {
|
|
103873
|
+
"shadow-[0_-0.5rem_2rem_rgba(38,41,92,0.04)]": !noShadow,
|
|
103824
103874
|
"drop-shadow-none": noShadow,
|
|
103825
103875
|
"md:px-0 md:py-0": noPadding
|
|
103826
103876
|
}, className),
|
|
@@ -103833,6 +103883,7 @@ Island.displayName = "Island";
|
|
|
103833
103883
|
//#region src/components/label/index.tsx
|
|
103834
103884
|
const Label = ({ children, className,...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("label", {
|
|
103835
103885
|
"data-component": "label",
|
|
103886
|
+
"data-testid": "label",
|
|
103836
103887
|
className: cn("flex items-center gap-1 text-xs font-medium text-black", className),
|
|
103837
103888
|
...props,
|
|
103838
103889
|
children
|
|
@@ -103841,8 +103892,12 @@ const Label = ({ children, className,...props }) => /* @__PURE__ */ (0, react_js
|
|
|
103841
103892
|
//#endregion
|
|
103842
103893
|
//#region src/components/loader/index.tsx
|
|
103843
103894
|
const Loader = () => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
103895
|
+
"data-testid": "loader-container",
|
|
103844
103896
|
className: "inline-flex h-full w-auto items-center justify-center",
|
|
103845
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
103897
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
103898
|
+
"data-testid": "loader",
|
|
103899
|
+
className: "loader"
|
|
103900
|
+
})
|
|
103846
103901
|
});
|
|
103847
103902
|
Loader.displayName = "Loader";
|
|
103848
103903
|
|
|
@@ -103852,12 +103907,14 @@ const LogoBlack = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg",
|
|
|
103852
103907
|
viewBox: "0 0 110 68",
|
|
103853
103908
|
fill: "none",
|
|
103854
103909
|
"data-component": "logo",
|
|
103910
|
+
"data-testid": "logo",
|
|
103855
103911
|
xmlns: "http://www.w3.org/2000/svg",
|
|
103856
103912
|
...props,
|
|
103857
103913
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("g", {
|
|
103858
103914
|
clipPath: "url(#clip0_2069_36940)",
|
|
103859
103915
|
children: [
|
|
103860
103916
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
103917
|
+
"data-testid": "logo-path",
|
|
103861
103918
|
d: "M109.937 0C109.936 0.125784 109.934 0.251569 109.934 0.377356C109.934 2.23291 109.934 4.08846 109.934 5.94402C109.934 6.33238 109.962 6.30387 109.579 6.30497C109.305 6.30575 109.031 6.30512 108.757 6.30512C72.6623 6.30512 36.5679 6.30514 0.473486 6.30452C0.315656 6.30452 0.157829 6.29536 0 6.29047C2.53566e-06 4.19365 2.53566e-06 2.09682 2.53566e-06 0C36.6456 0 73.2911 0 109.937 0Z",
|
|
103862
103919
|
fill: "#10D1BB"
|
|
103863
103920
|
}),
|
|
@@ -103904,10 +103961,12 @@ const LogoBlack = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg",
|
|
|
103904
103961
|
]
|
|
103905
103962
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("defs", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("clipPath", {
|
|
103906
103963
|
id: "clip0_2069_36940",
|
|
103964
|
+
"data-testid": "logo-clip-path",
|
|
103907
103965
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("rect", {
|
|
103908
103966
|
width: 110,
|
|
103909
103967
|
height: 68,
|
|
103910
|
-
fill: "white"
|
|
103968
|
+
fill: "white",
|
|
103969
|
+
"data-testid": "logo-clip-rect"
|
|
103911
103970
|
})
|
|
103912
103971
|
}) })]
|
|
103913
103972
|
});
|
|
@@ -104002,6 +104061,7 @@ const Modal = ({ title, children, withCloseButton = true, opened, additionalClas
|
|
|
104002
104061
|
}),
|
|
104003
104062
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children }),
|
|
104004
104063
|
gradient && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("hr", {
|
|
104064
|
+
"data-testid": "modal-gradient",
|
|
104005
104065
|
className: "absolute bottom-0 left-0 mt-8 mb-0 h-2! w-full border-none",
|
|
104006
104066
|
style: { backgroundImage: "linear-gradient(90deg, var(--color-light-blue) 0%, var(--color-primary) 50.52%, var(--color-pink) 100%)" }
|
|
104007
104067
|
})
|
|
@@ -104053,6 +104113,7 @@ const NumberField = ({ name, value = 0, max: max$2, min: min$2 = 0, isDisabled,
|
|
|
104053
104113
|
if (value > 0) onChange?.(value - 1);
|
|
104054
104114
|
};
|
|
104055
104115
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
104116
|
+
"data-testid": "number-field-container",
|
|
104056
104117
|
className: `inline-flex flex-col ${className}`,
|
|
104057
104118
|
children: [
|
|
104058
104119
|
label && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("label", {
|
|
@@ -104066,6 +104127,7 @@ const NumberField = ({ name, value = 0, max: max$2, min: min$2 = 0, isDisabled,
|
|
|
104066
104127
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
104067
104128
|
type: "button",
|
|
104068
104129
|
onClick: handleDecrement,
|
|
104130
|
+
disabled: isDisabled,
|
|
104069
104131
|
className: "absolute left-0 flex h-full w-8 items-center justify-center rounded-l-md border-r-0 bg-gray-50 text-gray-500 hover:bg-gray-100",
|
|
104070
104132
|
children: "-"
|
|
104071
104133
|
}),
|
|
@@ -104083,6 +104145,7 @@ const NumberField = ({ name, value = 0, max: max$2, min: min$2 = 0, isDisabled,
|
|
|
104083
104145
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
104084
104146
|
type: "button",
|
|
104085
104147
|
onClick: handleIncrement,
|
|
104148
|
+
disabled: isDisabled,
|
|
104086
104149
|
className: "absolute right-0 flex h-full w-8 items-center justify-center rounded-r-md bg-gray-50 text-gray-500 hover:bg-gray-100",
|
|
104087
104150
|
children: "+"
|
|
104088
104151
|
})
|
|
@@ -109662,6 +109725,7 @@ const Popover = (0, react.forwardRef)(({ content, children, hoverEnabled = false
|
|
|
109662
109725
|
"w-fit rounded border border-gray-200! bg-white p-5": style$1 === "minimal",
|
|
109663
109726
|
"card w-[489px] drop-shadow-xl": style$1 === "card"
|
|
109664
109727
|
}),
|
|
109728
|
+
"data-testid": "popover-container",
|
|
109665
109729
|
"data-component": "Popover",
|
|
109666
109730
|
children: [style$1 === "minimal" && content, style$1 === "card" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
109667
109731
|
className: "bg-linear-gradient-x pt-[3px]",
|
|
@@ -109685,11 +109749,19 @@ const Popover = (0, react.forwardRef)(({ content, children, hoverEnabled = false
|
|
|
109685
109749
|
const ProgressBar = ({ value, maxValue = 100, className }) => {
|
|
109686
109750
|
const [width, setWidth] = (0, react.useState)(0);
|
|
109687
109751
|
(0, react.useEffect)(() => {
|
|
109688
|
-
|
|
109752
|
+
if (value <= 0) setWidth(0);
|
|
109753
|
+
else if (maxValue <= 0) setWidth(0);
|
|
109754
|
+
else if (value >= maxValue) setWidth(100);
|
|
109755
|
+
else setWidth(value / maxValue * 100);
|
|
109689
109756
|
}, [value, maxValue]);
|
|
109690
109757
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
109691
109758
|
className: cn("h-2 rounded-lg bg-gray-100", className),
|
|
109759
|
+
role: "progressbar",
|
|
109760
|
+
"aria-valuenow": value,
|
|
109761
|
+
"aria-valuemin": 0,
|
|
109762
|
+
"aria-valuemax": maxValue,
|
|
109692
109763
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
109764
|
+
"data-testid": "progress-bar-fill",
|
|
109693
109765
|
className: "h-2 rounded-lg bg-[#27295c] transition-all duration-1000 ease-in-out",
|
|
109694
109766
|
style: { width: `${width}%` }
|
|
109695
109767
|
})
|
|
@@ -109699,6 +109771,7 @@ const ProgressBar = ({ value, maxValue = 100, className }) => {
|
|
|
109699
109771
|
//#endregion
|
|
109700
109772
|
//#region src/components/radioButton/index.tsx
|
|
109701
109773
|
const RadioButton = ({ id, name, value, label, onChange, checked, dataTestId, className, containerClassName, labelClassName,...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
109774
|
+
"data-testid": "radio-button-container",
|
|
109702
109775
|
className: `${containerClassName || "radio-button-container"} relative flex items-start`,
|
|
109703
109776
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
109704
109777
|
className: "relative",
|
|
@@ -109707,7 +109780,7 @@ const RadioButton = ({ id, name, value, label, onChange, checked, dataTestId, cl
|
|
|
109707
109780
|
id,
|
|
109708
109781
|
name,
|
|
109709
109782
|
value,
|
|
109710
|
-
onChange,
|
|
109783
|
+
onChange: props.disabled ? undefined : onChange,
|
|
109711
109784
|
checked,
|
|
109712
109785
|
"data-testid": dataTestId,
|
|
109713
109786
|
className: `${clsx_default(className, "ease checked:border-navyBlue checked:bg-navy-blue relative m-0 flex size-5 cursor-pointer appearance-none items-center justify-center rounded-full border border-gray-400 bg-white transition-colors duration-100 focus:ring-0 focus:outline-hidden focus-visible:ring-0", { "cursor-not-allowed opacity-50": props.disabled })}`,
|
|
@@ -109829,9 +109902,11 @@ const Rating = ({ rating, ratings, size: size$3 = "normal", setReview, className
|
|
|
109829
109902
|
className: cn("flex flex-col", className),
|
|
109830
109903
|
children: [
|
|
109831
109904
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
109905
|
+
"data-testid": "rating-container",
|
|
109832
109906
|
"data-component": "rating",
|
|
109833
109907
|
className: "flex flex-row gap-[2px]",
|
|
109834
109908
|
children: ratings.map((_$1, index$4) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
109909
|
+
"data-testid": `star-item-${index$4}`,
|
|
109835
109910
|
className: cn("relative", setReview && "cursor-pointer"),
|
|
109836
109911
|
onClick: () => handleStarClick(index$4),
|
|
109837
109912
|
onMouseEnter: () => handleHover(index$4),
|
|
@@ -115673,6 +115748,7 @@ const Select = (0, react.forwardRef)(({ options: options$1, placeholder, default
|
|
|
115673
115748
|
});
|
|
115674
115749
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
115675
115750
|
"data-component": "Select",
|
|
115751
|
+
"data-testid": "select-container",
|
|
115676
115752
|
ref,
|
|
115677
115753
|
className: clsx_default("m-0 grid gap-2 p-0", width ? width : fullWidth && "w-full", className),
|
|
115678
115754
|
children: [
|
|
@@ -115682,6 +115758,7 @@ const Select = (0, react.forwardRef)(({ options: options$1, placeholder, default
|
|
|
115682
115758
|
}),
|
|
115683
115759
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(StateManagedSelect$1, {
|
|
115684
115760
|
"data-component": "select",
|
|
115761
|
+
"data-testid": "select-input",
|
|
115685
115762
|
options: options$1,
|
|
115686
115763
|
menuPlacement: "auto",
|
|
115687
115764
|
isDisabled,
|
|
@@ -115730,6 +115807,7 @@ Select.displayName = "Select";
|
|
|
115730
115807
|
//#region src/components/settingsCard/index.tsx
|
|
115731
115808
|
const SettingsCard = ({ icon, title, link, ManageText, LinkComponent }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
115732
115809
|
"data-component": "SettingsCard",
|
|
115810
|
+
"data-testid": "settings-card",
|
|
115733
115811
|
className: "flex items-center justify-between gap-2 bg-white px-8 py-4 shadow-[0_-0.5rem_2rem_rgba(38,41,92,0.04)] md:px-4 lg:px-8",
|
|
115734
115812
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
115735
115813
|
className: "flex items-center gap-4",
|
|
@@ -115746,19 +115824,22 @@ const SettingsCard = ({ icon, title, link, ManageText, LinkComponent }) => /* @_
|
|
|
115746
115824
|
|
|
115747
115825
|
//#endregion
|
|
115748
115826
|
//#region src/components/skeleton/index.tsx
|
|
115749
|
-
const Skeleton = ({ className }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
115827
|
+
const Skeleton = ({ className, "data-testid": dataTestId }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
115750
115828
|
"data-component": "genericSkeleton",
|
|
115829
|
+
"data-testid": dataTestId || "skeleton",
|
|
115751
115830
|
className: cn("inline-block rounded-md", "animate-pulse bg-gray-100/50", className)
|
|
115752
115831
|
});
|
|
115753
115832
|
|
|
115754
115833
|
//#endregion
|
|
115755
115834
|
//#region src/components/skillPill/index.tsx
|
|
115756
115835
|
const SkillPill = ({ name, number }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
115836
|
+
"data-testid": "skill-pill-container",
|
|
115757
115837
|
className: "flex items-center rounded-full border border-gray-200 p-[3px]",
|
|
115758
115838
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
115759
115839
|
className: "pr-4 pl-3",
|
|
115760
115840
|
children: name
|
|
115761
115841
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
115842
|
+
"data-testid": "skill-pill-number",
|
|
115762
115843
|
className: "bg-turquoise-200 grid h-[30px] min-w-[30px] place-content-center rounded-full px-2.5",
|
|
115763
115844
|
children: number
|
|
115764
115845
|
})]
|
|
@@ -115858,8 +115939,10 @@ const Stepper = ({ steps, setStep = () => {}, variant = "default", clickableStep
|
|
|
115858
115939
|
//#endregion
|
|
115859
115940
|
//#region src/components/stickyMobileButton/index.tsx
|
|
115860
115941
|
const StickyMobileButtonWrapper = ({ children }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
115942
|
+
"data-testid": "sticky-mobile-button-wrapper",
|
|
115861
115943
|
className: "fixed inset-x-0 bottom-0 z-40 w-full bg-white p-8 md:hidden",
|
|
115862
115944
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
115945
|
+
"data-testid": "sticky-mobile-button-grid",
|
|
115863
115946
|
className: "grid place-content-center",
|
|
115864
115947
|
children
|
|
115865
115948
|
})
|
|
@@ -115867,15 +115950,18 @@ const StickyMobileButtonWrapper = ({ children }) => /* @__PURE__ */ (0, react_js
|
|
|
115867
115950
|
|
|
115868
115951
|
//#endregion
|
|
115869
115952
|
//#region src/components/table/index.tsx
|
|
115870
|
-
const Table = ({ children, className }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
115953
|
+
const Table = ({ children, className,...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
115954
|
+
"data-testid": "table",
|
|
115871
115955
|
"data-component": "table",
|
|
115872
115956
|
className: cn("table w-full table-fixed border-collapse overflow-auto", className),
|
|
115957
|
+
...props,
|
|
115873
115958
|
children
|
|
115874
115959
|
});
|
|
115875
115960
|
|
|
115876
115961
|
//#endregion
|
|
115877
115962
|
//#region src/components/table/tableCell/index.tsx
|
|
115878
115963
|
const TableCell = ({ children, smallPadding, className }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
115964
|
+
"data-testid": "tableCell",
|
|
115879
115965
|
"data-component": "tableCell",
|
|
115880
115966
|
className: `${cn("table-cell py-2 align-middle text-sm font-normal first:pl-2 last:pr-2 md:py-0 md:xl:first:pl-10 md:xl:last:pr-10", { "md:xl:first:pl-5 md:xl:last:pr-5": smallPadding }, className)}`,
|
|
115881
115967
|
children
|
|
@@ -115885,20 +115971,25 @@ const TableCell = ({ children, smallPadding, className }) => /* @__PURE__ */ (0,
|
|
|
115885
115971
|
//#region src/components/table/tableHeader/index.tsx
|
|
115886
115972
|
const TableHeader = ({ children }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
115887
115973
|
"data-component": "tableHeader",
|
|
115974
|
+
"data-testid": "tableHeader",
|
|
115888
115975
|
className: "table-header-group border-b border-gray-200",
|
|
115889
115976
|
children
|
|
115890
115977
|
});
|
|
115891
115978
|
|
|
115892
115979
|
//#endregion
|
|
115893
115980
|
//#region src/components/table/tableHeaderItem/index.tsx
|
|
115894
|
-
const TableHeaderItem = ({ children, smallPadding, className }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
115981
|
+
const TableHeaderItem = ({ children, smallPadding, className,...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
115982
|
+
"data-testid": "tableHeaderItem",
|
|
115983
|
+
"data-component": "tableHeaderItem",
|
|
115895
115984
|
className: cn("hidden h-10 align-middle text-xs font-medium first:pl-10 last:pr-10 xl:table-cell", { "xl:first:pl-5 xl:last:pr-5": smallPadding }, className),
|
|
115985
|
+
...props,
|
|
115896
115986
|
children
|
|
115897
115987
|
});
|
|
115898
115988
|
|
|
115899
115989
|
//#endregion
|
|
115900
115990
|
//#region src/components/table/tableHeaderRow/index.tsx
|
|
115901
115991
|
const TableHeaderRow = ({ children,...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
115992
|
+
"data-testid": "tableHeaderRow",
|
|
115902
115993
|
"data-component": "tableHeaderRow",
|
|
115903
115994
|
className: "table-row xl:border-0 xl:border-b xl:border-solid xl:border-gray-300",
|
|
115904
115995
|
...props,
|
|
@@ -115907,10 +115998,11 @@ const TableHeaderRow = ({ children,...props }) => /* @__PURE__ */ (0, react_jsx_
|
|
|
115907
115998
|
|
|
115908
115999
|
//#endregion
|
|
115909
116000
|
//#region src/components/table/tableRow/index.tsx
|
|
115910
|
-
function TableRow({ children, className,...props }) {
|
|
116001
|
+
function TableRow({ children, className, header,...props }) {
|
|
115911
116002
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
116003
|
+
"data-testid": "tableRow",
|
|
115912
116004
|
"data-component": "tableRow",
|
|
115913
|
-
className: `${cn("table-row border-x-0 border-y-0 border-t border-solid border-gray-200 xl:border-t xl:border-solid xl:border-gray-200", "hover:bg-ultra-light-blue", className)}`,
|
|
116005
|
+
className: `${cn("table-row border-x-0 border-y-0 border-t border-solid border-gray-200 xl:border-t xl:border-solid xl:border-gray-200", "hover:bg-ultra-light-blue", header && "font-medium", className)}`,
|
|
115914
116006
|
...props,
|
|
115915
116007
|
children
|
|
115916
116008
|
});
|
|
@@ -116047,6 +116139,7 @@ function ThemeIcon({ styleVariant = "black", className, icon, adjustedSize, titl
|
|
|
116047
116139
|
"text-red-500": styleVariant === COLOR.ERROR
|
|
116048
116140
|
}, className);
|
|
116049
116141
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
116142
|
+
"data-testid": "theme-icon",
|
|
116050
116143
|
"data-tooltip-id": title,
|
|
116051
116144
|
"data-tooltip-content": title,
|
|
116052
116145
|
"data-component": "ThemeIcon",
|
|
@@ -116095,14 +116188,19 @@ const TimeInput = (0, react.forwardRef)(({ label, error: error$1, withSeconds, c
|
|
|
116095
116188
|
const Toggle = ({ onClick, value, disabled = false }) => {
|
|
116096
116189
|
const handleToggle = (e$2) => {
|
|
116097
116190
|
e$2.stopPropagation();
|
|
116098
|
-
onClick();
|
|
116191
|
+
if (!disabled) onClick();
|
|
116099
116192
|
};
|
|
116100
116193
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
116101
116194
|
onClick: handleToggle,
|
|
116102
116195
|
className: "cursor-pointer",
|
|
116196
|
+
"data-testid": "toggle-wrapper",
|
|
116103
116197
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
116198
|
+
"data-testid": "toggle-background",
|
|
116104
116199
|
className: `relative h-6 w-12 rounded-xl ${value ? disabled ? "bg-turquoise-200" : "bg-turquoise-500" : "bg-gray-500"} ${disabled && "cursor-not-allowed"}`,
|
|
116105
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
116200
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
116201
|
+
"data-testid": "toggle-circle",
|
|
116202
|
+
className: `absolute block size-[20px] rounded-full bg-white ${value ? "translate-x-[26px] translate-y-[2px]" : "translate-x-[2px] translate-y-[2px]"}`
|
|
116203
|
+
})
|
|
116106
116204
|
})
|
|
116107
116205
|
});
|
|
116108
116206
|
};
|
|
@@ -116149,10 +116247,13 @@ const Tooltip = ({ content, children, passedOpen = false, size: size$3 = "md", v
|
|
|
116149
116247
|
style: floatingStyles,
|
|
116150
116248
|
...getFloatingProps(),
|
|
116151
116249
|
className: "z-70 drop-shadow-xl",
|
|
116250
|
+
"data-testid": "tooltip",
|
|
116152
116251
|
"data-component": "tooltip",
|
|
116153
116252
|
children: variant === "default" ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
116253
|
+
"data-testid": "tooltip-container",
|
|
116154
116254
|
className: "w-full rounded bg-gray-800 pt-[3px] text-white",
|
|
116155
116255
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
116256
|
+
"data-testid": "tooltip-content",
|
|
116156
116257
|
className: `${sizeClasses[size$3]} px-2 py-1 text-sm font-normal`,
|
|
116157
116258
|
children: content
|
|
116158
116259
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FloatingArrow, {
|
|
@@ -116161,11 +116262,14 @@ const Tooltip = ({ content, children, passedOpen = false, size: size$3 = "md", v
|
|
|
116161
116262
|
width: 10,
|
|
116162
116263
|
height: 6,
|
|
116163
116264
|
tipRadius: 1,
|
|
116265
|
+
"data-testid": "tooltip-arrow",
|
|
116164
116266
|
className: "fill-gray-800 drop-shadow-xl"
|
|
116165
116267
|
})]
|
|
116166
116268
|
}) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
116269
|
+
"data-testid": "tooltip-container",
|
|
116167
116270
|
className: "bg-linear-gradient-x pt-[3px]",
|
|
116168
116271
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
116272
|
+
"data-testid": "tooltip-content",
|
|
116169
116273
|
className: `${sizeClasses[size$3]} overflow-hidden bg-white p-5 px-2 py-1 text-start text-sm font-normal`,
|
|
116170
116274
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", { children: content })
|
|
116171
116275
|
}), size$3 === "md" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FloatingArrow, {
|
|
@@ -116195,7 +116299,7 @@ Tooltip.displayName = "Tooltip";
|
|
|
116195
116299
|
const TruncatedText = ({ text, limit = 20 }) => {
|
|
116196
116300
|
const [truncatedText, setTruncatedText] = (0, react.useState)(text);
|
|
116197
116301
|
(0, react.useEffect)(() => {
|
|
116198
|
-
if (text.length > limit) setTruncatedText(text.substring(0, limit) + "
|
|
116302
|
+
if (text.length > limit) setTruncatedText(text.substring(0, limit) + "...");
|
|
116199
116303
|
else setTruncatedText(text);
|
|
116200
116304
|
}, [text, limit]);
|
|
116201
116305
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
@@ -116207,6 +116311,7 @@ const TruncatedText = ({ text, limit = 20 }) => {
|
|
|
116207
116311
|
content: text,
|
|
116208
116312
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
116209
116313
|
className: "text-pink",
|
|
116314
|
+
"data-testid": "truncated-text-icon",
|
|
116210
116315
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconMessageDots, { stroke: 1 })
|
|
116211
116316
|
})
|
|
116212
116317
|
})]
|
|
@@ -116218,6 +116323,7 @@ const TruncatedText = ({ text, limit = 20 }) => {
|
|
|
116218
116323
|
const UnorderedList = ({ children, className, actionItem,...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("ul", {
|
|
116219
116324
|
className: cn("m-0 last:border-none", className),
|
|
116220
116325
|
"data-component": "unorderedList",
|
|
116326
|
+
"data-testid": "unorderedList",
|
|
116221
116327
|
...props,
|
|
116222
116328
|
children: [children, actionItem && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
116223
116329
|
className: "flex items-center",
|
|
@@ -140361,6 +140467,7 @@ const WysiwygEditor = (0, react.forwardRef)(({ id, content, className, placehold
|
|
|
140361
140467
|
} }), [editor]);
|
|
140362
140468
|
if (typeof window === "undefined" || typeof document === "undefined") return null;
|
|
140363
140469
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
140470
|
+
"data-testid": `${id}-container`,
|
|
140364
140471
|
className: cn("rounded-md border border-gray-200", className, error$1 && "border-red-600"),
|
|
140365
140472
|
children: [editor && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
140366
140473
|
className: "flex flex-wrap gap-2 border-b border-gray-200 p-2",
|
|
@@ -140369,24 +140476,28 @@ const WysiwygEditor = (0, react.forwardRef)(({ id, content, className, placehold
|
|
|
140369
140476
|
children: [
|
|
140370
140477
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
140371
140478
|
type: "button",
|
|
140479
|
+
"data-testid": "bold-button",
|
|
140372
140480
|
onClick: () => editor.chain().focus().toggleBold().run(),
|
|
140373
140481
|
className: `${editor.isActive("bold") ? "bg-primary/20" : "bg-white"} flex size-[26px] items-center justify-center rounded-l-md border-gray-400 text-xs font-normal hover:bg-gray-100 focus:ring-2 focus:ring-teal-500 focus:outline-hidden`,
|
|
140374
140482
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BoldIcon, {})
|
|
140375
140483
|
}),
|
|
140376
140484
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
140377
140485
|
type: "button",
|
|
140486
|
+
"data-testid": "italic-button",
|
|
140378
140487
|
onClick: () => editor.chain().focus().toggleItalic().run(),
|
|
140379
140488
|
className: `${editor.isActive("italic") ? "bg-primary/20" : "bg-white"} flex size-[26px] items-center justify-center border-gray-400 text-xs font-normal hover:bg-gray-100 focus:ring-2 focus:ring-teal-500 focus:outline-hidden`,
|
|
140380
140489
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ItalicIcon, {})
|
|
140381
140490
|
}),
|
|
140382
140491
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
140383
140492
|
type: "button",
|
|
140493
|
+
"data-testid": "underline-button",
|
|
140384
140494
|
onClick: () => editor.chain().focus().toggleUnderline().run(),
|
|
140385
140495
|
className: `${editor.isActive("underline") ? "bg-primary/20" : "bg-white"} flex size-[26px] items-center justify-center border-gray-400 text-xs font-normal hover:bg-gray-100 focus:ring-2 focus:ring-teal-500 focus:outline-hidden`,
|
|
140386
140496
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(UnderlineIcon, {})
|
|
140387
140497
|
}),
|
|
140388
140498
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
140389
140499
|
type: "button",
|
|
140500
|
+
"data-testid": "clear-formatting-button",
|
|
140390
140501
|
onClick: () => editor.chain().focus().clearNodes().unsetAllMarks().run(),
|
|
140391
140502
|
className: "flex size-[26px] items-center justify-center rounded-r-md border-gray-400 bg-white text-xs font-normal hover:bg-gray-100 focus:ring-2 focus:ring-teal-500 focus:outline-hidden",
|
|
140392
140503
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ClearFormattingIcon, {})
|
|
@@ -140396,11 +140507,13 @@ const WysiwygEditor = (0, react.forwardRef)(({ id, content, className, placehold
|
|
|
140396
140507
|
className: "flex flex-row divide-x divide-gray-400 rounded-md border border-gray-400",
|
|
140397
140508
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
140398
140509
|
type: "button",
|
|
140510
|
+
"data-testid": "bullet-list-button",
|
|
140399
140511
|
onClick: () => editor.chain().focus().toggleBulletList().run(),
|
|
140400
140512
|
className: `${editor.isActive("bulletList") ? "bg-primary/20" : "bg-white"} flex size-[26px] items-center justify-center rounded-l-md border-gray-400 text-xs font-normal hover:bg-gray-100 focus:ring-2 focus:ring-teal-500 focus:outline-hidden`,
|
|
140401
140513
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ListIcon, {})
|
|
140402
140514
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
140403
140515
|
type: "button",
|
|
140516
|
+
"data-testid": "ordered-list-button",
|
|
140404
140517
|
onClick: () => editor.chain().focus().toggleOrderedList().run(),
|
|
140405
140518
|
className: `${editor.isActive("orderedList") ? "bg-primary/20 text-primary" : "bg-white"} flex size-[26px] items-center justify-center rounded-r-md border-gray-400 text-xs font-normal hover:bg-gray-100 focus:ring-2 focus:ring-teal-500 focus:outline-hidden`,
|
|
140406
140519
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ListNumbersIcon, {})
|