@julseb-lib/react 0.0.13 → 0.0.16

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 (80) hide show
  1. package/dist/index.cjs.js +527 -527
  2. package/dist/index.es.js +5122 -5618
  3. package/dist/index.umd.js +570 -570
  4. package/dist/lib/Mixins.tsx +1 -1
  5. package/dist/lib/components/Accordion/Accordion.tsx +1 -1
  6. package/dist/lib/components/Accordion/AccordionButton.tsx +1 -1
  7. package/dist/lib/components/Accordion/AccordionContent.tsx +1 -1
  8. package/dist/lib/components/Accordion/AccordionItem.tsx +1 -1
  9. package/dist/lib/components/Alert/Alert.tsx +1 -1
  10. package/dist/lib/components/Aside/styles.tsx +1 -1
  11. package/dist/lib/components/Autocomplete/Autocomplete.tsx +1 -1
  12. package/dist/lib/components/Avatar/Avatar.tsx +1 -1
  13. package/dist/lib/components/Avatar/AvatarFunction.tsx +1 -1
  14. package/dist/lib/components/BackToTop/BackToTop.tsx +1 -1
  15. package/dist/lib/components/Badge/Badge.tsx +1 -1
  16. package/dist/lib/components/Breadcrumbs/BreadcrumbItem.tsx +1 -1
  17. package/dist/lib/components/Breadcrumbs/Breadcrumbs.tsx +1 -1
  18. package/dist/lib/components/Breadcrumbs/BreadcrumbsFn.tsx +1 -1
  19. package/dist/lib/components/Burger/styles.tsx +1 -1
  20. package/dist/lib/components/ButtonGroup/ButtonGroup.tsx +1 -1
  21. package/dist/lib/components/ButtonGroup/ButtonGroupButton.tsx +1 -1
  22. package/dist/lib/components/ButtonIcon/ButtonIcon.tsx +1 -1
  23. package/dist/lib/components/ButtonIcon/styles.tsx +1 -1
  24. package/dist/lib/components/Card/styles.tsx +1 -1
  25. package/dist/lib/components/Cover/styles.tsx +1 -1
  26. package/dist/lib/components/Datepicker/Calendar.tsx +1 -1
  27. package/dist/lib/components/Datepicker/Datepicker.tsx +1 -1
  28. package/dist/lib/components/DragList/styles.tsx +1 -1
  29. package/dist/lib/components/Drawer/Drawer.tsx +4 -1
  30. package/dist/lib/components/Dropdown/Dropdown.tsx +1 -1
  31. package/dist/lib/components/Dropdown/styles.tsx +1 -1
  32. package/dist/lib/components/Fallback/Fallback.tsx +1 -1
  33. package/dist/lib/components/Footer/Footer.tsx +1 -1
  34. package/dist/lib/components/Form/styles.tsx +1 -1
  35. package/dist/lib/components/FullBleed/styles.tsx +1 -1
  36. package/dist/lib/components/Header/Header.tsx +1 -1
  37. package/dist/lib/components/Header/HeaderNav.tsx +1 -1
  38. package/dist/lib/components/Header/styles.tsx +1 -1
  39. package/dist/lib/components/Hr/styles.tsx +1 -1
  40. package/dist/lib/components/Icon/styles.tsx +1 -1
  41. package/dist/lib/components/Image/styles.tsx +1 -1
  42. package/dist/lib/components/InputCheck/InputCheck.tsx +1 -1
  43. package/dist/lib/components/InputContainer/styles.tsx +1 -1
  44. package/dist/lib/components/InputImage/styles.tsx +1 -1
  45. package/dist/lib/components/InputSlider/styles.tsx +1 -1
  46. package/dist/lib/components/Linkify/Linkify.tsx +1 -1
  47. package/dist/lib/components/ListGroup/ListGroup.tsx +1 -1
  48. package/dist/lib/components/ListGroup/styles.tsx +1 -1
  49. package/dist/lib/components/Loader/styles.tsx +1 -1
  50. package/dist/lib/components/Main/styles.tsx +1 -1
  51. package/dist/lib/components/MarkdownEditor/MdEditorButtons/EditorButtons.tsx +1 -1
  52. package/dist/lib/components/MarkdownEditor/MdEditorButtons/MarkdownButtons.tsx +1 -1
  53. package/dist/lib/components/Masonry/Masonry.tsx +1 -1
  54. package/dist/lib/components/Messaging/Message.tsx +1 -1
  55. package/dist/lib/components/Messaging/Messaging.tsx +1 -1
  56. package/dist/lib/components/Modal/Modal.tsx +1 -1
  57. package/dist/lib/components/PageLoading/PageLoading.tsx +1 -1
  58. package/dist/lib/components/ProgressBar/ProgressBar.tsx +1 -1
  59. package/dist/lib/components/Rating/Rating.tsx +1 -1
  60. package/dist/lib/components/Skeleton/styles.tsx +1 -1
  61. package/dist/lib/components/Slideshow/Slideshow.tsx +1 -1
  62. package/dist/lib/components/Slideshow/SlideshowPagination.tsx +1 -1
  63. package/dist/lib/components/Slideshow/styles.tsx +1 -1
  64. package/dist/lib/components/Stepper/Stepper.tsx +1 -1
  65. package/dist/lib/components/Table/Table.tsx +1 -1
  66. package/dist/lib/components/Tabs/Tabs.tsx +1 -1
  67. package/dist/lib/components/TextIcon/styles.tsx +1 -1
  68. package/dist/lib/components/Toast/Toast.tsx +1 -1
  69. package/dist/lib/components/Toast/Toaster.tsx +1 -1
  70. package/dist/lib/components/Video/styles.tsx +1 -1
  71. package/dist/lib/components/Youtube/Youtube.tsx +1 -1
  72. package/dist/lib/components/Youtube/styles.tsx +1 -1
  73. package/dist/lib/hooks/usePagination.tsx +1 -1
  74. package/dist/lib/hooks/useTranslation.tsx +1 -1
  75. package/dist/lib/index.ts +2 -1
  76. package/dist/lib/lib-utils/get-highlighted-text.tsx +1 -1
  77. package/dist/lib/utils/linkify-text.tsx +1 -1
  78. package/dist/{styles-DM9qlYpR.js → styles-BCSPldCD.js} +1 -1
  79. package/dist/{styles-CVN0uFDU.cjs → styles-CtcGw3Gv.cjs} +2 -2
  80. package/package.json +4 -5
