mado-ui 0.5.4 → 0.5.7

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 (92) hide show
  1. package/css/index.css +283 -8
  2. package/dist/components/drop-down.d.ts +12 -12
  3. package/dist/components/drop-down.d.ts.map +1 -1
  4. package/dist/components/form/human-verification.d.ts +15 -0
  5. package/dist/components/form/human-verification.d.ts.map +1 -0
  6. package/dist/components/form/input/date/views/calendar-view.d.ts +2 -0
  7. package/dist/components/form/input/date/views/calendar-view.d.ts.map +1 -0
  8. package/dist/components/form/input/date/views/clock-view.d.ts +2 -0
  9. package/dist/components/form/input/date/views/clock-view.d.ts.map +1 -0
  10. package/dist/components/form/input/date/views/dropdown-view.d.ts +2 -0
  11. package/dist/components/form/input/date/views/dropdown-view.d.ts.map +1 -0
  12. package/dist/components/form/input/date/views/rotary-view.d.ts +2 -0
  13. package/dist/components/form/input/date/views/rotary-view.d.ts.map +1 -0
  14. package/dist/components/form/input/date/views/view-handler.d.ts +21 -0
  15. package/dist/components/form/input/date/views/view-handler.d.ts.map +1 -0
  16. package/dist/components/form/input/index.d.ts +24 -24
  17. package/dist/components/form/input/index.d.ts.map +1 -1
  18. package/dist/components/form/input/input-types.d.ts +102 -0
  19. package/dist/components/form/input/input-types.d.ts.map +1 -0
  20. package/dist/components/form/input/number-input.d.ts +4 -0
  21. package/dist/components/form/input/number-input.d.ts.map +1 -0
  22. package/dist/components/form/input/text-input.d.ts +36 -0
  23. package/dist/components/form/input/text-input.d.ts.map +1 -0
  24. package/dist/components/form/select.d.ts +41 -0
  25. package/dist/components/form/select.d.ts.map +1 -0
  26. package/dist/components/link.d.ts +14 -13
  27. package/dist/components/link.d.ts.map +1 -1
  28. package/dist/components/tooltip.d.ts +7 -7
  29. package/dist/components/tooltip.d.ts.map +1 -1
  30. package/dist/components/video.d.ts +6 -6
  31. package/dist/components/video.d.ts.map +1 -1
  32. package/dist/components.d.ts +50 -49
  33. package/dist/components.esm.js +600 -459
  34. package/dist/components.esm.js.map +1 -1
  35. package/dist/components.js +598 -456
  36. package/dist/components.js.map +1 -1
  37. package/dist/graphics/index.d.ts +2 -0
  38. package/dist/graphics/index.d.ts.map +1 -0
  39. package/dist/graphics/social-media/facebook-logo.d.ts +33 -0
  40. package/dist/graphics/social-media/facebook-logo.d.ts.map +1 -0
  41. package/dist/graphics/social-media/google-logo.d.ts +13 -0
  42. package/dist/graphics/social-media/google-logo.d.ts.map +1 -0
  43. package/dist/graphics/social-media/index.d.ts +8 -0
  44. package/dist/graphics/social-media/index.d.ts.map +1 -0
  45. package/dist/graphics/social-media/instagram-logo.d.ts +13 -0
  46. package/dist/graphics/social-media/instagram-logo.d.ts.map +1 -0
  47. package/dist/graphics/social-media/linkedin-logo.d.ts +26 -0
  48. package/dist/graphics/social-media/linkedin-logo.d.ts.map +1 -0
  49. package/dist/graphics/social-media/tiktok-logo.d.ts +26 -0
  50. package/dist/graphics/social-media/tiktok-logo.d.ts.map +1 -0
  51. package/dist/graphics/social-media/x-logo.d.ts +6 -0
  52. package/dist/graphics/social-media/x-logo.d.ts.map +1 -0
  53. package/dist/graphics/social-media/youtube-logo.d.ts +26 -0
  54. package/dist/graphics/social-media/youtube-logo.d.ts.map +1 -0
  55. package/dist/graphics.d.ts +141 -0
  56. package/dist/graphics.d.ts.map +1 -0
  57. package/dist/graphics.esm.js +241 -0
  58. package/dist/graphics.esm.js.map +1 -0
  59. package/dist/graphics.js +249 -0
  60. package/dist/graphics.js.map +1 -0
  61. package/dist/icons/index.d.ts +142 -143
  62. package/dist/icons/index.d.ts.map +1 -1
  63. package/dist/icons/square-and-arrow-up-right.d.ts +3 -0
  64. package/dist/icons/square-and-arrow-up-right.d.ts.map +1 -0
  65. package/dist/icons/square-and-pencil.d.ts +2 -2
  66. package/dist/icons/square-and-pencil.d.ts.map +1 -1
  67. package/dist/icons.d.ts +2 -4
  68. package/dist/icons.esm.js +2 -6
  69. package/dist/icons.esm.js.map +1 -1
  70. package/dist/icons.js +1 -6
  71. package/dist/icons.js.map +1 -1
  72. package/dist/index.d.ts +50 -49
  73. package/dist/index.esm.js +600 -459
  74. package/dist/index.esm.js.map +1 -1
  75. package/dist/index.js +598 -456
  76. package/dist/index.js.map +1 -1
  77. package/dist/utils/string-manipulation.d.ts +23 -1
  78. package/dist/utils/string-manipulation.d.ts.map +1 -1
  79. package/dist/utils.d.ts +24 -2
  80. package/dist/utils.esm.js +76 -18
  81. package/dist/utils.esm.js.map +1 -1
  82. package/dist/utils.js +78 -17
  83. package/dist/utils.js.map +1 -1
  84. package/package.json +24 -32
  85. package/dist/components/mado-ui-provider.d.ts +0 -1
  86. package/dist/hooks/use-anime-scope.d.ts +0 -15
  87. package/dist/icons/square-and-pencil-fill.d.ts +0 -3
  88. package/dist/icons/square-and-pencil-fill.d.ts.map +0 -1
  89. package/dist/types.esm.js +0 -2
  90. package/dist/types.esm.js.map +0 -1
  91. package/dist/types.js +0 -3
  92. package/dist/types.js.map +0 -1
