@julseb-lib/react 1.0.24 → 1.0.26

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/index.cjs CHANGED
@@ -128,28 +128,28 @@ __export(index_exports, {
128
128
  Tooltip: () => Tooltip,
129
129
  URL_REGEX: () => URL_REGEX,
130
130
  Wrapper: () => Wrapper,
131
- addDay: () => import_utils149.addDay,
132
- addMonth: () => import_utils149.addMonth,
133
- addYear: () => import_utils149.addYear,
134
- calculateAverage: () => import_utils149.calculateAverage,
135
- calculateTotalSum: () => import_utils149.calculateTotalSum,
136
- capitalize: () => import_utils149.capitalize,
131
+ addDay: () => import_utils144.addDay,
132
+ addMonth: () => import_utils144.addMonth,
133
+ addYear: () => import_utils144.addYear,
134
+ calculateAverage: () => import_utils144.calculateAverage,
135
+ calculateTotalSum: () => import_utils144.calculateTotalSum,
136
+ capitalize: () => import_utils144.capitalize,
137
137
  clsx: () => clsx,
138
- convertDate: () => import_utils149.convertDate,
139
- convertDateShort: () => import_utils149.convertDateShort,
140
- convertPrice: () => import_utils149.convertPrice,
141
- convertToEmail: () => import_utils149.convertToEmail,
142
- convertYoutube: () => import_utils149.convertYoutube,
138
+ convertDate: () => import_utils144.convertDate,
139
+ convertDateShort: () => import_utils144.convertDateShort,
140
+ convertPrice: () => import_utils144.convertPrice,
141
+ convertToEmail: () => import_utils144.convertToEmail,
142
+ convertYoutube: () => import_utils144.convertYoutube,
143
143
  countries: () => countries,
144
- deleteDuplicates: () => import_utils149.deleteDuplicates,
144
+ deleteDuplicates: () => import_utils144.deleteDuplicates,
145
145
  designTokens: () => designTokens,
146
- detectLanguage: () => import_utils149.detectLanguage,
147
- disableScroll: () => import_utils149.disableScroll,
148
- emailRegex: () => import_utils149.emailRegex,
149
- enableScroll: () => import_utils149.enableScroll,
150
- filterObject: () => import_utils149.filterObject,
151
- formatDate: () => import_utils149.formatDate,
152
- formatHour: () => import_utils149.formatHour,
146
+ detectLanguage: () => detectLanguage,
147
+ disableScroll: () => disableScroll,
148
+ emailRegex: () => import_utils144.emailRegex,
149
+ enableScroll: () => enableScroll,
150
+ filterObject: () => import_utils144.filterObject,
151
+ formatDate: () => import_utils144.formatDate,
152
+ formatHour: () => import_utils144.formatHour,
153
153
  genAlignContent: () => genAlignContent,
154
154
  genAlignItems: () => genAlignItems,
155
155
  genBgAllColors: () => genBgAllColors,
@@ -184,43 +184,43 @@ __export(index_exports, {
184
184
  genTextColorHover: () => genTextColorHover,
185
185
  genTextColorShort: () => genTextColorShort,
186
186
  genVAlign: () => genVAlign,
187
- generateNumbers: () => import_utils149.generateNumbers,
188
- getFirstName: () => import_utils149.getFirstName,
189
- getInitials: () => import_utils149.getInitials,
190
- getLastName: () => import_utils149.getLastName,
191
- getNextDay: () => import_utils149.getNextDay,
192
- getPercentage: () => import_utils149.getPercentage,
193
- getRandom: () => import_utils149.getRandom,
194
- getRandomAvatar: () => import_utils149.getRandomAvatar,
195
- getRandomDate: () => import_utils149.getRandomDate,
196
- getRandomNumber: () => import_utils149.getRandomNumber,
197
- getRandomString: () => import_utils149.getRandomString,
198
- getRandomTime: () => import_utils149.getRandomTime,
199
- getTimeNow: () => import_utils149.getTimeNow,
200
- getToday: () => import_utils149.getToday,
201
- getTomorrow: () => import_utils149.getTomorrow,
202
- getYesterday: () => import_utils149.getYesterday,
203
- hexToRgb: () => import_utils149.hexToRgb,
187
+ generateNumbers: () => import_utils144.generateNumbers,
188
+ getFirstName: () => import_utils144.getFirstName,
189
+ getInitials: () => import_utils144.getInitials,
190
+ getLastName: () => import_utils144.getLastName,
191
+ getNextDay: () => import_utils144.getNextDay,
192
+ getPercentage: () => import_utils144.getPercentage,
193
+ getRandom: () => import_utils144.getRandom,
194
+ getRandomAvatar: () => import_utils144.getRandomAvatar,
195
+ getRandomDate: () => import_utils144.getRandomDate,
196
+ getRandomNumber: () => import_utils144.getRandomNumber,
197
+ getRandomString: () => import_utils144.getRandomString,
198
+ getRandomTime: () => import_utils144.getRandomTime,
199
+ getTimeNow: () => import_utils144.getTimeNow,
200
+ getToday: () => import_utils144.getToday,
201
+ getTomorrow: () => import_utils144.getTomorrow,
202
+ getYesterday: () => import_utils144.getYesterday,
203
+ hexToRgb: () => import_utils144.hexToRgb,
204
204
  libMarkdownEditorOptions: () => libMarkdownEditorOptions,
205
205
  libOptionsMarkdown: () => libOptionsMarkdown,
206
206
  linkifyText: () => linkifyText,
207
- passwordRegex: () => import_utils149.passwordRegex,
208
- rgbToHex: () => import_utils149.rgbToHex,
209
- scrollToTop: () => import_utils149.scrollToTop,
210
- slugify: () => import_utils149.slugify,
211
- sortByFrequency: () => import_utils149.sortByFrequency,
212
- stringifyPx: () => import_utils149.stringifyPx,
213
- toCamelCase: () => import_utils149.toCamelCase,
214
- toConstantCase: () => import_utils149.toConstantCase,
215
- toDotCase: () => import_utils149.toDotCase,
216
- toKebabCase: () => import_utils149.toKebabCase,
217
- toPascalCase: () => import_utils149.toPascalCase,
218
- toPathCase: () => import_utils149.toPathCase,
219
- toSentenceCase: () => import_utils149.toSentenceCase,
220
- toSnakeCase: () => import_utils149.toSnakeCase,
221
- toTitleCase: () => import_utils149.toTitleCase,
207
+ passwordRegex: () => import_utils144.passwordRegex,
208
+ rgbToHex: () => import_utils144.rgbToHex,
209
+ scrollToTop: () => scrollToTop,
210
+ slugify: () => import_utils144.slugify,
211
+ sortByFrequency: () => import_utils144.sortByFrequency,
212
+ stringifyPx: () => import_utils144.stringifyPx,
213
+ toCamelCase: () => import_utils144.toCamelCase,
214
+ toConstantCase: () => import_utils144.toConstantCase,
215
+ toDotCase: () => import_utils144.toDotCase,
216
+ toKebabCase: () => import_utils144.toKebabCase,
217
+ toPascalCase: () => import_utils144.toPascalCase,
218
+ toPathCase: () => import_utils144.toPathCase,
219
+ toSentenceCase: () => import_utils144.toSentenceCase,
220
+ toSnakeCase: () => import_utils144.toSnakeCase,
221
+ toTitleCase: () => import_utils144.toTitleCase,
222
222
  toast: () => toast,
223
- unslugify: () => import_utils149.unslugify,
223
+ unslugify: () => import_utils144.unslugify,
224
224
  useClickOutside: () => useClickOutside,
225
225
  useCopyToClipboard: () => useCopyToClipboard,
226
226
  useDebounce: () => useDebounce,
@@ -237,7 +237,7 @@ __export(index_exports, {
237
237
  usePagination: () => usePagination,
238
238
  useTouchScreen: () => useTouchScreen,
239
239
  useTranslation: () => useTranslation,
240
- uuid: () => import_utils149.uuid
240
+ uuid: () => import_utils144.uuid
241
241
  });
242
242
  module.exports = __toCommonJS(index_exports);
243
243
 
@@ -2181,8 +2181,46 @@ var genRingColorChildren = {
2181
2181
  white: "[&>*]:focus:ring-1 [&>*]:focus:ring-gray-500"
2182
2182
  };
2183
2183
 
2184
+ // src/lib/utils/detect-language.ts
2185
+ function detectLanguage() {
2186
+ if (window && typeof window !== "undefined") {
2187
+ if (localStorage.getItem("language") !== null) {
2188
+ return localStorage.getItem("language");
2189
+ } else if (localStorage.getItem("lang") !== null) {
2190
+ return localStorage.getItem("lang");
2191
+ } else {
2192
+ if (navigator && typeof navigator !== "undefined") {
2193
+ return navigator.language;
2194
+ }
2195
+ }
2196
+ }
2197
+ }
2198
+
2199
+ // src/lib/utils/disable-scroll.ts
2200
+ function disableScroll() {
2201
+ const body = document.body;
2202
+ body.style.height = "100vh";
2203
+ body.style.overflow = "hidden";
2204
+ return;
2205
+ }
2206
+
2207
+ // src/lib/utils/enable-scroll.ts
2208
+ function enableScroll() {
2209
+ const body = document.body;
2210
+ body.style.height = "";
2211
+ body.style.overflow = "";
2212
+ return;
2213
+ }
2214
+
2215
+ // src/lib/utils/scroll-to-top.ts
2216
+ function scrollToTop() {
2217
+ if (typeof window !== "undefined") {
2218
+ return window.scrollTo(0, 0);
2219
+ }
2220
+ }
2221
+
2184
2222
  // src/lib/index.ts
2185
- var import_utils149 = require("@julseb-lib/utils");
2223
+ var import_utils144 = require("@julseb-lib/utils");
2186
2224
 
2187
2225
  // src/lib/hooks/useClickOutside.tsx
2188
2226
  var import_react4 = require("react");
@@ -2429,7 +2467,6 @@ var usePaginatedData = (data, page, defaultLimit = 20) => {
2429
2467
  };
2430
2468
 
2431
2469
  // src/lib/hooks/usePagination.tsx
2432
- var import_utils19 = require("@julseb-lib/utils");
2433
2470
  var usePagination = ({
2434
2471
  currentPage,
2435
2472
  setCurrentPage,
@@ -2437,11 +2474,11 @@ var usePagination = ({
2437
2474
  }) => {
2438
2475
  const handlePrev = () => {
2439
2476
  setCurrentPage(currentPage - 1);
2440
- (0, import_utils19.scrollToTop)();
2477
+ scrollToTop();
2441
2478
  };
2442
2479
  const handleNext = () => {
2443
2480
  setCurrentPage(currentPage + 1);
2444
- (0, import_utils19.scrollToTop)();
2481
+ scrollToTop();
2445
2482
  };
2446
2483
  const handlePage = (n) => {
2447
2484
  if (n < 1) {
@@ -2453,7 +2490,7 @@ var usePagination = ({
2453
2490
  return;
2454
2491
  }
2455
2492
  setCurrentPage(n);
2456
- (0, import_utils19.scrollToTop)();
2493
+ scrollToTop();
2457
2494
  };
2458
2495
  return { handlePrev, handleNext, handlePage };
2459
2496
  };
@@ -2473,7 +2510,6 @@ var useTouchScreen = () => {
2473
2510
 
2474
2511
  // src/lib/hooks/useTranslation.tsx
2475
2512
  var import_react15 = require("react");
2476
- var import_utils20 = require("@julseb-lib/utils");
2477
2513
  var useTranslation = (translations) => {
2478
2514
  const [language, setLanguage] = (0, import_react15.useState)("en");
2479
2515
  const languages = Object.keys(translations);
@@ -3011,7 +3047,7 @@ var genFlexWrap = {
3011
3047
 
3012
3048
  // src/lib/components/Key/Key.tsx
3013
3049
  var import_react23 = require("react");
3014
- var import_utils27 = require("@julseb-lib/utils");
3050
+ var import_utils26 = require("@julseb-lib/utils");
3015
3051
  var import_jsx_runtime25 = require("react/jsx-runtime");
3016
3052
  var Key = ({
3017
3053
  className,
@@ -3047,7 +3083,7 @@ var Key = ({
3047
3083
  children: childrenArray.map((child, i) => /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_react23.Fragment, { children: [
3048
3084
  child,
3049
3085
  withSeparator && i !== childrenArray.length - 1 && " + "
3050
- ] }, (0, import_utils27.uuid)()))
3086
+ ] }, (0, import_utils26.uuid)()))
3051
3087
  }
3052
3088
  );
3053
3089
  };
@@ -3073,11 +3109,11 @@ var import_react26 = require("react");
3073
3109
 
3074
3110
  // src/lib/lib-utils/get-highlighted-text.tsx
3075
3111
  var import_react24 = require("react");
3076
- var import_utils29 = require("@julseb-lib/utils");
3112
+ var import_utils28 = require("@julseb-lib/utils");
3077
3113
  var import_jsx_runtime26 = require("react/jsx-runtime");
3078
3114
  var getHighlightedText = (text, value, highlightStyle, className) => {
3079
3115
  const parts = text?.toString().split(new RegExp(`(${value})`, "gi"));
3080
- return parts.map((part) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react24.Fragment, { children: (0, import_utils29.slugify)(part) === (0, import_utils29.slugify)(value) ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
3116
+ return parts.map((part) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react24.Fragment, { children: (0, import_utils28.slugify)(part) === (0, import_utils28.slugify)(value) ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
3081
3117
  Text,
3082
3118
  {
3083
3119
  tag: "strong",
@@ -3085,7 +3121,7 @@ var getHighlightedText = (text, value, highlightStyle, className) => {
3085
3121
  style: highlightStyle,
3086
3122
  children: part
3087
3123
  }
3088
- ) : part }, (0, import_utils29.uuid)()));
3124
+ ) : part }, (0, import_utils28.uuid)()));
3089
3125
  };
3090
3126
 
3091
3127
  // src/lib/lib-utils/transfom-search-keys.ts
@@ -3178,7 +3214,7 @@ var Highlight = ({
3178
3214
 
3179
3215
  // src/lib/components/Linkify/Linkify.tsx
3180
3216
  var import_react27 = require("react");
3181
- var import_utils32 = require("@julseb-lib/utils");
3217
+ var import_utils31 = require("@julseb-lib/utils");
3182
3218
  var import_jsx_runtime28 = require("react/jsx-runtime");
3183
3219
  var URL_REGEX2 = /^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$/gm;
3184
3220
  var Linkify = ({
@@ -3205,7 +3241,7 @@ var Linkify = ({
3205
3241
  }
3206
3242
  ),
3207
3243
  " "
3208
- ] }, (0, import_utils32.uuid)()) : word + " "
3244
+ ] }, (0, import_utils31.uuid)()) : word + " "
3209
3245
  ) });
