@coffic/cosy-ui 0.8.20 → 0.8.22
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/dist/app.css +1 -1
- package/dist/src/assets/iconData.ts +10 -0
- package/dist/src/utils/i18n.ts +52 -50
- package/dist/src-astro/banner/Banner.astro +55 -3
- package/dist/src-astro/banner/index.ts +1 -52
- package/dist/src-astro/button/Button.astro +41 -2
- package/dist/src-astro/code-container/ButtonCodeToggle.astro +55 -0
- package/dist/src-astro/code-container/ButtonCopyCode.astro +74 -0
- package/dist/src-astro/code-container/CodeContainer.astro +14 -289
- package/dist/src-astro/code-container/CodePanel.astro +14 -0
- package/dist/src-astro/code-container/CodeToolbar.astro +100 -0
- package/dist/src-astro/code-container/Description.astro +17 -0
- package/dist/src-astro/code-container/Preview.astro +93 -0
- package/dist/src-astro/footer/Footer.astro +52 -20
- package/dist/src-astro/footer/FooterSection.astro +7 -9
- package/dist/src-astro/grid/index.ts +1 -9
- package/dist/src-astro/heading/index.ts +1 -9
- package/dist/src-astro/hero/Hero.astro +78 -9
- package/dist/src-astro/icons/AppStoreIcon.astro +37 -0
- package/dist/src-astro/icons/AstroIcon.astro +8 -1
- package/dist/src-astro/icons/CodeIcon.astro +22 -0
- package/dist/src-astro/icons/WebsiteIcon.astro +31 -0
- package/dist/src-astro/icons/index.ts +4 -2
- package/dist/src-astro/language-switcher/LanguageSwitcher.astro +6 -2
- package/dist/src-astro/link/Link.astro +50 -3
- package/dist/src-astro/nav-item/index.ts +1 -9
- package/dist/src-astro/products/ProductCard.astro +68 -32
- package/dist/src-astro/types/footer.ts +130 -125
- package/dist/src-vue/iPhone/iPhoneWindow.vue +2 -6
- package/dist/src-vue/utils/i18n.ts +52 -50
- package/package.json +1 -1
- package/dist/src-astro/banner/BannerAllAnimations.astro +0 -10
- package/dist/src-astro/banner/BannerBasic.astro +0 -5
- package/dist/src-astro/banner/BannerCustomStyle.astro +0 -8
- package/dist/src-astro/banner/BannerDanger.astro +0 -5
- package/dist/src-astro/banner/BannerFadeIn.astro +0 -5
- package/dist/src-astro/banner/BannerInfo.astro +0 -5
- package/dist/src-astro/banner/BannerPrimary.astro +0 -5
- package/dist/src-astro/banner/BannerSecondary.astro +0 -5
- package/dist/src-astro/banner/BannerSlideUp.astro +0 -5
- package/dist/src-astro/banner/BannerSuccess.astro +0 -5
- package/dist/src-astro/banner/BannerWarning.astro +0 -5
- package/dist/src-astro/grid/GridBasic.astro +0 -21
- package/dist/src-astro/heading/HeadingBasic.astro +0 -10
- package/dist/src-astro/nav-item/NavItemsBasic.astro +0 -30
@@ -1,21 +0,0 @@
|
|
1
|
-
---
|
2
|
-
import Grid from './Grid.astro';
|
3
|
-
---
|
4
|
-
|
5
|
-
<Grid cols={3} gap="md">
|
6
|
-
<div
|
7
|
-
style="background: #60a5fa; color: white; padding: 16px; border-radius: 8px;"
|
8
|
-
>
|
9
|
-
第一列
|
10
|
-
</div>
|
11
|
-
<div
|
12
|
-
style="background: #34d399; color: white; padding: 16px; border-radius: 8px;"
|
13
|
-
>
|
14
|
-
第二列
|
15
|
-
</div>
|
16
|
-
<div
|
17
|
-
style="background: #f59e42; color: white; padding: 16px; border-radius: 8px;"
|
18
|
-
>
|
19
|
-
第三列
|
20
|
-
</div>
|
21
|
-
</Grid>
|
@@ -1,10 +0,0 @@
|
|
1
|
-
---
|
2
|
-
import Heading from './Heading.astro';
|
3
|
-
---
|
4
|
-
|
5
|
-
<Heading level={1}>一级标题</Heading>
|
6
|
-
<Heading level={2} underline color="primary">带下划线的二级标题</Heading>
|
7
|
-
<Heading level={3} color="secondary">三级标题</Heading>
|
8
|
-
<Heading level={4} align="center">居中的四级标题</Heading>
|
9
|
-
<Heading level={5} color="muted">五级标题</Heading>
|
10
|
-
<Heading level={6} anchor id="section-6">带锚点的六级标题</Heading>
|
@@ -1,30 +0,0 @@
|
|
1
|
-
---
|
2
|
-
import NavItems from './NavItems.astro';
|
3
|
-
|
4
|
-
const navItems = [
|
5
|
-
{
|
6
|
-
label: '首页',
|
7
|
-
href: '/',
|
8
|
-
},
|
9
|
-
{
|
10
|
-
label: '文档',
|
11
|
-
href: '/docs',
|
12
|
-
},
|
13
|
-
{
|
14
|
-
label: '组件',
|
15
|
-
href: '/components',
|
16
|
-
},
|
17
|
-
{
|
18
|
-
label: '博客',
|
19
|
-
href: '/blog',
|
20
|
-
},
|
21
|
-
];
|
22
|
-
---
|
23
|
-
|
24
|
-
<div class="cosy:bg-base-100 cosy:p-4">
|
25
|
-
<NavItems
|
26
|
-
navItems={navItems}
|
27
|
-
activeLink="/docs"
|
28
|
-
linkHeightClass="cosy:h-10"
|
29
|
-
/>
|
30
|
-
</div>
|