@youngonesworks/ui 0.1.40 → 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/actionIcon/ActionIcon.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/button/Button.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/icons/IconLoading.test.d.ts +1 -0
- package/dist/index.cjs +251 -135
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +251 -135
- package/dist/index.js.map +1 -1
- package/dist/utils/formatIcon.test.d.ts +1 -0
- package/package.json +5 -3
package/dist/index.js
CHANGED
|
@@ -100217,6 +100217,8 @@ const AccordionItem = ({ controlContent, panelContent, style: style$1 = "light",
|
|
|
100217
100217
|
//#endregion
|
|
100218
100218
|
//#region src/components/accordion/AccordionWrapper.tsx
|
|
100219
100219
|
const AccordionWrapper = ({ children, className }) => /* @__PURE__ */ jsx("div", {
|
|
100220
|
+
"data-testid": "accordion-wrapper",
|
|
100221
|
+
"data-component": "accordionWrapper",
|
|
100220
100222
|
className: cn(className, "flex flex-col gap-2"),
|
|
100221
100223
|
children
|
|
100222
100224
|
});
|
|
@@ -103005,13 +103007,14 @@ Alert.displayName = "Alert";
|
|
|
103005
103007
|
const AppleAppButtonIcon = (props) => /* @__PURE__ */ jsxs("svg", {
|
|
103006
103008
|
viewBox: "0 0 198 66",
|
|
103007
103009
|
fill: "none",
|
|
103008
|
-
"data-
|
|
103010
|
+
"data-testid": "AppleAppButtonIcon",
|
|
103009
103011
|
xmlns: "http://www.w3.org/2000/svg",
|
|
103010
103012
|
...props,
|
|
103011
103013
|
children: [/* @__PURE__ */ jsxs("g", {
|
|
103012
103014
|
clipPath: "url(#clip0_890_9231)",
|
|
103013
103015
|
children: [/* @__PURE__ */ jsx("mask", {
|
|
103014
103016
|
id: "mask0_890_9231",
|
|
103017
|
+
"data-testid": "apple-icon-mask",
|
|
103015
103018
|
style: { maskType: "luminance" },
|
|
103016
103019
|
maskUnits: "userSpaceOnUse",
|
|
103017
103020
|
x: 0,
|
|
@@ -103026,10 +103029,12 @@ const AppleAppButtonIcon = (props) => /* @__PURE__ */ jsxs("svg", {
|
|
|
103026
103029
|
mask: "url(#mask0_890_9231)",
|
|
103027
103030
|
children: [
|
|
103028
103031
|
/* @__PURE__ */ jsx("path", {
|
|
103032
|
+
"data-testid": "apple-icon-path-1",
|
|
103029
103033
|
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",
|
|
103030
103034
|
fill: "#A6A6A6"
|
|
103031
103035
|
}),
|
|
103032
103036
|
/* @__PURE__ */ jsx("path", {
|
|
103037
|
+
"data-testid": "apple-icon-path-2",
|
|
103033
103038
|
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",
|
|
103034
103039
|
fill: "#1B1C1E"
|
|
103035
103040
|
}),
|
|
@@ -103129,6 +103134,7 @@ const AppleAppButtonIcon = (props) => /* @__PURE__ */ jsxs("svg", {
|
|
|
103129
103134
|
})]
|
|
103130
103135
|
}), /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", {
|
|
103131
103136
|
id: "clip0_890_9231",
|
|
103137
|
+
"data-testid": "apple-icon-clippath",
|
|
103132
103138
|
children: /* @__PURE__ */ jsx("rect", {
|
|
103133
103139
|
width: 197.486,
|
|
103134
103140
|
height: 65.8286,
|
|
@@ -103143,6 +103149,7 @@ const TextInput = React.forwardRef(({ rightSection, leftSection, className, erro
|
|
|
103143
103149
|
const [showPassword, setShowPassword] = React.useState(false);
|
|
103144
103150
|
return /* @__PURE__ */ jsxs("div", {
|
|
103145
103151
|
"data-component": "TextInput",
|
|
103152
|
+
"data-testid": "TextInput",
|
|
103146
103153
|
className: clsx_default("relative", wrapperClassName),
|
|
103147
103154
|
children: [
|
|
103148
103155
|
label && /* @__PURE__ */ jsx("label", {
|
|
@@ -103181,10 +103188,12 @@ const TextInput = React.forwardRef(({ rightSection, leftSection, className, erro
|
|
|
103181
103188
|
password && /* @__PURE__ */ jsx("div", {
|
|
103182
103189
|
className: "absolute inset-y-0 right-4 flex content-center items-center justify-center align-middle text-sm font-medium text-black",
|
|
103183
103190
|
children: showPassword ? /* @__PURE__ */ jsx(IconEyeCheck, {
|
|
103191
|
+
"data-testid": "password-visibility-toggle",
|
|
103184
103192
|
className: "cursor-pointer text-gray-500",
|
|
103185
103193
|
size: 15,
|
|
103186
103194
|
onClick: () => setShowPassword(false)
|
|
103187
103195
|
}) : /* @__PURE__ */ jsx(IconEyeOff, {
|
|
103196
|
+
"data-testid": "password-visibility-toggle",
|
|
103188
103197
|
className: "cursor-pointer text-gray-500",
|
|
103189
103198
|
size: 15,
|
|
103190
103199
|
onClick: () => setShowPassword(true)
|
|
@@ -103233,15 +103242,16 @@ const radiusFormatter = {
|
|
|
103233
103242
|
12: "rounded-3xl",
|
|
103234
103243
|
100: "rounded-full"
|
|
103235
103244
|
};
|
|
103236
|
-
const Avatar = ({ src, alt = "", size: size$3 = 50, radius = 100 }) => /* @__PURE__ */ jsx("div", {
|
|
103245
|
+
const Avatar = ({ src, alt = "", size: size$3 = 50, radius = 100, "data-testid": dataTestId = "avatar" }) => /* @__PURE__ */ jsx("div", {
|
|
103237
103246
|
"data-component": "Avatar",
|
|
103238
|
-
"data-testid":
|
|
103247
|
+
"data-testid": dataTestId,
|
|
103239
103248
|
children: src && /* @__PURE__ */ jsx("img", {
|
|
103240
103249
|
src,
|
|
103241
103250
|
className: cn("aspect-square appearance-none object-cover", radiusFormatter[radius]),
|
|
103242
103251
|
alt,
|
|
103243
103252
|
width: size$3,
|
|
103244
|
-
height: size$3
|
|
103253
|
+
height: size$3,
|
|
103254
|
+
"data-testid": "avatar-img"
|
|
103245
103255
|
})
|
|
103246
103256
|
});
|
|
103247
103257
|
Avatar.displayName = "Avatar";
|
|
@@ -103251,6 +103261,7 @@ Avatar.displayName = "Avatar";
|
|
|
103251
103261
|
const AvatarIndicator = ({ indicatorCount, className }) => /* @__PURE__ */ jsx("div", {
|
|
103252
103262
|
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),
|
|
103253
103263
|
"data-component": "AvatarIndicator",
|
|
103264
|
+
"data-testid": "AvatarIndicator",
|
|
103254
103265
|
children: /* @__PURE__ */ jsx("div", {
|
|
103255
103266
|
className: "font-['Gotham'] text-[10px] leading-[10px] font-bold text-white",
|
|
103256
103267
|
children: `+${indicatorCount}`
|
|
@@ -103259,9 +103270,10 @@ const AvatarIndicator = ({ indicatorCount, className }) => /* @__PURE__ */ jsx("
|
|
|
103259
103270
|
|
|
103260
103271
|
//#endregion
|
|
103261
103272
|
//#region src/components/badge/index.tsx
|
|
103262
|
-
const Badge = ({ styleVariant = COLOR.ACCENT_BLUE, className, favorite, mobile = false, badgeBorder = false,...props }) => /* @__PURE__ */
|
|
103273
|
+
const Badge = ({ styleVariant = COLOR.ACCENT_BLUE, className, favorite, mobile = false, badgeBorder = false, fullWidth = false,...props }) => /* @__PURE__ */ jsxs("span", {
|
|
103274
|
+
"data-testid": "badge",
|
|
103263
103275
|
"data-component": "Badge",
|
|
103264
|
-
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 && {
|
|
103276
|
+
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 && {
|
|
103265
103277
|
"border-accent-blue": styleVariant === COLOR.ACCENT_BLUE,
|
|
103266
103278
|
"border-green-light": styleVariant === COLOR.GREEN_LIGHT,
|
|
103267
103279
|
"border-red-500": styleVariant === COLOR.RED,
|
|
@@ -103284,10 +103296,21 @@ const Badge = ({ styleVariant = COLOR.ACCENT_BLUE, className, favorite, mobile =
|
|
|
103284
103296
|
"bg-white text-black": styleVariant === COLOR.WHITE
|
|
103285
103297
|
}, className),
|
|
103286
103298
|
...props,
|
|
103287
|
-
children:
|
|
103288
|
-
|
|
103289
|
-
|
|
103290
|
-
|
|
103299
|
+
children: [
|
|
103300
|
+
props.leftSection && /* @__PURE__ */ jsx("div", {
|
|
103301
|
+
"data-testid": "left-section",
|
|
103302
|
+
children: props.leftSection
|
|
103303
|
+
}),
|
|
103304
|
+
/* @__PURE__ */ jsx("span", {
|
|
103305
|
+
"data-testid": "badge-content",
|
|
103306
|
+
className: cn("block h-5 overflow-hidden text-ellipsis whitespace-nowrap", { "flex items-center": favorite }),
|
|
103307
|
+
children: props.children
|
|
103308
|
+
}),
|
|
103309
|
+
props.rightSection && /* @__PURE__ */ jsx("div", {
|
|
103310
|
+
"data-testid": "right-section",
|
|
103311
|
+
children: props.rightSection
|
|
103312
|
+
})
|
|
103313
|
+
]
|
|
103291
103314
|
});
|
|
103292
103315
|
Badge.displayName = "Badge";
|
|
103293
103316
|
|
|
@@ -103295,6 +103318,7 @@ Badge.displayName = "Badge";
|
|
|
103295
103318
|
//#region src/components/bigBadge/index.tsx
|
|
103296
103319
|
const BigBadge = ({ styleVariant = COLOR.GREEN, className, children,...props }) => /* @__PURE__ */ jsx("div", {
|
|
103297
103320
|
"data-component": "BigBadge",
|
|
103321
|
+
"data-testid": "big-badge",
|
|
103298
103322
|
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", {
|
|
103299
103323
|
"border-green text-green bg-white": styleVariant === COLOR.GREEN,
|
|
103300
103324
|
"border-accent-blue text-accent-blue bg-white": styleVariant === COLOR.ACCENT_BLUE,
|
|
@@ -103303,9 +103327,8 @@ const BigBadge = ({ styleVariant = COLOR.GREEN, className, children,...props })
|
|
|
103303
103327
|
"border-red-500 bg-white text-red-500": styleVariant === COLOR.RED,
|
|
103304
103328
|
"group-hover:bg-red-50": styleVariant === COLOR.RED,
|
|
103305
103329
|
"border-gray-200 bg-white text-black": styleVariant === COLOR.WHITE,
|
|
103306
|
-
"": styleVariant === COLOR.WHITE
|
|
103307
|
-
|
|
103308
|
-
}),
|
|
103330
|
+
"": styleVariant === COLOR.WHITE
|
|
103331
|
+
}, className),
|
|
103309
103332
|
...props,
|
|
103310
103333
|
children
|
|
103311
103334
|
});
|
|
@@ -103453,10 +103476,12 @@ Button.displayName = "Button";
|
|
|
103453
103476
|
//#endregion
|
|
103454
103477
|
//#region src/components/checkbox/index.tsx
|
|
103455
103478
|
const CheckboxComponent = ({ size: size$3 = "md", className, error: error$1, mediumBoldText, label, labelClassName, indeterminate = false, disabled = false,...props }, ref) => /* @__PURE__ */ jsxs("div", {
|
|
103479
|
+
"data-testid": "checkbox-wrapper",
|
|
103456
103480
|
className: cn("relative grid gap-2", className),
|
|
103457
103481
|
children: [/* @__PURE__ */ jsxs("label", {
|
|
103458
103482
|
className: cn("flex cursor-pointer items-center gap-3", labelClassName),
|
|
103459
103483
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
103484
|
+
"data-testid": `checkbox-container-${size$3}`,
|
|
103460
103485
|
className: cn("relative grid shrink-0 place-content-center", size$3 === "sm" ? "size-4" : "size-5"),
|
|
103461
103486
|
children: [
|
|
103462
103487
|
/* @__PURE__ */ jsx("input", {
|
|
@@ -103468,6 +103493,7 @@ const CheckboxComponent = ({ size: size$3 = "md", className, error: error$1, med
|
|
|
103468
103493
|
ref
|
|
103469
103494
|
}),
|
|
103470
103495
|
/* @__PURE__ */ jsx("svg", {
|
|
103496
|
+
"data-testid": "checkbox-checkmark",
|
|
103471
103497
|
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"),
|
|
103472
103498
|
xmlns: "http://www.w3.org/2000/svg",
|
|
103473
103499
|
viewBox: "0 0 24 24",
|
|
@@ -103479,6 +103505,7 @@ const CheckboxComponent = ({ size: size$3 = "md", className, error: error$1, med
|
|
|
103479
103505
|
children: /* @__PURE__ */ jsx("polyline", { points: "20 6 9 17 4 12" })
|
|
103480
103506
|
}),
|
|
103481
103507
|
/* @__PURE__ */ jsx("svg", {
|
|
103508
|
+
"data-testid": "checkbox-indeterminate",
|
|
103482
103509
|
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 }),
|
|
103483
103510
|
xmlns: "http://www.w3.org/2000/svg",
|
|
103484
103511
|
viewBox: "0 0 24 24",
|
|
@@ -103496,7 +103523,8 @@ const CheckboxComponent = ({ size: size$3 = "md", className, error: error$1, med
|
|
|
103496
103523
|
})
|
|
103497
103524
|
]
|
|
103498
103525
|
}), label && /* @__PURE__ */ jsx("span", {
|
|
103499
|
-
|
|
103526
|
+
"data-testid": "checkbox-label",
|
|
103527
|
+
className: cn("grow text-sm font-normal", labelClassName, { "font-medium": mediumBoldText }),
|
|
103500
103528
|
children: label
|
|
103501
103529
|
})]
|
|
103502
103530
|
}), error$1 && /* @__PURE__ */ jsx("small", {
|
|
@@ -103580,10 +103608,12 @@ const Filters = ({ filters, setFilters, selectedFilters, selectedFiltersText, fi
|
|
|
103580
103608
|
};
|
|
103581
103609
|
return /* @__PURE__ */ jsxs("div", {
|
|
103582
103610
|
className: "grid justify-end gap-3",
|
|
103611
|
+
"data-testid": "filters-component",
|
|
103583
103612
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
103584
103613
|
className: "flex items-center justify-end gap-3",
|
|
103585
103614
|
children: [/* @__PURE__ */ jsx("span", {
|
|
103586
103615
|
className: "text-sm font-medium",
|
|
103616
|
+
"data-testid": "filters-title",
|
|
103587
103617
|
children: selectedFiltersText
|
|
103588
103618
|
}), /* @__PURE__ */ jsx(FilterButton, {
|
|
103589
103619
|
onClick: () => setShowFilters(!showFilters),
|
|
@@ -103594,6 +103624,8 @@ const Filters = ({ filters, setFilters, selectedFilters, selectedFiltersText, fi
|
|
|
103594
103624
|
})]
|
|
103595
103625
|
}), /* @__PURE__ */ jsx("div", {
|
|
103596
103626
|
ref: content,
|
|
103627
|
+
"data-testid": "filters-items-container",
|
|
103628
|
+
"data-visible": showFilters,
|
|
103597
103629
|
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"),
|
|
103598
103630
|
style: { maxHeight: showFilters ? `${content?.current?.scrollHeight}px` : "0px" },
|
|
103599
103631
|
children: filters.map((filter) => /* @__PURE__ */ jsx(FilterItem, {
|
|
@@ -103611,18 +103643,22 @@ const GoogleAppButtonIcon = (props) => /* @__PURE__ */ jsxs("svg", {
|
|
|
103611
103643
|
viewBox: "0 0 224 66",
|
|
103612
103644
|
fill: "none",
|
|
103613
103645
|
xmlns: "http://www.w3.org/2000/svg",
|
|
103646
|
+
"data-testid": "googleAppButtonIcon",
|
|
103614
103647
|
"data-component": "googleAppButtonIcon",
|
|
103615
103648
|
...props,
|
|
103616
103649
|
children: [/* @__PURE__ */ jsxs("g", {
|
|
103650
|
+
"data-testid": "google-app-icon-g",
|
|
103617
103651
|
clipPath: "url(#clip0_890_9261)",
|
|
103618
103652
|
children: [
|
|
103619
103653
|
/* @__PURE__ */ jsx("path", {
|
|
103654
|
+
"data-testid": "google-app-icon-path",
|
|
103620
103655
|
fillRule: "evenodd",
|
|
103621
103656
|
clipRule: "evenodd",
|
|
103622
103657
|
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",
|
|
103623
103658
|
fill: "#1B1C1E"
|
|
103624
103659
|
}),
|
|
103625
103660
|
/* @__PURE__ */ jsx("path", {
|
|
103661
|
+
"data-testid": "google-app-icon-path",
|
|
103626
103662
|
fillRule: "evenodd",
|
|
103627
103663
|
clipRule: "evenodd",
|
|
103628
103664
|
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",
|
|
@@ -103684,110 +103720,113 @@ const GoogleAppButtonIcon = (props) => /* @__PURE__ */ jsxs("svg", {
|
|
|
103684
103720
|
fill: "white"
|
|
103685
103721
|
})
|
|
103686
103722
|
]
|
|
103687
|
-
}), /* @__PURE__ */ jsxs("defs", {
|
|
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
|
-
|
|
103750
|
-
|
|
103751
|
-
stopColor: "#
|
|
103752
|
-
})]
|
|
103753
|
-
}),
|
|
103754
|
-
/* @__PURE__ */ jsxs("linearGradient", {
|
|
103755
|
-
id: "paint3_linear_890_9261",
|
|
103756
|
-
x1: 12.4868,
|
|
103757
|
-
y1: .294332,
|
|
103758
|
-
x2: 24.1726,
|
|
103759
|
-
y2: 20.0238,
|
|
103760
|
-
gradientUnits: "userSpaceOnUse",
|
|
103761
|
-
children: [
|
|
103762
|
-
/* @__PURE__ */ jsx("stop", { stopColor: "#32A071" }),
|
|
103763
|
-
/* @__PURE__ */ jsx("stop", {
|
|
103764
|
-
offset: .0685,
|
|
103765
|
-
stopColor: "#2DA771"
|
|
103766
|
-
}),
|
|
103767
|
-
/* @__PURE__ */ jsx("stop", {
|
|
103768
|
-
offset: .4762,
|
|
103769
|
-
stopColor: "#15CF74"
|
|
103770
|
-
}),
|
|
103771
|
-
/* @__PURE__ */ jsx("stop", {
|
|
103772
|
-
offset: .8009,
|
|
103773
|
-
stopColor: "#06E775"
|
|
103774
|
-
}),
|
|
103775
|
-
/* @__PURE__ */ jsx("stop", {
|
|
103723
|
+
}), /* @__PURE__ */ jsxs("defs", {
|
|
103724
|
+
"data-testid": "google-app-icon-defs",
|
|
103725
|
+
children: [
|
|
103726
|
+
/* @__PURE__ */ jsxs("linearGradient", {
|
|
103727
|
+
id: "paint0_linear_890_9261",
|
|
103728
|
+
x1: 36.405,
|
|
103729
|
+
y1: 14.3285,
|
|
103730
|
+
x2: 3.68775,
|
|
103731
|
+
y2: 23.0638,
|
|
103732
|
+
gradientUnits: "userSpaceOnUse",
|
|
103733
|
+
children: [
|
|
103734
|
+
/* @__PURE__ */ jsx("stop", { stopColor: "#00A0FF" }),
|
|
103735
|
+
/* @__PURE__ */ jsx("stop", {
|
|
103736
|
+
offset: .00657,
|
|
103737
|
+
stopColor: "#00A1FF"
|
|
103738
|
+
}),
|
|
103739
|
+
/* @__PURE__ */ jsx("stop", {
|
|
103740
|
+
offset: .2601,
|
|
103741
|
+
stopColor: "#00BEFF"
|
|
103742
|
+
}),
|
|
103743
|
+
/* @__PURE__ */ jsx("stop", {
|
|
103744
|
+
offset: .5122,
|
|
103745
|
+
stopColor: "#00D2FF"
|
|
103746
|
+
}),
|
|
103747
|
+
/* @__PURE__ */ jsx("stop", {
|
|
103748
|
+
offset: .7604,
|
|
103749
|
+
stopColor: "#00DFFF"
|
|
103750
|
+
}),
|
|
103751
|
+
/* @__PURE__ */ jsx("stop", {
|
|
103752
|
+
offset: 1,
|
|
103753
|
+
stopColor: "#00E3FF"
|
|
103754
|
+
})
|
|
103755
|
+
]
|
|
103756
|
+
}),
|
|
103757
|
+
/* @__PURE__ */ jsxs("linearGradient", {
|
|
103758
|
+
id: "paint1_linear_890_9261",
|
|
103759
|
+
x1: 56.253,
|
|
103760
|
+
y1: 32.9142,
|
|
103761
|
+
x2: 16.3504,
|
|
103762
|
+
y2: 32.9142,
|
|
103763
|
+
gradientUnits: "userSpaceOnUse",
|
|
103764
|
+
children: [
|
|
103765
|
+
/* @__PURE__ */ jsx("stop", { stopColor: "#FFE000" }),
|
|
103766
|
+
/* @__PURE__ */ jsx("stop", {
|
|
103767
|
+
offset: .4087,
|
|
103768
|
+
stopColor: "#FFBD00"
|
|
103769
|
+
}),
|
|
103770
|
+
/* @__PURE__ */ jsx("stop", {
|
|
103771
|
+
offset: .7754,
|
|
103772
|
+
stopColor: "#FFA500"
|
|
103773
|
+
}),
|
|
103774
|
+
/* @__PURE__ */ jsx("stop", {
|
|
103775
|
+
offset: 1,
|
|
103776
|
+
stopColor: "#FF9C00"
|
|
103777
|
+
})
|
|
103778
|
+
]
|
|
103779
|
+
}),
|
|
103780
|
+
/* @__PURE__ */ jsxs("linearGradient", {
|
|
103781
|
+
id: "paint2_linear_890_9261",
|
|
103782
|
+
x1: 41.3981,
|
|
103783
|
+
y1: 36.6951,
|
|
103784
|
+
x2: 15.2049,
|
|
103785
|
+
y2: 80.8704,
|
|
103786
|
+
gradientUnits: "userSpaceOnUse",
|
|
103787
|
+
children: [/* @__PURE__ */ jsx("stop", { stopColor: "#FF3A44" }), /* @__PURE__ */ jsx("stop", {
|
|
103776
103788
|
offset: 1,
|
|
103777
|
-
stopColor: "#
|
|
103789
|
+
stopColor: "#C31162"
|
|
103790
|
+
})]
|
|
103791
|
+
}),
|
|
103792
|
+
/* @__PURE__ */ jsxs("linearGradient", {
|
|
103793
|
+
id: "paint3_linear_890_9261",
|
|
103794
|
+
x1: 12.4868,
|
|
103795
|
+
y1: .294332,
|
|
103796
|
+
x2: 24.1726,
|
|
103797
|
+
y2: 20.0238,
|
|
103798
|
+
gradientUnits: "userSpaceOnUse",
|
|
103799
|
+
children: [
|
|
103800
|
+
/* @__PURE__ */ jsx("stop", { stopColor: "#32A071" }),
|
|
103801
|
+
/* @__PURE__ */ jsx("stop", {
|
|
103802
|
+
offset: .0685,
|
|
103803
|
+
stopColor: "#2DA771"
|
|
103804
|
+
}),
|
|
103805
|
+
/* @__PURE__ */ jsx("stop", {
|
|
103806
|
+
offset: .4762,
|
|
103807
|
+
stopColor: "#15CF74"
|
|
103808
|
+
}),
|
|
103809
|
+
/* @__PURE__ */ jsx("stop", {
|
|
103810
|
+
offset: .8009,
|
|
103811
|
+
stopColor: "#06E775"
|
|
103812
|
+
}),
|
|
103813
|
+
/* @__PURE__ */ jsx("stop", {
|
|
103814
|
+
offset: 1,
|
|
103815
|
+
stopColor: "#00F076"
|
|
103816
|
+
})
|
|
103817
|
+
]
|
|
103818
|
+
}),
|
|
103819
|
+
/* @__PURE__ */ jsx("clipPath", {
|
|
103820
|
+
id: "clip0_890_9261",
|
|
103821
|
+
children: /* @__PURE__ */ jsx("rect", {
|
|
103822
|
+
width: 223.543,
|
|
103823
|
+
height: 65.8286,
|
|
103824
|
+
fill: "white",
|
|
103825
|
+
transform: "translate(0.457031)"
|
|
103778
103826
|
})
|
|
103779
|
-
]
|
|
103780
|
-
}),
|
|
103781
|
-
/* @__PURE__ */ jsx("clipPath", {
|
|
103782
|
-
id: "clip0_890_9261",
|
|
103783
|
-
children: /* @__PURE__ */ jsx("rect", {
|
|
103784
|
-
width: 223.543,
|
|
103785
|
-
height: 65.8286,
|
|
103786
|
-
fill: "white",
|
|
103787
|
-
transform: "translate(0.457031)"
|
|
103788
103827
|
})
|
|
103789
|
-
|
|
103790
|
-
|
|
103828
|
+
]
|
|
103829
|
+
})]
|
|
103791
103830
|
});
|
|
103792
103831
|
|
|
103793
103832
|
//#endregion
|
|
@@ -103802,9 +103841,18 @@ const HamburgerMenuButton = forwardRef(({ menuState, setMenuState }, ref) => {
|
|
|
103802
103841
|
"aria-label": "Mobile Menu button",
|
|
103803
103842
|
ref,
|
|
103804
103843
|
children: [
|
|
103805
|
-
/* @__PURE__ */ jsx("span", {
|
|
103806
|
-
|
|
103807
|
-
|
|
103844
|
+
/* @__PURE__ */ jsx("span", {
|
|
103845
|
+
"data-testid": "hamburger-line-top",
|
|
103846
|
+
className: cn(defaultClasses, "top-0 left-0 w-6", { "translation top-1/2 translate-y-[-50%] rotate-45 transform duration-150 ease-in": menuState })
|
|
103847
|
+
}),
|
|
103848
|
+
/* @__PURE__ */ jsx("span", {
|
|
103849
|
+
"data-testid": "hamburger-line-middle",
|
|
103850
|
+
className: cn(defaultClasses, "top-1/2 right-0 w-4 translate-y-[-50%]", { "translation opacity-0 ease-in": menuState })
|
|
103851
|
+
}),
|
|
103852
|
+
/* @__PURE__ */ jsx("span", {
|
|
103853
|
+
"data-testid": "hamburger-line-bottom",
|
|
103854
|
+
className: cn(defaultClasses, "bottom-0 left-0 w-6", { "translation top-1/2 translate-y-[-50%] -rotate-45 transform duration-150 ease-in": menuState })
|
|
103855
|
+
})
|
|
103808
103856
|
]
|
|
103809
103857
|
});
|
|
103810
103858
|
});
|
|
@@ -103821,8 +103869,10 @@ HR.displayName = "HR";
|
|
|
103821
103869
|
//#endregion
|
|
103822
103870
|
//#region src/components/island/index.tsx
|
|
103823
103871
|
const Island = ({ children, className, noShadow = false, noPadding = false,...props }) => /* @__PURE__ */ jsx("div", {
|
|
103872
|
+
"data-testid": "island",
|
|
103824
103873
|
"data-component": "island",
|
|
103825
|
-
className: cn("relative bg-white px-5 py-5
|
|
103874
|
+
className: cn("relative bg-white px-5 py-5 md:px-10 md:py-9", {
|
|
103875
|
+
"shadow-[0_-0.5rem_2rem_rgba(38,41,92,0.04)]": !noShadow,
|
|
103826
103876
|
"drop-shadow-none": noShadow,
|
|
103827
103877
|
"md:px-0 md:py-0": noPadding
|
|
103828
103878
|
}, className),
|
|
@@ -103835,6 +103885,7 @@ Island.displayName = "Island";
|
|
|
103835
103885
|
//#region src/components/label/index.tsx
|
|
103836
103886
|
const Label = ({ children, className,...props }) => /* @__PURE__ */ jsx("label", {
|
|
103837
103887
|
"data-component": "label",
|
|
103888
|
+
"data-testid": "label",
|
|
103838
103889
|
className: cn("flex items-center gap-1 text-xs font-medium text-black", className),
|
|
103839
103890
|
...props,
|
|
103840
103891
|
children
|
|
@@ -103843,8 +103894,12 @@ const Label = ({ children, className,...props }) => /* @__PURE__ */ jsx("label",
|
|
|
103843
103894
|
//#endregion
|
|
103844
103895
|
//#region src/components/loader/index.tsx
|
|
103845
103896
|
const Loader = () => /* @__PURE__ */ jsx("div", {
|
|
103897
|
+
"data-testid": "loader-container",
|
|
103846
103898
|
className: "inline-flex h-full w-auto items-center justify-center",
|
|
103847
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
103899
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
103900
|
+
"data-testid": "loader",
|
|
103901
|
+
className: "loader"
|
|
103902
|
+
})
|
|
103848
103903
|
});
|
|
103849
103904
|
Loader.displayName = "Loader";
|
|
103850
103905
|
|
|
@@ -103854,12 +103909,14 @@ const LogoBlack = (props) => /* @__PURE__ */ jsxs("svg", {
|
|
|
103854
103909
|
viewBox: "0 0 110 68",
|
|
103855
103910
|
fill: "none",
|
|
103856
103911
|
"data-component": "logo",
|
|
103912
|
+
"data-testid": "logo",
|
|
103857
103913
|
xmlns: "http://www.w3.org/2000/svg",
|
|
103858
103914
|
...props,
|
|
103859
103915
|
children: [/* @__PURE__ */ jsxs("g", {
|
|
103860
103916
|
clipPath: "url(#clip0_2069_36940)",
|
|
103861
103917
|
children: [
|
|
103862
103918
|
/* @__PURE__ */ jsx("path", {
|
|
103919
|
+
"data-testid": "logo-path",
|
|
103863
103920
|
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",
|
|
103864
103921
|
fill: "#10D1BB"
|
|
103865
103922
|
}),
|
|
@@ -103906,10 +103963,12 @@ const LogoBlack = (props) => /* @__PURE__ */ jsxs("svg", {
|
|
|
103906
103963
|
]
|
|
103907
103964
|
}), /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", {
|
|
103908
103965
|
id: "clip0_2069_36940",
|
|
103966
|
+
"data-testid": "logo-clip-path",
|
|
103909
103967
|
children: /* @__PURE__ */ jsx("rect", {
|
|
103910
103968
|
width: 110,
|
|
103911
103969
|
height: 68,
|
|
103912
|
-
fill: "white"
|
|
103970
|
+
fill: "white",
|
|
103971
|
+
"data-testid": "logo-clip-rect"
|
|
103913
103972
|
})
|
|
103914
103973
|
}) })]
|
|
103915
103974
|
});
|
|
@@ -104004,6 +104063,7 @@ const Modal = ({ title, children, withCloseButton = true, opened, additionalClas
|
|
|
104004
104063
|
}),
|
|
104005
104064
|
/* @__PURE__ */ jsx("div", { children }),
|
|
104006
104065
|
gradient && /* @__PURE__ */ jsx("hr", {
|
|
104066
|
+
"data-testid": "modal-gradient",
|
|
104007
104067
|
className: "absolute bottom-0 left-0 mt-8 mb-0 h-2! w-full border-none",
|
|
104008
104068
|
style: { backgroundImage: "linear-gradient(90deg, var(--color-light-blue) 0%, var(--color-primary) 50.52%, var(--color-pink) 100%)" }
|
|
104009
104069
|
})
|
|
@@ -104055,6 +104115,7 @@ const NumberField = ({ name, value = 0, max: max$2, min: min$2 = 0, isDisabled,
|
|
|
104055
104115
|
if (value > 0) onChange?.(value - 1);
|
|
104056
104116
|
};
|
|
104057
104117
|
return /* @__PURE__ */ jsxs("div", {
|
|
104118
|
+
"data-testid": "number-field-container",
|
|
104058
104119
|
className: `inline-flex flex-col ${className}`,
|
|
104059
104120
|
children: [
|
|
104060
104121
|
label && /* @__PURE__ */ jsx("label", {
|
|
@@ -104068,6 +104129,7 @@ const NumberField = ({ name, value = 0, max: max$2, min: min$2 = 0, isDisabled,
|
|
|
104068
104129
|
/* @__PURE__ */ jsx("button", {
|
|
104069
104130
|
type: "button",
|
|
104070
104131
|
onClick: handleDecrement,
|
|
104132
|
+
disabled: isDisabled,
|
|
104071
104133
|
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",
|
|
104072
104134
|
children: "-"
|
|
104073
104135
|
}),
|
|
@@ -104085,6 +104147,7 @@ const NumberField = ({ name, value = 0, max: max$2, min: min$2 = 0, isDisabled,
|
|
|
104085
104147
|
/* @__PURE__ */ jsx("button", {
|
|
104086
104148
|
type: "button",
|
|
104087
104149
|
onClick: handleIncrement,
|
|
104150
|
+
disabled: isDisabled,
|
|
104088
104151
|
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",
|
|
104089
104152
|
children: "+"
|
|
104090
104153
|
})
|
|
@@ -109664,6 +109727,7 @@ const Popover = forwardRef(({ content, children, hoverEnabled = false, passedOpe
|
|
|
109664
109727
|
"w-fit rounded border border-gray-200! bg-white p-5": style$1 === "minimal",
|
|
109665
109728
|
"card w-[489px] drop-shadow-xl": style$1 === "card"
|
|
109666
109729
|
}),
|
|
109730
|
+
"data-testid": "popover-container",
|
|
109667
109731
|
"data-component": "Popover",
|
|
109668
109732
|
children: [style$1 === "minimal" && content, style$1 === "card" && /* @__PURE__ */ jsx("div", {
|
|
109669
109733
|
className: "bg-linear-gradient-x pt-[3px]",
|
|
@@ -109687,11 +109751,19 @@ const Popover = forwardRef(({ content, children, hoverEnabled = false, passedOpe
|
|
|
109687
109751
|
const ProgressBar = ({ value, maxValue = 100, className }) => {
|
|
109688
109752
|
const [width, setWidth] = useState(0);
|
|
109689
109753
|
useEffect(() => {
|
|
109690
|
-
|
|
109754
|
+
if (value <= 0) setWidth(0);
|
|
109755
|
+
else if (maxValue <= 0) setWidth(0);
|
|
109756
|
+
else if (value >= maxValue) setWidth(100);
|
|
109757
|
+
else setWidth(value / maxValue * 100);
|
|
109691
109758
|
}, [value, maxValue]);
|
|
109692
109759
|
return /* @__PURE__ */ jsx("div", {
|
|
109693
109760
|
className: cn("h-2 rounded-lg bg-gray-100", className),
|
|
109761
|
+
role: "progressbar",
|
|
109762
|
+
"aria-valuenow": value,
|
|
109763
|
+
"aria-valuemin": 0,
|
|
109764
|
+
"aria-valuemax": maxValue,
|
|
109694
109765
|
children: /* @__PURE__ */ jsx("div", {
|
|
109766
|
+
"data-testid": "progress-bar-fill",
|
|
109695
109767
|
className: "h-2 rounded-lg bg-[#27295c] transition-all duration-1000 ease-in-out",
|
|
109696
109768
|
style: { width: `${width}%` }
|
|
109697
109769
|
})
|
|
@@ -109701,6 +109773,7 @@ const ProgressBar = ({ value, maxValue = 100, className }) => {
|
|
|
109701
109773
|
//#endregion
|
|
109702
109774
|
//#region src/components/radioButton/index.tsx
|
|
109703
109775
|
const RadioButton = ({ id, name, value, label, onChange, checked, dataTestId, className, containerClassName, labelClassName,...props }) => /* @__PURE__ */ jsxs("div", {
|
|
109776
|
+
"data-testid": "radio-button-container",
|
|
109704
109777
|
className: `${containerClassName || "radio-button-container"} relative flex items-start`,
|
|
109705
109778
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
109706
109779
|
className: "relative",
|
|
@@ -109709,7 +109782,7 @@ const RadioButton = ({ id, name, value, label, onChange, checked, dataTestId, cl
|
|
|
109709
109782
|
id,
|
|
109710
109783
|
name,
|
|
109711
109784
|
value,
|
|
109712
|
-
onChange,
|
|
109785
|
+
onChange: props.disabled ? undefined : onChange,
|
|
109713
109786
|
checked,
|
|
109714
109787
|
"data-testid": dataTestId,
|
|
109715
109788
|
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 })}`,
|
|
@@ -109831,9 +109904,11 @@ const Rating = ({ rating, ratings, size: size$3 = "normal", setReview, className
|
|
|
109831
109904
|
className: cn("flex flex-col", className),
|
|
109832
109905
|
children: [
|
|
109833
109906
|
/* @__PURE__ */ jsx("div", {
|
|
109907
|
+
"data-testid": "rating-container",
|
|
109834
109908
|
"data-component": "rating",
|
|
109835
109909
|
className: "flex flex-row gap-[2px]",
|
|
109836
109910
|
children: ratings.map((_$1, index$4) => /* @__PURE__ */ jsx("div", {
|
|
109911
|
+
"data-testid": `star-item-${index$4}`,
|
|
109837
109912
|
className: cn("relative", setReview && "cursor-pointer"),
|
|
109838
109913
|
onClick: () => handleStarClick(index$4),
|
|
109839
109914
|
onMouseEnter: () => handleHover(index$4),
|
|
@@ -115675,6 +115750,7 @@ const Select = forwardRef(({ options: options$1, placeholder, defaultValue, labe
|
|
|
115675
115750
|
});
|
|
115676
115751
|
return /* @__PURE__ */ jsxs("div", {
|
|
115677
115752
|
"data-component": "Select",
|
|
115753
|
+
"data-testid": "select-container",
|
|
115678
115754
|
ref,
|
|
115679
115755
|
className: clsx_default("m-0 grid gap-2 p-0", width ? width : fullWidth && "w-full", className),
|
|
115680
115756
|
children: [
|
|
@@ -115684,6 +115760,7 @@ const Select = forwardRef(({ options: options$1, placeholder, defaultValue, labe
|
|
|
115684
115760
|
}),
|
|
115685
115761
|
/* @__PURE__ */ jsx(StateManagedSelect$1, {
|
|
115686
115762
|
"data-component": "select",
|
|
115763
|
+
"data-testid": "select-input",
|
|
115687
115764
|
options: options$1,
|
|
115688
115765
|
menuPlacement: "auto",
|
|
115689
115766
|
isDisabled,
|
|
@@ -115732,6 +115809,7 @@ Select.displayName = "Select";
|
|
|
115732
115809
|
//#region src/components/settingsCard/index.tsx
|
|
115733
115810
|
const SettingsCard = ({ icon, title, link, ManageText, LinkComponent }) => /* @__PURE__ */ jsxs("div", {
|
|
115734
115811
|
"data-component": "SettingsCard",
|
|
115812
|
+
"data-testid": "settings-card",
|
|
115735
115813
|
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",
|
|
115736
115814
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
115737
115815
|
className: "flex items-center gap-4",
|
|
@@ -115748,19 +115826,22 @@ const SettingsCard = ({ icon, title, link, ManageText, LinkComponent }) => /* @_
|
|
|
115748
115826
|
|
|
115749
115827
|
//#endregion
|
|
115750
115828
|
//#region src/components/skeleton/index.tsx
|
|
115751
|
-
const Skeleton = ({ className }) => /* @__PURE__ */ jsx("span", {
|
|
115829
|
+
const Skeleton = ({ className, "data-testid": dataTestId }) => /* @__PURE__ */ jsx("span", {
|
|
115752
115830
|
"data-component": "genericSkeleton",
|
|
115831
|
+
"data-testid": dataTestId || "skeleton",
|
|
115753
115832
|
className: cn("inline-block rounded-md", "animate-pulse bg-gray-100/50", className)
|
|
115754
115833
|
});
|
|
115755
115834
|
|
|
115756
115835
|
//#endregion
|
|
115757
115836
|
//#region src/components/skillPill/index.tsx
|
|
115758
115837
|
const SkillPill = ({ name, number }) => /* @__PURE__ */ jsxs("div", {
|
|
115838
|
+
"data-testid": "skill-pill-container",
|
|
115759
115839
|
className: "flex items-center rounded-full border border-gray-200 p-[3px]",
|
|
115760
115840
|
children: [/* @__PURE__ */ jsx("span", {
|
|
115761
115841
|
className: "pr-4 pl-3",
|
|
115762
115842
|
children: name
|
|
115763
115843
|
}), /* @__PURE__ */ jsx("span", {
|
|
115844
|
+
"data-testid": "skill-pill-number",
|
|
115764
115845
|
className: "bg-turquoise-200 grid h-[30px] min-w-[30px] place-content-center rounded-full px-2.5",
|
|
115765
115846
|
children: number
|
|
115766
115847
|
})]
|
|
@@ -115837,7 +115918,10 @@ const Stepper = ({ steps, setStep = () => {}, variant = "default", clickableStep
|
|
|
115837
115918
|
children: [(index$4 < activeStep || isCompleted) && /* @__PURE__ */ jsx("div", {
|
|
115838
115919
|
className: "flex items-center justify-center text-white",
|
|
115839
115920
|
children: /* @__PURE__ */ jsx(IconCheck, { size: variant === "small" || isMobile ? 7 : 12 })
|
|
115840
|
-
}), index$4 === activeStep && /* @__PURE__ */ jsx("div", {
|
|
115921
|
+
}), index$4 === activeStep && /* @__PURE__ */ jsx("div", {
|
|
115922
|
+
"data-testid": "active-step-indicator",
|
|
115923
|
+
className: `${variant === "small" || isMobile ? "size-1" : "size-2"} bg-light-blue rounded-full`
|
|
115924
|
+
})]
|
|
115841
115925
|
}),
|
|
115842
115926
|
/* @__PURE__ */ jsx("div", {
|
|
115843
115927
|
className: "flex flex-wrap items-center justify-center",
|
|
@@ -115857,8 +115941,10 @@ const Stepper = ({ steps, setStep = () => {}, variant = "default", clickableStep
|
|
|
115857
115941
|
//#endregion
|
|
115858
115942
|
//#region src/components/stickyMobileButton/index.tsx
|
|
115859
115943
|
const StickyMobileButtonWrapper = ({ children }) => /* @__PURE__ */ jsx("div", {
|
|
115944
|
+
"data-testid": "sticky-mobile-button-wrapper",
|
|
115860
115945
|
className: "fixed inset-x-0 bottom-0 z-40 w-full bg-white p-8 md:hidden",
|
|
115861
115946
|
children: /* @__PURE__ */ jsx("div", {
|
|
115947
|
+
"data-testid": "sticky-mobile-button-grid",
|
|
115862
115948
|
className: "grid place-content-center",
|
|
115863
115949
|
children
|
|
115864
115950
|
})
|
|
@@ -115866,15 +115952,18 @@ const StickyMobileButtonWrapper = ({ children }) => /* @__PURE__ */ jsx("div", {
|
|
|
115866
115952
|
|
|
115867
115953
|
//#endregion
|
|
115868
115954
|
//#region src/components/table/index.tsx
|
|
115869
|
-
const Table = ({ children, className }) => /* @__PURE__ */ jsx("div", {
|
|
115955
|
+
const Table = ({ children, className,...props }) => /* @__PURE__ */ jsx("div", {
|
|
115956
|
+
"data-testid": "table",
|
|
115870
115957
|
"data-component": "table",
|
|
115871
115958
|
className: cn("table w-full table-fixed border-collapse overflow-auto", className),
|
|
115959
|
+
...props,
|
|
115872
115960
|
children
|
|
115873
115961
|
});
|
|
115874
115962
|
|
|
115875
115963
|
//#endregion
|
|
115876
115964
|
//#region src/components/table/tableCell/index.tsx
|
|
115877
115965
|
const TableCell = ({ children, smallPadding, className }) => /* @__PURE__ */ jsx("div", {
|
|
115966
|
+
"data-testid": "tableCell",
|
|
115878
115967
|
"data-component": "tableCell",
|
|
115879
115968
|
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)}`,
|
|
115880
115969
|
children
|
|
@@ -115884,20 +115973,25 @@ const TableCell = ({ children, smallPadding, className }) => /* @__PURE__ */ jsx
|
|
|
115884
115973
|
//#region src/components/table/tableHeader/index.tsx
|
|
115885
115974
|
const TableHeader = ({ children }) => /* @__PURE__ */ jsx("div", {
|
|
115886
115975
|
"data-component": "tableHeader",
|
|
115976
|
+
"data-testid": "tableHeader",
|
|
115887
115977
|
className: "table-header-group border-b border-gray-200",
|
|
115888
115978
|
children
|
|
115889
115979
|
});
|
|
115890
115980
|
|
|
115891
115981
|
//#endregion
|
|
115892
115982
|
//#region src/components/table/tableHeaderItem/index.tsx
|
|
115893
|
-
const TableHeaderItem = ({ children, smallPadding, className }) => /* @__PURE__ */ jsx("div", {
|
|
115983
|
+
const TableHeaderItem = ({ children, smallPadding, className,...props }) => /* @__PURE__ */ jsx("div", {
|
|
115984
|
+
"data-testid": "tableHeaderItem",
|
|
115985
|
+
"data-component": "tableHeaderItem",
|
|
115894
115986
|
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),
|
|
115987
|
+
...props,
|
|
115895
115988
|
children
|
|
115896
115989
|
});
|
|
115897
115990
|
|
|
115898
115991
|
//#endregion
|
|
115899
115992
|
//#region src/components/table/tableHeaderRow/index.tsx
|
|
115900
115993
|
const TableHeaderRow = ({ children,...props }) => /* @__PURE__ */ jsx("div", {
|
|
115994
|
+
"data-testid": "tableHeaderRow",
|
|
115901
115995
|
"data-component": "tableHeaderRow",
|
|
115902
115996
|
className: "table-row xl:border-0 xl:border-b xl:border-solid xl:border-gray-300",
|
|
115903
115997
|
...props,
|
|
@@ -115906,10 +116000,11 @@ const TableHeaderRow = ({ children,...props }) => /* @__PURE__ */ jsx("div", {
|
|
|
115906
116000
|
|
|
115907
116001
|
//#endregion
|
|
115908
116002
|
//#region src/components/table/tableRow/index.tsx
|
|
115909
|
-
function TableRow({ children, className,...props }) {
|
|
116003
|
+
function TableRow({ children, className, header,...props }) {
|
|
115910
116004
|
return /* @__PURE__ */ jsx("div", {
|
|
116005
|
+
"data-testid": "tableRow",
|
|
115911
116006
|
"data-component": "tableRow",
|
|
115912
|
-
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)}`,
|
|
116007
|
+
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)}`,
|
|
115913
116008
|
...props,
|
|
115914
116009
|
children
|
|
115915
116010
|
});
|
|
@@ -115934,9 +116029,9 @@ const TabsBadge = ({ children }) => {
|
|
|
115934
116029
|
const isCircular = typeof children === "number" && children <= 9 || typeof children === "string" && children.length === 1 || false;
|
|
115935
116030
|
return /* @__PURE__ */ jsx("div", {
|
|
115936
116031
|
"data-testid": "tabs-badge",
|
|
115937
|
-
className: clsx_default("bg-pink h-5
|
|
115938
|
-
"w-5 text-center": isCircular,
|
|
115939
|
-
"px-2": !isCircular
|
|
116032
|
+
className: clsx_default("bg-pink h-5 text-xs leading-5 font-medium text-white", {
|
|
116033
|
+
"rounded-full w-5 text-center": isCircular,
|
|
116034
|
+
"rounded px-2": !isCircular
|
|
115940
116035
|
}),
|
|
115941
116036
|
children
|
|
115942
116037
|
});
|
|
@@ -116046,6 +116141,7 @@ function ThemeIcon({ styleVariant = "black", className, icon, adjustedSize, titl
|
|
|
116046
116141
|
"text-red-500": styleVariant === COLOR.ERROR
|
|
116047
116142
|
}, className);
|
|
116048
116143
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("div", {
|
|
116144
|
+
"data-testid": "theme-icon",
|
|
116049
116145
|
"data-tooltip-id": title,
|
|
116050
116146
|
"data-tooltip-content": title,
|
|
116051
116147
|
"data-component": "ThemeIcon",
|
|
@@ -116094,14 +116190,19 @@ const TimeInput = forwardRef(({ label, error: error$1, withSeconds, className =
|
|
|
116094
116190
|
const Toggle = ({ onClick, value, disabled = false }) => {
|
|
116095
116191
|
const handleToggle = (e$1) => {
|
|
116096
116192
|
e$1.stopPropagation();
|
|
116097
|
-
onClick();
|
|
116193
|
+
if (!disabled) onClick();
|
|
116098
116194
|
};
|
|
116099
116195
|
return /* @__PURE__ */ jsx("div", {
|
|
116100
116196
|
onClick: handleToggle,
|
|
116101
116197
|
className: "cursor-pointer",
|
|
116198
|
+
"data-testid": "toggle-wrapper",
|
|
116102
116199
|
children: /* @__PURE__ */ jsx("div", {
|
|
116200
|
+
"data-testid": "toggle-background",
|
|
116103
116201
|
className: `relative h-6 w-12 rounded-xl ${value ? disabled ? "bg-turquoise-200" : "bg-turquoise-500" : "bg-gray-500"} ${disabled && "cursor-not-allowed"}`,
|
|
116104
|
-
children: /* @__PURE__ */ jsx("span", {
|
|
116202
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
116203
|
+
"data-testid": "toggle-circle",
|
|
116204
|
+
className: `absolute block size-[20px] rounded-full bg-white ${value ? "translate-x-[26px] translate-y-[2px]" : "translate-x-[2px] translate-y-[2px]"}`
|
|
116205
|
+
})
|
|
116105
116206
|
})
|
|
116106
116207
|
});
|
|
116107
116208
|
};
|
|
@@ -116148,10 +116249,13 @@ const Tooltip = ({ content, children, passedOpen = false, size: size$3 = "md", v
|
|
|
116148
116249
|
style: floatingStyles,
|
|
116149
116250
|
...getFloatingProps(),
|
|
116150
116251
|
className: "z-70 drop-shadow-xl",
|
|
116252
|
+
"data-testid": "tooltip",
|
|
116151
116253
|
"data-component": "tooltip",
|
|
116152
116254
|
children: variant === "default" ? /* @__PURE__ */ jsxs("div", {
|
|
116255
|
+
"data-testid": "tooltip-container",
|
|
116153
116256
|
className: "w-full rounded bg-gray-800 pt-[3px] text-white",
|
|
116154
116257
|
children: [/* @__PURE__ */ jsx("div", {
|
|
116258
|
+
"data-testid": "tooltip-content",
|
|
116155
116259
|
className: `${sizeClasses[size$3]} px-2 py-1 text-sm font-normal`,
|
|
116156
116260
|
children: content
|
|
116157
116261
|
}), /* @__PURE__ */ jsx(FloatingArrow, {
|
|
@@ -116160,11 +116264,14 @@ const Tooltip = ({ content, children, passedOpen = false, size: size$3 = "md", v
|
|
|
116160
116264
|
width: 10,
|
|
116161
116265
|
height: 6,
|
|
116162
116266
|
tipRadius: 1,
|
|
116267
|
+
"data-testid": "tooltip-arrow",
|
|
116163
116268
|
className: "fill-gray-800 drop-shadow-xl"
|
|
116164
116269
|
})]
|
|
116165
116270
|
}) : /* @__PURE__ */ jsxs("div", {
|
|
116271
|
+
"data-testid": "tooltip-container",
|
|
116166
116272
|
className: "bg-linear-gradient-x pt-[3px]",
|
|
116167
116273
|
children: [/* @__PURE__ */ jsx("div", {
|
|
116274
|
+
"data-testid": "tooltip-content",
|
|
116168
116275
|
className: `${sizeClasses[size$3]} overflow-hidden bg-white p-5 px-2 py-1 text-start text-sm font-normal`,
|
|
116169
116276
|
children: /* @__PURE__ */ jsx("p", { children: content })
|
|
116170
116277
|
}), size$3 === "md" ? /* @__PURE__ */ jsx(FloatingArrow, {
|
|
@@ -116194,7 +116301,7 @@ Tooltip.displayName = "Tooltip";
|
|
|
116194
116301
|
const TruncatedText = ({ text, limit = 20 }) => {
|
|
116195
116302
|
const [truncatedText, setTruncatedText] = useState(text);
|
|
116196
116303
|
useEffect(() => {
|
|
116197
|
-
if (text.length > limit) setTruncatedText(text.substring(0, limit) + "
|
|
116304
|
+
if (text.length > limit) setTruncatedText(text.substring(0, limit) + "...");
|
|
116198
116305
|
else setTruncatedText(text);
|
|
116199
116306
|
}, [text, limit]);
|
|
116200
116307
|
return /* @__PURE__ */ jsxs("div", {
|
|
@@ -116206,6 +116313,7 @@ const TruncatedText = ({ text, limit = 20 }) => {
|
|
|
116206
116313
|
content: text,
|
|
116207
116314
|
children: /* @__PURE__ */ jsx("span", {
|
|
116208
116315
|
className: "text-pink",
|
|
116316
|
+
"data-testid": "truncated-text-icon",
|
|
116209
116317
|
children: /* @__PURE__ */ jsx(IconMessageDots, { stroke: 1 })
|
|
116210
116318
|
})
|
|
116211
116319
|
})]
|
|
@@ -116217,6 +116325,7 @@ const TruncatedText = ({ text, limit = 20 }) => {
|
|
|
116217
116325
|
const UnorderedList = ({ children, className, actionItem,...props }) => /* @__PURE__ */ jsxs("ul", {
|
|
116218
116326
|
className: cn("m-0 last:border-none", className),
|
|
116219
116327
|
"data-component": "unorderedList",
|
|
116328
|
+
"data-testid": "unorderedList",
|
|
116220
116329
|
...props,
|
|
116221
116330
|
children: [children, actionItem && /* @__PURE__ */ jsx("span", {
|
|
116222
116331
|
className: "flex items-center",
|
|
@@ -140360,6 +140469,7 @@ const WysiwygEditor = forwardRef(({ id, content, className, placeholder, onChang
|
|
|
140360
140469
|
} }), [editor]);
|
|
140361
140470
|
if (typeof window === "undefined" || typeof document === "undefined") return null;
|
|
140362
140471
|
return /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsxs("div", {
|
|
140472
|
+
"data-testid": `${id}-container`,
|
|
140363
140473
|
className: cn("rounded-md border border-gray-200", className, error$1 && "border-red-600"),
|
|
140364
140474
|
children: [editor && /* @__PURE__ */ jsxs("div", {
|
|
140365
140475
|
className: "flex flex-wrap gap-2 border-b border-gray-200 p-2",
|
|
@@ -140368,24 +140478,28 @@ const WysiwygEditor = forwardRef(({ id, content, className, placeholder, onChang
|
|
|
140368
140478
|
children: [
|
|
140369
140479
|
/* @__PURE__ */ jsx("button", {
|
|
140370
140480
|
type: "button",
|
|
140481
|
+
"data-testid": "bold-button",
|
|
140371
140482
|
onClick: () => editor.chain().focus().toggleBold().run(),
|
|
140372
140483
|
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`,
|
|
140373
140484
|
children: /* @__PURE__ */ jsx(BoldIcon, {})
|
|
140374
140485
|
}),
|
|
140375
140486
|
/* @__PURE__ */ jsx("button", {
|
|
140376
140487
|
type: "button",
|
|
140488
|
+
"data-testid": "italic-button",
|
|
140377
140489
|
onClick: () => editor.chain().focus().toggleItalic().run(),
|
|
140378
140490
|
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`,
|
|
140379
140491
|
children: /* @__PURE__ */ jsx(ItalicIcon, {})
|
|
140380
140492
|
}),
|
|
140381
140493
|
/* @__PURE__ */ jsx("button", {
|
|
140382
140494
|
type: "button",
|
|
140495
|
+
"data-testid": "underline-button",
|
|
140383
140496
|
onClick: () => editor.chain().focus().toggleUnderline().run(),
|
|
140384
140497
|
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`,
|
|
140385
140498
|
children: /* @__PURE__ */ jsx(UnderlineIcon, {})
|
|
140386
140499
|
}),
|
|
140387
140500
|
/* @__PURE__ */ jsx("button", {
|
|
140388
140501
|
type: "button",
|
|
140502
|
+
"data-testid": "clear-formatting-button",
|
|
140389
140503
|
onClick: () => editor.chain().focus().clearNodes().unsetAllMarks().run(),
|
|
140390
140504
|
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",
|
|
140391
140505
|
children: /* @__PURE__ */ jsx(ClearFormattingIcon, {})
|
|
@@ -140395,11 +140509,13 @@ const WysiwygEditor = forwardRef(({ id, content, className, placeholder, onChang
|
|
|
140395
140509
|
className: "flex flex-row divide-x divide-gray-400 rounded-md border border-gray-400",
|
|
140396
140510
|
children: [/* @__PURE__ */ jsx("button", {
|
|
140397
140511
|
type: "button",
|
|
140512
|
+
"data-testid": "bullet-list-button",
|
|
140398
140513
|
onClick: () => editor.chain().focus().toggleBulletList().run(),
|
|
140399
140514
|
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`,
|
|
140400
140515
|
children: /* @__PURE__ */ jsx(ListIcon, {})
|
|
140401
140516
|
}), /* @__PURE__ */ jsx("button", {
|
|
140402
140517
|
type: "button",
|
|
140518
|
+
"data-testid": "ordered-list-button",
|
|
140403
140519
|
onClick: () => editor.chain().focus().toggleOrderedList().run(),
|
|
140404
140520
|
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`,
|
|
140405
140521
|
children: /* @__PURE__ */ jsx(ListNumbersIcon, {})
|