@youngonesworks/ui 0.1.79 → 0.1.81

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.
Files changed (185) hide show
  1. package/dist/index.cjs +191 -113
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.js +90 -12
  4. package/dist/index.js.map +1 -1
  5. package/package.json +1 -1
  6. package/dist/.storybook/main.d.ts +0 -3
  7. package/dist/.storybook/preview.d.ts +0 -12
  8. package/dist/components/arbitraryExample.d.ts +0 -1
  9. package/dist/components/calendar/index.d.ts +0 -0
  10. package/dist/components/checkbox/Checkbox.stories.d.ts +0 -9
  11. package/dist/components/linkText/LinkText.stories.d.ts +0 -6
  12. package/dist/components/linkText/index.d.ts +0 -11
  13. package/dist/components/phoneInput/index.d.ts +0 -0
  14. package/dist/components/phoneNumberInput/PhoneInputSelect.test.d.ts +0 -1
  15. package/dist/components/profileMenu/ProfileMenu.d.ts +0 -20
  16. package/dist/components/scrollToTop/scrollToTop.css +0 -36
  17. package/dist/components/test/index.d.ts +0 -1
  18. package/dist/react-is-esm.d.ts +0 -38
  19. package/dist/react-is-shim.d.ts +0 -4
  20. package/dist/react-tooltip-shim.d.ts +0 -2
  21. package/dist/src/components/accordion/Accordion.stories.d.ts +0 -6
  22. package/dist/src/components/accordion/AccordionItem.d.ts +0 -14
  23. package/dist/src/components/accordion/AccordionItem.stories.d.ts +0 -11
  24. package/dist/src/components/accordion/AccordionItem.test.d.ts +0 -1
  25. package/dist/src/components/accordion/AccordionWrapper.d.ts +0 -7
  26. package/dist/src/components/accordion/index.d.ts +0 -2
  27. package/dist/src/components/actionIcon/ActionIcon.stories.d.ts +0 -9
  28. package/dist/src/components/actionIcon/index.d.ts +0 -24
  29. package/dist/src/components/alert/Alert.stories.d.ts +0 -6
  30. package/dist/src/components/alert/Alert.test.d.ts +0 -1
  31. package/dist/src/components/alert/index.d.ts +0 -18
  32. package/dist/src/components/appleAppButtonIcon/AppleAppButtonIcon.stories.d.ts +0 -6
  33. package/dist/src/components/appleAppButtonIcon/index.d.ts +0 -2
  34. package/dist/src/components/autoCompleteInput/AutoCompleteInput.stories.d.ts +0 -6
  35. package/dist/src/components/autoCompleteInput/index.d.ts +0 -16
  36. package/dist/src/components/avatar/Avatar.stories.d.ts +0 -6
  37. package/dist/src/components/avatar/index.d.ts +0 -22
  38. package/dist/src/components/avatarIndicator/AvatarIndicator.stories.d.ts +0 -6
  39. package/dist/src/components/avatarIndicator/index.d.ts +0 -6
  40. package/dist/src/components/badge/Badge.stories.d.ts +0 -6
  41. package/dist/src/components/badge/index.d.ts +0 -27
  42. package/dist/src/components/bigBadge/BigBadge.stories.d.ts +0 -6
  43. package/dist/src/components/bigBadge/index.d.ts +0 -9
  44. package/dist/src/components/breadCrumb/BreadCrumb.stories.d.ts +0 -6
  45. package/dist/src/components/breadCrumb/index.d.ts +0 -9
  46. package/dist/src/components/button/Button.stories.d.ts +0 -9
  47. package/dist/src/components/button/buttonVariants.d.ts +0 -10
  48. package/dist/src/components/button/index.d.ts +0 -16
  49. package/dist/src/components/calendar/index.d.ts +0 -0
  50. package/dist/src/components/checkbox/Checkbox.stories.d.ts +0 -9
  51. package/dist/src/components/checkbox/index.d.ts +0 -11
  52. package/dist/src/components/divider/Divider.stories.d.ts +0 -6
  53. package/dist/src/components/divider/index.d.ts +0 -6
  54. package/dist/src/components/favouriteButton/FavouriteButton.stories.d.ts +0 -6
  55. package/dist/src/components/favouriteButton/FavouriteButton.test.d.ts +0 -1
  56. package/dist/src/components/favouriteButton/index.d.ts +0 -24
  57. package/dist/src/components/filters/FilterButton.d.ts +0 -9
  58. package/dist/src/components/filters/FilterButton.stories.d.ts +0 -7
  59. package/dist/src/components/filters/FilterButton.test.d.ts +0 -1
  60. package/dist/src/components/filters/FilterItem.d.ts +0 -7
  61. package/dist/src/components/filters/FilterItem.stories.d.ts +0 -7
  62. package/dist/src/components/filters/FilterItem.test.d.ts +0 -1
  63. package/dist/src/components/filters/Filters.stories.d.ts +0 -7
  64. package/dist/src/components/filters/index.d.ts +0 -11
  65. package/dist/src/components/googleAppButtonIcon/GoogleAppButtonIcon.stories.d.ts +0 -6
  66. package/dist/src/components/googleAppButtonIcon/index.d.ts +0 -2
  67. package/dist/src/components/hamburgerMenuButton/HamburgerMenuButton.stories.d.ts +0 -6
  68. package/dist/src/components/hamburgerMenuButton/index.d.ts +0 -6
  69. package/dist/src/components/hr/HR.stories.d.ts +0 -6
  70. package/dist/src/components/hr/index.d.ts +0 -8
  71. package/dist/src/components/island/Island.stories.d.ts +0 -6
  72. package/dist/src/components/island/index.d.ts +0 -11
  73. package/dist/src/components/label/Label.stories.d.ts +0 -6
  74. package/dist/src/components/label/index.d.ts +0 -7
  75. package/dist/src/components/linkText/LinkText.stories.d.ts +0 -6
  76. package/dist/src/components/linkText/index.d.ts +0 -11
  77. package/dist/src/components/loader/Loader.stories.d.ts +0 -6
  78. package/dist/src/components/loader/index.d.ts +0 -4
  79. package/dist/src/components/logo/Logo.stories.d.ts +0 -6
  80. package/dist/src/components/logo/index.d.ts +0 -2
  81. package/dist/src/components/modal/Modal.stories.d.ts +0 -6
  82. package/dist/src/components/modal/index.d.ts +0 -19
  83. package/dist/src/components/navButtons/NavButtons.stories.d.ts +0 -10
  84. package/dist/src/components/navButtons/NavButtons.test.d.ts +0 -1
  85. package/dist/src/components/navButtons/index.d.ts +0 -6
  86. package/dist/src/components/numberField/NumberField.stories.d.ts +0 -6
  87. package/dist/src/components/numberField/index.d.ts +0 -14
  88. package/dist/src/components/pageUnavailable/PageUnavailable.stories.d.ts +0 -6
  89. package/dist/src/components/pageUnavailable/index.d.ts +0 -7
  90. package/dist/src/components/passwordInput/PasswordInput.stories.d.ts +0 -6
  91. package/dist/src/components/passwordInput/index.d.ts +0 -3
  92. package/dist/src/components/phoneInput/index.d.ts +0 -0
  93. package/dist/src/components/popover/Popover.stories.d.ts +0 -6
  94. package/dist/src/components/popover/index.d.ts +0 -15
  95. package/dist/src/components/progressBar/ProgressBar.stories.d.ts +0 -6
  96. package/dist/src/components/progressBar/index.d.ts +0 -7
  97. package/dist/src/components/radioButton/RadioButton.stories.d.ts +0 -6
  98. package/dist/src/components/radioButton/index.d.ts +0 -17
  99. package/dist/src/components/rating/Rating.stories.d.ts +0 -7
  100. package/dist/src/components/rating/index.d.ts +0 -10
  101. package/dist/src/components/regionSelector/RegionSelector.stories.d.ts +0 -6
  102. package/dist/src/components/regionSelector/index.d.ts +0 -11
  103. package/dist/src/components/reviews/Reviews.stories.d.ts +0 -6
  104. package/dist/src/components/reviews/index.d.ts +0 -13
  105. package/dist/src/components/scrollToTop/ScrollToTop.stories.d.ts +0 -6
  106. package/dist/src/components/scrollToTop/index.d.ts +0 -3
  107. package/dist/src/components/searchInput/SearchInput.stories.d.ts +0 -6
  108. package/dist/src/components/searchInput/index.d.ts +0 -1
  109. package/dist/src/components/select/Select.stories.d.ts +0 -6
  110. package/dist/src/components/select/index.d.ts +0 -26
  111. package/dist/src/components/settingsCard/SettingsCard.stories.d.ts +0 -6
  112. package/dist/src/components/settingsCard/index.d.ts +0 -14
  113. package/dist/src/components/skeleton/Skeleton.stories.d.ts +0 -6
  114. package/dist/src/components/skeleton/index.d.ts +0 -5
  115. package/dist/src/components/skillPill/SkillPill.stories.d.ts +0 -6
  116. package/dist/src/components/skillPill/index.d.ts +0 -6
  117. package/dist/src/components/stepper/NumberedStepper.d.ts +0 -13
  118. package/dist/src/components/stepper/NumberedStepper.stories.d.ts +0 -8
  119. package/dist/src/components/stepper/NumberedStepper.test.d.ts +0 -1
  120. package/dist/src/components/stepper/Stepper.d.ts +0 -16
  121. package/dist/src/components/stepper/Stepper.stories.d.ts +0 -9
  122. package/dist/src/components/stepper/Stepper.test.d.ts +0 -1
  123. package/dist/src/components/stepper/index.d.ts +0 -2
  124. package/dist/src/components/stickyMobileButton/StickyMobileButtonWrapper.stories.d.ts +0 -6
  125. package/dist/src/components/stickyMobileButton/index.d.ts +0 -6
  126. package/dist/src/components/table/Table.stories.d.ts +0 -6
  127. package/dist/src/components/table/index.d.ts +0 -6
  128. package/dist/src/components/table/tableCell/TableCell.stories.d.ts +0 -6
  129. package/dist/src/components/table/tableCell/index.d.ts +0 -7
  130. package/dist/src/components/table/tableHeader/TableHeader.stories.d.ts +0 -6
  131. package/dist/src/components/table/tableHeader/index.d.ts +0 -5
  132. package/dist/src/components/table/tableHeaderItem/TableHeaderItem.stories.d.ts +0 -6
  133. package/dist/src/components/table/tableHeaderItem/index.d.ts +0 -7
  134. package/dist/src/components/table/tableHeaderRow/TableHeaderRow.stories.d.ts +0 -6
  135. package/dist/src/components/table/tableHeaderRow/index.d.ts +0 -6
  136. package/dist/src/components/table/tableRow/TableRow.stories.d.ts +0 -6
  137. package/dist/src/components/table/tableRow/index.d.ts +0 -8
  138. package/dist/src/components/tabs/Tab.d.ts +0 -11
  139. package/dist/src/components/tabs/Tab.stories.d.ts +0 -15
  140. package/dist/src/components/tabs/Tab.test.d.ts +0 -1
  141. package/dist/src/components/tabs/TabsBadge.d.ts +0 -8
  142. package/dist/src/components/tabs/TabsBadge.stories.d.ts +0 -19
  143. package/dist/src/components/tabs/TabsBadge.test.d.ts +0 -1
  144. package/dist/src/components/tabs/TabsWrapper.d.ts +0 -17
  145. package/dist/src/components/tabs/index.d.ts +0 -2
  146. package/dist/src/components/textArea/Textarea.stories.d.ts +0 -6
  147. package/dist/src/components/textArea/index.d.ts +0 -8
  148. package/dist/src/components/textInput/TextInput.stories.d.ts +0 -8
  149. package/dist/src/components/textInput/index.d.ts +0 -22
  150. package/dist/src/components/themeIcon/ThemeIcon.stories.d.ts +0 -8
  151. package/dist/src/components/themeIcon/index.d.ts +0 -9
  152. package/dist/src/components/toggle/Toggle.stories.d.ts +0 -7
  153. package/dist/src/components/toggle/index.d.ts +0 -7
  154. package/dist/src/components/tooltip/Tooltip.stories.d.ts +0 -8
  155. package/dist/src/components/tooltip/index.d.ts +0 -13
  156. package/dist/src/components/truncatedText/TruncatedText.stories.d.ts +0 -7
  157. package/dist/src/components/truncatedText/index.d.ts +0 -6
  158. package/dist/src/components/unorderedList/UnorderedList.stories.d.ts +0 -7
  159. package/dist/src/components/unorderedList/index.d.ts +0 -7
  160. package/dist/src/components/unorderedListItem/UnorderedListItem.stories.d.ts +0 -7
  161. package/dist/src/components/unorderedListItem/index.d.ts +0 -9
  162. package/dist/src/components/unstyledButton/UnstyledButton.stories.d.ts +0 -6
  163. package/dist/src/components/unstyledButton/index.d.ts +0 -6
  164. package/dist/src/components/wysiwygEditor/WysiwygEditor.stories.d.ts +0 -7
  165. package/dist/src/components/wysiwygEditor/index.d.ts +0 -16
  166. package/dist/src/icons/IconLoading.d.ts +0 -2
  167. package/dist/src/icons/IconStarEmpty.d.ts +0 -2
  168. package/dist/src/icons/IconStarFilled.d.ts +0 -2
  169. package/dist/src/icons/IconStarHalfFilled.d.ts +0 -2
  170. package/dist/src/icons/index.d.ts +0 -4
  171. package/dist/src/index.d.ts +0 -60
  172. package/dist/src/jsx-runtime-shim.d.ts +0 -4
  173. package/dist/src/stories/Button.d.ts +0 -15
  174. package/dist/src/stories/Button.stories.d.ts +0 -23
  175. package/dist/src/stories/Header.d.ts +0 -12
  176. package/dist/src/stories/Header.stories.d.ts +0 -18
  177. package/dist/src/stories/Page.d.ts +0 -3
  178. package/dist/src/stories/Page.stories.d.ts +0 -12
  179. package/dist/src/utils/cn.d.ts +0 -2
  180. package/dist/src/utils/enums.d.ts +0 -48
  181. package/dist/src/utils/formatIcon.d.ts +0 -8
  182. package/dist/styles/arbitrary-values.css +0 -43
  183. package/dist/styles.css +0 -13
  184. package/dist/tailwind-theme.d.ts +0 -19
  185. package/dist/use-client.d.ts +0 -0
