@fibery/ui-kit 1.29.4 → 1.30.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 (307) hide show
  1. package/package.json +6 -5
  2. package/src/button/button.tsx +38 -4
  3. package/src/button/icon-button.tsx +33 -11
  4. package/src/design-system.ts +87 -11
  5. package/src/emoji-picker/use-emoji-found.tsx +6 -0
  6. package/src/icons/Icon.tsx +58 -49
  7. package/src/icons/ast/AiAssistant.ts +1 -1
  8. package/src/icons/ast/Clear.ts +8 -0
  9. package/src/icons/ast/PinFilled.ts +8 -0
  10. package/src/icons/ast/index.tsx +2 -0
  11. package/src/icons/react/Abort.tsx +4 -3
  12. package/src/icons/react/Activity.tsx +4 -3
  13. package/src/icons/react/ActivityLog.tsx +4 -3
  14. package/src/icons/react/Add.tsx +4 -3
  15. package/src/icons/react/AddAfter.tsx +4 -3
  16. package/src/icons/react/AddBefore.tsx +4 -3
  17. package/src/icons/react/AddCompact.tsx +4 -3
  18. package/src/icons/react/AddGroup.tsx +4 -3
  19. package/src/icons/react/AddReactions.tsx +4 -3
  20. package/src/icons/react/AiAssistant.tsx +4 -3
  21. package/src/icons/react/AiAvatar.tsx +4 -3
  22. package/src/icons/react/AlertTriangle.tsx +4 -3
  23. package/src/icons/react/App.tsx +4 -3
  24. package/src/icons/react/AppDetails.tsx +4 -3
  25. package/src/icons/react/AppStore.tsx +4 -3
  26. package/src/icons/react/AppStoreOneColor.tsx +4 -3
  27. package/src/icons/react/AppTemplates.tsx +4 -3
  28. package/src/icons/react/AppWebhooks.tsx +4 -3
  29. package/src/icons/react/AppWiki.tsx +4 -3
  30. package/src/icons/react/ArrowBarLeft.tsx +4 -3
  31. package/src/icons/react/ArrowBarRight.tsx +4 -3
  32. package/src/icons/react/ArrowBottom.tsx +4 -3
  33. package/src/icons/react/ArrowCollapse.tsx +4 -3
  34. package/src/icons/react/ArrowCollapseVertical.tsx +4 -3
  35. package/src/icons/react/ArrowForward.tsx +4 -3
  36. package/src/icons/react/ArrowLeft.tsx +4 -3
  37. package/src/icons/react/ArrowRight.tsx +4 -3
  38. package/src/icons/react/ArrowTop.tsx +4 -3
  39. package/src/icons/react/AskForInput.tsx +4 -3
  40. package/src/icons/react/Atom.tsx +4 -3
  41. package/src/icons/react/AutomationsCancelled.tsx +4 -3
  42. package/src/icons/react/AutomationsDisabled.tsx +4 -3
  43. package/src/icons/react/AutomationsError.tsx +4 -3
  44. package/src/icons/react/AutomationsInProgress.tsx +4 -3
  45. package/src/icons/react/AutomationsNotStarted.tsx +4 -3
  46. package/src/icons/react/AutomationsSuccess.tsx +4 -3
  47. package/src/icons/react/Back.tsx +4 -3
  48. package/src/icons/react/BacklogIcon.tsx +4 -3
  49. package/src/icons/react/BatchActionsIcon.tsx +4 -3
  50. package/src/icons/react/BellCircle.tsx +4 -3
  51. package/src/icons/react/BellFilled.tsx +4 -3
  52. package/src/icons/react/BellOff.tsx +4 -3
  53. package/src/icons/react/BellRinging.tsx +4 -3
  54. package/src/icons/react/BellX.tsx +4 -3
  55. package/src/icons/react/Bolt.tsx +4 -3
  56. package/src/icons/react/Cards.tsx +4 -3
  57. package/src/icons/react/Chat.tsx +4 -3
  58. package/src/icons/react/ChatAi.tsx +4 -3
  59. package/src/icons/react/CheckCircle.tsx +4 -3
  60. package/src/icons/react/CheckCircleFilled.tsx +4 -3
  61. package/src/icons/react/Checked.tsx +4 -3
  62. package/src/icons/react/Clear.tsx +13 -0
  63. package/src/icons/react/ClearValue.tsx +4 -3
  64. package/src/icons/react/Clock.tsx +4 -3
  65. package/src/icons/react/ClockAlarm.tsx +4 -3
  66. package/src/icons/react/ClockForward.tsx +4 -3
  67. package/src/icons/react/Close.tsx +4 -3
  68. package/src/icons/react/ColorCoding.tsx +4 -3
  69. package/src/icons/react/ColorCodingFilled.tsx +4 -3
  70. package/src/icons/react/Columns.tsx +4 -3
  71. package/src/icons/react/Columns2.tsx +4 -3
  72. package/src/icons/react/Columns4.tsx +4 -3
  73. package/src/icons/react/Copy.tsx +4 -3
  74. package/src/icons/react/Database.tsx +4 -3
  75. package/src/icons/react/DatabaseStroke.tsx +4 -3
  76. package/src/icons/react/Delete.tsx +4 -3
  77. package/src/icons/react/Demo.tsx +4 -3
  78. package/src/icons/react/DoubleArrowLeft.tsx +4 -3
  79. package/src/icons/react/DoubleArrowRight.tsx +4 -3
  80. package/src/icons/react/DragBlockHandle.tsx +4 -3
  81. package/src/icons/react/DragBlockHandleSingle.tsx +4 -3
  82. package/src/icons/react/DragHandle.tsx +4 -3
  83. package/src/icons/react/DynamicFilterValue.tsx +4 -3
  84. package/src/icons/react/Email.tsx +4 -3
  85. package/src/icons/react/EmojiDelete.tsx +4 -3
  86. package/src/icons/react/Export.tsx +4 -3
  87. package/src/icons/react/ExtensionAssignments.tsx +4 -3
  88. package/src/icons/react/ExtensionAvatar.tsx +4 -3
  89. package/src/icons/react/ExtensionComments.tsx +4 -3
  90. package/src/icons/react/ExtensionFiles.tsx +4 -3
  91. package/src/icons/react/ExtensionReferences.tsx +4 -3
  92. package/src/icons/react/ExtensionWorkflow.tsx +4 -3
  93. package/src/icons/react/Eye.tsx +4 -3
  94. package/src/icons/react/Favorites.tsx +4 -3
  95. package/src/icons/react/FavoritesChecked.tsx +4 -3
  96. package/src/icons/react/FavoritesOff.tsx +4 -3
  97. package/src/icons/react/FiberyMono.tsx +4 -3
  98. package/src/icons/react/FieldUnit.tsx +4 -3
  99. package/src/icons/react/Fields.tsx +4 -3
  100. package/src/icons/react/Figma.tsx +4 -3
  101. package/src/icons/react/FileUpload.tsx +4 -3
  102. package/src/icons/react/Filter.tsx +4 -3
  103. package/src/icons/react/FocusMode.tsx +4 -3
  104. package/src/icons/react/FocusModeOff.tsx +4 -3
  105. package/src/icons/react/FormWithCover.tsx +4 -3
  106. package/src/icons/react/FormWithoutCover.tsx +4 -3
  107. package/src/icons/react/Github.tsx +4 -3
  108. package/src/icons/react/Gitlab.tsx +4 -3
  109. package/src/icons/react/Globe.tsx +4 -3
  110. package/src/icons/react/GlobeSimple.tsx +4 -3
  111. package/src/icons/react/GoogleDrive.tsx +4 -3
  112. package/src/icons/react/GoogleMap.tsx +4 -3
  113. package/src/icons/react/Headphones.tsx +4 -3
  114. package/src/icons/react/HeadphonesAi.tsx +4 -3
  115. package/src/icons/react/Hide.tsx +4 -3
  116. package/src/icons/react/Highlights.tsx +4 -3
  117. package/src/icons/react/Hint.tsx +4 -3
  118. package/src/icons/react/Home.tsx +4 -3
  119. package/src/icons/react/ImageXmark.tsx +4 -3
  120. package/src/icons/react/Import.tsx +4 -3
  121. package/src/icons/react/InfoCircle.tsx +4 -3
  122. package/src/icons/react/InfoCircleFilled.tsx +4 -3
  123. package/src/icons/react/Integration.tsx +4 -3
  124. package/src/icons/react/IntegrationsIntegrationDiscourseColor.tsx +4 -3
  125. package/src/icons/react/IntegrationsIntegrationIntercomColor.tsx +4 -3
  126. package/src/icons/react/IntegrationsIntegrationSlackColor.tsx +4 -3
  127. package/src/icons/react/IntegrationsIntegrationZendeskColor.tsx +4 -3
  128. package/src/icons/react/InvitePeople.tsx +4 -3
  129. package/src/icons/react/Items.tsx +4 -3
  130. package/src/icons/react/Jira.tsx +4 -3
  131. package/src/icons/react/Key.tsx +4 -3
  132. package/src/icons/react/Lab.tsx +4 -3
  133. package/src/icons/react/LayoutDouble.tsx +4 -3
  134. package/src/icons/react/LayoutSingle.tsx +4 -3
  135. package/src/icons/react/LeftPanel.tsx +4 -3
  136. package/src/icons/react/Levels.tsx +4 -3
  137. package/src/icons/react/LineDivider.tsx +4 -3
  138. package/src/icons/react/Link.tsx +4 -3
  139. package/src/icons/react/Lock.tsx +4 -3
  140. package/src/icons/react/Loom.tsx +4 -3
  141. package/src/icons/react/MenuCollapser.tsx +4 -3
  142. package/src/icons/react/MessagePlusSquare.tsx +4 -3
  143. package/src/icons/react/Milestones.tsx +4 -3
  144. package/src/icons/react/Minus.tsx +4 -3
  145. package/src/icons/react/Miro.tsx +4 -3
  146. package/src/icons/react/MirrorOff.tsx +4 -3
  147. package/src/icons/react/MirrorOn.tsx +4 -3
  148. package/src/icons/react/Mixpanel.tsx +4 -3
  149. package/src/icons/react/Monitor.tsx +4 -3
  150. package/src/icons/react/More.tsx +4 -3
  151. package/src/icons/react/MoreCompact.tsx +4 -3
  152. package/src/icons/react/MoveBottom.tsx +4 -3
  153. package/src/icons/react/MoveLeft.tsx +4 -3
  154. package/src/icons/react/MoveRight.tsx +4 -3
  155. package/src/icons/react/MoveTop.tsx +4 -3
  156. package/src/icons/react/MySpace.tsx +4 -3
  157. package/src/icons/react/Network.tsx +4 -3
  158. package/src/icons/react/NetworkAdd.tsx +4 -3
  159. package/src/icons/react/Notifications.tsx +4 -3
  160. package/src/icons/react/ObjChild.tsx +4 -3
  161. package/src/icons/react/ObjM2M.tsx +4 -3
  162. package/src/icons/react/ObjO2O.tsx +4 -3
  163. package/src/icons/react/ObjParent.tsx +4 -3
  164. package/src/icons/react/ObjSelf.tsx +4 -3
  165. package/src/icons/react/OnSchedule.tsx +4 -3
  166. package/src/icons/react/OpenAsPage.tsx +4 -3
  167. package/src/icons/react/PageRegularMode.tsx +4 -3
  168. package/src/icons/react/PageWideMode.tsx +4 -3
  169. package/src/icons/react/Pencil.tsx +4 -3
  170. package/src/icons/react/People.tsx +4 -3
  171. package/src/icons/react/Photo.tsx +4 -3
  172. package/src/icons/react/Pin.tsx +4 -3
  173. package/src/icons/react/PinFilled.tsx +13 -0
  174. package/src/icons/react/Popup.tsx +4 -3
  175. package/src/icons/react/Posts.tsx +4 -3
  176. package/src/icons/react/Question.tsx +4 -3
  177. package/src/icons/react/Refresh.tsx +4 -3
  178. package/src/icons/react/Remove.tsx +4 -3
  179. package/src/icons/react/RemovePeople.tsx +4 -3
  180. package/src/icons/react/Reply.tsx +4 -3
  181. package/src/icons/react/Restore.tsx +4 -3
  182. package/src/icons/react/RicheditorActionsMore.tsx +4 -3
  183. package/src/icons/react/RicheditorBlockCallout.tsx +4 -3
  184. package/src/icons/react/RicheditorBlockCode.tsx +4 -3
  185. package/src/icons/react/RicheditorBlockEmbed.tsx +4 -3
  186. package/src/icons/react/RicheditorBlockEntity.tsx +4 -3
  187. package/src/icons/react/RicheditorBlockFile.tsx +4 -3
  188. package/src/icons/react/RicheditorBlockH1.tsx +4 -3
  189. package/src/icons/react/RicheditorBlockH2.tsx +4 -3
  190. package/src/icons/react/RicheditorBlockH3.tsx +4 -3
  191. package/src/icons/react/RicheditorBlockH4.tsx +4 -3
  192. package/src/icons/react/RicheditorBlockMention.tsx +4 -3
  193. package/src/icons/react/RicheditorBlockParagraph.tsx +4 -3
  194. package/src/icons/react/RicheditorBlockQuote.tsx +4 -3
  195. package/src/icons/react/RicheditorChecklistCreate.tsx +4 -3
  196. package/src/icons/react/RicheditorCommentCreate.tsx +4 -3
  197. package/src/icons/react/RicheditorEntityLinkCreate.tsx +4 -3
  198. package/src/icons/react/RicheditorHistoryRedo.tsx +4 -3
  199. package/src/icons/react/RicheditorHistoryUndo.tsx +4 -3
  200. package/src/icons/react/RicheditorImageAlignCenter.tsx +4 -3
  201. package/src/icons/react/RicheditorImageAlignLeft.tsx +4 -3
  202. package/src/icons/react/RicheditorImageAlignRight.tsx +4 -3
  203. package/src/icons/react/RicheditorImageUpload.tsx +4 -3
  204. package/src/icons/react/RicheditorImageWrapCenter.tsx +4 -3
  205. package/src/icons/react/RicheditorImageWrapLeft.tsx +4 -3
  206. package/src/icons/react/RicheditorImageWrapRight.tsx +4 -3
  207. package/src/icons/react/RicheditorImageZoom.tsx +4 -3
  208. package/src/icons/react/RicheditorLinkCreate.tsx +4 -3
  209. package/src/icons/react/RicheditorLinkedhighlightCreate.tsx +4 -3
  210. package/src/icons/react/RicheditorListBullet.tsx +4 -3
  211. package/src/icons/react/RicheditorListIndent.tsx +4 -3
  212. package/src/icons/react/RicheditorListOrdered.tsx +4 -3
  213. package/src/icons/react/RicheditorListUnindent.tsx +4 -3
  214. package/src/icons/react/RicheditorMarkCode.tsx +4 -3
  215. package/src/icons/react/RicheditorMarkEm.tsx +4 -3
  216. package/src/icons/react/RicheditorMarkStrike.tsx +4 -3
  217. package/src/icons/react/RicheditorMarkStrong.tsx +4 -3
  218. package/src/icons/react/RicheditorMarkTextBackgroundColor.tsx +4 -3
  219. package/src/icons/react/RicheditorMarkUnderline.tsx +4 -3
  220. package/src/icons/react/RicheditorOpenLink.tsx +4 -3
  221. package/src/icons/react/RicheditorTableCreate.tsx +4 -3
  222. package/src/icons/react/RicheditorUnlink.tsx +4 -3
  223. package/src/icons/react/RicheditorVideoUpload.tsx +4 -3
  224. package/src/icons/react/RightPanel.tsx +4 -3
  225. package/src/icons/react/Rows.tsx +4 -3
  226. package/src/icons/react/Search.tsx +4 -3
  227. package/src/icons/react/SelfReferenceOff.tsx +4 -3
  228. package/src/icons/react/SelfReferenceOn.tsx +4 -3
  229. package/src/icons/react/SendArrow.tsx +4 -3
  230. package/src/icons/react/Settings.tsx +4 -3
  231. package/src/icons/react/Share.tsx +4 -3
  232. package/src/icons/react/Shared.tsx +4 -3
  233. package/src/icons/react/ShieldKeyhole.tsx +4 -3
  234. package/src/icons/react/Sidebar.tsx +4 -3
  235. package/src/icons/react/SidebarFields.tsx +4 -3
  236. package/src/icons/react/SidebarFieldsOpened.tsx +4 -3
  237. package/src/icons/react/SimpleCompass.tsx +4 -3
  238. package/src/icons/react/Slack.tsx +4 -3
  239. package/src/icons/react/SlackIcon.tsx +4 -3
  240. package/src/icons/react/SlideMenu.tsx +4 -3
  241. package/src/icons/react/SlideMenuOpened.tsx +4 -3
  242. package/src/icons/react/SmartFolder.tsx +4 -3
  243. package/src/icons/react/Sort.tsx +4 -3
  244. package/src/icons/react/SortOnBottom.tsx +4 -3
  245. package/src/icons/react/SortOnTop.tsx +4 -3
  246. package/src/icons/react/Spinner.tsx +4 -3
  247. package/src/icons/react/Success.tsx +4 -3
  248. package/src/icons/react/Templates.tsx +4 -3
  249. package/src/icons/react/Terminal.tsx +4 -3
  250. package/src/icons/react/Twitter.tsx +4 -3
  251. package/src/icons/react/TypeBoolean.tsx +4 -3
  252. package/src/icons/react/TypeButton.tsx +4 -3
  253. package/src/icons/react/TypeCheckbox.tsx +4 -3
  254. package/src/icons/react/TypeDate.tsx +4 -3
  255. package/src/icons/react/TypeEmail.tsx +4 -3
  256. package/src/icons/react/TypeEmoji.tsx +4 -3
  257. package/src/icons/react/TypeFormula.tsx +4 -3
  258. package/src/icons/react/TypeFunction.tsx +4 -3
  259. package/src/icons/react/TypeLocation.tsx +4 -3
  260. package/src/icons/react/TypeLookup.tsx +4 -3
  261. package/src/icons/react/TypeMoney.tsx +4 -3
  262. package/src/icons/react/TypeMultiSelect.tsx +4 -3
  263. package/src/icons/react/TypeNumber.tsx +4 -3
  264. package/src/icons/react/TypePercent.tsx +4 -3
  265. package/src/icons/react/TypePhone.tsx +4 -3
  266. package/src/icons/react/TypeRelation.tsx +4 -3
  267. package/src/icons/react/TypeRichText.tsx +4 -3
  268. package/src/icons/react/TypeRule.tsx +4 -3
  269. package/src/icons/react/TypeSingleSelect.tsx +4 -3
  270. package/src/icons/react/TypeText.tsx +4 -3
  271. package/src/icons/react/TypeUrl.tsx +4 -3
  272. package/src/icons/react/UnitsAvatar.tsx +4 -3
  273. package/src/icons/react/UnitsCollection.tsx +4 -3
  274. package/src/icons/react/UnitsCounter.tsx +4 -3
  275. package/src/icons/react/UnitsDbBadgeAbbr.tsx +4 -3
  276. package/src/icons/react/UnitsDbBadgeFull.tsx +4 -3
  277. package/src/icons/react/UnitsDbIcon.tsx +4 -3
  278. package/src/icons/react/UnitsField.tsx +4 -3
  279. package/src/icons/react/UnitsInput.tsx +4 -3
  280. package/src/icons/react/UnitsProgressBar.tsx +4 -3
  281. package/src/icons/react/UnitsRichText.tsx +4 -3
  282. package/src/icons/react/UnitsSnippet.tsx +4 -3
  283. package/src/icons/react/Upgrade.tsx +4 -3
  284. package/src/icons/react/UsbFlashDrive.tsx +4 -3
  285. package/src/icons/react/UserRole.tsx +4 -3
  286. package/src/icons/react/ViewBoard.tsx +4 -3
  287. package/src/icons/react/ViewCalendar.tsx +4 -3
  288. package/src/icons/react/ViewCanvas.tsx +4 -3
  289. package/src/icons/react/ViewChart.tsx +4 -3
  290. package/src/icons/react/ViewDetails.tsx +4 -3
  291. package/src/icons/react/ViewDocument.tsx +4 -3
  292. package/src/icons/react/ViewFeed.tsx +4 -3
  293. package/src/icons/react/ViewForm.tsx +4 -3
  294. package/src/icons/react/ViewList.tsx +4 -3
  295. package/src/icons/react/ViewMap.tsx +4 -3
  296. package/src/icons/react/ViewPage.tsx +4 -3
  297. package/src/icons/react/ViewTable.tsx +4 -3
  298. package/src/icons/react/ViewTimeline.tsx +4 -3
  299. package/src/icons/react/Views.tsx +4 -3
  300. package/src/icons/react/Warning.tsx +4 -3
  301. package/src/icons/react/WarningTriangle.tsx +4 -3
  302. package/src/icons/react/Youtube.tsx +4 -3
  303. package/src/icons/react/index.tsx +2 -0
  304. package/src/icons/types.ts +12 -8
  305. package/src/loaders.tsx +1 -1
  306. package/src/select/select-in-popover.tsx +1 -1
  307. package/src/toggle-on-off.tsx +4 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fibery/ui-kit",
