@coffic/cosy-ui 0.6.32 → 0.6.34

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 (136) hide show
  1. package/dist/alert/AlertBasicContainer.astro +11 -0
  2. package/dist/alert/AlertCustomStyleContainer.astro +11 -0
  3. package/dist/alert/AlertError.astro +6 -0
  4. package/dist/alert/AlertInfo.astro +6 -0
  5. package/dist/alert/AlertSuccess.astro +6 -0
  6. package/dist/alert/AlertTypesContainer.astro +43 -0
  7. package/dist/alert/AlertWarning.astro +6 -0
  8. package/dist/alert/AlertWithTitleContainer.astro +11 -0
  9. package/dist/alert/index.ts +14 -18
  10. package/dist/app.css +1 -1
  11. package/dist/{components/display → banner}/Banner.astro +32 -11
  12. package/dist/banner/BannerAllAnimations.astro +10 -0
  13. package/dist/banner/BannerBasic.astro +5 -0
  14. package/dist/banner/BannerCustomStyle.astro +7 -0
  15. package/dist/banner/BannerDanger.astro +5 -0
  16. package/dist/banner/BannerFadeIn.astro +5 -0
  17. package/dist/banner/BannerInfo.astro +5 -0
  18. package/dist/banner/BannerPrimary.astro +5 -0
  19. package/dist/banner/BannerSecondary.astro +5 -0
  20. package/dist/banner/BannerSlideUp.astro +5 -0
  21. package/dist/banner/BannerSuccess.astro +5 -0
  22. package/dist/banner/BannerWarning.astro +5 -0
  23. package/dist/banner/index.ts +41 -0
  24. package/dist/{components/data-display → blog}/Blog.astro +2 -2
  25. package/dist/blog/index.ts +1 -0
  26. package/dist/button/Button.astro +42 -14
  27. package/dist/button/Button.vue +105 -0
  28. package/dist/button/ButtonBasic.vue +11 -0
  29. package/dist/button/ButtonBasicContainer.astro +17 -0
  30. package/dist/button/ButtonBlock.astro +5 -0
  31. package/dist/button/ButtonError.astro +5 -0
  32. package/dist/{vue/Buttons/FeatureButton.vue → button/ButtonFeature.vue} +23 -23
  33. package/dist/{vue/Buttons/FeatureBasic.vue → button/ButtonFeatureBasic.vue} +2 -2
  34. package/dist/button/ButtonFeatureContainer.astro +18 -0
  35. package/dist/{vue/Buttons/FeatureWithTips.vue → button/ButtonFeatureWithTips.vue} +1 -2
  36. package/dist/button/ButtonGhost.astro +5 -0
  37. package/dist/button/ButtonIconBoth.astro +9 -0
  38. package/dist/button/ButtonIconLeft.astro +8 -0
  39. package/dist/button/ButtonIconRight.astro +8 -0
  40. package/dist/button/ButtonInfo.astro +5 -0
  41. package/dist/button/ButtonLink.astro +5 -0
  42. package/dist/button/ButtonLink.vue +13 -0
  43. package/dist/button/ButtonLinkContainer.astro +25 -0
  44. package/dist/button/ButtonLinkExternal.astro +8 -0
  45. package/dist/button/ButtonNeutral.astro +5 -0
  46. package/dist/button/ButtonOutline.astro +5 -0
  47. package/dist/button/ButtonShapeCircle.astro +5 -0
  48. package/dist/button/ButtonShapeDefault.astro +5 -0
  49. package/dist/button/ButtonShapeSquare.astro +5 -0
  50. package/dist/button/ButtonShapesContainer.astro +25 -0
  51. package/dist/button/ButtonSizes.astro +1 -1
  52. package/dist/button/ButtonSizes.vue +12 -0
  53. package/dist/button/ButtonSizesContainer.astro +17 -0
  54. package/dist/button/ButtonStatesContainer.astro +11 -0
  55. package/dist/button/ButtonSuccess.astro +5 -0
  56. package/dist/button/ButtonVariants.astro +14 -0
  57. package/dist/button/ButtonVariants.vue +16 -0
  58. package/dist/button/ButtonVariantsContainer.astro +71 -0
  59. package/dist/button/ButtonWarning.astro +5 -0
  60. package/dist/button/ButtonWide.astro +5 -0
  61. package/dist/button/ButtonWidth.astro +8 -0
  62. package/dist/button/ButtonWidthContainer.astro +19 -0
  63. package/dist/button/ButtonWithIcons.vue +21 -0
  64. package/dist/button/ButtonWithIconsContainer.astro +36 -0
  65. package/dist/button/index_astro.ts +64 -0
  66. package/dist/button/index_vue.ts +4 -0
  67. package/dist/card/Card.astro +91 -0
  68. package/dist/card/CardBasic.astro +5 -0
  69. package/dist/card/CardCompact.astro +77 -0
  70. package/dist/card/CardLink.astro +75 -0
  71. package/dist/card/CardWithImage.astro +39 -0
  72. package/dist/card/index.ts +7 -0
  73. package/dist/{components/display → code-block}/CodeBlock.astro +1 -1
  74. package/dist/code-block/index.ts +1 -0
  75. package/dist/code-container/CodeContainer.astro +254 -0
  76. package/dist/code-container/CodeContainerBasic.astro +19 -0
  77. package/dist/code-container/CodeContainerMultiple.astro +49 -0
  78. package/dist/code-container/index.ts +14 -0
  79. package/dist/{components/display → code-example}/CodeExample.astro +10 -11
  80. package/dist/code-example/index.ts +1 -0
  81. package/dist/{components/containers → container}/Container.astro +1 -1
  82. package/dist/container/index.ts +1 -0
  83. package/dist/env.d.ts +0 -6
  84. package/dist/footer/Footer.astro +2 -6
  85. package/dist/header/Header.astro +3 -2
  86. package/dist/{components/display → hero}/Hero.astro +2 -2
  87. package/dist/hero/HeroAlignCenter.astro +13 -0
  88. package/dist/hero/HeroAlignContainer.astro +23 -0
  89. package/dist/hero/HeroAlignLeft.astro +13 -0
  90. package/dist/hero/HeroAlignRight.astro +13 -0
  91. package/dist/hero/HeroBackgroundContainer.astro +18 -0
  92. package/dist/hero/HeroBackgroundImage.astro +12 -0
  93. package/dist/hero/HeroBackgroundImageContainer.astro +11 -0
  94. package/dist/hero/HeroBasic.astro +12 -0
  95. package/dist/hero/HeroBasicContainer.astro +11 -0
  96. package/dist/hero/HeroGradientBackground.astro +10 -0
  97. package/dist/hero/HeroPlainBackground.astro +10 -0
  98. package/dist/hero/HeroWithButton.astro +11 -0
  99. package/dist/hero/HeroWithButtonContainer.astro +11 -0
  100. package/dist/hero/HeroWithImage.astro +16 -0
  101. package/dist/hero/HeroWithImageContainer.astro +11 -0
  102. package/dist/hero/index.ts +39 -0
  103. package/dist/index.ts +1 -1
  104. package/dist/index_astro.ts +16 -26
  105. package/dist/index_vue.ts +1 -4
  106. package/dist/{components/containers → main}/Main.astro +2 -3
  107. package/dist/main/index.ts +1 -0
  108. package/dist/{components/display → modal}/Modal.astro +2 -2
  109. package/dist/modal/index.ts +1 -0
  110. package/dist/{components/data-display → products}/ProductCard.astro +3 -3
  111. package/dist/{components/data-display → products}/Products.astro +2 -2
  112. package/dist/products/index.ts +2 -0
  113. package/dist/{components/containers → section}/Section.astro +2 -2
  114. package/dist/section/index.ts +1 -0
  115. package/dist/sidebar/Sidebar.astro +1 -2
  116. package/dist/{components/data-display → team-member}/TeamMember.astro +4 -4
  117. package/dist/team-member/TeamMemberBasic.astro +25 -0
  118. package/dist/team-member/TeamMemberCustomStyle.astro +26 -0
  119. package/dist/team-member/TeamMemberGroup.astro +60 -0
  120. package/dist/team-member/TeamMemberWithSocial.astro +30 -0
  121. package/dist/{components/data-display → team-member}/TeamMembers.astro +2 -2
  122. package/dist/team-member/index.ts +23 -0
  123. package/dist/types/header.ts +32 -9
  124. package/package.json +5 -1
  125. package/dist/alert/AlertTypes.astro +0 -17
  126. package/dist/button/index.ts +0 -23
  127. package/dist/components/display/Card.astro +0 -162
  128. package/dist/vue/Buttons/LinkBasic.vue +0 -8
  129. package/dist/vue/Buttons/LinkButton.vue +0 -65
  130. package/dist/vue/Buttons/Multiple.vue +0 -11
  131. package/dist/vue/Buttons/index.ts +0 -37
  132. package/dist/vue/SmartHero/Basic.vue +0 -14
  133. package/dist/vue/SmartHero/SmartHero.vue +0 -132
  134. package/dist/vue/SmartHero/WithCustomContent.vue +0 -36
  135. package/dist/vue/SmartHero/WithImage.vue +0 -19
  136. package/dist/vue/SmartHero/index.ts +0 -24
