@reltio/design 0.0.2 → 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 (208) hide show
  1. package/components/AssistantLoader/AssistantLoader.d.ts +7 -0
  2. package/components/AssistantLoader/AssistantLoader.js +15 -0
  3. package/components/AssistantLoader/AssistantLoader.module.css.d.ts +2 -0
  4. package/components/AssistantLoader/AssistantLoader.module.css.js +101 -0
  5. package/components/AssistantLoader/AssistantLoader.module.css.json +1 -0
  6. package/components/AssistantLoader/AssistantLoader.types.d.ts +16 -0
  7. package/components/AssistantLoader/AssistantLoader.types.js +1 -0
  8. package/components/AssistantLoader/index.d.ts +2 -0
  9. package/components/AssistantLoader/index.js +1 -0
  10. package/components/Chat/Chat.d.ts +14 -0
  11. package/components/Chat/Chat.js +84 -0
  12. package/components/Chat/Chat.module.css.d.ts +2 -0
  13. package/components/Chat/Chat.module.css.js +78 -0
  14. package/components/Chat/Chat.module.css.json +1 -0
  15. package/components/Chat/Chat.types.d.ts +58 -0
  16. package/components/Chat/Chat.types.js +1 -0
  17. package/components/Chat/components/AssistantMessage/AssistantMessage.d.ts +7 -0
  18. package/components/Chat/components/AssistantMessage/AssistantMessage.js +24 -0
  19. package/components/Chat/components/AssistantMessage/AssistantMessage.module.css.d.ts +2 -0
  20. package/components/Chat/components/AssistantMessage/AssistantMessage.module.css.js +26 -0
  21. package/components/Chat/components/AssistantMessage/AssistantMessage.module.css.json +1 -0
  22. package/components/Chat/components/AssistantMessage/AssistantMessage.types.d.ts +20 -0
  23. package/components/Chat/components/AssistantMessage/AssistantMessage.types.js +1 -0
  24. package/components/Chat/components/AssistantMessage/index.d.ts +2 -0
  25. package/components/Chat/components/AssistantMessage/index.js +1 -0
  26. package/components/Chat/components/UserMessage/UserMessage.d.ts +6 -0
  27. package/components/Chat/components/UserMessage/UserMessage.js +12 -0
  28. package/components/Chat/components/UserMessage/UserMessage.module.css.d.ts +2 -0
  29. package/components/Chat/components/UserMessage/UserMessage.module.css.js +11 -0
  30. package/components/Chat/components/UserMessage/UserMessage.module.css.json +1 -0
  31. package/components/Chat/components/UserMessage/UserMessage.types.d.ts +16 -0
  32. package/components/Chat/components/UserMessage/UserMessage.types.js +1 -0
  33. package/components/Chat/components/UserMessage/index.d.ts +2 -0
  34. package/components/Chat/components/UserMessage/index.js +1 -0
  35. package/components/Chat/index.d.ts +2 -0
  36. package/components/Chat/index.js +1 -0
  37. package/components/Details/Details.d.ts +7 -0
  38. package/components/Details/Details.js +40 -0
  39. package/components/Details/Details.module.css.d.ts +2 -0
  40. package/components/Details/Details.module.css.js +105 -0
  41. package/components/Details/Details.module.css.json +1 -0
  42. package/components/Details/Details.types.d.ts +55 -0
  43. package/components/Details/Details.types.js +1 -0
  44. package/components/Details/index.d.ts +2 -0
  45. package/components/Details/index.js +1 -0
  46. package/components/ErrorBoundary/ErrorBoundary.d.ts +12 -0
  47. package/components/ErrorBoundary/ErrorBoundary.js +23 -0
  48. package/components/ErrorBoundary/ErrorBoundary.types.d.ts +25 -0
  49. package/components/ErrorBoundary/ErrorBoundary.types.js +1 -0
  50. package/components/ErrorBoundary/index.d.ts +2 -0
  51. package/components/ErrorBoundary/index.js +1 -0
  52. package/components/ErrorMessage/ErrorMessage.d.ts +6 -0
  53. package/components/ErrorMessage/ErrorMessage.js +12 -0
  54. package/components/ErrorMessage/ErrorMessage.module.css.d.ts +2 -0
  55. package/components/ErrorMessage/ErrorMessage.module.css.js +50 -0
  56. package/components/ErrorMessage/ErrorMessage.module.css.json +1 -0
  57. package/components/ErrorMessage/ErrorMessage.types.d.ts +14 -0
  58. package/components/ErrorMessage/ErrorMessage.types.js +1 -0
  59. package/components/ErrorMessage/index.d.ts +2 -0
  60. package/components/ErrorMessage/index.js +1 -0
  61. package/components/Markdown/Markdown.d.ts +8 -0
  62. package/components/Markdown/Markdown.js +26 -0
  63. package/components/Markdown/Markdown.module.css.d.ts +2 -0
  64. package/components/Markdown/Markdown.module.css.js +228 -0
  65. package/components/Markdown/Markdown.module.css.json +1 -0
  66. package/components/Markdown/Markdown.types.d.ts +54 -0
  67. package/components/Markdown/Markdown.types.js +1 -0
  68. package/components/Markdown/index.d.ts +2 -0
  69. package/components/Markdown/index.js +1 -0
  70. package/components/Markdown/markdownOverrides.d.ts +19 -0
  71. package/components/Markdown/markdownOverrides.js +36 -0
  72. package/components/Skeleton/Skeleton.d.ts +7 -0
  73. package/components/Skeleton/Skeleton.js +16 -0
  74. package/components/Skeleton/Skeleton.module.css.d.ts +2 -0
  75. package/components/Skeleton/Skeleton.module.css.js +73 -0
  76. package/components/Skeleton/Skeleton.module.css.json +1 -0
  77. package/components/Skeleton/Skeleton.types.d.ts +31 -0
  78. package/components/Skeleton/Skeleton.types.js +1 -0
  79. package/components/Skeleton/index.d.ts +2 -0
  80. package/components/Skeleton/index.js +1 -0
  81. package/components/TextArea/TextArea.d.ts +22 -0
  82. package/components/TextArea/TextArea.js +13 -0
  83. package/components/TextArea/TextArea.module.css.d.ts +2 -0
  84. package/components/TextArea/TextArea.module.css.js +159 -0
  85. package/components/TextArea/TextArea.module.css.json +1 -0
  86. package/components/TextArea/TextArea.types.d.ts +39 -0
  87. package/components/TextArea/TextArea.types.js +1 -0
  88. package/components/TextArea/index.d.ts +2 -0
  89. package/components/TextArea/index.js +1 -0
  90. package/components/TreeList/TreeList.js +8 -9
  91. package/components/TreeList/TreeList.types.d.ts +5 -3
  92. package/components/TreeList/components/TreeNode/TreeNode.js +4 -4
  93. package/components/TreeList/components/TreeNode/TreeNode.module.css.js +33 -5
  94. package/components/TreeList/components/TreeNode/TreeNode.module.css.json +1 -1
  95. package/components/TreeList/components/TreeNode/TreeNode.types.d.ts +1 -1
  96. package/components/TreeList/helpers.js +1 -1
  97. package/components/index.d.ts +10 -0
  98. package/components/index.js +10 -0
  99. package/icons/AccountCircle.d.ts +2 -0
  100. package/icons/AccountCircle.js +6 -0
  101. package/icons/Add.d.ts +2 -0
  102. package/icons/Add.js +6 -0
  103. package/icons/ArrowBack.d.ts +2 -0
  104. package/icons/ArrowBack.js +6 -0
  105. package/icons/ArrowDropDown.d.ts +2 -0
  106. package/icons/ArrowDropDown.js +6 -0
  107. package/icons/ArrowDropUp.d.ts +2 -0
  108. package/icons/ArrowDropUp.js +6 -0
  109. package/icons/ArrowForward.d.ts +2 -0
  110. package/icons/ArrowForward.js +6 -0
  111. package/icons/ArrowLeft.d.ts +2 -0
  112. package/icons/ArrowLeft.js +6 -0
  113. package/icons/ArrowRight.d.ts +2 -0
  114. package/icons/ArrowRight.js +6 -0
  115. package/icons/Attachment.d.ts +2 -0
  116. package/icons/Attachment.js +6 -0
  117. package/icons/Chat.d.ts +2 -0
  118. package/icons/Chat.js +6 -0
  119. package/icons/Check.d.ts +2 -0
  120. package/icons/Check.js +6 -0
  121. package/icons/CheckCircle.d.ts +2 -0
  122. package/icons/CheckCircle.js +6 -0
  123. package/icons/ChevronLeft.d.ts +2 -0
  124. package/icons/ChevronLeft.js +6 -0
  125. package/icons/ChevronRight.d.ts +2 -0
  126. package/icons/ChevronRight.js +6 -0
  127. package/icons/Close.d.ts +2 -0
  128. package/icons/Close.js +6 -0
  129. package/icons/CodeBrackets.d.ts +2 -0
  130. package/icons/CodeBrackets.js +6 -0
  131. package/icons/Comment.d.ts +2 -0
  132. package/icons/Comment.js +6 -0
  133. package/icons/ContentCopy.d.ts +2 -0
  134. package/icons/ContentCopy.js +6 -0
  135. package/icons/ContentPaste.d.ts +2 -0
  136. package/icons/ContentPaste.js +6 -0
  137. package/icons/Delete.d.ts +2 -0
  138. package/icons/Delete.js +6 -0
  139. package/icons/Description.d.ts +2 -0
  140. package/icons/Description.js +6 -0
  141. package/icons/Download.d.ts +2 -0
  142. package/icons/Download.js +6 -0
  143. package/icons/Edit.d.ts +2 -0
  144. package/icons/Edit.js +6 -0
  145. package/icons/Email.d.ts +2 -0
  146. package/icons/Email.js +6 -0
  147. package/icons/ErrorCircle.d.ts +2 -0
  148. package/icons/ErrorCircle.js +6 -0
  149. package/icons/ExpandLess.d.ts +2 -0
  150. package/icons/ExpandLess.js +6 -0
  151. package/icons/ExpandMore.d.ts +2 -0
  152. package/icons/ExpandMore.js +6 -0
  153. package/icons/FilterList.d.ts +2 -0
  154. package/icons/FilterList.js +6 -0
  155. package/icons/Folder.d.ts +2 -0
  156. package/icons/Folder.js +6 -0
  157. package/icons/Help.d.ts +2 -0
  158. package/icons/Help.js +6 -0
  159. package/icons/Icon.module.css.d.ts +2 -0
  160. package/icons/Icon.module.css.js +70 -0
  161. package/icons/Icon.module.css.json +1 -0
  162. package/icons/Icon.types.d.ts +13 -0
  163. package/icons/Icon.types.js +1 -0
  164. package/icons/Info.d.ts +2 -0
  165. package/icons/Info.js +6 -0
  166. package/icons/KeyboardArrowDown.d.ts +2 -0
  167. package/icons/KeyboardArrowDown.js +6 -0
  168. package/icons/KeyboardArrowUp.d.ts +2 -0
  169. package/icons/KeyboardArrowUp.js +6 -0
  170. package/icons/Logout.d.ts +2 -0
  171. package/icons/Logout.js +6 -0
  172. package/icons/Menu.d.ts +2 -0
  173. package/icons/Menu.js +6 -0
  174. package/icons/Notifications.d.ts +2 -0
  175. package/icons/Notifications.js +6 -0
  176. package/icons/People.d.ts +2 -0
  177. package/icons/People.js +6 -0
  178. package/icons/Person.d.ts +2 -0
  179. package/icons/Person.js +6 -0
  180. package/icons/Refresh.d.ts +2 -0
  181. package/icons/Refresh.js +6 -0
  182. package/icons/Remove.d.ts +2 -0
  183. package/icons/Remove.js +6 -0
  184. package/icons/Save.d.ts +2 -0
  185. package/icons/Save.js +6 -0
  186. package/icons/Search.d.ts +2 -0
  187. package/icons/Search.js +6 -0
  188. package/icons/Settings.d.ts +2 -0
  189. package/icons/Settings.js +6 -0
  190. package/icons/Share.d.ts +2 -0
  191. package/icons/Share.js +6 -0
  192. package/icons/Sort.d.ts +2 -0
  193. package/icons/Sort.js +6 -0
  194. package/icons/Upload.d.ts +2 -0
  195. package/icons/Upload.js +6 -0
  196. package/icons/Visibility.d.ts +2 -0
  197. package/icons/Visibility.js +6 -0
  198. package/icons/VisibilityOff.d.ts +2 -0
  199. package/icons/VisibilityOff.js +6 -0
  200. package/icons/Warning.d.ts +2 -0
  201. package/icons/Warning.js +6 -0
  202. package/icons/index.d.ts +52 -0
  203. package/icons/index.js +101 -0
  204. package/package.json +8 -7
  205. package/packages/design/index.d.ts +1 -2
  206. package/packages/design/index.js +1 -2
  207. package/components/TreeList/components/ChevronIcon.d.ts +0 -5
  208. package/components/TreeList/components/ChevronIcon.js +0 -8
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { classNames } from "../utils/classNames";
3
+ import styles from "./Icon.module.css";
4
+ export const Notifications = ({ size = "medium", color = "inherited", className, style, "aria-label": ariaLabel, }) => {
5
+ return (_jsx("svg", { className: classNames(styles.root, styles[size], styles[color], className), style: style, viewBox: "0 -960 960 960", "aria-hidden": !ariaLabel, "aria-label": ariaLabel, role: ariaLabel ? "img" : undefined, children: _jsx("path", { d: "M160-200v-80h80v-280q0-83 50-147.5T420-792v-28q0-25 17.5-42.5T480-880q25 0 42.5 17.5T540-820v28q80 20 130 84.5T720-560v280h80v80H160Zm320-300Zm0 420q-33 0-56.5-23.5T400-160h160q0 33-23.5 56.5T480-80ZM320-280h320v-280q0-66-47-113t-113-47q-66 0-113 47t-47 113v280Z" }) }));
6
+ };
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from "./Icon.types";
2
+ export declare const People: ({ size, color, className, style, "aria-label": ariaLabel, }: IconProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { classNames } from "../utils/classNames";
3
+ import styles from "./Icon.module.css";
4
+ export const People = ({ size = "medium", color = "inherited", className, style, "aria-label": ariaLabel, }) => {
5
+ return (_jsx("svg", { className: classNames(styles.root, styles[size], styles[color], className), style: style, viewBox: "0 -960 960 960", "aria-hidden": !ariaLabel, "aria-label": ariaLabel, role: ariaLabel ? "img" : undefined, children: _jsx("path", { d: "M40-160v-112q0-34 17.5-62.5T104-378q62-31 126-46.5T360-440q66 0 130 15.5T616-378q29 15 46.5 43.5T680-272v112H40Zm720 0v-120q0-44-24.5-84.5T666-434q51 6 96 20.5t84 35.5q36 20 55 44.5t19 53.5v120H760ZM360-480q-66 0-113-47t-47-113q0-66 47-113t113-47q66 0 113 47t47 113q0 66-47 113t-113 47Zm400-160q0 66-47 113t-113 47q-11 0-28-2.5t-28-5.5q27-32 41.5-71t14.5-81q0-42-14.5-81T544-792q14-5 28-6.5t28-1.5q66 0 113 47t47 113ZM120-240h480v-32q0-11-5.5-20T580-306q-54-27-109-40.5T360-360q-56 0-111 13.5T140-306q-9 5-14.5 14t-5.5 20v32Zm240-320q33 0 56.5-23.5T440-640q0-33-23.5-56.5T360-720q-33 0-56.5 23.5T280-640q0 33 23.5 56.5T360-560Zm0 320Zm0-400Z" }) }));
6
+ };
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from "./Icon.types";
2
+ export declare const Person: ({ size, color, className, style, "aria-label": ariaLabel, }: IconProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { classNames } from "../utils/classNames";
3
+ import styles from "./Icon.module.css";
4
+ export const Person = ({ size = "medium", color = "inherited", className, style, "aria-label": ariaLabel, }) => {
5
+ return (_jsx("svg", { className: classNames(styles.root, styles[size], styles[color], className), style: style, viewBox: "0 -960 960 960", "aria-hidden": !ariaLabel, "aria-label": ariaLabel, role: ariaLabel ? "img" : undefined, children: _jsx("path", { d: "M480-480q-66 0-113-47t-47-113q0-66 47-113t113-47q66 0 113 47t47 113q0 66-47 113t-113 47ZM160-160v-112q0-34 17.5-62.5T224-378q62-31 126-46.5T480-440q66 0 130 15.5T736-378q29 15 46.5 43.5T800-272v112H160Zm80-80h480v-32q0-11-5.5-20T700-306q-54-27-109-40.5T480-360q-56 0-111 13.5T260-306q-9 5-14.5 14t-5.5 20v32Zm240-320q33 0 56.5-23.5T560-640q0-33-23.5-56.5T480-720q-33 0-56.5 23.5T400-640q0 33 23.5 56.5T480-560Zm0-80Zm0 400Z" }) }));
6
+ };
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from "./Icon.types";
2
+ export declare const Refresh: ({ size, color, className, style, "aria-label": ariaLabel, }: IconProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { classNames } from "../utils/classNames";
3
+ import styles from "./Icon.module.css";
4
+ export const Refresh = ({ size = "medium", color = "inherited", className, style, "aria-label": ariaLabel, }) => {
5
+ return (_jsx("svg", { className: classNames(styles.root, styles[size], styles[color], className), style: style, viewBox: "0 -960 960 960", "aria-hidden": !ariaLabel, "aria-label": ariaLabel, role: ariaLabel ? "img" : undefined, children: _jsx("path", { d: "M480-160q-134 0-227-93t-93-227q0-134 93-227t227-93q69 0 132 28.5T720-690v-110h80v280H520v-80h168q-32-56-87.5-88T480-720q-100 0-170 70t-70 170q0 100 70 170t170 70q77 0 139-44t87-116h84q-28 106-114 173t-196 67Z" }) }));
6
+ };
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from "./Icon.types";
2
+ export declare const Remove: ({ size, color, className, style, "aria-label": ariaLabel, }: IconProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { classNames } from "../utils/classNames";
3
+ import styles from "./Icon.module.css";
4
+ export const Remove = ({ size = "medium", color = "inherited", className, style, "aria-label": ariaLabel, }) => {
5
+ return (_jsx("svg", { className: classNames(styles.root, styles[size], styles[color], className), style: style, viewBox: "0 -960 960 960", "aria-hidden": !ariaLabel, "aria-label": ariaLabel, role: ariaLabel ? "img" : undefined, children: _jsx("path", { d: "M200-440v-80h560v80H200Z" }) }));
6
+ };
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from "./Icon.types";
2
+ export declare const Save: ({ size, color, className, style, "aria-label": ariaLabel, }: IconProps) => import("react/jsx-runtime").JSX.Element;
package/icons/Save.js ADDED
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { classNames } from "../utils/classNames";
3
+ import styles from "./Icon.module.css";
4
+ export const Save = ({ size = "medium", color = "inherited", className, style, "aria-label": ariaLabel, }) => {
5
+ return (_jsx("svg", { className: classNames(styles.root, styles[size], styles[color], className), style: style, viewBox: "0 -960 960 960", "aria-hidden": !ariaLabel, "aria-label": ariaLabel, role: ariaLabel ? "img" : undefined, children: _jsx("path", { d: "M840-680v480q0 33-23.5 56.5T760-120H200q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h480l160 160Zm-80 34L646-760H200v560h560v-446ZM480-240q50 0 85-35t35-85q0-50-35-85t-85-35q-50 0-85 35t-35 85q0 50 35 85t85 35ZM240-560h360v-160H240v160Zm-40-86v446-560 114Z" }) }));
6
+ };
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from "./Icon.types";
2
+ export declare const Search: ({ size, color, className, style, "aria-label": ariaLabel, }: IconProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { classNames } from "../utils/classNames";
3
+ import styles from "./Icon.module.css";
4
+ export const Search = ({ size = "medium", color = "inherited", className, style, "aria-label": ariaLabel, }) => {
5
+ return (_jsx("svg", { className: classNames(styles.root, styles[size], styles[color], className), style: style, viewBox: "0 -960 960 960", "aria-hidden": !ariaLabel, "aria-label": ariaLabel, role: ariaLabel ? "img" : undefined, children: _jsx("path", { d: "M784-120 532-372q-30 24-69 38t-83 14q-109 0-184.5-75.5T120-580q0-109 75.5-184.5T380-840q109 0 184.5 75.5T640-580q0 44-14 83t-38 69l252 252-56 56ZM380-400q75 0 127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75 0-127.5 52.5T200-580q0 75 52.5 127.5T380-400Z" }) }));
6
+ };
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from "./Icon.types";
2
+ export declare const Settings: ({ size, color, className, style, "aria-label": ariaLabel, }: IconProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { classNames } from "../utils/classNames";
3
+ import styles from "./Icon.module.css";
4
+ export const Settings = ({ size = "medium", color = "inherited", className, style, "aria-label": ariaLabel, }) => {
5
+ return (_jsx("svg", { className: classNames(styles.root, styles[size], styles[color], className), style: style, viewBox: "0 -960 960 960", "aria-hidden": !ariaLabel, "aria-label": ariaLabel, role: ariaLabel ? "img" : undefined, children: _jsx("path", { d: "m370-80-16-128q-13-5-24.5-12T307-235l-119 50L78-375l103-78q-1-7-1-13.5v-27q0-6.5 1-13.5L78-585l110-190 119 50q11-8 23-15t24-12l16-128h220l16 128q13 5 24.5 12t22.5 15l119-50 110 190-103 78q1 7 1 13.5v27q0 6.5-2 13.5l103 78-110 190-118-50q-11 8-23 15t-24 12L590-80H370Zm70-80h79l14-106q31-8 57.5-23.5T639-327l99 41 39-68-86-65q5-14 7-29.5t2-31.5q0-16-2-31.5t-7-29.5l86-65-39-68-99 42q-22-23-48.5-38.5T533-694l-13-106h-79l-14 106q-31 8-57.5 23.5T321-633l-99-41-39 68 86 64q-5 15-7 30t-2 32q0 16 2 31t7 30l-86 65 39 68 99-42q22 23 48.5 38.5T427-266l13 106Zm42-180q58 0 99-41t41-99q0-58-41-99t-99-41q-59 0-99.5 41T342-480q0 58 40.5 99t99.5 41Zm-2-140Z" }) }));
6
+ };
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from "./Icon.types";
2
+ export declare const Share: ({ size, color, className, style, "aria-label": ariaLabel, }: IconProps) => import("react/jsx-runtime").JSX.Element;
package/icons/Share.js ADDED
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { classNames } from "../utils/classNames";
3
+ import styles from "./Icon.module.css";
4
+ export const Share = ({ size = "medium", color = "inherited", className, style, "aria-label": ariaLabel, }) => {
5
+ return (_jsx("svg", { className: classNames(styles.root, styles[size], styles[color], className), style: style, viewBox: "0 -960 960 960", "aria-hidden": !ariaLabel, "aria-label": ariaLabel, role: ariaLabel ? "img" : undefined, children: _jsx("path", { d: "M680-80q-50 0-85-35t-35-85q0-6 3-28L282-392q-16 15-37 23.5t-45 8.5q-50 0-85-35t-35-85q0-50 35-85t85-35q24 0 45 8.5t37 23.5l281-164q-2-7-2.5-13.5T560-760q0-50 35-85t85-35q50 0 85 35t35 85q0 50-35 85t-85 35q-24 0-45-8.5T598-672L317-508q2 7 2.5 13.5t.5 14.5q0 8-.5 14.5T317-452l281 164q16-15 37-23.5t45-8.5q50 0 85 35t35 85q0 50-35 85t-85 35Zm0-80q17 0 28.5-11.5T720-200q0-17-11.5-28.5T680-240q-17 0-28.5 11.5T640-200q0 17 11.5 28.5T680-160ZM200-440q17 0 28.5-11.5T240-480q0-17-11.5-28.5T200-520q-17 0-28.5 11.5T160-480q0 17 11.5 28.5T200-440Zm480-280q17 0 28.5-11.5T720-760q0-17-11.5-28.5T680-800q-17 0-28.5 11.5T640-760q0 17 11.5 28.5T680-720Zm0 520ZM200-480Zm480-280Z" }) }));
6
+ };
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from "./Icon.types";
2
+ export declare const Sort: ({ size, color, className, style, "aria-label": ariaLabel, }: IconProps) => import("react/jsx-runtime").JSX.Element;
package/icons/Sort.js ADDED
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { classNames } from "../utils/classNames";
3
+ import styles from "./Icon.module.css";
4
+ export const Sort = ({ size = "medium", color = "inherited", className, style, "aria-label": ariaLabel, }) => {
5
+ return (_jsx("svg", { className: classNames(styles.root, styles[size], styles[color], className), style: style, viewBox: "0 -960 960 960", "aria-hidden": !ariaLabel, "aria-label": ariaLabel, role: ariaLabel ? "img" : undefined, children: _jsx("path", { d: "M120-240v-80h240v80H120Zm0-200v-80h480v80H120Zm0-200v-80h720v80H120Z" }) }));
6
+ };
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from "./Icon.types";
2
+ export declare const Upload: ({ size, color, className, style, "aria-label": ariaLabel, }: IconProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { classNames } from "../utils/classNames";
3
+ import styles from "./Icon.module.css";
4
+ export const Upload = ({ size = "medium", color = "inherited", className, style, "aria-label": ariaLabel, }) => {
5
+ return (_jsx("svg", { className: classNames(styles.root, styles[size], styles[color], className), style: style, viewBox: "0 -960 960 960", "aria-hidden": !ariaLabel, "aria-label": ariaLabel, role: ariaLabel ? "img" : undefined, children: _jsx("path", { d: "M440-320v-326L336-542l-56-58 200-200 200 200-56 58-104-104v326h-80ZM240-160q-33 0-56.5-23.5T160-240v-120h80v120h480v-120h80v120q0 33-23.5 56.5T720-160H240Z" }) }));
6
+ };
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from "./Icon.types";
2
+ export declare const Visibility: ({ size, color, className, style, "aria-label": ariaLabel, }: IconProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { classNames } from "../utils/classNames";
3
+ import styles from "./Icon.module.css";
4
+ export const Visibility = ({ size = "medium", color = "inherited", className, style, "aria-label": ariaLabel, }) => {
5
+ return (_jsx("svg", { className: classNames(styles.root, styles[size], styles[color], className), style: style, viewBox: "0 -960 960 960", "aria-hidden": !ariaLabel, "aria-label": ariaLabel, role: ariaLabel ? "img" : undefined, children: _jsx("path", { d: "M480-320q75 0 127.5-52.5T660-500q0-75-52.5-127.5T480-680q-75 0-127.5 52.5T300-500q0 75 52.5 127.5T480-320Zm0-72q-45 0-76.5-31.5T372-500q0-45 31.5-76.5T480-608q45 0 76.5 31.5T588-500q0 45-31.5 76.5T480-392Zm0 192q-146 0-266-81.5T40-500q54-137 174-218.5T480-800q146 0 266 81.5T920-500q-54 137-174 218.5T480-200Zm0-300Zm0 220q113 0 207.5-59.5T832-500q-50-101-144.5-160.5T480-720q-113 0-207.5 59.5T128-500q50 101 144.5 160.5T480-280Z" }) }));
6
+ };
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from "./Icon.types";
2
+ export declare const VisibilityOff: ({ size, color, className, style, "aria-label": ariaLabel, }: IconProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { classNames } from "../utils/classNames";
3
+ import styles from "./Icon.module.css";
4
+ export const VisibilityOff = ({ size = "medium", color = "inherited", className, style, "aria-label": ariaLabel, }) => {
5
+ return (_jsx("svg", { className: classNames(styles.root, styles[size], styles[color], className), style: style, viewBox: "0 -960 960 960", "aria-hidden": !ariaLabel, "aria-label": ariaLabel, role: ariaLabel ? "img" : undefined, children: _jsx("path", { d: "m644-428-58-58q9-47-27-88t-93-32l-58-58q17-8 34.5-12t37.5-4q75 0 127.5 52.5T660-500q0 20-4 37.5T644-428Zm128 126-58-56q38-29 67.5-63.5T832-500q-50-101-143.5-160.5T480-720q-29 0-57 4t-55 12l-62-62q41-17 84-25.5t90-8.5q151 0 269 83.5T920-500q-23 59-60.5 109.5T772-302Zm20 246L624-222q-35 11-70.5 16.5T480-200q-151 0-269-83.5T40-500q21-53 53-98.5t73-81.5L56-792l56-56 736 736-56 56ZM222-624q-29 26-53 57t-41 67q50 101 143.5 160.5T480-280q20 0 39-2.5t39-5.5l-36-38q-11 3-21 4.5t-21 1.5q-75 0-127.5-52.5T300-500q0-11 1.5-21t4.5-21l-84-82Zm319 93Zm-151 75Z" }) }));
6
+ };
@@ -0,0 +1,2 @@
1
+ import type { IconProps } from "./Icon.types";
2
+ export declare const Warning: ({ size, color, className, style, "aria-label": ariaLabel, }: IconProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { classNames } from "../utils/classNames";
3
+ import styles from "./Icon.module.css";
4
+ export const Warning = ({ size = "medium", color = "inherited", className, style, "aria-label": ariaLabel, }) => {
5
+ return (_jsx("svg", { className: classNames(styles.root, styles[size], styles[color], className), style: style, viewBox: "0 -960 960 960", "aria-hidden": !ariaLabel, "aria-label": ariaLabel, role: ariaLabel ? "img" : undefined, children: _jsx("path", { d: "m40-120 440-760 440 760H40Zm138-80h604L480-720 178-200Zm302-40q17 0 28.5-11.5T520-280q0-17-11.5-28.5T480-320q-17 0-28.5 11.5T440-280q0 17 11.5 28.5T480-240Zm-40-120h80v-200h-80v200Zm40-100Z" }) }));
6
+ };
@@ -0,0 +1,52 @@
1
+ export type { IconColor, IconProps, IconSize } from "./Icon.types";
2
+ import { AccountCircle } from "./AccountCircle";
3
+ import { Add } from "./Add";
4
+ import { ArrowBack } from "./ArrowBack";
5
+ import { ArrowDropDown } from "./ArrowDropDown";
6
+ import { ArrowDropUp } from "./ArrowDropUp";
7
+ import { ArrowForward } from "./ArrowForward";
8
+ import { ArrowLeft } from "./ArrowLeft";
9
+ import { ArrowRight } from "./ArrowRight";
10
+ import { Attachment } from "./Attachment";
11
+ import { Chat } from "./Chat";
12
+ import { Check } from "./Check";
13
+ import { CheckCircle } from "./CheckCircle";
14
+ import { ChevronLeft } from "./ChevronLeft";
15
+ import { ChevronRight } from "./ChevronRight";
16
+ import { Close } from "./Close";
17
+ import { CodeBrackets } from "./CodeBrackets";
18
+ import { Comment } from "./Comment";
19
+ import { ContentCopy } from "./ContentCopy";
20
+ import { ContentPaste } from "./ContentPaste";
21
+ import { Delete } from "./Delete";
22
+ import { Description } from "./Description";
23
+ import { Download } from "./Download";
24
+ import { Edit } from "./Edit";
25
+ import { Email } from "./Email";
26
+ import { ErrorCircle } from "./ErrorCircle";
27
+ import { ExpandLess } from "./ExpandLess";
28
+ import { ExpandMore } from "./ExpandMore";
29
+ import { FilterList } from "./FilterList";
30
+ import { Folder } from "./Folder";
31
+ import { Help } from "./Help";
32
+ import { Info } from "./Info";
33
+ import { KeyboardArrowDown } from "./KeyboardArrowDown";
34
+ import { KeyboardArrowUp } from "./KeyboardArrowUp";
35
+ import { Logout } from "./Logout";
36
+ import { Menu } from "./Menu";
37
+ import { Notifications } from "./Notifications";
38
+ import { People } from "./People";
39
+ import { Person } from "./Person";
40
+ import { Refresh } from "./Refresh";
41
+ import { Remove } from "./Remove";
42
+ import { Save } from "./Save";
43
+ import { Search } from "./Search";
44
+ import { Settings } from "./Settings";
45
+ import { Share } from "./Share";
46
+ import { Sort } from "./Sort";
47
+ import { Upload } from "./Upload";
48
+ import { Visibility } from "./Visibility";
49
+ import { VisibilityOff } from "./VisibilityOff";
50
+ import { Warning } from "./Warning";
51
+ export { AccountCircle, Add, ArrowBack, ArrowDropDown, ArrowDropUp, ArrowForward, ArrowLeft, ArrowRight, Attachment, Chat, Check, CheckCircle, ChevronLeft, ChevronRight, Close, CodeBrackets, Comment, ContentCopy, ContentPaste, Delete, Description, Download, Edit, Email, ErrorCircle, ExpandLess, ExpandMore, FilterList, Folder, Help, Info, KeyboardArrowDown, KeyboardArrowUp, Logout, Menu, Notifications, People, Person, Refresh, Remove, Save, Search, Settings, Share, Sort, Upload, Visibility, VisibilityOff, Warning, };
52
+ export declare const iconMap: Record<string, React.ComponentType<import("./Icon.types").IconProps>>;
package/icons/index.js ADDED
@@ -0,0 +1,101 @@
1
+ import { AccountCircle } from "./AccountCircle";
2
+ import { Add } from "./Add";
3
+ import { ArrowBack } from "./ArrowBack";
4
+ import { ArrowDropDown } from "./ArrowDropDown";
5
+ import { ArrowDropUp } from "./ArrowDropUp";
6
+ import { ArrowForward } from "./ArrowForward";
7
+ import { ArrowLeft } from "./ArrowLeft";
8
+ import { ArrowRight } from "./ArrowRight";
9
+ import { Attachment } from "./Attachment";
10
+ import { Chat } from "./Chat";
11
+ import { Check } from "./Check";
12
+ import { CheckCircle } from "./CheckCircle";
13
+ import { ChevronLeft } from "./ChevronLeft";
14
+ import { ChevronRight } from "./ChevronRight";
15
+ import { Close } from "./Close";
16
+ import { CodeBrackets } from "./CodeBrackets";
17
+ import { Comment } from "./Comment";
18
+ import { ContentCopy } from "./ContentCopy";
19
+ import { ContentPaste } from "./ContentPaste";
20
+ import { Delete } from "./Delete";
21
+ import { Description } from "./Description";
22
+ import { Download } from "./Download";
23
+ import { Edit } from "./Edit";
24
+ import { Email } from "./Email";
25
+ import { ErrorCircle } from "./ErrorCircle";
26
+ import { ExpandLess } from "./ExpandLess";
27
+ import { ExpandMore } from "./ExpandMore";
28
+ import { FilterList } from "./FilterList";
29
+ import { Folder } from "./Folder";
30
+ import { Help } from "./Help";
31
+ import { Info } from "./Info";
32
+ import { KeyboardArrowDown } from "./KeyboardArrowDown";
33
+ import { KeyboardArrowUp } from "./KeyboardArrowUp";
34
+ import { Logout } from "./Logout";
35
+ import { Menu } from "./Menu";
36
+ import { Notifications } from "./Notifications";
37
+ import { People } from "./People";
38
+ import { Person } from "./Person";
39
+ import { Refresh } from "./Refresh";
40
+ import { Remove } from "./Remove";
41
+ import { Save } from "./Save";
42
+ import { Search } from "./Search";
43
+ import { Settings } from "./Settings";
44
+ import { Share } from "./Share";
45
+ import { Sort } from "./Sort";
46
+ import { Upload } from "./Upload";
47
+ import { Visibility } from "./Visibility";
48
+ import { VisibilityOff } from "./VisibilityOff";
49
+ import { Warning } from "./Warning";
50
+ export { AccountCircle, Add, ArrowBack, ArrowDropDown, ArrowDropUp, ArrowForward, ArrowLeft, ArrowRight, Attachment, Chat, Check, CheckCircle, ChevronLeft, ChevronRight, Close, CodeBrackets, Comment, ContentCopy, ContentPaste, Delete, Description, Download, Edit, Email, ErrorCircle, ExpandLess, ExpandMore, FilterList, Folder, Help, Info, KeyboardArrowDown, KeyboardArrowUp, Logout, Menu, Notifications, People, Person, Refresh, Remove, Save, Search, Settings, Share, Sort, Upload, Visibility, VisibilityOff, Warning, };
51
+ export const iconMap = {
52
+ AccountCircle: AccountCircle,
53
+ Add: Add,
54
+ ArrowBack: ArrowBack,
55
+ ArrowDropDown: ArrowDropDown,
56
+ ArrowDropUp: ArrowDropUp,
57
+ ArrowForward: ArrowForward,
58
+ ArrowLeft: ArrowLeft,
59
+ ArrowRight: ArrowRight,
60
+ Attachment: Attachment,
61
+ Chat: Chat,
62
+ Check: Check,
63
+ CheckCircle: CheckCircle,
64
+ ChevronLeft: ChevronLeft,
65
+ ChevronRight: ChevronRight,
66
+ Close: Close,
67
+ CodeBrackets: CodeBrackets,
68
+ Comment: Comment,
69
+ ContentCopy: ContentCopy,
70
+ ContentPaste: ContentPaste,
71
+ Delete: Delete,
72
+ Description: Description,
73
+ Download: Download,
74
+ Edit: Edit,
75
+ Email: Email,
76
+ ErrorCircle: ErrorCircle,
77
+ ExpandLess: ExpandLess,
78
+ ExpandMore: ExpandMore,
79
+ FilterList: FilterList,
80
+ Folder: Folder,
81
+ Help: Help,
82
+ Info: Info,
83
+ KeyboardArrowDown: KeyboardArrowDown,
84
+ KeyboardArrowUp: KeyboardArrowUp,
85
+ Logout: Logout,
86
+ Menu: Menu,
87
+ Notifications: Notifications,
88
+ People: People,
89
+ Person: Person,
90
+ Refresh: Refresh,
91
+ Remove: Remove,
92
+ Save: Save,
93
+ Search: Search,
94
+ Settings: Settings,
95
+ Share: Share,
96
+ Sort: Sort,
97
+ Upload: Upload,
98
+ Visibility: Visibility,
99
+ VisibilityOff: VisibilityOff,
100
+ Warning: Warning,
101
+ };
package/package.json CHANGED
@@ -1,23 +1,24 @@
1
1
  {
2
2
  "name": "@reltio/design",
3
- "version": "0.0.2",
3
+ "version": "0.1.0",
4
4
  "main": "packages/design/index.js",
5
- "description": "Reltio Design System",
5
+ "description": "Reltio Design Platform",
6
6
  "peerDependencies": {
7
- "react": ">=17 <20",
8
- "react-dom": ">=17 <20"
7
+ "react": ">=18 <20",
8
+ "react-dom": ">=18 <20"
9
9
  },
10
10
  "dependencies": {
11
11
  "style-inject": "^0.3.0",
12
- "rc-tree": "^5.13.1"
12
+ "rc-tree": "^5.13.1",
13
+ "markdown-to-jsx": "^9.7.3"
13
14
  },
14
15
  "scripts": {
15
16
  "build": "node build-css.mjs && tsc && tsc-alias",
16
17
  "postbuild": "cp package.json dist/ && cp README.md dist/"
17
18
  },
18
19
  "devDependencies": {
19
- "@types/react": "^17.0.83",
20
- "@types/react-dom": "^17.0.26",
20
+ "@types/react": "^18",
21
+ "@types/react-dom": "^18",
21
22
  "glob": "^11.0.0",
22
23
  "postcss": "^8.4.49",
23
24
  "postcss-modules": "^6.0.1",
@@ -1,2 +1 @@
1
- export * from "../../components/Button";
2
- export * from "../../components/TreeList";
1
+ export * from "../../components";
@@ -1,2 +1 @@
1
- export * from "../../components/Button";
2
- export * from "../../components/TreeList";
1
+ export * from "../../components";
@@ -1,5 +0,0 @@
1
- type Props = {
2
- expanded: boolean;
3
- };
4
- export declare const ChevronIcon: ({ expanded }: Props) => import("react/jsx-runtime").JSX.Element;
5
- export {};
@@ -1,8 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- export const ChevronIcon = ({ expanded }) => {
3
- return (_jsx("svg", { viewBox: "0 0 24 24", style: {
4
- transform: expanded ? "rotate(0deg)" : "rotate(-90deg)",
5
- transition: "transform 0.2s ease",
6
- transformOrigin: "50% 50%",
7
- }, "aria-hidden": "true", children: _jsx("polygon", { points: "6,9 18,9 12,16", fill: "currentColor" }) }));
8
- };