@coffic/cosy-ui 0.6.24 → 0.6.28
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/README.md +5 -1
- package/dist/{components/base → alert}/Alert.astro +2 -2
- package/dist/alert/AlertBasic.astro +5 -0
- package/dist/alert/AlertCustomStyle.astro +7 -0
- package/dist/alert/AlertTypes.astro +13 -0
- package/dist/alert/AlertWithTitle.astro +5 -0
- package/dist/alert/index.ts +20 -0
- package/dist/app.css +1 -1
- package/dist/{components/typography → article}/Article.astro +2 -2
- package/dist/article/ArticleBasic.astro +31 -0
- package/dist/article/index.ts +11 -0
- package/dist/{components/base → button}/Button.astro +1 -2
- package/dist/button/ButtonBasic.astro +18 -0
- package/dist/button/ButtonShapes.astro +23 -0
- package/dist/button/ButtonSizes.astro +15 -0
- package/dist/button/ButtonStates.astro +12 -0
- package/dist/button/ButtonWithIcons.astro +25 -0
- package/dist/button/index.ts +23 -0
- package/dist/components/containers/Main.astro +1 -2
- package/dist/components/data-display/ProductCard.astro +2 -1
- package/dist/components/data-display/TeamMember.astro +2 -1
- package/dist/components/data-display/TeamMembers.astro +2 -1
- package/dist/components/display/Hero.astro +1 -1
- package/dist/components/display/Modal.astro +1 -1
- package/dist/{components/errors → errors}/404.astro +1 -1
- package/dist/errors/404Basic.astro +5 -0
- package/dist/errors/index.ts +11 -0
- package/dist/flex/FlexBasic.astro +9 -0
- package/dist/flex/index.ts +11 -0
- package/dist/{components/layouts → footer}/Footer.astro +8 -8
- package/dist/footer/FooterBasic.astro +12 -0
- package/dist/footer/FooterSection.astro +46 -0
- package/dist/footer/index.ts +11 -0
- package/dist/{components/layouts → grid}/Grid.astro +1 -1
- package/dist/grid/GridBasic.astro +9 -0
- package/dist/grid/index.ts +11 -0
- package/dist/{components/layouts → header}/Header.astro +14 -51
- package/dist/header/HeaderBasic.astro +14 -0
- package/dist/header/HeaderCustomNavbarEnd.astro +20 -0
- package/dist/header/HeaderCustomPosition.astro +23 -0
- package/dist/header/HeaderWithNavigation.astro +22 -0
- package/dist/header/index.ts +20 -0
- package/dist/{components/typography → heading}/Heading.astro +2 -2
- package/dist/heading/HeadingBasic.astro +10 -0
- package/dist/heading/index.ts +11 -0
- package/dist/{components/base → image}/Image.astro +9 -7
- package/dist/image/ImageBasic.astro +1 -0
- package/dist/image/ImageEffects.astro +32 -0
- package/dist/image/ImageLoading.astro +35 -0
- package/dist/image/index.ts +17 -0
- package/dist/index.ts +2 -95
- package/dist/index_astro.ts +78 -0
- package/dist/index_utils.ts +8 -0
- package/dist/{components/navigation → language-switcher}/LanguageSwitcher.astro +3 -3
- package/dist/language-switcher/LanguageSwitcherBasic.astro +7 -0
- package/dist/language-switcher/index.ts +11 -0
- package/dist/{components/layouts → layout-app}/AppLayout.astro +10 -4
- package/dist/layout-app/AppLayoutBasic.astro +53 -0
- package/dist/layout-app/index.ts +11 -0
- package/dist/{components/layouts → layout-basic}/BaseLayout.astro +2 -2
- package/dist/layout-basic/BaseLayoutBasic.astro +16 -0
- package/dist/layout-basic/index.ts +11 -0
- package/dist/{components/layouts → layout-dashboard}/DashboardLayout.astro +2 -2
- package/dist/layout-dashboard/DashboardLayoutBasic.astro +48 -0
- package/dist/layout-dashboard/index.ts +11 -0
- package/dist/{components/base → link}/Link.astro +1 -1
- package/dist/link/LinkAnimations.astro +21 -0
- package/dist/link/LinkBasic.astro +17 -0
- package/dist/link/LinkVariants.astro +20 -0
- package/dist/link/index.ts +17 -0
- package/dist/module/Module.astro +61 -0
- package/dist/module/ModuleBasic.astro +12 -0
- package/dist/module/ModuleCustom.astro +14 -0
- package/dist/module/ModuleGrid.astro +26 -0
- package/dist/module/index.ts +17 -0
- package/dist/{components/layouts → nav-item}/NavItems.astro +2 -3
- package/dist/nav-item/NavItemsBasic.astro +27 -0
- package/dist/nav-item/index.ts +11 -0
- package/dist/nav-section/NavSection.astro +42 -0
- package/dist/nav-section/NavSectionBasic.astro +12 -0
- package/dist/nav-section/index.ts +11 -0
- package/dist/{components/layouts → sidebar}/Sidebar.astro +5 -6
- package/dist/sidebar/SidebarBasic.astro +1 -0
- package/dist/sidebar/index.ts +11 -0
- package/dist/{components/layouts → sidebar-nav}/SidebarNav.astro +3 -3
- package/dist/sidebar-nav/SidebarNavBasic.astro +32 -0
- package/dist/sidebar-nav/index.ts +11 -0
- package/dist/speak/Speak.astro +65 -0
- package/dist/speak/SpeakBasic.astro +13 -0
- package/dist/speak/SpeakGrid.astro +29 -0
- package/dist/speak/index.ts +14 -0
- package/dist/{components/layouts → stack}/Stack.astro +1 -1
- package/dist/stack/StackBasic.astro +15 -0
- package/dist/stack/index.ts +11 -0
- package/dist/{components/typography → text}/Text.astro +1 -1
- package/dist/text/TextBasic.astro +12 -0
- package/dist/text/TextSizes.astro +11 -0
- package/dist/text/index.ts +11 -0
- package/dist/theme-item/ThemeItem.astro +45 -0
- package/dist/theme-item/ThemeItemBasic.astro +10 -0
- package/dist/theme-item/index.ts +11 -0
- package/dist/{components/navigation → theme-switcher}/ThemeSwitcher.astro +4 -4
- package/dist/theme-switcher/ThemeSwitcherBasic.astro +7 -0
- package/dist/theme-switcher/index.ts +11 -0
- package/dist/{components/navigation → toc}/TableOfContents.astro +3 -3
- package/dist/toc/TableOfContentsBasic.astro +25 -0
- package/dist/toc/index.ts +11 -0
- package/dist/types/image.ts +16 -0
- package/dist/types/menu.ts +24 -0
- package/dist/utils/component.ts +39 -0
- package/dist/vue/AlertDialog/index.ts +3 -41
- package/dist/vue/BannerBox/index.ts +9 -44
- package/dist/vue/BlogList/index.ts +5 -27
- package/dist/vue/Buttons/index.ts +5 -27
- package/dist/vue/ConfirmDialog/index.ts +3 -41
- package/dist/vue/MacWindow/index.ts +7 -21
- package/dist/vue/SmartHero/index.ts +4 -26
- package/dist/vue/iPhone/index.ts +5 -18
- package/package.json +7 -7
- package/dist/components/base/Module.astro +0 -18
- package/dist/components/base/Speak.astro +0 -22
- package/dist/components/base/ThemeItem.astro +0 -21
- package/dist/components/layouts/NavSection.astro +0 -32
- /package/dist/{components/layouts → flex}/Flex.astro +0 -0
package/README.md
CHANGED
@@ -2,10 +2,14 @@
|
|
2
2
|
|
3
3
|
[](README.md)
|
4
4
|
[](README-zh.md)
|
5
|
+
[](https://github.com/yuaotian/go-cursor-help/releases/latest)
|
5
6
|
[](README-dev.md)
|
6
7
|
[](https://www.npmjs.com/package/@coffic/cosy-ui)
|
8
|
+

|
9
|
+

|
7
10
|
[](https://coffic.cn)
|
8
11
|
[](https://github.com/nookery)
|
12
|
+

|
9
13
|
|
10
14
|
This is an Astro component library that provides a unified UI style for multiple projects under the same organization.
|
11
15
|
|
@@ -24,4 +28,4 @@ Usage in Astro components:
|
|
24
28
|
import { Button } from "@coffic/cosy-ui";
|
25
29
|
---
|
26
30
|
<Button>Hi</Button>
|
27
|
-
```
|
31
|
+
```
|
@@ -37,8 +37,8 @@
|
|
37
37
|
*/
|
38
38
|
|
39
39
|
// 导入其他资源必须使用相对路径
|
40
|
-
import '
|
41
|
-
import { InfoIcon, SuccessIcon, WarningIcon, ErrorIcon } from '
|
40
|
+
import '../style.ts';
|
41
|
+
import { InfoIcon, SuccessIcon, WarningIcon, ErrorIcon } from '../index';
|
42
42
|
|
43
43
|
interface Props {
|
44
44
|
type?: 'info' | 'success' | 'warning' | 'error';
|
@@ -0,0 +1,13 @@
|
|
1
|
+
---
|
2
|
+
import Alert from './Alert.astro';
|
3
|
+
---
|
4
|
+
|
5
|
+
<div class="cosy:space-y-4">
|
6
|
+
<Alert type="info" title="信息提示"> 这是一条信息提示消息 </Alert>
|
7
|
+
|
8
|
+
<Alert type="success" title="成功提示"> 这是一条成功提示消息 </Alert>
|
9
|
+
|
10
|
+
<Alert type="warning" title="警告提示"> 这是一条警告提示消息 </Alert>
|
11
|
+
|
12
|
+
<Alert type="error" title="错误提示"> 这是一条错误提示消息 </Alert>
|
13
|
+
</div>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import Alert from './Alert.astro';
|
2
|
+
import AlertBasic from './AlertBasic.astro';
|
3
|
+
import AlertWithTitle from './AlertWithTitle.astro';
|
4
|
+
import AlertTypes from './AlertTypes.astro';
|
5
|
+
import AlertCustomStyle from './AlertCustomStyle.astro';
|
6
|
+
import BasicSourceCode from './AlertBasic.astro?raw';
|
7
|
+
import WithTitleSourceCode from './AlertWithTitle.astro?raw';
|
8
|
+
import TypesSourceCode from './AlertTypes.astro?raw';
|
9
|
+
import CustomStyleSourceCode from './AlertCustomStyle.astro?raw';
|
10
|
+
import { extractSimpleExample } from '../utils/component';
|
11
|
+
|
12
|
+
export { Alert, AlertBasic, AlertWithTitle, AlertTypes, AlertCustomStyle };
|
13
|
+
|
14
|
+
// 导出示例源代码
|
15
|
+
export const AlertExampleCodes = {
|
16
|
+
Basic: extractSimpleExample(BasicSourceCode, 'Alert'),
|
17
|
+
WithTitle: extractSimpleExample(WithTitleSourceCode, 'Alert'),
|
18
|
+
Types: extractSimpleExample(TypesSourceCode, 'Alert'),
|
19
|
+
CustomStyle: extractSimpleExample(CustomStyleSourceCode, 'Alert'),
|
20
|
+
};
|