package/dist/utils.js CHANGED
@@ -767,13 +767,14 @@ function isPhoneNumber(tel) {
767
767
  * @returns {string} string formatted
768
768
  */
769
769
  function formatPhoneNumber(phoneNumber, options) {
770
- const format = options?.format || 'standard';
771
- if (format !== 'none')
772
- phoneNumber = phoneNumber.replace(/\D/g, '').slice(-10);
770
+ const format = options?.format || "standard";
771
+ if (format !== "none") {
772
+ phoneNumber = phoneNumber.replace(/\D/g, "").slice(-10);
773
+ }
773
774
  switch (format) {
774
- case 'dot':
775
+ case "dot":
775
776
  phoneNumber = phoneNumber
776
- .split('')
777
+ .split("")
777
778
  .map((char, index) => {
778
779
  if (index === 2)
779
780
  return `${char}.`;
@@ -781,11 +782,11 @@ function formatPhoneNumber(phoneNumber, options) {
781
782
  return `${char}.`;
782
783
  return char;
783
784
  })
784
- .join('');
785
+ .join("");
785
786
  break;
786
- case 'hyphenated':
787
+ case "hyphenated":
787
788
  phoneNumber = phoneNumber
788
- .split('')
789
+ .split("")
789
790
  .map((char, index) => {
790
791
  if (index === 2)
791
792
  return `${char}-`;
@@ -793,11 +794,11 @@ function formatPhoneNumber(phoneNumber, options) {
793
794
  return `${char}-`;
794
795
  return char;
795
796
  })
796
- .join('');
797
+ .join("");
797
798
  break;
798
- case 'space':
799
+ case "space":
799
800
  phoneNumber = phoneNumber
800
- .split('')
801
+ .split("")
801
802
  .map((char, index) => {
802
803
  if (index === 2)
803
804
  return `${char} `;
@@ -805,11 +806,11 @@ function formatPhoneNumber(phoneNumber, options) {
805
806
  return `${char} `;
806
807
  return char;
807
808
  })
808
- .join('');
809
+ .join("");
809
810
  break;
810
- case 'standard':
811
+ case "standard":
811
812
  phoneNumber = phoneNumber
812
- .split('')
813
+ .split("")
813
814
  .map((char, index) => {
814
815
  if (index === 0)
815
816
  return `(${char}`;
@@ -819,9 +820,50 @@ function formatPhoneNumber(phoneNumber, options) {
819
820
  return `${char}-`;
820
821
  return char;
821
822
  })
822
- .join('');
823
+ .join("");
823
824
  }
824
- return `${options?.countryCode ? `+${options?.countryCode} ` : ''}` + phoneNumber;
825
+ return `${options?.countryCode ? `+${options?.countryCode} ` : ""}` +
826
+ phoneNumber;
827
+ }
828
+ /**
829
+ * ### Split Camel Case
830
+ * - Separates a camel case string with a joiner (default: ' ')
831
+ * @param {string} string
832
+ * @returns {string} string
833
+ */
834
+ function splitCamelCase(string, joiner = " ") {
835
+ if (string[0].match(/[A-Z0-9]/) || string.includes(" "))
836
+ return string;
837
+ let lastChar = "";
838
+ return string.split("")
839
+ .map((char) => {
840
+ let returnedString = char;
841
+ if (char.match(/[A-Z0-9]/))
842
+ returnedString = ` ${char}`;
843
+ if (lastChar.match(/[0-9]/) && char.match(/[0-9]/))
844
+ returnedString = char;
845
+ lastChar = char;
846
+ return returnedString;
847
+ })
848
+ .join(joiner);
849
+ }
850
+ /**
851
+ * ### To Camel Case
852
+ * - Converts any string to camel case based on spaces
853
+ * - Eliminates no letter-number characters
854
+ * @param {string} string
855
+ * @returns {string} string
856
+ */
857
+ function toCamelCase(string, delimiter = " ") {
858
+ if (typeof string !== "string")
859
+ return string;
860
+ return string
861
+ .toLowerCase()
862
+ .replace(/[^a-z0-9]/gi, delimiter)
863
+ .split(delimiter)
864
+ .map((str, index) => index === 0 ? str : str.substring(0, 1).toUpperCase() +
865
+ str.substring(1, str.length).toLowerCase())
866
+ .join("");
825
867
  }
826
868
  /**
827
869
  * # To Lower Case
@@ -833,7 +875,23 @@ function formatPhoneNumber(phoneNumber, options) {
833
875
  * @returns The lowercase version of the input string, with the replacements, if provided.
834
876
  */
835
877
  function toLowerCase(str, [delimiter, joiner]) {
836
- return str.toLowerCase().replaceAll(delimiter || ' ', joiner || ' ');
878
+ return str.toLowerCase().replaceAll(delimiter || " ", joiner || " ");
879
+ }
880
+ /**
881
+ * ### To Title Case
882
+ * - Converts any string to title case based on spaces
883
+ * @param {string} string
884
+ * @returns {string} string
885
+ */
886
+ function toTitleCase(string, delimiter = " ") {
887
+ if (typeof string !== "string")
888
+ return string;
889
+ return string
890
+ .toLowerCase()
891
+ .split(delimiter)
892
+ .map((str) => str.substring(0, 1).toUpperCase() +
893
+ str.substring(1, str.length).toLowerCase())
894
+ .join(" ");
837
895
  }
838
896
 
839
897
  function twSort(className) {
@@ -873,9 +931,12 @@ exports.isEmail = isEmail;
873
931
  exports.isPhoneNumber = isPhoneNumber;
874
932
  exports.monthNamesList = monthNamesList;
875
933
  exports.removeClass = removeClass;
934
+ exports.splitCamelCase = splitCamelCase;
876
935
  exports.telRegex = telRegex;
936
+ exports.toCamelCase = toCamelCase;
877
937
  exports.toFullDateString = toFullDateString;
878
938
  exports.toLowerCase = toLowerCase;
939
+ exports.toTitleCase = toTitleCase;
879
940
  exports.toggleClass = toggleClass;
880
941
  exports.twMerge = twMerge;
881
942
  exports.twSort = twSort;
package/dist/utils.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sources":["../src/utils/class-management.ts","../src/utils/custom-tailwind-merge.ts","../src/utils/get-date.ts","../src/utils/helpers.tsx","../src/utils/math.ts","../src/utils/regex.ts","../src/utils/string-manipulation.ts","../src/utils/tw-sort.ts"],"sourcesContent":["/**\n * ### Has Class\n * - Returns a boolean based on whether the specified element has the specified class\n * @param {HTMLElement} element Any HTML Element\n * @param {string} className A string of any class to check for\n * @returns {boolean} true if the specified element has the specified class, else false\n */\nexport function hasClass(element: HTMLElement, className: string): boolean {\n return element.classList.contains(className)\n}\n\n/**\n * ### Add Class\n * - Adds the specified classes to the specified elements\n * @param {Element|HTMLElement|HTMLElement[]|NodeList|string|undefined} elements An HTML Element, an array of HTML Elements, a Node List, a string (as a selector for a querySelector)\n * @param {string|string[]} classList A string or an array of classes to add to each element\n */\nexport function addClass(\n elements: Element | HTMLElement | HTMLElement[] | NodeList | string,\n classList: string | string[],\n) {\n const elementsType = elements.constructor.name,\n elementsIsString = typeof elements === 'string',\n classListType = classList.constructor.name,\n classListIsString = typeof classList === 'string'\n\n let elementList: HTMLElement[] | undefined,\n classListGroup: string[] | undefined\n\n // & Convert elements to array\n switch (elementsType) {\n // Selector\n case 'String':\n if (elementsIsString)\n elementList = Array.from(document.querySelectorAll(elements))\n break\n // Multiple HTML Elements\n case 'NodeList':\n if (!elementsIsString)\n elementList = Array.from(elements as NodeList) as HTMLElement[]\n break\n // Array of Elements\n case 'Array':\n if (!elementsIsString) elementList = elements as HTMLElement[]\n break\n // Single HTML Element\n default:\n if (elementsType.startsWith('HTML') && !elementsIsString)\n elementList = [elements as Element & HTMLElement]\n }\n\n // & Convert classList to array\n switch (classListType) {\n case 'String':\n if (classListIsString)\n if (classList.split(' ').length >= 2) {\n classListGroup = classList.split(' ')\n } else {\n classListGroup = [classList]\n }\n break\n case 'Array':\n if (!classListIsString) classListGroup = classList\n break\n }\n\n if (!elementList || elementList.length < 1)\n throw new Error(\n `Elements are invalid or undefined. elements: ${elements} → elementList: ${elementList}`,\n )\n\n if (!classListGroup || classListGroup.length < 1)\n throw new Error(\n `Class List is invalid or undefined. classList: ${classList} → classListGroup: ${classListGroup}`,\n )\n\n elementList.forEach((element) =>\n classListGroup.forEach((classItem) => {\n if (hasClass(element, classItem)) return\n element.classList.add(classItem)\n }),\n )\n}\n\n/**\n * ### Remove Class\n * - Removes the specified classes from the specified elements\n * @param {HTMLElement|HTMLElement[]|NodeList|string|undefined} elements An HTML Element, an array of HTML Elements, a Node List, a string (as a selector for a querySelector)\n * @param {string|string[]} classList A string or an array of classes to remove from each element\n */\nexport function removeClass(\n elements: HTMLElement | HTMLElement[] | NodeList | string,\n classList: string | string[],\n) {\n const elementsType = elements.constructor.name,\n elementsIsString = typeof elements === 'string',\n classListType = classList.constructor.name,\n classListIsString = typeof classList === 'string'\n\n let elementList: HTMLElement[] | undefined,\n classListGroup: string[] | undefined\n\n // & Convert elements to array\n switch (elementsType) {\n // Selector\n case 'String':\n if (elementsIsString)\n elementList = Array.from(document.querySelectorAll(elements))\n break\n // Multiple HTML Elements\n case 'NodeList':\n if (!elementsIsString)\n elementList = Array.from(elements as NodeList) as HTMLElement[]\n break\n // Array of Elements\n case 'Array':\n if (!elementsIsString) elementList = elements as HTMLElement[]\n break\n // Single HTML Element\n default:\n if (elementsType.startsWith('HTML') && !elementsIsString)\n elementList = [elements as Element & HTMLElement]\n }\n\n // & Convert classList to array\n switch (classListType) {\n case 'String':\n if (classListIsString)\n if (classList.split(' ').length >= 2) {\n classListGroup = classList.split(' ')\n } else {\n classListGroup = [classList]\n }\n break\n case 'Array':\n if (!classListIsString) classListGroup = classList\n break\n }\n\n if (!elementList || elementList.length < 1)\n throw new Error(\n `Elements are invalid or undefined. elements: ${elements} → elementList: ${elementList}`,\n )\n\n if (!classListGroup || classListGroup.length < 1)\n throw new Error(\n `Class List is invalid or undefined. classList: ${classList} → classListGroup: ${classListGroup}`,\n )\n\n elementList.forEach((element) =>\n classListGroup.forEach((classItem) => {\n if (!hasClass(element, classItem)) return\n element.classList.remove(classItem)\n }),\n )\n}\n\n/**\n * ### Toggle Class\n * - Toggles the specified classes on the specified elements\n * @param {HTMLElement|HTMLElement[]|NodeList|string|undefined} elements An HTML Element, an array of HTML Elements, a Node List, a string (as a selector for a querySelector)\n * @param {string|string[]} classList A string or an array of classes to toggle on each element\n */\nexport function toggleClass(\n elements: HTMLElement | HTMLElement[] | NodeList | string,\n classList: string | string[],\n) {\n const elementsType = elements.constructor.name,\n elementsIsString = typeof elements === 'string',\n classListType = classList.constructor.name,\n classListIsString = typeof classList === 'string'\n\n let elementList: HTMLElement[] | undefined,\n classListGroup: string[] | undefined\n\n // & Convert elements to array\n switch (elementsType) {\n // Selector\n case 'String':\n if (elementsIsString)\n elementList = Array.from(document.querySelectorAll(elements))\n break\n // Multiple HTML Elements\n case 'NodeList':\n if (!elementsIsString)\n elementList = Array.from(elements as NodeList) as HTMLElement[]\n break\n // Array of Elements\n case 'Array':\n if (!elementsIsString) elementList = elements as HTMLElement[]\n break\n // Single HTML Element\n default:\n if (elementsType.startsWith('HTML') && !elementsIsString)\n elementList = [elements as Element & HTMLElement]\n }\n\n // & Convert classList to array\n switch (classListType) {\n case 'String':\n if (classListIsString)\n if (classList.split(' ').length >= 2) {\n classListGroup = classList.split(' ')\n } else {\n classListGroup = [classList]\n }\n break\n case 'Array':\n if (!classListIsString) classListGroup = classList\n break\n }\n\n if (!elementList || elementList.length < 1)\n throw new Error(\n `Elements are invalid or undefined. elements: ${elements} → elementList: ${elementList}`,\n )\n\n if (!classListGroup || classListGroup.length < 1)\n throw new Error(\n `Class List is invalid or undefined. classList: ${classList} → classListGroup: ${classListGroup}`,\n )\n\n elementList.forEach((element) =>\n classListGroup.forEach((classItem) => {\n element.classList.toggle(classItem)\n }),\n )\n}\n","import { ConfigExtension, DefaultClassGroupIds, DefaultThemeGroupIds, extendTailwindMerge } from 'tailwind-merge'\n\nexport type AdditionalmadoClassGroupIds =\n\t| 'animation-direction'\n\t| 'animation-fill'\n\t| 'animation-iteration'\n\t| 'animation-state'\n\nconst integerList = Array.from({ length: 100 }, (_, i) => `${i + 1}`)\n\nexport const twMerge = extendTailwindMerge<AdditionalmadoClassGroupIds>({\n\textend: {\n\t\ttheme: {\n\t\t\tcolor: [\n\t\t\t\t{\n\t\t\t\t\tui: [\n\t\t\t\t\t\t'red',\n\t\t\t\t\t\t'orange',\n\t\t\t\t\t\t'yellow',\n\t\t\t\t\t\t'green',\n\t\t\t\t\t\t'sky-blue',\n\t\t\t\t\t\t'blue',\n\t\t\t\t\t\t'violet',\n\t\t\t\t\t\t'magenta',\n\t\t\t\t\t\t'purple',\n\t\t\t\t\t\t'brown',\n\t\t\t\t\t\t'grey',\n\t\t\t\t\t\t'pink',\n\t\t\t\t\t],\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\tclassGroups: {\n\t\t\tanimate: [\n\t\t\t\t{\n\t\t\t\t\tanimate: [\n\t\t\t\t\t\t'bounce',\n\t\t\t\t\t\t'double-spin',\n\t\t\t\t\t\t'drop-in',\n\t\t\t\t\t\t'flip',\n\t\t\t\t\t\t'flip-again',\n\t\t\t\t\t\t'grid-rows',\n\t\t\t\t\t\t'heartbeat',\n\t\t\t\t\t\t'ping',\n\t\t\t\t\t\t'pulse',\n\t\t\t\t\t\t'slide-up',\n\t\t\t\t\t\t'spin',\n\t\t\t\t\t\t'wave',\n\t\t\t\t\t],\n\t\t\t\t},\n\t\t\t],\n\t\t\t'animation-direction': [\n\t\t\t\t{\n\t\t\t\t\t'animation-direction': ['normal', 'reverse', 'alternate', 'alternate-reverse'],\n\t\t\t\t},\n\t\t\t],\n\t\t\t'animation-fill': [\n\t\t\t\t{\n\t\t\t\t\t'animation-fill': ['none', 'forwards', 'backwards', 'both'],\n\t\t\t\t},\n\t\t\t],\n\t\t\t'animation-iteration': [\n\t\t\t\t{\n\t\t\t\t\t'animation-iteration': [...integerList, 'infinite'],\n\t\t\t\t},\n\t\t\t],\n\t\t\t'animation-state': [\n\t\t\t\t{\n\t\t\t\t\t'animation-state': ['running', 'paused'],\n\t\t\t\t},\n\t\t\t],\n\t\t\t'grid-cols': [\n\t\t\t\t{\n\t\t\t\t\t'grid-cols': ['0fr', '1fr'],\n\t\t\t\t},\n\t\t\t],\n\t\t\t'grid-rows': [\n\t\t\t\t{\n\t\t\t\t\t'grid-rows': ['0fr', '1fr'],\n\t\t\t\t},\n\t\t\t],\n\t\t\ttransition: ['transition-rows'],\n\t\t},\n\t},\n})\n\nexport function extendMadoTailwindMerge<\n\tAdditionalClassGroupIds extends string = AdditionalmadoClassGroupIds,\n\tAdditionalThemeGroupIds extends string = never,\n>(\n\tconfigExtension: ConfigExtension<\n\t\tDefaultClassGroupIds | AdditionalClassGroupIds,\n\t\tDefaultThemeGroupIds | AdditionalThemeGroupIds\n\t>,\n) {\n\tconst extend = configExtension.extend || {}\n\tconst theme = extend.theme || {}\n\tconst color = 'color' in theme ? theme.color : []\n\tconst classGroups = extend.classGroups || {}\n\n\tconst themeRest = { ...theme }\n\tif ('color' in themeRest) delete themeRest.color\n\n\tconst extendRest = { ...extend }\n\tdelete extendRest.theme\n\tdelete extendRest.classGroups\n\n\treturn extendTailwindMerge<AdditionalClassGroupIds, AdditionalThemeGroupIds>({\n\t\textend: {\n\t\t\ttheme: {\n\t\t\t\tcolor: [\n\t\t\t\t\t{\n\t\t\t\t\t\tui: [\n\t\t\t\t\t\t\t'red',\n\t\t\t\t\t\t\t'orange',\n\t\t\t\t\t\t\t'yellow',\n\t\t\t\t\t\t\t'green',\n\t\t\t\t\t\t\t'sky-blue',\n\t\t\t\t\t\t\t'blue',\n\t\t\t\t\t\t\t'violet',\n\t\t\t\t\t\t\t'magenta',\n\t\t\t\t\t\t\t'purple',\n\t\t\t\t\t\t\t'brown',\n\t\t\t\t\t\t\t'grey',\n\t\t\t\t\t\t\t'pink',\n\t\t\t\t\t\t],\n\t\t\t\t\t},\n\t\t\t\t\t...(color as { [key: string]: string[] }[]),\n\t\t\t\t],\n\t\t\t\t...themeRest,\n\t\t\t} as { [key: string]: { [key: string]: string[] }[] } | any,\n\t\t\tclassGroups: {\n\t\t\t\tanimate: [\n\t\t\t\t\t{\n\t\t\t\t\t\tanimate: [\n\t\t\t\t\t\t\t'bounce',\n\t\t\t\t\t\t\t'double-spin',\n\t\t\t\t\t\t\t'drop-in',\n\t\t\t\t\t\t\t'flip',\n\t\t\t\t\t\t\t'flip-again',\n\t\t\t\t\t\t\t'grid-rows',\n\t\t\t\t\t\t\t'heartbeat',\n\t\t\t\t\t\t\t'ping',\n\t\t\t\t\t\t\t'pulse',\n\t\t\t\t\t\t\t'slide-up',\n\t\t\t\t\t\t\t'spin',\n\t\t\t\t\t\t\t'wave',\n\t\t\t\t\t\t],\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t'animation-direction': [\n\t\t\t\t\t{\n\t\t\t\t\t\t'animation-direction': ['normal', 'reverse', 'alternate', 'alternate-reverse'],\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t'animation-fill': [\n\t\t\t\t\t{\n\t\t\t\t\t\t'animation-fill': ['none', 'forwards', 'backwards', 'both'],\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t'animation-iteration': [\n\t\t\t\t\t{\n\t\t\t\t\t\t'animation-iteration': [...integerList, 'infinite'],\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t'animation-state': [\n\t\t\t\t\t{\n\t\t\t\t\t\t'animation-state': ['running', 'paused'],\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t'grid-cols': [\n\t\t\t\t\t{\n\t\t\t\t\t\t'grid-cols': ['0fr', '1fr'],\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t'grid-rows': [\n\t\t\t\t\t{\n\t\t\t\t\t\t'grid-rows': ['0fr', '1fr'],\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\ttransition: ['transition-rows'],\n\t\t\t\t...classGroups,\n\t\t\t} as { [key: string]: { [key: string]: string[] }[] } | any,\n\t\t\t...extendRest,\n\t\t},\n\t\t...configExtension,\n\t})\n}\n","export type DayNumber =\n\t| 1\n\t| 2\n\t| 3\n\t| 4\n\t| 5\n\t| 6\n\t| 7\n\t| 8\n\t| 9\n\t| 10\n\t| 11\n\t| 12\n\t| 13\n\t| 14\n\t| 15\n\t| 16\n\t| 17\n\t| 18\n\t| 19\n\t| 20\n\t| 21\n\t| 22\n\t| 23\n\t| 24\n\t| 25\n\t| 26\n\t| 27\n\t| 28\n\t| 29\n\t| 30\n\t| 31\n\nexport type DateTimeObject = {\n\tday: DayNumber\n\thour: HourNumber\n\tminute: MinuteNumber\n\tmonth: MonthNumber | MonthName\n\tsecond: SecondNumber\n\tyear: number\n}\n\nexport type HourNumber =\n\t| 0\n\t| 1\n\t| 2\n\t| 3\n\t| 4\n\t| 5\n\t| 6\n\t| 7\n\t| 8\n\t| 9\n\t| 10\n\t| 11\n\t| 12\n\t| 13\n\t| 14\n\t| 15\n\t| 16\n\t| 17\n\t| 18\n\t| 19\n\t| 20\n\t| 21\n\t| 22\n\t| 23\n\nexport type MinuteNumber =\n\t| 0\n\t| 1\n\t| 2\n\t| 3\n\t| 4\n\t| 5\n\t| 6\n\t| 7\n\t| 8\n\t| 9\n\t| 10\n\t| 11\n\t| 12\n\t| 13\n\t| 14\n\t| 15\n\t| 16\n\t| 17\n\t| 18\n\t| 19\n\t| 20\n\t| 21\n\t| 22\n\t| 23\n\t| 24\n\t| 25\n\t| 26\n\t| 27\n\t| 28\n\t| 29\n\t| 30\n\t| 31\n\t| 32\n\t| 33\n\t| 34\n\t| 35\n\t| 36\n\t| 37\n\t| 38\n\t| 39\n\t| 40\n\t| 41\n\t| 42\n\t| 43\n\t| 44\n\t| 45\n\t| 46\n\t| 47\n\t| 48\n\t| 49\n\t| 50\n\t| 51\n\t| 52\n\t| 53\n\t| 54\n\t| 55\n\t| 56\n\t| 57\n\t| 58\n\t| 59\n\nexport type MonthName =\n\t| 'January'\n\t| 'February'\n\t| 'March'\n\t| 'April'\n\t| 'May'\n\t| 'June'\n\t| 'July'\n\t| 'August'\n\t| 'September'\n\t| 'October'\n\t| 'November'\n\t| 'December'\n\nexport type MonthNumber = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12\n\nexport type SecondNumber = MinuteNumber\n\nexport type WeekdayName = 'Sunday' | 'Monday' | 'Tuesday' | 'Wednesday' | 'Thursday' | 'Friday' | 'Saturday'\n\nexport type WeekdayNumber = 1 | 2 | 3 | 4 | 5 | 6 | 7\n\nexport type WeekNumber =\n\t| 1\n\t| 2\n\t| 3\n\t| 4\n\t| 5\n\t| 6\n\t| 7\n\t| 8\n\t| 9\n\t| 10\n\t| 11\n\t| 12\n\t| 13\n\t| 14\n\t| 15\n\t| 16\n\t| 17\n\t| 18\n\t| 19\n\t| 20\n\t| 21\n\t| 22\n\t| 23\n\t| 24\n\t| 25\n\t| 26\n\t| 27\n\t| 28\n\t| 29\n\t| 30\n\t| 31\n\t| 32\n\t| 33\n\t| 34\n\t| 35\n\t| 36\n\t| 37\n\t| 38\n\t| 39\n\t| 40\n\t| 41\n\t| 42\n\t| 43\n\t| 44\n\t| 45\n\t| 46\n\t| 47\n\t| 48\n\t| 49\n\t| 50\n\t| 51\n\t| 52\n\t| 53\n\n/** The current date as a Date object */\nconst d = new Date()\n\n/** The current minute of the current hour */\nconst minutes = d.getMinutes()\n\n/** The current year */\nconst year = d.getFullYear()\n\n/** An array of the names of month in order */\nexport const monthNamesList: MonthName[] = [\n\t'January',\n\t'February',\n\t'March',\n\t'April',\n\t'May',\n\t'June',\n\t'July',\n\t'August',\n\t'September',\n\t'October',\n\t'November',\n\t'December',\n]\n\n/** An array of the names of the days of the week in order */\nexport const weekdayNamesList: WeekdayName[] = [\n\t'Sunday',\n\t'Monday',\n\t'Tuesday',\n\t'Wednesday',\n\t'Thursday',\n\t'Friday',\n\t'Saturday',\n]\n\n/** The name of the current month */\nexport const currentMonthName = getMonthName()\n\n/** The name of the current day of the week */\nexport const currentWeekdayName = getWeekdayName()\n\n/**\n * ### Days In Month\n * - Returns the number of days in the specified month.\n * @param {Date} date A Date object representing the month to get the number of days for. (Preset to the current date)\n * @returns {number} The number of days in the specified month.\n */\nexport function daysInMonth(date: Date = d): number {\n\tconst selectedYear = date.getFullYear(),\n\t\tselectedMonth = date.getMonth() + 1\n\treturn new Date(selectedYear, selectedMonth, 0).getDate()\n}\n\n/**\n * ### First of Month\n * - Returns the first day of the specified month.\n * @param {Date} date A Date object representing the month to get the first day for. (Preset to current date)\n * @returns {Date} A Date object of the given month, with the first day.\n */\nexport function firstOfMonth(date: Date = d): Date {\n\t// Return a new Date object with the first of the month selected\n\treturn new Date(date.getFullYear(), date.getMonth(), 1)\n}\n\n/**\n * ### Get Date\n * - Returns the date with two digits\n * @param {number|Date} date The date to get date\n * @returns {string} The date with two digits\n */\nexport function getDate(date: number | Date = d): string {\n\tif (typeof date !== 'number') date = date.getDate()\n\tlet formattedDate = date.toString()\n\tif (formattedDate.length === 1) formattedDate = `0${formattedDate}`\n\treturn formattedDate\n}\n\n/**\n * ### Get Hours\n * - Returns the hours with two digits\n * @param {number|Date} hours The date to get hours\n * @returns {string} The hours with two digits\n */\nexport function getHours(hours: number | Date = d): string {\n\tif (typeof hours !== 'number') hours = hours.getHours()\n\tlet formattedHours = hours.toString()\n\tif (formattedHours.length === 1) formattedHours = `0${formattedHours}`\n\treturn formattedHours\n}\n\n/**\n * ### Get Hours in 12\n * - Returns the hour based on the specified 24 hour value in a 12 hour format\n * @param {number|Date} hour The hour to be converted to 12 hour format\n * @returns {number} The hour in a 12 hour format\n */\nexport function getHoursIn12(hour: number | Date = d): number {\n\tif (typeof hour !== 'number') hour = hour.getHours()\n\tif (hour > 12) return hour - 12\n\treturn hour\n}\n\n/**\n * ### Get Meridian from Hour\n * - Returns either 'pm' or 'am' based on the specified 24 hour value\n * @param {number|Date} hour The hour to get the meridian from\n * @returns {'am'|'pm'} The meridian for the given hour\n */\nexport function getMeridianFromHour(hour: number | Date = d): 'am' | 'pm' {\n\tif (typeof hour !== 'number') hour = hour.getHours()\n\tif (hour >= 12) return 'pm'\n\treturn 'am'\n}\n\n/**\n * ### Get Milliseconds\n * - Returns the milliseconds with two digits\n * @param {number|Date} milliseconds The date to get milliseconds\n * @returns {string} The milliseconds with two digits\n */\nexport function getMilliseconds(milliseconds: number | Date = d): string {\n\tif (typeof milliseconds !== 'number') milliseconds = milliseconds.getMilliseconds()\n\tlet formattedMilliseconds = minutes.toString()\n\tif (formattedMilliseconds.length === 1) formattedMilliseconds = `0${formattedMilliseconds}`\n\treturn formattedMilliseconds\n}\n\n/**\n * ### Get Minutes\n * - Returns the minutes with two digits\n * @param {number|Date} minutes The date to get minutes\n * @returns {string} The minutes with two digits\n */\nexport function getMinutes(minutes: number | Date = d): string {\n\tif (typeof minutes !== 'number') minutes = minutes.getMinutes()\n\tlet formattedMinutes = minutes.toString()\n\tif (formattedMinutes.length === 1) formattedMinutes = `0${formattedMinutes}`\n\treturn formattedMinutes\n}\n\n/**\n * ### Get Month\n * - Returns the month with two digits\n * @param {number|Date} month The date to get month\n * @returns {string} The month with two digits\n */\nexport function getMonth(month: number | Date = d): string {\n\tif (typeof month !== 'number') month = month.getMonth() + 1\n\tlet formattedMonth = month.toString()\n\tif (formattedMonth.length === 1) formattedMonth = `0${formattedMonth}`\n\treturn formattedMonth\n}\n\nexport function getMonthIndexFromName(name: MonthName): number {\n\treturn monthNamesList.findIndex(monthName => monthName === name)\n}\n\n/**\n * ### Get Month Name\n * - Returns the name of the specified month\n * @param {Date} date A Date object representing the month to get the name of the month from. (Preset to the current date)\n * @returns {MonthName} The name of the specified month\n */\nexport function getMonthName(date: number | Date = d): MonthName {\n\tif (typeof date === 'number') return monthNamesList[date]\n\treturn monthNamesList[date.getMonth()]\n}\n\n/**\n * ### Get Next Month\n * - Returns the number of the following month from the specified month\n * @param {Date} date The Date object representing the month to get the following month from (Preset to current date)\n * @returns {number} The indexed month of the following month\n */\nexport function getNextMonth(date: Date = d): number {\n\tconst givenMonth = date.getMonth() // Get the month from date\n\t// Return the indexed month. min 0, max 11\n\treturn givenMonth === 11 ? 0 : givenMonth + 1\n}\n\n/**\n * ### Get Previous Month\n * - Returns the number of the previous month from the specified month\n * @param {Date} date The Date object representing the month to get the previous month from (Preset to current date)\n * @returns {number} The indexed month of the previous month\n */\nexport function getPreviousMonth(date: Date = d): number {\n\tconst givenMonth = date.getMonth() // Get the month from date\n\t// Return the indexed month. min 0, max 11\n\treturn givenMonth === 0 ? 11 : givenMonth - 1\n}\n\n/**\n * ### Get Seconds\n * - Returns the seconds with two digits\n * @param {number|Date} seconds The date to get seconds\n * @returns {string} The seconds with two digits\n */\nexport function getSeconds(seconds: number | Date = d): string {\n\tif (typeof seconds !== 'number') seconds = seconds.getSeconds()\n\tlet formattedSeconds = seconds.toString()\n\tif (formattedSeconds.length === 1) formattedSeconds = `0${formattedSeconds}`\n\treturn formattedSeconds\n}\n\n/**\n * ### Get User Readable Date\n * - Returns a string of the current date in a user-friendly way\n * - Includes `'Yesterday'`, '`Today'`, and `'Tomorrow'`\n * @param date (default: `new Date()`)\n * @returns {'Today'|'Tomorrow'|'Yesterday'|string} `'weekday, month day, year'` | `'Yesterday'` | `'Today'` | `'Tomorrow'`\n */\nexport function getUserReadableDate(date: Date = d): 'Today' | 'Tomorrow' | 'Yesterday' | string {\n\tconst dateTime = date.getTime()\n\n\tconst today = new Date(),\n\t\tisToday = dateTime === today.getTime()\n\n\tif (isToday) return 'Today'\n\n\tconst yesterday = new Date(today.getDate() - 1),\n\t\tisYesterday = dateTime === yesterday.getTime()\n\n\tif (isYesterday) return 'Yesterday'\n\n\tconst tomorrow = new Date(today.getDate() + 1),\n\t\tisTomorrow = dateTime === tomorrow.getTime()\n\n\tif (isTomorrow) return 'Tomorrow'\n\n\tconst thisYear = today.getFullYear(),\n\t\tisSameYear = date.getFullYear() === thisYear\n\n\tconst fullDateString = toFullDateString(date, {\n\t\tweekday: 'code',\n\t\tyear: !isSameYear,\n\t})\n\n\treturn fullDateString\n}\n\n/**\n * ### Get Weekday Name\n * - Returns the weekday name of the specified day\n * @param {number | Date} weekday A Date object or number representing the day to get the weekday name from. (Preset to the current date)\n * @returns {WeekdayName} The name of the specified weekday\n */\nexport function getWeekdayName(weekday: number | Date = d): WeekdayName {\n\tif (typeof weekday === 'number') return weekdayNamesList[weekday]\n\t// Return the name of the day of the week\n\treturn weekdayNamesList[weekday.getDay()]\n}\n\n/**\n * ### Get Years in Range\n * - Returns an array of years in between the specified minimum and maximum years\n * @param {number} minYear The minimum year\n * @param {number} maxYear The maximum year\n * @returns {number[]} Array of years\n */\nexport function getYearsInRange(minYear: number = 0, maxYear: number = year): number[] {\n\tconst yearList = []\n\n\tfor (let selectedYear = minYear; selectedYear <= maxYear; selectedYear++) {\n\t\tyearList.push(selectedYear)\n\t}\n\n\treturn yearList\n}\n\n/** Change how to display the weekday, month name, day of the month, and year. */\ntype ToFullDateStringOptionsProps = Partial<{\n\t/** Inclusion of the day of the month. (default: `true`) */\n\tday: boolean\n\t/** Inclusion of the month name. (default: `true`/`'full'`) */\n\tmonth: boolean | 'full' | 'code'\n\t/** Inclusion of the day of the week. (default: `true`/`'full'`) */\n\tweekday: boolean | 'full' | 'code'\n\t/** Inclusion of the year. (default: `true`) */\n\tyear: boolean | 'full' | 'code'\n}>\n\n/**\n * ### To Full Date String\n * - Returns a formatted string to display the date\n * @param {Date} date (default: `new Date()`)\n * @param {ToFullDateStringOptionsProps} options Change how to display the weekday, month name, day of the month, and year.\n * @returns {string} '`weekday`, `month` `day`, `year`'\n */\nexport function toFullDateString(date: Date = d, options?: ToFullDateStringOptionsProps): string {\n\tlet weekdayName: string = getWeekdayName(date),\n\t\tmonthName: string = getMonthName(date),\n\t\tdayOfMonth: number | string = date.getDate(),\n\t\tyear = date.getFullYear().toString()\n\n\tif (options) {\n\t\tconst includesWeekday = options.weekday !== false,\n\t\t\tincludesDay = options.day !== false,\n\t\t\tincludesMonth = options.month !== false,\n\t\t\tincludesYear = options.year !== false\n\n\t\tif (includesWeekday) {\n\t\t\tif (options.weekday === 'code') weekdayName = weekdayName.slice(0, 3)\n\n\t\t\tif (includesMonth || includesDay || includesYear) weekdayName += ', '\n\t\t} else {\n\t\t\tweekdayName = ''\n\t\t}\n\n\t\tif (includesMonth) {\n\t\t\tif (options.month === 'code') monthName = monthName.slice(0, 3)\n\n\t\t\tif (includesDay) monthName += ' '\n\t\t} else {\n\t\t\tmonthName = ''\n\t\t}\n\n\t\tif (!includesDay) dayOfMonth = ''\n\n\t\tif (includesYear) {\n\t\t\tif (options.year === 'code') year = year.slice(-2)\n\n\t\t\tif (includesMonth || includesDay) year = ', ' + year\n\t\t} else {\n\t\t\tyear = ''\n\t\t}\n\t}\n\n\treturn weekdayName + monthName + dayOfMonth + year\n}\n\n/**\n * ### Get User Readable Date From Timestampz\n * - Returns a string of the current date in a user-friendly way\n * - Includes `'Yesterday'`, '`Today'`, and `'Tomorrow'`\n * @param string\n * @returns {'Today'|'Tomorrow'|'Yesterday'|string} `'weekday, month day, year'` | `'Yesterday'` | `'Today'` | `'Tomorrow'`\n */\nexport function getUserReadableDateFromTimestampz(timestampz: string): 'Today' | 'Tomorrow' | 'Yesterday' | string {\n\tconst [date, time] = timestampz.split('T') || []\n\n\tconst [year, month, day] = date?.split('-').map(string => Number(string)) || []\n\n\tconst timezoneIsAheadOfUTC = time?.includes('+')\n\n\tconst [hms, timezone] = timezoneIsAheadOfUTC ? time?.split('+') : time?.split('-') || []\n\n\tconst [hours, minutes, seconds] = hms?.split(':').map(string => Number(string)) || []\n\n\tconst [timezoneHours, timezoneMinutes] = timezone?.split(':').map(string => Number(string)) || []\n\n\tconst dateAndTime = new Date(year, month - 1, day, hours, minutes, seconds),\n\t\tuserReadableDateAndTime = getUserReadableDate(dateAndTime)\n\n\treturn userReadableDateAndTime\n}\n\nexport function getLocalTime(time: string | [number, number]) {\n\tconst date = new Date(),\n\t\t[hours, minutes] = typeof time === 'string' ? time.split(':') : time\n\n\tconst timezone = getTimezone()\n\n\tconsole.log(timezone)\n\n\tdate.setUTCHours(Number(hours))\n\tdate.setMinutes(Number(minutes))\n\n\treturn date.toLocaleTimeString([], {\n\t\thour: 'numeric',\n\t\tminute: '2-digit',\n\t\thour12: true,\n\t})\n}\n\nexport function getTimezone() {\n\tconst date = new Date()\n\n\tconst timezonePart = Intl.DateTimeFormat('en-US', { timeZoneName: 'short' })\n\t\t.formatToParts(date)\n\t\t.find(part => part.type === 'timeZoneName')\n\n\treturn timezonePart ? timezonePart.value : ''\n}\n","import { Children, ElementType, Fragment, isValidElement, ReactElement, ReactNode } from 'react'\n\nexport function findComponentByType<P extends { children?: ReactNode; [key: string]: any } = { children?: ReactNode }>(\n\tchildren: ReactNode,\n\tcomponentType: ElementType,\n): ReactElement<P> | null {\n\tconst childrenArray = Children.toArray(children)\n\n\tfor (const child of childrenArray) {\n\t\tif (isValidElement(child) && child.type === componentType) return child as ReactElement<P>\n\t}\n\n\tfor (const child of childrenArray) {\n\t\tif (isValidElement(child)) {\n\t\t\tif (child.type === Fragment && (child as ReactElement<P>).props.children) {\n\t\t\t\tconst found = findComponentByType<P>((child as ReactElement<P>).props.children, componentType)\n\n\t\t\t\tif (found) return found as ReactElement<P>\n\t\t\t} else if ((child as ReactElement<P>).props.children) {\n\t\t\t\tconst found = findComponentByType<P>((child as ReactElement<P>).props.children, componentType)\n\n\t\t\t\tif (found) return found as ReactElement<P>\n\t\t\t}\n\t\t}\n\t}\n\n\treturn null\n}\n","export function easeOutExpo(time: number, start: number, end: number, duration: number) {\n\treturn time == duration ? start + end : end * (-Math.pow(2, (-10 * time) / duration) + 1) + start\n}\n","export const emailRegex =\n\t/^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/\n\n/**\n * # Is Email\n * Checks whether the specified string is in email format\n */\nexport function isEmail(email: string) {\n\treturn emailRegex.test(email)\n}\n\nexport const telRegex =\n\t/(?:\\+1\\s|1\\s|)?\\d{3}\\.\\d{3}\\.\\d{4}|(?:\\+1\\s|1\\s|)?\\d{3}-\\d{3}-\\d{4}|(?:\\+1\\s|1\\s|)?\\(\\d{3}\\) \\d{3}-\\d{4}|(?:\\+1\\s|1\\s|\\+1|1|)?\\d{10}/\n\n/**\n * # Is Phone Number\n * Checks whether the specified string is in phone number format\n */\nexport function isPhoneNumber(tel: string) {\n\treturn telRegex.test(tel)\n}\n","/**\n * # Format Phone Number\n * Converts any string containing at least 10 numbers to a formatted phone number\n * @param {string} phoneNumber\n * @param options\n * @property {string} `countryCode`\n * @property {'continuous' | 'dot' | 'hyphenated' | 'none' | 'space' | 'standard'} `format`\n *\n * Input: a555b555c5555d\n *\n * @example\n * format: 'continuous'\n * countryCode: '1'\n * returns: +1 5555555555\n *\n * @example\n * format: 'dot'\n * returns: 555.555.5555\n *\n * @example\n * format: 'hyphenated'\n * returns: 555-555-5555\n *\n * @example\n * format: 'none'\n * countryCode: '1'\n * returns: +1 a555b555c5555d\n *\n * @example\n * format: 'space'\n * returns: 555 555 5555\n *\n * @example\n * format: 'standard' (default)\n * returns: (555) 555-5555\n *\n * @returns {string} string formatted\n */\nexport function formatPhoneNumber(\n\tphoneNumber: string,\n\toptions?: Partial<{\n\t\tcountryCode: string\n\t\tformat: 'continuous' | 'dot' | 'hyphenated' | 'none' | 'space' | 'standard'\n\t}>,\n): string {\n\tconst format = options?.format || 'standard'\n\n\tif (format !== 'none') phoneNumber = phoneNumber.replace(/\\D/g, '').slice(-10)\n\n\tswitch (format) {\n\t\tcase 'dot':\n\t\t\tphoneNumber = phoneNumber\n\t\t\t\t.split('')\n\t\t\t\t.map((char, index) => {\n\t\t\t\t\tif (index === 2) return `${char}.`\n\t\t\t\t\tif (index === 5) return `${char}.`\n\t\t\t\t\treturn char\n\t\t\t\t})\n\t\t\t\t.join('')\n\t\t\tbreak\n\t\tcase 'hyphenated':\n\t\t\tphoneNumber = phoneNumber\n\t\t\t\t.split('')\n\t\t\t\t.map((char, index) => {\n\t\t\t\t\tif (index === 2) return `${char}-`\n\t\t\t\t\tif (index === 5) return `${char}-`\n\t\t\t\t\treturn char\n\t\t\t\t})\n\t\t\t\t.join('')\n\t\t\tbreak\n\t\tcase 'space':\n\t\t\tphoneNumber = phoneNumber\n\t\t\t\t.split('')\n\t\t\t\t.map((char, index) => {\n\t\t\t\t\tif (index === 2) return `${char} `\n\t\t\t\t\tif (index === 5) return `${char} `\n\t\t\t\t\treturn char\n\t\t\t\t})\n\t\t\t\t.join('')\n\t\t\tbreak\n\t\tcase 'standard':\n\t\t\tphoneNumber = phoneNumber\n\t\t\t\t.split('')\n\t\t\t\t.map((char, index) => {\n\t\t\t\t\tif (index === 0) return `(${char}`\n\t\t\t\t\tif (index === 2) return `${char}) `\n\t\t\t\t\tif (index === 5) return `${char}-`\n\t\t\t\t\treturn char\n\t\t\t\t})\n\t\t\t\t.join('')\n\t}\n\n\treturn `${options?.countryCode ? `+${options?.countryCode} ` : ''}` + phoneNumber\n}\n\n/**\n * # To Lower Case\n * Converts a string to lowercase, and offers easy string replacements for creating snake case, kebab case, or your own.\n * @param str - The string to convert to lowercase.\n * @param options - Configuration options.\n * @param options[0] - The delimiter to split the string. Defaults to space.\n * @param options[1] - The string to join the parts back together. Defaults to space.\n * @returns The lowercase version of the input string, with the replacements, if provided.\n */\nexport function toLowerCase(str: string, [delimiter, joiner]: [string | undefined, string | undefined]) {\n\treturn str.toLowerCase().replaceAll(delimiter || ' ', joiner || ' ')\n}\n","export function twSort(className: string) {\n\treturn className\n}\n"],"names":["extendTailwindMerge","Children","isValidElement","Fragment"],"mappings":";;;;;AAAA;;;;;;AAMG;AACG,SAAU,QAAQ,CAAC,OAAoB,EAAE,SAAiB,EAAA;IAC9D,OAAO,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC;AAC9C;AAEA;;;;;AAKG;AACG,SAAU,QAAQ,CACtB,QAAmE,EACnE,SAA4B,EAAA;AAE5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AACd,YAAA,WAAW,GAAG;iBACZ,KAAK,CAAC,EAAE;AACR,iBAAA,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,KAAI;gBACpB,IAAI,KAAK,KAAK,CAAC;oBAAE,OAAO,CAAA,CAAA,EAAI,IAAI,CAAA,CAAE;gBAClC,IAAI,KAAK,KAAK,CAAC;oBAAE,OAAO,CAAA,EAAG,IAAI,CAAA,EAAA,CAAI;gBACnC,IAAI,KAAK,KAAK,CAAC;oBAAE,OAAO,CAAA,EAAG,IAAI,CAAA,CAAA,CAAG;AAClC,gBAAA,OAAO,IAAI;AACZ,YAAA,CAAC;iBACA,IAAI,CAAC,EAAE,CAAC;;AAGZ,IAAA,OAAO,GAAG,OAAO,EAAE,WAAW,GAAG,CAAA,CAAA,EAAI,OAAO,EAAE,WAAW,CAAA,CAAA,CAAG,GAAG,EAAE,CAAA,CAAE,GAAG,WAAW;AAClF;AAEA;;;;;;;;AAQG;AACG,SAAU,WAAW,CAAC,GAAW,EAAE,CAAC,SAAS,EAAE,MAAM,CAA2C,EAAA;AACrG,IAAA,OAAO,GAAG,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,SAAS,IAAI,GAAG,EAAE,MAAM,IAAI,GAAG,CAAC;AACrE;;AC1GM,SAAU,MAAM,CAAC,SAAiB,EAAA;AACvC,IAAA,OAAO,SAAS;AACjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"utils.js","sources":["../src/utils/class-management.ts","../src/utils/custom-tailwind-merge.ts","../src/utils/get-date.ts","../src/utils/helpers.tsx","../src/utils/math.ts","../src/utils/regex.ts","../src/utils/string-manipulation.ts","../src/utils/tw-sort.ts"],"sourcesContent":["/**\n * ### Has Class\n * - Returns a boolean based on whether the specified element has the specified class\n * @param {HTMLElement} element Any HTML Element\n * @param {string} className A string of any class to check for\n * @returns {boolean} true if the specified element has the specified class, else false\n */\nexport function hasClass(element: HTMLElement, className: string): boolean {\n return element.classList.contains(className)\n}\n\n/**\n * ### Add Class\n * - Adds the specified classes to the specified elements\n * @param {Element|HTMLElement|HTMLElement[]|NodeList|string|undefined} elements An HTML Element, an array of HTML Elements, a Node List, a string (as a selector for a querySelector)\n * @param {string|string[]} classList A string or an array of classes to add to each element\n */\nexport function addClass(\n elements: Element | HTMLElement | HTMLElement[] | NodeList | string,\n classList: string | string[],\n) {\n const elementsType = elements.constructor.name,\n elementsIsString = typeof elements === 'string',\n classListType = classList.constructor.name,\n classListIsString = typeof classList === 'string'\n\n let elementList: HTMLElement[] | undefined,\n classListGroup: string[] | undefined\n\n // & Convert elements to array\n switch (elementsType) {\n // Selector\n case 'String':\n if (elementsIsString)\n elementList = Array.from(document.querySelectorAll(elements))\n break\n // Multiple HTML Elements\n case 'NodeList':\n if (!elementsIsString)\n elementList = Array.from(elements as NodeList) as HTMLElement[]\n break\n // Array of Elements\n case 'Array':\n if (!elementsIsString) elementList = elements as HTMLElement[]\n break\n // Single HTML Element\n default:\n if (elementsType.startsWith('HTML') && !elementsIsString)\n elementList = [elements as Element & HTMLElement]\n }\n\n // & Convert classList to array\n switch (classListType) {\n case 'String':\n if (classListIsString)\n if (classList.split(' ').length >= 2) {\n classListGroup = classList.split(' ')\n } else {\n classListGroup = [classList]\n }\n break\n case 'Array':\n if (!classListIsString) classListGroup = classList\n break\n }\n\n if (!elementList || elementList.length < 1)\n throw new Error(\n `Elements are invalid or undefined. elements: ${elements} → elementList: ${elementList}`,\n )\n\n if (!classListGroup || classListGroup.length < 1)\n throw new Error(\n `Class List is invalid or undefined. classList: ${classList} → classListGroup: ${classListGroup}`,\n )\n\n elementList.forEach((element) =>\n classListGroup.forEach((classItem) => {\n if (hasClass(element, classItem)) return\n element.classList.add(classItem)\n }),\n )\n}\n\n/**\n * ### Remove Class\n * - Removes the specified classes from the specified elements\n * @param {HTMLElement|HTMLElement[]|NodeList|string|undefined} elements An HTML Element, an array of HTML Elements, a Node List, a string (as a selector for a querySelector)\n * @param {string|string[]} classList A string or an array of classes to remove from each element\n */\nexport function removeClass(\n elements: HTMLElement | HTMLElement[] | NodeList | string,\n classList: string | string[],\n) {\n const elementsType = elements.constructor.name,\n elementsIsString = typeof elements === 'string',\n classListType = classList.constructor.name,\n classListIsString = typeof classList === 'string'\n\n let elementList: HTMLElement[] | undefined,\n classListGroup: string[] | undefined\n\n // & Convert elements to array\n switch (elementsType) {\n // Selector\n case 'String':\n if (elementsIsString)\n elementList = Array.from(document.querySelectorAll(elements))\n break\n // Multiple HTML Elements\n case 'NodeList':\n if (!elementsIsString)\n elementList = Array.from(elements as NodeList) as HTMLElement[]\n break\n // Array of Elements\n case 'Array':\n if (!elementsIsString) elementList = elements as HTMLElement[]\n break\n // Single HTML Element\n default:\n if (elementsType.startsWith('HTML') && !elementsIsString)\n elementList = [elements as Element & HTMLElement]\n }\n\n // & Convert classList to array\n switch (classListType) {\n case 'String':\n if (classListIsString)\n if (classList.split(' ').length >= 2) {\n classListGroup = classList.split(' ')\n } else {\n classListGroup = [classList]\n }\n break\n case 'Array':\n if (!classListIsString) classListGroup = classList\n break\n }\n\n if (!elementList || elementList.length < 1)\n throw new Error(\n `Elements are invalid or undefined. elements: ${elements} → elementList: ${elementList}`,\n )\n\n if (!classListGroup || classListGroup.length < 1)\n throw new Error(\n `Class List is invalid or undefined. classList: ${classList} → classListGroup: ${classListGroup}`,\n )\n\n elementList.forEach((element) =>\n classListGroup.forEach((classItem) => {\n if (!hasClass(element, classItem)) return\n element.classList.remove(classItem)\n }),\n )\n}\n\n/**\n * ### Toggle Class\n * - Toggles the specified classes on the specified elements\n * @param {HTMLElement|HTMLElement[]|NodeList|string|undefined} elements An HTML Element, an array of HTML Elements, a Node List, a string (as a selector for a querySelector)\n * @param {string|string[]} classList A string or an array of classes to toggle on each element\n */\nexport function toggleClass(\n elements: HTMLElement | HTMLElement[] | NodeList | string,\n classList: string | string[],\n) {\n const elementsType = elements.constructor.name,\n elementsIsString = typeof elements === 'string',\n classListType = classList.constructor.name,\n classListIsString = typeof classList === 'string'\n\n let elementList: HTMLElement[] | undefined,\n classListGroup: string[] | undefined\n\n // & Convert elements to array\n switch (elementsType) {\n // Selector\n case 'String':\n if (elementsIsString)\n elementList = Array.from(document.querySelectorAll(elements))\n break\n // Multiple HTML Elements\n case 'NodeList':\n if (!elementsIsString)\n elementList = Array.from(elements as NodeList) as HTMLElement[]\n break\n // Array of Elements\n case 'Array':\n if (!elementsIsString) elementList = elements as HTMLElement[]\n break\n // Single HTML Element\n default:\n if (elementsType.startsWith('HTML') && !elementsIsString)\n elementList = [elements as Element & HTMLElement]\n }\n\n // & Convert classList to array\n switch (classListType) {\n case 'String':\n if (classListIsString)\n if (classList.split(' ').length >= 2) {\n classListGroup = classList.split(' ')\n } else {\n classListGroup = [classList]\n }\n break\n case 'Array':\n if (!classListIsString) classListGroup = classList\n break\n }\n\n if (!elementList || elementList.length < 1)\n throw new Error(\n `Elements are invalid or undefined. elements: ${elements} → elementList: ${elementList}`,\n )\n\n if (!classListGroup || classListGroup.length < 1)\n throw new Error(\n `Class List is invalid or undefined. classList: ${classList} → classListGroup: ${classListGroup}`,\n )\n\n elementList.forEach((element) =>\n classListGroup.forEach((classItem) => {\n element.classList.toggle(classItem)\n }),\n )\n}\n","import { ConfigExtension, DefaultClassGroupIds, DefaultThemeGroupIds, extendTailwindMerge } from 'tailwind-merge'\n\nexport type AdditionalmadoClassGroupIds =\n\t| 'animation-direction'\n\t| 'animation-fill'\n\t| 'animation-iteration'\n\t| 'animation-state'\n\nconst integerList = Array.from({ length: 100 }, (_, i) => `${i + 1}`)\n\nexport const twMerge = extendTailwindMerge<AdditionalmadoClassGroupIds>({\n\textend: {\n\t\ttheme: {\n\t\t\tcolor: [\n\t\t\t\t{\n\t\t\t\t\tui: [\n\t\t\t\t\t\t'red',\n\t\t\t\t\t\t'orange',\n\t\t\t\t\t\t'yellow',\n\t\t\t\t\t\t'green',\n\t\t\t\t\t\t'sky-blue',\n\t\t\t\t\t\t'blue',\n\t\t\t\t\t\t'violet',\n\t\t\t\t\t\t'magenta',\n\t\t\t\t\t\t'purple',\n\t\t\t\t\t\t'brown',\n\t\t\t\t\t\t'grey',\n\t\t\t\t\t\t'pink',\n\t\t\t\t\t],\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\t\tclassGroups: {\n\t\t\tanimate: [\n\t\t\t\t{\n\t\t\t\t\tanimate: [\n\t\t\t\t\t\t'bounce',\n\t\t\t\t\t\t'double-spin',\n\t\t\t\t\t\t'drop-in',\n\t\t\t\t\t\t'flip',\n\t\t\t\t\t\t'flip-again',\n\t\t\t\t\t\t'grid-rows',\n\t\t\t\t\t\t'heartbeat',\n\t\t\t\t\t\t'ping',\n\t\t\t\t\t\t'pulse',\n\t\t\t\t\t\t'slide-up',\n\t\t\t\t\t\t'spin',\n\t\t\t\t\t\t'wave',\n\t\t\t\t\t],\n\t\t\t\t},\n\t\t\t],\n\t\t\t'animation-direction': [\n\t\t\t\t{\n\t\t\t\t\t'animation-direction': ['normal', 'reverse', 'alternate', 'alternate-reverse'],\n\t\t\t\t},\n\t\t\t],\n\t\t\t'animation-fill': [\n\t\t\t\t{\n\t\t\t\t\t'animation-fill': ['none', 'forwards', 'backwards', 'both'],\n\t\t\t\t},\n\t\t\t],\n\t\t\t'animation-iteration': [\n\t\t\t\t{\n\t\t\t\t\t'animation-iteration': [...integerList, 'infinite'],\n\t\t\t\t},\n\t\t\t],\n\t\t\t'animation-state': [\n\t\t\t\t{\n\t\t\t\t\t'animation-state': ['running', 'paused'],\n\t\t\t\t},\n\t\t\t],\n\t\t\t'grid-cols': [\n\t\t\t\t{\n\t\t\t\t\t'grid-cols': ['0fr', '1fr'],\n\t\t\t\t},\n\t\t\t],\n\t\t\t'grid-rows': [\n\t\t\t\t{\n\t\t\t\t\t'grid-rows': ['0fr', '1fr'],\n\t\t\t\t},\n\t\t\t],\n\t\t\ttransition: ['transition-rows'],\n\t\t},\n\t},\n})\n\nexport function extendMadoTailwindMerge<\n\tAdditionalClassGroupIds extends string = AdditionalmadoClassGroupIds,\n\tAdditionalThemeGroupIds extends string = never,\n>(\n\tconfigExtension: ConfigExtension<\n\t\tDefaultClassGroupIds | AdditionalClassGroupIds,\n\t\tDefaultThemeGroupIds | AdditionalThemeGroupIds\n\t>,\n) {\n\tconst extend = configExtension.extend || {}\n\tconst theme = extend.theme || {}\n\tconst color = 'color' in theme ? theme.color : []\n\tconst classGroups = extend.classGroups || {}\n\n\tconst themeRest = { ...theme }\n\tif ('color' in themeRest) delete themeRest.color\n\n\tconst extendRest = { ...extend }\n\tdelete extendRest.theme\n\tdelete extendRest.classGroups\n\n\treturn extendTailwindMerge<AdditionalClassGroupIds, AdditionalThemeGroupIds>({\n\t\textend: {\n\t\t\ttheme: {\n\t\t\t\tcolor: [\n\t\t\t\t\t{\n\t\t\t\t\t\tui: [\n\t\t\t\t\t\t\t'red',\n\t\t\t\t\t\t\t'orange',\n\t\t\t\t\t\t\t'yellow',\n\t\t\t\t\t\t\t'green',\n\t\t\t\t\t\t\t'sky-blue',\n\t\t\t\t\t\t\t'blue',\n\t\t\t\t\t\t\t'violet',\n\t\t\t\t\t\t\t'magenta',\n\t\t\t\t\t\t\t'purple',\n\t\t\t\t\t\t\t'brown',\n\t\t\t\t\t\t\t'grey',\n\t\t\t\t\t\t\t'pink',\n\t\t\t\t\t\t],\n\t\t\t\t\t},\n\t\t\t\t\t...(color as { [key: string]: string[] }[]),\n\t\t\t\t],\n\t\t\t\t...themeRest,\n\t\t\t} as { [key: string]: { [key: string]: string[] }[] } | any,\n\t\t\tclassGroups: {\n\t\t\t\tanimate: [\n\t\t\t\t\t{\n\t\t\t\t\t\tanimate: [\n\t\t\t\t\t\t\t'bounce',\n\t\t\t\t\t\t\t'double-spin',\n\t\t\t\t\t\t\t'drop-in',\n\t\t\t\t\t\t\t'flip',\n\t\t\t\t\t\t\t'flip-again',\n\t\t\t\t\t\t\t'grid-rows',\n\t\t\t\t\t\t\t'heartbeat',\n\t\t\t\t\t\t\t'ping',\n\t\t\t\t\t\t\t'pulse',\n\t\t\t\t\t\t\t'slide-up',\n\t\t\t\t\t\t\t'spin',\n\t\t\t\t\t\t\t'wave',\n\t\t\t\t\t\t],\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t'animation-direction': [\n\t\t\t\t\t{\n\t\t\t\t\t\t'animation-direction': ['normal', 'reverse', 'alternate', 'alternate-reverse'],\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t'animation-fill': [\n\t\t\t\t\t{\n\t\t\t\t\t\t'animation-fill': ['none', 'forwards', 'backwards', 'both'],\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t'animation-iteration': [\n\t\t\t\t\t{\n\t\t\t\t\t\t'animation-iteration': [...integerList, 'infinite'],\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t'animation-state': [\n\t\t\t\t\t{\n\t\t\t\t\t\t'animation-state': ['running', 'paused'],\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t'grid-cols': [\n\t\t\t\t\t{\n\t\t\t\t\t\t'grid-cols': ['0fr', '1fr'],\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\t'grid-rows': [\n\t\t\t\t\t{\n\t\t\t\t\t\t'grid-rows': ['0fr', '1fr'],\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\ttransition: ['transition-rows'],\n\t\t\t\t...classGroups,\n\t\t\t} as { [key: string]: { [key: string]: string[] }[] } | any,\n\t\t\t...extendRest,\n\t\t},\n\t\t...configExtension,\n\t})\n}\n","export type DayNumber =\n\t| 1\n\t| 2\n\t| 3\n\t| 4\n\t| 5\n\t| 6\n\t| 7\n\t| 8\n\t| 9\n\t| 10\n\t| 11\n\t| 12\n\t| 13\n\t| 14\n\t| 15\n\t| 16\n\t| 17\n\t| 18\n\t| 19\n\t| 20\n\t| 21\n\t| 22\n\t| 23\n\t| 24\n\t| 25\n\t| 26\n\t| 27\n\t| 28\n\t| 29\n\t| 30\n\t| 31\n\nexport type DateTimeObject = {\n\tday: DayNumber\n\thour: HourNumber\n\tminute: MinuteNumber\n\tmonth: MonthNumber | MonthName\n\tsecond: SecondNumber\n\tyear: number\n}\n\nexport type HourNumber =\n\t| 0\n\t| 1\n\t| 2\n\t| 3\n\t| 4\n\t| 5\n\t| 6\n\t| 7\n\t| 8\n\t| 9\n\t| 10\n\t| 11\n\t| 12\n\t| 13\n\t| 14\n\t| 15\n\t| 16\n\t| 17\n\t| 18\n\t| 19\n\t| 20\n\t| 21\n\t| 22\n\t| 23\n\nexport type MinuteNumber =\n\t| 0\n\t| 1\n\t| 2\n\t| 3\n\t| 4\n\t| 5\n\t| 6\n\t| 7\n\t| 8\n\t| 9\n\t| 10\n\t| 11\n\t| 12\n\t| 13\n\t| 14\n\t| 15\n\t| 16\n\t| 17\n\t| 18\n\t| 19\n\t| 20\n\t| 21\n\t| 22\n\t| 23\n\t| 24\n\t| 25\n\t| 26\n\t| 27\n\t| 28\n\t| 29\n\t| 30\n\t| 31\n\t| 32\n\t| 33\n\t| 34\n\t| 35\n\t| 36\n\t| 37\n\t| 38\n\t| 39\n\t| 40\n\t| 41\n\t| 42\n\t| 43\n\t| 44\n\t| 45\n\t| 46\n\t| 47\n\t| 48\n\t| 49\n\t| 50\n\t| 51\n\t| 52\n\t| 53\n\t| 54\n\t| 55\n\t| 56\n\t| 57\n\t| 58\n\t| 59\n\nexport type MonthName =\n\t| 'January'\n\t| 'February'\n\t| 'March'\n\t| 'April'\n\t| 'May'\n\t| 'June'\n\t| 'July'\n\t| 'August'\n\t| 'September'\n\t| 'October'\n\t| 'November'\n\t| 'December'\n\nexport type MonthNumber = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12\n\nexport type SecondNumber = MinuteNumber\n\nexport type WeekdayName = 'Sunday' | 'Monday' | 'Tuesday' | 'Wednesday' | 'Thursday' | 'Friday' | 'Saturday'\n\nexport type WeekdayNumber = 1 | 2 | 3 | 4 | 5 | 6 | 7\n\nexport type WeekNumber =\n\t| 1\n\t| 2\n\t| 3\n\t| 4\n\t| 5\n\t| 6\n\t| 7\n\t| 8\n\t| 9\n\t| 10\n\t| 11\n\t| 12\n\t| 13\n\t| 14\n\t| 15\n\t| 16\n\t| 17\n\t| 18\n\t| 19\n\t| 20\n\t| 21\n\t| 22\n\t| 23\n\t| 24\n\t| 25\n\t| 26\n\t| 27\n\t| 28\n\t| 29\n\t| 30\n\t| 31\n\t| 32\n\t| 33\n\t| 34\n\t| 35\n\t| 36\n\t| 37\n\t| 38\n\t| 39\n\t| 40\n\t| 41\n\t| 42\n\t| 43\n\t| 44\n\t| 45\n\t| 46\n\t| 47\n\t| 48\n\t| 49\n\t| 50\n\t| 51\n\t| 52\n\t| 53\n\n/** The current date as a Date object */\nconst d = new Date()\n\n/** The current minute of the current hour */\nconst minutes = d.getMinutes()\n\n/** The current year */\nconst year = d.getFullYear()\n\n/** An array of the names of month in order */\nexport const monthNamesList: MonthName[] = [\n\t'January',\n\t'February',\n\t'March',\n\t'April',\n\t'May',\n\t'June',\n\t'July',\n\t'August',\n\t'September',\n\t'October',\n\t'November',\n\t'December',\n]\n\n/** An array of the names of the days of the week in order */\nexport const weekdayNamesList: WeekdayName[] = [\n\t'Sunday',\n\t'Monday',\n\t'Tuesday',\n\t'Wednesday',\n\t'Thursday',\n\t'Friday',\n\t'Saturday',\n]\n\n/** The name of the current month */\nexport const currentMonthName = getMonthName()\n\n/** The name of the current day of the week */\nexport const currentWeekdayName = getWeekdayName()\n\n/**\n * ### Days In Month\n * - Returns the number of days in the specified month.\n * @param {Date} date A Date object representing the month to get the number of days for. (Preset to the current date)\n * @returns {number} The number of days in the specified month.\n */\nexport function daysInMonth(date: Date = d): number {\n\tconst selectedYear = date.getFullYear(),\n\t\tselectedMonth = date.getMonth() + 1\n\treturn new Date(selectedYear, selectedMonth, 0).getDate()\n}\n\n/**\n * ### First of Month\n * - Returns the first day of the specified month.\n * @param {Date} date A Date object representing the month to get the first day for. (Preset to current date)\n * @returns {Date} A Date object of the given month, with the first day.\n */\nexport function firstOfMonth(date: Date = d): Date {\n\t// Return a new Date object with the first of the month selected\n\treturn new Date(date.getFullYear(), date.getMonth(), 1)\n}\n\n/**\n * ### Get Date\n * - Returns the date with two digits\n * @param {number|Date} date The date to get date\n * @returns {string} The date with two digits\n */\nexport function getDate(date: number | Date = d): string {\n\tif (typeof date !== 'number') date = date.getDate()\n\tlet formattedDate = date.toString()\n\tif (formattedDate.length === 1) formattedDate = `0${formattedDate}`\n\treturn formattedDate\n}\n\n/**\n * ### Get Hours\n * - Returns the hours with two digits\n * @param {number|Date} hours The date to get hours\n * @returns {string} The hours with two digits\n */\nexport function getHours(hours: number | Date = d): string {\n\tif (typeof hours !== 'number') hours = hours.getHours()\n\tlet formattedHours = hours.toString()\n\tif (formattedHours.length === 1) formattedHours = `0${formattedHours}`\n\treturn formattedHours\n}\n\n/**\n * ### Get Hours in 12\n * - Returns the hour based on the specified 24 hour value in a 12 hour format\n * @param {number|Date} hour The hour to be converted to 12 hour format\n * @returns {number} The hour in a 12 hour format\n */\nexport function getHoursIn12(hour: number | Date = d): number {\n\tif (typeof hour !== 'number') hour = hour.getHours()\n\tif (hour > 12) return hour - 12\n\treturn hour\n}\n\n/**\n * ### Get Meridian from Hour\n * - Returns either 'pm' or 'am' based on the specified 24 hour value\n * @param {number|Date} hour The hour to get the meridian from\n * @returns {'am'|'pm'} The meridian for the given hour\n */\nexport function getMeridianFromHour(hour: number | Date = d): 'am' | 'pm' {\n\tif (typeof hour !== 'number') hour = hour.getHours()\n\tif (hour >= 12) return 'pm'\n\treturn 'am'\n}\n\n/**\n * ### Get Milliseconds\n * - Returns the milliseconds with two digits\n * @param {number|Date} milliseconds The date to get milliseconds\n * @returns {string} The milliseconds with two digits\n */\nexport function getMilliseconds(milliseconds: number | Date = d): string {\n\tif (typeof milliseconds !== 'number') milliseconds = milliseconds.getMilliseconds()\n\tlet formattedMilliseconds = minutes.toString()\n\tif (formattedMilliseconds.length === 1) formattedMilliseconds = `0${formattedMilliseconds}`\n\treturn formattedMilliseconds\n}\n\n/**\n * ### Get Minutes\n * - Returns the minutes with two digits\n * @param {number|Date} minutes The date to get minutes\n * @returns {string} The minutes with two digits\n */\nexport function getMinutes(minutes: number | Date = d): string {\n\tif (typeof minutes !== 'number') minutes = minutes.getMinutes()\n\tlet formattedMinutes = minutes.toString()\n\tif (formattedMinutes.length === 1) formattedMinutes = `0${formattedMinutes}`\n\treturn formattedMinutes\n}\n\n/**\n * ### Get Month\n * - Returns the month with two digits\n * @param {number|Date} month The date to get month\n * @returns {string} The month with two digits\n */\nexport function getMonth(month: number | Date = d): string {\n\tif (typeof month !== 'number') month = month.getMonth() + 1\n\tlet formattedMonth = month.toString()\n\tif (formattedMonth.length === 1) formattedMonth = `0${formattedMonth}`\n\treturn formattedMonth\n}\n\nexport function getMonthIndexFromName(name: MonthName): number {\n\treturn monthNamesList.findIndex(monthName => monthName === name)\n}\n\n/**\n * ### Get Month Name\n * - Returns the name of the specified month\n * @param {Date} date A Date object representing the month to get the name of the month from. (Preset to the current date)\n * @returns {MonthName} The name of the specified month\n */\nexport function getMonthName(date: number | Date = d): MonthName {\n\tif (typeof date === 'number') return monthNamesList[date]\n\treturn monthNamesList[date.getMonth()]\n}\n\n/**\n * ### Get Next Month\n * - Returns the number of the following month from the specified month\n * @param {Date} date The Date object representing the month to get the following month from (Preset to current date)\n * @returns {number} The indexed month of the following month\n */\nexport function getNextMonth(date: Date = d): number {\n\tconst givenMonth = date.getMonth() // Get the month from date\n\t// Return the indexed month. min 0, max 11\n\treturn givenMonth === 11 ? 0 : givenMonth + 1\n}\n\n/**\n * ### Get Previous Month\n * - Returns the number of the previous month from the specified month\n * @param {Date} date The Date object representing the month to get the previous month from (Preset to current date)\n * @returns {number} The indexed month of the previous month\n */\nexport function getPreviousMonth(date: Date = d): number {\n\tconst givenMonth = date.getMonth() // Get the month from date\n\t// Return the indexed month. min 0, max 11\n\treturn givenMonth === 0 ? 11 : givenMonth - 1\n}\n\n/**\n * ### Get Seconds\n * - Returns the seconds with two digits\n * @param {number|Date} seconds The date to get seconds\n * @returns {string} The seconds with two digits\n */\nexport function getSeconds(seconds: number | Date = d): string {\n\tif (typeof seconds !== 'number') seconds = seconds.getSeconds()\n\tlet formattedSeconds = seconds.toString()\n\tif (formattedSeconds.length === 1) formattedSeconds = `0${formattedSeconds}`\n\treturn formattedSeconds\n}\n\n/**\n * ### Get User Readable Date\n * - Returns a string of the current date in a user-friendly way\n * - Includes `'Yesterday'`, '`Today'`, and `'Tomorrow'`\n * @param date (default: `new Date()`)\n * @returns {'Today'|'Tomorrow'|'Yesterday'|string} `'weekday, month day, year'` | `'Yesterday'` | `'Today'` | `'Tomorrow'`\n */\nexport function getUserReadableDate(date: Date = d): 'Today' | 'Tomorrow' | 'Yesterday' | string {\n\tconst dateTime = date.getTime()\n\n\tconst today = new Date(),\n\t\tisToday = dateTime === today.getTime()\n\n\tif (isToday) return 'Today'\n\n\tconst yesterday = new Date(today.getDate() - 1),\n\t\tisYesterday = dateTime === yesterday.getTime()\n\n\tif (isYesterday) return 'Yesterday'\n\n\tconst tomorrow = new Date(today.getDate() + 1),\n\t\tisTomorrow = dateTime === tomorrow.getTime()\n\n\tif (isTomorrow) return 'Tomorrow'\n\n\tconst thisYear = today.getFullYear(),\n\t\tisSameYear = date.getFullYear() === thisYear\n\n\tconst fullDateString = toFullDateString(date, {\n\t\tweekday: 'code',\n\t\tyear: !isSameYear,\n\t})\n\n\treturn fullDateString\n}\n\n/**\n * ### Get Weekday Name\n * - Returns the weekday name of the specified day\n * @param {number | Date} weekday A Date object or number representing the day to get the weekday name from. (Preset to the current date)\n * @returns {WeekdayName} The name of the specified weekday\n */\nexport function getWeekdayName(weekday: number | Date = d): WeekdayName {\n\tif (typeof weekday === 'number') return weekdayNamesList[weekday]\n\t// Return the name of the day of the week\n\treturn weekdayNamesList[weekday.getDay()]\n}\n\n/**\n * ### Get Years in Range\n * - Returns an array of years in between the specified minimum and maximum years\n * @param {number} minYear The minimum year\n * @param {number} maxYear The maximum year\n * @returns {number[]} Array of years\n */\nexport function getYearsInRange(minYear: number = 0, maxYear: number = year): number[] {\n\tconst yearList = []\n\n\tfor (let selectedYear = minYear; selectedYear <= maxYear; selectedYear++) {\n\t\tyearList.push(selectedYear)\n\t}\n\n\treturn yearList\n}\n\n/** Change how to display the weekday, month name, day of the month, and year. */\ntype ToFullDateStringOptionsProps = Partial<{\n\t/** Inclusion of the day of the month. (default: `true`) */\n\tday: boolean\n\t/** Inclusion of the month name. (default: `true`/`'full'`) */\n\tmonth: boolean | 'full' | 'code'\n\t/** Inclusion of the day of the week. (default: `true`/`'full'`) */\n\tweekday: boolean | 'full' | 'code'\n\t/** Inclusion of the year. (default: `true`) */\n\tyear: boolean | 'full' | 'code'\n}>\n\n/**\n * ### To Full Date String\n * - Returns a formatted string to display the date\n * @param {Date} date (default: `new Date()`)\n * @param {ToFullDateStringOptionsProps} options Change how to display the weekday, month name, day of the month, and year.\n * @returns {string} '`weekday`, `month` `day`, `year`'\n */\nexport function toFullDateString(date: Date = d, options?: ToFullDateStringOptionsProps): string {\n\tlet weekdayName: string = getWeekdayName(date),\n\t\tmonthName: string = getMonthName(date),\n\t\tdayOfMonth: number | string = date.getDate(),\n\t\tyear = date.getFullYear().toString()\n\n\tif (options) {\n\t\tconst includesWeekday = options.weekday !== false,\n\t\t\tincludesDay = options.day !== false,\n\t\t\tincludesMonth = options.month !== false,\n\t\t\tincludesYear = options.year !== false\n\n\t\tif (includesWeekday) {\n\t\t\tif (options.weekday === 'code') weekdayName = weekdayName.slice(0, 3)\n\n\t\t\tif (includesMonth || includesDay || includesYear) weekdayName += ', '\n\t\t} else {\n\t\t\tweekdayName = ''\n\t\t}\n\n\t\tif (includesMonth) {\n\t\t\tif (options.month === 'code') monthName = monthName.slice(0, 3)\n\n\t\t\tif (includesDay) monthName += ' '\n\t\t} else {\n\t\t\tmonthName = ''\n\t\t}\n\n\t\tif (!includesDay) dayOfMonth = ''\n\n\t\tif (includesYear) {\n\t\t\tif (options.year === 'code') year = year.slice(-2)\n\n\t\t\tif (includesMonth || includesDay) year = ', ' + year\n\t\t} else {\n\t\t\tyear = ''\n\t\t}\n\t}\n\n\treturn weekdayName + monthName + dayOfMonth + year\n}\n\n/**\n * ### Get User Readable Date From Timestampz\n * - Returns a string of the current date in a user-friendly way\n * - Includes `'Yesterday'`, '`Today'`, and `'Tomorrow'`\n * @param string\n * @returns {'Today'|'Tomorrow'|'Yesterday'|string} `'weekday, month day, year'` | `'Yesterday'` | `'Today'` | `'Tomorrow'`\n */\nexport function getUserReadableDateFromTimestampz(timestampz: string): 'Today' | 'Tomorrow' | 'Yesterday' | string {\n\tconst [date, time] = timestampz.split('T') || []\n\n\tconst [year, month, day] = date?.split('-').map(string => Number(string)) || []\n\n\tconst timezoneIsAheadOfUTC = time?.includes('+')\n\n\tconst [hms, timezone] = timezoneIsAheadOfUTC ? time?.split('+') : time?.split('-') || []\n\n\tconst [hours, minutes, seconds] = hms?.split(':').map(string => Number(string)) || []\n\n\tconst [timezoneHours, timezoneMinutes] = timezone?.split(':').map(string => Number(string)) || []\n\n\tconst dateAndTime = new Date(year, month - 1, day, hours, minutes, seconds),\n\t\tuserReadableDateAndTime = getUserReadableDate(dateAndTime)\n\n\treturn userReadableDateAndTime\n}\n\nexport function getLocalTime(time: string | [number, number]) {\n\tconst date = new Date(),\n\t\t[hours, minutes] = typeof time === 'string' ? time.split(':') : time\n\n\tconst timezone = getTimezone()\n\n\tconsole.log(timezone)\n\n\tdate.setUTCHours(Number(hours))\n\tdate.setMinutes(Number(minutes))\n\n\treturn date.toLocaleTimeString([], {\n\t\thour: 'numeric',\n\t\tminute: '2-digit',\n\t\thour12: true,\n\t})\n}\n\nexport function getTimezone() {\n\tconst date = new Date()\n\n\tconst timezonePart = Intl.DateTimeFormat('en-US', { timeZoneName: 'short' })\n\t\t.formatToParts(date)\n\t\t.find(part => part.type === 'timeZoneName')\n\n\treturn timezonePart ? timezonePart.value : ''\n}\n","import { Children, ElementType, Fragment, isValidElement, ReactElement, ReactNode } from 'react'\n\nexport function findComponentByType<P extends { children?: ReactNode; [key: string]: any } = { children?: ReactNode }>(\n\tchildren: ReactNode,\n\tcomponentType: ElementType,\n): ReactElement<P> | null {\n\tconst childrenArray = Children.toArray(children)\n\n\tfor (const child of childrenArray) {\n\t\tif (isValidElement(child) && child.type === componentType) return child as ReactElement<P>\n\t}\n\n\tfor (const child of childrenArray) {\n\t\tif (isValidElement(child)) {\n\t\t\tif (child.type === Fragment && (child as ReactElement<P>).props.children) {\n\t\t\t\tconst found = findComponentByType<P>((child as ReactElement<P>).props.children, componentType)\n\n\t\t\t\tif (found) return found as ReactElement<P>\n\t\t\t} else if ((child as ReactElement<P>).props.children) {\n\t\t\t\tconst found = findComponentByType<P>((child as ReactElement<P>).props.children, componentType)\n\n\t\t\t\tif (found) return found as ReactElement<P>\n\t\t\t}\n\t\t}\n\t}\n\n\treturn null\n}\n","export function easeOutExpo(time: number, start: number, end: number, duration: number) {\n\treturn time == duration ? start + end : end * (-Math.pow(2, (-10 * time) / duration) + 1) + start\n}\n","export const emailRegex =\n\t/^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/\n\n/**\n * # Is Email\n * Checks whether the specified string is in email format\n */\nexport function isEmail(email: string) {\n\treturn emailRegex.test(email)\n}\n\nexport const telRegex =\n\t/(?:\\+1\\s|1\\s|)?\\d{3}\\.\\d{3}\\.\\d{4}|(?:\\+1\\s|1\\s|)?\\d{3}-\\d{3}-\\d{4}|(?:\\+1\\s|1\\s|)?\\(\\d{3}\\) \\d{3}-\\d{4}|(?:\\+1\\s|1\\s|\\+1|1|)?\\d{10}/\n\n/**\n * # Is Phone Number\n * Checks whether the specified string is in phone number format\n */\nexport function isPhoneNumber(tel: string) {\n\treturn telRegex.test(tel)\n}\n","/**\n * # Format Phone Number\n * Converts any string containing at least 10 numbers to a formatted phone number\n * @param {string} phoneNumber\n * @param options\n * @property {string} `countryCode`\n * @property {'continuous' | 'dot' | 'hyphenated' | 'none' | 'space' | 'standard'} `format`\n *\n * Input: a555b555c5555d\n *\n * @example\n * format: 'continuous'\n * countryCode: '1'\n * returns: +1 5555555555\n *\n * @example\n * format: 'dot'\n * returns: 555.555.5555\n *\n * @example\n * format: 'hyphenated'\n * returns: 555-555-5555\n *\n * @example\n * format: 'none'\n * countryCode: '1'\n * returns: +1 a555b555c5555d\n *\n * @example\n * format: 'space'\n * returns: 555 555 5555\n *\n * @example\n * format: 'standard' (default)\n * returns: (555) 555-5555\n *\n * @returns {string} string formatted\n */\nexport function formatPhoneNumber(\n\tphoneNumber: string,\n\toptions?: Partial<{\n\t\tcountryCode: string;\n\t\tformat: \"continuous\" | \"dot\" | \"hyphenated\" | \"none\" | \"space\" | \"standard\";\n\t}>,\n): string {\n\tconst format = options?.format || \"standard\";\n\n\tif (format !== \"none\") {\n\t\tphoneNumber = phoneNumber.replace(/\\D/g, \"\").slice(-10);\n\t}\n\n\tswitch (format) {\n\t\tcase \"dot\":\n\t\t\tphoneNumber = phoneNumber\n\t\t\t\t.split(\"\")\n\t\t\t\t.map((char, index) => {\n\t\t\t\t\tif (index === 2) return `${char}.`;\n\t\t\t\t\tif (index === 5) return `${char}.`;\n\t\t\t\t\treturn char;\n\t\t\t\t})\n\t\t\t\t.join(\"\");\n\t\t\tbreak;\n\t\tcase \"hyphenated\":\n\t\t\tphoneNumber = phoneNumber\n\t\t\t\t.split(\"\")\n\t\t\t\t.map((char, index) => {\n\t\t\t\t\tif (index === 2) return `${char}-`;\n\t\t\t\t\tif (index === 5) return `${char}-`;\n\t\t\t\t\treturn char;\n\t\t\t\t})\n\t\t\t\t.join(\"\");\n\t\t\tbreak;\n\t\tcase \"space\":\n\t\t\tphoneNumber = phoneNumber\n\t\t\t\t.split(\"\")\n\t\t\t\t.map((char, index) => {\n\t\t\t\t\tif (index === 2) return `${char} `;\n\t\t\t\t\tif (index === 5) return `${char} `;\n\t\t\t\t\treturn char;\n\t\t\t\t})\n\t\t\t\t.join(\"\");\n\t\t\tbreak;\n\t\tcase \"standard\":\n\t\t\tphoneNumber = phoneNumber\n\t\t\t\t.split(\"\")\n\t\t\t\t.map((char, index) => {\n\t\t\t\t\tif (index === 0) return `(${char}`;\n\t\t\t\t\tif (index === 2) return `${char}) `;\n\t\t\t\t\tif (index === 5) return `${char}-`;\n\t\t\t\t\treturn char;\n\t\t\t\t})\n\t\t\t\t.join(\"\");\n\t}\n\n\treturn `${options?.countryCode ? `+${options?.countryCode} ` : \"\"}` +\n\t\tphoneNumber;\n}\n\n/**\n * ### Split Camel Case\n * - Separates a camel case string with a joiner (default: ' ')\n * @param {string} string\n * @returns {string} string\n */\nexport function splitCamelCase(string: string, joiner: string = \" \"): string {\n\tif (string[0].match(/[A-Z0-9]/) || string.includes(\" \")) return string;\n\n\tlet lastChar = \"\";\n\n\treturn string.split(\"\")\n\t\t.map((char) => {\n\t\t\tlet returnedString = char;\n\n\t\t\tif (char.match(/[A-Z0-9]/)) returnedString = ` ${char}`;\n\n\t\t\tif (lastChar.match(/[0-9]/) && char.match(/[0-9]/)) returnedString = char;\n\n\t\t\tlastChar = char;\n\t\t\treturn returnedString;\n\t\t})\n\t\t.join(joiner);\n}\n\n/**\n * ### To Camel Case\n * - Converts any string to camel case based on spaces\n * - Eliminates no letter-number characters\n * @param {string} string\n * @returns {string} string\n */\nexport function toCamelCase(string: string, delimiter: string = \" \"): string {\n\tif (typeof string !== \"string\") return string;\n\n\treturn string\n\t\t.toLowerCase()\n\t\t.replace(/[^a-z0-9]/gi, delimiter)\n\t\t.split(delimiter)\n\t\t.map((str: string, index: number) =>\n\t\t\tindex === 0 ? str : str.substring(0, 1).toUpperCase() +\n\t\t\t\tstr.substring(1, str.length).toLowerCase()\n\t\t)\n\t\t.join(\"\");\n}\n\n/**\n * # To Lower Case\n * Converts a string to lowercase, and offers easy string replacements for creating snake case, kebab case, or your own.\n * @param str - The string to convert to lowercase.\n * @param options - Configuration options.\n * @param options[0] - The delimiter to split the string. Defaults to space.\n * @param options[1] - The string to join the parts back together. Defaults to space.\n * @returns The lowercase version of the input string, with the replacements, if provided.\n */\nexport function toLowerCase(\n\tstr: string,\n\t[delimiter, joiner]: [string | undefined, string | undefined],\n) {\n\treturn str.toLowerCase().replaceAll(delimiter || \" \", joiner || \" \");\n}\n\n/**\n * ### To Title Case\n * - Converts any string to title case based on spaces\n * @param {string} string\n * @returns {string} string\n */\nexport function toTitleCase(string: string, delimiter: string = \" \"): string {\n\tif (typeof string !== \"string\") return string;\n\n\treturn string\n\t\t.toLowerCase()\n\t\t.split(delimiter)\n\t\t.map((str) =>\n\t\t\tstr.substring(0, 1).toUpperCase() +\n\t\t\tstr.substring(1, str.length).toLowerCase()\n\t\t)\n\t\t.join(\" \");\n}\n","export function twSort(className: string) {\n\treturn className\n}\n"],"names":["extendTailwindMerge","Children","isValidElement","Fragment"],"mappings":";;;;;AAAA;;;;;;AAMG;AACG,SAAU,QAAQ,CAAC,OAAoB,EAAE,SAAiB,EAAA;IAC9D,OAAO,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC;AAC9C;AAEA;;;;;AAKG;AACG,SAAU,QAAQ,CACtB,QAAmE,EACnE,SAA4B,EAAA;AAE5B,IAAA,MAAM,YAAY,GAAG,QAAQ,CAAC,WAAW,CAAC,IAAI,EAC5C,gBAAgB,GAAG,OAAO,QAAQ,KAAK,QAAQ,EAC/C,aAAa,GAAG,SAAS,CAAC,WAAW,CAAC,IAAI,EAC1C,iBAAiB,GAAG,OAAO,SAAS,KAAK,QAAQ;IAEnD,IAAI,WAAsC,EACxC,cAAoC;;IAGtC,QAAQ,YAAY;;AAElB,QAAA,KAAK,QAAQ;AACX,YAAA,IAAI,gBAAgB;AAClB,gBAAA,WA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,KAC/B,KAAK,KAAK,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE;AACpD,QAAA,GAAG,CAAC,SAAS,CAAC,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE;SAE3C,IAAI,CAAC,EAAE,CAAC;AACX;AAEA;;;;;;;;AAQG;AACG,SAAU,WAAW,CAC1B,GAAW,EACX,CAAC,SAAS,EAAE,MAAM,CAA2C,EAAA;AAE7D,IAAA,OAAO,GAAG,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,SAAS,IAAI,GAAG,EAAE,MAAM,IAAI,GAAG,CAAC;AACrE;AAEA;;;;;AAKG;SACa,WAAW,CAAC,MAAc,EAAE,YAAoB,GAAG,EAAA;IAClE,IAAI,OAAO,MAAM,KAAK,QAAQ;AAAE,QAAA,OAAO,MAAM;AAE7C,IAAA,OAAO;AACL,SAAA,WAAW;SACX,KAAK,CAAC,SAAS;AACf,SAAA,GAAG,CAAC,CAAC,GAAG,KACR,GAAG,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE;AACjC,QAAA,GAAG,CAAC,SAAS,CAAC,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE;SAE1C,IAAI,CAAC,GAAG,CAAC;AACZ;;ACjLM,SAAU,MAAM,CAAC,SAAiB,EAAA;AACvC,IAAA,OAAO,SAAS;AACjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mado-ui",
3
3
  "author": "Andrilla LLC",
4
- "version": "0.5.4",
4
+ "version": "0.5.7",
5
5
  "description": "A collection of opinionated React components built on Tailwind CSS",
6
6
  "repository": "https://github.com/andrilla-llc/mado-ui",
7
7
  "license": "GNU GPL",
@@ -21,6 +21,11 @@
21
21
  },
22
22
  "./css": "./css/index.css",
23
23
  "./css/index.css": "./css/index.css",
24
+ "./graphics": {
25
+ "types": "./dist/graphics.d.ts",
26
+ "import": "./dist/graphics.esm.js",
27
+ "require": "./dist/graphics.js"
28
+ },
24
29
  "./hooks": {
25
30
  "types": "./dist/hooks.d.ts",
26
31
  "import": "./dist/hooks.esm.js",
@@ -47,10 +52,12 @@
47
52
  "watch:css": "postcss src/css/index.css -o css/index.css --watch",
48
53
  "build": "npm run build:css && rollup -c && rollup -c rollup.dts.config.js",
49
54
  "dev": "npm run watch:css & rollup -c -w",
50
- "prepublishOnly": "npm run build"
55
+ "prepublishOnly": "npm run build",
56
+ "lint": "eslint"
51
57
  },
52
58
  "dependencies": {
53
- "@floating-ui/react-dom": "^2.1.4"
59
+ "@floating-ui/react-dom": "^2.1.6",
60
+ "animejs": "^4.2.2"
54
61
  },
55
62
  "peerDependencies": {
56
63
  "@headlessui/react": "^2.2.4",
@@ -60,38 +67,23 @@
60
67
  "tailwindcss": "^4.1.4"
61
68
  },
62
69
  "devDependencies": {
63
- "@rollup/plugin-node-resolve": "^16.0.1",
64
- "@rollup/plugin-typescript": "^12.1.4",
65
- "@tailwindcss/postcss": "^4.1.11",
66
- "@types/node": "^24.0.14",
67
- "@types/react": "^19.1.8",
68
- "@types/react-dom": "^19.1.6",
70
+ "@rollup/plugin-node-resolve": "^16.0.3",
71
+ "@rollup/plugin-typescript": "^12.3.0",
72
+ "@tailwindcss/postcss": "^4.1.17",
73
+ "@types/node": "^24.10.1",
74
+ "@types/react": "^19.2.7",
75
+ "@types/react-dom": "^19.2.3",
76
+ "eslint": "^9.39.1",
77
+ "eslint-config-next": "^16.0.7",
78
+ "next": "^16.0.7",
69
79
  "postcss": "^8.5.6",
70
80
  "postcss-cli": "^11.0.1",
71
- "prettier": "^3.6.2",
72
- "prettier-plugin-tailwindcss": "^0.6.14",
73
- "rollup": "^4.45.1",
74
- "rollup-plugin-dts": "^6.2.1",
81
+ "prettier": "^3.7.4",
82
+ "prettier-plugin-tailwindcss": "^0.7.2",
83
+ "rollup": "^4.53.3",
84
+ "rollup-plugin-dts": "^6.3.0",
75
85
  "rollup-plugin-peer-deps-external": "^2.2.4",
76
86
  "rollup-plugin-postcss": "^4.0.2",
77
- "typescript": "^5.8.3"
78
- },
79
- "prettier": {
80
- "singleQuote": true,
81
- "semi": false,
82
- "printWidth": 120,
83
- "useTabs": true,
84
- "tabWidth": 2,
85
- "arrowParens": "avoid",
86
- "jsxSingleQuote": true,
87
- "tailwindStylesheet": "./src/css/index.css",
88
- "tailwindFunctions": [
89
- "twMerge",
90
- "twJoin",
91
- "twSort"
92
- ],
93
- "plugins": [
94
- "prettier-plugin-tailwindcss"
95
- ]
87
+ "typescript": "^5.9.3"
96
88
  }
97
89
  }
@@ -1 +0,0 @@
1
- export { AnimeScopeProvider as default, AnimeScopeProvider as MadoUIProvider } from '../hooks/use-anime-scope';
@@ -1,15 +0,0 @@
1
- export type AnimeScopeStore = {
2
- scope: Scope | null;
3
- methods: Record<string, Function>;
4
- };
5
- import { ReactNode } from 'react';
6
- import { Scope } from 'animejs';
7
- declare function useAnimeScope(): {
8
- scope: Scope | null;
9
- methods: Record<string, Function>;
10
- isReady: boolean;
11
- };
12
- declare function AnimeScopeProvider({ children }: {
13
- children: ReactNode;
14
- }): import("react/jsx-runtime").JSX.Element;
15
- export { AnimeScopeProvider, useAnimeScope };
@@ -1,3 +0,0 @@
1
- import { ComponentPropsWithRef } from 'react';
2
- export declare function SquareAndPencilFill(props: Omit<ComponentPropsWithRef<'svg'>, 'viewBox'>): import("react/jsx-runtime").JSX.Element;
3
- //# sourceMappingURL=square-and-pencil-fill.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"square-and-pencil-fill.d.ts","sourceRoot":"","sources":["../../src/icons/square-and-pencil-fill.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAA;AAE7C,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC,2CAOvF"}
package/dist/types.esm.js DELETED
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=types.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/dist/types.js DELETED
@@ -1,3 +0,0 @@
1
- 'use strict';
2
-
3
- //# sourceMappingURL=types.js.map
package/dist/types.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}