@eyesee/ui-components 0.1.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 (278) hide show
  1. package/README.md +37 -0
  2. package/dist/components/Avatar/Avatar.js +61 -0
  3. package/dist/components/Avatar/Avatar.module.scss.js +27 -0
  4. package/dist/components/Badge/Badge.js +18 -0
  5. package/dist/components/Badge/Badge.module.scss.js +7 -0
  6. package/dist/components/Badge/badgeVariants.js +29 -0
  7. package/dist/components/Button/Button.js +96 -0
  8. package/dist/components/Button/Button.module.scss.js +51 -0
  9. package/dist/components/Checkbox/Checkbox.js +51 -0
  10. package/dist/components/Checkbox/Checkbox.module.scss.js +17 -0
  11. package/dist/components/DropdownList/DropdownList.js +37 -0
  12. package/dist/components/DropdownList/DropdownList.module.scss.js +11 -0
  13. package/dist/components/EllipsisTooltip/EllipsisTooltip.js +40 -0
  14. package/dist/components/EllipsisTooltip/EllipsisTooltip.module.scss.js +9 -0
  15. package/dist/components/ExpandableItem/ExpandableItem.js +25 -0
  16. package/dist/components/ExpandableItem/ExpandableItem.module.scss.js +11 -0
  17. package/dist/components/Fields/InputField/InputField.js +84 -0
  18. package/dist/components/Fields/InputField/InputField.module.scss.js +23 -0
  19. package/dist/components/Fields/InputFieldContainer.js +115 -0
  20. package/dist/components/Fields/InputFieldContainer.module.scss.js +19 -0
  21. package/dist/components/Fields/SelectField/SelectField.js +220 -0
  22. package/dist/components/Fields/SelectField/SelectField.module.scss.js +11 -0
  23. package/dist/components/Fields/SelectField/SelectFieldTags.js +111 -0
  24. package/dist/components/Fields/SelectField/SelectFieldTags.module.scss.js +13 -0
  25. package/dist/components/Fields/SelectField/selectOptionRow.js +92 -0
  26. package/dist/components/Fields/SelectField/selectUtils.js +77 -0
  27. package/dist/components/Fields/TextField/TextField.js +66 -0
  28. package/dist/components/Fields/TextField/TextField.module.scss.js +13 -0
  29. package/dist/components/FileType/FileType.js +30 -0
  30. package/dist/components/FileType/FileType.module.scss.js +15 -0
  31. package/dist/components/FileType/PaperIcon.js +22 -0
  32. package/dist/components/ImagePlaceholder/ImagePlaceholder.js +146 -0
  33. package/dist/components/ImagePlaceholder/ImagePlaceholder.module.scss.js +39 -0
  34. package/dist/components/ImagePlaceholder/constantsImgPh.js +15 -0
  35. package/dist/components/ImagePlaceholder/utilsImgPh.js +19 -0
  36. package/dist/components/ImageWithData/ImageWithData.js +146 -0
  37. package/dist/components/ImageWithData/ImageWithData.module.scss.js +39 -0
  38. package/dist/components/Infobox/Infobox.js +33 -0
  39. package/dist/components/Infobox/Infobox.module.scss.js +19 -0
  40. package/dist/components/Infobox/infoboxVariants.js +31 -0
  41. package/dist/components/ListItem/ListItem.js +69 -0
  42. package/dist/components/ListItem/ListItem.module.scss.js +21 -0
  43. package/dist/components/ListItem/useListItems.js +58 -0
  44. package/dist/components/Modal/Modal.js +70 -0
  45. package/dist/components/Modal/Modal.module.scss.js +21 -0
  46. package/dist/components/Notifications/Notifications.js +119 -0
  47. package/dist/components/Notifications/Notifications.module.scss.js +21 -0
  48. package/dist/components/Notifications/useNotifications.js +103 -0
  49. package/dist/components/Pill/Pill.js +32 -0
  50. package/dist/components/Pill/Pill.module.scss.js +13 -0
  51. package/dist/components/Pill/pillVariants.js +36 -0
  52. package/dist/components/ProgressBar/ProgressBar.js +48 -0
  53. package/dist/components/ProgressBar/ProgressBar.module.scss.js +19 -0
  54. package/dist/components/Radio/Radio.js +20 -0
  55. package/dist/components/Radio/Radio.module.scss.js +15 -0
  56. package/dist/components/Tab/Tab.js +51 -0
  57. package/dist/components/Tab/Tab.module.scss.js +43 -0
  58. package/dist/components/Tabs/Tabs.js +62 -0
  59. package/dist/components/Tabs/Tabs.module.scss.js +17 -0
  60. package/dist/components/Tabs/tabsUtils.js +17 -0
  61. package/dist/components/Tag/Tag.js +49 -0
  62. package/dist/components/Tag/Tag.module.scss.js +25 -0
  63. package/dist/components/Tag/tagVariants.js +5 -0
  64. package/dist/components/TextHoverable/TextHoverable.js +14 -0
  65. package/dist/components/TextHoverable/TextHoverable.module.scss.js +9 -0
  66. package/dist/components/Toggle/Toggle.js +59 -0
  67. package/dist/components/Toggle/Toggle.module.scss.js +21 -0
  68. package/dist/components/Tooltip/Tooltip.js +103 -0
  69. package/dist/components/Tooltip/Tooltip.module.scss.js +39 -0
  70. package/dist/components/Tooltip/useTooltipPositioning.js +60 -0
  71. package/dist/components/icons-v2/AdIcon.js +48 -0
  72. package/dist/components/icons-v2/AddMessageIcon.js +37 -0
  73. package/dist/components/icons-v2/AddUserIcon.js +47 -0
  74. package/dist/components/icons-v2/AdjustmentsIcon.js +15 -0
  75. package/dist/components/icons-v2/AlertIcon.js +37 -0
  76. package/dist/components/icons-v2/AlignCenterIcon.js +47 -0
  77. package/dist/components/icons-v2/AlignHorizontallyIcon.js +47 -0
  78. package/dist/components/icons-v2/AlignJustifyIcon.js +47 -0
  79. package/dist/components/icons-v2/AlignLeftIcon.js +47 -0
  80. package/dist/components/icons-v2/AlignRightIcon.js +47 -0
  81. package/dist/components/icons-v2/AlignVerticallyIcon.js +47 -0
  82. package/dist/components/icons-v2/AlphabetIcon.js +37 -0
  83. package/dist/components/icons-v2/ArchiveIcon.js +37 -0
  84. package/dist/components/icons-v2/ArrowDownIcon.js +37 -0
  85. package/dist/components/icons-v2/ArrowDownRightIcon.js +15 -0
  86. package/dist/components/icons-v2/ArrowLeftIcon.js +37 -0
  87. package/dist/components/icons-v2/ArrowMoveDownIcon.js +37 -0
  88. package/dist/components/icons-v2/ArrowRightIcon.js +37 -0
  89. package/dist/components/icons-v2/ArrowUpIcon.js +37 -0
  90. package/dist/components/icons-v2/AttributesEvaluationIcon.js +77 -0
  91. package/dist/components/icons-v2/BellIcon.js +15 -0
  92. package/dist/components/icons-v2/BoldIcon.js +27 -0
  93. package/dist/components/icons-v2/BoltIcon.js +15 -0
  94. package/dist/components/icons-v2/BookIcon.js +15 -0
  95. package/dist/components/icons-v2/BookmarkIcon.js +15 -0
  96. package/dist/components/icons-v2/BooksIcon.js +77 -0
  97. package/dist/components/icons-v2/BoxIcon.js +15 -0
  98. package/dist/components/icons-v2/BugIcon.js +97 -0
  99. package/dist/components/icons-v2/CalendarIcon.js +47 -0
  100. package/dist/components/icons-v2/CameraPlusIcon.js +15 -0
  101. package/dist/components/icons-v2/CardsIcon.js +15 -0
  102. package/dist/components/icons-v2/CellIcon.js +15 -0
  103. package/dist/components/icons-v2/ChartbarIcon.js +47 -0
  104. package/dist/components/icons-v2/ChartbarOffIcon.js +15 -0
  105. package/dist/components/icons-v2/ChatBubbleIcon.js +15 -0
  106. package/dist/components/icons-v2/ChatbotIcon.js +15 -0
  107. package/dist/components/icons-v2/CheckCircleIcon.js +27 -0
  108. package/dist/components/icons-v2/CheckboxIcon.js +27 -0
  109. package/dist/components/icons-v2/CheckmarkDoubleIcon.js +27 -0
  110. package/dist/components/icons-v2/CheckmarkLargeIcon.js +15 -0
  111. package/dist/components/icons-v2/ChevronDownIcon.js +15 -0
  112. package/dist/components/icons-v2/ChevronLeftIcon.js +15 -0
  113. package/dist/components/icons-v2/ChevronRightIcon.js +15 -0
  114. package/dist/components/icons-v2/ChevronUpIcon.js +15 -0
  115. package/dist/components/icons-v2/ChevronsDownIcon.js +27 -0
  116. package/dist/components/icons-v2/ChevronsLeftIcon.js +27 -0
  117. package/dist/components/icons-v2/ChevronsRightIcon.js +27 -0
  118. package/dist/components/icons-v2/ChevronsUpIcon.js +27 -0
  119. package/dist/components/icons-v2/CircleIcon.js +12 -0
  120. package/dist/components/icons-v2/CirclesIcon.js +37 -0
  121. package/dist/components/icons-v2/ClickIcon.js +67 -0
  122. package/dist/components/icons-v2/ClipboardIcon.js +27 -0
  123. package/dist/components/icons-v2/ClockIcon.js +27 -0
  124. package/dist/components/icons-v2/ClockShareIcon.js +15 -0
  125. package/dist/components/icons-v2/CloseIcon.js +37 -0
  126. package/dist/components/icons-v2/CopyIcon.js +27 -0
  127. package/dist/components/icons-v2/CreditCardIcon.js +15 -0
  128. package/dist/components/icons-v2/CropIcon.js +27 -0
  129. package/dist/components/icons-v2/DashboardMeterIcon.js +37 -0
  130. package/dist/components/icons-v2/DatabaseCheckIcon.js +47 -0
  131. package/dist/components/icons-v2/DatabaseIcon.js +37 -0
  132. package/dist/components/icons-v2/DeleteIcon.js +47 -0
  133. package/dist/components/icons-v2/DetailsIcon.js +47 -0
  134. package/dist/components/icons-v2/DevicesIcon.js +37 -0
  135. package/dist/components/icons-v2/DislikeIcon.js +15 -0
  136. package/dist/components/icons-v2/DollarIcon.js +15 -0
  137. package/dist/components/icons-v2/DownloadIcon.js +15 -0
  138. package/dist/components/icons-v2/DragToolIcon.js +73 -0
  139. package/dist/components/icons-v2/DrawRectangleIcon.js +87 -0
  140. package/dist/components/icons-v2/EditIcon.js +27 -0
  141. package/dist/components/icons-v2/EmailIcon.js +27 -0
  142. package/dist/components/icons-v2/EmojiNeutralIcon.js +15 -0
  143. package/dist/components/icons-v2/EmojiSadIcon.js +15 -0
  144. package/dist/components/icons-v2/EmojiSlightSmileyIcon.js +15 -0
  145. package/dist/components/icons-v2/EmojiSmileyIcon.js +47 -0
  146. package/dist/components/icons-v2/EmojiVerySadIcon.js +15 -0
  147. package/dist/components/icons-v2/EraserIcon.js +27 -0
  148. package/dist/components/icons-v2/EtShelfIcon.js +127 -0
  149. package/dist/components/icons-v2/EtStandaloneIcon.js +57 -0
  150. package/dist/components/icons-v2/ExternalLinkIcon.js +15 -0
  151. package/dist/components/icons-v2/FileExportIcon.js +27 -0
  152. package/dist/components/icons-v2/FileIcon.js +27 -0
  153. package/dist/components/icons-v2/FileImportIcon.js +27 -0
  154. package/dist/components/icons-v2/FileNewIcon.js +47 -0
  155. package/dist/components/icons-v2/FileRemoveIcon.js +37 -0
  156. package/dist/components/icons-v2/FileTemplateIcon.js +15 -0
  157. package/dist/components/icons-v2/FileUploadIcon.js +15 -0
  158. package/dist/components/icons-v2/FilesIcon.js +15 -0
  159. package/dist/components/icons-v2/FilterOffIcon.js +27 -0
  160. package/dist/components/icons-v2/FilterOnIcon.js +15 -0
  161. package/dist/components/icons-v2/FlagIcon.js +27 -0
  162. package/dist/components/icons-v2/FolderIcon.js +15 -0
  163. package/dist/components/icons-v2/FullscreenIcon.js +15 -0
  164. package/dist/components/icons-v2/GridviewIcon.js +47 -0
  165. package/dist/components/icons-v2/HelpIcon.js +37 -0
  166. package/dist/components/icons-v2/HomeIcon.js +27 -0
  167. package/dist/components/icons-v2/ImageIcon.js +15 -0
  168. package/dist/components/icons-v2/ImageOffIcon.js +15 -0
  169. package/dist/components/icons-v2/ImageStarIcon.js +15 -0
  170. package/dist/components/icons-v2/ImageUploadIcon.js +15 -0
  171. package/dist/components/icons-v2/InfoIcon.js +37 -0
  172. package/dist/components/icons-v2/ItalicIcon.js +37 -0
  173. package/dist/components/icons-v2/LanguageIcon.js +15 -0
  174. package/dist/components/icons-v2/LaunchIcon.js +37 -0
  175. package/dist/components/icons-v2/LayersIcon.js +37 -0
  176. package/dist/components/icons-v2/LeftSidebarCollapseIcon.js +15 -0
  177. package/dist/components/icons-v2/LeftSidebarExpandIcon.js +15 -0
  178. package/dist/components/icons-v2/LightDarkIcon.js +67 -0
  179. package/dist/components/icons-v2/LightbulbIcon.js +37 -0
  180. package/dist/components/icons-v2/LikeIcon.js +15 -0
  181. package/dist/components/icons-v2/LinkIcon.js +27 -0
  182. package/dist/components/icons-v2/ListViewIcon.js +67 -0
  183. package/dist/components/icons-v2/LoaderIcon.js +90 -0
  184. package/dist/components/icons-v2/LoadingIcon.js +70 -0
  185. package/dist/components/icons-v2/LockIcon.js +27 -0
  186. package/dist/components/icons-v2/LockOffIcon.js +27 -0
  187. package/dist/components/icons-v2/LoginIcon.js +37 -0
  188. package/dist/components/icons-v2/LogoutIcon.js +37 -0
  189. package/dist/components/icons-v2/MagicwandIcon.js +15 -0
  190. package/dist/components/icons-v2/MaximizeIcon.js +47 -0
  191. package/dist/components/icons-v2/MenuIcon.js +37 -0
  192. package/dist/components/icons-v2/MessageIcon.js +37 -0
  193. package/dist/components/icons-v2/MeterIcon.js +97 -0
  194. package/dist/components/icons-v2/MinimizeIcon.js +47 -0
  195. package/dist/components/icons-v2/MinusIcon.js +15 -0
  196. package/dist/components/icons-v2/MoreHorizontalIcon.js +40 -0
  197. package/dist/components/icons-v2/MoreIcon.js +40 -0
  198. package/dist/components/icons-v2/MouseIcon.js +27 -0
  199. package/dist/components/icons-v2/MoveIcon.js +67 -0
  200. package/dist/components/icons-v2/Multiplier05Icon.js +15 -0
  201. package/dist/components/icons-v2/Multiplier10Icon.js +15 -0
  202. package/dist/components/icons-v2/Multiplier15Icon.js +15 -0
  203. package/dist/components/icons-v2/Multiplier20Icon.js +15 -0
  204. package/dist/components/icons-v2/NoteIcon.js +47 -0
  205. package/dist/components/icons-v2/NoteOffIcon.js +57 -0
  206. package/dist/components/icons-v2/NotifyIcon.js +15 -0
  207. package/dist/components/icons-v2/PackAIIcon.js +27 -0
  208. package/dist/components/icons-v2/PaperclipIcon.js +15 -0
  209. package/dist/components/icons-v2/PauseIcon.js +27 -0
  210. package/dist/components/icons-v2/PdfIcon.js +67 -0
  211. package/dist/components/icons-v2/PentoolIcon.js +47 -0
  212. package/dist/components/icons-v2/PiechartIcon.js +27 -0
  213. package/dist/components/icons-v2/PinIcon.js +37 -0
  214. package/dist/components/icons-v2/PinskewedIcon.js +37 -0
  215. package/dist/components/icons-v2/PlayIcon.js +15 -0
  216. package/dist/components/icons-v2/PlusIcon.js +27 -0
  217. package/dist/components/icons-v2/PredictiveETIcon.js +77 -0
  218. package/dist/components/icons-v2/RedoIcon.js +27 -0
  219. package/dist/components/icons-v2/RefreshAlertIcon.js +15 -0
  220. package/dist/components/icons-v2/RefreshIcon.js +15 -0
  221. package/dist/components/icons-v2/ReplaceIcon.js +15 -0
  222. package/dist/components/icons-v2/ReplyIcon.js +13 -0
  223. package/dist/components/icons-v2/SaveIcon.js +37 -0
  224. package/dist/components/icons-v2/ScalesIcon.js +57 -0
  225. package/dist/components/icons-v2/SearchIcon.js +27 -0
  226. package/dist/components/icons-v2/SendIcon.js +27 -0
  227. package/dist/components/icons-v2/SettingsIcon.js +27 -0
  228. package/dist/components/icons-v2/ShareIcon.js +27 -0
  229. package/dist/components/icons-v2/ShoppingIcon.js +47 -0
  230. package/dist/components/icons-v2/SlideshowIcon.js +77 -0
  231. package/dist/components/icons-v2/SocialFacebookIcon.js +15 -0
  232. package/dist/components/icons-v2/SocialInstagramIcon.js +37 -0
  233. package/dist/components/icons-v2/SocialSnapchatIcon.js +15 -0
  234. package/dist/components/icons-v2/SocialTiktok2Icon.js +15 -0
  235. package/dist/components/icons-v2/SocialTiktokIcon.js +15 -0
  236. package/dist/components/icons-v2/SocialXIcon.js +27 -0
  237. package/dist/components/icons-v2/SocialYoutubeIcon.js +27 -0
  238. package/dist/components/icons-v2/SortHorizontalIcon.js +77 -0
  239. package/dist/components/icons-v2/StarIcon.js +15 -0
  240. package/dist/components/icons-v2/StopIcon.js +13 -0
  241. package/dist/components/icons-v2/SurveyIcon.js +37 -0
  242. package/dist/components/icons-v2/TableExportIcon.js +57 -0
  243. package/dist/components/icons-v2/TableIcon.js +37 -0
  244. package/dist/components/icons-v2/TableOptionsIcon.js +107 -0
  245. package/dist/components/icons-v2/TagIcon.js +27 -0
  246. package/dist/components/icons-v2/TargetArrowIcon.js +57 -0
  247. package/dist/components/icons-v2/TargetIcon.js +68 -0
  248. package/dist/components/icons-v2/TextRecognitionIcon.js +67 -0
  249. package/dist/components/icons-v2/TriangleFlagIcon.js +15 -0
  250. package/dist/components/icons-v2/TrophyIcon.js +15 -0
  251. package/dist/components/icons-v2/UnderlineIcon.js +27 -0
  252. package/dist/components/icons-v2/UndoIcon.js +27 -0
  253. package/dist/components/icons-v2/UnitBuyRateIcon.js +27 -0
  254. package/dist/components/icons-v2/UploadIcon.js +15 -0
  255. package/dist/components/icons-v2/UserGroupIcon.js +67 -0
  256. package/dist/components/icons-v2/UserIcon.js +27 -0
  257. package/dist/components/icons-v2/UsersIcon.js +47 -0
  258. package/dist/components/icons-v2/ValueBuyRateIcon.js +15 -0
  259. package/dist/components/icons-v2/VideoIcon.js +27 -0
  260. package/dist/components/icons-v2/ViewOffIcon.js +27 -0
  261. package/dist/components/icons-v2/ViewOnIcon.js +27 -0
  262. package/dist/components/icons-v2/VolumeOffIcon.js +15 -0
  263. package/dist/components/icons-v2/VolumeOnIcon.js +15 -0
  264. package/dist/components/icons-v2/WebIcon.js +57 -0
  265. package/dist/components/icons-v2/XIcon.js +27 -0
  266. package/dist/components/icons-v2/ZipFileIcon.js +15 -0
  267. package/dist/components/icons-v2/ZonePercentageIcon.js +107 -0
  268. package/dist/components/icons-v2/ZoomInIcon.js +47 -0
  269. package/dist/components/icons-v2/ZoomOutIcon.js +37 -0
  270. package/dist/components/icons-v2/constants.js +23 -0
  271. package/dist/components/icons-v2/createIcon.js +52 -0
  272. package/dist/components/icons-v2/createIcon.module.scss.js +15 -0
  273. package/dist/components/icons-v2/index.js +400 -0
  274. package/dist/hooks/useClickOutside.js +12 -0
  275. package/dist/hooks/useEscapeKey.js +13 -0
  276. package/dist/index.js +62 -0
  277. package/dist/style.css +1 -0
  278. package/package.json +56 -0