@@ -0,0 +1,11 @@
1
+ ---
2
+ import { CodeContainer } from '../index';
3
+ import AlertBasic from './AlertBasic.astro';
4
+ import AlertBasicSourceCode from './AlertBasic.astro?raw';
5
+ ---
6
+
7
+ <CodeContainer codes={[AlertBasicSourceCode]}>
8
+ <div id="tab-1">
9
+ <AlertBasic />
10
+ </div>
11
+ </CodeContainer>
@@ -0,0 +1,11 @@
1
+ ---
2
+ import { CodeContainer } from '../index';
3
+ import AlertCustomStyle from './AlertCustomStyle.astro';
4
+ import AlertCustomStyleSourceCode from './AlertCustomStyle.astro?raw';
5
+ ---
6
+
7
+ <CodeContainer codes={[AlertCustomStyleSourceCode]}>
8
+ <div id="tab-1">
9
+ <AlertCustomStyle />
10
+ </div>
11
+ </CodeContainer>
@@ -0,0 +1,6 @@
1
+ ---
2
+ import '../style.ts';
3
+ import { Alert } from '../index';
4
+ ---
5
+
6
+ <Alert type="error">这是一条错误提示</Alert>
@@ -0,0 +1,6 @@
1
+ ---
2
+ import '../style.ts';
3
+ import { Alert } from '../index';
4
+ ---
5
+
6
+ <Alert type="info">这是一条信息提示</Alert>
@@ -0,0 +1,6 @@
1
+ ---
2
+ import '../style.ts';
3
+ import { Alert } from '../index';
4
+ ---
5
+
6
+ <Alert type="success">这是一条成功提示</Alert>
@@ -0,0 +1,43 @@
1
+ ---
2
+ /**
3
+ * @component Alert.Types
4
+ *
5
+ * @description
6
+ * 展示Alert组件的所有类型:info、success、warning、error。
7
+ */
8
+ import '../style.ts';
9
+ import { CodeContainer } from '../index';
10
+ import AlertInfo from './AlertInfo.astro';
11
+ import AlertSuccess from './AlertSuccess.astro';
12
+ import AlertWarning from './AlertWarning.astro';
13
+ import AlertError from './AlertError.astro';
14
+ import AlertInfoSourceCode from './AlertInfo.astro?raw';
15
+ import AlertSuccessSourceCode from './AlertSuccess.astro?raw';
16
+ import AlertWarningSourceCode from './AlertWarning.astro?raw';
17
+ import AlertErrorSourceCode from './AlertError.astro?raw';
18
+ ---
19
+
20
+ <CodeContainer
21
+ titles={['Info', 'Success', 'Warning', 'Error']}
22
+ codes={[
23
+ AlertInfoSourceCode,
24
+ AlertSuccessSourceCode,
25
+ AlertWarningSourceCode,
26
+ AlertErrorSourceCode,
27
+ ]}>
28
+ <div id="tab-1">
29
+ <AlertInfo />
30
+ </div>
31
+
32
+ <div id="tab-2">
33
+ <AlertSuccess />
34
+ </div>
35
+
36
+ <div id="tab-3">
37
+ <AlertWarning />
38
+ </div>
39
+
40
+ <div id="tab-4">
41
+ <AlertError />
42
+ </div>
43
+ </CodeContainer>
@@ -0,0 +1,6 @@
1
+ ---
2
+ import '../style.ts';
3
+ import { Alert } from '../index';
4
+ ---
5
+
6
+ <Alert type="warning">这是一条警告提示</Alert>
@@ -0,0 +1,11 @@
1
+ ---
2
+ import { CodeContainer } from '../index';
3
+ import AlertWithTitle from './AlertWithTitle.astro';
4
+ import WithTitleSourceCode from './AlertWithTitle.astro?raw';
5
+ ---
6
+
7
+ <CodeContainer codes={[WithTitleSourceCode]}>
8
+ <div id="tab-1">
9
+ <AlertWithTitle />
10
+ </div>
11
+ </CodeContainer>
@@ -1,20 +1,16 @@
1
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';
2
+ import AlertBasicContainer from './AlertBasicContainer.astro';
3
+ import AlertWithTitleContainer from './AlertWithTitleContainer.astro';
4
+ import AlertTypesContainer from './AlertTypesContainer.astro';
5
+ import AlertCustomStyleContainer from './AlertCustomStyleContainer.astro';
11
6
 
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
- };
7
+ export { Alert }
8
+ export const AlertPackage = {
9
+ Alert,
10
+ AlertContainers: {
11
+ Basic: AlertBasicContainer,
12
+ WithTitle: AlertWithTitleContainer,
13
+ Types: AlertTypesContainer,
14
+ CustomStyle: AlertCustomStyleContainer,
15
+ },
16
+ }