mado-ui 0.3.2 → 0.4.0

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 (148) hide show
  1. package/css/index.css +41 -6
  2. package/dist/components/button.d.ts +3 -23
  3. package/dist/components/details.d.ts +2 -2
  4. package/dist/components/drop-down.d.ts +1 -1
  5. package/dist/components/form/fieldset.d.ts +35 -7
  6. package/dist/components/form/index.d.ts +5 -6
  7. package/dist/components/form/input/date/index.d.ts +36 -0
  8. package/dist/components/form/input/index.d.ts +78 -12
  9. package/dist/components/form/submit-button.d.ts +1 -1
  10. package/dist/components/form/textarea.d.ts +1 -1
  11. package/dist/components/ghost.d.ts +1 -1
  12. package/dist/components/heading.d.ts +1 -1
  13. package/dist/components/iframe.d.ts +15 -0
  14. package/dist/components/index.d.ts +10 -11
  15. package/dist/components/link.d.ts +3 -14
  16. package/dist/components/modal.d.ts +1 -1
  17. package/dist/components/time.d.ts +1 -1
  18. package/dist/components/tooltip.d.ts +1 -1
  19. package/dist/components.esm.js +466 -122
  20. package/dist/components.esm.js.map +1 -1
  21. package/dist/components.js +465 -119
  22. package/dist/components.js.map +1 -1
  23. package/dist/hooks/index.d.ts +4 -3
  24. package/dist/hooks/use-fieldset-context.d.ts +22 -0
  25. package/dist/hooks/use-form-context.d.ts +18 -10
  26. package/dist/hooks.esm.js +99 -5
  27. package/dist/hooks.esm.js.map +1 -1
  28. package/dist/hooks.js +100 -3
  29. package/dist/hooks.js.map +1 -1
  30. package/dist/icons/3-people.d.ts +2 -2
  31. package/dist/icons/3-rectangles-desktop-fill.d.ts +2 -2
  32. package/dist/icons/3-rectangles-desktop.d.ts +2 -2
  33. package/dist/icons/airplane.d.ts +2 -2
  34. package/dist/icons/arrow-triangle-2-circlepath-circle-fill.d.ts +2 -2
  35. package/dist/icons/arrow-triangle-2-circlepath-circle.d.ts +2 -2
  36. package/dist/icons/bag-fill.d.ts +2 -2
  37. package/dist/icons/banknote.d.ts +2 -2
  38. package/dist/icons/bell-fill.d.ts +2 -2
  39. package/dist/icons/bolt-car.d.ts +2 -2
  40. package/dist/icons/bolt-fill.d.ts +2 -2
  41. package/dist/icons/bolt-ring-closed.d.ts +2 -2
  42. package/dist/icons/bolt-trianglebadge-exclamationmark.d.ts +2 -2
  43. package/dist/icons/book-fill.d.ts +2 -2
  44. package/dist/icons/bookmark-fill.d.ts +2 -2
  45. package/dist/icons/briefcase-fill.d.ts +2 -2
  46. package/dist/icons/bubble-left-fill.d.ts +2 -2
  47. package/dist/icons/building-2-fill.d.ts +2 -2
  48. package/dist/icons/calendar.d.ts +2 -2
  49. package/dist/icons/camera-fill.d.ts +2 -2
  50. package/dist/icons/car-fill.d.ts +2 -2
  51. package/dist/icons/cart-fill.d.ts +2 -2
  52. package/dist/icons/chart-bar-doc-horizontal.d.ts +2 -2
  53. package/dist/icons/checkmark-seal.d.ts +2 -2
  54. package/dist/icons/checkmark.d.ts +2 -2
  55. package/dist/icons/chevron-down.d.ts +2 -2
  56. package/dist/icons/chevron-left-forwardslash-chevron-right.d.ts +2 -2
  57. package/dist/icons/chevron-left.d.ts +2 -2
  58. package/dist/icons/chevron-right.d.ts +2 -2
  59. package/dist/icons/chevron-up-chevron-down.d.ts +2 -2
  60. package/dist/icons/circle-fill.d.ts +2 -2
  61. package/dist/icons/clock-badge-checkmark.d.ts +2 -2
  62. package/dist/icons/clock-fill.d.ts +2 -2
  63. package/dist/icons/cloud-fill.d.ts +2 -2
  64. package/dist/icons/cube-fill.d.ts +2 -2
  65. package/dist/icons/curve-point-left.d.ts +2 -2
  66. package/dist/icons/dial-high.d.ts +2 -2
  67. package/dist/icons/doc-fill.d.ts +2 -2
  68. package/dist/icons/doc-on-clipboard.d.ts +2 -2
  69. package/dist/icons/doc-on-doc-fill.d.ts +2 -2
  70. package/dist/icons/doc-on-doc.d.ts +2 -2
  71. package/dist/icons/doc-text-magnifyingglass.d.ts +2 -2
  72. package/dist/icons/dollar-sign.d.ts +2 -2
  73. package/dist/icons/ellipsis-circle-fill.d.ts +2 -2
  74. package/dist/icons/ellipsis-circle.d.ts +2 -2
  75. package/dist/icons/envelope-fill.d.ts +2 -2
  76. package/dist/icons/envelope.d.ts +2 -2
  77. package/dist/icons/exclamationmark-octagon.d.ts +2 -2
  78. package/dist/icons/eye.d.ts +2 -2
  79. package/dist/icons/figure-water-fitness.d.ts +2 -2
  80. package/dist/icons/flag-fill.d.ts +2 -2
  81. package/dist/icons/flame-fill.d.ts +2 -2
  82. package/dist/icons/folder-fill.d.ts +2 -2
  83. package/dist/icons/folder.d.ts +2 -2
  84. package/dist/icons/gearshape-fill.d.ts +2 -2
  85. package/dist/icons/gearshape.d.ts +2 -2
  86. package/dist/icons/gift-fill.d.ts +2 -2
  87. package/dist/icons/globe-americas-fill.d.ts +2 -2
  88. package/dist/icons/hare-fill.d.ts +2 -2
  89. package/dist/icons/house-deskclock.d.ts +2 -2
  90. package/dist/icons/house-fill.d.ts +2 -2
  91. package/dist/icons/house.d.ts +2 -2
  92. package/dist/icons/iphone-house.d.ts +2 -2
  93. package/dist/icons/light-ribbon.d.ts +2 -2
  94. package/dist/icons/lightbulb-fill.d.ts +2 -2
  95. package/dist/icons/lightbulb-led.d.ts +2 -2
  96. package/dist/icons/list-bullet-clipboard-fill.d.ts +2 -2
  97. package/dist/icons/magnifyingglass.d.ts +2 -2
  98. package/dist/icons/map-pin-ellipse.d.ts +2 -2
  99. package/dist/icons/minus-plus-batterblock.d.ts +2 -2
  100. package/dist/icons/network-shield.d.ts +2 -2
  101. package/dist/icons/network.d.ts +2 -2
  102. package/dist/icons/newspaper-fill.d.ts +2 -2
  103. package/dist/icons/number.d.ts +2 -2
  104. package/dist/icons/paperplane-fill.d.ts +2 -2
  105. package/dist/icons/person-crop-square.d.ts +2 -2
  106. package/dist/icons/person-fill-questionmark.d.ts +2 -2
  107. package/dist/icons/person-fill.d.ts +2 -2
  108. package/dist/icons/person.d.ts +2 -2
  109. package/dist/icons/phone-arrow-up-right.d.ts +2 -2
  110. package/dist/icons/phone-fill.d.ts +2 -2
  111. package/dist/icons/phone.d.ts +2 -2
  112. package/dist/icons/play-rectangle-fill.d.ts +2 -2
  113. package/dist/icons/plus.d.ts +2 -2
  114. package/dist/icons/qrcode.d.ts +2 -2
  115. package/dist/icons/rectangle-portrait-and-arrow-left-fill.d.ts +2 -2
  116. package/dist/icons/rectangle-portrait-and-arrow-left.d.ts +2 -2
  117. package/dist/icons/sensor.d.ts +2 -2
  118. package/dist/icons/signature.d.ts +2 -2
  119. package/dist/icons/solar-panel.d.ts +2 -2
  120. package/dist/icons/square-and-arrow-down-fill.d.ts +2 -2
  121. package/dist/icons/square-and-arrow-down.d.ts +2 -2
  122. package/dist/icons/square-and-arrow-up-fill.d.ts +2 -2
  123. package/dist/icons/square-and-arrow-up.d.ts +2 -2
  124. package/dist/icons/square-and-pencil-fill.d.ts +2 -2
  125. package/dist/icons/square-and-pencil.d.ts +2 -2
  126. package/dist/icons/text-bubble.d.ts +2 -2
  127. package/dist/icons/trash-fill.d.ts +2 -2
  128. package/dist/icons/trash.d.ts +2 -2
  129. package/dist/icons/tree.d.ts +2 -2
  130. package/dist/icons/umbrella-fill.d.ts +2 -2
  131. package/dist/icons/xmark.d.ts +2 -2
  132. package/dist/icons.esm.js.map +1 -1
  133. package/dist/icons.js.map +1 -1
  134. package/dist/index.esm.js +466 -122
  135. package/dist/index.esm.js.map +1 -1
  136. package/dist/index.js +465 -119
  137. package/dist/index.js.map +1 -1
  138. package/dist/types/index.d.ts +1 -2
  139. package/dist/types/utils.d.ts +20 -0
  140. package/dist/utils/get-date.d.ts +17 -0
  141. package/dist/utils/index.d.ts +8 -9
  142. package/dist/utils/string-manipulation.d.ts +38 -3
  143. package/dist/utils/tw-sort.d.ts +1 -1
  144. package/dist/utils.esm.js +112 -21
  145. package/dist/utils.esm.js.map +1 -1
  146. package/dist/utils.js +113 -20
  147. package/dist/utils.js.map +1 -1
  148. package/package.json +4 -4
