@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
package/README.md ADDED
@@ -0,0 +1,37 @@
1
+ # @eyesee/ui-components
2
+
3
+ Shared EyeSee React components and design tokens.
4
+
5
+ ## Usage
6
+
7
+ Import the package styles once at the application entry point:
8
+
9
+ ```js
10
+ import '@eyesee/ui-components/styles';
11
+ ```
12
+
13
+ Apply `alias--main` and exactly one application profile class (`mapped--internal`
14
+ or `mapped--external`) on an ancestor that also contains portal content,
15
+ preferably `body`.
16
+
17
+ `Modal` uses `#modal` when it exists and otherwise falls back to `document.body`.
18
+ Use its `portalContainer` prop to provide a different host and
19
+ `loadingFallback` to customize its Suspense fallback. `Tooltip` also accepts
20
+ `portalContainer` and otherwise renders into `document.body`.
21
+
22
+ The consuming application must install the package peer dependencies listed in
23
+ `package.json`. `Notifications` requires a single rendered toast host from
24
+ `react-toastify`; use the exported `Notifications` component and
25
+ `useNotifications` hook.
26
+
27
+ ## Development
28
+
29
+ ```bash
30
+ npm run storybook
31
+ npm run build
32
+ npm run build-storybook
33
+ npm run pack:check
34
+ ```
35
+
36
+ The Storybook toolbar switches between the Internal and External application
37
+ style profiles.
@@ -0,0 +1,61 @@
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import A from "clsx";
3
+ import r from "./Avatar.module.scss.js";
4
+ const b = (
5
+ /** @type {const} */
6
+ ["3xs", "2xs", "xs", "s", "m", "l"]
7
+ ), k = (
8
+ /** @type {const} */
9
+ ["round", "square"]
10
+ ), m = (
11
+ /** @type {const} */
12
+ ["default", "photo"]
13
+ ), y = (
14
+ /** @type {const} */
15
+ {
16
+ purple: "var(--color--background--avatar--purple)",
17
+ turquoise: "var(--color--background--avatar--turquoise)",
18
+ red: "var(--color--background--avatar--red)",
19
+ green: "var(--color--background--avatar--green)",
20
+ yellow: "var(--color--background--avatar--yellow)",
21
+ orange: "var(--color--background--avatar--orange)",
22
+ greenyellow: "var(--color--background--avatar--greenyellow)",
23
+ pink: "var(--color--background--avatar--pink)",
24
+ blue: "var(--color--background--avatar--blue)"
25
+ }
26
+ ), T = (
27
+ /** @type {(keyof typeof AVATAR_COLOR_PALETTE)[]} */
28
+ Object.keys(y)
29
+ ), _ = ({
30
+ type: o = "default",
31
+ size: e = "2xs",
32
+ corners: n = "round",
33
+ initials: s = "JD",
34
+ src: t,
35
+ alt: c = "",
36
+ color: l,
37
+ className: u
38
+ }) => {
39
+ const d = b.includes(e) ? e : "2xs", i = k.includes(n) ? n : "round", v = m.includes(o) ? o : "default", p = String(s || "").trim().slice(0, 2).toUpperCase(), g = T.includes(l) ? l : "purple";
40
+ return /* @__PURE__ */ a(
41
+ "div",
42
+ {
43
+ className: A(
44
+ r.avatar,
45
+ r[`size${d.toUpperCase()}`],
46
+ i === "round" ? r.round : r.square,
47
+ u
48
+ ),
49
+ style: { backgroundColor: g },
50
+ children: v === "photo" && t ? /* @__PURE__ */ a("img", { className: r.photo, src: t, alt: c }) : /* @__PURE__ */ a("span", { className: r.initials, children: p })
51
+ }
52
+ );
53
+ };
54
+ export {
55
+ y as AVATAR_COLOR_PALETTE,
56
+ T as AVATAR_COLOR_PALETTE_KEYS,
57
+ k as AVATAR_CORNERS,
58
+ b as AVATAR_SIZES,
59
+ m as AVATAR_TYPES,
60
+ _ as Avatar
61
+ };
@@ -0,0 +1,27 @@
1
+ const s = "_avatar_1fjz4_1", _ = "_initials_1fjz4_11", z = "_round_1fjz4_33", i = "_square_1fjz4_36", e = "_size3XS_1fjz4_39", t = "_size2XS_1fjz4_57", o = "_sizeXS_1fjz4_75", n = "_sizeS_1fjz4_79", a = "_sizeM_1fjz4_83", c = "_sizeL_1fjz4_87", f = "_photo_1fjz4_91", S = {
2
+ avatar: s,
3
+ initials: _,
4
+ round: z,
5
+ square: i,
6
+ size3XS: e,
7
+ size2XS: t,
8
+ sizeXS: o,
9
+ sizeS: n,
10
+ sizeM: a,
11
+ sizeL: c,
12
+ photo: f
13
+ };
14
+ export {
15
+ s as avatar,
16
+ S as default,
17
+ _ as initials,
18
+ f as photo,
19
+ z as round,
20
+ t as size2XS,
21
+ e as size3XS,
22
+ c as sizeL,
23
+ a as sizeM,
24
+ n as sizeS,
25
+ o as sizeXS,
26
+ i as square
27
+ };
@@ -0,0 +1,18 @@
1
+ import { jsx as l } from "react/jsx-runtime";
2
+ import { getBadgeStyles as a } from "./badgeVariants.js";
3
+ import c from "./Badge.module.scss.js";
4
+ const g = ({ label: r, shape: o = "rectangle", state: e = "neutral" }) => {
5
+ if (r == null || r === "") return null;
6
+ const { backgroundColor: t, color: n, borderRadius: s } = a(o, e);
7
+ return /* @__PURE__ */ l(
8
+ "span",
9
+ {
10
+ className: c.badge,
11
+ style: { backgroundColor: t, color: n, borderRadius: s },
12
+ children: r
13
+ }
14
+ );
15
+ };
16
+ export {
17
+ g as Badge
18
+ };
@@ -0,0 +1,7 @@
1
+ const e = "_badge_124sf_1", a = {
2
+ badge: e
3
+ };
4
+ export {
5
+ e as badge,
6
+ a as default
7
+ };
@@ -0,0 +1,29 @@
1
+ const a = ["rectangle", "pill"], e = ["neutral", "warning", "error"], c = {
2
+ neutral: {
3
+ backgroundColor: "var(--color--background--neutral--subtle)",
4
+ color: "var(--color--text--default--body)"
5
+ },
6
+ warning: {
7
+ backgroundColor: "var(--color--background--warning--default)",
8
+ color: "var(--color--text--default--heading)"
9
+ },
10
+ error: {
11
+ backgroundColor: "var(--color--background--error--default)",
12
+ color: "var(--color--text--on-color--body)"
13
+ }
14
+ }, t = {
15
+ rectangle: "var(--radius--subtle)",
16
+ pill: "var(--radius--full)"
17
+ };
18
+ function u(r, o) {
19
+ const l = e.includes(o) ? o : "neutral", n = a.includes(r) ? r : "rectangle";
20
+ return {
21
+ ...c[l],
22
+ borderRadius: t[n]
23
+ };
24
+ }
25
+ export {
26
+ a as SHAPES,
27
+ e as STATES,
28
+ u as getBadgeStyles
29
+ };
@@ -0,0 +1,96 @@
1
+ import { jsxs as c, jsx as n } from "react/jsx-runtime";
2
+ import { useState as W, useRef as j } from "react";
3
+ import m from "clsx";
4
+ import { ChevronDownIcon as B } from "../icons-v2/ChevronDownIcon.js";
5
+ import { ChevronUpIcon as L } from "../icons-v2/ChevronUpIcon.js";
6
+ import R from "../../hooks/useClickOutside.js";
7
+ import t from "./Button.module.scss.js";
8
+ import { ListItem as S } from "../ListItem/ListItem.js";
9
+ import { DropdownList as A } from "../DropdownList/DropdownList.js";
10
+ import { Tooltip as E } from "../Tooltip/Tooltip.js";
11
+ const Q = ({
12
+ text: l,
13
+ options: r = [],
14
+ onClick: i = () => {
15
+ },
16
+ className: d,
17
+ iconSize: p = "m",
18
+ size: b = "md",
19
+ variant: g = "primary",
20
+ type: w = "fill",
21
+ icon: a = null,
22
+ tooltipContent: u = null,
23
+ tooltipTitle: I,
24
+ disabled: v = !1,
25
+ fullWidth: C = !1,
26
+ dropdownAlign: N = "start",
27
+ tooltipProps: O = { position: "bottom", variant: "light" },
28
+ ...y
29
+ }) => {
30
+ const [s, o] = W(!1), h = j(null);
31
+ R(h, () => o(!1));
32
+ const x = (e) => {
33
+ i(e), o(!1);
34
+ }, D = a && !l && r.length === 0, k = a && !l, T = !!u, f = /* @__PURE__ */ c(
35
+ "div",
36
+ {
37
+ ref: h,
38
+ "data-button-wrapper": !0,
39
+ className: m(t.wrapper, d, C && t.fullWidth),
40
+ ...y,
41
+ children: [
42
+ /* @__PURE__ */ c(
43
+ "button",
44
+ {
45
+ type: "button",
46
+ className: m(
47
+ t.button,
48
+ t[b],
49
+ t[g],
50
+ t[w],
51
+ r.length > 0 && t.hasDropdown,
52
+ D && t.iconOnly,
53
+ k && t.isIcon
54
+ ),
55
+ onClick: () => r.length > 0 ? o((e) => !e) : i(),
56
+ "aria-expanded": s,
57
+ "aria-haspopup": "menu",
58
+ disabled: v,
59
+ children: [
60
+ /* @__PURE__ */ c(
61
+ "span",
62
+ {
63
+ className: m(
64
+ t.buttonContent,
65
+ r.length > 0 && t.buttonContentDropdown
66
+ ),
67
+ children: [
68
+ a && /* @__PURE__ */ n("span", { className: t.icon, children: a }),
69
+ l && /* @__PURE__ */ n("span", { className: t.buttonText, children: l })
70
+ ]
71
+ }
72
+ ),
73
+ r.length > 0 && /* @__PURE__ */ n("span", { className: t.buttonArrow, children: s ? /* @__PURE__ */ n(L, { iconSize: p }) : /* @__PURE__ */ n(B, { iconSize: p }) })
74
+ ]
75
+ }
76
+ ),
77
+ s && r.length > 0 && /* @__PURE__ */ n(A, { align: N, children: r.map((e) => /* @__PURE__ */ n(
78
+ S,
79
+ {
80
+ title: e.label,
81
+ controlItem: e == null ? void 0 : e.icon,
82
+ horizontalSpacing: "xs",
83
+ verticalSpacing: "none",
84
+ ...e,
85
+ onClick: () => x(e)
86
+ },
87
+ e.value
88
+ )) })
89
+ ]
90
+ }
91
+ );
92
+ return T ? /* @__PURE__ */ n(E, { title: I, content: u, ...O, children: f }) : f;
93
+ };
94
+ export {
95
+ Q as Button
96
+ };
@@ -0,0 +1,51 @@
1
+ const n = "_fullWidth_1l23j_1", t = "_button_1l23j_4", o = "_wrapper_1l23j_8", _ = "_buttonContent_1l23j_25", l = "_icon_1l23j_25", s = "_buttonArrow_1l23j_26", c = "_buttonText_1l23j_34", r = "_iconOnly_1l23j_58", u = "_buttonContentDropdown_1l23j_61", e = "_hasDropdown_1l23j_67", j = "_lg_1l23j_83", x = "_isIcon_1l23j_86", i = "_md_1l23j_90", a = "_sm_1l23j_97", b = "_xs_1l23j_104", d = "_xxs_1l23j_111", p = "_xxxs_1l23j_118", w = "_primary_1l23j_128", y = "_fill_1l23j_128", m = "_outline_1l23j_159", f = "_blank_1l23j_172", h = "_secondary_1l23j_219", C = "_neutral_1l23j_310", D = {
2
+ fullWidth: n,
3
+ button: t,
4
+ wrapper: o,
5
+ buttonContent: _,
6
+ icon: l,
7
+ buttonArrow: s,
8
+ buttonText: c,
9
+ iconOnly: r,
10
+ buttonContentDropdown: u,
11
+ hasDropdown: e,
12
+ lg: j,
13
+ isIcon: x,
14
+ md: i,
15
+ sm: a,
16
+ xs: b,
17
+ xxs: d,
18
+ xxxs: p,
19
+ primary: w,
20
+ fill: y,
21
+ outline: m,
22
+ blank: f,
23
+ secondary: h,
24
+ neutral: C
25
+ };
26
+ export {
27
+ f as blank,
28
+ t as button,
29
+ s as buttonArrow,
30
+ _ as buttonContent,
31
+ u as buttonContentDropdown,
32
+ c as buttonText,
33
+ D as default,
34
+ y as fill,
35
+ n as fullWidth,
36
+ e as hasDropdown,
37
+ l as icon,
38
+ r as iconOnly,
39
+ x as isIcon,
40
+ j as lg,
41
+ i as md,
42
+ C as neutral,
43
+ m as outline,
44
+ w as primary,
45
+ h as secondary,
46
+ a as sm,
47
+ o as wrapper,
48
+ b as xs,
49
+ d as xxs,
50
+ p as xxxs
51
+ };
@@ -0,0 +1,51 @@
1
+ import { jsxs as z, jsx as r } from "react/jsx-runtime";
2
+ import { useId as C } from "react";
3
+ import t from "clsx";
4
+ import o from "./Checkbox.module.scss.js";
5
+ import { CheckmarkLargeIcon as I } from "../icons-v2/CheckmarkLargeIcon.js";
6
+ import { MinusIcon as y } from "../icons-v2/MinusIcon.js";
7
+ import { iconSizes as a } from "../icons-v2/constants.js";
8
+ const N = (e) => e === "lg" ? "m" : "s", M = ({
9
+ label: e,
10
+ checked: c = !1,
11
+ indeterminate: m = !1,
12
+ onChange: p = () => {
13
+ },
14
+ disabled: i = !1,
15
+ size: x = "md",
16
+ id: d,
17
+ name: f,
18
+ value: h,
19
+ "aria-label": k
20
+ }) => {
21
+ const b = C(), l = d ?? b, s = N(x), u = a[s] ?? a.m, n = "var(--color--icon--on-color--on-color)";
22
+ return /* @__PURE__ */ z(
23
+ "label",
24
+ {
25
+ className: t(o.checkboxWrapper, i && o.disabled),
26
+ style: { "--checkbox-size": u },
27
+ htmlFor: l,
28
+ children: [
29
+ /* @__PURE__ */ r(
30
+ "input",
31
+ {
32
+ id: l,
33
+ type: "checkbox",
34
+ name: f,
35
+ value: h,
36
+ className: o.input,
37
+ checked: c,
38
+ disabled: i,
39
+ "aria-label": k ?? (e ? void 0 : "checkbox"),
40
+ onChange: p
41
+ }
42
+ ),
43
+ /* @__PURE__ */ r("span", { className: t(o.checkbox, c && o.filled), "aria-hidden": !0, children: c && (m ? /* @__PURE__ */ r(y, { iconSize: s, strokeColor: n }) : /* @__PURE__ */ r(I, { iconSize: s, strokeColor: n })) }),
44
+ e ? /* @__PURE__ */ r("span", { className: o.labelText, children: e }) : null
45
+ ]
46
+ }
47
+ );
48
+ };
49
+ export {
50
+ M as Checkbox
51
+ };
@@ -0,0 +1,17 @@
1
+ const e = "_checkboxWrapper_8rn6y_1", c = "_disabled_8rn6y_11", _ = "_input_8rn6y_16", l = "_checkbox_8rn6y_1", n = "_filled_8rn6y_40", t = "_labelText_8rn6y_44", o = {
2
+ checkboxWrapper: e,
3
+ disabled: c,
4
+ input: _,
5
+ checkbox: l,
6
+ filled: n,
7
+ labelText: t
8
+ };
9
+ export {
10
+ l as checkbox,
11
+ e as checkboxWrapper,
12
+ o as default,
13
+ c as disabled,
14
+ n as filled,
15
+ _ as input,
16
+ t as labelText
17
+ };
@@ -0,0 +1,37 @@
1
+ import { jsx as u } from "react/jsx-runtime";
2
+ import f from "clsx";
3
+ import r from "./DropdownList.module.scss.js";
4
+ const h = ({
5
+ children: e,
6
+ align: n = "start",
7
+ className: s,
8
+ dir: o = "down",
9
+ id: c,
10
+ maxWidth: p = "320px",
11
+ maxHeight: i,
12
+ onLoadMore: t
13
+ }) => {
14
+ const m = (d) => {
15
+ const l = d.currentTarget;
16
+ l.scrollHeight - l.scrollTop - l.clientHeight < 48 && (t == null || t());
17
+ };
18
+ return /* @__PURE__ */ u(
19
+ "ul",
20
+ {
21
+ id: c,
22
+ className: f(
23
+ r.dropdown,
24
+ o === "up" && r.dropdownUp,
25
+ n === "end" && r.alignEnd,
26
+ s
27
+ ),
28
+ role: "menu",
29
+ style: { maxWidth: p, maxHeight: i },
30
+ onScroll: m,
31
+ children: e
32
+ }
33
+ );
34
+ };
35
+ export {
36
+ h as DropdownList
37
+ };
@@ -0,0 +1,11 @@
1
+ const o = "_dropdown_i76q1_1", d = "_alignEnd_i76q1_19", n = "_dropdownUp_i76q1_24", p = {
2
+ dropdown: o,
3
+ alignEnd: d,
4
+ dropdownUp: n
5
+ };
6
+ export {
7
+ d as alignEnd,
8
+ p as default,
9
+ o as dropdown,
10
+ n as dropdownUp
11
+ };
@@ -0,0 +1,40 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { useRef as E, useState as h, useCallback as g, useLayoutEffect as x } from "react";
3
+ import k from "clsx";
4
+ import { Tooltip as v } from "../Tooltip/Tooltip.js";
5
+ import c from "./EllipsisTooltip.module.scss.js";
6
+ function y(t) {
7
+ return t ? t.scrollWidth > t.clientWidth || t.scrollHeight > t.clientHeight : !1;
8
+ }
9
+ const j = ({
10
+ children: t,
11
+ position: n = "top",
12
+ variant: f = "light",
13
+ showArrow: m = !1,
14
+ className: p,
15
+ wrapperStyle: s
16
+ }) => {
17
+ const o = E(null), [a, u] = h(!1), i = g(() => {
18
+ const l = o.current;
19
+ u(!!l && !!t && y(l));
20
+ }, [t]);
21
+ x(() => {
22
+ i();
23
+ }, [i, s]);
24
+ const e = /* @__PURE__ */ r("div", { ref: o, className: k(c.wrapper, p), style: s, children: t });
25
+ return !a || !t ? e : /* @__PURE__ */ r(
26
+ v,
27
+ {
28
+ className: c.anchor,
29
+ content: t,
30
+ position: n,
31
+ variant: f,
32
+ showArrow: m,
33
+ children: e
34
+ }
35
+ );
36
+ };
37
+ export {
38
+ j as EllipsisTooltip,
39
+ y as isEllipsisActive
40
+ };
@@ -0,0 +1,9 @@
1
+ const r = "_anchor_1vhdl_1", a = "_wrapper_1vhdl_8", o = {
2
+ anchor: r,
3
+ wrapper: a
4
+ };
5
+ export {
6
+ r as anchor,
7
+ o as default,
8
+ a as wrapper
9
+ };
@@ -0,0 +1,25 @@
1
+ import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
+ import { useState as d } from "react";
3
+ import s from "./ExpandableItem.module.scss.js";
4
+ import { ChevronDownIcon as h } from "../icons-v2/ChevronDownIcon.js";
5
+ import { ChevronUpIcon as u } from "../icons-v2/ChevronUpIcon.js";
6
+ const j = ({
7
+ title: n,
8
+ children: r,
9
+ defaultOpen: a = !1,
10
+ arrowPositionEnd: m = !1
11
+ }) => {
12
+ const [o, l] = d(a), c = (f) => {
13
+ l(f.target.open);
14
+ }, p = o ? u : h, i = m ? "space-between" : "flex-start";
15
+ return /* @__PURE__ */ t("details", { className: s.details, open: o, onToggle: c, children: [
16
+ /* @__PURE__ */ t("summary", { className: s.summary, style: { justifyContent: i }, children: [
17
+ /* @__PURE__ */ e("span", { className: s.summaryText, children: n }),
18
+ /* @__PURE__ */ e(p, {})
19
+ ] }),
20
+ /* @__PURE__ */ e("section", { children: r })
21
+ ] });
22
+ };
23
+ export {
24
+ j as ExpandableItem
25
+ };
@@ -0,0 +1,11 @@
1
+ const s = "_details_1puly_1", t = "_summary_1puly_6", m = "_summaryText_1puly_16", a = {
2
+ details: s,
3
+ summary: t,
4
+ summaryText: m
5
+ };
6
+ export {
7
+ a as default,
8
+ s as details,
9
+ t as summary,
10
+ m as summaryText
11
+ };
@@ -0,0 +1,84 @@
1
+ import { jsx as c, jsxs as x } from "react/jsx-runtime";
2
+ import o from "clsx";
3
+ import e from "./InputField.module.scss.js";
4
+ import { createField as Z } from "../InputFieldContainer.js";
5
+ const b = (
6
+ /** @type {const} */
7
+ ["lg", "md", "sm", "xs"]
8
+ ), q = ({
9
+ id: N,
10
+ name: p,
11
+ type: y = "text",
12
+ value: g,
13
+ defaultValue: D,
14
+ placeholder: w = "Text",
15
+ disabled: i = !1,
16
+ onChange: K = () => {
17
+ },
18
+ startIcon: n,
19
+ endIcon: m,
20
+ onEndIconClick: s,
21
+ onEnter: r,
22
+ onFieldClick: d,
23
+ size: f = "lg",
24
+ ariaLabel: S,
25
+ label: j,
26
+ inputProps: l = {},
27
+ containerFieldClassName: F,
28
+ content: u = null
29
+ }) => {
30
+ const T = b.includes(f) ? f : "lg", a = u != null, V = (t) => {
31
+ var h;
32
+ t.key === "Enter" && r && !i && (t.preventDefault(), r()), (h = l.onKeyDown) == null || h.call(l, t);
33
+ }, v = /* @__PURE__ */ c(
34
+ "input",
35
+ {
36
+ id: N,
37
+ name: p,
38
+ type: y,
39
+ value: a ? "" : g,
40
+ defaultValue: a ? void 0 : D,
41
+ placeholder: a ? void 0 : w,
42
+ disabled: i,
43
+ onChange: K,
44
+ "aria-label": S ?? (j ? void 0 : "input field"),
45
+ ...l,
46
+ className: o(a && e.hiddenInput, l.className),
47
+ onKeyDown: V
48
+ }
49
+ );
50
+ return /* @__PURE__ */ x(
51
+ "div",
52
+ {
53
+ className: o(
54
+ e.field,
55
+ F,
56
+ e[T],
57
+ d && e.clickable
58
+ ),
59
+ onClick: i ? void 0 : d,
60
+ children: [
61
+ n ? /* @__PURE__ */ c("span", { "data-field-icon": !0, className: o(e.icon), children: n }) : null,
62
+ a ? /* @__PURE__ */ x("div", { className: e.content, children: [
63
+ u,
64
+ v
65
+ ] }) : v,
66
+ m ? /* @__PURE__ */ c(
67
+ "span",
68
+ {
69
+ "data-field-icon": !0,
70
+ className: o(e.icon, s && e.clickable),
71
+ onClick: i ? void 0 : (t) => {
72
+ t.stopPropagation(), s == null || s();
73
+ },
74
+ children: m
75
+ }
76
+ ) : null
77
+ ]
78
+ }
79
+ );
80
+ }, H = Z(q);
81
+ export {
82
+ H as InputField,
83
+ q as InputFieldContent
84
+ };
@@ -0,0 +1,23 @@
1
+ const _ = "_field_11l7r_1", n = "_lg_11l7r_5", l = "_md_11l7r_9", c = "_sm_11l7r_13", t = "_xs_11l7r_17", s = "_icon_11l7r_21", o = "_clickable_11l7r_27", e = "_content_11l7r_34", d = "_hiddenInput_11l7r_42", i = {
2
+ field: _,
3
+ lg: n,
4
+ md: l,
5
+ sm: c,
6
+ xs: t,
7
+ icon: s,
8
+ clickable: o,
9
+ content: e,
10
+ hiddenInput: d
11
+ };
12
+ export {
13
+ o as clickable,
14
+ e as content,
15
+ i as default,
16
+ _ as field,
17
+ d as hiddenInput,
18
+ s as icon,
19
+ n as lg,
20
+ l as md,
21
+ c as sm,
22
+ t as xs
23
+ };