@luscii-healthtech/web-ui 2.9.0 → 2.10.2

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 (287) hide show
  1. package/dist/components/Avatar/Avatar.d.ts +11 -11
  2. package/dist/components/CenteredHero/CenteredHero.d.ts +1 -1
  3. package/dist/components/Container/types/FlexContainerProps.type.d.ts +3 -2
  4. package/dist/components/Datepicker/Datepicker.d.ts +12 -11
  5. package/dist/components/Dropdown/Dropdown.d.ts +17 -7
  6. package/dist/components/ErrorBlock/ErrorBlock.d.ts +3 -3
  7. package/dist/components/Form/form.transformer.d.ts +3 -20
  8. package/dist/components/Form/form.types.d.ts +5 -5
  9. package/dist/components/InfoBlock/InfoBlock.d.ts +4 -4
  10. package/dist/components/Input/SearchInput.d.ts +1 -1
  11. package/dist/components/Line/Line.d.ts +4 -4
  12. package/dist/components/Menu/Menu.d.ts +6 -0
  13. package/dist/components/MultiSelect/MultiSelect.d.ts +7 -7
  14. package/dist/components/Page/CRUDPage.d.ts +13 -13
  15. package/dist/components/Page/Page.d.ts +13 -13
  16. package/dist/components/PaginationMenu/PaginationMenu.utils.d.ts +1 -1
  17. package/dist/components/Radio/Radio.d.ts +5 -1
  18. package/dist/components/RadioGroup/RadioGroup.d.ts +9 -10
  19. package/dist/components/Select/LegacySelect.d.ts +8 -9
  20. package/dist/components/Select/SelectV2.d.ts +1 -1
  21. package/dist/components/Switcher/Switcher.d.ts +6 -6
  22. package/dist/components/Switcher/SwitcherItem.d.ts +7 -7
  23. package/dist/components/Text/LegacyText.d.ts +18 -18
  24. package/dist/components/TextEditor/TextEditor.d.ts +4 -4
  25. package/dist/components/Textarea/Textarea.d.ts +16 -16
  26. package/dist/components/Title/LegacyTitle.d.ts +10 -10
  27. package/dist/web-ui-tailwind.css +8 -0
  28. package/dist/web-ui.cjs.development.js +81 -74
  29. package/dist/web-ui.cjs.development.js.map +1 -1
  30. package/dist/web-ui.cjs.production.min.js +1 -1
  31. package/dist/web-ui.cjs.production.min.js.map +1 -1
  32. package/dist/web-ui.esm.js +81 -74
  33. package/dist/web-ui.esm.js.map +1 -1
  34. package/package.json +7 -3
  35. package/src/assets/add.svg +0 -5
  36. package/src/assets/add_hover.svg +0 -4
  37. package/src/assets/arrow-down-icon.svg +0 -3
  38. package/src/assets/big-menu-icon-hover.svg +0 -6
  39. package/src/assets/big-menu-icon.svg +0 -6
  40. package/src/assets/check-cross-icon.svg +0 -7
  41. package/src/assets/check-icon-primary.svg +0 -5
  42. package/src/assets/check-icon.svg +0 -3
  43. package/src/assets/chevron-double.svg +0 -3
  44. package/src/assets/close.svg +0 -3
  45. package/src/assets/color-variant-cross.svg +0 -3
  46. package/src/assets/cross-dark.svg +0 -3
  47. package/src/assets/delete.svg +0 -4
  48. package/src/assets/delete_hover.svg +0 -4
  49. package/src/assets/edit.svg +0 -6
  50. package/src/assets/edit_hover.svg +0 -6
  51. package/src/assets/error-icon.svg +0 -7
  52. package/src/assets/grid-view-icon-active.svg +0 -6
  53. package/src/assets/grid-view-icon.svg +0 -6
  54. package/src/assets/groups.svg +0 -3
  55. package/src/assets/hamburger.svg +0 -5
  56. package/src/assets/happy-star.svg +0 -9
  57. package/src/assets/hcps.svg +0 -3
  58. package/src/assets/indeterminate-icon.svg +0 -3
  59. package/src/assets/info-icon.svg +0 -6
  60. package/src/assets/left-arrow-blue.svg +0 -3
  61. package/src/assets/left-arrow-grey.svg +0 -3
  62. package/src/assets/list-view-icon-active.svg +0 -3
  63. package/src/assets/list-view-icon.svg +0 -3
  64. package/src/assets/loading.svg +0 -16
  65. package/src/assets/modal-close-icon-active.svg +0 -9
  66. package/src/assets/modal-close-icon.svg +0 -9
  67. package/src/assets/no-open-alerts.svg +0 -19
  68. package/src/assets/patients.svg +0 -3
  69. package/src/assets/phone-mockup.svg +0 -9
  70. package/src/assets/programs.svg +0 -3
  71. package/src/assets/right-arrow-blue.svg +0 -3
  72. package/src/assets/right-arrow-grey.svg +0 -3
  73. package/src/assets/search-cancel.svg +0 -3
  74. package/src/assets/search-not-found.svg +0 -70
  75. package/src/assets/search.svg +0 -3
  76. package/src/assets/spinner-gray.svg +0 -6
  77. package/src/assets/spinner.svg +0 -5
  78. package/src/assets/starIcon.svg +0 -3
  79. package/src/assets/success-icon.svg +0 -6
  80. package/src/components/Accordion/Accordion.tsx +0 -33
  81. package/src/components/Accordion/AccordionItem.tsx +0 -50
  82. package/src/components/Avatar/Avatar.js +0 -81
  83. package/src/components/Avatar/Avatar.scss +0 -153
  84. package/src/components/Badge/Badge.tsx +0 -23
  85. package/src/components/Breadcrumbs/Breadcrumbs.tsx +0 -46
  86. package/src/components/Button/Button.examples.md +0 -46
  87. package/src/components/Button/Button.tsx +0 -200
  88. package/src/components/Button/Button.types.ts +0 -41
  89. package/src/components/Button/ButtonIcon.tsx +0 -42
  90. package/src/components/ButtonV2/ButtonProps.type.ts +0 -44
  91. package/src/components/ButtonV2/ButtonV2.tsx +0 -97
  92. package/src/components/ButtonV2/PrimaryButton.tsx +0 -25
  93. package/src/components/ButtonV2/SecondaryButton.tsx +0 -26
  94. package/src/components/ButtonV2/TertiaryButton.tsx +0 -26
  95. package/src/components/Carousel/Carousel.tsx +0 -52
  96. package/src/components/Carousel/GliderContainer.scss +0 -13
  97. package/src/components/Carousel/GliderContainer.tsx +0 -22
  98. package/src/components/CenteredHero/CenteredHero.tsx +0 -63
  99. package/src/components/CheckBoxListModal/CheckboxListModal.tsx +0 -180
  100. package/src/components/Checkbox/Checkbox.scss +0 -125
  101. package/src/components/Checkbox/Checkbox.tsx +0 -147
  102. package/src/components/CheckboxList/CheckboxGroup.tsx +0 -120
  103. package/src/components/CheckboxList/CheckboxList.tsx +0 -46
  104. package/src/components/CheckboxList/CheckboxList.types.ts +0 -47
  105. package/src/components/CheckboxList/CheckboxListItem.tsx +0 -54
  106. package/src/components/ConfirmationDialog/ConfirmationDialog.scss +0 -15
  107. package/src/components/ConfirmationDialog/ConfirmationDialog.tsx +0 -84
  108. package/src/components/Container/FlexColumn.tsx +0 -18
  109. package/src/components/Container/FlexContainer.tsx +0 -46
  110. package/src/components/Container/FlexRow.tsx +0 -18
  111. package/src/components/Container/types/FlexContainerProps.type.ts +0 -18
  112. package/src/components/Datepicker/Datepicker.js +0 -96
  113. package/src/components/Datepicker/Datepicker.scss +0 -332
  114. package/src/components/Dropdown/Dropdown.js +0 -416
  115. package/src/components/Dropdown/Dropdown.scss +0 -83
  116. package/src/components/EmptyListMessage/EmptyListMessage.tsx +0 -34
  117. package/src/components/ErrorBlock/ErrorBlock.js +0 -24
  118. package/src/components/ErrorBlock/ErrorBlock.scss +0 -20
  119. package/src/components/Form/Form.tsx +0 -138
  120. package/src/components/Form/FormFieldDecorator.tsx +0 -66
  121. package/src/components/Form/FormInput.tsx +0 -47
  122. package/src/components/Form/FormRadioGroup.tsx +0 -23
  123. package/src/components/Form/FormSelect.tsx +0 -32
  124. package/src/components/Form/form.transformer.ts +0 -9
  125. package/src/components/Form/form.types.ts +0 -139
  126. package/src/components/Icons/AddIcon.tsx +0 -29
  127. package/src/components/Icons/AlertsIcon.tsx +0 -39
  128. package/src/components/Icons/BellIcon.tsx +0 -39
  129. package/src/components/Icons/ChartIcon.tsx +0 -22
  130. package/src/components/Icons/ChatBoxIcon.tsx +0 -23
  131. package/src/components/Icons/CheckIcon.tsx +0 -26
  132. package/src/components/Icons/ChevronDoubleIcon.tsx +0 -25
  133. package/src/components/Icons/ChevronDownIcon.tsx +0 -20
  134. package/src/components/Icons/ChevronRightIcon.tsx +0 -20
  135. package/src/components/Icons/CrossIcon.tsx +0 -24
  136. package/src/components/Icons/DeleteIcon.tsx +0 -23
  137. package/src/components/Icons/DownArrowIcon.tsx +0 -23
  138. package/src/components/Icons/DragIcon.tsx +0 -25
  139. package/src/components/Icons/DynamicIcon.tsx +0 -25
  140. package/src/components/Icons/EditIcon.tsx +0 -23
  141. package/src/components/Icons/EmptyIcon.tsx +0 -29
  142. package/src/components/Icons/EmptyStateDashboardIcon.tsx +0 -130
  143. package/src/components/Icons/ExclamationMarkIcon.tsx +0 -23
  144. package/src/components/Icons/EyeIcon.tsx +0 -23
  145. package/src/components/Icons/GearIcon.tsx +0 -23
  146. package/src/components/Icons/GroupIcon.tsx +0 -23
  147. package/src/components/Icons/HamburgerIcon.tsx +0 -31
  148. package/src/components/Icons/HeartIcon.tsx +0 -23
  149. package/src/components/Icons/ImageIcon.tsx +0 -23
  150. package/src/components/Icons/LeftArrowIcon.tsx +0 -23
  151. package/src/components/Icons/LightBulbIcon.tsx +0 -31
  152. package/src/components/Icons/LockIcon.tsx +0 -23
  153. package/src/components/Icons/MessagesIcon.tsx +0 -23
  154. package/src/components/Icons/NotesIcon.tsx +0 -23
  155. package/src/components/Icons/PinIcon.tsx +0 -23
  156. package/src/components/Icons/PrintIcon.tsx +0 -22
  157. package/src/components/Icons/RightArrowIcon.tsx +0 -23
  158. package/src/components/Icons/SearchCancelIcon.tsx +0 -23
  159. package/src/components/Icons/SearchIcon.tsx +0 -23
  160. package/src/components/Icons/SmallCircleIcon.tsx +0 -21
  161. package/src/components/Icons/SmallDiamondIcon.tsx +0 -31
  162. package/src/components/Icons/SmallSquareIcon.tsx +0 -21
  163. package/src/components/Icons/SpaceRocketIcon.tsx +0 -23
  164. package/src/components/Icons/StarIcon.tsx +0 -23
  165. package/src/components/Icons/WarningIcon.tsx +0 -24
  166. package/src/components/Icons/types/IconProps.type.ts +0 -5
  167. package/src/components/InfoBlock/InfoBlock.js +0 -24
  168. package/src/components/InfoBlock/InfoBlock.scss +0 -20
  169. package/src/components/InfoField/InfoField.tsx +0 -94
  170. package/src/components/Input/Input.css +0 -3
  171. package/src/components/Input/Input.tsx +0 -211
  172. package/src/components/Input/SearchInput.tsx +0 -24
  173. package/src/components/Line/Line.js +0 -38
  174. package/src/components/List/List.scss +0 -23
  175. package/src/components/List/List.tsx +0 -138
  176. package/src/components/List/List.types.ts +0 -41
  177. package/src/components/List/ListItem.tsx +0 -89
  178. package/src/components/List/ListItemSkeleton.tsx +0 -26
  179. package/src/components/List/ListSkeleton.scss +0 -5
  180. package/src/components/List/ListSkeleton.tsx +0 -30
  181. package/src/components/LoadingIndicator/LoadingIndicator.scss +0 -50
  182. package/src/components/LoadingIndicator/LoadingIndicator.tsx +0 -46
  183. package/src/components/Menu/Menu.js +0 -74
  184. package/src/components/Menu/Menu.scss +0 -27
  185. package/src/components/Modal/Modal.scss +0 -117
  186. package/src/components/Modal/Modal.tsx +0 -104
  187. package/src/components/Modal/ModalWithButtons.tsx +0 -34
  188. package/src/components/MultiSelect/MultiSelect.js +0 -117
  189. package/src/components/MultiSelect/MultiSelect.scss +0 -29
  190. package/src/components/MultiSelect/MultiSelectUtils.js +0 -23
  191. package/src/components/NavMenu/NavLayout.tsx +0 -40
  192. package/src/components/NavMenu/NavMenu.tsx +0 -39
  193. package/src/components/NavMenu/NavMenu.utils.ts +0 -6
  194. package/src/components/NavMenu/NavMenuContent.tsx +0 -23
  195. package/src/components/NavMenu/NavMenuItem.tsx +0 -102
  196. package/src/components/NotificationBanner/NotificationBanner.tsx +0 -104
  197. package/src/components/Page/CRUDPage.js +0 -123
  198. package/src/components/Page/CRUDPage.scss +0 -32
  199. package/src/components/Page/Page.js +0 -102
  200. package/src/components/Page/Page.scss +0 -59
  201. package/src/components/PageHeader/PageHeader.tsx +0 -51
  202. package/src/components/PaginationMenu/PaginationMenu.tsx +0 -47
  203. package/src/components/PaginationMenu/PaginationMenu.types.ts +0 -46
  204. package/src/components/PaginationMenu/PaginationMenu.utils.ts +0 -49
  205. package/src/components/PaginationMenu/PaginationMenuLarge.tsx +0 -96
  206. package/src/components/PaginationMenu/PaginationMenuSmall.tsx +0 -43
  207. package/src/components/PreviewPhone/PreviewPhone.tsx +0 -52
  208. package/src/components/PreviewPhone/useWindowDimensions.js +0 -26
  209. package/src/components/Radio/Radio.js +0 -102
  210. package/src/components/Radio/Radio.scss +0 -58
  211. package/src/components/Radio/RadioV2.css +0 -15
  212. package/src/components/Radio/RadioV2.tsx +0 -87
  213. package/src/components/RadioGroup/RadioGroup.js +0 -66
  214. package/src/components/RadioGroup/RadioGroup.scss +0 -37
  215. package/src/components/RadioGroup/RadioGroupV2.tsx +0 -35
  216. package/src/components/Section/Section.scss +0 -74
  217. package/src/components/Section/Section.tsx +0 -68
  218. package/src/components/Section/SectionItem.scss +0 -20
  219. package/src/components/Section/SectionItem.tsx +0 -26
  220. package/src/components/Section/SectionItemWithContent.tsx +0 -30
  221. package/src/components/Select/LegacySelect.js +0 -114
  222. package/src/components/Select/Select.scss +0 -29
  223. package/src/components/Select/Select.tsx +0 -151
  224. package/src/components/Select/SelectV2.tsx +0 -171
  225. package/src/components/Select/options.transformer.ts +0 -36
  226. package/src/components/Select/select.utils.spec.ts +0 -63
  227. package/src/components/Select/select.utils.ts +0 -45
  228. package/src/components/SettingsMenuButton/SettingsMenuButton.tsx +0 -111
  229. package/src/components/Spinner/Spinner.tsx +0 -23
  230. package/src/components/Steps/Step.tsx +0 -31
  231. package/src/components/Steps/Steps.tsx +0 -24
  232. package/src/components/Switcher/Switcher.js +0 -58
  233. package/src/components/Switcher/SwitcherItem.js +0 -61
  234. package/src/components/Switcher/SwitcherItem.scss +0 -67
  235. package/src/components/TabLinks/TabLinks.tsx +0 -63
  236. package/src/components/Tabbar/Tabbar.tsx +0 -60
  237. package/src/components/Tabbar/TabbarItem.tsx +0 -66
  238. package/src/components/Table/Table.tsx +0 -91
  239. package/src/components/Table/Table.types.ts +0 -28
  240. package/src/components/Table/Table.utils.ts +0 -23
  241. package/src/components/Table/TableBody.tsx +0 -57
  242. package/src/components/Table/TableBodyRow.tsx +0 -47
  243. package/src/components/Table/TableBodyRowDataCell.tsx +0 -76
  244. package/src/components/Table/TableFooter.tsx +0 -21
  245. package/src/components/Table/TableHeader.tsx +0 -28
  246. package/src/components/Tag/Tag.tsx +0 -58
  247. package/src/components/Tag/Tag.utils.ts +0 -4
  248. package/src/components/Tag/TagGroup.tsx +0 -29
  249. package/src/components/Text/LegacyText.js +0 -78
  250. package/src/components/Text/Text.scss +0 -67
  251. package/src/components/Text/Text.tsx +0 -131
  252. package/src/components/TextEditor/TextEditor.js +0 -61
  253. package/src/components/TextEditor/TextEditor.scss +0 -14
  254. package/src/components/TextEditorV2/TextEditorV2.js +0 -52
  255. package/src/components/TextEditorV2/TextEditorV2.scss +0 -110
  256. package/src/components/TextLink/TextLink.tsx +0 -42
  257. package/src/components/Textarea/Textarea.js +0 -108
  258. package/src/components/Textarea/Textarea.scss +0 -56
  259. package/src/components/Timeline/Timeline.tsx +0 -28
  260. package/src/components/Timeline/TimelineStep.tsx +0 -36
  261. package/src/components/Title/LegacyTitle.js +0 -64
  262. package/src/components/Title/Title.scss +0 -6
  263. package/src/components/Title/Title.tsx +0 -62
  264. package/src/components/Toaster/Toaster.scss +0 -57
  265. package/src/components/Toaster/Toaster.tsx +0 -100
  266. package/src/components/Toaster/toast-elements-getter.ts +0 -72
  267. package/src/components/Toaster/toast-progress-animator.ts +0 -53
  268. package/src/components/Toaster/toast.ts +0 -112
  269. package/src/components/ViewItem/ViewItem.tsx +0 -85
  270. package/src/custom.d.ts +0 -4
  271. package/src/index.tsx +0 -170
  272. package/src/styles/_colors.scss +0 -59
  273. package/src/styles/_layout.scss +0 -64
  274. package/src/styles/_shadows.scss +0 -19
  275. package/src/styles/_skeleton.scss +0 -63
  276. package/src/styles/_typography.scss +0 -8
  277. package/src/styles/_utils.scss +0 -45
  278. package/src/styles/fonts/avenir/3A0AF8_0_0.eot +0 -0
  279. package/src/styles/fonts/avenir/3A0AF8_0_0.ttf +0 -0
  280. package/src/styles/fonts/avenir/3A0AF8_0_0.woff +0 -0
  281. package/src/styles/fonts/avenir/3A0AF8_0_0.woff2 +0 -0
  282. package/src/styles/fonts/avenir/3A0AF8_1_0.eot +0 -0
  283. package/src/styles/fonts/avenir/3A0AF8_1_0.ttf +0 -0
  284. package/src/styles/fonts/avenir/3A0AF8_1_0.woff +0 -0
  285. package/src/styles/fonts/avenir/3A0AF8_1_0.woff2 +0 -0
  286. package/src/types/general.types.ts +0 -11
  287. package/src/utils/useOutsideClick.js +0 -19