@@ -1,7 +1,7 @@
1
1
  /*=============================================== Stepper component ===============================================*/
2
2
 
3
3
  import { forwardRef } from "react"
4
- import { uuid } from "ts-utils-julseb"
4
+ import { uuid } from "@julseb-lib/utils"
5
5
  import { Step } from "./Step"
6
6
  import { StyledStepper } from "./styles"
7
7
  import type { ILibStepper } from "./types"
@@ -1,7 +1,7 @@
1
1
  /*=============================================== Table component ===============================================*/
2
2
 
3
3
  import { forwardRef } from "react"
4
- import { uuid } from "ts-utils-julseb"
4
+ import { uuid } from "@julseb-lib/utils"
5
5
  import { Linkify } from "../../"
6
6
  import { THead } from "./THead"
7
7
  import { TBody } from "./TBody"
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { forwardRef, useState } from "react"
4
4
  import { useSearchParams } from "react-router-dom"
5
- import { uuid } from "ts-utils-julseb"
5
+ import { uuid } from "@julseb-lib/utils"
6
6
  import { Text } from "../../"
7
7
  import { TabsContainer } from "./TabsContainer"
8
8
  import { TabsButtonsContainer } from "./TabsButtonsContainer"
@@ -1,7 +1,7 @@
1
1
  /*=============================================== TextIcon styles ===============================================*/
2
2
 
3
3
  import styled from "styled-components"
4
- import { stringifyPx } from "ts-utils-julseb"
4
+ import { stringifyPx } from "@julseb-lib/utils"
5
5
  import { Mixins, setDefaultTheme } from "../../"
6
6
  import { getIconHeight } from "./utils"
7
7
  import type { LibSpacers, LibTextIconTag } from "../../types"
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { forwardRef, useEffect, useCallback, useRef, useState } from "react"
4
4
  import classNames from "classnames"
5
- import { uuid } from "ts-utils-julseb"
5
+ import { uuid } from "@julseb-lib/utils"
6
6
  import { Text, useToast, useMergeRefs } from "../.."
7
7
  import { LibIcon } from "../LibIcon"
8
8
  import { Close } from "../../icons"
@@ -1,7 +1,7 @@
1
1
  /*=============================================== Toaster component ===============================================*/
2
2
 
3
3
  import { forwardRef } from "react"
4
- import { uuid } from "ts-utils-julseb"
4
+ import { uuid } from "@julseb-lib/utils"
5
5
  import { Loader } from "../Loader"
6
6
  import { Toast } from "./Toast"
7
7
  import type { LibAllColors } from "../../types"
@@ -1,7 +1,7 @@
1
1
  /*=============================================== Video styles ===============================================*/
2
2
 
3
3
  import styled from "styled-components"
4
- import { stringifyPx } from "ts-utils-julseb"
4
+ import { stringifyPx } from "@julseb-lib/utils"
5
5
  import { setDefaultTheme } from "../../"
6
6
  import type { CssObjectFit } from "../../types"
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*=============================================== Youtube component ===============================================*/
2
2
 
3
3
  import { forwardRef } from "react"
4
- import { convertYoutube } from "ts-utils-julseb"
4
+ import { convertYoutube } from "@julseb-lib/utils"
5
5
  import { StyledYoutube } from "./styles"
6
6
  import type { ILibYoutube } from "./types"
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*=============================================== Youtube styles ===============================================*/
2
2
 
3
3
  import styled from "styled-components"
4
- import { stringifyPx } from "ts-utils-julseb"
4
+ import { stringifyPx } from "@julseb-lib/utils"
5
5
  import { setDefaultTheme } from "../../"
6
6
 
