@coffic/cosy-ui 0.8.10 → 0.8.12

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.
Files changed (157) hide show
  1. package/dist/app.css +1 -1
  2. package/dist/src-astro/alert/index.ts +7 -15
  3. package/dist/src-astro/assets/iconData.ts +100 -0
  4. package/dist/src-astro/button/index_astro.ts +2 -56
  5. package/dist/src-astro/card/CardCourse.astro +31 -11
  6. package/dist/src-astro/card/index.ts +15 -25
  7. package/dist/src-astro/code-container/CodeContainer.astro +205 -5
  8. package/dist/src-astro/code-container/index.ts +9 -13
  9. package/dist/src-astro/contact/index.ts +16 -20
  10. package/dist/src-astro/errors/index.ts +0 -62
  11. package/dist/src-astro/footer/index.ts +1 -30
  12. package/dist/src-astro/header/Header.astro +1 -2
  13. package/dist/src-astro/header/index.ts +1 -40
  14. package/dist/src-astro/hero/index.ts +1 -39
  15. package/dist/src-astro/icons/ChartIcon.astro +28 -0
  16. package/dist/src-astro/icons/DashboardIcon.astro +28 -0
  17. package/dist/src-astro/icons/DeleteIcon.astro +28 -0
  18. package/dist/src-astro/icons/DocumentIcon.astro +28 -0
  19. package/dist/src-astro/icons/DownloadIcon.astro +28 -0
  20. package/dist/src-astro/icons/EditIcon.astro +28 -0
  21. package/dist/src-astro/icons/FolderIcon.astro +28 -0
  22. package/dist/src-astro/icons/HeartIcon.astro +28 -0
  23. package/dist/src-astro/icons/HomeIcon.astro +28 -0
  24. package/dist/src-astro/icons/MailIcon.astro +28 -0
  25. package/dist/src-astro/icons/MessageIcon.astro +28 -0
  26. package/dist/src-astro/icons/NotificationIcon.astro +28 -0
  27. package/dist/src-astro/icons/ReportIcon.astro +28 -0
  28. package/dist/src-astro/icons/SaveIcon.astro +28 -0
  29. package/dist/src-astro/icons/SecurityIcon.astro +28 -0
  30. package/dist/src-astro/icons/StarIcon.astro +28 -0
  31. package/dist/src-astro/icons/ToolsIcon.astro +28 -0
  32. package/dist/src-astro/icons/UploadIcon.astro +28 -0
  33. package/dist/src-astro/icons/UsersIcon.astro +28 -0
  34. package/dist/src-astro/icons/WalletIcon.astro +28 -0
  35. package/dist/src-astro/icons/index.ts +20 -0
  36. package/dist/src-astro/layout-app/index.ts +5 -9
  37. package/dist/src-astro/layout-dashboard/DashboardLayout.astro +159 -555
  38. package/dist/src-astro/layout-dashboard/DashboardSidebar.astro +219 -0
  39. package/dist/src-astro/layout-dashboard/DashboardTopNavbar.astro +164 -0
  40. package/dist/src-astro/layout-dashboard/index.ts +14 -8
  41. package/dist/src-astro/layout-dashboard/tools.ts +0 -0
  42. package/dist/src-astro/layout-dashboard/types.ts +319 -0
  43. package/package.json +1 -1
  44. package/dist/src-astro/alert/EAlertBasic.astro +0 -11
  45. package/dist/src-astro/alert/EAlertBasicContainer.astro +0 -11
  46. package/dist/src-astro/alert/EAlertCustomStyle.astro +0 -16
  47. package/dist/src-astro/alert/EAlertCustomStyleContainer.astro +0 -11
  48. package/dist/src-astro/alert/EAlertError.astro +0 -6
  49. package/dist/src-astro/alert/EAlertInfo.astro +0 -6
  50. package/dist/src-astro/alert/EAlertSuccess.astro +0 -6
  51. package/dist/src-astro/alert/EAlertTypesContainer.astro +0 -43
  52. package/dist/src-astro/alert/EAlertWarning.astro +0 -6
  53. package/dist/src-astro/alert/EAlertWithTitle.astro +0 -12
  54. package/dist/src-astro/alert/EAlertWithTitleContainer.astro +0 -11
  55. package/dist/src-astro/button/ButtonBasic.astro +0 -18
  56. package/dist/src-astro/button/ButtonBasicContainer.astro +0 -11
  57. package/dist/src-astro/button/ButtonBlock.astro +0 -5
  58. package/dist/src-astro/button/ButtonError.astro +0 -5
  59. package/dist/src-astro/button/ButtonGhost.astro +0 -5
  60. package/dist/src-astro/button/ButtonIconBoth.astro +0 -9
  61. package/dist/src-astro/button/ButtonIconLeft.astro +0 -8
  62. package/dist/src-astro/button/ButtonIconRight.astro +0 -8
  63. package/dist/src-astro/button/ButtonInfo.astro +0 -5
  64. package/dist/src-astro/button/ButtonLinkContainer.astro +0 -19
  65. package/dist/src-astro/button/ButtonNeutral.astro +0 -5
  66. package/dist/src-astro/button/ButtonOutline.astro +0 -5
  67. package/dist/src-astro/button/ButtonShapeCircle.astro +0 -5
  68. package/dist/src-astro/button/ButtonShapeDefault.astro +0 -5
  69. package/dist/src-astro/button/ButtonShapeSquare.astro +0 -5
  70. package/dist/src-astro/button/ButtonShapes.astro +0 -23
  71. package/dist/src-astro/button/ButtonShapesContainer.astro +0 -29
  72. package/dist/src-astro/button/ButtonSizes.astro +0 -15
  73. package/dist/src-astro/button/ButtonSizesContainer.astro +0 -11
  74. package/dist/src-astro/button/ButtonStates.astro +0 -12
  75. package/dist/src-astro/button/ButtonStatesContainer.astro +0 -11
  76. package/dist/src-astro/button/ButtonSuccess.astro +0 -5
  77. package/dist/src-astro/button/ButtonVariantsContainer.astro +0 -73
  78. package/dist/src-astro/button/ButtonWarning.astro +0 -5
  79. package/dist/src-astro/button/ButtonWide.astro +0 -5
  80. package/dist/src-astro/button/ButtonWidth.astro +0 -8
  81. package/dist/src-astro/button/ButtonWidthContainer.astro +0 -19
  82. package/dist/src-astro/button/ButtonWithIcons.astro +0 -25
  83. package/dist/src-astro/button/ButtonWithIconsContainer.astro +0 -29
  84. package/dist/src-astro/card/CardBasic.astro +0 -5
  85. package/dist/src-astro/card/ECardBasic.astro +0 -13
  86. package/dist/src-astro/card/ECardBasicContainer.astro +0 -11
  87. package/dist/src-astro/card/ECardClickable.astro +0 -16
  88. package/dist/src-astro/card/ECardClickableContainer.astro +0 -11
  89. package/dist/src-astro/card/ECardCompact.astro +0 -13
  90. package/dist/src-astro/card/ECardCompactContainer.astro +0 -11
  91. package/dist/src-astro/card/ECardCustomStyle.astro +0 -17
  92. package/dist/src-astro/card/ECardCustomStyleContainer.astro +0 -11
  93. package/dist/src-astro/card/ECardWithImage.astro +0 -16
  94. package/dist/src-astro/card/ECardWithImageContainer.astro +0 -11
  95. package/dist/src-astro/card/ECardWithSubtitle.astro +0 -13
  96. package/dist/src-astro/card/ECardWithSubtitleContainer.astro +0 -11
  97. package/dist/src-astro/code-container/ECodeContainerBasic.astro +0 -19
  98. package/dist/src-astro/code-container/ECodeContainerMultiple.astro +0 -49
  99. package/dist/src-astro/contact/EContactBasic.astro +0 -15
  100. package/dist/src-astro/contact/EContactBasicContainer.astro +0 -11
  101. package/dist/src-astro/contact/EContactCompact.astro +0 -11
  102. package/dist/src-astro/contact/EContactCompactContainer.astro +0 -11
  103. package/dist/src-astro/contact/EContactCustomStyle.astro +0 -21
  104. package/dist/src-astro/contact/EContactCustomStyleContainer.astro +0 -11
  105. package/dist/src-astro/contact/EContactSocial.astro +0 -20
  106. package/dist/src-astro/contact/EContactSocialContainer.astro +0 -11
  107. package/dist/src-astro/contact/EContactWithTitle.astro +0 -17
  108. package/dist/src-astro/contact/EContactWithTitleContainer.astro +0 -11
  109. package/dist/src-astro/errors/E403Basic.astro +0 -11
  110. package/dist/src-astro/errors/E403BasicContainer.astro +0 -20
  111. package/dist/src-astro/errors/E404Basic.astro +0 -11
  112. package/dist/src-astro/errors/E404BasicContainer.astro +0 -20
  113. package/dist/src-astro/errors/E404WithDebug.astro +0 -18
  114. package/dist/src-astro/errors/E500Basic.astro +0 -11
  115. package/dist/src-astro/errors/E500BasicContainer.astro +0 -20
  116. package/dist/src-astro/errors/E503Maintenance.astro +0 -20
  117. package/dist/src-astro/errors/E503MaintenanceContainer.astro +0 -21
  118. package/dist/src-astro/errors/EErrorPageCustomStyle.astro +0 -21
  119. package/dist/src-astro/errors/EErrorPageCustomStyleContainer.astro +0 -21
  120. package/dist/src-astro/errors/EErrorPageShowcase.astro +0 -68
  121. package/dist/src-astro/errors/EErrorPageShowcaseContainer.astro +0 -21
  122. package/dist/src-astro/footer/EFooterBasic.astro +0 -18
  123. package/dist/src-astro/footer/EFooterBasicContainer.astro +0 -11
  124. package/dist/src-astro/footer/EFooterComplete.astro +0 -50
  125. package/dist/src-astro/footer/EFooterCompleteContainer.astro +0 -11
  126. package/dist/src-astro/footer/EFooterFeaturesContainer.astro +0 -40
  127. package/dist/src-astro/footer/EFooterWithLogo.astro +0 -28
  128. package/dist/src-astro/footer/EFooterWithLogoContainer.astro +0 -11
  129. package/dist/src-astro/footer/EFooterWithNavigation.astro +0 -24
  130. package/dist/src-astro/footer/EFooterWithNavigationContainer.astro +0 -11
  131. package/dist/src-astro/footer/EFooterWithProducts.astro +0 -24
  132. package/dist/src-astro/footer/EFooterWithProductsContainer.astro +0 -11
  133. package/dist/src-astro/footer/EFooterWithSocial.astro +0 -24
  134. package/dist/src-astro/footer/EFooterWithSocialContainer.astro +0 -11
  135. package/dist/src-astro/header/HeaderBasic.astro +0 -19
  136. package/dist/src-astro/header/HeaderCustomNavbarCenter.astro +0 -28
  137. package/dist/src-astro/header/HeaderCustomNavbarEnd.astro +0 -25
  138. package/dist/src-astro/header/HeaderCustomNavbarStart.astro +0 -27
  139. package/dist/src-astro/header/HeaderCustomPosition.astro +0 -34
  140. package/dist/src-astro/header/HeaderWithNavigation.astro +0 -27
  141. package/dist/src-astro/hero/EHeroAlignCenter.astro +0 -13
  142. package/dist/src-astro/hero/EHeroAlignContainer.astro +0 -27
  143. package/dist/src-astro/hero/EHeroAlignLeft.astro +0 -13
  144. package/dist/src-astro/hero/EHeroAlignRight.astro +0 -13
  145. package/dist/src-astro/hero/EHeroBackgroundContainer.astro +0 -18
  146. package/dist/src-astro/hero/EHeroBackgroundImage.astro +0 -16
  147. package/dist/src-astro/hero/EHeroBackgroundImageContainer.astro +0 -11
  148. package/dist/src-astro/hero/EHeroBasic.astro +0 -12
  149. package/dist/src-astro/hero/EHeroBasicContainer.astro +0 -11
  150. package/dist/src-astro/hero/EHeroGradientBackground.astro +0 -10
  151. package/dist/src-astro/hero/EHeroPlainBackground.astro +0 -10
  152. package/dist/src-astro/hero/EHeroWithButton.astro +0 -14
  153. package/dist/src-astro/hero/EHeroWithButtonContainer.astro +0 -11
  154. package/dist/src-astro/hero/EHeroWithImage.astro +0 -16
  155. package/dist/src-astro/hero/EHeroWithImageContainer.astro +0 -11
  156. package/dist/src-astro/layout-app/AppLayoutBasic.astro +0 -54
  157. package/dist/src-astro/layout-dashboard/DashboardLayoutBasic.astro +0 -51
