Skip to content

Commit

Permalink
feat: export icons under diete.design/icons
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtechsimetka committed Jan 2, 2024
1 parent b49d54c commit 7981ac5
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 18 deletions.
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
".": {
"types": "./dist/index.d.ts",
"svelte": "./dist/index.js"
},
"./icons": {
"types": "./dist/icons.d.ts",
"svelte": "./dist/icons.js"
}
},
"files": [
Expand Down
44 changes: 44 additions & 0 deletions src/lib/icons.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
export { default as AddComment } from './icons/add-comment.svelte'
export { default as Add } from './icons/add.svelte'
export { default as ArrowDownRight } from './icons/arrow-down-right.svelte'
export { default as ArrowRight } from './icons/arrow-right.svelte'
export { default as Login } from './icons/login.svelte'
export { default as ChatBot } from './icons/chat-bot.svelte'
export { default as Light } from './icons/light.svelte'
export { default as Asleep } from './icons/asleep.svelte'
export { default as CopyLink } from './icons/copy-link.svelte'
export { default as ChevronUp } from './icons/chevron-up.svelte'
export { default as ArrowUpRight } from './icons/arrow-up-right.svelte'
export { default as ArrowUp } from './icons/arrow-up.svelte'
export { default as Receipt } from './icons/receipt.svelte'
export { default as Wallet } from './icons/wallet.svelte'
export { default as Close } from './icons/close.svelte'
export { default as User } from './icons/user.svelte'
export { default as Pending } from './icons/pending.svelte'
export { default as Logout } from './icons/logout.svelte'
export { default as CheckmarkFilled } from './icons/checkmark-filled.svelte'
export { default as CaretDown } from './icons/caret-down.svelte'
export { default as Events } from './icons/events.svelte'
export { default as QrCode } from './icons/qr-code.svelte'
export { default as PaintPalette } from './icons/paint-palette.svelte'
export { default as ChevronLeft } from './icons/chevron-left.svelte'
export { default as Checkmark } from './icons/checkmark.svelte'
export { default as Bullhorn } from './icons/bullhorn.svelte'
export { default as ChevronDown } from './icons/chevron-down.svelte'
export { default as TrashCan } from './icons/trash-can.svelte'
export { default as Settings } from './icons/settings.svelte'
export { default as Edit } from './icons/edit.svelte'
export { default as Camera } from './icons/camera.svelte'
export { default as WarningAltFilled } from './icons/warning-alt-filled.svelte'
export { default as Renew } from './icons/renew.svelte'
export { default as ArrowsVertical } from './icons/arrows-vertical.svelte'
export { default as ChevronRight } from './icons/chevron-right.svelte'
export { default as DataViewAlt } from './icons/data-view-alt.svelte'
export { default as SettingsAdjust } from './icons/settings-adjust.svelte'
export { default as Copy } from './icons/copy.svelte'
export { default as SettingsView } from './icons/settings-view.svelte'
export { default as ChatLaunch } from './icons/chat-launch.svelte'
export { default as ShowDataCards } from './icons/show-data-cards.svelte'
export { default as UserFollow } from './icons/user-follow.svelte'
export { default as Launch } from './icons/launch.svelte'
export { default as DocumentSigned } from './icons/document-signed.svelte'
29 changes: 11 additions & 18 deletions src/lib/index.ts
Original file line number Diff line number Diff line change
@@ -1,31 +1,24 @@
// Inputs
import Button from './components/inputs/button.svelte'
export { default as Button } from './components/inputs/button.svelte'
export { default as InputText } from './components/inputs/input-text.svelte'

// Layout
import Container from './components/layout/container.svelte'
export { default as Container } from './components/layout/container.svelte'
export { default as Grid } from './components/layout/grid.svelte'

// Data Display
import Badge from './components/data-display/badge.svelte'
import Typography from './components/data-display/typography.svelte'
export { default as Badge } from './components/data-display/badge.svelte'
export { default as Typography } from './components/data-display/typography.svelte'
export { default as Dropdown } from './components/inputs/dropdown.svelte'
export { default as DropdownItem } from './components/inputs/dropdown-item.svelte'

import Theme from './theme.svelte'
import type { DarkModeOption } from './types'
export { default as Theme } from './theme.svelte'
export type { DarkModeOption } from './types'

// Icons
import AddComment from './icons/add-comment.svelte'
import Add from './icons/add.svelte'
import ArrowDownRight from './icons/arrow-down-right.svelte'
import ArrowRight from './icons/arrow-right.svelte'

export {
Badge,
Button,
Typography,
Theme,
Container,
type DarkModeOption,
AddComment,
Add,
ArrowDownRight,
ArrowRight,
}
export { AddComment, Add, ArrowDownRight, ArrowRight }

0 comments on commit 7981ac5

Please sign in to comment.