Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lottie icons 2408 (Milestone 3) #2565

Open
wants to merge 48 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 17 commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
82458af
Revert caret.ts test to original state after debugging modifications.
ohrytskov Nov 7, 2024
f017a16
Add waitForSelector utility and integrate into caret.ts test.
ohrytskov Nov 8, 2024
d51013a
Set default icon size of 18 for all components without explicit size.
ohrytskov Nov 8, 2024
21daac8
Adjust default icon sizes to 18 for NewSubthought, NewThought, and So…
ohrytskov Nov 8, 2024
934fdd3
Adjust default size of TextColorWithColorPicker to 18
ohrytskov Nov 8, 2024
ad4ef97
Update ToolbarButton padding to center buttons vertically.
ohrytskov Nov 8, 2024
a45a9f6
Improve ToolbarButton padding for vertical centering and enhanced cli…
ohrytskov Nov 9, 2024
aba6e23
Enhance LottieAnimation component with color customization and improv…
ohrytskov Nov 10, 2024
c043b76
Implement theme-based color customization and improve documentation.
ohrytskov Nov 10, 2024
7359a47
Improve JSDoc comments for LottieAnimation component.
ohrytskov Nov 11, 2024
ff3cd33
Refactor AnimatedIcon and LottieAnimation for dynamic theme-based col…
ohrytskov Nov 11, 2024
e59e9bd
Puppeteer: update snapshots.
ohrytskov Nov 11, 2024
435e41c
Merge main branch.
ohrytskov Nov 12, 2024
ef16897
Improve color handling for animations in LottieAnimation and remove u…
ohrytskov Nov 12, 2024
ae442ad
Refactor: Move color manipulation functions outside LottieAnimation c…
ohrytskov Nov 13, 2024
4b8b00d
Merge main branch.
ohrytskov Nov 13, 2024
ea19c46
Refactor: Calculate dynamic color during render instead of using useE…
ohrytskov Nov 13, 2024
a10cb99
Add scaling for left and right arrow icons and optimize toolbar butto…
ohrytskov Nov 14, 2024
3a287b9
Refactor Toolbar and Triangle components to support dynamic arrow pad…
ohrytskov Nov 14, 2024
6123396
Refactor AnimatedIcon: replace custom rgbToHex function with @mui/mat…
ohrytskov Nov 15, 2024
661f1cb
Integrate LottieData type definitions and refine component type handl…
ohrytskov Nov 15, 2024
8f39dcc
Enhance Lottie animation data handling with immutability and memoizat…
ohrytskov Nov 15, 2024
57e0af5
Merge main branch.
ohrytskov Nov 15, 2024
71c42b3
Puppeteer: update snapshots.
ohrytskov Nov 15, 2024
496e269
Set the style properties to 100% width and height for the LottieAnima…
ohrytskov Nov 15, 2024
c67735d
Add a horizontal translate transformation to position ItalicTextIcon …
ohrytskov Nov 15, 2024
30a0c0e
Add optional chaining in dynamicColor calculation to prevent errors d…
ohrytskov Nov 15, 2024
6ee8afd
Puppeteer: update snapshots.
ohrytskov Nov 16, 2024
da9058f
Update ItalicTextIcon to include scaling transformation.
ohrytskov Nov 19, 2024
98b4327
Merge main branch.
ohrytskov Nov 19, 2024
a6aab79
Puppeteer: update snapshots.
ohrytskov Nov 19, 2024
ab9beb7
Refactor: Use window.getComputedStyle for dynamic color calculation.
ohrytskov Nov 19, 2024
37070c0
Refactor types: split LottieTypes into separate files in lottie direc…
ohrytskov Nov 20, 2024
bbba58a
Refactor hex color to RGBA conversion using Material-UI hexToRgb.
ohrytskov Nov 20, 2024
dd1a309
Adjust SVG transform styles in IndentIcon and OutdentIcon for better …
ohrytskov Nov 20, 2024
e3bf2a4
Dynamically calculate sizes for undo and redo icons based on font size.
ohrytskov Nov 20, 2024
37089f8
Puppeteer: update snapshots.
ohrytskov Nov 20, 2024
530d90c
Change transform translate values from pixels to percentages in Inden…
ohrytskov Nov 21, 2024
9b57a5f
Update ColorProperty.k type to only include RGBA and AnimationKeyfram…
ohrytskov Nov 21, 2024
01de6df
Rename lottieColor to defaultColor in AnimatedIcon component.
ohrytskov Nov 23, 2024
f8842ab
Add transform styles to icon SVGs for consistent scaling and position…
ohrytskov Nov 23, 2024
6e80deb
Update transform styles of icon SVGs to adjust scaling and positionin…
ohrytskov Nov 23, 2024
014b96d
Refactor ColorProperty to distinguish between static and animated col…
ohrytskov Nov 23, 2024
ecfc627
Refactor hexToRGBA return type to RGBA.
ohrytskov Nov 25, 2024
2311972
Puppeteer: update snapshots.
ohrytskov Nov 25, 2024
c4b378c
Refactor ColorProperty types and update color handling.
ohrytskov Nov 25, 2024
912d44a
Merge main branch.
ohrytskov Nov 25, 2024
be4d8ed
Puppeteer: update snapshots.
ohrytskov Nov 25, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/SearchIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import AnimatedIcon from './icons/AnimatedIcon'
import animationData from './icons/animations/12-search.json'