7
7
  const StyledYoutube = styled.iframe<{
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { useCallback } from "react"
4
4
  import { useSearchParams } from "react-router-dom"
5
- import { scrollToTop } from "ts-utils-julseb"
5
+ import { scrollToTop } from "@julseb-lib/utils"
6
6
  import type { DispatchState } from "../types"
7
7
 
8
8
  interface ILibUsePaginationNavigation {
@@ -1,7 +1,7 @@
1
1
  /*=============================================== useTranslation ===============================================*/
2
2
 
3
3
  import { useState, useEffect } from "react"
4
- import { detectLanguage } from "ts-utils-julseb"
4
+ import { detectLanguage } from "@julseb-lib/utils"
5
5
  import type { TranslateLang } from "../types"
6
6
 
7
7
  let currentLanguage = detectLanguage() || "en"
package/dist/lib/index.ts CHANGED
@@ -24,6 +24,7 @@ export {
24
24
  formatHour,
25
25
  generateNumbers,
26
26
  getFirstName,
27
+ getInitials,
27
28
  getLastName,
28
29
  getPercentage,
29
30
  getRandom,
@@ -55,7 +56,7 @@ export {
55
56
  toTitleCase,
56
57
  unslugify,
57
58
  uuid,
58
- } from "ts-utils-julseb"
59
+ } from "@julseb-lib/utils"
59
60
 
60
61
  export * from "./Variables"
61
62
  export * from "./Mixins"
@@ -1,7 +1,7 @@
1
1
  /*=============================================== GetHighlightedText ===============================================*/
2
2
 
3
3
  import { Fragment, type CSSProperties } from "react"
4
- import { uuid, slugify } from "ts-utils-julseb"
4
+ import { uuid, slugify } from "@julseb-lib/utils"
5
5
  import { Text } from ".."
6
6
  import type { ReactChildren } from "../types"
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*=============================================== Linkify text ===============================================*/
2
2
 
3
3
  import { Fragment } from "react"
4
- import { uuid } from "ts-utils-julseb"
4
+ import { uuid } from "@julseb-lib/utils"
5
5
 
6
6
  export const URL_REGEX =
7
7
  /^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$/gm
@@ -1,5 +1,5 @@
1
1
  import i from "styled-components";
2
- import { stringifyPx as o } from "ts-utils-julseb";
2
+ import { stringifyPx as o } from "@julseb-lib/utils";
3
3
  import { setDefaultTheme as e } from "./index.es.js";
4
4
  import "react";
5
5
  import "react-router-dom";
@@ -1,7 +1,7 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("styled-components"),t=require("ts-utils-julseb"),s=require("./index.cjs.js");require("react");require("react-router-dom");const i=r.video`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("styled-components"),t=require("@julseb-lib/utils"),o=require("./index.cjs.js");require("react");require("react-router-dom");const i=r.video`
2
2
  display: block;
3
3
  width: ${({$width:e})=>t.stringifyPx(e)};
4
4
  height: ${({$height:e})=>t.stringifyPx(e)};
5
5
  object-fit: ${({$fit:e})=>e};
6
6
  aspect-ratio: ${({$aspectRatio:e})=>e};
7
- `;s.setDefaultTheme([i]);exports.default=i;
7
+ `;o.setDefaultTheme([i]);exports.default=i;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@julseb-lib/react",
3
- "version": "0.0.13",
3
+ "version": "0.0.16",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -11,7 +11,7 @@
11
11
  "copy": "cp ./src/lib/index.css ./dist",
12
12
  "copy-lib": "cp -a ./src/lib ./dist && rm -rf ./dist/lib/components/*/__tests__ ./dist/lib/components/*/__preview__",
13
13
  "clean": "rm -rf ./dist/icons ./dist/images ./dist/vite.svg ./dist/favicon.svg ./dist/icons-alt",
14
- "build-lib": "rm -rf ./dist && mkdir ./dist && tsc && vite build && yarn copy && yarn copy-lib && yarn clean",
14
+ "build:lib": "rm -rf ./dist && mkdir ./dist && tsc && vite build && yarn copy && yarn copy-lib && yarn clean",
15
15
  "cy": "cypress",
16
16
  "cy:open": "cypress open",
17
17
  "cy:ct:run": "cypress run --component --browser electron",
@@ -24,7 +24,7 @@
24
24
  "check-errors": "tsc --noEmit"
25
25
  },
26
26
  "dependencies": {
27
- "@julseb-lib/utils": "^0.0.1",
27
+ "@julseb-lib/utils": "^0.0.2",
28
28
  "classnames": "^2.5.1",
29
29
  "fuse.js": "^7.0.0",
30
30
  "markdown-to-jsx": "^7.5.0",
@@ -34,8 +34,7 @@
34
34
  "react-inlinesvg": "^4.1.3",
35
35
  "react-router-dom": "^6.26.1",
36
36
  "react-syntax-highlighter": "^15.5.0",
37
- "styled-components": "^6.1.12",
38
- "ts-utils-julseb": "2.4.5"
37
+ "styled-components": "^6.1.12"
39
38
  },
40
39
  "devDependencies": {
41
40
  "@eslint/compat": "^1.1.1",