@@ -1,2 +1 @@
1
- import { AnyElementProps, AsElement, MergeTypes, OneOf, OnlyFirst } from './utils';
2
- export { AnyElementProps, AsElement, MergeTypes, OneOf, OnlyFirst };
1
+ export * from './utils';
@@ -6,6 +6,26 @@ export type AsElement<TTag extends ElementType = 'div'> = {
6
6
  /** Specify what element should be rendered */
7
7
  as?: TTag;
8
8
  };
9
+ export type ColorTheme = OneOf<[
10
+ {
11
+ /** Color theme. */
12
+ theme?: 'blue' | 'brown' | 'green' | 'grey' | 'sky-blue' | 'magenta' | 'orange' | 'pink' | 'purple' | 'red' | 'violet' | 'yellow';
13
+ },
14
+ {
15
+ /** Color theme. */
16
+ theme?: 'custom';
17
+ customTheme: OneOf<[
18
+ {
19
+ /** Example: `'[--theme-color:var(--color-blue-500)]'` */
20
+ themeColor: string;
21
+ },
22
+ {
23
+ /** This doesn't use any preset color theme classes. */
24
+ classes: string;
25
+ }
26
+ ]>;
27
+ }
28
+ ]>;
9
29
  export type MergeTypes<TypesArray extends unknown[], Result = object> = TypesArray extends [
10
30
  infer Head,
11
31
  ...infer Remaining
@@ -1,5 +1,20 @@
1
+ export type DayNumber = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31;
2
+ export type DateTimeObject = {
3
+ day: DayNumber;
4
+ hour: HourNumber;
5
+ minute: MinuteNumber;
6
+ month: MonthNumber | MonthName;
7
+ second: SecondNumber;
8
+ year: number;
9
+ };
10
+ export type HourNumber = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23;
11
+ export type MinuteNumber = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59;
1
12
  export type MonthName = 'January' | 'February' | 'March' | 'April' | 'May' | 'June' | 'July' | 'August' | 'September' | 'October' | 'November' | 'December';
13
+ export type MonthNumber = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
14
+ export type SecondNumber = MinuteNumber;
2
15
  export type WeekdayName = 'Sunday' | 'Monday' | 'Tuesday' | 'Wednesday' | 'Thursday' | 'Friday' | 'Saturday';
16
+ export type WeekdayNumber = 1 | 2 | 3 | 4 | 5 | 6 | 7;
17
+ export type WeekNumber = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53;
3
18
  /** An array of the names of month in order */
4
19
  export declare const monthNamesList: MonthName[];
5
20
  /** An array of the names of the days of the week in order */
@@ -150,4 +165,6 @@ export declare function toFullDateString(date?: Date, options?: ToFullDateString
150
165
  * @returns {'Today'|'Tomorrow'|'Yesterday'|string} `'weekday, month day, year'` | `'Yesterday'` | `'Today'` | `'Tomorrow'`
151
166
  */
152
167
  export declare function getUserReadableDateFromTimestampz(timestampz: string): 'Today' | 'Tomorrow' | 'Yesterday' | string;
168
+ export declare function getLocalTime(time: string | [number, number]): string;
169
+ export declare function getTimezone(): string;
153
170
  export {};
@@ -1,9 +1,8 @@
1
- import { addClass, hasClass, removeClass, toggleClass } from './class-management';
2
- import { AdditionalmadoClassGroupIds, extendMadoTailwindMerge, twMerge } from './custom-tailwind-merge';
3
- import { MonthName, WeekdayName, monthNamesList, weekdayNamesList, currentMonthName, currentWeekdayName, daysInMonth, firstOfMonth, getDate, getHours, getHoursIn12, getMeridianFromHour, getMilliseconds, getMinutes, getMonth, getMonthIndexFromName, getMonthName, getNextMonth, getPreviousMonth, getSeconds, getUserReadableDate, getWeekdayName, getYearsInRange, toFullDateString, getUserReadableDateFromTimestampz } from './get-date';
4
- import { findComponentByType } from './helpers';
5
- import { easeOutExpo } from './math';
6
- import { emailRegex, isEmail, telRegex, isPhoneNumber } from './regex';
7
- import { formatPhoneNumber, toLowerCase } from './string-manipulation';
8
- import twSort from './tw-sort';
9
- export { addClass, AdditionalmadoClassGroupIds, currentMonthName, currentWeekdayName, daysInMonth, easeOutExpo, emailRegex, extendMadoTailwindMerge, findComponentByType, firstOfMonth, formatPhoneNumber, getDate, getHours, getHoursIn12, getMeridianFromHour, getMilliseconds, getMinutes, getMonth, getMonthIndexFromName, getMonthName, getNextMonth, getPreviousMonth, getSeconds, getUserReadableDate, getUserReadableDateFromTimestampz, getWeekdayName, getYearsInRange, hasClass, isEmail, isPhoneNumber, MonthName, monthNamesList, removeClass, telRegex, toggleClass, toLowerCase, toFullDateString, twMerge, twSort, WeekdayName, weekdayNamesList, };
1
+ export * from './class-management';
2
+ export * from './custom-tailwind-merge';
3
+ export * from './get-date';
4
+ export * from './helpers';
5
+ export * from './math';
6
+ export * from './regex';
7
+ export * from './string-manipulation';
8
+ export * from './tw-sort';
@@ -1,10 +1,45 @@
1
1
  /**
2
2
  * # Format Phone Number
3
3
  * Converts any string containing at least 10 numbers to a formatted phone number
4
- * @param {string} string
5
- * @returns {string} string formatted (000) 000-0000
4
+ * @param {string} phoneNumber
5
+ * @param options
6
+ * @property {string} `countryCode`
7
+ * @property {'continuous' | 'dot' | 'hyphenated' | 'none' | 'space' | 'standard'} `format`
8
+ *
9
+ * Input: a555b555c5555d
10
+ *
11
+ * @example
12
+ * format: 'continuous'
13
+ * countryCode: '1'
14
+ * returns: +1 5555555555
15
+ *
16
+ * @example
17
+ * format: 'dot'
18
+ * returns: 555.555.5555
19
+ *
20
+ * @example
21
+ * format: 'hyphenated'
22
+ * returns: 555-555-5555
23
+ *
24
+ * @example
25
+ * format: 'none'
26
+ * countryCode: '1'
27
+ * returns: +1 a555b555c5555d
28
+ *
29
+ * @example
30
+ * format: 'space'
31
+ * returns: 555 555 5555
32
+ *
33
+ * @example
34
+ * format: 'standard' (default)
35
+ * returns: (555) 555-5555
36
+ *
37
+ * @returns {string} string formatted
6
38
  */
7
- export declare function formatPhoneNumber(string: string, countryCode?: string): string;
39
+ export declare function formatPhoneNumber(phoneNumber: string, options?: Partial<{
40
+ countryCode: string;
41
+ format: 'continuous' | 'dot' | 'hyphenated' | 'none' | 'space' | 'standard';
42
+ }>): string;
8
43
  /**
9
44
  * # To Lower Case
10
45
  * Converts a string to lowercase, and offers easy string replacements for creating snake case, kebab case, or your own.
@@ -1 +1 @@
1
- export default function twSort(className: string): string;
1
+ export declare function twSort(className: string): string;
package/dist/utils.esm.js CHANGED
@@ -656,12 +656,31 @@ function getUserReadableDateFromTimestampz(timestampz) {
656
656
  const [date, time] = timestampz.split('T') || [];
657
657
  const [year, month, day] = date?.split('-').map(string => Number(string)) || [];
658
658
  const timezoneIsAheadOfUTC = time?.includes('+');
659
- const [hms, _timezone] = timezoneIsAheadOfUTC ? time?.split('+') : time?.split('-') || [];
659
+ const [hms, timezone] = timezoneIsAheadOfUTC ? time?.split('+') : time?.split('-') || [];
660
660
  const [hours, minutes, seconds] = hms?.split(':').map(string => Number(string)) || [];
661
- // const [timezoneHours, timezoneMinutes] = timezone?.split(':').map(string => Number(string)) || []
661
+ const [timezoneHours, timezoneMinutes] = timezone?.split(':').map(string => Number(string)) || [];
662
662
  const dateAndTime = new Date(year, month - 1, day, hours, minutes, seconds), userReadableDateAndTime = getUserReadableDate(dateAndTime);
663
663
  return userReadableDateAndTime;
664
664
  }
665
+ function getLocalTime(time) {
666
+ const date = new Date(), [hours, minutes] = typeof time === 'string' ? time.split(':') : time;
667
+ const timezone = getTimezone();
668
+ console.log(timezone);
669
+ date.setUTCHours(Number(hours));
670
+ date.setMinutes(Number(minutes));
671
+ return date.toLocaleTimeString([], {
672
+ hour: 'numeric',
673
+ minute: '2-digit',
674
+ hour12: true,
675
+ });
676
+ }
677
+ function getTimezone() {
678
+ const date = new Date();
679
+ const timezonePart = Intl.DateTimeFormat('en-US', { timeZoneName: 'short' })
680
+ .formatToParts(date)
681
+ .find(part => part.type === 'timeZoneName');
682
+ return timezonePart ? timezonePart.value : '';
683
+ }
665
684
 
666
685
  function findComponentByType(children, componentType) {
667
686
  const childrenArray = Children.toArray(children);
@@ -710,25 +729,97 @@ function isPhoneNumber(tel) {
710
729
  /**
711
730
  * # Format Phone Number
712
731
  * Converts any string containing at least 10 numbers to a formatted phone number
713
- * @param {string} string
714
- * @returns {string} string formatted (000) 000-0000
732
+ * @param {string} phoneNumber
733
+ * @param options
734
+ * @property {string} `countryCode`
735
+ * @property {'continuous' | 'dot' | 'hyphenated' | 'none' | 'space' | 'standard'} `format`
736
+ *
737
+ * Input: a555b555c5555d
738
+ *
739
+ * @example
740
+ * format: 'continuous'
741
+ * countryCode: '1'
742
+ * returns: +1 5555555555
743
+ *
744
+ * @example
745
+ * format: 'dot'
746
+ * returns: 555.555.5555
747
+ *
748
+ * @example
749
+ * format: 'hyphenated'
750
+ * returns: 555-555-5555
751
+ *
752
+ * @example
753
+ * format: 'none'
754
+ * countryCode: '1'
755
+ * returns: +1 a555b555c5555d
756
+ *
757
+ * @example
758
+ * format: 'space'
759
+ * returns: 555 555 5555
760
+ *
761
+ * @example
762
+ * format: 'standard' (default)
763
+ * returns: (555) 555-5555
764
+ *
765
+ * @returns {string} string formatted
715
766
  */
716
- function formatPhoneNumber(string, countryCode) {
717
- return (`${countryCode ? `+${countryCode} ` : ''}` +
718
- string
719
- .replace(/\D/g, '')
720
- .slice(-10)
721
- .split('')
722
- .map((char, index) => {
723
- if (index === 0)
724
- return `(${char}`;
725
- if (index === 2)
726
- return `${char}) `;
727
- if (index === 5)
728
- return `${char}-`;
729
- return char;
730
- })
731
- .join(''));
767
+ function formatPhoneNumber(phoneNumber, options) {
768
+ const format = options?.format || 'standard';
769
+ if (format !== 'none')
770
+ phoneNumber = phoneNumber.replace(/\D/g, '').slice(-10);
771
+ switch (format) {
772
+ case 'dot':
773
+ phoneNumber = phoneNumber
774
+ .split('')
775
+ .map((char, index) => {
776
+ if (index === 2)
777
+ return `${char}.`;
778
+ if (index === 5)
779
+ return `${char}.`;
780
+ return char;
781
+ })
782
+ .join('');
783
+ break;
784
+ case 'hyphenated':
785
+ phoneNumber = phoneNumber
786
+ .split('')
787
+ .map((char, index) => {
788
+ if (index === 2)
789
+ return `${char}-`;
790
+ if (index === 5)
791
+ return `${char}-`;
792
+ return char;
793
+ })
794
+ .join('');
795
+ break;
796
+ case 'space':
797
+ phoneNumber = phoneNumber
798
+ .split('')
799
+ .map((char, index) => {
800
+ if (index === 2)
801
+ return `${char} `;
802
+ if (index === 5)
803
+ return `${char} `;
804
+ return char;
805
+ })
806
+ .join('');
807
+ break;
808
+ case 'standard':
809
+ phoneNumber = phoneNumber
810
+ .split('')
811
+ .map((char, index) => {
812
+ if (index === 0)
813
+ return `(${char}`;
814
+ if (index === 2)
815
+ return `${char}) `;
816
+ if (index === 5)
817
+ return `${char}-`;
818
+ return char;
819
+ })
820
+ .join('');
821
+ }
822
+ return `${options?.countryCode ? `+${options?.countryCode} ` : ''}` + phoneNumber;
732
823
  }
733
824
  /**
734
825
  * # To Lower Case
@@ -747,5 +838,5 @@ function twSort(className) {
747
838
  return className;
748
839
  }
749
840
 
750
- export { addClass, currentMonthName, currentWeekdayName, daysInMonth, easeOutExpo, emailRegex, extendMadoTailwindMerge, findComponentByType, firstOfMonth, formatPhoneNumber, getDate, getHours, getHoursIn12, getMeridianFromHour, getMilliseconds, getMinutes, getMonth, getMonthIndexFromName, getMonthName, getNextMonth, getPreviousMonth, getSeconds, getUserReadableDate, getUserReadableDateFromTimestampz, getWeekdayName, getYearsInRange, hasClass, isEmail, isPhoneNumber, monthNamesList, removeClass, telRegex, toFullDateString, toLowerCase, toggleClass, twMerge, twSort, weekdayNamesList };
841
+ export { addClass, currentMonthName, currentWeekdayName, daysInMonth, easeOutExpo, emailRegex, extendMadoTailwindMerge, findComponentByType, firstOfMonth, formatPhoneNumber, getDate, getHours, getHoursIn12, getLocalTime, getMeridianFromHour, getMilliseconds, getMinutes, getMonth, getMonthIndexFromName, getMonthName, getNextMonth, getPreviousMonth, getSeconds, getTimezone, getUserReadableDate, getUserReadableDateFromTimestampz, getWeekdayName, getYearsInRange, hasClass, isEmail, isPhoneNumber, monthNamesList, removeClass, telRegex, toFullDateString, toLowerCase, toggleClass, twMerge, twSort, weekdayNamesList };
751
842
  //# sourceMappingURL=utils.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.esm.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 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 WeekdayName = 'Sunday' | 'Monday' | 'Tuesday' | 'Wednesday' | 'Thursday' | 'Friday' | 'Saturday'\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\t// const [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","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} string\n * @returns {string} string formatted (000) 000-0000\n */\nexport function formatPhoneNumber(string: string, countryCode?: string): string {\n\treturn (\n\t\t`${countryCode ? `+${countryCode} ` : ''}` +\n\t\tstring\n\t\t\t.replace(/\\D/g, '')\n\t\t\t.slice(-10)\n\t\t\t.split('')\n\t\t\t.map((char, index) => {\n\t\t\t\tif (index === 0) return `(${char}`\n\t\t\t\tif (index === 2) return `${char}) `\n\t\t\t\tif (index === 5) return `${char}-`\n\t\t\t\treturn char\n\t\t\t})\n\t\t\t.join('')\n\t)\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 default function twSort(className: string) {\n\treturn className\n}\n"],"names":[],"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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AAO,CAAA,EAAG,IAAI,CAAA,EAAA,CAAI;YACnC,IAAI,KAAK,KAAK,CAAC;gBAAE,OAAO,CAAA,EAAG,IAAI,CAAA,CAAA,CAAG;AAClC,YAAA,OAAO,IAAI;AACZ,SAAC;AACA,aAAA,IAAI,CAAC,EAAE,CAAC;AAEZ;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;;AClCc,SAAU,MAAM,CAAC,SAAiB,EAAA;AAC/C,IAAA,OAAO,SAAS;AACjB;;;;"}
1
+ {"version":3,"file":"utils.esm.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":[],"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,WAAW,GAAG,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;YAC/D;;AAEF,QAAA,KAAK,UAAU;AACb,YAAA,IAAI,CAAC,gBAAgB;AACnB,gBAAA,WAAW,GAAG,KAAK,CAAC,IAAI,CAAC,QAAoB,CAAkB;YACjE;;AAEF,QAAA,KAAK,OAAO;AACV,YAAA,IAAI,CAAC,gBAAgB;gBAAE,WAAW,GAAG,QAAyB;YAC9D;;AAEF,QAAA;YACE,IAAI,YAAY,CAAC,UAAU,CAAC,MAAM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