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

refactor: use individial lucide icons #44

Merged
merged 1 commit into from
Sep 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
15 changes: 15 additions & 0 deletions packages/storylite/assets/lucide/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
ISC License

Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2022 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2022.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
21 changes: 21 additions & 0 deletions packages/storylite/assets/lucide/svg/x-circle.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"$schema": "../icon.schema.json",
"contributors": ["colebemis", "ericfennis"],
"tags": [
"cancel",
"close",
"delete",
"remove",
"times",
"clear",
"error",
"incorrect",
"wrong",
"mistake",
"failure",
"linter",
"multiply",
"multiplication"
],
"categories": ["maths", "shapes", "development"]
}
15 changes: 15 additions & 0 deletions packages/storylite/assets/lucide/svg/x-circle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
MonitorSmartphoneIcon,
MoonIcon,
SunIcon,
XCircleIcon,
} from 'lucide-react'

import xCircleIcon from '@/assets/lucide/svg/x-circle.svg'
import { InlineHtml } from '@/components/InlineHtml'

Check warning on line 13 in packages/storylite/src/components/addons/getToolbarAddons.tsx

View check run for this annotation

Codecov / codecov/patch

packages/storylite/src/components/addons/getToolbarAddons.tsx#L12-L13

Added lines #L12 - L13 were not covered by tests
import { getStoryUrl } from '@/services/csf-api/navigation'

import {
Expand Down Expand Up @@ -152,7 +153,7 @@
{
tooltip: 'Toggle maximized view',
defaultContent: <ExpandIcon />,
activeContent: <XCircleIcon />,
activeContent: <InlineHtml>{xCircleIcon}</InlineHtml>,

Check warning on line 156 in packages/storylite/src/components/addons/getToolbarAddons.tsx

View check run for this annotation

Codecov / codecov/patch

packages/storylite/src/components/addons/getToolbarAddons.tsx#L156

Added line #L156 was not covered by tests
placement,
stateful: true,
persistent: true,
Expand Down