@youngonesworks/ui 0.1.78 → 0.1.79
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/.storybook/main.d.ts +3 -0
- package/dist/.storybook/preview.d.ts +12 -0
- package/dist/components/arbitraryExample.d.ts +1 -0
- package/dist/components/calendar/index.d.ts +0 -0
- package/dist/components/checkbox/Checkbox.stories.d.ts +9 -0
- package/dist/components/linkText/LinkText.stories.d.ts +6 -0
- package/dist/components/linkText/index.d.ts +11 -0
- package/dist/components/phoneInput/index.d.ts +0 -0
- package/dist/components/phoneNumberInput/PhoneInputSelect.test.d.ts +1 -0
- package/dist/components/profileMenu/ProfileMenu.d.ts +20 -0
- package/dist/components/scrollToTop/scrollToTop.css +36 -0
- package/dist/components/test/index.d.ts +1 -0
- package/dist/index.cjs +52 -37
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +53 -37
- package/dist/index.js.map +1 -1
- package/dist/react-is-esm.d.ts +38 -0
- package/dist/react-is-shim.d.ts +4 -0
- package/dist/react-tooltip-shim.d.ts +2 -0
- package/dist/src/components/accordion/Accordion.stories.d.ts +6 -0
- package/dist/src/components/accordion/AccordionItem.d.ts +14 -0
- package/dist/src/components/accordion/AccordionItem.stories.d.ts +11 -0
- package/dist/src/components/accordion/AccordionItem.test.d.ts +1 -0
- package/dist/src/components/accordion/AccordionWrapper.d.ts +7 -0
- package/dist/src/components/accordion/index.d.ts +2 -0
- package/dist/src/components/actionIcon/ActionIcon.stories.d.ts +9 -0
- package/dist/src/components/actionIcon/index.d.ts +24 -0
- package/dist/src/components/alert/Alert.stories.d.ts +6 -0
- package/dist/src/components/alert/Alert.test.d.ts +1 -0
- package/dist/src/components/alert/index.d.ts +18 -0
- package/dist/src/components/appleAppButtonIcon/AppleAppButtonIcon.stories.d.ts +6 -0
- package/dist/src/components/appleAppButtonIcon/index.d.ts +2 -0
- package/dist/src/components/autoCompleteInput/AutoCompleteInput.stories.d.ts +6 -0
- package/dist/src/components/autoCompleteInput/index.d.ts +16 -0
- package/dist/src/components/avatar/Avatar.stories.d.ts +6 -0
- package/dist/src/components/avatar/index.d.ts +22 -0
- package/dist/src/components/avatarIndicator/AvatarIndicator.stories.d.ts +6 -0
- package/dist/src/components/avatarIndicator/index.d.ts +6 -0
- package/dist/src/components/badge/Badge.stories.d.ts +6 -0
- package/dist/src/components/badge/index.d.ts +27 -0
- package/dist/src/components/bigBadge/BigBadge.stories.d.ts +6 -0
- package/dist/src/components/bigBadge/index.d.ts +9 -0
- package/dist/src/components/breadCrumb/BreadCrumb.stories.d.ts +6 -0
- package/dist/src/components/breadCrumb/index.d.ts +9 -0
- package/dist/src/components/button/Button.stories.d.ts +9 -0
- package/dist/src/components/button/buttonVariants.d.ts +10 -0
- package/dist/src/components/button/index.d.ts +16 -0
- package/dist/src/components/calendar/index.d.ts +0 -0
- package/dist/src/components/checkbox/Checkbox.stories.d.ts +9 -0
- package/dist/src/components/checkbox/index.d.ts +11 -0
- package/dist/src/components/divider/Divider.stories.d.ts +6 -0
- package/dist/src/components/divider/index.d.ts +6 -0
- package/dist/src/components/favouriteButton/FavouriteButton.stories.d.ts +6 -0
- package/dist/src/components/favouriteButton/FavouriteButton.test.d.ts +1 -0
- package/dist/src/components/favouriteButton/index.d.ts +24 -0
- package/dist/src/components/filters/FilterButton.d.ts +9 -0
- package/dist/src/components/filters/FilterButton.stories.d.ts +7 -0
- package/dist/src/components/filters/FilterButton.test.d.ts +1 -0
- package/dist/src/components/filters/FilterItem.d.ts +7 -0
- package/dist/src/components/filters/FilterItem.stories.d.ts +7 -0
- package/dist/src/components/filters/FilterItem.test.d.ts +1 -0
- package/dist/src/components/filters/Filters.stories.d.ts +7 -0
- package/dist/src/components/filters/index.d.ts +11 -0
- package/dist/src/components/googleAppButtonIcon/GoogleAppButtonIcon.stories.d.ts +6 -0
- package/dist/src/components/googleAppButtonIcon/index.d.ts +2 -0
- package/dist/src/components/hamburgerMenuButton/HamburgerMenuButton.stories.d.ts +6 -0
- package/dist/src/components/hamburgerMenuButton/index.d.ts +6 -0
- package/dist/src/components/hr/HR.stories.d.ts +6 -0
- package/dist/src/components/hr/index.d.ts +8 -0
- package/dist/src/components/island/Island.stories.d.ts +6 -0
- package/dist/src/components/island/index.d.ts +11 -0
- package/dist/src/components/label/Label.stories.d.ts +6 -0
- package/dist/src/components/label/index.d.ts +7 -0
- package/dist/src/components/linkText/LinkText.stories.d.ts +6 -0
- package/dist/src/components/linkText/index.d.ts +11 -0
- package/dist/src/components/loader/Loader.stories.d.ts +6 -0
- package/dist/src/components/loader/index.d.ts +4 -0
- package/dist/src/components/logo/Logo.stories.d.ts +6 -0
- package/dist/src/components/logo/index.d.ts +2 -0
- package/dist/src/components/modal/Modal.stories.d.ts +6 -0
- package/dist/src/components/modal/index.d.ts +19 -0
- package/dist/src/components/navButtons/NavButtons.stories.d.ts +10 -0
- package/dist/src/components/navButtons/NavButtons.test.d.ts +1 -0
- package/dist/src/components/navButtons/index.d.ts +6 -0
- package/dist/src/components/numberField/NumberField.stories.d.ts +6 -0
- package/dist/src/components/numberField/index.d.ts +14 -0
- package/dist/src/components/pageUnavailable/PageUnavailable.stories.d.ts +6 -0
- package/dist/src/components/pageUnavailable/index.d.ts +7 -0
- package/dist/src/components/passwordInput/PasswordInput.stories.d.ts +6 -0
- package/dist/src/components/passwordInput/index.d.ts +3 -0
- package/dist/src/components/phoneInput/index.d.ts +0 -0
- package/dist/src/components/popover/Popover.stories.d.ts +6 -0
- package/dist/src/components/popover/index.d.ts +15 -0
- package/dist/src/components/progressBar/ProgressBar.stories.d.ts +6 -0
- package/dist/src/components/progressBar/index.d.ts +7 -0
- package/dist/src/components/radioButton/RadioButton.stories.d.ts +6 -0
- package/dist/src/components/radioButton/index.d.ts +17 -0
- package/dist/src/components/rating/Rating.stories.d.ts +7 -0
- package/dist/src/components/rating/index.d.ts +10 -0
- package/dist/src/components/regionSelector/RegionSelector.stories.d.ts +6 -0
- package/dist/src/components/regionSelector/index.d.ts +11 -0
- package/dist/src/components/reviews/Reviews.stories.d.ts +6 -0
- package/dist/src/components/reviews/index.d.ts +13 -0
- package/dist/src/components/scrollToTop/ScrollToTop.stories.d.ts +6 -0
- package/dist/src/components/scrollToTop/index.d.ts +3 -0
- package/dist/src/components/searchInput/SearchInput.stories.d.ts +6 -0
- package/dist/src/components/searchInput/index.d.ts +1 -0
- package/dist/src/components/select/Select.stories.d.ts +6 -0
- package/dist/src/components/select/index.d.ts +26 -0
- package/dist/src/components/settingsCard/SettingsCard.stories.d.ts +6 -0
- package/dist/src/components/settingsCard/index.d.ts +14 -0
- package/dist/src/components/skeleton/Skeleton.stories.d.ts +6 -0
- package/dist/src/components/skeleton/index.d.ts +5 -0
- package/dist/src/components/skillPill/SkillPill.stories.d.ts +6 -0
- package/dist/src/components/skillPill/index.d.ts +6 -0
- package/dist/src/components/stepper/NumberedStepper.d.ts +13 -0
- package/dist/src/components/stepper/NumberedStepper.stories.d.ts +8 -0
- package/dist/src/components/stepper/NumberedStepper.test.d.ts +1 -0
- package/dist/src/components/stepper/Stepper.d.ts +16 -0
- package/dist/src/components/stepper/Stepper.stories.d.ts +9 -0
- package/dist/src/components/stepper/Stepper.test.d.ts +1 -0
- package/dist/src/components/stepper/index.d.ts +2 -0
- package/dist/src/components/stickyMobileButton/StickyMobileButtonWrapper.stories.d.ts +6 -0
- package/dist/src/components/stickyMobileButton/index.d.ts +6 -0
- package/dist/src/components/table/Table.stories.d.ts +6 -0
- package/dist/src/components/table/index.d.ts +6 -0
- package/dist/src/components/table/tableCell/TableCell.stories.d.ts +6 -0
- package/dist/src/components/table/tableCell/index.d.ts +7 -0
- package/dist/src/components/table/tableHeader/TableHeader.stories.d.ts +6 -0
- package/dist/src/components/table/tableHeader/index.d.ts +5 -0
- package/dist/src/components/table/tableHeaderItem/TableHeaderItem.stories.d.ts +6 -0
- package/dist/src/components/table/tableHeaderItem/index.d.ts +7 -0
- package/dist/src/components/table/tableHeaderRow/TableHeaderRow.stories.d.ts +6 -0
- package/dist/src/components/table/tableHeaderRow/index.d.ts +6 -0
- package/dist/src/components/table/tableRow/TableRow.stories.d.ts +6 -0
- package/dist/src/components/table/tableRow/index.d.ts +8 -0
- package/dist/src/components/tabs/Tab.d.ts +11 -0
- package/dist/src/components/tabs/Tab.stories.d.ts +15 -0
- package/dist/src/components/tabs/Tab.test.d.ts +1 -0
- package/dist/src/components/tabs/TabsBadge.d.ts +8 -0
- package/dist/src/components/tabs/TabsBadge.stories.d.ts +19 -0
- package/dist/src/components/tabs/TabsBadge.test.d.ts +1 -0
- package/dist/src/components/tabs/TabsWrapper.d.ts +17 -0
- package/dist/src/components/tabs/index.d.ts +2 -0
- package/dist/src/components/textArea/Textarea.stories.d.ts +6 -0
- package/dist/src/components/textArea/index.d.ts +8 -0
- package/dist/src/components/textInput/TextInput.stories.d.ts +8 -0
- package/dist/src/components/textInput/index.d.ts +22 -0
- package/dist/src/components/themeIcon/ThemeIcon.stories.d.ts +8 -0
- package/dist/src/components/themeIcon/index.d.ts +9 -0
- package/dist/src/components/toggle/Toggle.stories.d.ts +7 -0
- package/dist/src/components/toggle/index.d.ts +7 -0
- package/dist/src/components/tooltip/Tooltip.stories.d.ts +8 -0
- package/dist/src/components/tooltip/index.d.ts +13 -0
- package/dist/src/components/truncatedText/TruncatedText.stories.d.ts +7 -0
- package/dist/src/components/truncatedText/index.d.ts +6 -0
- package/dist/src/components/unorderedList/UnorderedList.stories.d.ts +7 -0
- package/dist/src/components/unorderedList/index.d.ts +7 -0
- package/dist/src/components/unorderedListItem/UnorderedListItem.stories.d.ts +7 -0
- package/dist/src/components/unorderedListItem/index.d.ts +9 -0
- package/dist/src/components/unstyledButton/UnstyledButton.stories.d.ts +6 -0
- package/dist/src/components/unstyledButton/index.d.ts +6 -0
- package/dist/src/components/wysiwygEditor/WysiwygEditor.stories.d.ts +7 -0
- package/dist/src/components/wysiwygEditor/index.d.ts +16 -0
- package/dist/src/icons/IconLoading.d.ts +2 -0
- package/dist/src/icons/IconStarEmpty.d.ts +2 -0
- package/dist/src/icons/IconStarFilled.d.ts +2 -0
- package/dist/src/icons/IconStarHalfFilled.d.ts +2 -0
- package/dist/src/icons/index.d.ts +4 -0
- package/dist/src/index.d.ts +60 -0
- package/dist/src/jsx-runtime-shim.d.ts +4 -0
- package/dist/src/stories/Button.d.ts +15 -0
- package/dist/src/stories/Button.stories.d.ts +23 -0
- package/dist/src/stories/Header.d.ts +12 -0
- package/dist/src/stories/Header.stories.d.ts +18 -0
- package/dist/src/stories/Page.d.ts +3 -0
- package/dist/src/stories/Page.stories.d.ts +12 -0
- package/dist/src/utils/cn.d.ts +2 -0
- package/dist/src/utils/enums.d.ts +48 -0
- package/dist/src/utils/formatIcon.d.ts +8 -0
- package/dist/styles/arbitrary-values.css +43 -0
- package/dist/styles.css +13 -0
- package/dist/tailwind-theme.d.ts +19 -0
- package/dist/use-client.d.ts +0 -0
- package/package.json +2 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ArbitraryExample: () => import("react/jsx-runtime").JSX.Element;
|
|
File without changes
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { Checkbox } from './index';
|
|
3
|
+
declare const meta: Meta<typeof Checkbox>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Checkbox>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Small: Story;
|
|
8
|
+
export declare const Indeterminate: Story;
|
|
9
|
+
export declare const ErrorState: Story;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type ReactElement } from 'react';
|
|
2
|
+
interface ILinkText {
|
|
3
|
+
children: ReactElement | string | ReactElement[];
|
|
4
|
+
classNames?: string;
|
|
5
|
+
}
|
|
6
|
+
/** @deprecated dont use this anymore, instead use the next link */
|
|
7
|
+
export declare const LinkText: {
|
|
8
|
+
({ children, classNames }: ILinkText): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
interface IProfileMenu {
|
|
3
|
+
title?: ReactNode;
|
|
4
|
+
metaTitle?: string;
|
|
5
|
+
icon?: ReactNode;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
classNames?: {
|
|
8
|
+
root?: string;
|
|
9
|
+
button?: string;
|
|
10
|
+
menu?: string;
|
|
11
|
+
};
|
|
12
|
+
content: {
|
|
13
|
+
key: number;
|
|
14
|
+
onClick: () => void;
|
|
15
|
+
title: string;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
}[];
|
|
18
|
+
}
|
|
19
|
+
declare const ProfileMenu: ({ title, metaTitle, icon, content, disabled, classNames }: IProfileMenu) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export default ProfileMenu;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* ScrollToTop component styles */
|
|
2
|
+
.scroll-to-top-button {
|
|
3
|
+
position: fixed;
|
|
4
|
+
right: -10px;
|
|
5
|
+
bottom: 105px;
|
|
6
|
+
z-index: 40;
|
|
7
|
+
display: flex;
|
|
8
|
+
height: 43px;
|
|
9
|
+
width: 62px;
|
|
10
|
+
cursor: pointer;
|
|
11
|
+
align-items: center;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
border-radius: 24px 0 0 24px;
|
|
14
|
+
border: 0;
|
|
15
|
+
padding-left: 0.5rem;
|
|
16
|
+
padding-right: 0.5rem;
|
|
17
|
+
color: black;
|
|
18
|
+
transition-duration: 500ms;
|
|
19
|
+
background-color: var(--color-turquoise-700);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.scroll-to-top-button:hover {
|
|
23
|
+
background-color: var(--color-turquoise-600);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.scroll-to-top-button:active {
|
|
27
|
+
transform: translateY(1px);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.scroll-to-top-button.visible {
|
|
31
|
+
transform: translateX(0);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.scroll-to-top-button.hidden {
|
|
35
|
+
transform: translateX(60px);
|
|
36
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const TestComponent: () => import("react/jsx-runtime").JSX.Element;
|
package/dist/index.cjs
CHANGED
|
@@ -48,6 +48,12 @@ const __tiptap_react = __toESM(require("@tiptap/react"));
|
|
|
48
48
|
const __tiptap_starter_kit = __toESM(require("@tiptap/starter-kit"));
|
|
49
49
|
const __utils_ssr = __toESM(require("@utils/ssr"));
|
|
50
50
|
|
|
51
|
+
//#region src/jsx-runtime-shim.ts
|
|
52
|
+
const jsx = react.createElement;
|
|
53
|
+
const jsxs = react.createElement;
|
|
54
|
+
const Fragment$1 = react.Fragment;
|
|
55
|
+
|
|
56
|
+
//#endregion
|
|
51
57
|
//#region src/components/unstyledButton/index.tsx
|
|
52
58
|
const UnstyledButton = (0, react.forwardRef)(({ className,...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
53
59
|
type: "button",
|
|
@@ -453,9 +459,9 @@ const TextInput = react.default.forwardRef(({ rightSection, leftSection, classNa
|
|
|
453
459
|
step,
|
|
454
460
|
maxLength,
|
|
455
461
|
className: (0, clsx.default)(`${loadingState ? "cursor-not-allowed" : ""}`, `${disabled ? "text-gray-500" : "text-gray-900"} selection:bg-turquoise-200 focus:border-turquoise-500 focus:ring-turquoise-500 active:border-turquoise-500 active:ring-turquoise-500 h-10 w-full rounded-[4px] border border-gray-200 bg-gray-50 px-3 text-sm font-normal outline-hidden ${rightSection && "pr-12"} ${leftSection && "pl-12"} ${error && "border-red-500 text-red-500 selection:bg-red-200 focus:border-red-500 focus:ring-red-500 focus:placeholder:text-red-500 active:border-red-500 active:ring-red-500"}`, className),
|
|
456
|
-
"aria-busy": loadingState ||
|
|
457
|
-
"data-lpignore": enablePasswordManagerAutofill ?
|
|
458
|
-
"data-1p-ignore": enablePasswordManagerAutofill ?
|
|
462
|
+
"aria-busy": loadingState || undefined,
|
|
463
|
+
"data-lpignore": enablePasswordManagerAutofill ? undefined : "true",
|
|
464
|
+
"data-1p-ignore": enablePasswordManagerAutofill ? undefined : "true",
|
|
459
465
|
ref,
|
|
460
466
|
...props,
|
|
461
467
|
type: password ? showPassword ? "text" : "password" : "text"
|
|
@@ -813,7 +819,7 @@ const Popover = (0, react.forwardRef)(({ content, children, hoverEnabled = false
|
|
|
813
819
|
//#region src/components/datePickerInput/index.tsx
|
|
814
820
|
const DatePickerInput = ({ lang, todayText, value, disabledFrom, disabledUntil, className, error, onChange, placeholder, label, disabled, minimalDropdownYears = 4 }) => {
|
|
815
821
|
const [selected, setSelected] = (0, react.useState)(value);
|
|
816
|
-
const today =
|
|
822
|
+
const today = new Date();
|
|
817
823
|
const [newMonth, setNewMonth] = (0, react.useState)(selected || today);
|
|
818
824
|
const [dropdownOpened, setDropdownOpened] = (0, react.useState)({
|
|
819
825
|
month: false,
|
|
@@ -894,7 +900,7 @@ const DatePickerInput = ({ lang, todayText, value, disabledFrom, disabledUntil,
|
|
|
894
900
|
captionLayout: "dropdown",
|
|
895
901
|
onMonthChange: (newMonth$1) => setNewMonth(newMonth$1),
|
|
896
902
|
showOutsideDays: true,
|
|
897
|
-
disabled: disabledFrom ? { before: disabledFrom } : disabledUntil ? { after: disabledUntil } :
|
|
903
|
+
disabled: disabledFrom ? { before: disabledFrom } : disabledUntil ? { after: disabledUntil } : undefined,
|
|
898
904
|
className,
|
|
899
905
|
classNames: {
|
|
900
906
|
month_grid: "mt-3 max-w-[400px] border-t border-gray-100",
|
|
@@ -932,7 +938,7 @@ const DatePickerInput = ({ lang, todayText, value, disabledFrom, disabledUntil,
|
|
|
932
938
|
Dropdown: (props) => {
|
|
933
939
|
const { goToMonth, months } = (0, react_day_picker.useDayPicker)();
|
|
934
940
|
const { className: dropdownClassName } = props;
|
|
935
|
-
const today$1 =
|
|
941
|
+
const today$1 = new Date();
|
|
936
942
|
/* istanbul ignore next - react-day-picker may not pass this className in our test env */
|
|
937
943
|
if (dropdownClassName === "rdp-months_dropdown") {
|
|
938
944
|
const selectedYear = newMonth.getFullYear();
|
|
@@ -980,8 +986,8 @@ const DatePickerInput = ({ lang, todayText, value, disabledFrom, disabledUntil,
|
|
|
980
986
|
children: todayText
|
|
981
987
|
})] });
|
|
982
988
|
} else if (dropdownClassName === "rdp-years_dropdown") {
|
|
983
|
-
const earliestYear =
|
|
984
|
-
const latestYear =
|
|
989
|
+
const earliestYear = new Date().getFullYear() - minimalDropdownYears;
|
|
990
|
+
const latestYear = new Date().getFullYear() + 1;
|
|
985
991
|
/* istanbul ignore else - defensive guard will always be truthy */
|
|
986
992
|
if (earliestYear && latestYear) {
|
|
987
993
|
const years = Array.from({ length: latestYear - earliestYear + 1 }, (_, i) => earliestYear + i).reverse();
|
|
@@ -1000,7 +1006,7 @@ const DatePickerInput = ({ lang, todayText, value, disabledFrom, disabledUntil,
|
|
|
1000
1006
|
className: "shadow-dropdown absolute z-70 rounded-md border border-gray-50 bg-white max-h-64 overflow-y-auto",
|
|
1001
1007
|
children: years.map((year) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
1002
1008
|
onClick: () => {
|
|
1003
|
-
const newDate = months?.[0].date ||
|
|
1009
|
+
const newDate = months?.[0].date || new Date();
|
|
1004
1010
|
newDate.setFullYear(year);
|
|
1005
1011
|
goToMonth(newDate);
|
|
1006
1012
|
setDropdownOpened({
|
|
@@ -1045,11 +1051,11 @@ const DatePickerInput = ({ lang, todayText, value, disabledFrom, disabledUntil,
|
|
|
1045
1051
|
className: "text-sm font-normal text-nowrap text-black",
|
|
1046
1052
|
children: selected ? selected.toLocaleDateString() : placeholder
|
|
1047
1053
|
}),
|
|
1048
|
-
selected !==
|
|
1054
|
+
selected !== undefined && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
1049
1055
|
className: "cursor-pointer text-sm font-normal text-gray-800",
|
|
1050
1056
|
onClick: () => {
|
|
1051
|
-
setSelected(
|
|
1052
|
-
onChange?.(
|
|
1057
|
+
setSelected(undefined);
|
|
1058
|
+
onChange?.(undefined);
|
|
1053
1059
|
},
|
|
1054
1060
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__tabler_icons_react.IconX, { size: 15 })
|
|
1055
1061
|
}) })
|
|
@@ -1716,6 +1722,10 @@ const PasswordInput = react.default.forwardRef((props, ref) => /* @__PURE__ */ (
|
|
|
1716
1722
|
}));
|
|
1717
1723
|
PasswordInput.displayName = "PasswordInput";
|
|
1718
1724
|
|
|
1725
|
+
//#endregion
|
|
1726
|
+
//#region node_modules/react-phone-input-2/lib/style.css
|
|
1727
|
+
var style_default = {};
|
|
1728
|
+
|
|
1719
1729
|
//#endregion
|
|
1720
1730
|
//#region src/components/phoneNumberInput/index.tsx
|
|
1721
1731
|
const PhoneNumberInput = ({ setValue, setPhoneNumberExt, phoneNumberExt, isValid = true, phoneNumberError, phoneNumberExtensionError, phoneNumberField, phoneNumberExtField, className, label, disabled }) => {
|
|
@@ -1731,11 +1741,13 @@ const PhoneNumberInput = ({ setValue, setPhoneNumberExt, phoneNumberExt, isValid
|
|
|
1731
1741
|
shouldDirty: true,
|
|
1732
1742
|
shouldValidate: true
|
|
1733
1743
|
});
|
|
1734
|
-
if (setPhoneNumberExt)
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1744
|
+
if (setPhoneNumberExt) {
|
|
1745
|
+
setPhoneNumberExt({
|
|
1746
|
+
number: numberWithoutDialCode,
|
|
1747
|
+
ext: dialCode,
|
|
1748
|
+
countryCode: country.countryCode || ""
|
|
1749
|
+
});
|
|
1750
|
+
}
|
|
1739
1751
|
}, [
|
|
1740
1752
|
setValue,
|
|
1741
1753
|
phoneNumberField,
|
|
@@ -1816,7 +1828,7 @@ const RadioButton = ({ id, name, value, label, onChange, checked, dataTestId, cl
|
|
|
1816
1828
|
id,
|
|
1817
1829
|
name,
|
|
1818
1830
|
value,
|
|
1819
|
-
onChange: props.disabled ?
|
|
1831
|
+
onChange: props.disabled ? undefined : onChange,
|
|
1820
1832
|
checked,
|
|
1821
1833
|
"data-testid": dataTestId,
|
|
1822
1834
|
className: `${(0, 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 })}`,
|
|
@@ -2584,7 +2596,7 @@ const TabContent = (0, react.forwardRef)(({ tab, setActiveTab, activeTab }, ref)
|
|
|
2584
2596
|
setActiveTab,
|
|
2585
2597
|
activeTab: activeTab === tab.value,
|
|
2586
2598
|
tabContent: tab.name,
|
|
2587
|
-
rightSection: tab?.rightSection ||
|
|
2599
|
+
rightSection: tab?.rightSection || undefined,
|
|
2588
2600
|
clickFnc: () => {
|
|
2589
2601
|
tab.clickFnc(tab.value);
|
|
2590
2602
|
setActiveTab(tab.value);
|
|
@@ -2850,23 +2862,26 @@ const ProfileMenu = ({ title, metaTitle, icon, content, disabled = false, classN
|
|
|
2850
2862
|
const buttonId = `${menuId}-button`;
|
|
2851
2863
|
const defaultStyling = "text-black flex items-center gap-1 bg-transparent py-1 px-2.5 h-9 min-w-9 cursor-pointer border-gray-200 focus:bg-gray-50 focus:ring focus:ring-primary focus:outline-none focus:border-0 focus:ring-inset";
|
|
2852
2864
|
const handleToggle = () => {
|
|
2853
|
-
if (!disabled)
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2865
|
+
if (!disabled) {
|
|
2866
|
+
setIsOpen((prev) => {
|
|
2867
|
+
const newIsOpen = !prev;
|
|
2868
|
+
/* istanbul ignore next - branch depends on async DOM focus */
|
|
2869
|
+
if (newIsOpen) {
|
|
2870
|
+
setTimeout(() => {
|
|
2871
|
+
/* istanbul ignore next - async focus behavior depends on DOM/timing */
|
|
2872
|
+
setFocusedIndex(0);
|
|
2873
|
+
/* istanbul ignore next - async focus behavior depends on DOM/timing */
|
|
2874
|
+
menuItemRefs.current[0]?.focus();
|
|
2875
|
+
}, 0);
|
|
2876
|
+
} else {
|
|
2877
|
+
/* istanbul ignore next - focus reset depends on DOM/timing */
|
|
2878
|
+
setFocusedIndex(-1);
|
|
2879
|
+
/* istanbul ignore next - focus reset depends on DOM/timing */
|
|
2880
|
+
buttonRef.current?.focus();
|
|
2881
|
+
}
|
|
2882
|
+
return newIsOpen;
|
|
2883
|
+
});
|
|
2884
|
+
}
|
|
2870
2885
|
};
|
|
2871
2886
|
/* istanbul ignore next - click handler behavior covered via integration; unit env flaky */
|
|
2872
2887
|
const handleItemClick = (onClick) => {
|
|
@@ -2948,7 +2963,7 @@ const ProfileMenu = ({ title, metaTitle, icon, content, disabled = false, classN
|
|
|
2948
2963
|
"aria-label": "Toggle profile menu",
|
|
2949
2964
|
"aria-expanded": isOpen,
|
|
2950
2965
|
"aria-haspopup": "menu",
|
|
2951
|
-
"aria-controls": isOpen ? menuId :
|
|
2966
|
+
"aria-controls": isOpen ? menuId : undefined,
|
|
2952
2967
|
className: (0, __utils_cn.cn)(__components_button_buttonVariants.buttonVariants["secondary"], defaultStyling, classNames?.button),
|
|
2953
2968
|
disabled,
|
|
2954
2969
|
onClick: handleToggle,
|