3210
3246
  };
3211
3247
 
@@ -3636,6 +3672,7 @@ var Avatar = ({
3636
3672
  }) => {
3637
3673
  const Element = element;
3638
3674
  const avatarProps = {
3675
+ element,
3639
3676
  className,
3640
3677
  ref,
3641
3678
  children,
@@ -66359,7 +66396,7 @@ var Select = ({
66359
66396
  var import_react64 = require("react");
66360
66397
  var import_fuse = __toESM(require("fuse.js"), 1);
66361
66398
  var import_bi14 = require("react-icons/bi");
66362
- var import_utils80 = require("@julseb-lib/utils");
66399
+ var import_utils79 = require("@julseb-lib/utils");
66363
66400
  var import_jsx_runtime318 = require("react/jsx-runtime");
66364
66401
  var Autocomplete = ({
66365
66402
  className,
@@ -66490,7 +66527,7 @@ var Autocomplete = ({
66490
66527
  }
66491
66528
  )
66492
66529
  },
66493
- (0, import_utils80.uuid)()
66530
+ (0, import_utils79.uuid)()
66494
66531
  )) }) : /* @__PURE__ */ (0, import_jsx_runtime318.jsx)(
66495
66532
  Text,
66496
66533
  {
@@ -66510,7 +66547,7 @@ var Autocomplete = ({
66510
66547
  // src/lib/components/Rating/Rating.tsx
66511
66548
  var import_react65 = require("react");
66512
66549
  var import_bi15 = require("react-icons/bi");
66513
- var import_utils82 = require("@julseb-lib/utils");
66550
+ var import_utils81 = require("@julseb-lib/utils");
66514
66551
  var import_jsx_runtime319 = require("react/jsx-runtime");
66515
66552
  var Rating = ({
66516
66553
  className,
@@ -66547,7 +66584,7 @@ var Rating = ({
66547
66584
  id,
66548
66585
  className: clsx("flex", genGap[gap], "rating", className),
66549
66586
  ...rest,
66550
- children: (0, import_utils82.generateNumbers)(0, 4).map((n) => {
66587
+ children: (0, import_utils81.generateNumbers)(0, 4).map((n) => {
66551
66588
  const Element = readOnly ? "span" : "button";
66552
66589
  return /* @__PURE__ */ (0, import_jsx_runtime319.jsx)(
66553
66590
  Element,
@@ -66762,7 +66799,7 @@ var Form = ({
66762
66799
 
66763
66800
  // src/lib/components/ListGroup/ListGroup.tsx
66764
66801
  var import_react71 = require("react");
66765
- var import_utils89 = require("@julseb-lib/utils");
66802
+ var import_utils88 = require("@julseb-lib/utils");
66766
66803
 
66767
66804
  // src/lib/components/ListGroup/ListGroupTitle.tsx
66768
66805
  var import_react69 = require("react");
@@ -66901,7 +66938,7 @@ var ListGroup = ({
66901
66938
  ListGroupItem,
66902
66939
  {
66903
66940
  ...item,
66904
- key: (0, import_utils89.uuid)(),
66941
+ key: (0, import_utils88.uuid)(),
66905
66942
  title: item.title,
66906
66943
  number: showNumbers ? i + 1 : void 0,
66907
66944
  body: item.body,
@@ -66916,7 +66953,7 @@ var ListGroup = ({
66916
66953
 
66917
66954
  // src/lib/components/Breadcrumbs/Breadcrumbs.tsx
66918
66955
  var import_react73 = require("react");
66919
- var import_utils91 = require("@julseb-lib/utils");
66956
+ var import_utils90 = require("@julseb-lib/utils");
66920
66957
  var import_jsx_runtime326 = require("react/jsx-runtime");
66921
66958
  var Breadcrumbs = ({
66922
66959
  className,
@@ -66952,14 +66989,14 @@ var Breadcrumbs = ({
66952
66989
  children: separator
66953
66990
  }
66954
66991
  ) : separator)
66955
- ] }, (0, import_utils91.uuid)()))
66992
+ ] }, (0, import_utils90.uuid)()))
66956
66993
  }
66957
66994
  );
66958
66995
  };
66959
66996
 
66960
66997
  // src/lib/components/Accordion/Accordion.tsx
66961
66998
  var import_react77 = require("react");
66962
- var import_utils96 = require("@julseb-lib/utils");
66999
+ var import_utils95 = require("@julseb-lib/utils");
66963
67000
 
66964
67001
  // src/lib/components/Accordion/AccordionItem.tsx
66965
67002
  var import_react76 = require("react");
@@ -67119,7 +67156,7 @@ var Accordion = ({
67119
67156
  defaultOpen: item.defaultOpen,
67120
67157
  children: item.content
67121
67158
  },
67122
- (0, import_utils96.uuid)()
67159
+ (0, import_utils95.uuid)()
67123
67160
  )) ?? children
67124
67161
  }
67125
67162
  );
@@ -67127,7 +67164,7 @@ var Accordion = ({
67127
67164
 
67128
67165
  // src/lib/components/Dropdown/Dropdown.tsx
67129
67166
  var import_react79 = require("react");
67130
- var import_utils99 = require("@julseb-lib/utils");
67167
+ var import_utils98 = require("@julseb-lib/utils");
67131
67168
 
67132
67169
  // src/lib/components/Dropdown/DropdownItem.tsx
67133
67170
  var import_react78 = require("react");
@@ -67194,7 +67231,7 @@ var Dropdown = ({
67194
67231
  DropdownItem,
67195
67232
  {
67196
67233
  ...item,
67197
- key: (0, import_utils99.uuid)(),
67234
+ key: (0, import_utils98.uuid)(),
67198
67235
  element: item.element ?? "button",
67199
67236
  content: void 0
67200
67237
  },
@@ -67448,7 +67485,6 @@ var Alert = ({
67448
67485
  // src/lib/components/Modal/Modal.tsx
67449
67486
  var import_react83 = require("react");
67450
67487
  var import_bi18 = require("react-icons/bi");
67451
- var import_utils104 = require("@julseb-lib/utils");
67452
67488
  var import_jsx_runtime337 = require("react/jsx-runtime");
67453
67489
  var Modal = ({
67454
67490
  className,
@@ -67468,7 +67504,7 @@ var Modal = ({
67468
67504
  const handleClose = () => {
67469
67505
  if (isOpen) {
67470
67506
  setIsOpen(false);
67471
- (0, import_utils104.enableScroll)();
67507
+ enableScroll();
67472
67508
  }
67473
67509
  };
67474
67510
  useClickOutside(el, handleClose);
@@ -67906,7 +67942,7 @@ var Paginator = ({
67906
67942
 
67907
67943
  // src/lib/components/ProgressBar/ProgressBar.tsx
67908
67944
  var import_react90 = require("react");
67909
- var import_utils111 = require("@julseb-lib/utils");
67945
+ var import_utils109 = require("@julseb-lib/utils");
67910
67946
  var import_jsx_runtime343 = require("react/jsx-runtime");
67911
67947
  var ProgressBar = ({
67912
67948
  className,
@@ -67919,7 +67955,7 @@ var ProgressBar = ({
67919
67955
  id,
67920
67956
  ...rest
67921
67957
  }) => {
67922
- const percent = (0, import_utils111.getPercentage)(value, Number(max));
67958
+ const percent = (0, import_utils109.getPercentage)(value, Number(max));
67923
67959
  return /* @__PURE__ */ (0, import_jsx_runtime343.jsx)(
67924
67960
  "meter",
67925
67961
  {
@@ -68073,7 +68109,7 @@ var genStrokeColor = {
68073
68109
 
68074
68110
  // src/lib/components/Tabs/Tabs.tsx
68075
68111
  var import_react96 = require("react");
68076
- var import_utils118 = require("@julseb-lib/utils");
68112
+ var import_utils116 = require("@julseb-lib/utils");
68077
68113
 
68078
68114
  // src/lib/components/Tabs/TabsContainer.tsx
68079
68115
  var import_react92 = require("react");
@@ -68225,7 +68261,7 @@ var Tabs = ({
68225
68261
  TabsButton,
68226
68262
  {
68227
68263
  ...item,
68228
- key: item.id ?? (0, import_utils118.uuid)(),
68264
+ key: item.id ?? (0, import_utils116.uuid)(),
68229
68265
  isActive: tab === i,
68230
68266
  onClick: () => setTab(i),
68231
68267
  variant,
@@ -68237,7 +68273,7 @@ var Tabs = ({
68237
68273
  TabsContent,
68238
68274
  {
68239
68275
  ...item,
68240
- key: (0, import_utils118.uuid)(),
68276
+ key: (0, import_utils116.uuid)(),
68241
68277
  isActive: tab === i
68242
68278
  },
68243
68279
  item.content
@@ -68249,7 +68285,7 @@ var Tabs = ({
68249
68285
 
68250
68286
  // src/lib/components/Slideshow/Slideshow.tsx
68251
68287
  var import_react100 = require("react");
68252
- var import_utils123 = require("@julseb-lib/utils");
68288
+ var import_utils121 = require("@julseb-lib/utils");
68253
68289
 
68254
68290
  // src/lib/components/Slideshow/SlideshowButton.tsx
68255
68291
  var import_react98 = require("react");
@@ -68299,7 +68335,7 @@ var SlideshowButton = ({
68299
68335
 
68300
68336
  // src/lib/components/Slideshow/SlideshowPagination.tsx
68301
68337
  var import_react99 = require("react");
68302
- var import_utils121 = require("@julseb-lib/utils");
68338
+ var import_utils119 = require("@julseb-lib/utils");
68303
68339
  var import_jsx_runtime351 = require("react/jsx-runtime");
68304
68340
  var SlideshowPagination = ({
68305
68341
  className,
@@ -68350,7 +68386,7 @@ var SlideshowPagination = ({
68350
68386
  )
68351
68387
  },
68352
68388
  i
68353
- )) : (0, import_utils121.generateNumbers)(0, contentLength - 1).map((n) => /* @__PURE__ */ (0, import_jsx_runtime351.jsx)(
68389
+ )) : (0, import_utils119.generateNumbers)(0, contentLength - 1).map((n) => /* @__PURE__ */ (0, import_jsx_runtime351.jsx)(
68354
68390
  "button",
68355
68391
  {
68356
68392
  className: clsx(
@@ -68580,7 +68616,7 @@ var Slideshow = ({
68580
68616
  borderRadius,
68581
68617
  draggable: false
68582
68618
  },
68583
- (0, import_utils123.uuid)()
68619
+ (0, import_utils121.uuid)()
68584
68620
  )) : childrenArray.map((child) => /* @__PURE__ */ (0, import_jsx_runtime352.jsx)(
68585
68621
  "div",
68586
68622
  {
@@ -68591,7 +68627,7 @@ var Slideshow = ({
68591
68627
  ),
68592
68628
  children: child
68593
68629
  },
68594
- (0, import_utils123.uuid)()
68630
+ (0, import_utils121.uuid)()
68595
68631
  ))
68596
68632
  }
68597
68633
  )
@@ -68701,7 +68737,6 @@ var Cover = ({
68701
68737
 
68702
68738
  // src/lib/components/PageLoading/PageLoading.tsx
68703
68739
  var import_react102 = require("react");
68704
- var import_utils126 = require("@julseb-lib/utils");
68705
68740
  var import_jsx_runtime354 = require("react/jsx-runtime");
68706
68741
  var PageLoading = ({
68707
68742
  className,
@@ -68715,7 +68750,7 @@ var PageLoading = ({
68715
68750
  }) => {
68716
68751
  const Element = element;
68717
68752
  (0, import_react102.useEffect)(() => {
68718
- if (stopScrolling) (0, import_utils126.disableScroll)();
68753
+ if (stopScrolling) disableScroll();
68719
68754
  }, [stopScrolling]);
68720
68755
  return /* @__PURE__ */ (0, import_jsx_runtime354.jsx)(
68721
68756
  Element,
@@ -69088,7 +69123,7 @@ var MarkdownEditorTitles = ({
69088
69123
 
69089
69124
  // src/lib/components/MarkdownEditor/MarkdownButtons.tsx
69090
69125
  var import_react106 = require("react");
69091
- var import_utils130 = require("@julseb-lib/utils");
69126
+ var import_utils127 = require("@julseb-lib/utils");
69092
69127
  var import_jsx_runtime359 = require("react/jsx-runtime");
69093
69128
  var MarkdownButtons = ({
69094
69129
  options,
@@ -69106,8 +69141,8 @@ var MarkdownButtons = ({
69106
69141
  className: clsx("size-6", "md-button"),
69107
69142
  icon,
69108
69143
  onClick: () => addCode(button.code),
69109
- tooltip: button.displayName ?? (0, import_utils130.toSentenceCase)(button.name),
69110
- "aria-label": button.displayName ?? (0, import_utils130.toSentenceCase)(button.name),
69144
+ tooltip: button.displayName ?? (0, import_utils127.toSentenceCase)(button.name),
69145
+ "aria-label": button.displayName ?? (0, import_utils127.toSentenceCase)(button.name),
69111
69146
  variant: "transparent",
69112
69147
  showTooltip: { offset: "2xs" }
69113
69148
  },
@@ -69118,7 +69153,7 @@ var MarkdownButtons = ({
69118
69153
 
69119
69154
  // src/lib/components/MarkdownEditor/MarkdownViewButtons.tsx
69120
69155
  var import_react107 = require("react");
69121
- var import_utils132 = require("@julseb-lib/utils");
69156
+ var import_utils129 = require("@julseb-lib/utils");
69122
69157
  var import_jsx_runtime360 = require("react/jsx-runtime");
69123
69158
  var MarkdownViewButtons = ({
69124
69159
  options,
@@ -69142,8 +69177,8 @@ var MarkdownViewButtons = ({
69142
69177
  variant: view === button.name ? "plain" : "transparent",
69143
69178
  icon,
69144
69179
  onClick: () => setView(button.name),
69145
- "aria-label": button.displayName ?? (0, import_utils132.toSentenceCase)(button.name),
69146
- tooltip: button.displayName ?? (0, import_utils132.toSentenceCase)(button.name),
69180
+ "aria-label": button.displayName ?? (0, import_utils129.toSentenceCase)(button.name),
69181
+ tooltip: button.displayName ?? (0, import_utils129.toSentenceCase)(button.name),
69147
69182
  showTooltip: { offset: "2xs" }
69148
69183
  },
69149
69184
  button.name
@@ -69369,7 +69404,6 @@ var Fade = ({
69369
69404
  // src/lib/components/BackToTop/BackToTop.tsx
69370
69405
  var import_react111 = require("react");
69371
69406
  var import_bi24 = require("react-icons/bi");
69372
- var import_utils137 = require("@julseb-lib/utils");
69373
69407
  var import_jsx_runtime364 = require("react/jsx-runtime");
69374
69408
  var BackToTop = ({
69375
69409
  className,
@@ -69395,7 +69429,7 @@ var BackToTop = ({
69395
69429
  const smoothScroll = () => {
69396
69430
  document.body.classList.add("smooth");
69397
69431
  document.documentElement.classList.add("smooth");
69398
- setTimeout(() => (0, import_utils137.scrollToTop)(), 100);
69432
+ setTimeout(() => scrollToTop(), 100);
69399
69433
  setTimeout(() => {
69400
69434
  document.body.classList.remove("smooth");
69401
69435
  document.documentElement.classList.remove("smooth");
@@ -69432,7 +69466,7 @@ var BackToTop = ({
69432
69466
  // src/lib/components/Drawer/Drawer.tsx
69433
69467
  var import_react112 = require("react");
69434
69468
  var import_bi25 = require("react-icons/bi");
69435
- var import_utils139 = require("@julseb-lib/utils");
69469
+ var import_utils135 = require("@julseb-lib/utils");
69436
69470
  var import_jsx_runtime365 = require("react/jsx-runtime");
69437
69471
  var Drawer = ({
69438
69472
  className,
@@ -69460,8 +69494,8 @@ var Drawer = ({
69460
69494
  if (!disableEsc && isOpen) setIsOpen(false);
69461
69495
  });
69462
69496
  (0, import_react112.useEffect)(() => {
69463
- if (!enableScrollingOpen && isOpen) (0, import_utils139.disableScroll)();
69464
- else (0, import_utils139.enableScroll)();
69497
+ if (!enableScrollingOpen && isOpen) disableScroll();
69498
+ else enableScroll();
69465
69499
  }, [enableScrollingOpen, isOpen]);
69466
69500
  return /* @__PURE__ */ (0, import_jsx_runtime365.jsxs)(
69467
69501
  Element,
@@ -69503,7 +69537,7 @@ var Drawer = ({
69503
69537
  position === "left" ? "left-[calc(var(--drawer-max-width)*-1)] [&.open]:left-0" : "right-[calc(var(--drawer-max-width)*-1)] [&.open]:right-0",
69504
69538
  "drawer-content"
69505
69539
  ),
69506
- style: { ["--drawer-max-width"]: (0, import_utils139.stringifyPx)(maxWidth2) },
69540
+ style: { ["--drawer-max-width"]: (0, import_utils135.stringifyPx)(maxWidth2) },
69507
69541
  ref: el,
69508
69542
  children: [
69509
69543
  children,
@@ -69527,11 +69561,10 @@ var Drawer = ({
69527
69561
 
69528
69562
  // src/lib/components/Header/Header.tsx
69529
69563
  var import_react114 = require("react");
69530
- var import_utils143 = require("@julseb-lib/utils");
69531
69564
 
69532
69565
  // src/lib/components/Header/HeaderSearch.tsx
69533
69566
  var import_react113 = require("react");
69534
- var import_utils141 = require("@julseb-lib/utils");
69567
+ var import_utils137 = require("@julseb-lib/utils");
69535
69568
  var import_jsx_runtime366 = require("react/jsx-runtime");
69536
69569
  var HeaderSearch = ({ search, handleClose }) => {
69537
69570
  if (!search) return null;
@@ -69557,7 +69590,7 @@ var HeaderSearch = ({ search, handleClose }) => {
69557
69590
  handleClose();
69558
69591
  },
69559
69592
  className: clsx("w-full max-w-(--form-max-width)", "search-form"),
69560
- style: { ["--form-max-width"]: (0, import_utils141.stringifyPx)(maxWidth2) },
69593
+ style: { ["--form-max-width"]: (0, import_utils137.stringifyPx)(maxWidth2) },
69561
69594
  children: /* @__PURE__ */ (0, import_jsx_runtime366.jsx)("search", { children: /* @__PURE__ */ (0, import_jsx_runtime366.jsx)(
69562
69595
  Input,
69563
69596
  {
@@ -69610,11 +69643,11 @@ var Header = ({
69610
69643
  const [isOpen, setIsOpen] = (0, import_react114.useState)(false);
69611
69644
  const [isHidden, setIsHidden] = (0, import_react114.useState)(false);
69612
69645
  const handleOpen = () => {
69613
- if (!enableScrollingOpen) (0, import_utils143.disableScroll)();
69646
+ if (!enableScrollingOpen) disableScroll();
69614
69647
  setIsOpen(true);
69615
69648
  };
69616
69649
  const handleClose = () => {
69617
- if (!enableScrollingOpen) (0, import_utils143.enableScroll)();
69650
+ if (!enableScrollingOpen) enableScroll();
69618
69651
  setTimeout(() => setIsOpen(false), 10);
69619
69652
  };
69620
69653
  (0, import_react114.useEffect)(() => {
@@ -69729,7 +69762,7 @@ var Header = ({
69729
69762
 
69730
69763
  // src/lib/components/Footer/Footer.tsx
69731
69764
  var import_react115 = require("react");
69732
- var import_utils145 = require("@julseb-lib/utils");
69765
+ var import_utils140 = require("@julseb-lib/utils");
69733
69766
  var import_jsx_runtime368 = require("react/jsx-runtime");
69734
69767
  var Footer = ({
69735
69768
  className,
@@ -69775,10 +69808,10 @@ var Footer = ({
69775
69808
  children: linksSeparator === "dot" ? "\u2022" : "-"
69776
69809
  }
69777
69810
  )
69778
- ] }, (0, import_utils145.uuid)())) ?? childrenArray.map((child, i) => /* @__PURE__ */ (0, import_jsx_runtime368.jsxs)(import_react115.Fragment, { children: [
69811
+ ] }, (0, import_utils140.uuid)())) ?? childrenArray.map((child, i) => /* @__PURE__ */ (0, import_jsx_runtime368.jsxs)(import_react115.Fragment, { children: [
69779
69812
  child,
69780
69813
  i !== childrenArray.length - 1 && !hideLinksSeparator && (linksSeparator === "dot" ? "\u2022" : "-")
69781
- ] }, (0, import_utils145.uuid)())) })
69814
+ ] }, (0, import_utils140.uuid)())) })
69782
69815
  ]
69783
69816
  }
69784
69817
  );