@julseb-lib/react 0.1.33 → 0.1.34

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
@@ -94,7 +94,6 @@ __export(index_exports, {
94
94
  ButtonGroup: () => ButtonGroup,
95
95
  ButtonIcon: () => ButtonIcon,
96
96
  COLORS: () => COLORS,
97
- CodeContainer: () => CodeContainer,
98
97
  Cover: () => Cover,
99
98
  DROP_SHADOWS: () => DROP_SHADOWS,
100
99
  DragList: () => DragList,
@@ -177,27 +176,27 @@ __export(index_exports, {
177
176
  Tooltip: () => Tooltip,
178
177
  URL_REGEX: () => URL_REGEX,
179
178
  Wrapper: () => Wrapper,
180
- addDay: () => import_utils151.addDay,
181
- addMonth: () => import_utils151.addMonth,
182
- addYear: () => import_utils151.addYear,
183
- calculateAverage: () => import_utils151.calculateAverage,
184
- calculateTotalSum: () => import_utils151.calculateTotalSum,
185
- capitalize: () => import_utils151.capitalize,
179
+ addDay: () => import_utils150.addDay,
180
+ addMonth: () => import_utils150.addMonth,
181
+ addYear: () => import_utils150.addYear,
182
+ calculateAverage: () => import_utils150.calculateAverage,
183
+ calculateTotalSum: () => import_utils150.calculateTotalSum,
184
+ capitalize: () => import_utils150.capitalize,
186
185
  clsx: () => clsx,
187
- convertDate: () => import_utils151.convertDate,
188
- convertDateShort: () => import_utils151.convertDateShort,
189
- convertPrice: () => import_utils151.convertPrice,
190
- convertToEmail: () => import_utils151.convertToEmail,
191
- convertYoutube: () => import_utils151.convertYoutube,
192
- deleteDuplicates: () => import_utils151.deleteDuplicates,
186
+ convertDate: () => import_utils150.convertDate,
187
+ convertDateShort: () => import_utils150.convertDateShort,
188
+ convertPrice: () => import_utils150.convertPrice,
189
+ convertToEmail: () => import_utils150.convertToEmail,
190
+ convertYoutube: () => import_utils150.convertYoutube,
191
+ deleteDuplicates: () => import_utils150.deleteDuplicates,
193
192
  designTokens: () => designTokens,
194
- detectLanguage: () => import_utils151.detectLanguage,
195
- disableScroll: () => import_utils151.disableScroll,
196
- emailRegex: () => import_utils151.emailRegex,
197
- enableScroll: () => import_utils151.enableScroll,
198
- filterObject: () => import_utils151.filterObject,
199
- formatDate: () => import_utils151.formatDate,
200
- formatHour: () => import_utils151.formatHour,
193
+ detectLanguage: () => import_utils150.detectLanguage,
194
+ disableScroll: () => import_utils150.disableScroll,
195
+ emailRegex: () => import_utils150.emailRegex,
196
+ enableScroll: () => import_utils150.enableScroll,
197
+ filterObject: () => import_utils150.filterObject,
198
+ formatDate: () => import_utils150.formatDate,
199
+ formatHour: () => import_utils150.formatHour,
201
200
  genAlignContent: () => genAlignContent,
202
201
  genAlignItems: () => genAlignItems,
203
202
  genBgAllColors: () => genBgAllColors,
@@ -232,43 +231,43 @@ __export(index_exports, {
232
231
  genTextColorHover: () => genTextColorHover,
233
232
  genTextColorShort: () => genTextColorShort,
234
233
  genVAlign: () => genVAlign,
235
- generateNumbers: () => import_utils151.generateNumbers,
236
- getFirstName: () => import_utils151.getFirstName,
237
- getInitials: () => import_utils151.getInitials,
238
- getLastName: () => import_utils151.getLastName,
239
- getNextDay: () => import_utils151.getNextDay,
240
- getPercentage: () => import_utils151.getPercentage,
241
- getRandom: () => import_utils151.getRandom,
242
- getRandomAvatar: () => import_utils151.getRandomAvatar,
243
- getRandomDate: () => import_utils151.getRandomDate,
244
- getRandomNumber: () => import_utils151.getRandomNumber,
245
- getRandomString: () => import_utils151.getRandomString,
246
- getRandomTime: () => import_utils151.getRandomTime,
247
- getTimeNow: () => import_utils151.getTimeNow,
248
- getToday: () => import_utils151.getToday,
249
- getTomorrow: () => import_utils151.getTomorrow,
250
- getYesterday: () => import_utils151.getYesterday,
251
- hexToRgb: () => import_utils151.hexToRgb,
234
+ generateNumbers: () => import_utils150.generateNumbers,
235
+ getFirstName: () => import_utils150.getFirstName,
236
+ getInitials: () => import_utils150.getInitials,
237
+ getLastName: () => import_utils150.getLastName,
238
+ getNextDay: () => import_utils150.getNextDay,
239
+ getPercentage: () => import_utils150.getPercentage,
240
+ getRandom: () => import_utils150.getRandom,
241
+ getRandomAvatar: () => import_utils150.getRandomAvatar,
242
+ getRandomDate: () => import_utils150.getRandomDate,
243
+ getRandomNumber: () => import_utils150.getRandomNumber,
244
+ getRandomString: () => import_utils150.getRandomString,
245
+ getRandomTime: () => import_utils150.getRandomTime,
246
+ getTimeNow: () => import_utils150.getTimeNow,
247
+ getToday: () => import_utils150.getToday,
248
+ getTomorrow: () => import_utils150.getTomorrow,
249
+ getYesterday: () => import_utils150.getYesterday,
250
+ hexToRgb: () => import_utils150.hexToRgb,
252
251
  libMarkdownEditorOptions: () => libMarkdownEditorOptions,
253
252
  libOptionsMarkdown: () => libOptionsMarkdown,
254
253
  linkifyText: () => linkifyText,
255
- passwordRegex: () => import_utils151.passwordRegex,
256
- rgbToHex: () => import_utils151.rgbToHex,
257
- scrollToTop: () => import_utils151.scrollToTop,
258
- slugify: () => import_utils151.slugify,
259
- sortByFrequency: () => import_utils151.sortByFrequency,
260
- stringifyPx: () => import_utils151.stringifyPx,
261
- toCamelCase: () => import_utils151.toCamelCase,
262
- toConstantCase: () => import_utils151.toConstantCase,
263
- toDotCase: () => import_utils151.toDotCase,
264
- toKebabCase: () => import_utils151.toKebabCase,
265
- toPascalCase: () => import_utils151.toPascalCase,
266
- toPathCase: () => import_utils151.toPathCase,
267
- toSentenceCase: () => import_utils151.toSentenceCase,
268
- toSnakeCase: () => import_utils151.toSnakeCase,
269
- toTitleCase: () => import_utils151.toTitleCase,
254
+ passwordRegex: () => import_utils150.passwordRegex,
255
+ rgbToHex: () => import_utils150.rgbToHex,
256
+ scrollToTop: () => import_utils150.scrollToTop,
257
+ slugify: () => import_utils150.slugify,
258
+ sortByFrequency: () => import_utils150.sortByFrequency,
259
+ stringifyPx: () => import_utils150.stringifyPx,
260
+ toCamelCase: () => import_utils150.toCamelCase,
261
+ toConstantCase: () => import_utils150.toConstantCase,
262
+ toDotCase: () => import_utils150.toDotCase,
263
+ toKebabCase: () => import_utils150.toKebabCase,
264
+ toPascalCase: () => import_utils150.toPascalCase,
265
+ toPathCase: () => import_utils150.toPathCase,
266
+ toSentenceCase: () => import_utils150.toSentenceCase,
267
+ toSnakeCase: () => import_utils150.toSnakeCase,
268
+ toTitleCase: () => import_utils150.toTitleCase,
270
269
  toast: () => toast,
271
- unslugify: () => import_utils151.unslugify,
270
+ unslugify: () => import_utils150.unslugify,
272
271
  useClickOutside: () => useClickOutside,
273
272
  useCopyToClipboard: () => useCopyToClipboard,
274
273
  useDebounce: () => useDebounce,
@@ -285,7 +284,7 @@ __export(index_exports, {
285
284
  usePagination: () => usePagination,
286
285
  useTouchScreen: () => useTouchScreen,
287
286
  useTranslation: () => useTranslation,
288
- uuid: () => import_utils151.uuid
287
+ uuid: () => import_utils150.uuid
289
288
  });
290
289
  module.exports = __toCommonJS(index_exports);
291
290
 
@@ -2319,7 +2318,7 @@ var genRingColorChildren = {
2319
2318
  };
2320
2319
 
2321
2320
  // src/lib/index.ts
2322
- var import_utils151 = require("@julseb-lib/utils");
2321
+ var import_utils150 = require("@julseb-lib/utils");
2323
2322
 
2324
2323
  // src/lib/hooks/useClickOutside.tsx
2325
2324
  var import_react2 = require("react");
@@ -11002,86 +11001,9 @@ var MarkdownContainer = (_a) => {
11002
11001
  );
11003
11002
  };
11004
11003
 
11005
- // src/lib/components/CodeContainer/CodeContainer.tsx
11004
+ // src/lib/components/Fade/Fade.tsx
11006
11005
  var import_react51 = require("react");
11007
- var import_react_syntax_highlighter = __toESM(require("react-syntax-highlighter"), 1);
11008
- var import_atom_one_dark = __toESM(require("react-syntax-highlighter/dist/esm/styles/hljs/atom-one-dark.js"), 1);
11009
- var import_bi25 = require("react-icons/bi");
11010
11006
  var import_jsx_runtime121 = require("react/jsx-runtime");
11011
- var CodeContainer = (_a) => {
11012
- var _b = _a, {
11013
- className,
11014
- element,
11015
- ref,
11016
- children,
11017
- highlighterProps,
11018
- textColor,
11019
- backgroundColor,
11020
- style = import_atom_one_dark.default,
11021
- hideCopyButton,
11022
- tooltipTexts,
11023
- icons
11024
- } = _b, rest = __objRest(_b, [
11025
- "className",
11026
- "element",
11027
- "ref",
11028
- "children",
11029
- "highlighterProps",
11030
- "textColor",
11031
- "backgroundColor",
11032
- "style",
11033
- "hideCopyButton",
11034
- "tooltipTexts",
11035
- "icons"
11036
- ]);
11037
- var _a2, _b2, _c, _d;
11038
- const Element = element != null ? element : textColor || backgroundColor ? "pre" : "div";
11039
- const [hasCopied, setHasCopied] = (0, import_react51.useState)(false);
11040
- const copyToClipboard = () => {
11041
- if (children) {
11042
- let copyString = children.toString();
11043
- if (copyString[0] === "$") {
11044
- copyString = copyString.replace("$ ", "");
11045
- }
11046
- navigator.clipboard.writeText(copyString);
11047
- setHasCopied(true);
11048
- }
11049
- setTimeout(() => setHasCopied(false), 1e3);
11050
- };
11051
- return /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)(
11052
- Element,
11053
- __spreadProps(__spreadValues({
11054
- ref,
11055
- className: clsx(
11056
- "relative outline-none",
11057
- "code-container-wrapper",
11058
- "[&>pre]:bg-gray-800! [&>pre]:p-4!",
11059
- textColor && genTextAllColor[textColor],
11060
- genRingColor["primary"],
11061
- className
11062
- )
11063
- }, rest), {
11064
- children: [
11065
- /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_react_syntax_highlighter.default, { style, children }),
11066
- !hideCopyButton && /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
11067
- ButtonIcon,
11068
- {
11069
- className: clsx("size-8", "copy-button"),
11070
- onClick: copyToClipboard,
11071
- icon: hasCopied ? (_a2 = icons == null ? void 0 : icons.copied) != null ? _a2 : /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_bi25.BiCheck, { size: 16 }) : (_b2 = icons == null ? void 0 : icons.copy) != null ? _b2 : /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_bi25.BiClipboard, { size: 16 }),
11072
- tooltip: hasCopied ? (_c = tooltipTexts == null ? void 0 : tooltipTexts.copied) != null ? _c : "Copied!" : (_d = tooltipTexts == null ? void 0 : tooltipTexts.copy) != null ? _d : "Copy",
11073
- color: hasCopied ? "success" : "primary",
11074
- showTooltip: { className: "absolute top-4 right-4" }
11075
- }
11076
- )
11077
- ]
11078
- })
11079
- );
11080
- };
11081
-
11082
- // src/lib/components/Fade/Fade.tsx
11083
- var import_react52 = require("react");
11084
- var import_jsx_runtime122 = require("react/jsx-runtime");
11085
11007
  var Fade = (_a) => {
11086
11008
  var _b = _a, {
11087
11009
  className,
@@ -11095,15 +11017,15 @@ var Fade = (_a) => {
11095
11017
  "children"
11096
11018
  ]);
11097
11019
  const Element = element;
11098
- const [isVisible, setIsVisible] = (0, import_react52.useState)(true);
11099
- const fadeRef = (0, import_react52.useRef)(null);
11100
- (0, import_react52.useEffect)(() => {
11020
+ const [isVisible, setIsVisible] = (0, import_react51.useState)(true);
11021
+ const fadeRef = (0, import_react51.useRef)(null);
11022
+ (0, import_react51.useEffect)(() => {
11101
11023
  const observer = new IntersectionObserver((entries) => {
11102
11024
  entries.forEach((entry) => setIsVisible(entry.isIntersecting));
11103
11025
  });
11104
11026
  observer.observe(fadeRef.current);
11105
11027
  }, []);
11106
- return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
11028
+ return /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
11107
11029
  Element,
11108
11030
  __spreadProps(__spreadValues({
11109
11031
  ref: useMergeRefs([ref, fadeRef]),
@@ -11121,15 +11043,15 @@ var Fade = (_a) => {
11121
11043
  };
11122
11044
 
11123
11045
  // src/lib/components/BackToTop/BackToTop.tsx
11124
- var import_react53 = require("react");
11125
- var import_bi26 = require("react-icons/bi");
11126
- var import_utils140 = require("@julseb-lib/utils");
11127
- var import_jsx_runtime123 = require("react/jsx-runtime");
11046
+ var import_react52 = require("react");
11047
+ var import_bi25 = require("react-icons/bi");
11048
+ var import_utils139 = require("@julseb-lib/utils");
11049
+ var import_jsx_runtime122 = require("react/jsx-runtime");
11128
11050
  var BackToTop = (_a) => {
11129
11051
  var _b = _a, {
11130
11052
  className,
11131
11053
  ref,
11132
- icon = /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_bi26.BiUpArrowAlt, {}),
11054
+ icon = /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(import_bi25.BiUpArrowAlt, {}),
11133
11055
  color = "primary",
11134
11056
  tooltip = "Back to top",
11135
11057
  showTooltip
@@ -11141,8 +11063,8 @@ var BackToTop = (_a) => {
11141
11063
  "tooltip",
11142
11064
  "showTooltip"
11143
11065
  ]);
11144
- const [isVisible, setIsVisible] = (0, import_react53.useState)(false);
11145
- (0, import_react53.useEffect)(() => {
11066
+ const [isVisible, setIsVisible] = (0, import_react52.useState)(false);
11067
+ (0, import_react52.useEffect)(() => {
11146
11068
  const scrollFn = () => {
11147
11069
  if (window.scrollY >= 200) {
11148
11070
  setIsVisible(true);
@@ -11156,13 +11078,13 @@ var BackToTop = (_a) => {
11156
11078
  const smoothScroll = () => {
11157
11079
  document.body.classList.add("smooth");
11158
11080
  document.documentElement.classList.add("smooth");
11159
- setTimeout(() => (0, import_utils140.scrollToTop)(), 100);
11081
+ setTimeout(() => (0, import_utils139.scrollToTop)(), 100);
11160
11082
  setTimeout(() => {
11161
11083
  document.body.classList.remove("smooth");
11162
11084
  document.documentElement.classList.remove("smooth");
11163
11085
  }, 1e3);
11164
11086
  };
11165
- return /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
11087
+ return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
11166
11088
  ButtonIcon,
11167
11089
  __spreadValues({
11168
11090
  ref,
@@ -11188,10 +11110,10 @@ var BackToTop = (_a) => {
11188
11110
  };
11189
11111
 
11190
11112
  // src/lib/components/Drawer/Drawer.tsx
11191
- var import_react54 = require("react");
11192
- var import_bi27 = require("react-icons/bi");
11193
- var import_utils142 = require("@julseb-lib/utils");
11194
- var import_jsx_runtime124 = require("react/jsx-runtime");
11113
+ var import_react53 = require("react");
11114
+ var import_bi26 = require("react-icons/bi");
11115
+ var import_utils141 = require("@julseb-lib/utils");
11116
+ var import_jsx_runtime123 = require("react/jsx-runtime");
11195
11117
  var Drawer = (_a) => {
11196
11118
  var _b = _a, {
11197
11119
  className,
@@ -11229,16 +11151,16 @@ var Drawer = (_a) => {
11229
11151
  "hideCloseButton"
11230
11152
  ]);
11231
11153
  const Element = element;
11232
- const el = (0, import_react54.useRef)(null);
11154
+ const el = (0, import_react53.useRef)(null);
11233
11155
  useClickOutside(el, () => isOpen && setIsOpen(false));
11234
11156
  useKeyPress("Escape", () => {
11235
11157
  if (!disableEsc && isOpen) setIsOpen(false);
11236
11158
  });
11237
- (0, import_react54.useEffect)(() => {
11238
- if (!enableScrollingOpen && isOpen) (0, import_utils142.disableScroll)();
11239
- else (0, import_utils142.enableScroll)();
11159
+ (0, import_react53.useEffect)(() => {
11160
+ if (!enableScrollingOpen && isOpen) (0, import_utils141.disableScroll)();
11161
+ else (0, import_utils141.enableScroll)();
11240
11162
  }, [enableScrollingOpen, isOpen]);
11241
- return /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)(
11163
+ return /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)(
11242
11164
  Element,
11243
11165
  __spreadProps(__spreadValues({
11244
11166
  ref,
@@ -11251,7 +11173,7 @@ var Drawer = (_a) => {
11251
11173
  )
11252
11174
  }, rest), {
11253
11175
  children: [
11254
- /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
11176
+ /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
11255
11177
  "div",
11256
11178
  {
11257
11179
  className: clsx(
@@ -11264,7 +11186,7 @@ var Drawer = (_a) => {
11264
11186
  onClick: () => setIsOpen(false)
11265
11187
  }
11266
11188
  ),
11267
- /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)(
11189
+ /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)(
11268
11190
  "div",
11269
11191
  {
11270
11192
  className: clsx(
@@ -11278,14 +11200,14 @@ var Drawer = (_a) => {
11278
11200
  position === "left" ? "left-[calc(var(--drawer-max-width)*-1)] [&.open]:left-0" : "right-[calc(var(--drawer-max-width)*-1)] [&.open]:right-0",
11279
11201
  "drawer-content"
11280
11202
  ),
11281
- style: { ["--drawer-max-width"]: (0, import_utils142.stringifyPx)(maxWidth2) },
11203
+ style: { ["--drawer-max-width"]: (0, import_utils141.stringifyPx)(maxWidth2) },
11282
11204
  ref: el,
11283
11205
  children: [
11284
11206
  children,
11285
- !hideCloseButton && /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
11207
+ !hideCloseButton && /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
11286
11208
  ButtonIcon,
11287
11209
  {
11288
- icon: /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(import_bi27.BiX, { size: 24 }),
11210
+ icon: /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_bi26.BiX, { size: 24 }),
11289
11211
  color: "white",
11290
11212
  variant: "transparent",
11291
11213
  className: "top-2 right-2 absolute size-12",
@@ -11301,12 +11223,12 @@ var Drawer = (_a) => {
11301
11223
  };
11302
11224
 
11303
11225
  // src/lib/components/Header/Header.tsx
11304
- var import_react55 = require("react");
11305
- var import_utils146 = require("@julseb-lib/utils");
11226
+ var import_react54 = require("react");
11227
+ var import_utils145 = require("@julseb-lib/utils");
11306
11228
 
11307
11229
  // src/lib/components/Header/HeaderSearch.tsx
11308
- var import_utils144 = require("@julseb-lib/utils");
11309
- var import_jsx_runtime125 = require("react/jsx-runtime");
11230
+ var import_utils143 = require("@julseb-lib/utils");
11231
+ var import_jsx_runtime124 = require("react/jsx-runtime");
11310
11232
  var HeaderSearch = ({ search, handleClose }) => {
11311
11233
  if (!search) return null;
11312
11234
  const {
@@ -11323,7 +11245,7 @@ var HeaderSearch = ({ search, handleClose }) => {
11323
11245
  maxWidth: maxWidth2 = 400,
11324
11246
  clearSearch
11325
11247
  } = search;
11326
- return /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
11248
+ return /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
11327
11249
  "form",
11328
11250
  {
11329
11251
  onSubmit: (e) => {
@@ -11331,8 +11253,8 @@ var HeaderSearch = ({ search, handleClose }) => {
11331
11253
  handleClose();
11332
11254
  },
11333
11255
  className: clsx("w-full max-w-(--form-max-width)", "search-form"),
11334
- style: { ["--form-max-width"]: (0, import_utils144.stringifyPx)(maxWidth2) },
11335
- children: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
11256
+ style: { ["--form-max-width"]: (0, import_utils143.stringifyPx)(maxWidth2) },
11257
+ children: /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
11336
11258
  Input,
11337
11259
  {
11338
11260
  type: "search",
@@ -11354,7 +11276,7 @@ var HeaderSearch = ({ search, handleClose }) => {
11354
11276
  };
11355
11277
 
11356
11278
  // src/lib/components/Header/Header.tsx
11357
- var import_jsx_runtime126 = require("react/jsx-runtime");
11279
+ var import_jsx_runtime125 = require("react/jsx-runtime");
11358
11280
  var Header = (_a) => {
11359
11281
  var _b = _a, {
11360
11282
  className,
@@ -11397,18 +11319,18 @@ var Header = (_a) => {
11397
11319
  ]);
11398
11320
  const Element = element;
11399
11321
  const isMobile = useMaxWidth(16 * 48);
11400
- const el = (0, import_react55.useRef)(null);
11401
- const [isOpen, setIsOpen] = (0, import_react55.useState)(false);
11402
- const [isHidden, setIsHidden] = (0, import_react55.useState)(false);
11322
+ const el = (0, import_react54.useRef)(null);
11323
+ const [isOpen, setIsOpen] = (0, import_react54.useState)(false);
11324
+ const [isHidden, setIsHidden] = (0, import_react54.useState)(false);
11403
11325
  const handleOpen = () => {
11404
- if (!enableScrollingOpen) (0, import_utils146.disableScroll)();
11326
+ if (!enableScrollingOpen) (0, import_utils145.disableScroll)();
11405
11327
  setIsOpen(true);
11406
11328
  };
11407
11329
  const handleClose = () => {
11408
- if (!enableScrollingOpen) (0, import_utils146.enableScroll)();
11330
+ if (!enableScrollingOpen) (0, import_utils145.enableScroll)();
11409
11331
  setTimeout(() => setIsOpen(false), 10);
11410
11332
  };
11411
- (0, import_react55.useEffect)(() => {
11333
+ (0, import_react54.useEffect)(() => {
11412
11334
  const handleHideScroll = () => {
11413
11335
  const hidePosition = typeof hideOnScroll === "number" ? hideOnScroll : 400;
11414
11336
  if (window.pageYOffset >= hidePosition) {
@@ -11433,9 +11355,9 @@ var Header = (_a) => {
11433
11355
  };
11434
11356
  const searchProps = { search, handleClose };
11435
11357
  const navProps = {
11436
- children: /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)(import_jsx_runtime126.Fragment, { children: [
11358
+ children: /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(import_jsx_runtime125.Fragment, { children: [
11437
11359
  links ? links.map((link) => link) : nav ? nav : children,
11438
- isMobile && /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(HeaderSearch, __spreadValues({}, searchProps))
11360
+ isMobile && /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(HeaderSearch, __spreadValues({}, searchProps))
11439
11361
  ] }),
11440
11362
  className: clsx(
11441
11363
  "z-999 flex gap-2 [&>a]:outline-none transition-all duration-200 ease-in-out",
@@ -11464,7 +11386,7 @@ var Header = (_a) => {
11464
11386
  useClickOutside(el, () => {
11465
11387
  if (isOpen) handleClose();
11466
11388
  });
11467
- return /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)(
11389
+ return /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(
11468
11390
  Element,
11469
11391
  __spreadProps(__spreadValues({
11470
11392
  ref,
@@ -11482,8 +11404,8 @@ var Header = (_a) => {
11482
11404
  )
11483
11405
  }, rest), {
11484
11406
  children: [
11485
- burgerPosition === "left" && /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(Burger, __spreadValues({}, burgerProps)),
11486
- /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
11407
+ burgerPosition === "left" && /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(Burger, __spreadValues({}, burgerProps)),
11408
+ /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
11487
11409
  "span",
11488
11410
  {
11489
11411
  className: clsx(
@@ -11493,10 +11415,10 @@ var Header = (_a) => {
11493
11415
  children: logo
11494
11416
  }
11495
11417
  ),
11496
- navDesktopPosition === "left" && /* @__PURE__ */ (0, import_jsx_runtime126.jsx)("nav", __spreadValues({}, navProps)),
11497
- !isMobile && navDesktopPosition === "right" && /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(HeaderSearch, __spreadValues({}, searchProps)),
11498
- burgerPosition === "right" && /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(Burger, __spreadValues({}, burgerProps)),
11499
- isMobile && navMobileVariant === "drawer" && /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
11418
+ navDesktopPosition === "left" && /* @__PURE__ */ (0, import_jsx_runtime125.jsx)("nav", __spreadValues({}, navProps)),
11419
+ !isMobile && navDesktopPosition === "right" && /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(HeaderSearch, __spreadValues({}, searchProps)),
11420
+ burgerPosition === "right" && /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(Burger, __spreadValues({}, burgerProps)),
11421
+ isMobile && navMobileVariant === "drawer" && /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
11500
11422
  "div",
11501
11423
  {
11502
11424
  className: clsx(
@@ -11508,17 +11430,17 @@ var Header = (_a) => {
11508
11430
  onClick: handleClose
11509
11431
  }
11510
11432
  ),
11511
- navDesktopPosition === "right" && /* @__PURE__ */ (0, import_jsx_runtime126.jsx)("nav", __spreadValues({}, navProps)),
11512
- !isMobile && navDesktopPosition === "left" && /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(HeaderSearch, __spreadValues({}, searchProps))
11433
+ navDesktopPosition === "right" && /* @__PURE__ */ (0, import_jsx_runtime125.jsx)("nav", __spreadValues({}, navProps)),
11434
+ !isMobile && navDesktopPosition === "left" && /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(HeaderSearch, __spreadValues({}, searchProps))
11513
11435
  ]
11514
11436
  })
11515
11437
  );
11516
11438
  };
11517
11439
 
11518
11440
  // src/lib/components/Footer/Footer.tsx
11519
- var import_react56 = require("react");
11520
- var import_utils148 = require("@julseb-lib/utils");
11521
- var import_jsx_runtime127 = require("react/jsx-runtime");
11441
+ var import_react55 = require("react");
11442
+ var import_utils147 = require("@julseb-lib/utils");
11443
+ var import_jsx_runtime126 = require("react/jsx-runtime");
11522
11444
  var Footer = (_a) => {
11523
11445
  var _b = _a, {
11524
11446
  className,
@@ -11547,8 +11469,8 @@ var Footer = (_a) => {
11547
11469
  ]);
11548
11470
  var _a2;
11549
11471
  const Element = element;
11550
- const childrenArray = import_react56.Children.toArray(children);
11551
- return /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)(
11472
+ const childrenArray = import_react55.Children.toArray(children);
11473
+ return /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)(
11552
11474
  Element,
11553
11475
  __spreadProps(__spreadValues({
11554
11476
  ref,
@@ -11562,9 +11484,9 @@ var Footer = (_a) => {
11562
11484
  }, rest), {
11563
11485
  children: [
11564
11486
  logo,
11565
- /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("div", { className: "flex items-container gap-2", children: (_a2 = items == null ? void 0 : items.map((item, i) => /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)(import_react56.Fragment, { children: [
11487
+ /* @__PURE__ */ (0, import_jsx_runtime126.jsx)("div", { className: "flex items-container gap-2", children: (_a2 = items == null ? void 0 : items.map((item, i) => /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)(import_react55.Fragment, { children: [
11566
11488
  item,
11567
- i !== items.length - 1 && !hideLinksSeparator && /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(
11489
+ i !== items.length - 1 && !hideLinksSeparator && /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
11568
11490
  "span",
11569
11491
  {
11570
11492
  className: clsx(
@@ -11573,17 +11495,17 @@ var Footer = (_a) => {
11573
11495
  children: linksSeparator === "dot" ? "\u2022" : "-"
11574
11496
  }
11575
11497
  )
11576
- ] }, (0, import_utils148.uuid)()))) != null ? _a2 : childrenArray.map((child, i) => /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)(import_react56.Fragment, { children: [
11498
+ ] }, (0, import_utils147.uuid)()))) != null ? _a2 : childrenArray.map((child, i) => /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)(import_react55.Fragment, { children: [
11577
11499
  child,
11578
11500
  i !== childrenArray.length - 1 && !hideLinksSeparator && (linksSeparator === "dot" ? "\u2022" : "-")
11579
- ] }, (0, import_utils148.uuid)())) })
11501
+ ] }, (0, import_utils147.uuid)())) })
11580
11502
  ]
11581
11503
  })
11582
11504
  );
11583
11505
  };
11584
11506
 
11585
11507
  // src/lib/components/Meta/Meta.tsx
11586
- var import_jsx_runtime128 = require("react/jsx-runtime");
11508
+ var import_jsx_runtime127 = require("react/jsx-runtime");
11587
11509
  var Meta = ({
11588
11510
  children,
11589
11511
  title,
@@ -11605,59 +11527,59 @@ var Meta = ({
11605
11527
  category,
11606
11528
  twitterCard = "summary"
11607
11529
  }) => {
11608
- return /* @__PURE__ */ (0, import_jsx_runtime128.jsxs)(import_jsx_runtime128.Fragment, { children: [
11609
- /* @__PURE__ */ (0, import_jsx_runtime128.jsx)("meta", { charSet: "utf-8" }),
11610
- /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
11530
+ return /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)(import_jsx_runtime127.Fragment, { children: [
11531
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("meta", { charSet: "utf-8" }),
11532
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(
11611
11533
  "meta",
11612
11534
  {
11613
11535
  name: "viewport",
11614
11536
  content: "width=device-width, initial-scale=1"
11615
11537
  }
11616
11538
  ),
11617
- title && /* @__PURE__ */ (0, import_jsx_runtime128.jsxs)(import_jsx_runtime128.Fragment, { children: [
11618
- /* @__PURE__ */ (0, import_jsx_runtime128.jsx)("title", { children: title }),
11619
- /* @__PURE__ */ (0, import_jsx_runtime128.jsx)("meta", { property: "og:title", content: title }),
11620
- /* @__PURE__ */ (0, import_jsx_runtime128.jsx)("meta", { name: "twitter:title", content: title })
11539
+ title && /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)(import_jsx_runtime127.Fragment, { children: [
11540
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("title", { children: title }),
11541
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("meta", { property: "og:title", content: title }),
11542
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("meta", { name: "twitter:title", content: title })
11621
11543
  ] }),
11622
- description && /* @__PURE__ */ (0, import_jsx_runtime128.jsxs)(import_jsx_runtime128.Fragment, { children: [
11623
- /* @__PURE__ */ (0, import_jsx_runtime128.jsx)("meta", { name: "description", content: description }),
11624
- /* @__PURE__ */ (0, import_jsx_runtime128.jsx)("meta", { property: "og:description", content: description }),
11625
- /* @__PURE__ */ (0, import_jsx_runtime128.jsx)("meta", { name: "twitter:description", content: description })
11544
+ description && /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)(import_jsx_runtime127.Fragment, { children: [
11545
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("meta", { name: "description", content: description }),
11546
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("meta", { property: "og:description", content: description }),
11547
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("meta", { name: "twitter:description", content: description })
11626
11548
  ] }),
11627
- siteName && /* @__PURE__ */ (0, import_jsx_runtime128.jsxs)(import_jsx_runtime128.Fragment, { children: [
11628
- /* @__PURE__ */ (0, import_jsx_runtime128.jsx)("meta", { name: "application-name", content: siteName }),
11629
- /* @__PURE__ */ (0, import_jsx_runtime128.jsx)("meta", { property: "og:site_name", content: siteName })
11549
+ siteName && /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)(import_jsx_runtime127.Fragment, { children: [
11550
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("meta", { name: "application-name", content: siteName }),
11551
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("meta", { property: "og:site_name", content: siteName })
11630
11552
  ] }),
11631
- author && /* @__PURE__ */ (0, import_jsx_runtime128.jsxs)(import_jsx_runtime128.Fragment, { children: [
11632
- /* @__PURE__ */ (0, import_jsx_runtime128.jsx)("meta", { name: "author", content: author }),
11633
- /* @__PURE__ */ (0, import_jsx_runtime128.jsx)("meta", { name: "twitter:creator", content: author })
11553
+ author && /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)(import_jsx_runtime127.Fragment, { children: [
11554
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("meta", { name: "author", content: author }),
11555
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("meta", { name: "twitter:creator", content: author })
11634
11556
  ] }),
11635
- url && /* @__PURE__ */ (0, import_jsx_runtime128.jsxs)(import_jsx_runtime128.Fragment, { children: [
11636
- /* @__PURE__ */ (0, import_jsx_runtime128.jsx)("meta", { property: "og:url", content: url }),
11637
- /* @__PURE__ */ (0, import_jsx_runtime128.jsx)("meta", { name: "twitter:site", content: url })
11557
+ url && /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)(import_jsx_runtime127.Fragment, { children: [
11558
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("meta", { property: "og:url", content: url }),
11559
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("meta", { name: "twitter:site", content: url })
11638
11560
  ] }),
11639
- cover && /* @__PURE__ */ (0, import_jsx_runtime128.jsxs)(import_jsx_runtime128.Fragment, { children: [
11640
- /* @__PURE__ */ (0, import_jsx_runtime128.jsx)("meta", { property: "og:image", content: cover }),
11641
- /* @__PURE__ */ (0, import_jsx_runtime128.jsx)("meta", { name: "twitter:image", content: cover })
11561
+ cover && /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)(import_jsx_runtime127.Fragment, { children: [
11562
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("meta", { property: "og:image", content: cover }),
11563
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("meta", { name: "twitter:image", content: cover })
11642
11564
  ] }),
11643
- authorUrl && /* @__PURE__ */ (0, import_jsx_runtime128.jsx)("link", { rel: "author", href: authorUrl }),
11644
- manifest && /* @__PURE__ */ (0, import_jsx_runtime128.jsx)("link", { rel: "manifest", href: manifest }),
11645
- generator && /* @__PURE__ */ (0, import_jsx_runtime128.jsx)("meta", { name: "generator", content: generator }),
11646
- keywords && /* @__PURE__ */ (0, import_jsx_runtime128.jsx)("meta", { name: "keywords", content: keywords == null ? void 0 : keywords.join(",") }),
11647
- creator && /* @__PURE__ */ (0, import_jsx_runtime128.jsx)("meta", { name: "creator", content: creator }),
11648
- publisher && /* @__PURE__ */ (0, import_jsx_runtime128.jsx)("meta", { name: "publisher", content: publisher }),
11649
- category && /* @__PURE__ */ (0, import_jsx_runtime128.jsx)("meta", { name: "category", content: category }),
11650
- language && /* @__PURE__ */ (0, import_jsx_runtime128.jsx)("meta", { property: "og:locale", content: language }),
11651
- email && /* @__PURE__ */ (0, import_jsx_runtime128.jsx)("meta", { property: "og:email", content: email }),
11652
- type && /* @__PURE__ */ (0, import_jsx_runtime128.jsx)("meta", { property: "og:type", content: type }),
11653
- twitterCard && /* @__PURE__ */ (0, import_jsx_runtime128.jsx)("meta", { name: "twitter:card", content: twitterCard }),
11654
- favicon && /* @__PURE__ */ (0, import_jsx_runtime128.jsx)("link", { rel: "icon", href: favicon }),
11565
+ authorUrl && /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("link", { rel: "author", href: authorUrl }),
11566
+ manifest && /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("link", { rel: "manifest", href: manifest }),
11567
+ generator && /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("meta", { name: "generator", content: generator }),
11568
+ keywords && /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("meta", { name: "keywords", content: keywords == null ? void 0 : keywords.join(",") }),
11569
+ creator && /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("meta", { name: "creator", content: creator }),
11570
+ publisher && /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("meta", { name: "publisher", content: publisher }),
11571
+ category && /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("meta", { name: "category", content: category }),
11572
+ language && /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("meta", { property: "og:locale", content: language }),
11573
+ email && /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("meta", { property: "og:email", content: email }),
11574
+ type && /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("meta", { property: "og:type", content: type }),
11575
+ twitterCard && /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("meta", { name: "twitter:card", content: twitterCard }),
11576
+ favicon && /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("link", { rel: "icon", href: favicon }),
11655
11577
  children
11656
11578
  ] });
11657
11579
  };
11658
11580
 
11659
11581
  // src/lib/components/PageLayout/PageLayout.tsx
11660
- var import_jsx_runtime129 = require("react/jsx-runtime");
11582
+ var import_jsx_runtime128 = require("react/jsx-runtime");
11661
11583
  var PageLayout = ({
11662
11584
  children,
11663
11585
  meta,
@@ -11668,19 +11590,19 @@ var PageLayout = ({
11668
11590
  noWrapper,
11669
11591
  noMain
11670
11592
  }) => {
11671
- return /* @__PURE__ */ (0, import_jsx_runtime129.jsxs)(import_jsx_runtime129.Fragment, { children: [
11672
- meta && /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(Meta, __spreadValues({}, meta)),
11673
- header && /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(Header, __spreadValues({}, header)),
11674
- !noWrapper && /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(Wrapper, __spreadProps(__spreadValues({}, wrapperProps), { children: !noMain ? /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(Main, __spreadProps(__spreadValues({}, mainProps), { children })) : children })),
11675
- footer && /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(Footer, __spreadValues({}, footer))
11593
+ return /* @__PURE__ */ (0, import_jsx_runtime128.jsxs)(import_jsx_runtime128.Fragment, { children: [
11594
+ meta && /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(Meta, __spreadValues({}, meta)),
11595
+ header && /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(Header, __spreadValues({}, header)),
11596
+ !noWrapper && /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(Wrapper, __spreadProps(__spreadValues({}, wrapperProps), { children: !noMain ? /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(Main, __spreadProps(__spreadValues({}, mainProps), { children })) : children })),
11597
+ footer && /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(Footer, __spreadValues({}, footer))
11676
11598
  ] });
11677
11599
  };
11678
11600
 
11679
11601
  // src/lib/components/SrOnly/SrOnly.tsx
11680
- var import_jsx_runtime130 = require("react/jsx-runtime");
11602
+ var import_jsx_runtime129 = require("react/jsx-runtime");
11681
11603
  var SrOnly = ({ element = "div", ref, children }) => {
11682
11604
  const Element = element;
11683
- return /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(Element, { ref, className: clsx("sr-only"), children });
11605
+ return /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(Element, { ref, className: clsx("sr-only"), children });
11684
11606
  };
11685
11607
  // Annotate the CommonJS export names for ESM import in node:
11686
11608
  0 && (module.exports = {
@@ -11698,7 +11620,6 @@ var SrOnly = ({ element = "div", ref, children }) => {
11698
11620
  ButtonGroup,
11699
11621
  ButtonIcon,
11700
11622
  COLORS,
11701
- CodeContainer,
11702
11623
  Cover,
11703
11624
  DROP_SHADOWS,
11704
11625
  DragList,