@fibery/ui-kit 1.29.5 → 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.
- package/package.json +1 -1
- package/src/button/button.tsx +38 -4
- package/src/button/icon-button.tsx +33 -11
- package/src/design-system.ts +80 -4
- package/src/emoji-picker/use-emoji-found.tsx +6 -0
- package/src/icons/Icon.tsx +58 -49
- package/src/icons/ast/PinFilled.ts +8 -0
- package/src/icons/ast/index.tsx +1 -0
- package/src/icons/react/Abort.tsx +4 -3
- package/src/icons/react/Activity.tsx +4 -3
- package/src/icons/react/ActivityLog.tsx +4 -3
- package/src/icons/react/Add.tsx +4 -3
- package/src/icons/react/AddAfter.tsx +4 -3
- package/src/icons/react/AddBefore.tsx +4 -3
- package/src/icons/react/AddCompact.tsx +4 -3
- package/src/icons/react/AddGroup.tsx +4 -3
- package/src/icons/react/AddReactions.tsx +4 -3
- package/src/icons/react/AiAssistant.tsx +4 -3
- package/src/icons/react/AiAvatar.tsx +4 -3
- package/src/icons/react/AlertTriangle.tsx +4 -3
- package/src/icons/react/App.tsx +4 -3
- package/src/icons/react/AppDetails.tsx +4 -3
- package/src/icons/react/AppStore.tsx +4 -3
- package/src/icons/react/AppStoreOneColor.tsx +4 -3
- package/src/icons/react/AppTemplates.tsx +4 -3
- package/src/icons/react/AppWebhooks.tsx +4 -3
- package/src/icons/react/AppWiki.tsx +4 -3
- package/src/icons/react/ArrowBarLeft.tsx +4 -3
- package/src/icons/react/ArrowBarRight.tsx +4 -3
- package/src/icons/react/ArrowBottom.tsx +4 -3
- package/src/icons/react/ArrowCollapse.tsx +4 -3
- package/src/icons/react/ArrowCollapseVertical.tsx +4 -3
- package/src/icons/react/ArrowForward.tsx +4 -3
- package/src/icons/react/ArrowLeft.tsx +4 -3
- package/src/icons/react/ArrowRight.tsx +4 -3
- package/src/icons/react/ArrowTop.tsx +4 -3
- package/src/icons/react/AskForInput.tsx +4 -3
- package/src/icons/react/Atom.tsx +4 -3
- package/src/icons/react/AutomationsCancelled.tsx +4 -3
- package/src/icons/react/AutomationsDisabled.tsx +4 -3
- package/src/icons/react/AutomationsError.tsx +4 -3
- package/src/icons/react/AutomationsInProgress.tsx +4 -3
- package/src/icons/react/AutomationsNotStarted.tsx +4 -3
- package/src/icons/react/AutomationsSuccess.tsx +4 -3
- package/src/icons/react/Back.tsx +4 -3
- package/src/icons/react/BacklogIcon.tsx +4 -3
- package/src/icons/react/BatchActionsIcon.tsx +4 -3
- package/src/icons/react/BellCircle.tsx +4 -3
- package/src/icons/react/BellFilled.tsx +4 -3
- package/src/icons/react/BellOff.tsx +4 -3
- package/src/icons/react/BellRinging.tsx +4 -3
- package/src/icons/react/BellX.tsx +4 -3
- package/src/icons/react/Bolt.tsx +4 -3
- package/src/icons/react/Cards.tsx +4 -3
- package/src/icons/react/Chat.tsx +4 -3
- package/src/icons/react/ChatAi.tsx +4 -3
- package/src/icons/react/CheckCircle.tsx +4 -3
- package/src/icons/react/CheckCircleFilled.tsx +4 -3
- package/src/icons/react/Checked.tsx +4 -3
- package/src/icons/react/Clear.tsx +4 -3
- package/src/icons/react/ClearValue.tsx +4 -3
- package/src/icons/react/Clock.tsx +4 -3
- package/src/icons/react/ClockAlarm.tsx +4 -3
- package/src/icons/react/ClockForward.tsx +4 -3
- package/src/icons/react/Close.tsx +4 -3
- package/src/icons/react/ColorCoding.tsx +4 -3
- package/src/icons/react/ColorCodingFilled.tsx +4 -3
- package/src/icons/react/Columns.tsx +4 -3
- package/src/icons/react/Columns2.tsx +4 -3
- package/src/icons/react/Columns4.tsx +4 -3
- package/src/icons/react/Copy.tsx +4 -3
- package/src/icons/react/Database.tsx +4 -3
- package/src/icons/react/DatabaseStroke.tsx +4 -3
- package/src/icons/react/Delete.tsx +4 -3
- package/src/icons/react/Demo.tsx +4 -3
- package/src/icons/react/DoubleArrowLeft.tsx +4 -3
- package/src/icons/react/DoubleArrowRight.tsx +4 -3
- package/src/icons/react/DragBlockHandle.tsx +4 -3
- package/src/icons/react/DragBlockHandleSingle.tsx +4 -3
- package/src/icons/react/DragHandle.tsx +4 -3
- package/src/icons/react/DynamicFilterValue.tsx +4 -3
- package/src/icons/react/Email.tsx +4 -3
- package/src/icons/react/EmojiDelete.tsx +4 -3
- package/src/icons/react/Export.tsx +4 -3
- package/src/icons/react/ExtensionAssignments.tsx +4 -3
- package/src/icons/react/ExtensionAvatar.tsx +4 -3
- package/src/icons/react/ExtensionComments.tsx +4 -3
- package/src/icons/react/ExtensionFiles.tsx +4 -3
- package/src/icons/react/ExtensionReferences.tsx +4 -3
- package/src/icons/react/ExtensionWorkflow.tsx +4 -3
- package/src/icons/react/Eye.tsx +4 -3
- package/src/icons/react/Favorites.tsx +4 -3
- package/src/icons/react/FavoritesChecked.tsx +4 -3
- package/src/icons/react/FavoritesOff.tsx +4 -3
- package/src/icons/react/FiberyMono.tsx +4 -3
- package/src/icons/react/FieldUnit.tsx +4 -3
- package/src/icons/react/Fields.tsx +4 -3
- package/src/icons/react/Figma.tsx +4 -3
- package/src/icons/react/FileUpload.tsx +4 -3
- package/src/icons/react/Filter.tsx +4 -3
- package/src/icons/react/FocusMode.tsx +4 -3
- package/src/icons/react/FocusModeOff.tsx +4 -3
- package/src/icons/react/FormWithCover.tsx +4 -3
- package/src/icons/react/FormWithoutCover.tsx +4 -3
- package/src/icons/react/Github.tsx +4 -3
- package/src/icons/react/Gitlab.tsx +4 -3
- package/src/icons/react/Globe.tsx +4 -3
- package/src/icons/react/GlobeSimple.tsx +4 -3
- package/src/icons/react/GoogleDrive.tsx +4 -3
- package/src/icons/react/GoogleMap.tsx +4 -3
- package/src/icons/react/Headphones.tsx +4 -3
- package/src/icons/react/HeadphonesAi.tsx +4 -3
- package/src/icons/react/Hide.tsx +4 -3
- package/src/icons/react/Highlights.tsx +4 -3
- package/src/icons/react/Hint.tsx +4 -3
- package/src/icons/react/Home.tsx +4 -3
- package/src/icons/react/ImageXmark.tsx +4 -3
- package/src/icons/react/Import.tsx +4 -3
- package/src/icons/react/InfoCircle.tsx +4 -3
- package/src/icons/react/InfoCircleFilled.tsx +4 -3
- package/src/icons/react/Integration.tsx +4 -3
- package/src/icons/react/IntegrationsIntegrationDiscourseColor.tsx +4 -3
- package/src/icons/react/IntegrationsIntegrationIntercomColor.tsx +4 -3
- package/src/icons/react/IntegrationsIntegrationSlackColor.tsx +4 -3
- package/src/icons/react/IntegrationsIntegrationZendeskColor.tsx +4 -3
- package/src/icons/react/InvitePeople.tsx +4 -3
- package/src/icons/react/Items.tsx +4 -3
- package/src/icons/react/Jira.tsx +4 -3
- package/src/icons/react/Key.tsx +4 -3
- package/src/icons/react/Lab.tsx +4 -3
- package/src/icons/react/LayoutDouble.tsx +4 -3
- package/src/icons/react/LayoutSingle.tsx +4 -3
- package/src/icons/react/LeftPanel.tsx +4 -3
- package/src/icons/react/Levels.tsx +4 -3
- package/src/icons/react/LineDivider.tsx +4 -3
- package/src/icons/react/Link.tsx +4 -3
- package/src/icons/react/Lock.tsx +4 -3
- package/src/icons/react/Loom.tsx +4 -3
- package/src/icons/react/MenuCollapser.tsx +4 -3
- package/src/icons/react/MessagePlusSquare.tsx +4 -3
- package/src/icons/react/Milestones.tsx +4 -3
- package/src/icons/react/Minus.tsx +4 -3
- package/src/icons/react/Miro.tsx +4 -3
- package/src/icons/react/MirrorOff.tsx +4 -3
- package/src/icons/react/MirrorOn.tsx +4 -3
- package/src/icons/react/Mixpanel.tsx +4 -3
- package/src/icons/react/Monitor.tsx +4 -3
- package/src/icons/react/More.tsx +4 -3
- package/src/icons/react/MoreCompact.tsx +4 -3
- package/src/icons/react/MoveBottom.tsx +4 -3
- package/src/icons/react/MoveLeft.tsx +4 -3
- package/src/icons/react/MoveRight.tsx +4 -3
- package/src/icons/react/MoveTop.tsx +4 -3
- package/src/icons/react/MySpace.tsx +4 -3
- package/src/icons/react/Network.tsx +4 -3
- package/src/icons/react/NetworkAdd.tsx +4 -3
- package/src/icons/react/Notifications.tsx +4 -3
- package/src/icons/react/ObjChild.tsx +4 -3
- package/src/icons/react/ObjM2M.tsx +4 -3
- package/src/icons/react/ObjO2O.tsx +4 -3
- package/src/icons/react/ObjParent.tsx +4 -3
- package/src/icons/react/ObjSelf.tsx +4 -3
- package/src/icons/react/OnSchedule.tsx +4 -3
- package/src/icons/react/OpenAsPage.tsx +4 -3
- package/src/icons/react/PageRegularMode.tsx +4 -3
- package/src/icons/react/PageWideMode.tsx +4 -3
- package/src/icons/react/Pencil.tsx +4 -3
- package/src/icons/react/People.tsx +4 -3
- package/src/icons/react/Photo.tsx +4 -3
- package/src/icons/react/Pin.tsx +4 -3
- package/src/icons/react/PinFilled.tsx +13 -0
- package/src/icons/react/Popup.tsx +4 -3
- package/src/icons/react/Posts.tsx +4 -3
- package/src/icons/react/Question.tsx +4 -3
- package/src/icons/react/Refresh.tsx +4 -3
- package/src/icons/react/Remove.tsx +4 -3
- package/src/icons/react/RemovePeople.tsx +4 -3
- package/src/icons/react/Reply.tsx +4 -3
- package/src/icons/react/Restore.tsx +4 -3
- package/src/icons/react/RicheditorActionsMore.tsx +4 -3
- package/src/icons/react/RicheditorBlockCallout.tsx +4 -3
- package/src/icons/react/RicheditorBlockCode.tsx +4 -3
- package/src/icons/react/RicheditorBlockEmbed.tsx +4 -3
- package/src/icons/react/RicheditorBlockEntity.tsx +4 -3
- package/src/icons/react/RicheditorBlockFile.tsx +4 -3
- package/src/icons/react/RicheditorBlockH1.tsx +4 -3
- package/src/icons/react/RicheditorBlockH2.tsx +4 -3
- package/src/icons/react/RicheditorBlockH3.tsx +4 -3
- package/src/icons/react/RicheditorBlockH4.tsx +4 -3
- package/src/icons/react/RicheditorBlockMention.tsx +4 -3
- package/src/icons/react/RicheditorBlockParagraph.tsx +4 -3
- package/src/icons/react/RicheditorBlockQuote.tsx +4 -3
- package/src/icons/react/RicheditorChecklistCreate.tsx +4 -3
- package/src/icons/react/RicheditorCommentCreate.tsx +4 -3
- package/src/icons/react/RicheditorEntityLinkCreate.tsx +4 -3
- package/src/icons/react/RicheditorHistoryRedo.tsx +4 -3
- package/src/icons/react/RicheditorHistoryUndo.tsx +4 -3
- package/src/icons/react/RicheditorImageAlignCenter.tsx +4 -3
- package/src/icons/react/RicheditorImageAlignLeft.tsx +4 -3
- package/src/icons/react/RicheditorImageAlignRight.tsx +4 -3
- package/src/icons/react/RicheditorImageUpload.tsx +4 -3
- package/src/icons/react/RicheditorImageWrapCenter.tsx +4 -3
- package/src/icons/react/RicheditorImageWrapLeft.tsx +4 -3
- package/src/icons/react/RicheditorImageWrapRight.tsx +4 -3
- package/src/icons/react/RicheditorImageZoom.tsx +4 -3
- package/src/icons/react/RicheditorLinkCreate.tsx +4 -3
- package/src/icons/react/RicheditorLinkedhighlightCreate.tsx +4 -3
- package/src/icons/react/RicheditorListBullet.tsx +4 -3
- package/src/icons/react/RicheditorListIndent.tsx +4 -3
- package/src/icons/react/RicheditorListOrdered.tsx +4 -3
- package/src/icons/react/RicheditorListUnindent.tsx +4 -3
- package/src/icons/react/RicheditorMarkCode.tsx +4 -3
- package/src/icons/react/RicheditorMarkEm.tsx +4 -3
- package/src/icons/react/RicheditorMarkStrike.tsx +4 -3
- package/src/icons/react/RicheditorMarkStrong.tsx +4 -3
- package/src/icons/react/RicheditorMarkTextBackgroundColor.tsx +4 -3
- package/src/icons/react/RicheditorMarkUnderline.tsx +4 -3
- package/src/icons/react/RicheditorOpenLink.tsx +4 -3
- package/src/icons/react/RicheditorTableCreate.tsx +4 -3
- package/src/icons/react/RicheditorUnlink.tsx +4 -3
- package/src/icons/react/RicheditorVideoUpload.tsx +4 -3
- package/src/icons/react/RightPanel.tsx +4 -3
- package/src/icons/react/Rows.tsx +4 -3
- package/src/icons/react/Search.tsx +4 -3
- package/src/icons/react/SelfReferenceOff.tsx +4 -3
- package/src/icons/react/SelfReferenceOn.tsx +4 -3
- package/src/icons/react/SendArrow.tsx +4 -3
- package/src/icons/react/Settings.tsx +4 -3
- package/src/icons/react/Share.tsx +4 -3
- package/src/icons/react/Shared.tsx +4 -3
- package/src/icons/react/ShieldKeyhole.tsx +4 -3
- package/src/icons/react/Sidebar.tsx +4 -3
- package/src/icons/react/SidebarFields.tsx +4 -3
- package/src/icons/react/SidebarFieldsOpened.tsx +4 -3
- package/src/icons/react/SimpleCompass.tsx +4 -3
- package/src/icons/react/Slack.tsx +4 -3
- package/src/icons/react/SlackIcon.tsx +4 -3
- package/src/icons/react/SlideMenu.tsx +4 -3
- package/src/icons/react/SlideMenuOpened.tsx +4 -3
- package/src/icons/react/SmartFolder.tsx +4 -3
- package/src/icons/react/Sort.tsx +4 -3
- package/src/icons/react/SortOnBottom.tsx +4 -3
- package/src/icons/react/SortOnTop.tsx +4 -3
- package/src/icons/react/Spinner.tsx +4 -3
- package/src/icons/react/Success.tsx +4 -3
- package/src/icons/react/Templates.tsx +4 -3
- package/src/icons/react/Terminal.tsx +4 -3
- package/src/icons/react/Twitter.tsx +4 -3
- package/src/icons/react/TypeBoolean.tsx +4 -3
- package/src/icons/react/TypeButton.tsx +4 -3
- package/src/icons/react/TypeCheckbox.tsx +4 -3
- package/src/icons/react/TypeDate.tsx +4 -3
- package/src/icons/react/TypeEmail.tsx +4 -3
- package/src/icons/react/TypeEmoji.tsx +4 -3
- package/src/icons/react/TypeFormula.tsx +4 -3
- package/src/icons/react/TypeFunction.tsx +4 -3
- package/src/icons/react/TypeLocation.tsx +4 -3
- package/src/icons/react/TypeLookup.tsx +4 -3
- package/src/icons/react/TypeMoney.tsx +4 -3
- package/src/icons/react/TypeMultiSelect.tsx +4 -3
- package/src/icons/react/TypeNumber.tsx +4 -3
- package/src/icons/react/TypePercent.tsx +4 -3
- package/src/icons/react/TypePhone.tsx +4 -3
- package/src/icons/react/TypeRelation.tsx +4 -3
- package/src/icons/react/TypeRichText.tsx +4 -3
- package/src/icons/react/TypeRule.tsx +4 -3
- package/src/icons/react/TypeSingleSelect.tsx +4 -3
- package/src/icons/react/TypeText.tsx +4 -3
- package/src/icons/react/TypeUrl.tsx +4 -3
- package/src/icons/react/UnitsAvatar.tsx +4 -3
- package/src/icons/react/UnitsCollection.tsx +4 -3
- package/src/icons/react/UnitsCounter.tsx +4 -3
- package/src/icons/react/UnitsDbBadgeAbbr.tsx +4 -3
- package/src/icons/react/UnitsDbBadgeFull.tsx +4 -3
- package/src/icons/react/UnitsDbIcon.tsx +4 -3
- package/src/icons/react/UnitsField.tsx +4 -3
- package/src/icons/react/UnitsInput.tsx +4 -3
- package/src/icons/react/UnitsProgressBar.tsx +4 -3
- package/src/icons/react/UnitsRichText.tsx +4 -3
- package/src/icons/react/UnitsSnippet.tsx +4 -3
- package/src/icons/react/Upgrade.tsx +4 -3
- package/src/icons/react/UsbFlashDrive.tsx +4 -3
- package/src/icons/react/UserRole.tsx +4 -3
- package/src/icons/react/ViewBoard.tsx +4 -3
- package/src/icons/react/ViewCalendar.tsx +4 -3
- package/src/icons/react/ViewCanvas.tsx +4 -3
- package/src/icons/react/ViewChart.tsx +4 -3
- package/src/icons/react/ViewDetails.tsx +4 -3
- package/src/icons/react/ViewDocument.tsx +4 -3
- package/src/icons/react/ViewFeed.tsx +4 -3
- package/src/icons/react/ViewForm.tsx +4 -3
- package/src/icons/react/ViewList.tsx +4 -3
- package/src/icons/react/ViewMap.tsx +4 -3
- package/src/icons/react/ViewPage.tsx +4 -3
- package/src/icons/react/ViewTable.tsx +4 -3
- package/src/icons/react/ViewTimeline.tsx +4 -3
- package/src/icons/react/Views.tsx +4 -3
- package/src/icons/react/Warning.tsx +4 -3
- package/src/icons/react/WarningTriangle.tsx +4 -3
- package/src/icons/react/Youtube.tsx +4 -3
- package/src/icons/react/index.tsx +1 -0
- package/src/icons/types.ts +12 -8
- package/src/loaders.tsx +1 -1
- package/src/select/select-in-popover.tsx +1 -1
- package/src/toggle-on-off.tsx +4 -4
package/package.json
CHANGED
package/src/button/button.tsx
CHANGED
|
@@ -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 {
|
|
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?:
|
|
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
|
|
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 {
|
|
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",
|
|
44
|
+
{size = "normal", className, primary, dangerous, borderless = true, ...rest},
|
|
39
45
|
ref
|
|
40
46
|
) {
|
|
41
|
-
|
|
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
|
|
45
|
-
{
|
|
46
|
-
{
|
|
47
|
-
|
|
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
|
});
|
package/src/design-system.ts
CHANGED
|
@@ -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.
|
|
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
|
|
479
|
-
`0 0 0 1px ${getOpacities(slateDark.slate1).opacity10}, 0 2px
|
|
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).
|
|
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],
|
|
@@ -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,
|
|
@@ -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
|
+
};
|
package/src/icons/Icon.tsx
CHANGED
|
@@ -1,61 +1,70 @@
|
|
|
1
|
-
import {css} from "@linaria/core";
|
|
2
|
-
import {
|
|
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
|
|
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
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|
-
)
|
|
28
|
-
|
|
29
|
-
|
|
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
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
62
|
+
className={iconClassName}
|
|
63
|
+
viewBox={viewBox}
|
|
64
|
+
style={iconStyle}
|
|
65
|
+
{...rest}
|
|
35
66
|
>
|
|
36
|
-
{children
|
|
37
|
-
|
|
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
|
});
|
|
@@ -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;
|
package/src/icons/ast/index.tsx
CHANGED
|
@@ -160,6 +160,7 @@ export { default as PageWideMode } from './PageWideMode';
|
|
|
160
160
|
export { default as Pencil } from './Pencil';
|
|
161
161
|
export { default as People } from './People';
|
|
162
162
|
export { default as Photo } from './Photo';
|
|
163
|
+
export { default as PinFilled } from './PinFilled';
|
|
163
164
|
export { default as Pin } from './Pin';
|
|
164
165
|
export { default as Popup } from './Popup';
|
|
165
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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;
|
package/src/icons/react/Add.tsx
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
// This icon file is generated automatically.
|
|
2
2
|
|
|
3
|
+
import {forwardRef} from 'react';
|
|
3
4
|
import AddCompactSvg from '../ast/AddCompact';
|
|
4
5
|
import { Icon } from '../Icon';
|
|
5
6
|
import { IconBaseProps } from '../types';
|
|
6
7
|
|
|
7
|
-
const AddCompact = (
|
|
8
|
+
const AddCompact = forwardRef<SVGSVGElement, IconBaseProps>(function AddCompact(
|
|
8
9
|
props: IconBaseProps,
|
|
9
|
-
|
|
10
|
+
ref: React.Ref<SVGSVGElement>
|
|
11
|
+
) {return <Icon {...props} className={props.className} ref={ref} icon={AddCompactSvg} />});
|
|
10
12
|
|
|
11
|
-
AddCompact.displayName = 'AddCompact';
|
|
12
13
|
export default AddCompact;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
// This icon file is generated automatically.
|
|
2
2
|
|
|
3
|
+
import {forwardRef} from 'react';
|
|
3
4
|
import AddGroupSvg from '../ast/AddGroup';
|
|
4
5
|
import { Icon } from '../Icon';
|
|
5
6
|
import { IconBaseProps } from '../types';
|
|
6
7
|
|
|
7
|
-
const AddGroup = (
|
|
8
|
+
const AddGroup = forwardRef<SVGSVGElement, IconBaseProps>(function AddGroup(
|
|
8
9
|
props: IconBaseProps,
|
|
9
|
-
|
|
10
|
+
ref: React.Ref<SVGSVGElement>
|
|
11
|
+
) {return <Icon {...props} className={props.className} ref={ref} icon={AddGroupSvg} />});
|
|
10
12
|
|
|
11
|
-
AddGroup.displayName = 'AddGroup';
|
|
12
13
|
export default AddGroup;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
// This icon file is generated automatically.
|
|
2
2
|
|
|
3
|
+
import {forwardRef} from 'react';
|
|
3
4
|
import AddReactionsSvg from '../ast/AddReactions';
|
|
4
5
|
import { Icon } from '../Icon';
|
|
5
6
|
import { IconBaseProps } from '../types';
|
|
6
7
|
|
|
7
|
-
const AddReactions = (
|
|
8
|
+
const AddReactions = forwardRef<SVGSVGElement, IconBaseProps>(function AddReactions(
|
|
8
9
|
props: IconBaseProps,
|
|
9
|
-
|
|
10
|
+
ref: React.Ref<SVGSVGElement>
|
|
11
|
+
) {return <Icon {...props} className={props.className} ref={ref} icon={AddReactionsSvg} />});
|
|
10
12
|
|
|
11
|
-
AddReactions.displayName = 'AddReactions';
|
|
12
13
|
export default AddReactions;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
// This icon file is generated automatically.
|
|
2
2
|
|
|
3
|
+
import {forwardRef} from 'react';
|
|
3
4
|
import AiAssistantSvg from '../ast/AiAssistant';
|
|
4
5
|
import { Icon } from '../Icon';
|
|
5
6
|
import { IconBaseProps } from '../types';
|
|
6
7
|
|
|
7
|
-
const AiAssistant = (
|
|
8
|
+
const AiAssistant = forwardRef<SVGSVGElement, IconBaseProps>(function AiAssistant(
|
|
8
9
|
props: IconBaseProps,
|
|
9
|
-
|
|
10
|
+
ref: React.Ref<SVGSVGElement>
|
|
11
|
+
) {return <Icon {...props} className={props.className} ref={ref} icon={AiAssistantSvg} />});
|
|
10
12
|
|
|
11
|
-
AiAssistant.displayName = 'AiAssistant';
|
|
12
13
|
export default AiAssistant;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
// This icon file is generated automatically.
|
|
2
2
|
|
|
3
|
+
import {forwardRef} from 'react';
|
|
3
4
|
import AiAvatarSvg from '../ast/AiAvatar';
|
|
4
5
|
import { Icon } from '../Icon';
|
|
5
6
|
import { IconBaseProps } from '../types';
|
|
6
7
|
|
|
7
|
-
const AiAvatar = (
|
|
8
|
+
const AiAvatar = forwardRef<SVGSVGElement, IconBaseProps>(function AiAvatar(
|
|
8
9
|
props: IconBaseProps,
|
|
9
|
-
|
|
10
|
+
ref: React.Ref<SVGSVGElement>
|
|
11
|
+
) {return <Icon {...props} className={props.className} ref={ref} icon={AiAvatarSvg} />});
|
|
10
12
|
|
|
11
|
-
AiAvatar.displayName = 'AiAvatar';
|
|
12
13
|
export default AiAvatar;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
// This icon file is generated automatically.
|
|
2
2
|
|
|
3
|
+
import {forwardRef} from 'react';
|
|
3
4
|
import AlertTriangleSvg from '../ast/AlertTriangle';
|
|
4
5
|
import { Icon } from '../Icon';
|
|
5
6
|
import { IconBaseProps } from '../types';
|
|
6
7
|
|
|
7
|
-
const AlertTriangle = (
|
|
8
|
+
const AlertTriangle = forwardRef<SVGSVGElement, IconBaseProps>(function AlertTriangle(
|
|
8
9
|
props: IconBaseProps,
|
|
9
|
-
|
|
10
|
+
ref: React.Ref<SVGSVGElement>
|
|
11
|
+
) {return <Icon {...props} className={props.className} ref={ref} icon={AlertTriangleSvg} />});
|
|
10
12
|
|
|
11
|
-
AlertTriangle.displayName = 'AlertTriangle';
|
|
12
13
|
export default AlertTriangle;
|
package/src/icons/react/App.tsx
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
// This icon file is generated automatically.
|
|
2
2
|
|
|
3
|
+
import {forwardRef} from 'react';
|
|
3
4
|
import AppSvg from '../ast/App';
|
|
4
5
|
import { Icon } from '../Icon';
|
|
5
6
|
import { IconBaseProps } from '../types';
|
|
6
7
|
|
|
7
|
-
const App = (
|
|
8
|
+
const App = forwardRef<SVGSVGElement, IconBaseProps>(function App(
|
|
8
9
|
props: IconBaseProps,
|
|
9
|
-
|
|
10
|
+
ref: React.Ref<SVGSVGElement>
|
|
11
|
+
) {return <Icon {...props} className={props.className} ref={ref} icon={AppSvg} />});
|
|
10
12
|
|
|
11
|
-
App.displayName = 'App';
|
|
12
13
|
export default App;
|