@qite/tide-booking-component 1.4.93 → 1.4.95

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 (181) hide show
  1. package/.prettierrc +9 -9
  2. package/.vs/ProjectSettings.json +3 -3
  3. package/.vs/VSWorkspaceState.json +5 -5
  4. package/build/build-cjs/index.js +81 -27
  5. package/build/build-cjs/src/booking-wizard/features/booking/booking-slice.d.ts +2 -1
  6. package/build/build-cjs/src/booking-wizard/features/booking/selectors.d.ts +4 -3
  7. package/build/build-cjs/src/booking-wizard/features/price-details/price-details-slice.d.ts +1 -0
  8. package/build/build-cjs/src/booking-wizard/features/price-details/selectors.d.ts +1 -0
  9. package/build/build-cjs/src/booking-wizard/features/sidebar/sidebar.d.ts +1 -0
  10. package/build/build-cjs/src/booking-wizard/types.d.ts +1 -0
  11. package/build/build-cjs/src/shared/utils/localization-util.d.ts +1 -0
  12. package/build/build-esm/index.js +81 -27
  13. package/build/build-esm/src/booking-wizard/features/booking/booking-slice.d.ts +2 -1
  14. package/build/build-esm/src/booking-wizard/features/booking/selectors.d.ts +4 -3
  15. package/build/build-esm/src/booking-wizard/features/price-details/price-details-slice.d.ts +1 -0
  16. package/build/build-esm/src/booking-wizard/features/price-details/selectors.d.ts +1 -0
  17. package/build/build-esm/src/booking-wizard/features/sidebar/sidebar.d.ts +1 -0
  18. package/build/build-esm/src/booking-wizard/types.d.ts +1 -0
  19. package/build/build-esm/src/shared/utils/localization-util.d.ts +1 -0
  20. package/package.json +83 -83
  21. package/src/booking-product/components/age-select.tsx +35 -35
  22. package/src/booking-product/components/amount-input.tsx +51 -51
  23. package/src/booking-product/components/date-range-picker/calendar.tsx +155 -155
  24. package/src/booking-product/components/footer.tsx +54 -54
  25. package/src/booking-product/components/header.tsx +57 -57
  26. package/src/booking-product/components/icon.tsx +200 -200
  27. package/src/booking-product/components/list-view.tsx +54 -54
  28. package/src/booking-product/components/rating.tsx +21 -21
  29. package/src/booking-product/components/rooms.tsx +171 -171
  30. package/src/booking-product/constants.ts +1 -1
  31. package/src/booking-product/index.tsx +21 -21
  32. package/src/booking-product/settings-context.ts +16 -16
  33. package/src/booking-product/types.ts +30 -30
  34. package/src/booking-product/utils/api.ts +26 -26
  35. package/src/booking-product/utils/price.ts +28 -28
  36. package/src/booking-wizard/api-settings-slice.ts +24 -24
  37. package/src/booking-wizard/components/icon.tsx +398 -398
  38. package/src/booking-wizard/components/labeled-input.tsx +56 -56
  39. package/src/booking-wizard/components/labeled-select.tsx +54 -54
  40. package/src/booking-wizard/components/message.tsx +21 -21
  41. package/src/booking-wizard/components/multi-range-filter.tsx +99 -99
  42. package/src/booking-wizard/components/phone-input.tsx +146 -146
  43. package/src/booking-wizard/components/print-offer-button.tsx +53 -53
  44. package/src/booking-wizard/components/product-card.tsx +23 -23
  45. package/src/booking-wizard/declarations.d.ts +4 -4
  46. package/src/booking-wizard/features/booking/booking-self-contained.tsx +16 -1
  47. package/src/booking-wizard/features/booking/booking-slice.ts +9 -1
  48. package/src/booking-wizard/features/booking/booking.tsx +16 -1
  49. package/src/booking-wizard/features/booking/selectors.ts +5 -0
  50. package/src/booking-wizard/features/flight-options/flight-filter.tsx +371 -371
  51. package/src/booking-wizard/features/flight-options/flight-option-flight.tsx +354 -354
  52. package/src/booking-wizard/features/flight-options/flight-option-modal.tsx +211 -211
  53. package/src/booking-wizard/features/flight-options/flight-option.tsx +57 -57
  54. package/src/booking-wizard/features/flight-options/flight-utils.ts +423 -423
  55. package/src/booking-wizard/features/price-details/price-details-api.ts +20 -20
  56. package/src/booking-wizard/features/price-details/price-details-slice.ts +2 -0
  57. package/src/booking-wizard/features/price-details/selectors.ts +1 -0
  58. package/src/booking-wizard/features/price-details/util.ts +115 -115
  59. package/src/booking-wizard/features/product-options/no-options.tsx +18 -18
  60. package/src/booking-wizard/features/product-options/none-option.tsx +73 -73
  61. package/src/booking-wizard/features/product-options/option-booking-airline-group.tsx +53 -53
  62. package/src/booking-wizard/features/product-options/option-booking-group.tsx +152 -152
  63. package/src/booking-wizard/features/product-options/option-item.tsx +236 -236
  64. package/src/booking-wizard/features/product-options/option-pax-card.tsx +159 -159
  65. package/src/booking-wizard/features/product-options/option-pax-group.tsx +122 -122
  66. package/src/booking-wizard/features/product-options/option-room.tsx +226 -226
  67. package/src/booking-wizard/features/product-options/option-unit-group.tsx +138 -138
  68. package/src/booking-wizard/features/room-options/room-utils.ts +154 -154
  69. package/src/booking-wizard/features/room-options/room.tsx +123 -123
  70. package/src/booking-wizard/features/room-options/traveler-rooms.tsx +64 -64
  71. package/src/booking-wizard/features/sidebar/index.tsx +2 -0
  72. package/src/booking-wizard/features/sidebar/sidebar-flight.tsx +66 -66
  73. package/src/booking-wizard/features/sidebar/sidebar.tsx +17 -1
  74. package/src/booking-wizard/features/summary/summary-booking-option-pax.tsx +23 -23
  75. package/src/booking-wizard/features/summary/summary-booking-option-unit.tsx +23 -23
  76. package/src/booking-wizard/features/summary/summary-flight.tsx +36 -36
  77. package/src/booking-wizard/features/summary/summary-per-booking-option-group.tsx +60 -60
  78. package/src/booking-wizard/features/summary/summary-per-pax-option-group.tsx +56 -56
  79. package/src/booking-wizard/features/summary/summary-per-unit-option-group.tsx +58 -58
  80. package/src/booking-wizard/features/summary/summary-slice.ts +27 -27
  81. package/src/booking-wizard/features/travelers-form/travelers-form-slice.ts +157 -157
  82. package/src/booking-wizard/features/travelers-form/travelers-form-util.ts +10 -10
  83. package/src/booking-wizard/features/travelers-form/type-ahead-input.tsx +85 -85
  84. package/src/booking-wizard/features/travelers-form/validate-form.ts +178 -178
  85. package/src/booking-wizard/index.tsx +27 -27
  86. package/src/booking-wizard/store.ts +26 -26
  87. package/src/booking-wizard/types.ts +1 -0
  88. package/src/booking-wizard/use-offer-printer.ts +108 -108
  89. package/src/content/components/LanguageSwitcher.tsx +158 -158
  90. package/src/content/components/accordion.tsx +30 -30
  91. package/src/content/components/contact.tsx +211 -211
  92. package/src/content/components/personal-contact-form.tsx +809 -809
  93. package/src/content/header/index.tsx +43 -43
  94. package/src/content/header/types.ts +26 -26
  95. package/src/qsm/components/date-picker/index.tsx +152 -152
  96. package/src/qsm/components/date-range-picker/calendar-day.tsx +49 -49
  97. package/src/qsm/components/date-range-picker/calendar.tsx +211 -211
  98. package/src/qsm/components/date-range-picker/index.tsx +404 -404
  99. package/src/qsm/index.tsx +26 -26
  100. package/src/qsm/store/qsm-store.ts +13 -13
  101. package/src/search-results/components/flight/flight-card.tsx +38 -38
  102. package/src/search-results/components/flight/flight-leg.tsx +61 -61
  103. package/src/search-results/components/flight/flight-path.tsx +23 -23
  104. package/src/search-results/components/multi-range-filter.tsx +104 -104
  105. package/src/search-results/components/search-results-container/search-results-container.tsx +2 -2
  106. package/src/search-results/index.tsx +24 -24
  107. package/src/search-results/search-results-configuration-context.ts +6 -6
  108. package/src/search-results/store/search-results-store.ts +13 -13
  109. package/src/shared/components/loader.tsx +16 -16
  110. package/src/shared/translations/ar-SA.json +2 -1
  111. package/src/shared/translations/da-DK.json +2 -1
  112. package/src/shared/translations/de-DE.json +2 -1
  113. package/src/shared/translations/en-GB.json +2 -1
  114. package/src/shared/translations/es-ES.json +2 -1
  115. package/src/shared/translations/fr-BE.json +2 -1
  116. package/src/shared/translations/fr-FR.json +2 -1
  117. package/src/shared/translations/is-IS.json +2 -1
  118. package/src/shared/translations/it-IT.json +2 -1
  119. package/src/shared/translations/ja-JP.json +2 -1
  120. package/src/shared/translations/nl-BE.json +2 -1
  121. package/src/shared/translations/nl-NL.json +2 -1
  122. package/src/shared/translations/no-NO.json +2 -1
  123. package/src/shared/translations/pl-PL.json +2 -1
  124. package/src/shared/translations/pt-PT.json +2 -1
  125. package/src/shared/translations/sv-SE.json +2 -1
  126. package/src/shared/utils/class-util.ts +7 -7
  127. package/src/shared/utils/query-string-util.ts +91 -91
  128. package/src/shared/utils/tide-api-utils.ts +34 -34
  129. package/src/shared/utils/use-media-query-util.ts +19 -19
  130. package/styles/abstracts/_mixins.scss +74 -74
  131. package/styles/abstracts/_variables.scss +57 -57
  132. package/styles/base/_fonts.scss +2 -2
  133. package/styles/base/_normalize.scss +227 -227
  134. package/styles/base/_typography.scss +35 -35
  135. package/styles/booking-joker-variables.scss +596 -596
  136. package/styles/booking-product-variables.scss +330 -330
  137. package/styles/booking-product.scss +438 -438
  138. package/styles/booking-qsm-variables.scss +501 -501
  139. package/styles/booking-qsm.scss +52 -52
  140. package/styles/booking-wizard-variables.scss +603 -603
  141. package/styles/booking-wizard.scss +61 -61
  142. package/styles/components/_accordion.scss +67 -67
  143. package/styles/components/_animations.scss +39 -39
  144. package/styles/components/_base.scss +107 -107
  145. package/styles/components/_breadcrumb.scss +92 -92
  146. package/styles/components/_button.scss +238 -238
  147. package/styles/components/_checkbox.scss +230 -230
  148. package/styles/components/_contact.scss +239 -239
  149. package/styles/components/_cta.scss +238 -238
  150. package/styles/components/_date-list.scss +41 -41
  151. package/styles/components/_date-range-picker.scss +223 -223
  152. package/styles/components/_decrement-increment.scss +35 -35
  153. package/styles/components/_dropdown.scss +72 -72
  154. package/styles/components/_faq.scss +27 -27
  155. package/styles/components/_flight-option.scss +1419 -1419
  156. package/styles/components/_gallery.scss +314 -314
  157. package/styles/components/_header.scss +113 -113
  158. package/styles/components/_img-slider.scss +175 -175
  159. package/styles/components/_info-message.scss +75 -75
  160. package/styles/components/_input.scss +35 -35
  161. package/styles/components/_list.scss +185 -185
  162. package/styles/components/_loader.scss +70 -70
  163. package/styles/components/_mixins.scss +579 -579
  164. package/styles/components/_passenger-picker.scss +306 -306
  165. package/styles/components/_phone-input.scss +8 -8
  166. package/styles/components/_placeholders.scss +165 -165
  167. package/styles/components/_qsm.scss +17 -17
  168. package/styles/components/_radiobutton.scss +170 -170
  169. package/styles/components/_select-wrapper.scss +76 -76
  170. package/styles/components/_slider.scss +128 -128
  171. package/styles/components/_spinner.scss +29 -29
  172. package/styles/components/_step-indicators.scss +161 -161
  173. package/styles/components/_table.scss +81 -81
  174. package/styles/components/_typeahead.scss +275 -275
  175. package/styles/components/_variables.scss +89 -89
  176. package/styles/content-blocks-variables.scss +507 -507
  177. package/styles/font.scss +2 -2
  178. package/styles/qsm/_calendar.scss +274 -274
  179. package/styles/qsm/_qsm.scss +1094 -1094
  180. package/styles/search.scss +1200 -1200
  181. package/tsconfig.json +24 -24
