webcoreui 0.0.5 → 0.0.6
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/astro.d.ts +13 -5
- package/astro.js +9 -7
- package/components/Accordion/Accordion.astro +3 -7
- package/components/Accordion/Accordion.svelte +2 -6
- package/components/Accordion/Accordion.tsx +6 -10
- package/components/Accordion/accordion.scss +6 -3
- package/components/Button/Button.tsx +3 -1
- package/components/Card/Card.tsx +5 -0
- package/components/Card/card.ts +1 -0
- package/components/Icon/Icon.astro +20 -0
- package/components/Icon/Icon.svelte +23 -0
- package/components/Icon/Icon.tsx +26 -0
- package/components/Icon/icon.ts +5 -0
- package/{public/icons → icons}/arrow-down.svg +1 -1
- package/{public/icons → icons}/github.svg +3 -3
- package/package.json +2 -2
- package/react.d.ts +13 -5
- package/react.js +9 -7
- package/svelte.d.ts +13 -5
- package/svelte.js +9 -7
- package/public/fonts/Inter-Bold.woff2 +0 -0
- package/public/fonts/Inter-Regular.woff2 +0 -0
- package/public/img/banner.png +0 -0
- package/public/img/favicon.svg +0 -9
- package/public/img/logo.png +0 -0
package/astro.d.ts
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
1
|
+
|
|
2
|
+
declare module 'webcoreui/astro' {
|
|
3
|
+
import type { AccordionProps } from './components/Accordion/accordion'
|
|
4
|
+
import type { ButtonProps } from './components/Button/button'
|
|
5
|
+
import type { CardProps } from './components/Card/card'
|
|
6
|
+
import type { IconProps } from './components/Icon/icon'
|
|
7
|
+
|
|
8
|
+
export function Accordion(_props: AccordionProps): any
|
|
9
|
+
export function Button(_props: ButtonProps): any
|
|
10
|
+
export function Card(_props: CardProps): any
|
|
11
|
+
export function Icon(_props: IconProps): any
|
|
12
|
+
}
|
|
13
|
+
|
package/astro.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import AccordionComponent from './components/Accordion/Accordion.astro'
|
|
2
|
-
import ButtonComponent from './components/Button/Button.astro'
|
|
3
|
-
import CardComponent from './components/Card/Card.astro'
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export const
|
|
7
|
-
export const
|
|
1
|
+
import AccordionComponent from './components/Accordion/Accordion.astro'
|
|
2
|
+
import ButtonComponent from './components/Button/Button.astro'
|
|
3
|
+
import CardComponent from './components/Card/Card.astro'
|
|
4
|
+
import IconComponent from './components/Icon/Icon.astro'
|
|
5
|
+
|
|
6
|
+
export const Accordion = AccordionComponent
|
|
7
|
+
export const Button = ButtonComponent
|
|
8
|
+
export const Card = CardComponent
|
|
9
|
+
export const Icon = IconComponent
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
import type { AccordionProps } from './accordion'
|
|
3
|
+
import Icon from '../Icon/Icon.astro'
|
|
3
4
|
|
|
4
5
|
interface Props extends AccordionProps {}
|
|
5
6
|
|
|
@@ -9,16 +10,11 @@ const {
|
|
|
9
10
|
---
|
|
10
11
|
|
|
11
12
|
<ul data-id="accordion">
|
|
12
|
-
{items.map(item => (
|
|
13
|
+
{items.map((item: AccordionProps['items'][0]) => (
|
|
13
14
|
<li>
|
|
14
15
|
<div class="accordion-title">
|
|
15
16
|
{item.title}
|
|
16
|
-
<
|
|
17
|
-
src="/icons/arrow-down.svg"
|
|
18
|
-
alt="GitHub"
|
|
19
|
-
width={15}
|
|
20
|
-
height={15}
|
|
21
|
-
/>
|
|
17
|
+
<Icon type="arrow-down" size={15} />
|
|
22
18
|
</div>
|
|
23
19
|
<div class="accordion-wrapper">
|
|
24
20
|
<div class="accordion-content">
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import type { AccordionProps } from './accordion'
|
|
3
|
+
import ArrowDown from '../../icons/arrow-down.svg?raw'
|
|
3
4
|
|
|
4
5
|
export let items: AccordionProps['items']
|
|
5
6
|
|
|
@@ -22,12 +23,7 @@
|
|
|
22
23
|
on:click={() => toggle(index)}
|
|
23
24
|
>
|
|
24
25
|
{item.title}
|
|
25
|
-
|
|
26
|
-
src="/icons/arrow-down.svg"
|
|
27
|
-
alt="GitHub"
|
|
28
|
-
width={15}
|
|
29
|
-
height={15}
|
|
30
|
-
/>
|
|
26
|
+
{@html ArrowDown}
|
|
31
27
|
</div>
|
|
32
28
|
<div class="accordion-wrapper">
|
|
33
29
|
<div class="accordion-content">
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React, { useState } from 'react'
|
|
2
2
|
import type { AccordionProps } from './accordion'
|
|
3
|
+
import ArrowDown from '../../icons/arrow-down.svg?raw'
|
|
3
4
|
import './accordion.scss'
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
const Accordion = ({ items }: AccordionProps) => {
|
|
6
7
|
const [state, setState] = useState(Array(items.length).fill(false))
|
|
7
8
|
|
|
8
9
|
const toggle = (index: number) => {
|
|
@@ -19,15 +20,8 @@ export const Accordion = ({ items }: AccordionProps) => {
|
|
|
19
20
|
<div
|
|
20
21
|
className={state[index] ? 'accordion-title open' : 'accordion-title'}
|
|
21
22
|
onClick={() => toggle(index)}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
<img
|
|
25
|
-
src="/icons/arrow-down.svg"
|
|
26
|
-
alt="GitHub"
|
|
27
|
-
width={15}
|
|
28
|
-
height={15}
|
|
29
|
-
/>
|
|
30
|
-
</div>
|
|
23
|
+
dangerouslySetInnerHTML={{ __html: `${item.title} ${ArrowDown}` }}
|
|
24
|
+
/>
|
|
31
25
|
<div className="accordion-wrapper">
|
|
32
26
|
<div className="accordion-content">
|
|
33
27
|
<div dangerouslySetInnerHTML={{ __html: item.content }} />
|
|
@@ -38,3 +32,5 @@ export const Accordion = ({ items }: AccordionProps) => {
|
|
|
38
32
|
</ul>
|
|
39
33
|
)
|
|
40
34
|
}
|
|
35
|
+
|
|
36
|
+
export default Accordion
|
|
@@ -25,13 +25,16 @@ ul {
|
|
|
25
25
|
align-items: center;
|
|
26
26
|
cursor: pointer;
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
svg {
|
|
29
29
|
@include Transition(transform);
|
|
30
|
-
|
|
30
|
+
color: #BBB;
|
|
31
|
+
width: 15px;
|
|
32
|
+
height: 15px;
|
|
33
|
+
pointer-events: none;
|
|
31
34
|
}
|
|
32
35
|
|
|
33
36
|
&.open {
|
|
34
|
-
|
|
37
|
+
svg {
|
|
35
38
|
transform: rotate(180deg);
|
|
36
39
|
}
|
|
37
40
|
|
|
@@ -2,7 +2,7 @@ import React from 'react'
|
|
|
2
2
|
import type { ButtonProps } from './button'
|
|
3
3
|
import './button.scss'
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
const Button = ({
|
|
6
6
|
theme,
|
|
7
7
|
bold,
|
|
8
8
|
href,
|
|
@@ -30,3 +30,5 @@ export const Button = ({
|
|
|
30
30
|
</button>
|
|
31
31
|
)
|
|
32
32
|
}
|
|
33
|
+
|
|
34
|
+
export default Button
|
package/components/Card/Card.tsx
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type CardProps = {}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
import type { IconProps } from './icon'
|
|
3
|
+
|
|
4
|
+
interface Props extends IconProps {}
|
|
5
|
+
|
|
6
|
+
const {
|
|
7
|
+
type,
|
|
8
|
+
size = 24,
|
|
9
|
+
color
|
|
10
|
+
} = Astro.props
|
|
11
|
+
|
|
12
|
+
const { default: markup } = await import(`../../icons/${type}.svg?raw`)
|
|
13
|
+
const icon = markup
|
|
14
|
+
.replace('width="24"', `width=${size}`)
|
|
15
|
+
.replace('height="24"', color
|
|
16
|
+
? `height=${size} color=${color}`
|
|
17
|
+
: `height=${size}`)
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
<Fragment set:html={icon} />
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { IconProps } from './icon'
|
|
3
|
+
|
|
4
|
+
import Github from '../../icons/github.svg?raw'
|
|
5
|
+
import ArrowDown from '../../icons/arrow-down.svg?raw'
|
|
6
|
+
|
|
7
|
+
export let type: IconProps['type']
|
|
8
|
+
export let size: IconProps['size'] = 24
|
|
9
|
+
export let color: IconProps['color']
|
|
10
|
+
|
|
11
|
+
const iconMap = {
|
|
12
|
+
'github': Github,
|
|
13
|
+
'arrow-down': ArrowDown
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const icon = iconMap[type]
|
|
17
|
+
.replace('width="24"', `width=${size}`)
|
|
18
|
+
.replace('height="24"', color
|
|
19
|
+
? `height=${size} color=${color}`
|
|
20
|
+
: `height=${size}`)
|
|
21
|
+
</script>
|
|
22
|
+
|
|
23
|
+
{@html icon}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import type { IconProps } from './icon'
|
|
3
|
+
|
|
4
|
+
import Github from '../../icons/github.svg?raw'
|
|
5
|
+
import ArrowDown from '../../icons/arrow-down.svg?raw'
|
|
6
|
+
|
|
7
|
+
const iconMap = {
|
|
8
|
+
'github': Github,
|
|
9
|
+
'arrow-down': ArrowDown
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
const Icon = ({
|
|
13
|
+
type,
|
|
14
|
+
size = 24,
|
|
15
|
+
color
|
|
16
|
+
}: IconProps) => {
|
|
17
|
+
const icon = iconMap[type]
|
|
18
|
+
.replace('width="24"', `width=${size}`)
|
|
19
|
+
.replace('height="24"', color
|
|
20
|
+
? `height=${size} color=${color}`
|
|
21
|
+
: `height=${size}`)
|
|
22
|
+
|
|
23
|
+
return <div dangerouslySetInnerHTML={{ __html: icon }} />
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export default Icon
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M0.360618 6.42142C0.864272 5.88419 1.70806 5.85699 2.24526 6.36062L12 15.5057L21.7547 6.36062C22.292 5.85699 23.1358 5.88419 23.6395 6.42142C24.143 6.95865 24.1158 7.80243 23.5787 8.30606L12.9119 18.3062C12.3991 18.787 11.601 18.787 11.0881 18.3062L0.421418 8.30606C-0.11581 7.80243 -0.143009 6.95865 0.360618 6.42142Z" fill="
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M0.360618 6.42142C0.864272 5.88419 1.70806 5.85699 2.24526 6.36062L12 15.5057L21.7547 6.36062C22.292 5.85699 23.1358 5.88419 23.6395 6.42142C24.143 6.95865 24.1158 7.80243 23.5787 8.30606L12.9119 18.3062C12.3991 18.787 11.601 18.787 11.0881 18.3062L0.421418 8.30606C-0.11581 7.80243 -0.143009 6.95865 0.360618 6.42142Z" fill="currentColor" />
|
|
3
3
|
</svg>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
<svg width="24" height="24" viewBox="0 0 24 24"
|
|
2
|
-
<path d="M22.3903 6.12641C21.3172 4.24172 19.8617 2.74961 18.0232 1.64975C16.1845 0.549822 14.1772 0 11.9999 0C9.82282 0 7.81486 0.54999 5.97655 1.64975C4.13797 2.74956 2.68246 4.24172 1.60939 6.12641C0.536482 8.01104 0 10.0691 0 12.3005C0 14.9808 0.762885 17.3911 2.28904 19.5319C3.81503 21.6728 5.78638 23.1543 8.20293 23.9764C8.48422 24.0299 8.69245 23.9923 8.82785 23.8644C8.96329 23.7364 9.03093 23.5761 9.03093 23.3841C9.03093 23.3521 9.02825 23.0639 9.02305 22.5193C9.01812 22.0442 9.01549 21.5691 9.01517 21.094L8.65579 21.1577C8.42665 21.2008 8.13758 21.219 7.78859 21.2138C7.43977 21.2088 7.07764 21.1714 6.70271 21.1017C6.32762 21.0326 5.97874 20.8725 5.6558 20.6215C5.33302 20.3706 5.10388 20.0422 4.96844 19.6367L4.81219 19.2681C4.70805 19.0227 4.54409 18.7502 4.32009 18.4514C4.0961 18.1523 3.86959 17.9496 3.64045 17.8428L3.53105 17.7625C3.45816 17.7092 3.39051 17.6448 3.32796 17.5702C3.26546 17.4955 3.21867 17.4208 3.18742 17.346C3.15612 17.2711 3.18206 17.2096 3.26552 17.1614C3.34898 17.1133 3.4998 17.0899 3.71865 17.0899L4.03103 17.1377C4.23937 17.1805 4.49708 17.3084 4.80448 17.522C5.11171 17.7356 5.36427 18.0131 5.56222 18.3547C5.80192 18.7926 6.09071 19.1262 6.42941 19.3559C6.76784 19.5855 7.10906 19.7001 7.45274 19.7001C7.79642 19.7001 8.09325 19.6734 8.34335 19.6202C8.59318 19.5668 8.82757 19.4866 9.04642 19.3799C9.14017 18.6642 9.39541 18.1143 9.81193 17.73C9.21826 17.6661 8.68452 17.5697 8.21042 17.4417C7.7366 17.3134 7.24697 17.1053 6.74184 16.8167C6.23645 16.5285 5.81719 16.1707 5.48396 15.7438C5.15068 15.3166 4.87715 14.7559 4.66378 14.062C4.45029 13.3678 4.34352 12.5671 4.34352 11.6595C4.34352 10.3673 4.75506 9.26765 5.57798 8.35997C5.19249 7.38846 5.22888 6.29936 5.68727 5.0928C5.98936 4.99659 6.43735 5.06879 7.03102 5.30894C7.6248 5.54921 8.05954 5.75504 8.33569 5.92569C8.61184 6.09629 8.8331 6.24085 8.99979 6.3581C9.96872 6.08058 10.9686 5.94179 11.9998 5.94179C13.0309 5.94179 14.0311 6.08058 15 6.3581L15.5938 5.97388C15.9998 5.71751 16.4792 5.48257 17.031 5.269C17.5831 5.05555 18.0052 4.99675 18.297 5.09296C18.7656 6.29959 18.8074 7.38863 18.4217 8.36014C19.2446 9.26782 19.6563 10.3677 19.6563 11.6597C19.6563 12.5673 19.5492 13.3705 19.336 14.07C19.1226 14.7696 18.8467 15.3298 18.5083 15.7518C18.1695 16.1737 17.7475 16.5288 17.2424 16.8169C16.7372 17.1052 16.2474 17.3134 15.7735 17.4416C15.2995 17.5698 14.7658 17.6662 14.1721 17.7303C14.7136 18.2106 14.9843 18.9688 14.9843 20.0045V23.3837C14.9843 23.5756 15.0495 23.7359 15.1798 23.864C15.31 23.9918 15.5156 24.0295 15.7969 23.9759C18.2138 23.1539 20.1851 21.6724 21.7111 19.5314C23.2368 17.3907 24 14.9804 24 12.3C23.9995 10.0689 23.4627 8.01104 22.3903 6.12641Z" fill="
|
|
3
|
-
</svg>
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M22.3903 6.12641C21.3172 4.24172 19.8617 2.74961 18.0232 1.64975C16.1845 0.549822 14.1772 0 11.9999 0C9.82282 0 7.81486 0.54999 5.97655 1.64975C4.13797 2.74956 2.68246 4.24172 1.60939 6.12641C0.536482 8.01104 0 10.0691 0 12.3005C0 14.9808 0.762885 17.3911 2.28904 19.5319C3.81503 21.6728 5.78638 23.1543 8.20293 23.9764C8.48422 24.0299 8.69245 23.9923 8.82785 23.8644C8.96329 23.7364 9.03093 23.5761 9.03093 23.3841C9.03093 23.3521 9.02825 23.0639 9.02305 22.5193C9.01812 22.0442 9.01549 21.5691 9.01517 21.094L8.65579 21.1577C8.42665 21.2008 8.13758 21.219 7.78859 21.2138C7.43977 21.2088 7.07764 21.1714 6.70271 21.1017C6.32762 21.0326 5.97874 20.8725 5.6558 20.6215C5.33302 20.3706 5.10388 20.0422 4.96844 19.6367L4.81219 19.2681C4.70805 19.0227 4.54409 18.7502 4.32009 18.4514C4.0961 18.1523 3.86959 17.9496 3.64045 17.8428L3.53105 17.7625C3.45816 17.7092 3.39051 17.6448 3.32796 17.5702C3.26546 17.4955 3.21867 17.4208 3.18742 17.346C3.15612 17.2711 3.18206 17.2096 3.26552 17.1614C3.34898 17.1133 3.4998 17.0899 3.71865 17.0899L4.03103 17.1377C4.23937 17.1805 4.49708 17.3084 4.80448 17.522C5.11171 17.7356 5.36427 18.0131 5.56222 18.3547C5.80192 18.7926 6.09071 19.1262 6.42941 19.3559C6.76784 19.5855 7.10906 19.7001 7.45274 19.7001C7.79642 19.7001 8.09325 19.6734 8.34335 19.6202C8.59318 19.5668 8.82757 19.4866 9.04642 19.3799C9.14017 18.6642 9.39541 18.1143 9.81193 17.73C9.21826 17.6661 8.68452 17.5697 8.21042 17.4417C7.7366 17.3134 7.24697 17.1053 6.74184 16.8167C6.23645 16.5285 5.81719 16.1707 5.48396 15.7438C5.15068 15.3166 4.87715 14.7559 4.66378 14.062C4.45029 13.3678 4.34352 12.5671 4.34352 11.6595C4.34352 10.3673 4.75506 9.26765 5.57798 8.35997C5.19249 7.38846 5.22888 6.29936 5.68727 5.0928C5.98936 4.99659 6.43735 5.06879 7.03102 5.30894C7.6248 5.54921 8.05954 5.75504 8.33569 5.92569C8.61184 6.09629 8.8331 6.24085 8.99979 6.3581C9.96872 6.08058 10.9686 5.94179 11.9998 5.94179C13.0309 5.94179 14.0311 6.08058 15 6.3581L15.5938 5.97388C15.9998 5.71751 16.4792 5.48257 17.031 5.269C17.5831 5.05555 18.0052 4.99675 18.297 5.09296C18.7656 6.29959 18.8074 7.38863 18.4217 8.36014C19.2446 9.26782 19.6563 10.3677 19.6563 11.6597C19.6563 12.5673 19.5492 13.3705 19.336 14.07C19.1226 14.7696 18.8467 15.3298 18.5083 15.7518C18.1695 16.1737 17.7475 16.5288 17.2424 16.8169C16.7372 17.1052 16.2474 17.3134 15.7735 17.4416C15.2995 17.5698 14.7658 17.6662 14.1721 17.7303C14.7136 18.2106 14.9843 18.9688 14.9843 20.0045V23.3837C14.9843 23.5756 15.0495 23.7359 15.1798 23.864C15.31 23.9918 15.5156 24.0295 15.7969 23.9759C18.2138 23.1539 20.1851 21.6724 21.7111 19.5314C23.2368 17.3907 24 14.9804 24 12.3C23.9995 10.0689 23.4627 8.01104 22.3903 6.12641Z" fill="currentColor"/>
|
|
3
|
+
</svg>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webcoreui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.6",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "astro dev",
|
|
7
7
|
"build": "astro check && astro build",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"files": [
|
|
30
30
|
"components",
|
|
31
|
-
"
|
|
31
|
+
"icons",
|
|
32
32
|
"scss",
|
|
33
33
|
"astro.d.ts",
|
|
34
34
|
"astro.js",
|
package/react.d.ts
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
1
|
+
|
|
2
|
+
declare module 'webcoreui/react' {
|
|
3
|
+
import type { AccordionProps } from './components/Accordion/accordion'
|
|
4
|
+
import type { ButtonProps } from './components/Button/button'
|
|
5
|
+
import type { CardProps } from './components/Card/card'
|
|
6
|
+
import type { IconProps } from './components/Icon/icon'
|
|
7
|
+
|
|
8
|
+
export function Accordion(_props: AccordionProps): any
|
|
9
|
+
export function Button(_props: ButtonProps): any
|
|
10
|
+
export function Card(_props: CardProps): any
|
|
11
|
+
export function Icon(_props: IconProps): any
|
|
12
|
+
}
|
|
13
|
+
|
package/react.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export const
|
|
7
|
-
export const
|
|
1
|
+
import AccordionComponent from './components/Accordion/Accordion.tsx'
|
|
2
|
+
import ButtonComponent from './components/Button/Button.tsx'
|
|
3
|
+
import CardComponent from './components/Card/Card.tsx'
|
|
4
|
+
import IconComponent from './components/Icon/Icon.tsx'
|
|
5
|
+
|
|
6
|
+
export const Accordion = AccordionComponent
|
|
7
|
+
export const Button = ButtonComponent
|
|
8
|
+
export const Card = CardComponent
|
|
9
|
+
export const Icon = IconComponent
|
package/svelte.d.ts
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
1
|
+
|
|
2
|
+
declare module 'webcoreui/svelte' {
|
|
3
|
+
import type { AccordionProps } from './components/Accordion/accordion'
|
|
4
|
+
import type { ButtonProps } from './components/Button/button'
|
|
5
|
+
import type { CardProps } from './components/Card/card'
|
|
6
|
+
import type { IconProps } from './components/Icon/icon'
|
|
7
|
+
|
|
8
|
+
export function Accordion(_props: AccordionProps): any
|
|
9
|
+
export function Button(_props: ButtonProps): any
|
|
10
|
+
export function Card(_props: CardProps): any
|
|
11
|
+
export function Icon(_props: IconProps): any
|
|
12
|
+
}
|
|
13
|
+
|
package/svelte.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import AccordionComponent from './components/Accordion/Accordion.svelte'
|
|
2
|
-
import ButtonComponent from './components/Button/Button.svelte'
|
|
3
|
-
import CardComponent from './components/Card/Card.svelte'
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export const
|
|
7
|
-
export const
|
|
1
|
+
import AccordionComponent from './components/Accordion/Accordion.svelte'
|
|
2
|
+
import ButtonComponent from './components/Button/Button.svelte'
|
|
3
|
+
import CardComponent from './components/Card/Card.svelte'
|
|
4
|
+
import IconComponent from './components/Icon/Icon.svelte'
|
|
5
|
+
|
|
6
|
+
export const Accordion = AccordionComponent
|
|
7
|
+
export const Button = ButtonComponent
|
|
8
|
+
export const Card = CardComponent
|
|
9
|
+
export const Icon = IconComponent
|
|
Binary file
|
|
Binary file
|
package/public/img/banner.png
DELETED
|
Binary file
|
package/public/img/favicon.svg
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 128 128">
|
|
2
|
-
<path d="M50.4 78.5a75.1 75.1 0 0 0-28.5 6.9l24.2-65.7c.7-2 1.9-3.2 3.4-3.2h29c1.5 0 2.7 1.2 3.4 3.2l24.2 65.7s-11.6-7-28.5-7L67 45.5c-.4-1.7-1.6-2.8-2.9-2.8-1.3 0-2.5 1.1-2.9 2.7L50.4 78.5Zm-1.1 28.2Zm-4.2-20.2c-2 6.6-.6 15.8 4.2 20.2a17.5 17.5 0 0 1 .2-.7 5.5 5.5 0 0 1 5.7-4.5c2.8.1 4.3 1.5 4.7 4.7.2 1.1.2 2.3.2 3.5v.4c0 2.7.7 5.2 2.2 7.4a13 13 0 0 0 5.7 4.9v-.3l-.2-.3c-1.8-5.6-.5-9.5 4.4-12.8l1.5-1a73 73 0 0 0 3.2-2.2 16 16 0 0 0 6.8-11.4c.3-2 .1-4-.6-6l-.8.6-1.6 1a37 37 0 0 1-22.4 2.7c-5-.7-9.7-2-13.2-6.2Z" />
|
|
3
|
-
<style>
|
|
4
|
-
path { fill: #000; }
|
|
5
|
-
@media (prefers-color-scheme: dark) {
|
|
6
|
-
path { fill: #FFF; }
|
|
7
|
-
}
|
|
8
|
-
</style>
|
|
9
|
-
</svg>
|
package/public/img/logo.png
DELETED
|
Binary file
|