@@ -1,29 +0,0 @@
1
- ---
2
- import { CodeContainer } from '../../index-astro';
3
- import ButtonShapeCircle from './ButtonShapeCircle.astro';
4
- import ButtonShapeSquare from './ButtonShapeSquare.astro';
5
- import ButtonShapeDefault from './ButtonShapeDefault.astro';
6
- import ButtonShapeCircleSourceCode from './ButtonShapeCircle.astro?raw';
7
- import ButtonShapeSquareSourceCode from './ButtonShapeSquare.astro?raw';
8
- import ButtonShapeDefaultSourceCode from './ButtonShapeDefault.astro?raw';
9
- ---
10
-
11
- <CodeContainer
12
- titles={['圆形', '方形', '默认']}
13
- codes={[
14
- ButtonShapeCircleSourceCode,
15
- ButtonShapeSquareSourceCode,
16
- ButtonShapeDefaultSourceCode,
17
- ]}>
18
- <div id="tab-1">
19
- <ButtonShapeCircle />
20
- </div>
21
-
22
- <div id="tab-2">
23
- <ButtonShapeSquare />
24
- </div>
25
-
26
- <div id="tab-3">
27
- <ButtonShapeDefault />
28
- </div>
29
- </CodeContainer>
@@ -1,15 +0,0 @@
1
- ---
2
- import Button from './Button.astro';
3
- ---
4
-
5
- <div class="cosy:flex cosy:items-center cosy:gap-2">
6
- <Button size="xs">超小按钮</Button>
7
- <Button size="sm">小型按钮</Button>
8
- <Button size="md">中等按钮</Button>
9
- <Button size="lg">大型按钮</Button>
10
- </div>
11
-
12
- <div class="cosy:mt-4 cosy:flex cosy:flex-col cosy:items-center cosy:gap-2">
13
- <Button size="lg" wide>宽按钮</Button>
14
- <Button block>块级按钮</Button>
15
- </div>
@@ -1,11 +0,0 @@
1
- ---
2
- import { CodeContainer } from '../../index-astro';
3
- import ButtonSizes from './ButtonSizes.astro';
4
- import ButtonSizesSourceCode from './ButtonSizes.astro?raw';
5
- ---
6
-
7
- <CodeContainer codes={[ButtonSizesSourceCode]}>
8
- <div id="tab-1">
9
- <ButtonSizes />
10
- </div>
11
- </CodeContainer>
@@ -1,12 +0,0 @@
1
- ---
2
- import Button from './Button.astro';
3
- ---
4
-
5
- <div class="cosy:flex cosy:flex-wrap cosy:gap-2">
6
- <Button>正常按钮</Button>
7
- <Button disabled>禁用按钮</Button>
8
- <Button loading>加载中</Button>
9
- <Button variant="primary" loading>加载中</Button>
10
- <Button variant="success" disabled>禁用成功按钮</Button>
11
- <Button variant="error" loading>处理错误中</Button>
12
- </div>
@@ -1,11 +0,0 @@
1
- ---
2
- import { CodeContainer } from '../../index-astro';
3
- import ButtonStates from './ButtonStates.astro';
4
- import ButtonStatesSourceCode from './ButtonStates.astro?raw';
5
- ---
6
-
7
- <CodeContainer codes={[ButtonStatesSourceCode]}>
8
- <div id="tab-1">
9
- <ButtonStates />
10
- </div>
11
- </CodeContainer>
@@ -1,5 +0,0 @@
1
- ---
2
- import Button from './Button.astro';
3
- ---
4
-
5
- <Button variant="success">成功按钮</Button>
@@ -1,73 +0,0 @@
1
- ---
2
- import { CodeContainer } from '../../index-astro';
3
- import ButtonInfo from './ButtonInfo.astro';
4
- import ButtonSuccess from './ButtonSuccess.astro';
5
- import ButtonWarning from './ButtonWarning.astro';
6
- import ButtonError from './ButtonError.astro';
7
- import ButtonGhost from './ButtonGhost.astro';
8
- import ButtonLink from './ButtonLink.astro';
9
- import ButtonOutline from './ButtonOutline.astro';
10
- import ButtonNeutral from './ButtonNeutral.astro';
11
- import ButtonInfoSourceCode from './ButtonInfo.astro?raw';
12
- import ButtonSuccessSourceCode from './ButtonSuccess.astro?raw';
13
- import ButtonWarningSourceCode from './ButtonWarning.astro?raw';
14
- import ButtonErrorSourceCode from './ButtonError.astro?raw';
15
- import ButtonGhostSourceCode from './ButtonGhost.astro?raw';
16
- import ButtonLinkSourceCode from './ButtonLink.astro?raw';
17
- import ButtonOutlineSourceCode from './ButtonOutline.astro?raw';
18
- import ButtonNeutralSourceCode from './ButtonNeutral.astro?raw';
19
- ---
20
-
21
- <CodeContainer
22
- titles={[
23
- 'Info',
24
- 'Success',
25
- 'Warning',
26
- 'Error',
27
- 'Ghost',
28
- 'Link',
29
- 'Outline',
30
- 'Neutral',
31
- ]}
32
- codes={[
33
- ButtonInfoSourceCode,
34
- ButtonSuccessSourceCode,
35
- ButtonWarningSourceCode,
36
- ButtonErrorSourceCode,
37
- ButtonGhostSourceCode,
38
- ButtonLinkSourceCode,
39
- ButtonOutlineSourceCode,
40
- ButtonNeutralSourceCode,
41
- ]}>
42
- <div id="tab-1">
43
- <ButtonInfo />
44
- </div>
45
-
46
- <div id="tab-2">
47
- <ButtonSuccess />
48
- </div>
49
-
50
- <div id="tab-3">
51
- <ButtonWarning />
52
- </div>
53
-
54
- <div id="tab-4">
55
- <ButtonError />
56
- </div>
57
-
58
- <div id="tab-5">
59
- <ButtonGhost />
60
- </div>
61
-
62
- <div id="tab-6">
63
- <ButtonLink />
64
- </div>
65
-
66
- <div id="tab-7">
67
- <ButtonOutline />
68
- </div>
69
-
70
- <div id="tab-8">
71
- <ButtonNeutral />
72
- </div>
73
- </CodeContainer>
@@ -1,5 +0,0 @@
1
- ---
2
- import Button from './Button.astro';
3
- ---
4
-
5
- <Button variant="warning">警告按钮</Button>
@@ -1,5 +0,0 @@
1
- ---
2
- import Button from './Button.astro';
3
- ---
4
-
5
- <Button wide>宽按钮</Button>
@@ -1,8 +0,0 @@
1
- ---
2
- import Button from './Button.astro';
3
- ---
4
-
5
- <div class="cosy:flex cosy:flex-col cosy:gap-2">
6
- <Button wide>宽按钮</Button>
7
- <Button block>块级按钮</Button>
8
- </div>
@@ -1,19 +0,0 @@
1
- ---
2
- import { CodeContainer } from '../../index-astro';
3
- import ButtonWide from './ButtonWide.astro';
4
- import ButtonBlock from './ButtonBlock.astro';
5
- import ButtonWideSourceCode from './ButtonWide.astro?raw';
6
- import ButtonBlockSourceCode from './ButtonBlock.astro?raw';
7
- ---
8
-
9
- <CodeContainer
10
- titles={['宽按钮', '块级按钮']}
11
- codes={[ButtonWideSourceCode, ButtonBlockSourceCode]}>
12
- <div id="tab-1">
13
- <ButtonWide />
14
- </div>
15
-
16
- <div id="tab-2">
17
- <ButtonBlock />
18
- </div>
19
- </CodeContainer>
@@ -1,25 +0,0 @@
1
- ---
2
- import Button from './Button.astro';
3
- ---
4
-
5
- <div class="cosy:flex cosy:flex-wrap cosy:gap-2">
6
- <Button variant="primary">
7
- <span slot="icon-left">👈</span>
8
- 返回
9
- </Button>
10
-
11
- <Button variant="success">
12
- 确认
13
- <span slot="icon-right">✅</span>
14
- </Button>
15
-
16
- <Button variant="info">
17
- <span slot="icon-left">💾</span>
18
- 保存
19
- <span slot="icon-right">📁</span>
20
- </Button>
21
-
22
- <Button variant="warning" shape="circle">
23
- <span slot="icon-left">⚠️</span>
24
- </Button>
25
- </div>
@@ -1,29 +0,0 @@
1
- ---
2
- import { CodeContainer } from '../../index-astro';
3
- import ButtonIconLeft from './ButtonIconLeft.astro';
4
- import ButtonIconRight from './ButtonIconRight.astro';
5
- import ButtonIconBoth from './ButtonIconBoth.astro';
6
- import ButtonIconLeftSourceCode from './ButtonIconLeft.astro?raw';
7
- import ButtonIconRightSourceCode from './ButtonIconRight.astro?raw';
8
- import ButtonIconBothSourceCode from './ButtonIconBoth.astro?raw';
9
- ---
10
-
11
- <CodeContainer
12
- titles={['左侧图标', '右侧图标', '两侧图标']}
13
- codes={[
14
- ButtonIconLeftSourceCode,
15
- ButtonIconRightSourceCode,
16
- ButtonIconBothSourceCode,
17
- ]}>
18
- <div id="tab-1">
19
- <ButtonIconLeft />
20
- </div>
21
-
22
- <div id="tab-2">
23
- <ButtonIconRight />
24
- </div>
25
-
26
- <div id="tab-3">
27
- <ButtonIconBoth />
28
- </div>
29
- </CodeContainer>
@@ -1,5 +0,0 @@
1
- ---
2
- import Card from './Card.astro';
3
- ---
4
-
5
- <Card title="卡片标题" subtitle="卡片描述文本" />
@@ -1,13 +0,0 @@
1
- ---
2
- /**
3
- * @component Card.Basic
4
- *
5
- * @description
6
- * 基础Card组件示例,展示最简单的卡片用法。
7
- */
8
- import { Card } from '../../index-astro';
9
- ---
10
-
11
- <Card title="基础卡片">
12
- 这是一个基础的卡片内容,展示了Card组件的最简单用法。
13
- </Card>
@@ -1,11 +0,0 @@
1
- ---
2
- import { CodeContainer } from '../../index-astro';
3
- import CardBasic from './ECardBasic.astro';
4
- import CardBasicSourceCode from './ECardBasic.astro?raw';
5
- ---
6
-
7
- <CodeContainer codes={[CardBasicSourceCode]}>
8
- <div id="tab-1">
9
- <CardBasic />
10
- </div>
11
- </CodeContainer>
@@ -1,16 +0,0 @@
1
- ---
2
- /**
3
- * @component Card.Clickable
4
- *
5
- * @description
6
- * 可点击的Card组件示例,展示如何使用href属性创建链接卡片。
7
- */
8
- import { Card } from '../../index-astro';
9
- ---
10
-
11
- <Card
12
- title="可点击的卡片"
13
- subtitle="点击整个卡片区域可以跳转到指定链接"
14
- href="#">
15
- 这是一个可点击的卡片,鼠标悬停时会有缩放效果,点击可以跳转到指定页面。
16
- </Card>
@@ -1,11 +0,0 @@
1
- ---
2
- import { CodeContainer } from '../../index-astro';
3
- import CardClickable from './ECardClickable.astro';
4
- import CardClickableSourceCode from './ECardClickable.astro?raw';
5
- ---
6
-
7
- <CodeContainer codes={[CardClickableSourceCode]}>
8
- <div id="tab-1">
9
- <CardClickable />
10
- </div>
11
- </CodeContainer>
@@ -1,13 +0,0 @@
1
- ---
2
- /**
3
- * @component Card.Compact
4
- *
5
- * @description
6
- * 紧凑模式的Card组件示例,展示如何使用compact属性。
7
- */
8
- import { Card } from '../../index-astro';
9
- ---
10
-
11
- <Card title="紧凑卡片" subtitle="使用compact模式可以减少内边距" compact>
12
- 这是一个紧凑模式的卡片,适合在空间有限的情况下使用。
13
- </Card>
@@ -1,11 +0,0 @@
1
- ---
2
- import { CodeContainer } from '../../index-astro';
3
- import CardCompact from './ECardCompact.astro';
4
- import CardCompactSourceCode from './ECardCompact.astro?raw';
5
- ---
6
-
7
- <CodeContainer codes={[CardCompactSourceCode]}>
8
- <div id="tab-1">
9
- <CardCompact />
10
- </div>
11
- </CodeContainer>
@@ -1,17 +0,0 @@
1
- ---
2
- /**
3
- * @component Card.CustomStyle
4
- *
5
- * @description
6
- * 展示如何使用class属性自定义Card组件的样式。
7
- */
8
- import '../../style.ts';
9
- import { Card } from '../../index-astro';
10
- ---
11
-
12
- <Card
13
- title="自定义样式卡片"
14
- subtitle="这个卡片使用了自定义的背景色和边框"
15
- class="cosy:bg-gradient-to-r cosy:from-blue-50 cosy:to-indigo-100 cosy:border-2 cosy:border-blue-200">
16
- 这是一个自定义样式的卡片,展示了如何通过class属性来覆盖默认样式。
17
- </Card>
@@ -1,11 +0,0 @@
1
- ---
2
- import { CodeContainer } from '../../index-astro';
3
- import CardCustomStyle from './ECardCustomStyle.astro';
4
- import CardCustomStyleSourceCode from './ECardCustomStyle.astro?raw';
5
- ---
6
-
7
- <CodeContainer codes={[CardCustomStyleSourceCode]}>
8
- <div id="tab-1">
9
- <CardCustomStyle />
10
- </div>
11
- </CodeContainer>
@@ -1,16 +0,0 @@
1
- ---
2
- /**
3
- * @component Card.WithImage
4
- *
5
- * @description
6
- * 带图片的Card组件示例,展示如何使用imageUrl属性。
7
- */
8
- import { Card } from '../../index-astro';
9
- ---
10
-
11
- <Card
12
- title="带图片的卡片"
13
- subtitle="这张卡片展示了如何添加顶部图片"
14
- imageUrl="https://picsum.photos/400/200?random=1">
15
- 这是一个带有图片的卡片,图片会自动显示在卡片顶部,并适配卡片宽度。
16
- </Card>
@@ -1,11 +0,0 @@
1
- ---
2
- import { CodeContainer } from '../../index-astro';
3
- import CardWithImage from './ECardWithImage.astro';
4
- import CardWithImageSourceCode from './ECardWithImage.astro?raw';
5
- ---
6
-
7
- <CodeContainer codes={[CardWithImageSourceCode]}>
8
- <div id="tab-1">
9
- <CardWithImage />
10
- </div>
11
- </CodeContainer>
@@ -1,13 +0,0 @@
1
- ---
2
- /**
3
- * @component Card.WithSubtitle
4
- *
5
- * @description
6
- * 带副标题的Card组件示例,展示如何使用subtitle属性。
7
- */
8
- import { Card } from '../../index-astro';
9
- ---
10
-
11
- <Card title="带副标题的卡片" subtitle="这是卡片的副标题,用于提供更多描述信息">
12
- 卡片的主要内容区域,可以包含更详细的信息和其他元素。
13
- </Card>
@@ -1,11 +0,0 @@
1
- ---
2
- import { CodeContainer } from '../../index-astro';
3
- import CardWithSubtitle from './ECardWithSubtitle.astro';
4
- import CardWithSubtitleSourceCode from './ECardWithSubtitle.astro?raw';
5
- ---
6
-
7
- <CodeContainer codes={[CardWithSubtitleSourceCode]}>
8
- <div id="tab-1">
9
- <CardWithSubtitle />
10
- </div>
11
- </CodeContainer>
@@ -1,19 +0,0 @@
1
- ---
2
- /**
3
- * CodeContainerBasic - 基础代码容器示例组件
4
- * 展示CodeContainer的基本用法
5
- */
6
-
7
- import { CodeContainer } from './index';
8
- import { Alert } from '../alert';
9
-
10
- const code = `<Alert type="info">
11
- 这是一个基础示例
12
- </Alert>`;
13
- ---
14
-
15
- <CodeContainer codes={[code]}>
16
- <div id="tab-1">
17
- <Alert type="info"> 这是一个基础示例 </Alert>
18
- </div>
19
- </CodeContainer>
@@ -1,49 +0,0 @@
1
- ---
2
- /**
3
- * CodeContainerMultiple - 多标签代码容器示例组件
4
- * 展示CodeContainer的多标签用法
5
- */
6
-
7
- import { CodeContainer } from './index';
8
- import { Alert } from '../alert';
9
-
10
- const infoCode = `<Alert type="info" title="信息提示">
11
- 这是一条信息提示
12
- </Alert>`;
13
-
14
- const successCode = `<Alert type="success" title="成功提示">
15
- 操作已成功完成
16
- </Alert>`;
17
-
18
- const warningCode = `<Alert type="warning" title="警告提示">
19
- 请注意可能的风险
20
- </Alert>`;
21
-
22
- const errorCode = `<Alert type="error" title="错误提示">
23
- 操作失败,请重试
24
- </Alert>`;
25
-
26
- const titles = ['信息', '成功', '警告', '错误'];
27
- const descriptions = [
28
- '用于展示一般信息',
29
- '用于展示成功状态',
30
- '用于展示警告信息',
31
- '用于展示错误信息',
32
- ];
33
- const codes = [infoCode, successCode, warningCode, errorCode];
34
- ---
35
-
36
- <CodeContainer titles={titles} descriptions={descriptions} codes={codes}>
37
- <div id="tab-1">
38
- <Alert type="info" title="信息提示"> 这是一条信息提示 </Alert>
39
- </div>
40
- <div id="tab-2">
41
- <Alert type="success" title="成功提示"> 操作已成功完成 </Alert>
42
- </div>
43
- <div id="tab-3">
44
- <Alert type="warning" title="警告提示"> 请注意可能的风险 </Alert>
45
- </div>
46
- <div id="tab-4">
47
- <Alert type="error" title="错误提示"> 操作失败,请重试 </Alert>
48
- </div>
49
- </CodeContainer>
@@ -1,15 +0,0 @@
1
- ---
2
- /**
3
- * @component Contact.Basic
4
- *
5
- * @description
6
- * 基础Contact组件示例,展示最简单的联系信息用法。
7
- */
8
- import Contact from './Contact.astro';
9
- ---
10
-
11
- <Contact
12
- email="contact@company.com"
13
- phone="+1 (555) 123-4567"
14
- address="123 Business St, City, State 12345"
15
- />
@@ -1,11 +0,0 @@
1
- ---
2
- import { CodeContainer } from '../../index-astro';
3
- import ContactBasic from './EContactBasic.astro';
4
- import ContactBasicSourceCode from './EContactBasic.astro?raw';
5
- ---
6
-
7
- <CodeContainer codes={[ContactBasicSourceCode]}>
8
- <div id="tab-1">
9
- <ContactBasic />
10
- </div>
11
- </CodeContainer>
@@ -1,11 +0,0 @@
1
- ---
2
- /**
3
- * @component Contact.Compact
4
- *
5
- * @description
6
- * 紧凑模式的Contact组件示例。
7
- */
8
- import Contact from './Contact.astro';
9
- ---
10
-
11
- <Contact email="contact@company.com" phone="+1 (555) 123-4567" compact />
@@ -1,11 +0,0 @@
1
- ---
2
- import { CodeContainer } from '../../index-astro';
3
- import ContactCompact from './EContactCompact.astro';
4
- import ContactCompactSourceCode from './EContactCompact.astro?raw';
5
- ---
6
-
7
- <CodeContainer codes={[ContactCompactSourceCode]}>
8
- <div id="tab-1">
9
- <ContactCompact />
10
- </div>
11
- </CodeContainer>
@@ -1,21 +0,0 @@
1
- ---
2
- /**
3
- * @component Contact.CustomStyle
4
- *
5
- * @description
6
- * 展示如何使用class属性自定义Contact组件的样式。
7
- */
8
- import '../../style.ts';
9
- import Contact from './Contact.astro';
10
- ---
11
-
12
- <Contact
13
- title="联系我们"
14
- description="自定义样式的联系信息卡片"
15
- email="contact@company.com"
16
- phone="+1 (555) 123-4567"
17
- address="123 Business St, City, State 12345"
18
- github="https://github.com/company"
19
- twitter="https://twitter.com/company"
20
- class="cosy:bg-gradient-to-br cosy:from-blue-50 cosy:to-purple-50 cosy:border-2 cosy:border-blue-200 cosy:shadow-2xl"
21
- />
@@ -1,11 +0,0 @@
1
- ---
2
- import { CodeContainer } from '../../index-astro';
3
- import ContactCustomStyle from './EContactCustomStyle.astro';
4
- import ContactCustomStyleSourceCode from './EContactCustomStyle.astro?raw';
5
- ---
6
-
7
- <CodeContainer codes={[ContactCustomStyleSourceCode]}>
8
- <div id="tab-1">
9
- <ContactCustomStyle />
10
- </div>
11
- </CodeContainer>
@@ -1,20 +0,0 @@
1
- ---
2
- /**
3
- * @component Contact.Social
4
- *
5
- * @description
6
- * 带社交媒体链接的Contact组件示例。
7
- */
8
- import Contact from './Contact.astro';
9
- ---
10
-
11
- <Contact
12
- title="联系我们"
13
- email="contact@company.com"
14
- phone="+1 (555) 123-4567"
15
- website="https://www.company.com"
16
- github="https://github.com/company"
17
- twitter="https://twitter.com/company"
18
- facebook="https://facebook.com/company"
19
- linkedin="https://linkedin.com/company/company"
20
- />
@@ -1,11 +0,0 @@
1
- ---
2
- import { CodeContainer } from '../../index-astro';
3
- import ContactSocial from './EContactSocial.astro';
4
- import ContactSocialSourceCode from './EContactSocial.astro?raw';
5
- ---
6
-
7
- <CodeContainer codes={[ContactSocialSourceCode]}>
8
- <div id="tab-1">
9
- <ContactSocial />
10
- </div>
11
- </CodeContainer>
@@ -1,17 +0,0 @@
1
- ---
2
- /**
3
- * @component Contact.WithTitle
4
- *
5
- * @description
6
- * 带标题和描述的Contact组件示例。
7
- */
8
- import Contact from './Contact.astro';
9
- ---
10
-
11
- <Contact
12
- title="联系我们"
13
- description="欢迎随时与我们取得联系,我们将尽快回复您"
14
- email="contact@company.com"
15
- phone="+1 (555) 123-4567"
16
- address="123 Business St, City, State 12345"
17
- />