@@ -1,54 +1,54 @@
1
- import React, { useContext } from 'react';
2
- import Loader from '../../shared/components/loader';
3
- import { getTranslations } from '../../shared/utils/localization-util';
4
- import SettingsContext from '../settings-context';
5
- import { buildClassName } from '../../shared/utils/class-util';
6
-
7
- interface FooterProps {
8
- priceText: string | undefined;
9
- isLoading: boolean;
10
- isOffer: boolean | undefined;
11
- roomsIsDisabled: boolean;
12
- handleBookClick: () => void;
13
- }
14
-
15
- const Footer: React.FC<FooterProps> = ({ priceText, isLoading, isOffer, roomsIsDisabled, handleBookClick }) => {
16
- const { language, alternativeActionText, alternativeAction } = useContext(SettingsContext);
17
- const translations = getTranslations(language);
18
-
19
- return (
20
- <div className="booking-product__footer">
21
- {isLoading ? (
22
- <Loader loaderText={translations.PRODUCT.LOADING_PRICE} />
23
- ) : (
24
- <>
25
- {priceText && (
26
- <div className="booking-product__footer-total">
27
- <div className="booking-product__footer-label">{translations.SHARED.TOTAL_PRICE}</div>
28
- <div className="booking-product__footer-price">{priceText}</div>
29
- </div>
30
- )}
31
- <div className="booking-product__footer-actions">
32
- {priceText ? (
33
- <button
34
- type="button"
35
- className={buildClassName(['cta', !roomsIsDisabled && 'cta--disabled'])}
36
- onClick={handleBookClick}
37
- disabled={!roomsIsDisabled}>
38
- {isOffer ? translations.PRODUCT.TO_YOUR_OFFER : translations.PRODUCT.BOOK_NOW}
39
- </button>
40
- ) : alternativeActionText && alternativeAction ? (
41
- <a href="#offer-form" className="cta" onClick={alternativeAction}>
42
- {alternativeActionText}
43
- </a>
44
- ) : (
45
- <>{translations.PRODUCT.NOT_AVAILABLE}</>
46
- )}
47
- </div>
48
- </>
49
- )}
50
- </div>
51
- );
52
- };
53
-
54
- export default Footer;
1
+ import React, { useContext } from 'react';
2
+ import Loader from '../../shared/components/loader';
3
+ import { getTranslations } from '../../shared/utils/localization-util';
4
+ import SettingsContext from '../settings-context';
5
+ import { buildClassName } from '../../shared/utils/class-util';
6
+
7
+ interface FooterProps {
8
+ priceText: string | undefined;
9
+ isLoading: boolean;
10
+ isOffer: boolean | undefined;
11
+ roomsIsDisabled: boolean;
12
+ handleBookClick: () => void;
13
+ }
14
+
15
+ const Footer: React.FC<FooterProps> = ({ priceText, isLoading, isOffer, roomsIsDisabled, handleBookClick }) => {
16
+ const { language, alternativeActionText, alternativeAction } = useContext(SettingsContext);
17
+ const translations = getTranslations(language);
18
+
19
+ return (
20
+ <div className="booking-product__footer">
21
+ {isLoading ? (
22
+ <Loader loaderText={translations.PRODUCT.LOADING_PRICE} />
23
+ ) : (
24
+ <>
25
+ {priceText && (
26
+ <div className="booking-product__footer-total">
27
+ <div className="booking-product__footer-label">{translations.SHARED.TOTAL_PRICE}</div>
28
+ <div className="booking-product__footer-price">{priceText}</div>
29
+ </div>
30
+ )}
31
+ <div className="booking-product__footer-actions">
32
+ {priceText ? (
33
+ <button
34
+ type="button"
35
+ className={buildClassName(['cta', !roomsIsDisabled && 'cta--disabled'])}
36
+ onClick={handleBookClick}
37
+ disabled={!roomsIsDisabled}>
38
+ {isOffer ? translations.PRODUCT.TO_YOUR_OFFER : translations.PRODUCT.BOOK_NOW}
39
+ </button>
40
+ ) : alternativeActionText && alternativeAction ? (
41
+ <a href="#offer-form" className="cta" onClick={alternativeAction}>
42
+ {alternativeActionText}
43
+ </a>
44
+ ) : (
45
+ <>{translations.PRODUCT.NOT_AVAILABLE}</>
46
+ )}
47
+ </div>
48
+ </>
49
+ )}
50
+ </div>
51
+ );
52
+ };
53
+
54
+ export default Footer;
@@ -1,57 +1,57 @@
1
- import React, { useContext } from 'react';
2
- import Loader from '../../shared/components/loader';
3
- import Rating from './rating';
4
- import { getTranslations } from '../../shared/utils/localization-util';
5
- import SettingsContext from '../settings-context';
6
- import Icon from './icon';
7
-
8
- interface HeaderProps {
9
- name: string;
10
- rating: number | undefined;
11
- priceText: string | undefined;
12
- hasFlight: boolean;
13
- hasTransfer: boolean;
14
- isLoading: boolean;
15
- }
16
-
17
- const Header: React.FC<HeaderProps> = ({ name, rating, priceText, isLoading, hasFlight, hasTransfer }) => {
18
- const { language } = useContext(SettingsContext);
19
- const translations = getTranslations(language);
20
-
21
- return (
22
- <div className="booking-product__header">
23
- <div className="booking-product__hotel">
24
- {rating && <Rating rating={rating} />}
25
- <div className="booking-product__title">{name}</div>
26
- </div>
27
- <div className="booking-product__price">
28
- {isLoading ? (
29
- <Loader loaderText={translations.PRODUCT.LOADING_PRICE} />
30
- ) : (
31
- <>
32
- <div className="pricing__header pricing__price">{priceText}</div>
33
- <div className="package-icons">
34
- {priceText && (
35
- <div className="package-icons__icon">
36
- <Icon name="ui-bed" title={translations.PRODUCT.STAY_INCLUDED} width={25} height={25} />
37
- </div>
38
- )}
39
- {hasFlight && (
40
- <div className="package-icons__icon">
41
- <Icon name="ui-flight" title={translations.PRODUCT.FLIGHT_INCLUDED} width={25} height={25} />
42
- </div>
43
- )}
44
- {hasTransfer && (
45
- <div className="package-icons__icon">
46
- <Icon name="ui-transfer" title={translations.PRODUCT.TRANSFER_INCLUDED} width={25} height={25} />
47
- </div>
48
- )}
49
- </div>
50
- </>
51
- )}
52
- </div>
53
- </div>
54
- );
55
- };
56
-
57
- export default Header;
1
+ import React, { useContext } from 'react';
2
+ import Loader from '../../shared/components/loader';
3
+ import Rating from './rating';
4
+ import { getTranslations } from '../../shared/utils/localization-util';
5
+ import SettingsContext from '../settings-context';
6
+ import Icon from './icon';
7
+
8
+ interface HeaderProps {
9
+ name: string;
10
+ rating: number | undefined;
11
+ priceText: string | undefined;
12
+ hasFlight: boolean;
13
+ hasTransfer: boolean;
14
+ isLoading: boolean;
15
+ }
16
+
17
+ const Header: React.FC<HeaderProps> = ({ name, rating, priceText, isLoading, hasFlight, hasTransfer }) => {
18
+ const { language } = useContext(SettingsContext);
19
+ const translations = getTranslations(language);
20
+
21
+ return (
22
+ <div className="booking-product__header">
23
+ <div className="booking-product__hotel">
24
+ {rating && <Rating rating={rating} />}
25
+ <div className="booking-product__title">{name}</div>
26
+ </div>
27
+ <div className="booking-product__price">
28
+ {isLoading ? (
29
+ <Loader loaderText={translations.PRODUCT.LOADING_PRICE} />
30
+ ) : (
31
+ <>
32
+ <div className="pricing__header pricing__price">{priceText}</div>
33
+ <div className="package-icons">
34
+ {priceText && (
35
+ <div className="package-icons__icon">
36
+ <Icon name="ui-bed" title={translations.PRODUCT.STAY_INCLUDED} width={25} height={25} />
37
+ </div>
38
+ )}
39
+ {hasFlight && (
40
+ <div className="package-icons__icon">
41
+ <Icon name="ui-flight" title={translations.PRODUCT.FLIGHT_INCLUDED} width={25} height={25} />
42
+ </div>
43
+ )}
44
+ {hasTransfer && (
45
+ <div className="package-icons__icon">
46
+ <Icon name="ui-transfer" title={translations.PRODUCT.TRANSFER_INCLUDED} width={25} height={25} />
47
+ </div>
48
+ )}
49
+ </div>
50
+ </>
51
+ )}
52
+ </div>
53
+ </div>
54
+ );
55
+ };
56
+
57
+ export default Header;
@@ -1,200 +1,200 @@
1
- import { isEmpty } from 'lodash';
2
- import React, { useContext } from 'react';
3
- import SettingsContext from '../settings-context';
4
- import HTMLComment from 'react-html-comment';
5
-
6
- interface IconProps {
7
- name: string;
8
- className?: string;
9
- title?: string;
10
- width?: number;
11
- height?: number;
12
- }
13
-
14
- const Icon: React.FC<IconProps> = ({ name, className, title, width, height }) => {
15
- const { icons } = useContext(SettingsContext);
16
-
17
- if (icons) {
18
- return (
19
- <svg className={['icon', `icon--${name}`, className].filter((className) => !isEmpty(className)).join(' ')} width={width} height={height}>
20
- {title && <title>{title}</title>}
21
- <use href={`${icons}#${name}`}></use>
22
- </svg>
23
- );
24
- }
25
-
26
- switch (name) {
27
- case 'ui-close':
28
- return (
29
- <svg
30
- className={['icon', `icon--${name}`, className].filter((className) => !isEmpty(className)).join(' ')}
31
- width={width}
32
- height={height}
33
- viewBox="0 0 384 512">
34
- <HTMLComment text="!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc." />
35
- {title && <title>{title}</title>}
36
- <path d="M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z" />
37
- </svg>
38
- );
39
-
40
- case 'ui-plus':
41
- return (
42
- <svg
43
- className={['icon', `icon--${name}`, className].filter((className) => !isEmpty(className)).join(' ')}
44
- width={width}
45
- height={height}
46
- viewBox="0 0 448 512">
47
- <HTMLComment text="!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc." />
48
- {title && <title>{title}</title>}
49
- <path d="M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 144L48 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0 0 144c0 17.7 14.3 32 32 32s32-14.3 32-32l0-144 144 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-144 0 0-144z" />
50
- </svg>
51
- );
52
-
53
- case 'ui-min':
54
- return (
55
- <svg
56
- className={['icon', `icon--${name}`, className].filter((className) => !isEmpty(className)).join(' ')}
57
- width={width}
58
- height={height}
59
- viewBox="0 0 448 512">
60
- <HTMLComment text="!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc." />
61
- {title && <title>{title}</title>}
62
- <path d="M432 256c0 17.7-14.3 32-32 32L48 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l352 0c17.7 0 32 14.3 32 32z" />
63
- </svg>
64
- );
65
-
66
- case 'ui-chevron':
67
- return (
68
- <svg
69
- className={['icon', `icon--${name}`, className].filter((className) => !isEmpty(className)).join(' ')}
70
- width={width}
71
- height={height}
72
- viewBox="0 0 320 512">
73
- <HTMLComment text="!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc." />
74
- {title && <title>{title}</title>}
75
- <path d="M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z" />
76
- </svg>
77
- );
78
-
79
- case 'ui-calendar':
80
- return (
81
- <svg
82
- className={['icon', `icon--${name}`, className].filter((className) => !isEmpty(className)).join(' ')}
83
- width={width}
84
- height={height}
85
- viewBox="0 0 448 512">
86
- <HTMLComment text="!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc." />
87
- {title && <title>{title}</title>}
88
- <path d="M96 32l0 32L48 64C21.5 64 0 85.5 0 112l0 48 448 0 0-48c0-26.5-21.5-48-48-48l-48 0 0-32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 32L160 64l0-32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192L0 192 0 464c0 26.5 21.5 48 48 48l352 0c26.5 0 48-21.5 48-48l0-272z" />
89
- </svg>
90
- );
91
-
92
- case 'ui-bed':
93
- return (
94
- <svg
95
- className={['icon', `icon--${name}`, className].filter((className) => !isEmpty(className)).join(' ')}
96
- width={width}
97
- height={height}
98
- viewBox="0 0 640 512">
99
- <HTMLComment text="!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc." />
100
- {title && <title>{title}</title>}
101
- <path d="M32 32c17.7 0 32 14.3 32 32l0 256 224 0 0-160c0-17.7 14.3-32 32-32l224 0c53 0 96 43 96 96l0 224c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-32-224 0-32 0L64 416l0 32c0 17.7-14.3 32-32 32s-32-14.3-32-32L0 64C0 46.3 14.3 32 32 32zm144 96a80 80 0 1 1 0 160 80 80 0 1 1 0-160z" />
102
- </svg>
103
- );
104
-
105
- case 'ui-flight':
106
- return (
107
- <svg
108
- className={['icon', `icon--${name}`, className].filter((className) => !isEmpty(className)).join(' ')}
109
- width={width}
110
- height={height}
111
- viewBox="0 0 576 512">
112
- <HTMLComment text="!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc." />
113
- {title && <title>{title}</title>}
114
- <path d="M482.3 192c34.2 0 93.7 29 93.7 64c0 36-59.5 64-93.7 64l-116.6 0L265.2 495.9c-5.7 10-16.3 16.1-27.8 16.1l-56.2 0c-10.6 0-18.3-10.2-15.4-20.4l49-171.6L112 320 68.8 377.6c-3 4-7.8 6.4-12.8 6.4l-42 0c-7.8 0-14-6.3-14-14c0-1.3 .2-2.6 .5-3.9L32 256 .5 145.9c-.4-1.3-.5-2.6-.5-3.9c0-7.8 6.3-14 14-14l42 0c5 0 9.8 2.4 12.8 6.4L112 192l102.9 0-49-171.6C162.9 10.2 170.6 0 181.2 0l56.2 0c11.5 0 22.1 6.2 27.8 16.1L365.7 192l116.6 0z" />
115
- </svg>
116
- );
117
-
118
- case 'ui-transfer':
119
- return (
120
- <svg
121
- className={['icon', `icon--${name}`, className].filter((className) => !isEmpty(className)).join(' ')}
122
- width={width}
123
- height={height}
124
- viewBox="0 0 512 512">
125
- <HTMLComment text="!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc." />
126
- {title && <title>{title}</title>}
127
- <path d="M192 0c-17.7 0-32 14.3-32 32l0 32 0 .2c-38.6 2.2-72.3 27.3-85.2 64.1L39.6 228.8C16.4 238.4 0 261.3 0 288L0 432l0 48c0 17.7 14.3 32 32 32l32 0c17.7 0 32-14.3 32-32l0-48 320 0 0 48c0 17.7 14.3 32 32 32l32 0c17.7 0 32-14.3 32-32l0-48 0-144c0-26.7-16.4-49.6-39.6-59.2L437.2 128.3c-12.9-36.8-46.6-62-85.2-64.1l0-.2 0-32c0-17.7-14.3-32-32-32L192 0zM165.4 128l181.2 0c13.6 0 25.7 8.6 30.2 21.4L402.9 224l-293.8 0 26.1-74.6c4.5-12.8 16.6-21.4 30.2-21.4zM96 288a32 32 0 1 1 0 64 32 32 0 1 1 0-64zm288 32a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z" />
128
- </svg>
129
- );
130
-
131
- case 'ui-star':
132
- return (
133
- <svg
134
- className={['icon', `icon--${name}`, className].filter((className) => !isEmpty(className)).join(' ')}
135
- width={width}
136
- height={height}
137
- viewBox="0 0 576 512">
138
- <HTMLComment text="!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc." />
139
- {title && <title>{title}</title>}
140
- <path d="M316.9 18C311.6 7 300.4 0 288.1 0s-23.4 7-28.8 18L195 150.3 51.4 171.5c-12 1.8-22 10.2-25.7 21.7s-.7 24.2 7.9 32.7L137.8 329 113.2 474.7c-2 12 3 24.2 12.9 31.3s23 8 33.8 2.3l128.3-68.5 128.3 68.5c10.8 5.7 23.9 4.9 33.8-2.3s14.9-19.3 12.9-31.3L438.5 329 542.7 225.9c8.6-8.5 11.7-21.2 7.9-32.7s-13.7-19.9-25.7-21.7L381.2 150.3 316.9 18z" />
141
- </svg>
142
- );
143
-
144
- case 'ui-halfstar':
145
- return (
146
- <svg
147
- className={['icon', `icon--${name}`, className].filter((className) => !isEmpty(className)).join(' ')}
148
- width={width}
149
- height={height}
150
- viewBox="0 0 576 512">
151
- <HTMLComment text="!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc." />
152
- {title && <title>{title}</title>}
153
- <path d="M288 0c-12.2 .1-23.3 7-28.6 18L195 150.3 51.4 171.5c-12 1.8-22 10.2-25.7 21.7s-.7 24.2 7.9 32.7L137.8 329 113.2 474.7c-2 12 3 24.2 12.9 31.3s23 8 33.8 2.3L288 439.8 288 0zM429.9 512c1.1 .1 2.1 .1 3.2 0l-3.2 0z" />
154
- </svg>
155
- );
156
-
157
- case 'ui-user':
158
- return (
159
- <svg
160
- className={['icon', `icon--${name}`, className].filter((className) => !isEmpty(className)).join(' ')}
161
- width={width}
162
- height={height}
163
- viewBox="0 0 448 512">
164
- <HTMLComment text="!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc." />
165
- {title && <title>{title}</title>}
166
- <path d="M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512l388.6 0c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304l-91.4 0z" />
167
- </svg>
168
- );
169
-
170
- case 'ui-pencil':
171
- return (
172
- <svg
173
- className={['icon', `icon--${name}`, className].filter((className) => !isEmpty(className)).join(' ')}
174
- width={width}
175
- height={height}
176
- viewBox="0 0 512 512">
177
- <HTMLComment text="!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc." />
178
- {title && <title>{title}</title>}
179
- <path d="M410.3 231l11.3-11.3-33.9-33.9-62.1-62.1L291.7 89.8l-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L387.7 253.7 410.3 231zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9L59.4 452l23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1 0 32c0 8.8 7.2 16 16 16l32 0zM362.7 18.7L348.3 33.2 325.7 55.8 314.3 67.1l33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5L453.3 18.7c-25-25-65.5-25-90.5 0zm-47.4 168l-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z" />
180
- </svg>
181
- );
182
-
183
- case 'ui-check':
184
- return (
185
- <svg
186
- className={['icon', `icon--${name}`, className].filter((className) => !isEmpty(className)).join(' ')}
187
- width={width}
188
- height={height}
189
- viewBox="0 0 448 512">
190
- <HTMLComment text="!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc." />
191
- {title && <title>{title}</title>}
192
- <path d="M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z" />
193
- </svg>
194
- );
195
- default:
196
- return null;
197
- }
198
- };
199
-
200
- export default Icon;
1
+ import { isEmpty } from 'lodash';
2
+ import React, { useContext } from 'react';
3
+ import SettingsContext from '../settings-context';
4
+ import HTMLComment from 'react-html-comment';
5
+
6
+ interface IconProps {
7
+ name: string;
8
+ className?: string;
9
+ title?: string;
10
+ width?: number;
11
+ height?: number;
12
+ }
13
+
14
+ const Icon: React.FC<IconProps> = ({ name, className, title, width, height }) => {
15
+ const { icons } = useContext(SettingsContext);
16
+
17
+ if (icons) {
18
+ return (
19
+ <svg className={['icon', `icon--${name}`, className].filter((className) => !isEmpty(className)).join(' ')} width={width} height={height}>
20
+ {title && <title>{title}</title>}
21
+ <use href={`${icons}#${name}`}></use>
22
+ </svg>
23
+ );
24
+ }
25
+
26
+ switch (name) {
27
+ case 'ui-close':
28
+ return (
29
+ <svg
30
+ className={['icon', `icon--${name}`, className].filter((className) => !isEmpty(className)).join(' ')}
31
+ width={width}
32
+ height={height}
33
+ viewBox="0 0 384 512">
34
+ <HTMLComment text="!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc." />
35
+ {title && <title>{title}</title>}
36
+ <path d="M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z" />
37
+ </svg>
38
+ );
39
+
40
+ case 'ui-plus':
41
+ return (
42
+ <svg
43
+ className={['icon', `icon--${name}`, className].filter((className) => !isEmpty(className)).join(' ')}
44
+ width={width}
45
+ height={height}
46
+ viewBox="0 0 448 512">
47
+ <HTMLComment text="!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc." />
48
+ {title && <title>{title}</title>}
49
+ <path d="M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 144L48 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0 0 144c0 17.7 14.3 32 32 32s32-14.3 32-32l0-144 144 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-144 0 0-144z" />
50
+ </svg>
51
+ );
52
+
53
+ case 'ui-min':
54
+ return (
55
+ <svg
56
+ className={['icon', `icon--${name}`, className].filter((className) => !isEmpty(className)).join(' ')}
57
+ width={width}
58
+ height={height}
59
+ viewBox="0 0 448 512">
60
+ <HTMLComment text="!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc." />
61
+ {title && <title>{title}</title>}
62
+ <path d="M432 256c0 17.7-14.3 32-32 32L48 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l352 0c17.7 0 32 14.3 32 32z" />
63
+ </svg>
64
+ );
65
+
66
+ case 'ui-chevron':
67
+ return (
68
+ <svg
69
+ className={['icon', `icon--${name}`, className].filter((className) => !isEmpty(className)).join(' ')}
70
+ width={width}
71
+ height={height}
72
+ viewBox="0 0 320 512">
73
+ <HTMLComment text="!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc." />
74
+ {title && <title>{title}</title>}
75
+ <path d="M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z" />
76
+ </svg>
77
+ );
78
+
79
+ case 'ui-calendar':
80
+ return (
81
+ <svg
82
+ className={['icon', `icon--${name}`, className].filter((className) => !isEmpty(className)).join(' ')}
83
+ width={width}
84
+ height={height}
85
+ viewBox="0 0 448 512">
86
+ <HTMLComment text="!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc." />
87
+ {title && <title>{title}</title>}
88
+ <path d="M96 32l0 32L48 64C21.5 64 0 85.5 0 112l0 48 448 0 0-48c0-26.5-21.5-48-48-48l-48 0 0-32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 32L160 64l0-32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192L0 192 0 464c0 26.5 21.5 48 48 48l352 0c26.5 0 48-21.5 48-48l0-272z" />
89
+ </svg>
90
+ );
91
+
92
+ case 'ui-bed':
93
+ return (
94
+ <svg
95
+ className={['icon', `icon--${name}`, className].filter((className) => !isEmpty(className)).join(' ')}
96
+ width={width}
97
+ height={height}
98
+ viewBox="0 0 640 512">
99
+ <HTMLComment text="!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc." />
100
+ {title && <title>{title}</title>}
101
+ <path d="M32 32c17.7 0 32 14.3 32 32l0 256 224 0 0-160c0-17.7 14.3-32 32-32l224 0c53 0 96 43 96 96l0 224c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-32-224 0-32 0L64 416l0 32c0 17.7-14.3 32-32 32s-32-14.3-32-32L0 64C0 46.3 14.3 32 32 32zm144 96a80 80 0 1 1 0 160 80 80 0 1 1 0-160z" />
102
+ </svg>
103
+ );
104
+
105
+ case 'ui-flight':
106
+ return (
107
+ <svg
108
+ className={['icon', `icon--${name}`, className].filter((className) => !isEmpty(className)).join(' ')}
109
+ width={width}
110
+ height={height}
111
+ viewBox="0 0 576 512">
112
+ <HTMLComment text="!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc." />
113
+ {title && <title>{title}</title>}
114
+ <path d="M482.3 192c34.2 0 93.7 29 93.7 64c0 36-59.5 64-93.7 64l-116.6 0L265.2 495.9c-5.7 10-16.3 16.1-27.8 16.1l-56.2 0c-10.6 0-18.3-10.2-15.4-20.4l49-171.6L112 320 68.8 377.6c-3 4-7.8 6.4-12.8 6.4l-42 0c-7.8 0-14-6.3-14-14c0-1.3 .2-2.6 .5-3.9L32 256 .5 145.9c-.4-1.3-.5-2.6-.5-3.9c0-7.8 6.3-14 14-14l42 0c5 0 9.8 2.4 12.8 6.4L112 192l102.9 0-49-171.6C162.9 10.2 170.6 0 181.2 0l56.2 0c11.5 0 22.1 6.2 27.8 16.1L365.7 192l116.6 0z" />
115
+ </svg>
116
+ );
117
+
118
+ case 'ui-transfer':
119
+ return (
120
+ <svg
121
+ className={['icon', `icon--${name}`, className].filter((className) => !isEmpty(className)).join(' ')}
122
+ width={width}
123
+ height={height}
124
+ viewBox="0 0 512 512">
125
+ <HTMLComment text="!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc." />
126
+ {title && <title>{title}</title>}
127
+ <path d="M192 0c-17.7 0-32 14.3-32 32l0 32 0 .2c-38.6 2.2-72.3 27.3-85.2 64.1L39.6 228.8C16.4 238.4 0 261.3 0 288L0 432l0 48c0 17.7 14.3 32 32 32l32 0c17.7 0 32-14.3 32-32l0-48 320 0 0 48c0 17.7 14.3 32 32 32l32 0c17.7 0 32-14.3 32-32l0-48 0-144c0-26.7-16.4-49.6-39.6-59.2L437.2 128.3c-12.9-36.8-46.6-62-85.2-64.1l0-.2 0-32c0-17.7-14.3-32-32-32L192 0zM165.4 128l181.2 0c13.6 0 25.7 8.6 30.2 21.4L402.9 224l-293.8 0 26.1-74.6c4.5-12.8 16.6-21.4 30.2-21.4zM96 288a32 32 0 1 1 0 64 32 32 0 1 1 0-64zm288 32a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z" />
128
+ </svg>
129
+ );
130
+
131
+ case 'ui-star':
132
+ return (
133
+ <svg
134
+ className={['icon', `icon--${name}`, className].filter((className) => !isEmpty(className)).join(' ')}
135
+ width={width}
136
+ height={height}
137
+ viewBox="0 0 576 512">
138
+ <HTMLComment text="!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc." />
139
+ {title && <title>{title}</title>}
140
+ <path d="M316.9 18C311.6 7 300.4 0 288.1 0s-23.4 7-28.8 18L195 150.3 51.4 171.5c-12 1.8-22 10.2-25.7 21.7s-.7 24.2 7.9 32.7L137.8 329 113.2 474.7c-2 12 3 24.2 12.9 31.3s23 8 33.8 2.3l128.3-68.5 128.3 68.5c10.8 5.7 23.9 4.9 33.8-2.3s14.9-19.3 12.9-31.3L438.5 329 542.7 225.9c8.6-8.5 11.7-21.2 7.9-32.7s-13.7-19.9-25.7-21.7L381.2 150.3 316.9 18z" />
141
+ </svg>
142
+ );
143
+
144
+ case 'ui-halfstar':
145
+ return (
146
+ <svg
147
+ className={['icon', `icon--${name}`, className].filter((className) => !isEmpty(className)).join(' ')}
148
+ width={width}
149
+ height={height}
150
+ viewBox="0 0 576 512">
151
+ <HTMLComment text="!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc." />
152
+ {title && <title>{title}</title>}
153
+ <path d="M288 0c-12.2 .1-23.3 7-28.6 18L195 150.3 51.4 171.5c-12 1.8-22 10.2-25.7 21.7s-.7 24.2 7.9 32.7L137.8 329 113.2 474.7c-2 12 3 24.2 12.9 31.3s23 8 33.8 2.3L288 439.8 288 0zM429.9 512c1.1 .1 2.1 .1 3.2 0l-3.2 0z" />
154
+ </svg>
155
+ );
156
+
157
+ case 'ui-user':
158
+ return (
159
+ <svg
160
+ className={['icon', `icon--${name}`, className].filter((className) => !isEmpty(className)).join(' ')}
161
+ width={width}
162
+ height={height}
163
+ viewBox="0 0 448 512">
164
+ <HTMLComment text="!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc." />
165
+ {title && <title>{title}</title>}
166
+ <path d="M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512l388.6 0c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304l-91.4 0z" />
167
+ </svg>
168
+ );
169
+
170
+ case 'ui-pencil':
171
+ return (
172
+ <svg
173
+ className={['icon', `icon--${name}`, className].filter((className) => !isEmpty(className)).join(' ')}
174
+ width={width}
175
+ height={height}
176
+ viewBox="0 0 512 512">
177
+ <HTMLComment text="!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc." />
178
+ {title && <title>{title}</title>}
179
+ <path d="M410.3 231l11.3-11.3-33.9-33.9-62.1-62.1L291.7 89.8l-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L387.7 253.7 410.3 231zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9L59.4 452l23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1 0 32c0 8.8 7.2 16 16 16l32 0zM362.7 18.7L348.3 33.2 325.7 55.8 314.3 67.1l33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5L453.3 18.7c-25-25-65.5-25-90.5 0zm-47.4 168l-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z" />
180
+ </svg>
181
+ );
182
+
183
+ case 'ui-check':
184
+ return (
185
+ <svg
186
+ className={['icon', `icon--${name}`, className].filter((className) => !isEmpty(className)).join(' ')}
187
+ width={width}
188
+ height={height}
189
+ viewBox="0 0 448 512">
190
+ <HTMLComment text="!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc." />
191
+ {title && <title>{title}</title>}
192
+ <path d="M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z" />
193
+ </svg>
194
+ );
195
+ default:
196
+ return null;
197
+ }
198
+ };
199
+
200
+ export default Icon;