@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.
- package/dist/alert/AlertBasicContainer.astro +11 -0
- package/dist/alert/AlertCustomStyleContainer.astro +11 -0
- package/dist/alert/AlertError.astro +6 -0
- package/dist/alert/AlertInfo.astro +6 -0
- package/dist/alert/AlertSuccess.astro +6 -0
- package/dist/alert/AlertTypesContainer.astro +43 -0
- package/dist/alert/AlertWarning.astro +6 -0
- package/dist/alert/AlertWithTitleContainer.astro +11 -0
- package/dist/alert/index.ts +14 -18
- package/dist/app.css +1 -1
- package/dist/{components/display → banner}/Banner.astro +32 -11
- package/dist/banner/BannerAllAnimations.astro +10 -0
- package/dist/banner/BannerBasic.astro +5 -0
- package/dist/banner/BannerCustomStyle.astro +7 -0
- package/dist/banner/BannerDanger.astro +5 -0
- package/dist/banner/BannerFadeIn.astro +5 -0
- package/dist/banner/BannerInfo.astro +5 -0
- package/dist/banner/BannerPrimary.astro +5 -0
- package/dist/banner/BannerSecondary.astro +5 -0
- package/dist/banner/BannerSlideUp.astro +5 -0
- package/dist/banner/BannerSuccess.astro +5 -0
- package/dist/banner/BannerWarning.astro +5 -0
- package/dist/banner/index.ts +41 -0
- package/dist/{components/data-display → blog}/Blog.astro +2 -2
- package/dist/blog/index.ts +1 -0
- package/dist/button/Button.astro +42 -14
- package/dist/button/Button.vue +105 -0
- package/dist/button/ButtonBasic.vue +11 -0
- package/dist/button/ButtonBasicContainer.astro +17 -0
- package/dist/button/ButtonBlock.astro +5 -0
- package/dist/button/ButtonError.astro +5 -0
- package/dist/{vue/Buttons/FeatureButton.vue → button/ButtonFeature.vue} +23 -23
- package/dist/{vue/Buttons/FeatureBasic.vue → button/ButtonFeatureBasic.vue} +2 -2
- package/dist/button/ButtonFeatureContainer.astro +18 -0
- package/dist/{vue/Buttons/FeatureWithTips.vue → button/ButtonFeatureWithTips.vue} +1 -2
- package/dist/button/ButtonGhost.astro +5 -0
- package/dist/button/ButtonIconBoth.astro +9 -0
- package/dist/button/ButtonIconLeft.astro +8 -0
- package/dist/button/ButtonIconRight.astro +8 -0
- package/dist/button/ButtonInfo.astro +5 -0
- package/dist/button/ButtonLink.astro +5 -0
- package/dist/button/ButtonLink.vue +13 -0
- package/dist/button/ButtonLinkContainer.astro +25 -0
- package/dist/button/ButtonLinkExternal.astro +8 -0
- package/dist/button/ButtonNeutral.astro +5 -0
- package/dist/button/ButtonOutline.astro +5 -0
- package/dist/button/ButtonShapeCircle.astro +5 -0
- package/dist/button/ButtonShapeDefault.astro +5 -0
- package/dist/button/ButtonShapeSquare.astro +5 -0
- package/dist/button/ButtonShapesContainer.astro +25 -0
- package/dist/button/ButtonSizes.astro +1 -1
- package/dist/button/ButtonSizes.vue +12 -0
- package/dist/button/ButtonSizesContainer.astro +17 -0
- package/dist/button/ButtonStatesContainer.astro +11 -0
- package/dist/button/ButtonSuccess.astro +5 -0
- package/dist/button/ButtonVariants.astro +14 -0
- package/dist/button/ButtonVariants.vue +16 -0
- package/dist/button/ButtonVariantsContainer.astro +71 -0
- package/dist/button/ButtonWarning.astro +5 -0
- package/dist/button/ButtonWide.astro +5 -0
- package/dist/button/ButtonWidth.astro +8 -0
- package/dist/button/ButtonWidthContainer.astro +19 -0
- package/dist/button/ButtonWithIcons.vue +21 -0
- package/dist/button/ButtonWithIconsContainer.astro +36 -0
- package/dist/button/index_astro.ts +64 -0
- package/dist/button/index_vue.ts +4 -0
- package/dist/card/Card.astro +91 -0
- package/dist/card/CardBasic.astro +5 -0
- package/dist/card/CardCompact.astro +77 -0
- package/dist/card/CardLink.astro +75 -0
- package/dist/card/CardWithImage.astro +39 -0
- package/dist/card/index.ts +7 -0
- package/dist/{components/display → code-block}/CodeBlock.astro +1 -1
- package/dist/code-block/index.ts +1 -0
- package/dist/code-container/CodeContainer.astro +254 -0
- package/dist/code-container/CodeContainerBasic.astro +19 -0
- package/dist/code-container/CodeContainerMultiple.astro +49 -0
- package/dist/code-container/index.ts +14 -0
- package/dist/{components/display → code-example}/CodeExample.astro +10 -11
- package/dist/code-example/index.ts +1 -0
- package/dist/{components/containers → container}/Container.astro +1 -1
- package/dist/container/index.ts +1 -0
- package/dist/env.d.ts +0 -6
- package/dist/footer/Footer.astro +2 -6
- package/dist/header/Header.astro +3 -2
- package/dist/{components/display → hero}/Hero.astro +2 -2
- package/dist/hero/HeroAlignCenter.astro +13 -0
- package/dist/hero/HeroAlignContainer.astro +23 -0
- package/dist/hero/HeroAlignLeft.astro +13 -0
- package/dist/hero/HeroAlignRight.astro +13 -0
- package/dist/hero/HeroBackgroundContainer.astro +18 -0
- package/dist/hero/HeroBackgroundImage.astro +12 -0
- package/dist/hero/HeroBackgroundImageContainer.astro +11 -0
- package/dist/hero/HeroBasic.astro +12 -0
- package/dist/hero/HeroBasicContainer.astro +11 -0
- package/dist/hero/HeroGradientBackground.astro +10 -0
- package/dist/hero/HeroPlainBackground.astro +10 -0
- package/dist/hero/HeroWithButton.astro +11 -0
- package/dist/hero/HeroWithButtonContainer.astro +11 -0
- package/dist/hero/HeroWithImage.astro +16 -0
- package/dist/hero/HeroWithImageContainer.astro +11 -0
- package/dist/hero/index.ts +39 -0
- package/dist/index.ts +1 -1
- package/dist/index_astro.ts +16 -26
- package/dist/index_vue.ts +1 -4
- package/dist/{components/containers → main}/Main.astro +2 -3
- package/dist/main/index.ts +1 -0
- package/dist/{components/display → modal}/Modal.astro +2 -2
- package/dist/modal/index.ts +1 -0
- package/dist/{components/data-display → products}/ProductCard.astro +3 -3
- package/dist/{components/data-display → products}/Products.astro +2 -2
- package/dist/products/index.ts +2 -0
- package/dist/{components/containers → section}/Section.astro +2 -2
- package/dist/section/index.ts +1 -0
- package/dist/sidebar/Sidebar.astro +1 -2
- package/dist/{components/data-display → team-member}/TeamMember.astro +4 -4
- package/dist/team-member/TeamMemberBasic.astro +25 -0
- package/dist/team-member/TeamMemberCustomStyle.astro +26 -0
- package/dist/team-member/TeamMemberGroup.astro +60 -0
- package/dist/team-member/TeamMemberWithSocial.astro +30 -0
- package/dist/{components/data-display → team-member}/TeamMembers.astro +2 -2
- package/dist/team-member/index.ts +23 -0
- package/dist/types/header.ts +32 -9
- package/package.json +5 -1
- package/dist/alert/AlertTypes.astro +0 -17
- package/dist/button/index.ts +0 -23
- package/dist/components/display/Card.astro +0 -162
- package/dist/vue/Buttons/LinkBasic.vue +0 -8
- package/dist/vue/Buttons/LinkButton.vue +0 -65
- package/dist/vue/Buttons/Multiple.vue +0 -11
- package/dist/vue/Buttons/index.ts +0 -37
- package/dist/vue/SmartHero/Basic.vue +0 -14
- package/dist/vue/SmartHero/SmartHero.vue +0 -132
- package/dist/vue/SmartHero/WithCustomContent.vue +0 -36
- package/dist/vue/SmartHero/WithImage.vue +0 -19
- 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,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,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>
|
package/dist/alert/index.ts
CHANGED
@@ -1,20 +1,16 @@
|
|
1
1
|
import Alert from './Alert.astro';
|
2
|
-
import
|
3
|
-
import
|
4
|
-
import
|
5
|
-
import
|
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
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
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
|
+
}
|