@@ -1,21 +0,0 @@
1
- import React from "react";
2
-
3
- import { IconProps } from "./types/IconProps.type";
4
-
5
- export const SmallCircleIcon = (props: IconProps): JSX.Element => {
6
- return (
7
- <svg
8
- className={props.className}
9
- onClick={props.onClick}
10
- role={props.onClick ? "button" : undefined}
11
- width="24"
12
- height="24"
13
- viewBox="0 0 24 24"
14
- fill="none"
15
- xmlns="http://www.w3.org/2000/svg"
16
- >
17
- <circle cx="12" cy="12" r="6" fill="currentColor" />
18
- <circle cx="14.5" cy="9.5" r="1.5" fill="white" fillOpacity="0.1" />
19
- </svg>
20
- );
21
- };
@@ -1,31 +0,0 @@
1
- import React from "react";
2
-
3
- import { IconProps } from "./types/IconProps.type";
4
-
5
- export const SmallDiamondIcon = (props: IconProps): JSX.Element => {
6
- return (
7
- <svg
8
- className={props.className}
9
- onClick={props.onClick}
10
- role={props.onClick ? "button" : undefined}
11
- width="24"
12
- height="24"
13
- viewBox="0 0 24 24"
14
- fill="none"
15
- xmlns="http://www.w3.org/2000/svg"
16
- >
17
- <path
18
- d="M4.92984 13.4142C4.14879 12.6332 4.14879 11.3668 4.92984 10.5858L10.5867 4.92893C11.3677 4.14788 12.6341 4.14788 13.4151 4.92893L19.072 10.5858C19.853 11.3668 19.853 12.6332 19.072 13.4142L13.4151 19.0711C12.6341 19.8521 11.3677 19.8521 10.5867 19.0711L4.92984 13.4142Z"
19
- fill="currentColor"
20
- />
21
- <circle
22
- cx="12.0002"
23
- cy="7.05078"
24
- r="1.5"
25
- transform="rotate(-45 12.0002 7.05078)"
26
- fill="white"
27
- fillOpacity="0.1"
28
- />
29
- </svg>
30
- );
31
- };
@@ -1,21 +0,0 @@
1
- import React from "react";
2
-
3
- import { IconProps } from "./types/IconProps.type";
4
-
5
- export const SmallSquareIcon = (props: IconProps): JSX.Element => {
6
- return (
7
- <svg
8
- className={props.className}
9
- onClick={props.onClick}
10
- role={props.onClick ? "button" : undefined}
11
- width="24"
12
- height="24"
13
- viewBox="0 0 24 24"
14
- fill="none"
15
- xmlns="http://www.w3.org/2000/svg"
16
- >
17
- <rect x="6" y="6" width="12" height="12" rx="2" fill="currentColor" />
18
- <circle cx="15.5" cy="8.5" r="1.5" fill="white" fillOpacity="0.1" />
19
- </svg>
20
- );
21
- };
@@ -1,23 +0,0 @@
1
- import React from "react";
2
-
3
- import { IconProps } from "./types/IconProps.type";
4
-
5
- export const SpaceRocketIcon = (props: IconProps): JSX.Element => {
6
- return (
7
- <svg
8
- className={props.className}
9
- onClick={props.onClick}
10
- role={props.onClick ? "button" : undefined}
11
- width="24"
12
- height="24"
13
- viewBox="0 0 24 24"
14
- fill="none"
15
- xmlns="http://www.w3.org/2000/svg"
16
- >
17
- <path
18
- d="M9.18977 6.34976C7.14977 8.63976 5.74977 11.9298 5.61977 12.2398L3.35977 11.2698C2.70977 10.9898 2.54977 10.1398 3.04977 9.63976L6.05977 6.62976C6.52977 6.15976 7.20977 5.94976 7.86977 6.07976L9.18977 6.34976ZM10.6798 16.5098C10.9798 16.8098 11.4198 16.8898 11.7998 16.7098C12.9598 16.1698 15.4498 14.8998 17.0598 13.2898C21.6498 8.69976 21.6898 4.95976 21.4198 3.35976C21.3498 2.95976 21.0298 2.63976 20.6298 2.56976C19.0298 2.29976 15.2898 2.33976 10.6998 6.92976C9.08977 8.53976 7.82977 11.0298 7.27977 12.1898C7.09977 12.5698 7.18977 13.0198 7.47977 13.3098L10.6798 16.5098ZM17.6498 14.8098C15.3598 16.8498 12.0698 18.2498 11.7598 18.3798L12.7298 20.6398C13.0098 21.2898 13.8598 21.4498 14.3598 20.9498L17.3698 17.9398C17.8398 17.4698 18.0498 16.7898 17.9198 16.1298L17.6498 14.8098ZM8.93977 17.4098C9.13977 18.4698 8.78977 19.4498 8.11977 20.1198C7.34977 20.8898 4.95977 21.4598 3.40977 21.7598C2.71977 21.8898 2.10977 21.2798 2.23977 20.5898C2.53977 19.0398 3.09977 16.6498 3.87977 15.8798C4.54977 15.2098 5.52977 14.8598 6.58977 15.0598C7.75977 15.2798 8.71977 16.2398 8.93977 17.4098ZM12.9998 8.99976C12.9998 7.89976 13.8998 6.99976 14.9998 6.99976C16.0998 6.99976 16.9998 7.89976 16.9998 8.99976C16.9998 10.0998 16.0998 10.9998 14.9998 10.9998C13.8998 10.9998 12.9998 10.0998 12.9998 8.99976Z"
19
- fill="currentColor"
20
- />
21
- </svg>
22
- );
23
- };
@@ -1,23 +0,0 @@
1
- import React from "react";
2
-
3
- import { IconProps } from "./types/IconProps.type";
4
-
5
- export const StarIcon = (props: IconProps): JSX.Element => {
6
- return (
7
- <svg
8
- className={props.className}
9
- onClick={props.onClick}
10
- role={props.onClick ? "button" : undefined}
11
- width="19"
12
- height="18"
13
- viewBox="0 0 19 18"
14
- fill="none"
15
- xmlns="http://www.w3.org/2000/svg"
16
- >
17
- <path
18
- d="M8.58663 1.04906C8.93899 0.258571 10.061 0.258571 10.4134 1.04906L12.1659 4.9807C12.3112 5.30673 12.6193 5.53057 12.9743 5.56804L17.2551 6.01985C18.1158 6.11069 18.4625 7.17779 17.8196 7.75718L14.6219 10.6389C14.3568 10.8778 14.2391 11.24 14.3131 11.5892L15.2063 15.8001C15.3858 16.6467 14.4781 17.3062 13.7284 16.8738L9.99962 14.7232C9.69041 14.5448 9.30959 14.5448 9.00038 14.7232L5.27159 16.8738C4.52189 17.3062 3.61416 16.6467 3.79373 15.8001L4.68686 11.5892C4.76093 11.24 4.64325 10.8778 4.37808 10.6389L1.18043 7.75718C0.537518 7.17779 0.88424 6.11069 1.74492 6.01985L6.0257 5.56804C6.38068 5.53057 6.68877 5.30673 6.8341 4.9807L8.58663 1.04906Z"
19
- fill="currentColor"
20
- />
21
- </svg>
22
- );
23
- };
@@ -1,24 +0,0 @@
1
- import React from "react";
2
-
3
- import { IconProps } from "./types/IconProps.type";
4
-
5
- export const WarningIcon: React.VoidFunctionComponent<IconProps> = (props) => {
6
- return (
7
- <svg
8
- className={props.className}
9
- onClick={props.onClick}
10
- role={props.onClick ? "button" : undefined}
11
- data-test-id={props["data-test-id"]}
12
- width="20"
13
- height="20"
14
- viewBox="0 0 20 20"
15
- fill="none"
16
- xmlns="http://www.w3.org/2000/svg"
17
- >
18
- <path
19
- d="M10 0C4.48 0 0 4.48 0 10C0 15.52 4.48 20 10 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 10 0ZM10 11C9.45 11 9 10.55 9 10V6C9 5.45 9.45 5 10 5C10.55 5 11 5.45 11 6V10C11 10.55 10.55 11 10 11ZM11 15H9V13H11V15Z"
20
- fill="currentColor"
21
- />
22
- </svg>
23
- );
24
- };
@@ -1,5 +0,0 @@
1
- export interface IconProps {
2
- className?: string;
3
- onClick?: (event: React.MouseEvent<SVGSVGElement> | undefined) => void;
4
- "data-test-id"?: string;
5
- }
@@ -1,24 +0,0 @@
1
- import React from "react";
2
- import PropTypes from "prop-types";
3
- import classNames from "classnames";
4
-
5
- import "./InfoBlock.scss";
6
- import { Text } from "../Text/Text";
7
-
8
- InfoBlock.propTypes = {
9
- message: PropTypes.string.isRequired,
10
- containsDangerousHtml: PropTypes.bool,
11
- className: PropTypes.string,
12
- };
13
-
14
- function InfoBlock({ message, className, containsDangerousHtml = false }) {
15
- const containerClassName = classNames("cweb-info-block", className);
16
-
17
- return (
18
- <div className={containerClassName}>
19
- <Text text={message} containsDangerousHtml={containsDangerousHtml} />
20
- </div>
21
- );
22
- }
23
-
24
- export default InfoBlock;
@@ -1,20 +0,0 @@
1
- @import '../../styles/colors';
2
-
3
- .cweb-info-block {
4
- position: relative;
5
- padding: 16px 16px 16px 56px;
6
- background-color: $color-emphasis-background;
7
- border-radius: 8px;
8
-
9
- &:before {
10
- content: "";
11
- position: absolute;
12
- left: 16px;
13
- top: 14px;
14
- z-index: 1;
15
- width: 24px;
16
- height: 23px;
17
- background: url("../../assets/info-icon.svg") no-repeat center;
18
- background-size: contain;
19
- }
20
- }
@@ -1,94 +0,0 @@
1
- import React from "react";
2
- import classNames from "classnames";
3
- import ClipboardJS from "clipboard";
4
-
5
- import { Text } from "../Text/Text";
6
-
7
- type InfoFieldLinkType = "none" | "link" | "clipboard" | "tel";
8
-
9
- interface InfoFieldProps {
10
- label: string;
11
- value: string;
12
- linkType: InfoFieldLinkType;
13
- supportsMultiline?: boolean;
14
- onCopyToClipboard?: () => void;
15
- icon?: JSX.Element;
16
- className?: string;
17
- }
18
-
19
- export const InfoField = (props: InfoFieldProps): JSX.Element => {
20
- const clipboard = new ClipboardJS("button");
21
-
22
- clipboard.on("success", function(e) {
23
- props.onCopyToClipboard && props.onCopyToClipboard();
24
- e.clearSelection();
25
- });
26
-
27
- let ContainerElement: React.ElementType;
28
- let containerProps: any;
29
-
30
- switch (props.linkType) {
31
- case "link":
32
- ContainerElement = "a";
33
- containerProps = {
34
- href: props.value,
35
- target: "_blank",
36
- rel: "noopener noreferrer",
37
- };
38
- break;
39
- case "tel":
40
- ContainerElement = "a";
41
- containerProps = { href: `tel:${props.value}` };
42
- break;
43
-
44
- case "clipboard":
45
- ContainerElement = "button";
46
- containerProps = {
47
- type: "button",
48
- "data-clipboard-text": props.value,
49
- };
50
- break;
51
-
52
- case "none":
53
- default:
54
- ContainerElement = "div";
55
- break;
56
- }
57
-
58
- return (
59
- <div
60
- className={classNames(
61
- "flex flex-row align-center items-center",
62
- props.className
63
- )}
64
- >
65
- {props.icon}
66
- <ContainerElement
67
- className={"flex flex-col overflow-hidden ml-3 first:ml-0"}
68
- {...containerProps}
69
- >
70
- <Text
71
- text={props.label}
72
- type={"sm"}
73
- color={"slate-500"}
74
- className={classNames(
75
- { "break-words": props.supportsMultiline },
76
- { "whitespace-no-wrap": !props.supportsMultiline }
77
- )}
78
- />
79
- <Text
80
- className={classNames(
81
- { "break-words": props.supportsMultiline },
82
- { "whitespace-no-wrap": !props.supportsMultiline }
83
- )}
84
- text={props.value}
85
- truncate={!props.supportsMultiline}
86
- />
87
- </ContainerElement>
88
- </div>
89
- );
90
- };
91
-
92
- InfoField.defaultProps = {
93
- linkType: "none",
94
- };
@@ -1,3 +0,0 @@
1
- .input::-ms-clear {
2
- display: none;
3
- }
@@ -1,211 +0,0 @@
1
- import React, { useEffect, useState } from "react";
2
- import classNames from "classnames";
3
-
4
- import { CrossIcon } from "../Icons/CrossIcon";
5
- import { AllowedTextInputTypes } from "../Form/form.types";
6
- import { IconProps } from "../Icons/types/IconProps.type";
7
-
8
- import "./Input.css";
9
-
10
- // FIXME: something in the tsdx.js build doesn't allow me to use `Uppercase<AllowedInputTypes>`
11
- // Don't know why yet but it can be fixed later.
12
- export const INPUT_TYPES: Record<string, AllowedTextInputTypes> = {
13
- EMAIL: "email",
14
- NUMBER: "number",
15
- PASSWORD: "password",
16
- TEXT: "text",
17
- };
18
-
19
- /**
20
- * It's very complicated to tap into the onChange events of inputs,
21
- * so I omit the type it requires and add a easier one to deal with.
22
- */
23
- type CustomHTMLInputProps = Omit<
24
- React.HTMLProps<HTMLInputElement>,
25
- "onChange"
26
- > & { isError?: boolean };
27
-
28
- type FakeEventTarget = {
29
- target: {
30
- value: string;
31
- name: string;
32
- };
33
- currentTarget: {
34
- value: string;
35
- name: string;
36
- };
37
- };
38
-
39
- export interface InputProps extends CustomHTMLInputProps {
40
- type?: AllowedTextInputTypes;
41
- clearable?: boolean;
42
- isDisabled?: boolean;
43
- withPrefix?: string;
44
- withSuffix?: string;
45
- icon?: React.VoidFunctionComponent<IconProps>;
46
- onChange?: (event: FakeEventTarget) => void;
47
- }
48
-
49
- const Input = React.forwardRef<HTMLInputElement, InputProps>(
50
- (
51
- {
52
- withSuffix = "",
53
- withPrefix = "",
54
- className,
55
- clearable = false,
56
- type = "text",
57
- isDisabled = false,
58
- icon,
59
- name,
60
- value = "",
61
- onChange,
62
- isError,
63
- ...otherProps
64
- },
65
- ref
66
- ) => {
67
- const hasNoExtraContent = withPrefix === "" && withSuffix === "";
68
- const [innerValue, setInnerValue] = useState(value);
69
-
70
- useEffect(() => {
71
- setInnerValue(value);
72
- }, [value]);
73
-
74
- const clearField = () => {
75
- setInnerValue("");
76
-
77
- // This allows backwards compatibility with our usages of the input
78
- onChange?.({
79
- target: {
80
- name: name || "",
81
- value: "",
82
- },
83
- currentTarget: {
84
- name: name || "",
85
- value: "",
86
- },
87
- });
88
- };
89
-
90
- const handleChangeEvent = (event: React.ChangeEvent<HTMLInputElement>) => {
91
- setInnerValue(event.currentTarget.value);
92
-
93
- // This allows backwards compatibility with our usages of the input
94
- onChange?.({
95
- target: {
96
- name: name || "",
97
- value: event.currentTarget.value,
98
- },
99
- currentTarget: {
100
- name: name || "",
101
- value: event.currentTarget.value,
102
- },
103
- });
104
- };
105
-
106
- const isClearIconVisible = clearable && value;
107
-
108
- return (
109
- <div
110
- data-test-id="input-component-container"
111
- className="relative inline-block"
112
- >
113
- <div className="flex flex-row">
114
- <span
115
- className={classNames(
116
- "h-11 border-t border-b border-solid border-input-border",
117
- {
118
- hidden: hasNoExtraContent,
119
- "order-1": withPrefix !== "",
120
- "order-2": withSuffix !== "",
121
- "rounded-l border-l": withPrefix !== "",
122
- "rounded-r border-r": withSuffix !== "",
123
- },
124
-
125
- "flex flex-col items-center p-3",
126
- "text-sm",
127
- "text-slate-500",
128
- "bg-main-background"
129
- )}
130
- >
131
- {withSuffix || withPrefix}
132
- </span>
133
- {icon && (
134
- <div
135
- className="absolute top-1/2 left-4"
136
- style={{
137
- transform: "translateY(-50%)",
138
- }}
139
- >
140
- {React.createElement(icon, {
141
- className: "w-6 h-6 text-slate-300 ",
142
- })}
143
- </div>
144
- )}
145
- <input
146
- {...otherProps}
147
- data-test-id="input-component"
148
- name={name}
149
- value={innerValue}
150
- onChange={handleChangeEvent}
151
- ref={ref}
152
- size={otherProps.maxLength}
153
- type={type}
154
- disabled={isDisabled}
155
- className={classNames(
156
- "input",
157
- "block",
158
- { "pl-12": icon, "pr-11": clearable },
159
- {
160
- "text-slate-400 bg-slate-50": isDisabled,
161
- "text-slate-700": !isDisabled,
162
- "border-input-border": !isDisabled && !isError,
163
- "hover:border-input-border-dark": !isDisabled,
164
- "border-red-700": isError,
165
- "focus:outline-negative": isError,
166
- "focus:border-blue-800": !isError,
167
- "focus:outline-primary": !isError,
168
- "bg-white": !isDisabled,
169
- },
170
- "h-11",
171
- "p-2",
172
- "border",
173
- "text-sm",
174
- "placeholder-slate-500",
175
- "border-solid",
176
-
177
- "transition-colors",
178
- "duration-300",
179
- {
180
- "z-10": withSuffix !== "" || withPrefix !== "", // to make sure the outline is displayed completely
181
- rounded: hasNoExtraContent,
182
- "rounded-l": withSuffix !== "",
183
- "rounded-r": withPrefix !== "",
184
- "order-2": withPrefix !== "",
185
- "order-1": withSuffix !== "",
186
- },
187
- "shadow-default",
188
- className
189
- )}
190
- />
191
- <div
192
- className="absolute right-0 top-1/2"
193
- style={{
194
- transform: "translateY(-50%)",
195
- }}
196
- >
197
- <CrossIcon
198
- className={classNames(
199
- "w-6 h-6 mr-3 cursor-pointer text-slate-300",
200
- { block: isClearIconVisible, hidden: !isClearIconVisible }
201
- )}
202
- onClick={clearField}
203
- />
204
- </div>
205
- </div>
206
- </div>
207
- );
208
- }
209
- );
210
-
211
- export default Input;
@@ -1,24 +0,0 @@
1
- import React from "react";
2
-
3
- import { SearchIcon } from "../Icons/SearchIcon";
4
-
5
- import Input, { InputProps } from "./Input";
6
-
7
- export type SearchInputProps = Omit<
8
- InputProps,
9
- "icon" | "withSuffix" | "withPrefix" | "type" | "clearable"
10
- >;
11
-
12
- export const SearchInput = React.forwardRef<HTMLInputElement, SearchInputProps>(
13
- (props, ref) => {
14
- return (
15
- <Input
16
- {...props}
17
- icon={SearchIcon}
18
- type="text"
19
- clearable={true}
20
- ref={ref}
21
- />
22
- );
23
- }
24
- );
@@ -1,38 +0,0 @@
1
- import React from "react";
2
- import PropTypes from "prop-types";
3
- import classNames from "classnames";
4
-
5
- const Line = ({ left, right, className }) => (
6
- <div className={classNames(className, "cweb-line", "flex flex-row flex-no-wrap")}>
7
- <div className={"flex"}>
8
- {left?.map(
9
- (item) =>
10
- item && (
11
- <div key={item.key ?? item.props.id} className={"mr-3 flex items-center"}>
12
- {item}
13
- </div>
14
- )
15
- )}
16
- </div>
17
- <div className={"flex-grow"} />
18
- <div className={"flex"}>
19
- {right?.map((item) => {
20
- return (
21
- item && (
22
- <div key={item.key ?? item.props.id} className={"ml-3 first:ml-0"}>
23
- {item}
24
- </div>
25
- )
26
- );
27
- })}
28
- </div>
29
- </div>
30
- );
31
-
32
- Line.propTypes = {
33
- left: PropTypes.array,
34
- right: PropTypes.array,
35
- className: PropTypes.string,
36
- };
37
-
38
- export default Line;
@@ -1,23 +0,0 @@
1
- li {
2
- &.gu-mirror {
3
- @apply shadow-xl m-0 fixed z-9999;
4
- }
5
-
6
- &.gu-hide {
7
- @apply hidden;
8
- }
9
-
10
- &.gu-unselectable {
11
- @apply select-none;
12
- }
13
-
14
- &.gu-transit {
15
- @apply bg-blue-50;
16
- @apply outline-dropTarget;
17
- filter: none;
18
- @apply opacity-100 rounded-none border-none; // TODO we only need these to override them in cVitals-Web
19
- }
20
- &.gu-transit > * {
21
- @apply invisible;
22
- }
23
- }