3
- "version": "1.29.4",
3
+ "version": "1.30.0",
4
4
  "private": false,
5
5
  "files": [
6
6
  "src/antd/styles.ts",
@@ -75,9 +75,9 @@
75
75
  "react-virtuoso": "4.6.0",
76
76
  "screenfull": "6.0.1",
77
77
  "ua-parser-js": "0.7.24",
78
+ "@fibery/helpers": "1.3.0",
78
79
  "@fibery/emoji-data": "2.6.0",
79
- "@fibery/react": "1.4.0",
80
- "@fibery/helpers": "1.3.0"
80
+ "@fibery/react": "1.4.0"
81
81
  },
82
82
  "peerDependencies": {
83
83
  "react": "^18.2.0",
@@ -93,6 +93,7 @@
93
93
  "@testing-library/user-event": "13.5.0",
94
94
  "@types/chroma-js": "2.1.3",
95
95
  "@types/color-hash": "1.0.2",
96
+ "@types/history": "4.7.11",
96
97
  "@types/invariant": "2.2.34",
97
98
  "@types/jest": "27.0.1",
98
99
  "@types/lodash": "4.14.172",
@@ -110,8 +111,8 @@
110
111
  "svgo": "2.8.0",
111
112
  "typescript": "5.4.3",
112
113
  "unist-util-reduce": "0.2.2",
113
- "@fibery/babel-preset": "7.4.0",
114
- "@fibery/eslint-config": "8.6.0"
114
+ "@fibery/eslint-config": "8.6.0",
115
+ "@fibery/babel-preset": "7.4.0"
115
116
  },