package/dist/index.js CHANGED
@@ -4,33 +4,33 @@
4
4
  import * as React$1 from "react";
5
5
  import React, { Fragment, cloneElement, createRef, forwardRef, isValidElement, useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from "react";
6
6
  import { IconAlertCircle, IconArrowNarrowLeft, IconBold, IconCalendar, IconCheck, IconChevronDown, IconChevronLeft, IconChevronRight, IconChevronUp, IconCircleCheck, IconClearFormatting, IconEyeCheck, IconEyeOff, IconFilter, IconHeart, IconHeartFilled, IconItalic, IconList, IconListNumbers, IconMessageDots, IconSelector, IconUnderline, IconX } from "@tabler/icons-react";
7
- import { cn } from "@utils/cn";
7
+ import clsx from "clsx";
8
+ import { twMerge } from "tailwind-merge";
8
9
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
9
10
  import { Tooltip as Tooltip$1 } from "react-tooltip";
10
- import { ACTION_ICON_STYLE_VARIANT, COLOR, THEME_ICON_STYLE_VARIANT } from "@utils/enums";
11
- import formatIcon from "@utils/formatIcon";
12
- import clsx from "clsx";
13
11
  import { DayPicker, useDayPicker } from "react-day-picker";
14
12
  import { addMonths, format, setMonth } from "date-fns";
15
13
  import { enGB, fr, nl, nlBE } from "date-fns/locale";
16
14
  import { FloatingArrow, arrow, autoUpdate, flip, offset, shift, useClick, useDismiss, useFloating, useFocus, useHover, useInteractions, useRole } from "@floating-ui/react";
17
15
  import { createPortal } from "react-dom";
18
16
  import PhoneInput from "react-phone-input-2";
19
- import { Label as Label$1 } from "@components/label";
20
17
  import ReactSelect, { components } from "react-select";
21
- import { buttonVariants as buttonVariants$1 } from "@components/button/buttonVariants";
22
- import { UnstyledButton as UnstyledButton$1 } from "@components/unstyledButton";
23
18
  import { Placeholder } from "@tiptap/extension-placeholder";
24
19
  import { Underline } from "@tiptap/extension-underline";
25
20
  import { EditorContent, useEditor } from "@tiptap/react";
26
21
  import { StarterKit } from "@tiptap/starter-kit";
27
- import { isSSR } from "@utils/ssr";
28
22
 
29
23
  //#region src/jsx-runtime-shim.ts
30
24
  const jsx$1 = React$1.createElement;
31
25
  const jsxs$1 = React$1.createElement;
32
26
  const Fragment$2 = React$1.Fragment;
33
27
 
28
+ //#endregion
29
+ //#region src/utils/cn.ts
30
+ function cn(...inputs) {
31
+ return twMerge(clsx(inputs));
32
+ }
33
+
34
34
  //#endregion
35
35
  //#region src/components/unstyledButton/index.tsx
36
36
  const UnstyledButton = forwardRef(({ className,...props }, ref) => /* @__PURE__ */ jsx("button", {
@@ -94,6 +94,80 @@ const AccordionWrapper = ({ children, className }) => /* @__PURE__ */ jsx("div",
94
94
  children
95
95
  });
96
96
 
97
+ //#endregion
98
+ //#region src/utils/enums.ts
99
+ let ACTION_ICON_STYLE_VARIANT = /* @__PURE__ */ function(ACTION_ICON_STYLE_VARIANT$1) {
100
+ ACTION_ICON_STYLE_VARIANT$1["DEFAULT"] = "default";
101
+ ACTION_ICON_STYLE_VARIANT$1["TRANSPARENT"] = "transparent";
102
+ ACTION_ICON_STYLE_VARIANT$1["SMALL"] = "small";
103
+ ACTION_ICON_STYLE_VARIANT$1["ROUND"] = "round";
104
+ return ACTION_ICON_STYLE_VARIANT$1;
105
+ }({});
106
+ let THEME_ICON_STYLE_VARIANT = /* @__PURE__ */ function(THEME_ICON_STYLE_VARIANT$1) {
107
+ THEME_ICON_STYLE_VARIANT$1["PINK_WITH_BACKGROUND"] = "pink-with-background";
108
+ return THEME_ICON_STYLE_VARIANT$1;
109
+ }({});
110
+ let COLOR = /* @__PURE__ */ function(COLOR$1) {
111
+ COLOR$1["PRIMARY"] = "primary";
112
+ COLOR$1["BLACK"] = "black";
113
+ COLOR$1["NAVY_BLUE"] = "navy-blue";
114
+ COLOR$1["LIGHT_BLUE"] = "light-blue";
115
+ COLOR$1["LIGHT_BLUE_DISABLED"] = "light-blue-disabled";
116
+ COLOR$1["GREEN"] = "green";
117
+ COLOR$1["GREEN_LIGHT"] = "green-light";
118
+ COLOR$1["PINK"] = "pink";
119
+ COLOR$1["PINK_LIGHT"] = "pink-light";
120
+ COLOR$1["ORANGE"] = "orange";
121
+ COLOR$1["ORANGE_LIGHT"] = "orange-light";
122
+ COLOR$1["ACCENT_BLUE"] = "accent-blue";
123
+ COLOR$1["ACCENT_BLUE_LIGHT"] = "accent-blue-light";
124
+ COLOR$1["YELLOW"] = "yellow";
125
+ COLOR$1["CHECK"] = "check";
126
+ COLOR$1["WARNING"] = "warning";
127
+ COLOR$1["ERROR"] = "error";
128
+ COLOR$1["SUCCESS"] = "success";
129
+ COLOR$1["WARNING_LIGHT"] = "warning-light";
130
+ COLOR$1["ULTRA_LIGHT_BLUE"] = "ultra-light-blue";
131
+ COLOR$1["ULTRA_LIGHT_GRAY"] = "ultra-light-gray";
132
+ COLOR$1["TURQUOISE"] = "turquoise";
133
+ COLOR$1["RED"] = "red";
134
+ COLOR$1["GRAY"] = "gray";
135
+ COLOR$1["WHITE"] = "white";
136
+ COLOR$1["PURPLE"] = "purple";
137
+ COLOR$1["PURPLE_LIGHT"] = "purple-light";
138
+ COLOR$1["NAVY_BLUE_SHADES"] = "navy-blue-shades";
139
+ return COLOR$1;
140
+ }({});
141
+ let REGION = /* @__PURE__ */ function(REGION$1) {
142
+ REGION$1["NETHERLANDS"] = "nl";
143
+ REGION$1["BELGIUM"] = "nl-BE";
144
+ REGION$1["UNITED_KINGDOM"] = "gb";
145
+ return REGION$1;
146
+ }({});
147
+ let TOOLTIP_COLOR = /* @__PURE__ */ function(TOOLTIP_COLOR$1) {
148
+ TOOLTIP_COLOR$1["DEFAULT"] = "default";
149
+ TOOLTIP_COLOR$1["WHITE"] = "white";
150
+ return TOOLTIP_COLOR$1;
151
+ }({});
152
+
153
+ //#endregion
154
+ //#region src/utils/formatIcon.ts
155
+ const globalDefaultFormatAttributes = {};
156
+ /**
157
+ * Format icon with default attributes. Icon attributes will
158
+ * always supersede default attributes which in term will supersede
159
+ * global default attributes.
160
+ */
161
+ function formatIcon(icon, defaultFormatAttributes) {
162
+ if (!React.isValidElement(icon)) return icon;
163
+ return cloneElement(icon, {
164
+ ...globalDefaultFormatAttributes,
165
+ ...defaultFormatAttributes,
166
+ ...icon.props,
167
+ ...{ className: clsx(globalDefaultFormatAttributes.className, defaultFormatAttributes.className, icon.props.className) }
168
+ });
169
+ }
170
+
97
171
  //#endregion
98
172
  //#region src/components/actionIcon/index.tsx
99
173
  const ActionIcon = forwardRef(({ title, disabled = false, styleVariant = "default", icon, type = "button", "data-testid": testId, iconSize = 20, strokeWidth = 1, onClick, className,...props }, ref) => {
@@ -1735,7 +1809,7 @@ const PhoneNumberInput = ({ setValue, setPhoneNumberExt, phoneNumberExt, isValid
1735
1809
  return /* @__PURE__ */ jsxs("div", {
1736
1810
  className: `${className}`,
1737
1811
  children: [
1738
- typeof label === "string" ? /* @__PURE__ */ jsx(Label$1, {
1812
+ typeof label === "string" ? /* @__PURE__ */ jsx(Label, {
1739
1813
  htmlFor: "phoneNumber",
1740
1814
  className: "mb-2",
1741
1815
  children: label
@@ -2935,14 +3009,14 @@ const ProfileMenu = ({ title, metaTitle, icon, content, disabled = false, classN
2935
3009
  ref: menuRef,
2936
3010
  "data-context-menu-id": metaTitle,
2937
3011
  "data-context-menu-content": metaTitle,
2938
- children: [/* @__PURE__ */ jsxs(UnstyledButton$1, {
3012
+ children: [/* @__PURE__ */ jsxs(UnstyledButton, {
2939
3013
  ref: buttonRef,
2940
3014
  id: buttonId,
2941
3015
  "aria-label": "Toggle profile menu",
2942
3016
  "aria-expanded": isOpen,
2943
3017
  "aria-haspopup": "menu",
2944
3018
  "aria-controls": isOpen ? menuId : undefined,
2945
- className: cn(buttonVariants$1["secondary"], defaultStyling, classNames?.button),
3019
+ className: cn(buttonVariants["secondary"], defaultStyling, classNames?.button),
2946
3020
  disabled,
2947
3021
  onClick: handleToggle,
2948
3022
  children: [title && /* @__PURE__ */ jsx("span", {
@@ -2956,7 +3030,7 @@ const ProfileMenu = ({ title, metaTitle, icon, content, disabled = false, classN
2956
3030
  className: cn("absolute right-0 z-10 mt-2 w-auto min-w-[200px] rounded-md border-[0.0625rem] border-gray-200 bg-white p-1 shadow-md", classNames?.menu),
2957
3031
  children: content.map(
2958
3032
  /* istanbul ignore next - render callback not meaningful for unit coverage */
2959
- (c, index) => /* @__PURE__ */ jsx(UnstyledButton$1, {
3033
+ (c, index) => /* @__PURE__ */ jsx(UnstyledButton, {
2960
3034
  ref: (el) => {
2961
3035
  menuItemRefs.current[index] = el;
2962
3036
  },
@@ -2973,6 +3047,10 @@ const ProfileMenu = ({ title, metaTitle, icon, content, disabled = false, classN
2973
3047
  }) });
2974
3048
  };
2975
3049
 
3050
+ //#endregion
3051
+ //#region src/utils/ssr.ts
3052
+ const isSSR = () => typeof window === "undefined" || typeof document === "undefined";
3053
+
2976
3054
  //#endregion
2977
3055
  //#region src/components/wysiwygEditor/index.tsx
2978
3056
  const BoldIcon = () => /* @__PURE__ */ jsx(IconBold, {