/** Search Icon with Conditional Lottie Animation. */
const SearchIcon = ({ fill, size, style = {}, cssRaw, animated, animationComplete }: IconType) => {
const SearchIcon = ({ fill, size = 18, style = {}, cssRaw, animated, animationComplete }: IconType) => {
return (
<AnimatedIcon {...{ fill, size, style, cssRaw, animated, animationData, animationComplete }}>
<svg
Expand Down
4 changes: 2 additions & 2 deletions src/components/ToolbarButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ const ToolbarButton: FC<ToolbarButtonProps> = ({
toolbarPointerEvents({ override: true }),
css({
display: 'inline-block',
padding: '15px 8px 5px 8px',
padding: '12px 8px 5px 8px',
borderRadius: '3px',
zIndex: 'stack',
// animate maxWidth to avoid having to know the exact width of the toolbar icon
Expand All @@ -203,7 +203,7 @@ const ToolbarButton: FC<ToolbarButtonProps> = ({
'transform {durations.veryFastDuration} ease-out, max-width {durations.veryFastDuration} ease-out, margin-left {durations.veryFastDuration} ease-out',
// extend drop area down, otherwise the drop hover is blocked by the user's finger
// must match toolbar marginBottom
paddingBottom: isDraggingAny ? '7em' : 0,
paddingBottom: isDraggingAny ? '7em' : '10px',
}),
)}
onMouseLeave={onMouseLeave}
Expand Down
28 changes: 27 additions & 1 deletion src/components/icons/AnimatedIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
import { useRef } from 'react'
import { useSelector } from 'react-redux'
import { css, cx } from '../../../styled-system/css'
import { icon } from '../../../styled-system/recipes'
import { token } from '../../../styled-system/tokens'
import AnimatedIconType from '../../@types/AnimatedIconType'
import { ICON_SCALING_FACTOR } from '../../constants'
import theme from '../../selectors/theme'
import LottieAnimation from './LottieAnimation'

/** Function to Convert RGB Color to Hex. */
const rgbToHex = (color: string): string => {
trevinhofmann marked this conversation as resolved.
Show resolved Hide resolved
const result = color.match(/\d+/g)
if (!result) return ''

const [r, g, b] = result.map(Number)
return `#${((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1)}`
}

/** Animated Icon with Conditional Lottie Animation. */
const AnimatedIcon = ({
fill,
Expand All @@ -16,11 +28,21 @@ const AnimatedIcon = ({
children,
animationComplete,
}: AnimatedIconType) => {
const isLightTheme = useSelector(state => theme(state) === 'Light')
const lottieColor = isLightTheme ? '#000000' : '#FFFFFF'
const newSize = size * ICON_SCALING_FACTOR
const color = style.fill || fill || token('colors.fg')

// Create a ref to the parent div
const divRef = useRef<HTMLDivElement | null>(null)

// Calculate dynamic color directly
const computedStyle = divRef.current ? getComputedStyle(divRef.current) : null
trevinhofmann marked this conversation as resolved.
Show resolved Hide resolved
const dynamicColor = computedStyle ? rgbToHex(computedStyle.color) : lottieColor

return (
<div
ref={divRef}
className={cx(icon(), css(cssRaw))}
style={{
...style,
Expand All @@ -30,7 +52,11 @@ const AnimatedIcon = ({
display: 'inline-flex',
}}
>
{animated ? <LottieAnimation animationData={animationData} onComplete={animationComplete} /> : children}
{animated ? (
<LottieAnimation animationData={animationData} onComplete={animationComplete} color={dynamicColor} />
) : (
children
)}
</div>
)
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/icons/ArchiveIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import AnimatedIcon from './AnimatedIcon'
import animationData from './animations/22-trash_3.json'

/** Archive Icon with Conditional Lottie Animation. */
const ArchiveIcon = ({ fill, size, style = {}, cssRaw, animated, animationComplete }: IconType) => {
const ArchiveIcon = ({ fill, size = 18, style = {}, cssRaw, animated, animationComplete }: IconType) => {
return (
<AnimatedIcon {...{ fill, size, style, cssRaw, animated, animationData, animationComplete }}>
<svg
Expand Down
2 changes: 1 addition & 1 deletion src/components/icons/BackIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import AnimatedIcon from './AnimatedIcon'
import animationData from './animations/06-back.json'

/** Back Icon with Conditional Lottie Animation. */
const BackIcon = ({ fill, size, style = {}, cssRaw, animated, animationComplete }: IconType) => {
const BackIcon = ({ fill, size = 18, style = {}, cssRaw, animated, animationComplete }: IconType) => {
return (
<AnimatedIcon {...{ fill, size, style, cssRaw, animated, animationData, animationComplete }}>
<svg
Expand Down
2 changes: 1 addition & 1 deletion src/components/icons/BoldTextIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import AnimatedIcon from './AnimatedIcon'
import animationData from './animations/13-bold_4.json'

/** Bold Text Icon with Conditional Lottie Animation. */
const BoldTextIcon = ({ fill, size, style = {}, cssRaw, animated, animationComplete }: IconType) => {
const BoldTextIcon = ({ fill, size = 18, style = {}, cssRaw, animated, animationComplete }: IconType) => {
return (
<AnimatedIcon {...{ fill, size, style, cssRaw, animated, animationData, animationComplete }}>
<svg
Expand Down
2 changes: 1 addition & 1 deletion src/components/icons/BumpThoughtDownIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import AnimatedIcon from './AnimatedIcon'
import animationData from './animations/14-bump-thought-down_2.json'

/** Bump Thought Down Icon with Conditional Lottie Animation. */
const BumpThoughtDownIcon = ({ fill, size, style = {}, cssRaw, animated, animationComplete }: IconType) => {
const BumpThoughtDownIcon = ({ fill, size = 18, style = {}, cssRaw, animated, animationComplete }: IconType) => {
return (
<AnimatedIcon {...{ fill, size, style, cssRaw, animated, animationData, animationComplete }}>
<svg
Expand Down
2 changes: 1 addition & 1 deletion src/components/icons/Check.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import AnimatedIcon from './AnimatedIcon'
import animationData from './animations/12-mark-as-done_3.json'

/** Check Icon Component used for toggleDone with Conditional Lottie Animation. */
const CheckIcon = ({ fill, size, style = {}, cssRaw, animated, animationComplete }: IconType) => {
const CheckIcon = ({ fill, size = 18, style = {}, cssRaw, animated, animationComplete }: IconType) => {
return (
<AnimatedIcon {...{ fill, size, style, cssRaw, animated, animationData, animationComplete }}>
<svg
Expand Down
2 changes: 1 addition & 1 deletion src/components/icons/ClearThoughtIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import AnimatedIcon from './AnimatedIcon'
import animationData from './animations/25-clear-thought.json'

/** Clear Thought Icon with Conditional Lottie Animation. */
const ClearThoughtIcon = ({ fill, size, style = {}, cssRaw, animated, animationComplete }: IconType) => {
const ClearThoughtIcon = ({ fill, size = 18, style = {}, cssRaw, animated, animationComplete }: IconType) => {
return (
<AnimatedIcon {...{ fill, size, style, cssRaw, animated, animationData, animationComplete }}>
<svg
Expand Down
2 changes: 1 addition & 1 deletion src/components/icons/CollapseIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import AnimatedIcon from './AnimatedIcon'
import animationData from './animations/26-collaps_2.json'

/** Collapse Icon with Conditional Lottie Animation. */
const CollapseIcon = ({ fill, size, style = {}, cssRaw, animated, animationComplete }: IconType) => {
const CollapseIcon = ({ fill, size = 18, style = {}, cssRaw, animated, animationComplete }: IconType) => {
return (
<AnimatedIcon {...{ fill, size, style, cssRaw, animated, animationData, animationComplete }}>
<svg
Expand Down
2 changes: 1 addition & 1 deletion src/components/icons/CommandPaletteIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import AnimatedIcon from './AnimatedIcon'
import animationData from './animations/27-command-palette.json'

/** CommandPalette Icon with Conditional Lottie Animation. */
const CommandPaletteIcon = ({ fill, size, style = {}, cssRaw, animated, animationComplete }: IconType) => {
const CommandPaletteIcon = ({ fill, size = 18, style = {}, cssRaw, animated, animationComplete }: IconType) => {
return (
<AnimatedIcon {...{ fill, size, style, cssRaw, animated, animationData, animationComplete }}>
<svg
Expand Down
2 changes: 1 addition & 1 deletion src/components/icons/ContextViewIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import AnimatedIcon from './AnimatedIcon'
import animationData from './animations/18-context-view_3.json'

/** Context View Icon with Conditional Lottie Animation. */
const ContextViewIcon = ({ fill, size, style = {}, cssRaw, animated, animationComplete }: IconType) => {
const ContextViewIcon = ({ fill, size = 18, style = {}, cssRaw, animated, animationComplete }: IconType) => {
return (
<AnimatedIcon {...{ fill, size, style, cssRaw, animated, animationData, animationComplete }}>
<svg
Expand Down
2 changes: 1 addition & 1 deletion src/components/icons/ConvertToNoteIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import AnimatedIcon from './AnimatedIcon'
import animationData from './animations/24-convert-to-note.json'

/** Convert To Note Icon with Conditional Lottie Animation. */
const ConvertToNoteIcon = ({ fill, size, style = {}, cssRaw, animated, animationComplete }: IconType) => {
const ConvertToNoteIcon = ({ fill, size = 18, style = {}, cssRaw, animated, animationComplete }: IconType) => {
return (
<AnimatedIcon {...{ fill, size, style, cssRaw, animated, animationData, animationComplete }}>
<svg
Expand Down
2 changes: 1 addition & 1 deletion src/components/icons/DeleteIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import AnimatedIcon from './AnimatedIcon'
import animationData from './animations/31-parmanently-delete_2.json'

/** Delete Icon with Conditional Lottie Animation. */
const DeleteIcon = ({ fill, size, style = {}, cssRaw, animated, animationComplete }: IconType) => {
const DeleteIcon = ({ fill, size = 18, style = {}, cssRaw, animated, animationComplete }: IconType) => {
return (
<AnimatedIcon {...{ fill, size, style, cssRaw, animated, animationData, animationComplete }}>
<svg
Expand Down
2 changes: 1 addition & 1 deletion src/components/icons/DeviceIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import AnimatedIcon from './AnimatedIcon'
import animationData from './animations/26-device-management_2.json'

/** Device Icon with Conditional Lottie Animation. */
const DeviceIcon = ({ fill, size, style = {}, cssRaw, animated, animationComplete }: IconType) => {
const DeviceIcon = ({ fill, size = 18, style = {}, cssRaw, animated, animationComplete }: IconType) => {
return (
<AnimatedIcon {...{ fill, size, style, cssRaw, animated, animationData, animationComplete }}>
<svg
Expand Down
2 changes: 1 addition & 1 deletion src/components/icons/ExtractThoughtIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import AnimatedIcon from './AnimatedIcon'
import animationData from './animations/28-extract_2.json'

/** Extract Thought Icon with Conditional Lottie Animation. */
const ExtractThoughtIcon = ({ fill, size, style = {}, cssRaw, animated, animationComplete }: IconType) => {
const ExtractThoughtIcon = ({ fill, size = 18, style = {}, cssRaw, animated, animationComplete }: IconType) => {
return (
<AnimatedIcon {...{ fill, size, style, cssRaw, animated, animationData, animationComplete }}>
<svg
Expand Down
2 changes: 1 addition & 1 deletion src/components/icons/FavoritesIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import AnimatedIcon from './AnimatedIcon'
import animationData from './animations/04-favorite_3.json'

/** Favorites Icon with Conditional Lottie Animation. */
const FavoritesIcon = ({ fill, size, style = {}, cssRaw, animated, animationComplete }: IconType) => {
const FavoritesIcon = ({ fill, size = 18, style = {}, cssRaw, animated, animationComplete }: IconType) => {
return (
<AnimatedIcon {...{ fill, size, style, cssRaw, animated, animationData, animationComplete }}>
<svg
Expand Down
2 changes: 1 addition & 1 deletion src/components/icons/GenerateThoughtIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import AnimatedIcon from './AnimatedIcon'
import animationData from './animations/29-generate-thought_2.json'

/** Generate Thought Icon with Conditional Lottie Animation. */
const GenerateThoughtIcon = ({ fill, size, style = {}, cssRaw, animated, animationComplete }: IconType) => {
const GenerateThoughtIcon = ({ fill, size = 18, style = {}, cssRaw, animated, animationComplete }: IconType) => {
return (
<AnimatedIcon {...{ fill, size, style, cssRaw, animated, animationData, animationComplete }}>
<svg
Expand Down
2 changes: 1 addition & 1 deletion src/components/icons/Heading1Icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import AnimatedIcon from './AnimatedIcon'
import animationData from './animations/18-heading-one.json'

/** Heading1 Icon with Conditional Lottie Animation. */
const Heading1Icon = ({ fill, size, style = {}, cssRaw, animated, animationComplete }: IconType) => {
const Heading1Icon = ({ fill, size = 18, style = {}, cssRaw, animated, animationComplete }: IconType) => {
return (
<AnimatedIcon {...{ fill, size, style, cssRaw, animated, animationData, animationComplete }}>
<svg
Expand Down
2 changes: 1 addition & 1 deletion src/components/icons/Heading2Icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import AnimatedIcon from './AnimatedIcon'
import animationData from './animations/19-heading-two.json'

/** Heading2 Icon with Conditional Lottie Animation. */
const Heading2Icon = ({ fill, size, style = {}, cssRaw, animated, animationComplete }: IconType) => {
const Heading2Icon = ({ fill, size = 18, style = {}, cssRaw, animated, animationComplete }: IconType) => {
return (
<AnimatedIcon {...{ fill, size, style, cssRaw, animated, animationData, animationComplete }}>
<svg
Expand Down
2 changes: 1 addition & 1 deletion src/components/icons/Heading3Icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import AnimatedIcon from './AnimatedIcon'
import animationData from './animations/20-heading-three.json'

/** Heading3 Icon with Conditional Lottie Animation. */
const Heading3Icon = ({ fill, size, style = {}, cssRaw, animated, animationComplete }: IconType) => {
const Heading3Icon = ({ fill, size = 18, style = {}, cssRaw, animated, animationComplete }: IconType) => {
return (
<AnimatedIcon {...{ fill, size, style, cssRaw, animated, animationData, animationComplete }}>
<svg
Expand Down
2 changes: 1 addition & 1 deletion src/components/icons/Heading4Icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import AnimatedIcon from './AnimatedIcon'
import animationData from './animations/21-heading-four.json'

/** Heading4 Icon with Conditional Lottie Animation. */
const Heading4Icon = ({ fill, size, style = {}, cssRaw, animated, animationComplete }: IconType) => {
const Heading4Icon = ({ fill, size = 18, style = {}, cssRaw, animated, animationComplete }: IconType) => {
return (
<AnimatedIcon {...{ fill, size, style, cssRaw, animated, animationData, animationComplete }}>
<svg
Expand Down
2 changes: 1 addition & 1 deletion src/components/icons/Heading5Icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import AnimatedIcon from './AnimatedIcon'
import animationData from './animations/22-heading-five.json'

/** Heading5 Icon with Conditional Lottie Animation. */
const Heading5Icon = ({ fill, size, style = {}, cssRaw, animated, animationComplete }: IconType) => {
const Heading5Icon = ({ fill, size = 18, style = {}, cssRaw, animated, animationComplete }: IconType) => {
return (
<AnimatedIcon {...{ fill, size, style, cssRaw, animated, animationData, animationComplete }}>
<svg
Expand Down
2 changes: 1 addition & 1 deletion src/components/icons/HelpIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import AnimatedIcon from './AnimatedIcon'
import animationData from './animations/13-help_2.json'

/** Help Icon with Conditional Lottie Animation. */
const HelpIcon = ({ fill, size, style = {}, cssRaw, animated, animationComplete }: IconType) => {
const HelpIcon = ({ fill, size = 18, style = {}, cssRaw, animated, animationComplete }: IconType) => {
return (
<AnimatedIcon {...{ fill, size, style, cssRaw, animated, animationData, animationComplete }}>
<svg
Expand Down
2 changes: 1 addition & 1 deletion src/components/icons/HiddenThoughtsIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import AnimatedIcon from './AnimatedIcon'
import animationData from './animations/24-show-hidden-thoughts_4.json'

/** Hidden Thoughts Icon with Conditional Lottie Animation. */
const HiddenThoughtsIcon = ({ fill, size, style = {}, cssRaw, animated, animationComplete }: IconType) => {
const HiddenThoughtsIcon = ({ fill, size = 18, style = {}, cssRaw, animated, animationComplete }: IconType) => {
return (
<AnimatedIcon {...{ fill, size, style, cssRaw, animated, animationData, animationComplete }}>
<svg
Expand Down
2 changes: 1 addition & 1 deletion src/components/icons/HomeToolbarIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import AnimatedIcon from './AnimatedIcon'
import animationData from './animations/11-home.json'

/** HomeToolbar Icon with Conditional Lottie Animation. */
const HomeToolbarIcon = ({ fill, size, style = {}, cssRaw, animated, animationComplete }: IconType) => {
const HomeToolbarIcon = ({ fill, size = 18, style = {}, cssRaw, animated, animationComplete }: IconType) => {
return (
<AnimatedIcon {...{ fill, size, style, cssRaw, animated, animationData, animationComplete }}>
<svg
Expand Down
2 changes: 1 addition & 1 deletion src/components/icons/IndentIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import AnimatedIcon from './AnimatedIcon'
import animationData from './animations/06-indent_2.json'

/** Indent Icon with Conditional Lottie Animation. */
const IndentIcon = ({ fill, size, style = {}, cssRaw, animated, animationComplete }: IconType) => {
const IndentIcon = ({ fill, size = 18, style = {}, cssRaw, animated, animationComplete }: IconType) => {
return (
<AnimatedIcon {...{ fill, size, style, cssRaw, animated, animationData, animationComplete }}>
<svg
Expand Down
2 changes: 1 addition & 1 deletion src/components/icons/ItalicTextIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import AnimatedIcon from './AnimatedIcon'
import animationData from './animations/14-italic_4.json'

/** Italic Text Icon with Conditional Lottie Animation. */
const ItalicTextIcon = ({ fill, size, style = {}, cssRaw, animated, animationComplete }: IconType) => {
const ItalicTextIcon = ({ fill, size = 18, style = {}, cssRaw, animated, animationComplete }: IconType) => {
return (
<AnimatedIcon {...{ fill, size, style, cssRaw, animated, animationData, animationComplete }}>
<svg
Expand Down
2 changes: 1 addition & 1 deletion src/components/icons/JoinThoughtsIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import AnimatedIcon from './AnimatedIcon'
import animationData from './animations/30-join-thought.json'

/** Join Thoughts Icon with Conditional Lottie Animation. */
const JoinThoughtsIcon = ({ fill, size, style = {}, cssRaw, animated, animationComplete }: IconType) => {
const JoinThoughtsIcon = ({ fill, size = 18, style = {}, cssRaw, animated, animationComplete }: IconType) => {
return (
<AnimatedIcon {...{ fill, size, style, cssRaw, animated, animationData, animationComplete }}>
<svg
Expand Down
2 changes: 1 addition & 1 deletion src/components/icons/JumpBackIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import AnimatedIcon from './AnimatedIcon'
import animationData from './animations/07-jump-back.json'

/** JumpBack Icon with Conditional Lottie Animation. */
const JumpBackIcon = ({ fill, size, style = {}, cssRaw, animated, animationComplete }: IconType) => {
const JumpBackIcon = ({ fill, size = 18, style = {}, cssRaw, animated, animationComplete }: IconType) => {
return (
<AnimatedIcon {...{ fill, size, style, cssRaw, animated, animationData, animationComplete }}>
<svg
Expand Down
2 changes: 1 addition & 1 deletion src/components/icons/JumpForwardIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import AnimatedIcon from './AnimatedIcon'
import animationData from './animations/08-jump-forward.json'

/** JumpForward Icon with Conditional Lottie Animation. */
const JumpForwardIcon = ({ fill, size, style = {}, cssRaw, animated, animationComplete }: IconType) => {
const JumpForwardIcon = ({ fill, size = 18, style = {}, cssRaw, animated, animationComplete }: IconType) => {
return (
<AnimatedIcon {...{ fill, size, style, cssRaw, animated, animationData, animationComplete }}>
<svg
Expand Down
Loading
Loading