@@ -0,0 +1,69 @@
1
+ import { jsxs as x, jsx as e, Fragment as y } from "react/jsx-runtime";
2
+ import b from "clsx";
3
+ import { EllipsisTooltip as v } from "../EllipsisTooltip/EllipsisTooltip.js";
4
+ import a from "./ListItem.module.scss.js";
5
+ const F = ({
6
+ item: T = null,
7
+ controlItem: r = null,
8
+ customItem: n = null,
9
+ title: i = null,
10
+ description: s = null,
11
+ trailing: t = [],
12
+ trailingDisplay: c = "hover",
13
+ active: D = !1,
14
+ onClick: w,
15
+ verticalSpacing: p = "xs",
16
+ horizontalSpacing: m = "xs",
17
+ variant: C = "fill",
18
+ disabled: d = !1
19
+ }) => {
20
+ const o = (t == null ? void 0 : t.length) > 0, h = !!i, u = !!s, N = [
21
+ r && "auto",
22
+ n && "auto",
23
+ (h || u) && "minmax(0, 3fr)",
24
+ o && "auto"
25
+ ].filter(Boolean).join(" ");
26
+ return /* @__PURE__ */ x(
27
+ "div",
28
+ {
29
+ className: b(a.listItem, a[C], d && a.disabled),
30
+ style: {
31
+ "--minHeight": !s && p === "none" ? "var(--scale--lg)" : "auto",
32
+ "--verticalSpacing": p === "none" ? "0px" : `var(--spacing--${p})`,
33
+ "--horizontalSpacing": m === "none" ? "0px" : `var(--spacing--${m})`,
34
+ "--gridTemplateColumns": N
35
+ },
36
+ "data-active": D || null,
37
+ onClick: d ? () => {
38
+ } : w,
39
+ children: [
40
+ r && /* @__PURE__ */ e(y, { children: r }),
41
+ n && /* @__PURE__ */ e(y, { children: n }),
42
+ /* @__PURE__ */ x("div", { className: a.textWrapper, children: [
43
+ h && /* @__PURE__ */ e(v, { showArrow: !0, content: i, className: a.title, children: i }),
44
+ u && /* @__PURE__ */ e(v, { showArrow: !0, content: s, className: a.description, children: s })
45
+ ] }),
46
+ o && /* @__PURE__ */ e("div", { className: a.trailing, children: t.map((l) => {
47
+ const j = (l == null ? void 0 : l.trailingDisplay) || c, k = (l == null ? void 0 : l.trailingDisplayOnSelectedItem) || "always", g = d || (l == null ? void 0 : l.disabled);
48
+ return /* @__PURE__ */ e(
49
+ "span",
50
+ {
51
+ "data-trailing-display": j,
52
+ "data-trailing-display-on-selected-item": k,
53
+ "data-trailing-disabled": g || null,
54
+ onClick: ($) => {
55
+ var f;
56
+ $.stopPropagation(), !g && ((f = l == null ? void 0 : l.onClick) == null || f.call(l, T));
57
+ },
58
+ children: l.icon
59
+ },
60
+ `icon-${l.type}`
61
+ );
62
+ }) })
63
+ ]
64
+ }
65
+ );
66
+ };
67
+ export {
68
+ F as ListItem
69
+ };
@@ -0,0 +1,21 @@
1
+ const t = "_listItem_14vkx_1", i = "_fill_14vkx_11", e = "_outline_14vkx_36", _ = "_disabled_14vkx_63", l = "_textWrapper_14vkx_72", s = "_title_14vkx_96", n = "_description_14vkx_100", o = "_trailing_14vkx_122", r = {
2
+ listItem: t,
3
+ fill: i,
4
+ outline: e,
5
+ disabled: _,
6
+ textWrapper: l,
7
+ title: s,
8
+ description: n,
9
+ trailing: o
10
+ };
11
+ export {
12
+ r as default,
13
+ n as description,
14
+ _ as disabled,
15
+ i as fill,
16
+ t as listItem,
17
+ e as outline,
18
+ l as textWrapper,
19
+ s as title,
20
+ o as trailing
21
+ };
@@ -0,0 +1,58 @@
1
+ import { useCallback as L, useMemo as M } from "react";
2
+ const o = (l, n) => typeof l == "function" ? l(n) : l, q = ({
3
+ items: l = [],
4
+ controlItem: n = null,
5
+ customItem: d = null,
6
+ trailing: f = [],
7
+ trailingDisplay: b = "hover",
8
+ itemTitleKey: x = "name",
9
+ itemDescriptionKey: k = "description",
10
+ activeItemId: r = null,
11
+ onItemSelect: u,
12
+ verticalSpacing: p = "xs",
13
+ horizontalSpacing: C = "xs",
14
+ variant: N = "fill"
15
+ }) => {
16
+ const h = L(
17
+ (s) => {
18
+ u == null || u(s);
19
+ },
20
+ [u]
21
+ );
22
+ return { listItems: M(
23
+ () => (l || []).map((s) => ({
24
+ id: s == null ? void 0 : s.id,
25
+ title: (s == null ? void 0 : s[x]) ?? null,
26
+ description: (s == null ? void 0 : s[k]) ?? null,
27
+ item: s,
28
+ controlItem: o(n, s),
29
+ customItem: o(d, s),
30
+ internalNumber: s == null ? void 0 : s.internalNumber,
31
+ trailing: o(f, s),
32
+ trailingDisplay: b,
33
+ verticalSpacing: p,
34
+ horizontalSpacing: C,
35
+ variant: N,
36
+ active: r != null && (s == null ? void 0 : s.id) === r,
37
+ ...u && { onClick: () => h(s) }
38
+ })),
39
+ [
40
+ n,
41
+ d,
42
+ f,
43
+ b,
44
+ l,
45
+ x,
46
+ k,
47
+ r,
48
+ u,
49
+ h,
50
+ p,
51
+ C,
52
+ N
53
+ ]
54
+ ) };
55
+ };
56
+ export {
57
+ q as useListItems
58
+ };
@@ -0,0 +1,70 @@
1
+ import { jsxs as a, jsx as e } from "react/jsx-runtime";
2
+ import { useRef as N, Suspense as k } from "react";
3
+ import C from "react-dom";
4
+ import D from "../../hooks/useClickOutside.js";
5
+ import { useEscapeKey as v } from "../../hooks/useEscapeKey.js";
6
+ import { LoadingIcon as I } from "../icons-v2/LoadingIcon.js";
7
+ import { XIcon as M } from "../icons-v2/XIcon.js";
8
+ import { Button as b } from "../Button/Button.js";
9
+ import l from "./Modal.module.scss.js";
10
+ const r = {
11
+ default: "960px",
12
+ mediaQuery: "880px"
13
+ }, A = ({
14
+ children: n = null,
15
+ onClose: s = () => {
16
+ },
17
+ visible: d = !1,
18
+ title: c = "",
19
+ icon: t = null,
20
+ description: m = null,
21
+ footer: i = null,
22
+ maxWidth: u = r,
23
+ loadingFallback: p = /* @__PURE__ */ e(I, { iconSize: "xl" }),
24
+ portalContainer: f
25
+ }) => {
26
+ const { default: h, mediaQuery: x } = {
27
+ ...r,
28
+ ...u
29
+ }, y = N(), o = () => s();
30
+ return D(y, o), v(o), d ? C.createPortal(
31
+ /* @__PURE__ */ a("div", { className: l.transition, children: [
32
+ /* @__PURE__ */ e("div", { className: l.backdrop, onClick: o }),
33
+ /* @__PURE__ */ e(
34
+ "dialog",
35
+ {
36
+ className: l.modal,
37
+ open: !0,
38
+ style: {
39
+ "--modal-width": h,
40
+ "--modal-width-media-query": x
41
+ },
42
+ children: /* @__PURE__ */ a(k, { fallback: p, children: [
43
+ /* @__PURE__ */ a("header", { className: l.header, children: [
44
+ t && t,
45
+ /* @__PURE__ */ a("div", { className: l.textContainer, children: [
46
+ /* @__PURE__ */ e("span", { className: l.title, children: c }),
47
+ /* @__PURE__ */ e("span", { className: l.description, children: m })
48
+ ] }),
49
+ /* @__PURE__ */ e(
50
+ b,
51
+ {
52
+ variant: "neutral",
53
+ icon: /* @__PURE__ */ e(M, {}),
54
+ size: "xxxs",
55
+ onClick: o
56
+ }
57
+ )
58
+ ] }),
59
+ /* @__PURE__ */ e("section", { className: l.content, children: n }),
60
+ i && /* @__PURE__ */ e("footer", { children: i })
61
+ ] })
62
+ }
63
+ )
64
+ ] }),
65
+ f ?? document.getElementById("modal") ?? document.body
66
+ ) : null;
67
+ };
68
+ export {
69
+ A as Modal
70
+ };
@@ -0,0 +1,21 @@
1
+ const t = "_transition_v042a_1", n = "_backdrop_v042a_5", o = "_modal_v042a_16", a = "_header_v042a_35", e = "_textContainer_v042a_43", _ = "_title_v042a_51", c = "_description_v042a_70", i = "_content_v042a_87", s = {
2
+ transition: t,
3
+ backdrop: n,
4
+ modal: o,
5
+ header: a,
6
+ textContainer: e,
7
+ title: _,
8
+ description: c,
9
+ content: i
10
+ };
11
+ export {
12
+ n as backdrop,
13
+ i as content,
14
+ s as default,
15
+ c as description,
16
+ a as header,
17
+ o as modal,
18
+ e as textContainer,
19
+ _ as title,
20
+ t as transition
21
+ };
@@ -0,0 +1,119 @@
1
+ import { jsxs as n, jsx as o } from "react/jsx-runtime";
2
+ import U from "clsx";
3
+ import { Button as C } from "../Button/Button.js";
4
+ import { ProgressBar as _ } from "../ProgressBar/ProgressBar.js";
5
+ import { SaveIcon as F } from "../icons-v2/SaveIcon.js";
6
+ import { HelpIcon as H } from "../icons-v2/HelpIcon.js";
7
+ import { XIcon as v } from "../icons-v2/XIcon.js";
8
+ import r from "./Notifications.module.scss.js";
9
+ const K = ["neutral", "error", "success", "primary", "warning"], y = {
10
+ neutral: {
11
+ stripeColor: "var(--color--border--primary--default)",
12
+ iconColor: "var(--color--icon--primary--default)"
13
+ },
14
+ error: {
15
+ stripeColor: "var(--color--border--error--default)",
16
+ iconColor: "var(--color--border--error--default)"
17
+ },
18
+ success: {
19
+ stripeColor: "var(--color--border--success--default)",
20
+ iconColor: "var(--color--border--success--default)"
21
+ },
22
+ primary: {
23
+ stripeColor: "var(--color--border--primary--default)",
24
+ iconColor: "var(--color--border--primary--default)"
25
+ },
26
+ warning: {
27
+ stripeColor: "var(--color--border--warning--default)",
28
+ iconColor: "var(--color--border--warning--default)"
29
+ }
30
+ }, b = (l) => K.includes(l) ? l : "neutral", R = (l) => y[b(l)] || y.neutral, Q = ({
31
+ title: l = "Notification title",
32
+ text: h = "Notification text goes here and it should be kept short and simple whenever possible.",
33
+ status: N = "neutral",
34
+ showStripe: S = !1,
35
+ showIcon: k = !0,
36
+ icon: I = null,
37
+ onClose: i = null,
38
+ closeAriaLabel: T = "Close notification",
39
+ onDismiss: c = null,
40
+ dismissLabel: w = "Cancel",
41
+ dismissIcon: x = null,
42
+ onConfirm: a = null,
43
+ confirmLabel: g = "Save",
44
+ confirmIcon: A = null,
45
+ progress: t = null,
46
+ maxProgress: e = null,
47
+ progressLabel: s = "In progress...",
48
+ closeButton: B = !0,
49
+ className: O
50
+ }) => {
51
+ const $ = b(N), { stripeColor: u, iconColor: j } = R($), f = typeof c == "function", p = typeof a == "function", z = f || p, d = t !== null, m = k && (I || /* @__PURE__ */ o(H, { strokeColor: "currentColor", fill: "none" })), E = typeof t == "number" && typeof e == "number" ? `${s} ${t}/${e ?? ""}` : s;
52
+ return /* @__PURE__ */ n(
53
+ "div",
54
+ {
55
+ className: U(
56
+ r.notification,
57
+ S && !d && r.withStripe,
58
+ O
59
+ ),
60
+ style: {
61
+ "--notification-stripe-color": u,
62
+ "--notification-icon-color": j
63
+ },
64
+ children: [
65
+ /* @__PURE__ */ n("div", { className: r.titleRow, children: [
66
+ m ? /* @__PURE__ */ o("span", { className: r.icon, children: m }) : null,
67
+ /* @__PURE__ */ o("p", { className: r.title, children: l }),
68
+ typeof i == "function" && B ? /* @__PURE__ */ o(
69
+ "button",
70
+ {
71
+ type: "button",
72
+ className: r.closeButton,
73
+ onClick: i,
74
+ "aria-label": T,
75
+ children: /* @__PURE__ */ o(v, { strokeColor: "currentColor" })
76
+ }
77
+ ) : null
78
+ ] }),
79
+ /* @__PURE__ */ o("p", { className: r.text, children: h }),
80
+ z ? /* @__PURE__ */ n("div", { className: r.actions, children: [
81
+ f ? /* @__PURE__ */ o(
82
+ C,
83
+ {
84
+ text: w,
85
+ onClick: c,
86
+ size: "sm",
87
+ type: "outline",
88
+ variant: "neutral",
89
+ icon: x || /* @__PURE__ */ o(v, { strokeColor: "currentColor" })
90
+ }
91
+ ) : null,
92
+ p ? /* @__PURE__ */ o(
93
+ C,
94
+ {
95
+ text: g,
96
+ onClick: a,
97
+ size: "sm",
98
+ type: "fill",
99
+ variant: "primary",
100
+ icon: A || /* @__PURE__ */ o(F, { strokeColor: "currentColor" })
101
+ }
102
+ ) : null
103
+ ] }) : null,
104
+ d ? /* @__PURE__ */ o(
105
+ _,
106
+ {
107
+ value: t,
108
+ maxValue: e,
109
+ label: E,
110
+ fillColor: u
111
+ }
112
+ ) : null
113
+ ]
114
+ }
115
+ );
116
+ };
117
+ export {
118
+ Q as Notifications
119
+ };
@@ -0,0 +1,21 @@
1
+ const t = "_notification_1ho8a_1", o = "_withStripe_1ho8a_13", i = "_titleRow_1ho8a_18", n = "_icon_1ho8a_25", _ = "_title_1ho8a_18", c = "_closeButton_1ho8a_63", e = "_text_1ho8a_78", s = "_actions_1ho8a_96", a = {
2
+ notification: t,
3
+ withStripe: o,
4
+ titleRow: i,
5
+ icon: n,
6
+ title: _,
7
+ closeButton: c,
8
+ text: e,
9
+ actions: s
10
+ };
11
+ export {
12
+ s as actions,
13
+ c as closeButton,
14
+ a as default,
15
+ n as icon,
16
+ t as notification,
17
+ e as text,
18
+ _ as title,
19
+ i as titleRow,
20
+ o as withStripe
21
+ };
@@ -0,0 +1,103 @@
1
+ import { jsx as I } from "react/jsx-runtime";
2
+ import { useRef as L, useCallback as b } from "react";
3
+ import { toast as c } from "react-toastify";
4
+ import { Notifications as T } from "./Notifications.js";
5
+ /* empty css */
6
+ const g = {
7
+ autoClose: !1,
8
+ closeOnClick: !1,
9
+ closeButton: !1,
10
+ icon: !1,
11
+ hideProgressBar: !0,
12
+ draggable: !1,
13
+ className: "notificationsToast",
14
+ bodyClassName: "notificationsToastBody"
15
+ }, d = (s = {}, t) => /* @__PURE__ */ I(
16
+ T,
17
+ {
18
+ title: s.title,
19
+ text: s.text,
20
+ status: s.status,
21
+ showStripe: s.showStripe,
22
+ showIcon: s.showIcon,
23
+ icon: s.icon,
24
+ closeAriaLabel: s.closeAriaLabel,
25
+ onDismiss: s.onDismiss,
26
+ dismissLabel: s.dismissLabel,
27
+ dismissIcon: s.dismissIcon,
28
+ onConfirm: s.onConfirm,
29
+ confirmLabel: s.confirmLabel,
30
+ confirmIcon: s.confirmIcon,
31
+ progress: s.progress,
32
+ maxProgress: s.maxProgress,
33
+ progressLabel: s.progressLabel,
34
+ className: s.className,
35
+ onClose: t,
36
+ closeButton: s.closeButton
37
+ }
38
+ ), h = (s) => s === "success" || s === "error" || s === "warning" ? s : "default", w = (s, t, i) => {
39
+ if (typeof s == "string")
40
+ return {
41
+ key: s,
42
+ payload: t || {},
43
+ options: i || {}
44
+ };
45
+ if (s && typeof s == "object" && typeof s.key == "string") {
46
+ const { key: o, ...r } = s;
47
+ return {
48
+ key: o,
49
+ payload: r,
50
+ options: t || {}
51
+ };
52
+ }
53
+ return {
54
+ key: null,
55
+ payload: s || {},
56
+ options: t || {}
57
+ };
58
+ }, p = (s, t, i) => ({
59
+ ...g,
60
+ ...t,
61
+ closeButton: !1,
62
+ icon: !1,
63
+ className: "notificationsToast",
64
+ bodyClassName: "notificationsToastBody",
65
+ type: t.type || h(s.status),
66
+ onClose: (...o) => {
67
+ typeof t.onClose == "function" && t.onClose(...o), typeof i == "function" && i(...o);
68
+ }
69
+ }), S = () => {
70
+ const s = L(/* @__PURE__ */ new Map()), t = b((o) => {
71
+ if (!o)
72
+ return;
73
+ const r = s.current.get(o) ?? o;
74
+ c.dismiss(r), s.current.delete(o);
75
+ }, []);
76
+ return { notify: b(
77
+ (o, r, N) => {
78
+ const { key: e, payload: f, options: l } = w(o, r, N), C = e ? () => s.current.delete(e) : null;
79
+ if (e) {
80
+ const n = l.toastId ?? e, m = d(f, () => t(e)), a = {
81
+ ...p(f, l, C),
82
+ toastId: n
83
+ };
84
+ if (c.isActive(n))
85
+ return c.update(n, {
86
+ ...a,
87
+ render: m
88
+ }), s.current.set(e, n), n;
89
+ const B = c(m, a);
90
+ return s.current.set(e, n), B;
91
+ }
92
+ let u = null;
93
+ return u = c(
94
+ d(f, () => t(u)),
95
+ p(f, l, null)
96
+ ), u;
97
+ },
98
+ [t]
99
+ ), dismiss: t };
100
+ };
101
+ export {
102
+ S as useNotifications
103
+ };
@@ -0,0 +1,32 @@
1
+ import { jsxs as a, jsx as o } from "react/jsx-runtime";
2
+ import u from "clsx";
3
+ import { HelpIcon as d } from "../icons-v2/HelpIcon.js";
4
+ import { getPillStyles as x } from "./pillVariants.js";
5
+ import l from "./Pill.module.scss.js";
6
+ const N = ({
7
+ label: t = "Completed",
8
+ color: r = "light",
9
+ status: e = "turquoise",
10
+ showIcon: i = !0,
11
+ icon: s = null
12
+ }) => {
13
+ const { backgroundColor: n, borderColor: c, color: m } = x(r, e), p = r === "outline";
14
+ return /* @__PURE__ */ a(
15
+ "div",
16
+ {
17
+ className: u(l.pill, p && l.pillOutline),
18
+ style: {
19
+ backgroundColor: n,
20
+ borderColor: c,
21
+ color: m
22
+ },
23
+ children: [
24
+ i && /* @__PURE__ */ o("span", { className: l.icon, children: s ?? /* @__PURE__ */ o(d, { iconSize: "m" }) }),
25
+ /* @__PURE__ */ o("span", { className: l.text, children: t })
26
+ ]
27
+ }
28
+ );
29
+ };
30
+ export {
31
+ N as Pill
32
+ };
@@ -0,0 +1,13 @@
1
+ const l = "_pill_1owa4_1", t = "_pillOutline_1owa4_23", o = "_icon_1owa4_27", i = "_text_1owa4_40", _ = {
2
+ pill: l,
3
+ pillOutline: t,
4
+ icon: o,
5
+ text: i
6
+ };
7
+ export {
8
+ _ as default,
9
+ o as icon,
10
+ l as pill,
11
+ t as pillOutline,
12
+ i as text
13
+ };
@@ -0,0 +1,36 @@
1
+ const t = [
2
+ "turquoise",
3
+ "purple",
4
+ "green",
5
+ "red",
6
+ "yellow",
7
+ "orange",
8
+ "greenyellow",
9
+ "neutral"
10
+ ], l = ["light", "dark", "outline"], e = "--color--pill--";
11
+ function u(r, o) {
12
+ return r === "outline" ? {
13
+ backgroundColor: "transparent",
14
+ borderColor: `var(${e}${o}--outline--border)`,
15
+ color: `var(${e}${o}--outline--border)`
16
+ } : {
17
+ backgroundColor: `var(${e}${o}--${r}--bg)`,
18
+ borderColor: "transparent",
19
+ color: `var(${e}${o}--${r}--text)`
20
+ };
21
+ }
22
+ const n = {};
23
+ l.forEach((r) => {
24
+ n[r] = {}, t.forEach((o) => {
25
+ n[r][o] = u(r, o);
26
+ });
27
+ });
28
+ function c(r, o) {
29
+ const i = l.includes(r) ? r : "light", a = t.includes(o) ? o : "turquoise";
30
+ return n[i][a];
31
+ }
32
+ export {
33
+ l as COLORS,
34
+ t as STATUSES,
35
+ c as getPillStyles
36
+ };
@@ -0,0 +1,48 @@
1
+ import { jsxs as n, Fragment as g, jsx as o } from "react/jsx-runtime";
2
+ import l from "clsx";
3
+ import e from "./ProgressBar.module.scss.js";
4
+ const N = (r, s) => typeof r != "number" || Number.isNaN(r) ? 0 : typeof s == "number" ? Math.max(0, Math.min(100, Math.round(r / s * 100))) : Math.max(0, Math.min(100, r)), x = ({
5
+ value: r = 0,
6
+ maxValue: s = null,
7
+ label: t = null,
8
+ fillColor: i = null,
9
+ trackClassName: m,
10
+ fillClassName: c,
11
+ labelClassName: p,
12
+ displayPercentageText: d = !1
13
+ }) => {
14
+ const a = N(r, s), f = typeof s == "number" && r < s, h = t !== null, u = typeof t == "number" ? `${t}%` : t;
15
+ return /* @__PURE__ */ n(g, { children: [
16
+ /* @__PURE__ */ n("div", { className: e.progressContainer, children: [
17
+ /* @__PURE__ */ o(
18
+ "div",
19
+ {
20
+ className: l(e.track, m),
21
+ style: {
22
+ "--progress-value": `${a}%`,
23
+ "--progress-fill-color": i || "var(--color--background--primary--default)"
24
+ },
25
+ children: /* @__PURE__ */ o(
26
+ "div",
27
+ {
28
+ className: l(
29
+ e.fill,
30
+ e.fillCompleted,
31
+ f && e.fillCompletedIndeterminate,
32
+ c
33
+ )
34
+ }
35
+ )
36
+ }
37
+ ),
38
+ d && /* @__PURE__ */ n("span", { className: e.progressPercentageText, children: [
39
+ a,
40
+ "%"
41
+ ] })
42
+ ] }),
43
+ h ? /* @__PURE__ */ o("p", { className: l(e.label, p), children: u }) : null
44
+ ] });
45
+ };
46
+ export {
47
+ x as ProgressBar
48
+ };
@@ -0,0 +1,19 @@
1
+ const e = "_progressContainer_zp4mt_1", t = "_track_zp4mt_9", l = "_fill_zp4mt_18", r = "_fillCompleted_zp4mt_22", o = "_fillCompletedIndeterminate_zp4mt_31", n = "_label_zp4mt_38", s = "_progressPercentageText_zp4mt_56", _ = {
2
+ progressContainer: e,
3
+ track: t,
4
+ fill: l,
5
+ fillCompleted: r,
6
+ fillCompletedIndeterminate: o,
7
+ label: n,
8
+ progressPercentageText: s
9
+ };
10
+ export {
11
+ _ as default,
12
+ l as fill,
13
+ r as fillCompleted,
14
+ o as fillCompletedIndeterminate,
15
+ n as label,
16
+ e as progressContainer,
17
+ s as progressPercentageText,
18
+ t as track
19
+ };
@@ -0,0 +1,20 @@
1
+ import { jsxs as e, jsx as l } from "react/jsx-runtime";
2
+ import c from "clsx";
3
+ import s from "./Radio.module.scss.js";
4
+ import { CircleIcon as t } from "../icons-v2/CircleIcon.js";
5
+ const m = (
6
+ /** @type {const} */
7
+ ["lg", "md"]
8
+ ), N = ({ size: r = "lg", label: o, className: i, ...n }) => {
9
+ const a = m.includes(r) ? r : "lg";
10
+ return /* @__PURE__ */ e("label", { className: c(s.root, i), children: [
11
+ /* @__PURE__ */ e("span", { className: s.control, children: [
12
+ /* @__PURE__ */ l("input", { className: s.input, type: "radio", ...n }),
13
+ /* @__PURE__ */ l("span", { className: s.indicator, "aria-hidden": !0, children: /* @__PURE__ */ l(t, { iconSize: a === "lg" ? "m" : "s" }) })
14
+ ] }),
15
+ o ? /* @__PURE__ */ l("span", { className: s.label, children: o }) : null
16
+ ] });
17
+ };
18
+ export {
19
+ N as Radio
20
+ };
@@ -0,0 +1,15 @@
1
+ const o = "_root_fvgxx_1", t = "_input_fvgxx_8", n = "_label_fvgxx_11", _ = "_control_fvgxx_16", c = "_indicator_fvgxx_33", l = {
2
+ root: o,
3
+ input: t,
4
+ label: n,
5
+ control: _,
6
+ indicator: c
7
+ };
8
+ export {
9
+ _ as control,
10
+ l as default,
11
+ c as indicator,
12
+ t as input,
13
+ n as label,
14
+ o as root
15
+ };