116
117
  "jest": {
117
118
  "testEnvironment": "jsdom",
@@ -4,12 +4,14 @@ import {styled} from "@linaria/react";
4
4
  import cx from "classnames";
5
5
  import _ from "lodash";
6
6
  import React, {forwardRef} from "react";
7
- import {Item} from "../item";
8
- import {useTheme} from "../theme-provider";
7
+ import {ButtonV2} from "../button-v2/button";
9
8
  import {border, colors, getOpacities, opacity, space, textStyles} from "../design-system";
10
9
  import {IconBaseProps} from "../icons/types";
10
+ import {Item} from "../item";
11
11
  import {Spinner} from "../loaders";
12
+ import {useTheme} from "../theme-provider";
12
13
  import {ButtonBase, ButtonBaseProps, buttonBorderWidth, getMainColor, getTextColor} from "./button-base";
14
+ import {isButtonsV2} from "../utils";
13
15
 
14
16
  type PositionInGroup = "first" | "middle" | "last";
15
17
 
@@ -142,7 +144,7 @@ const leftContainerClassName = css`
142
144
  export type ButtonProps = ButtonBaseProps & {
143
145
  size?: ButtonSize;
144
146
  pending?: boolean;
145
- Icon?: ((props: IconBaseProps) => JSX.Element) | null;
147
+ Icon?: React.FC<IconBaseProps> | null;
146
148
  inGroup?: PositionInGroup;
147
149
  shortcut?: string;
148
150
  noOverflow?: boolean;
@@ -150,7 +152,7 @@ export type ButtonProps = ButtonBaseProps & {
150
152
  height?: string | number;
151
153
  };
152
154
 
153
- export const Button = forwardRef<HTMLButtonElement, ButtonProps>(function Button(
155
+ export const ButtonComponent = forwardRef<HTMLButtonElement, ButtonProps>(function Button(
154
156
  {
155
157
  disabled,
156
158
  pending,
@@ -220,3 +222,35 @@ export const Button = forwardRef<HTMLButtonElement, ButtonProps>(function Button
220
222
  </StyledButton>
221
223
  );
222
224
  });
225
+
226
+ /** @deprecated Please consider using ButtonV2 */
227
+ export const Button = forwardRef<HTMLButtonElement, ButtonProps>(function Button(props, ref) {
228
+ if (isButtonsV2) {
229
+ const {
230
+ Icon,
231
+ dangerous,
232
+ borderless,
233
+ size = ":button-size/normal",
234
+ primary,
235
+ className,
236
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
237
+ noOverflow: _noOverflow,
238
+ ...buttonProps
239
+ } = props;
240
+
241
+ const newSize = size === ":button-size/big" || size === ":button-size/normal" ? "medium" : "small";
242
+
243
+ return (
244
+ <ButtonV2
245
+ ref={ref}
246
+ className={className}
247
+ {...buttonProps}
248
+ color={dangerous ? "error" : primary ? "accent" : "neutral"}
249
+ variant={primary ? "solid" : borderless ? "ghost" : "outline"}
250
+ size={newSize}
251
+ iconStart={Icon ? <Icon /> : null}
252
+ />
253
+ );
254
+ }
255
+ return <ButtonComponent {...props} className={props.className} ref={ref} />;
256
+ });
@@ -1,15 +1,16 @@
1
- import {styled} from "@linaria/react";
2
1
  import {css} from "@linaria/core";
3
- import {Children, cloneElement, forwardRef} from "react";
4
- import {ButtonBase, ButtonBaseProps} from "./button-base";
5
- import {IconProps} from "../icons/types";
2
+ import {styled} from "@linaria/react";
6
3
  import cx from "classnames";
4
+ import {forwardRef} from "react";
5
+ import {ButtonBase, ButtonBaseProps} from "./button-base";
6
+ import {iconContainer} from "../icons/Icon";
7
+ import {IconButtonV2} from "../button-v2/icon-button";
8
+ import {isButtonsV2} from "../utils";
7
9
 
8
10
  export type IconButtonSize = "super-small" | "small" | "normal" | "big";
9
11
 
10
12
  export type IconButtonProps = ButtonBaseProps & {
11
13
  size?: IconButtonSize;
12
- classNameOverride?: string;
13
14
  };
14
15
 
15
16
  const Paddings = {
@@ -32,18 +33,39 @@ const StyledIconButton = styled(ButtonBase)<StyledProps>`
32
33
  &.${weight} {
33
34
  padding: ${getPadding}px;
34
35
  }
36
+
37
+ & > .${iconContainer} {
38
+ color: inherit;
39
+ }
35
40
  `;
36
41
 
42
+ /** @deprecated Please consider using IconButtonV2 */
37
43
  export const IconButton = forwardRef<HTMLButtonElement, IconButtonProps>(function IconButton(
38
- {size = "normal", children, className, ...rest},
44
+ {size = "normal", className, primary, dangerous, borderless = true, ...rest},
39
45
  ref
40
46
  ) {
41
- const iconNode = Children.only(children) as React.ReactElement<IconProps>;
47
+ if (isButtonsV2) {
48
+ return (
49
+ <IconButtonV2
50
+ ref={ref}
51
+ className={className}
52
+ {...rest}
53
+ size={size === "big" || size === "normal" ? "medium" : "small"}
54
+ color={dangerous ? "error" : primary ? "accent" : "neutral"}
55
+ variant={primary ? "solid" : borderless ? "ghost" : "outline"}
56
+ />
57
+ );
58
+ }
42
59
 
43
60
  return (
44
- <StyledIconButton ref={ref} size={size} className={cx(className, weight)} borderless {...rest}>
45
- {/* maybe better to use css variables? */}
46
- {cloneElement(iconNode, {color: iconNode.props.color || "inherit"})}
47
- </StyledIconButton>
61
+ <StyledIconButton
62
+ ref={ref}
63
+ size={size}
64
+ className={cx(className, weight)}
65
+ primary={primary}
66
+ dangerous={dangerous}
67
+ borderless={borderless}
68
+ {...rest}
69
+ />
48
70
  );
49
71
  });
@@ -22,7 +22,7 @@ import {a11yColor} from "./a11y-color";
22
22
  import {createInlineTheme as createInlineStyles, varPrefix} from "./create-inline-theme";
23
23
  import {ThemeMode} from "./theme-settings";
24
24
 
25
- export const typeSizes = [28, 24, 18, 16, 14, 12, 10, 8] as const;
25
+ export const typeSizes = [26, 24, 18, 16, 14, 12, 10, 8] as const;
26
26
 
27
27
  export const fontWeight = {
28
28
  light: 300,
@@ -322,7 +322,7 @@ export const themeColors = {
322
322
  opacityListItemGeneralDisabled: [`${opacity.opacity40}`, `${opacity.opacity40}`],
323
323
 
324
324
  // Search Items
325
- colorBgSearchItemHover: [slate.slate4, slateDark.slate4],
325
+ colorBgSearchItemHover: [slate.slate4, slateDark.slate5],
326
326
  opacitySearchItemDone: [`${opacity.opacity40}`, `${opacity.opacity40}`],
327
327
  // Entity Box Style And States
328
328
  // Basic Entity Box State
@@ -475,10 +475,12 @@ export const themeColors = {
475
475
  progressIconFill: [slate.slate11, slateDark.slate11],
476
476
  instrumentsMenuBg: [getOpacities(whiteA.whiteA0).opacity95, getOpacities(slateDark.slate4).opacity95],
477
477
  instrumentsMenuShadow: [
478
- `0 0 0 1px ${getOpacities(slate.slate10).opacity10}, 0 2px 8px -6px ${getOpacities(slate.slate10).opacity30}`,
479
- `0 0 0 1px ${getOpacities(slateDark.slate1).opacity10}, 0 2px 8px -6px ${getOpacities(slateDark.slate1).opacity40}`,
478
+ `0 0 0 1px ${getOpacities(slate.slate10).opacity10}, 0 2px 12px -2px ${getOpacities(slate.slate10).opacity15}`,
479
+ `0 0 0 1px ${getOpacities(slateDark.slate1).opacity10}, 0 2px 12px -6px ${
480
+ getOpacities(slateDark.slate1).opacity15
481
+ }`,
480
482
  ],
481
- selectedColorBorder: [getOpacities(slate.slate6).opacity50, getOpacities(slate.slate6).opacity20],
483
+ selectedColorBorder: [getOpacities(slate.slate6).opacity25, getOpacities(slate.slate6).opacity25],
482
484
  formBg: [slate.slate2, slateDark.slate2],
483
485
  formHeaderShadow: [
484
486
  `${getOpacities(slate.slate10).opacity10} 0px 0px 6px`,
@@ -530,11 +532,84 @@ export const themeColors = {
530
532
  gridSelectedPinnedCellBorderColor: [indigo.indigo7, indigoDark.indigo7],
531
533
  gridDisabledSelectedCellBgColor: [indigo.indigo4, indigoDark.indigo5],
532
534
  gridActiveCellBorderColor: [indigo.indigo8, indigoDark.indigo9],
535
+
536
+ // #region buttons
537
+ // solid
538
+ colorBgButtonSolidAccentDefault: [indigo.indigo9, indigoDark.indigo9],
539
+ colorBgButtonSolidAccentHover: [indigo.indigo11, indigoDark.indigo10],
540
+ colorBgButtonSolidNeutralDefault: [slate.slate12, slateDark.slate12],
541
+ colorBgButtonSolidNeutralHover: [getOpacities(slate.slate12).opacity85, whiteA.whiteA0],
542
+ colorBgButtonSolidDestructiveDefault: [red.red9, redDark.red9],
543
+ colorBgButtonSolidDestructiveHover: [red.red11, redDark.red10],
544
+ colorTextButtonSolidAccent: [whiteA.whiteA0, whiteA.whiteA0],
545
+ colorTextButtonSolidAccentActive: [getOpacities(whiteA.whiteA0).opacity80, getOpacities(whiteA.whiteA0).opacity80],
546
+ colorTextButtonSolidNeutral: [whiteA.whiteA0, slateDark.slate2],
547
+ colorTextButtonSolidNeutralActive: [whiteA.whiteA0, getOpacities(slateDark.slate2).opacity80],
548
+ colorTextButtonSolidDestructive: [whiteA.whiteA0, whiteA.whiteA0],
549
+ colorTextButtonSolidDestructiveActive: [
550
+ getOpacities(whiteA.whiteA0).opacity80,
551
+ getOpacities(whiteA.whiteA0).opacity80,
552
+ ],
553
+ // outline
533
554
  colorBorderButtonOutlineAccentDefault: [indigo.indigo8, indigoDark.indigo8],
534
555
  colorBorderButtonOutlineNeutralDefault: [slate.slate8, slateDark.slate8],
556
+ colorBorderButtonOutlineDestructiveDefault: [red.red11, redDark.red11],
535
557
  colorBgButtonOutlineAccentDefault: [whiteA.whiteA0, slateDark.slate1],
536
558
  colorBgButtonOutlineAccentHover: [indigo.indigo3, indigoDark.indigo8],
559
+ colorBgButtonOutlineNeutralDefault: [whiteA.whiteA0, slateDark.slate1],
560
+ colorBgButtonOutlineNeutralHover: [slate.slate4, slateDark.slate4],
561
+ colorBgButtonOutlineDestructiveDefault: [whiteA.whiteA0, slateDark.slate1],
562
+ colorBgButtonOutlineDestructiveHover: [red.red4, redDark.red4],
537
563
  colorTextButtonOutlineAccent: [indigo.indigo11, indigoDark.indigo11],
564
+ colorTextButtonOutlineAccentActive: [
565
+ getOpacities(indigo.indigo11).opacity80,
566
+ getOpacities(indigoDark.indigo11).opacity80,
567
+ ],
568
+ colorTextButtonOutlineNeutral: [slate.slate12, slateDark.slate12],
569
+ colorTextButtonOutlineNeutralActive: [
570
+ getOpacities(slate.slate12).opacity80,
571
+ getOpacities(slateDark.slate12).opacity80,
572
+ ],
573
+ colorTextButtonOutlineDestructive: [red.red11, redDark.red11],
574
+ colorTextButtonOutlineDestructiveActive: [getOpacities(red.red11).opacity80, getOpacities(redDark.red11).opacity80],
575
+ // soft
576
+ colorBgButtonSoftAccentDefault: [indigo.indigo3, indigoDark.indigo4],
577
+ colorBgButtonSoftAccentHover: [indigo.indigo5, indigoDark.indigo6],
578
+ colorBgButtonSoftNeutralDefault: [slate.slate3, slateDark.slate3],
579
+ colorBgButtonSoftNeutralHover: [slate.slate7, slateDark.slate7],
580
+ colorBgButtonSoftDestructiveDefault: [red.red4, redDark.red4],
581
+ colorBgButtonSoftDestructiveHover: [red.red6, redDark.red6],
582
+ colorTextButtonSoftAccent: [indigo.indigo11, indigoDark.indigo11],
583
+ colorTextButtonSoftAccentActive: [
584
+ getOpacities(indigo.indigo11).opacity80,
585
+ getOpacities(indigoDark.indigo11).opacity80,
586
+ ],
587
+ colorTextButtonSoftNeutral: [slate.slate12, slateDark.slate12],
588
+ colorTextButtonSoftNeutralActive: [getOpacities(slate.slate12).opacity80, getOpacities(slateDark.slate12).opacity80],
589
+ colorTextButtonSoftDestructive: [red.red11, redDark.red11],
590
+ colorTextButtonSoftDestructiveActive: [getOpacities(red.red11).opacity80, getOpacities(redDark.red11).opacity80],
591
+ // ghost
592
+ colorBgButtonGhostAccentDefault: [transparent, transparent],
593
+ colorBgButtonGhostAccentHover: [indigo.indigo3, indigoDark.indigo3],
594
+ colorBgButtonGhostNeutralDefault: [transparent, transparent],
595
+ colorBgButtonGhostNeutralHover: [slate.slate4, slateDark.slate4],
596
+ colorBgButtonGhostDestructiveDefault: [transparent, transparent],
597
+ colorBgButtonGhostDestructiveHover: [red.red4, redDark.red4],
598
+ colorTextButtonGhostAccent: [indigo.indigo11, indigoDark.indigo11],
599
+ colorTextButtonGhostAccentActive: [
600
+ getOpacities(indigo.indigo11).opacity80,
601
+ getOpacities(indigoDark.indigo11).opacity80,
602
+ ],
603
+ colorTextButtonGhostNeutral: [slate.slate11, slateDark.slate11],
604
+ colorTextButtonGhostNeutralActive: [getOpacities(slate.slate11).opacity80, getOpacities(slateDark.slate11).opacity80],
605
+ colorTextButtonGhostDestructive: [red.red11, redDark.red11],
606
+ colorTextButtonGhostDestructiveActive: [getOpacities(red.red11).opacity80, getOpacities(redDark.red11).opacity80],
607
+ // #endregion
608
+
609
+ colorBorderAccentFocusRing: [getOpacities(indigo.indigo9).opacity30, getOpacities(indigo.indigo9).opacity30],
610
+ colorBorderNeutralFocusRing: [getOpacities(slate.slate9).opacity30, getOpacities(slate.slate9).opacity30],
611
+ colorBorderDestructiveFocusRing: [getOpacities(red.red9).opacity30, getOpacities(red.red9).opacity30],
612
+
538
613
  colorBgReactionsDefault: [slate.slate3, slateDark.slate6],
539
614
  colorBgReactionsHover: [whiteA.whiteA0, slateDark.slate2],
540
615
  colorBorderReactionsHover: [slate.slate8, slateDark.slate9],
@@ -812,7 +887,7 @@ export const layout = {
812
887
  logoSize: 16,
813
888
  menuDefaultWidth: 243,
814
889
  desktopToolbarHeight: 32,
815
- desktopMenuMinWidth: 160,
890
+ desktopMenuMinWidth: 200,
816
891
  menuMinWidth: 54, //TODO: make dependency to itemHeight
817
892
  menuMaxWidth: 480,
818
893
  menuItemMinWidth: 80,
@@ -857,6 +932,7 @@ export const border = {
857
932
  radius1: 1,
858
933
  radius2: 2,
859
934
  radius4: 4,
935
+ radius5: 5,
860
936
  radius6: 6,
861
937
  radius8: 8,
862
938
  radius10: 10,
@@ -978,7 +1054,7 @@ export const textStyles = {
978
1054
  fontSize: typeSizes[0],
979
1055
  letterSpacing: "-0.003em",
980
1056
  lineHeight: lineHeight.heading,
981
- fontWeight: fontWeight.medium,
1057
+ fontWeight: fontWeight.semibold,
982
1058
  color: themeVars.textColor,
983
1059
  },
984
1060
  heading2: {
@@ -986,7 +1062,7 @@ export const textStyles = {
986
1062
  fontSize: typeSizes[1],
987
1063
  letterSpacing: "-0.002em",
988
1064
  lineHeight: lineHeight.heading,
989
- fontWeight: fontWeight.medium,
1065
+ fontWeight: fontWeight.semibold,
990
1066
  color: themeVars.textColor,
991
1067
  },
992
1068
  heading3: {
@@ -994,21 +1070,21 @@ export const textStyles = {
994
1070
  fontSize: typeSizes[2],
995
1071
  letterSpacing: "-0.002em",
996
1072
  lineHeight: lineHeight.heading,
997
- fontWeight: fontWeight.medium,
1073
+ fontWeight: fontWeight.semibold,
998
1074
  color: themeVars.textColor,
999
1075
  },
1000
1076
  heading4: {
1001
1077
  fontFamily,
1002
1078
  fontSize: typeSizes[3],
1003
1079
  lineHeight: lineHeight.heading,
1004
- fontWeight: fontWeight.medium,
1080
+ fontWeight: fontWeight.semibold,
1005
1081
  color: themeVars.textColor,
1006
1082
  },
1007
1083
  heading5: {
1008
1084
  fontFamily,
1009
1085
  fontSize: typeSizes[4],
1010
1086
  lineHeight: lineHeight.heading,
1011
- fontWeight: fontWeight.medium,
1087
+ fontWeight: fontWeight.semibold,
1012
1088
  color: themeVars.textColor,
1013
1089
  },
1014
1090
  heading6: {
@@ -0,0 +1,6 @@
1
+ import {EmojiDataStore, useEmojiDataStoreSelector} from "./stores/emoji-data-store";
2
+
3
+ export const useEmojiFound = (value: string | undefined | null) => {
4
+ const selector = (store: EmojiDataStore) => (value ? Boolean(store.get(value)) : false);
5
+ return useEmojiDataStoreSelector(selector);
6
+ };
@@ -1,61 +1,70 @@
1
- import {css} from "@linaria/core";
2
- import {themeVars, iconSize as defaultIconSize, viewBoxSize, border} from "../design-system";
1
+ import {css, cx} from "@linaria/core";
2
+ import {forwardRef} from "react";
3
+ import {border, iconSize as defaultIconSize, themeVars, viewBoxSize} from "../design-system";
3
4
  import {generateIconFromAst} from "./generate-icon-from-ast";
4
5
  import {IconProps} from "./types";
5
- import {getShiftStyle} from "./get-shift-style";
6
- import {getIconContainerStyle} from "./get-icon-container-style";
7
- import {forwardRef} from "react";
8
6
 
9
- const iconStyle = css`
7
+ export const iconColorVar = "--fibery-icon-color";
8
+
9
+ const iconContainerSizeVar = "--fibery-icon-container-size";
10
+ export const iconSizeVar = "--fibery-icon-size";
11
+
12
+ const size = `var(${iconSizeVar}, ${defaultIconSize}px)`;
13
+ const containerSize = `var(${iconContainerSizeVar}, ${size})`;
14
+
15
+ export const iconContainer = css`
16
+ display: flex;
17
+ align-items: center;
18
+ justify-content: center;
10
19
  shape-rendering: geometricprecision;
11
20
  border-radius: ${border.radius4}px;
21
+
22
+ color: var(${iconColorVar}, ${themeVars.iconColor});
23
+ fill: currentColor;
24
+
25
+ width: ${size};
26
+ height: ${size};
27
+ `;
28
+
29
+ const withMargin = css`
30
+ margin: calc((${containerSize} - ${size}) / 2);
12
31
  `;
13
32
 
14
- export const Icon = forwardRef<HTMLSpanElement, IconProps>(function Icon(
15
- {
16
- icon,
17
- containerSize,
18
- color,
19
- viewBox = viewBoxSize,
20
- iconSize = defaultIconSize,
21
- onMouseDown,
22
- onMouseEnter,
23
- onMouseLeave,
24
- children,
25
- },
33
+ const inheritColor = css`
34
+ color: inherit;
35
+ `;
36
+
37
+ export const Icon = forwardRef<SVGSVGElement, IconProps>(function Icon(
38
+ {icon, iconSize, containerSize, viewBox = viewBoxSize, children, style, color, className, ...rest},
26
39
  ref
27
- ): JSX.Element {
28
- return (
29
- <span
40
+ ) {
41
+ const iconStyle = {
42
+ [iconColorVar]: color,
43
+ [iconContainerSizeVar]: containerSize ? containerSize + "px" : undefined,
44
+ [iconSizeVar]: iconSize ? iconSize + "px" : undefined,
45
+ ...style,
46
+ };
47
+ const iconClassName = cx(iconContainer, containerSize && withMargin, color === null && inheritColor, className);
48
+
49
+ return icon ? (
50
+ generateIconFromAst(icon.icon.children[0], `svg-${icon.name}`, {
51
+ xmlns: "http://www.w3.org/2000/svg",
52
+ className: iconClassName,
53
+ viewBox,
54
+ "aria-hidden": "true",
55
+ style: iconStyle,
56
+ ...rest,
57
+ })
58
+ ) : (
59
+ <svg
60
+ xmlns="http://www.w3.org/2000/svg"
30
61
  ref={ref}
31
- style={getIconContainerStyle(containerSize || iconSize, color)}
32
- onMouseDown={onMouseDown}
33
- onMouseEnter={onMouseEnter}
34
- onMouseLeave={onMouseLeave}
62
+ className={iconClassName}
63
+ viewBox={viewBox}
64
+ style={iconStyle}
65
+ {...rest}
35
66
  >
36
- {children ? (
37
- <svg
38
- xmlns="http://www.w3.org/2000/svg"
39
- width={iconSize}
40
- height={iconSize}
41
- viewBox={viewBox}
42
- style={getShiftStyle({containerSize, elementSize: iconSize})}
43
- className={iconStyle}
44
- >
45
- <g style={color === null ? {} : {fill: color || themeVars.textColor}}>{children}</g>
46
- </svg>
47
- ) : (
48
- generateIconFromAst(icon.icon.children[0], `svg-${icon.name}`, {
49
- xmlns: "http://www.w3.org/2000/svg",
50
- width: iconSize,
51
- height: iconSize,
52
- viewBox: viewBox,
53
- style: getShiftStyle({containerSize, elementSize: iconSize}),
54
- className: iconStyle,
55
- fill: color === null ? undefined : "currentColor",
56
- "aria-hidden": "true",
57
- })
58
- )}
59
- </span>
67
+ {children}
68
+ </svg>
60
69
  );
61
70
  });
@@ -3,6 +3,6 @@
3
3
 
4
4
  import { IconDefinition } from '../types';
5
5
 
6
- const AiAssistant: IconDefinition = {"icon":{"type":"root","children":[{"type":"element","tagName":"svg","properties":{"viewBox":"0 0 20 20"},"children":[{"type":"element","tagName":"path","properties":{"d":"M3 0c.117 0 .221.072.263.181l.57 1.498a.844.844 0 0 0 .488.488l1.498.57a.281.281 0 0 1 0 .526l-1.498.57a.844.844 0 0 0-.488.488l-.57 1.498a.281.281 0 0 1-.526 0l-.57-1.498a.844.844 0 0 0-.488-.488L.18 3.263a.281.281 0 0 1 0-.526l1.498-.57a.844.844 0 0 0 .488-.488L2.737.18A.281.281 0 0 1 3 0ZM3 14c.117 0 .221.072.263.181l.57 1.498a.844.844 0 0 0 .488.488l1.498.57a.281.281 0 0 1 0 .526l-1.498.57a.844.844 0 0 0-.488.488l-.57 1.498a.281.281 0 0 1-.526 0l-.57-1.498a.844.844 0 0 0-.488-.488l-1.498-.57a.281.281 0 0 1 0-.526l1.498-.57a.844.844 0 0 0 .488-.488l.57-1.498A.281.281 0 0 1 3 14Z"},"children":[]},{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","clipRule":"evenodd","d":"M11.7 2.483a.75.75 0 0 0-1.4 0L8.777 6.476a2.25 2.25 0 0 1-1.302 1.302L3.483 9.299a.75.75 0 0 0 0 1.402l3.993 1.521a2.25 2.25 0 0 1 1.302 1.302l1.521 3.993a.75.75 0 0 0 1.402 0l1.521-3.993a2.25 2.25 0 0 1 1.302-1.302l3.993-1.521a.75.75 0 0 0 0-1.402l-3.993-1.521a2.25 2.25 0 0 1-1.302-1.302l-1.521-3.993ZM10.18 7.01 11 4.857l.82 2.153a3.75 3.75 0 0 0 2.17 2.17l2.153.82-2.153.82a3.75 3.75 0 0 0-2.17 2.17L11 15.143l-.82-2.153a3.75 3.75 0 0 0-2.17-2.17L5.857 10l2.153-.82a3.75 3.75 0 0 0 2.17-2.17Z"},"children":[]}],"metadata":""}]},"name":"ai-assistant"};
6
+ const AiAssistant: IconDefinition = {"icon":{"type":"root","children":[{"type":"element","tagName":"svg","properties":{"viewBox":"0 0 20 20"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","clipRule":"evenodd","d":"M3.374.262a.398.398 0 0 0-.75.006l-.548 1.607a.317.317 0 0 1-.207.2l-1.59.493a.395.395 0 0 0-.006.754l1.595.524a.317.317 0 0 1 .202.202l.552 1.68c.119.36.629.364.753.006l.587-1.69a.317.317 0 0 1 .199-.197l1.568-.526a.395.395 0 0 0-.006-.752l-1.564-.494a.317.317 0 0 1-.203-.195L3.374.262Zm-.562 14.956a.332.332 0 0 0-.626.006l-.456 1.338a.264.264 0 0 1-.172.168l-1.325.41a.33.33 0 0 0-.006.628l1.33.437c.08.027.142.089.168.169l.46 1.399c.099.3.524.304.628.005l.488-1.409a.264.264 0 0 1 .166-.163l1.308-.439a.33.33 0 0 0-.006-.626l-1.303-.412a.264.264 0 0 1-.17-.162l-.484-1.349Zm9.183-12.814c-.336-.936-1.663-.924-1.983.017l-1.47 4.33a1.2 1.2 0 0 1-.78.76L3.506 8.835c-.975.304-.986 1.68-.017 2l4.273 1.41a1.2 1.2 0 0 1 .764.767l1.482 4.53c.314.957 1.662.968 1.99.017l1.578-4.566a1.2 1.2 0 0 1 .752-.745l4.202-1.415c.963-.324.95-1.689-.017-1.996L14.326 7.51a1.2 1.2 0 0 1-.766-.74l-1.565-4.365Zm-1.938 4.861.963-2.837 1.034 2.882a2.8 2.8 0 0 0 1.789 1.724l2.582.82-2.608.877a2.8 2.8 0 0 0-1.753 1.74l-1.043 3.02-.975-2.977a2.8 2.8 0 0 0-1.783-1.788L5.62 9.853l2.619-.815a2.8 2.8 0 0 0 1.819-1.773Z"},"children":[]}],"metadata":""}]},"name":"ai-assistant"};
7
7
 
8
8
  export default AiAssistant;
@@ -0,0 +1,8 @@
1
+
2
+ // This icon file is generated automatically.
3
+
4
+ import { IconDefinition } from '../types';
5
+
6
+ const Clear: IconDefinition = {"icon":{"type":"root","children":[{"type":"element","tagName":"svg","properties":{"viewBox":"0 0 20 20"},"children":[{"type":"element","tagName":"path","properties":{"d":"M2.75 4.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM6 4.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0ZM4.5 7.25a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0Z"},"children":[]},{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","clipRule":"evenodd","d":"m14.64 8.422 3.89-3.892a.75.75 0 0 0-1.06-1.06l-3.892 3.89-.604-.603a2.25 2.25 0 0 0-2.846-.277l-6.546 4.397a.75.75 0 0 0 .002 1.247c1.099.733 1.733 1.586 2.423 2.515.17.228.342.46.526.697.934 1.2 2.064 2.336 4.285 2.892a.75.75 0 0 0 .82-.333l3.834-6.186a2.25 2.25 0 0 0-.322-2.777l-.51-.51Zm-3.675-.697a.75.75 0 0 1 .948.092l2.176 2.176a.75.75 0 0 1 .107.926l-.465.751L10.259 8.2l.706-.474ZM8.99 9.05l3.928 3.929-2.257 3.642c-1.438-.474-2.213-1.266-2.945-2.207a20.49 20.49 0 0 1-.25-.329.748.748 0 0 0 .063-.056l1-1a.75.75 0 1 0-1.06-1.06l-.914.913c-.363-.45-.775-.909-1.272-1.342l3.707-2.49Z"},"children":[]}],"metadata":""}]},"name":"clear"};
7
+
8
+ export default Clear;
@@ -0,0 +1,8 @@
1
+
2
+ // This icon file is generated automatically.
3
+
4
+ import { IconDefinition } from '../types';
5
+
6
+ const PinFilled: IconDefinition = {"icon":{"type":"root","children":[{"type":"element","tagName":"svg","properties":{"width":20,"height":20,"fill":"none"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","clipRule":"evenodd","d":"M12.504 2c.213-.008.42.071.57.22l4.703 4.628a.744.744 0 0 1-.046 1.102l-4.123 3.44.274 2.603a.743.743 0 0 1-.219.608L12.3 15.943a.77.77 0 0 1-1.078 0l-3.027-2.978-4.893 4.815a.77.77 0 0 1-1.078 0 .742.742 0 0 1 0-1.06l4.894-4.816L3.83 8.671a.744.744 0 0 1 0-1.06l1.364-1.343a.77.77 0 0 1 .618-.216l2.644.27 3.497-4.057a.767.767 0 0 1 .55-.264Z","fill":"currentColor"},"children":[]}],"metadata":""}]},"name":"pin-filled"};
7
+
8
+ export default PinFilled;
@@ -51,6 +51,7 @@ export { default as CheckCircleFilled } from './CheckCircleFilled';
51
51
  export { default as CheckCircle } from './CheckCircle';
52
52
  export { default as Checked } from './Checked';
53
53
  export { default as ClearValue } from './ClearValue';
54
+ export { default as Clear } from './Clear';
54
55
  export { default as ClockAlarm } from './ClockAlarm';
55
56
  export { default as ClockForward } from './ClockForward';
56
57
  export { default as Clock } from './Clock';
@@ -159,6 +160,7 @@ export { default as PageWideMode } from './PageWideMode';
159
160
  export { default as Pencil } from './Pencil';
160
161
  export { default as People } from './People';
161
162
  export { default as Photo } from './Photo';
163
+ export { default as PinFilled } from './PinFilled';
162
164
  export { default as Pin } from './Pin';
163
165
  export { default as Popup } from './Popup';
164
166
  export { default as Posts } from './Posts';
@@ -1,12 +1,13 @@
1
1
  // This icon file is generated automatically.
2
2
 
3
+ import {forwardRef} from 'react';
3
4
  import AbortSvg from '../ast/Abort';
4
5
  import { Icon } from '../Icon';
5
6
  import { IconBaseProps } from '../types';
6
7
 
7
- const Abort = (
8
+ const Abort = forwardRef<SVGSVGElement, IconBaseProps>(function Abort(
8
9
  props: IconBaseProps,
9
- ): JSX.Element => <Icon {...props} icon={AbortSvg} />;
10
+ ref: React.Ref<SVGSVGElement>
11
+ ) {return <Icon {...props} className={props.className} ref={ref} icon={AbortSvg} />});
10
12
 
11
- Abort.displayName = 'Abort';
12
13
  export default Abort;
@@ -1,12 +1,13 @@
1
1
  // This icon file is generated automatically.
2
2
 
3
+ import {forwardRef} from 'react';
3
4
  import ActivitySvg from '../ast/Activity';
4
5
  import { Icon } from '../Icon';
5
6
  import { IconBaseProps } from '../types';
6
7
 
7
- const Activity = (
8
+ const Activity = forwardRef<SVGSVGElement, IconBaseProps>(function Activity(
8
9
  props: IconBaseProps,
9
- ): JSX.Element => <Icon {...props} icon={ActivitySvg} />;
10
+ ref: React.Ref<SVGSVGElement>
11
+ ) {return <Icon {...props} className={props.className} ref={ref} icon={ActivitySvg} />});
10
12
 
11
- Activity.displayName = 'Activity';
12
13
  export default Activity;
@@ -1,12 +1,13 @@
1
1
  // This icon file is generated automatically.
2
2
 
3
+ import {forwardRef} from 'react';
3
4
  import ActivityLogSvg from '../ast/ActivityLog';
4
5
  import { Icon } from '../Icon';
5
6
  import { IconBaseProps } from '../types';
6
7
 
7
- const ActivityLog = (
8
+ const ActivityLog = forwardRef<SVGSVGElement, IconBaseProps>(function ActivityLog(
8
9
  props: IconBaseProps,
9
- ): JSX.Element => <Icon {...props} icon={ActivityLogSvg} />;
10
+ ref: React.Ref<SVGSVGElement>
11
+ ) {return <Icon {...props} className={props.className} ref={ref} icon={ActivityLogSvg} />});
10
12
 
11
- ActivityLog.displayName = 'ActivityLog';
12
13
  export default ActivityLog;
@@ -1,12 +1,13 @@
1
1
  // This icon file is generated automatically.
2
2
 
3
+ import {forwardRef} from 'react';
3
4
  import AddSvg from '../ast/Add';
4
5
  import { Icon } from '../Icon';
5
6
  import { IconBaseProps } from '../types';
6
7
 
7
- const Add = (
8
+ const Add = forwardRef<SVGSVGElement, IconBaseProps>(function Add(
8
9
  props: IconBaseProps,
9
- ): JSX.Element => <Icon {...props} icon={AddSvg} />;
10
+ ref: React.Ref<SVGSVGElement>
11
+ ) {return <Icon {...props} className={props.className} ref={ref} icon={AddSvg} />});
10
12
 
11
- Add.displayName = 'Add';
12
13
  export default Add;
@@ -1,12 +1,13 @@
1
1
  // This icon file is generated automatically.
2
2
 
3
+ import {forwardRef} from 'react';
3
4
  import AddAfterSvg from '../ast/AddAfter';
4
5
  import { Icon } from '../Icon';
5
6
  import { IconBaseProps } from '../types';
6
7
 
7
- const AddAfter = (
8
+ const AddAfter = forwardRef<SVGSVGElement, IconBaseProps>(function AddAfter(
8
9
  props: IconBaseProps,
9
- ): JSX.Element => <Icon {...props} icon={AddAfterSvg} />;
10
+ ref: React.Ref<SVGSVGElement>
11
+ ) {return <Icon {...props} className={props.className} ref={ref} icon={AddAfterSvg} />});
10
12
 
11
- AddAfter.displayName = 'AddAfter';
12
13
  export default AddAfter;
@@ -1,12 +1,13 @@
1
1
  // This icon file is generated automatically.
2
2
 
3
+ import {forwardRef} from 'react';
3
4
  import AddBeforeSvg from '../ast/AddBefore';
4
5
  import { Icon } from '../Icon';
5
6
  import { IconBaseProps } from '../types';
6
7
 
7
- const AddBefore = (
8
+ const AddBefore = forwardRef<SVGSVGElement, IconBaseProps>(function AddBefore(
8
9
  props: IconBaseProps,
9
- ): JSX.Element => <Icon {...props} icon={AddBeforeSvg} />;
10
+ ref: React.Ref<SVGSVGElement>
11
+ ) {return <Icon {...props} className={props.className} ref={ref} icon={AddBeforeSvg} />});
10
12
 
11
- AddBefore.displayName = 'AddBefore';
12
13
  export default AddBefore;