@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.
Files changed (124) hide show
  1. package/README.md +5 -1
  2. package/dist/{components/base → alert}/Alert.astro +2 -2
  3. package/dist/alert/AlertBasic.astro +5 -0
  4. package/dist/alert/AlertCustomStyle.astro +7 -0
  5. package/dist/alert/AlertTypes.astro +13 -0
  6. package/dist/alert/AlertWithTitle.astro +5 -0
  7. package/dist/alert/index.ts +20 -0
  8. package/dist/app.css +1 -1
  9. package/dist/{components/typography → article}/Article.astro +2 -2
  10. package/dist/article/ArticleBasic.astro +31 -0
  11. package/dist/article/index.ts +11 -0
  12. package/dist/{components/base → button}/Button.astro +1 -2
  13. package/dist/button/ButtonBasic.astro +18 -0
  14. package/dist/button/ButtonShapes.astro +23 -0
  15. package/dist/button/ButtonSizes.astro +15 -0
  16. package/dist/button/ButtonStates.astro +12 -0
  17. package/dist/button/ButtonWithIcons.astro +25 -0
  18. package/dist/button/index.ts +23 -0
  19. package/dist/components/containers/Main.astro +1 -2
  20. package/dist/components/data-display/ProductCard.astro +2 -1
  21. package/dist/components/data-display/TeamMember.astro +2 -1
  22. package/dist/components/data-display/TeamMembers.astro +2 -1
  23. package/dist/components/display/Hero.astro +1 -1
  24. package/dist/components/display/Modal.astro +1 -1
  25. package/dist/{components/errors → errors}/404.astro +1 -1
  26. package/dist/errors/404Basic.astro +5 -0
  27. package/dist/errors/index.ts +11 -0
  28. package/dist/flex/FlexBasic.astro +9 -0
  29. package/dist/flex/index.ts +11 -0
  30. package/dist/{components/layouts → footer}/Footer.astro +8 -8
  31. package/dist/footer/FooterBasic.astro +12 -0
  32. package/dist/footer/FooterSection.astro +46 -0
  33. package/dist/footer/index.ts +11 -0
  34. package/dist/{components/layouts → grid}/Grid.astro +1 -1
  35. package/dist/grid/GridBasic.astro +9 -0
  36. package/dist/grid/index.ts +11 -0
  37. package/dist/{components/layouts → header}/Header.astro +14 -51
  38. package/dist/header/HeaderBasic.astro +14 -0
  39. package/dist/header/HeaderCustomNavbarEnd.astro +20 -0
  40. package/dist/header/HeaderCustomPosition.astro +23 -0
  41. package/dist/header/HeaderWithNavigation.astro +22 -0
  42. package/dist/header/index.ts +20 -0
  43. package/dist/{components/typography → heading}/Heading.astro +2 -2
  44. package/dist/heading/HeadingBasic.astro +10 -0
  45. package/dist/heading/index.ts +11 -0
  46. package/dist/{components/base → image}/Image.astro +9 -7
  47. package/dist/image/ImageBasic.astro +1 -0
  48. package/dist/image/ImageEffects.astro +32 -0
  49. package/dist/image/ImageLoading.astro +35 -0
  50. package/dist/image/index.ts +17 -0
  51. package/dist/index.ts +2 -95
  52. package/dist/index_astro.ts +78 -0
  53. package/dist/index_utils.ts +8 -0
  54. package/dist/{components/navigation → language-switcher}/LanguageSwitcher.astro +3 -3
  55. package/dist/language-switcher/LanguageSwitcherBasic.astro +7 -0
  56. package/dist/language-switcher/index.ts +11 -0
  57. package/dist/{components/layouts → layout-app}/AppLayout.astro +10 -4
  58. package/dist/layout-app/AppLayoutBasic.astro +53 -0
  59. package/dist/layout-app/index.ts +11 -0
  60. package/dist/{components/layouts → layout-basic}/BaseLayout.astro +2 -2
  61. package/dist/layout-basic/BaseLayoutBasic.astro +16 -0
  62. package/dist/layout-basic/index.ts +11 -0
  63. package/dist/{components/layouts → layout-dashboard}/DashboardLayout.astro +2 -2
  64. package/dist/layout-dashboard/DashboardLayoutBasic.astro +48 -0
  65. package/dist/layout-dashboard/index.ts +11 -0
  66. package/dist/{components/base → link}/Link.astro +1 -1
  67. package/dist/link/LinkAnimations.astro +21 -0
  68. package/dist/link/LinkBasic.astro +17 -0
  69. package/dist/link/LinkVariants.astro +20 -0
  70. package/dist/link/index.ts +17 -0
  71. package/dist/module/Module.astro +61 -0
  72. package/dist/module/ModuleBasic.astro +12 -0
  73. package/dist/module/ModuleCustom.astro +14 -0
  74. package/dist/module/ModuleGrid.astro +26 -0
  75. package/dist/module/index.ts +17 -0
  76. package/dist/{components/layouts → nav-item}/NavItems.astro +2 -3
  77. package/dist/nav-item/NavItemsBasic.astro +27 -0
  78. package/dist/nav-item/index.ts +11 -0
  79. package/dist/nav-section/NavSection.astro +42 -0
  80. package/dist/nav-section/NavSectionBasic.astro +12 -0
  81. package/dist/nav-section/index.ts +11 -0
  82. package/dist/{components/layouts → sidebar}/Sidebar.astro +5 -6
  83. package/dist/sidebar/SidebarBasic.astro +1 -0
  84. package/dist/sidebar/index.ts +11 -0
  85. package/dist/{components/layouts → sidebar-nav}/SidebarNav.astro +3 -3
  86. package/dist/sidebar-nav/SidebarNavBasic.astro +32 -0
  87. package/dist/sidebar-nav/index.ts +11 -0
  88. package/dist/speak/Speak.astro +65 -0
  89. package/dist/speak/SpeakBasic.astro +13 -0
  90. package/dist/speak/SpeakGrid.astro +29 -0
  91. package/dist/speak/index.ts +14 -0
  92. package/dist/{components/layouts → stack}/Stack.astro +1 -1
  93. package/dist/stack/StackBasic.astro +15 -0
  94. package/dist/stack/index.ts +11 -0
  95. package/dist/{components/typography → text}/Text.astro +1 -1
  96. package/dist/text/TextBasic.astro +12 -0
  97. package/dist/text/TextSizes.astro +11 -0
  98. package/dist/text/index.ts +11 -0
  99. package/dist/theme-item/ThemeItem.astro +45 -0
  100. package/dist/theme-item/ThemeItemBasic.astro +10 -0
  101. package/dist/theme-item/index.ts +11 -0
  102. package/dist/{components/navigation → theme-switcher}/ThemeSwitcher.astro +4 -4
  103. package/dist/theme-switcher/ThemeSwitcherBasic.astro +7 -0
  104. package/dist/theme-switcher/index.ts +11 -0
  105. package/dist/{components/navigation → toc}/TableOfContents.astro +3 -3
  106. package/dist/toc/TableOfContentsBasic.astro +25 -0
  107. package/dist/toc/index.ts +11 -0
  108. package/dist/types/image.ts +16 -0
  109. package/dist/types/menu.ts +24 -0
  110. package/dist/utils/component.ts +39 -0
  111. package/dist/vue/AlertDialog/index.ts +3 -41
  112. package/dist/vue/BannerBox/index.ts +9 -44
  113. package/dist/vue/BlogList/index.ts +5 -27
  114. package/dist/vue/Buttons/index.ts +5 -27
  115. package/dist/vue/ConfirmDialog/index.ts +3 -41
  116. package/dist/vue/MacWindow/index.ts +7 -21
  117. package/dist/vue/SmartHero/index.ts +4 -26
  118. package/dist/vue/iPhone/index.ts +5 -18
  119. package/package.json +7 -7
  120. package/dist/components/base/Module.astro +0 -18
  121. package/dist/components/base/Speak.astro +0 -22
  122. package/dist/components/base/ThemeItem.astro +0 -21
  123. package/dist/components/layouts/NavSection.astro +0 -32
  124. /package/dist/{components/layouts → flex}/Flex.astro +0 -0
@@ -1,22 +0,0 @@
1
- ---
2
- import { Image } from 'astro:assets';
3
- import type { ImageMetadata } from 'astro';
4
-
5
- interface Props {
6
- speakerName: string;
7
- speakerTitle: string;
8
- image: ImageMetadata;
9
- words: string;
10
- }
11
-
12
- const { speakerName, speakerTitle, image, words } = Astro.props;
13
- ---
14
-
15
- <div class="flex flex-col items-center gap-4 p-6 bg-white rounded-lg shadow-lg">
16
- <Image src={image} alt={speakerName} class="w-32 h-32 object-contain" width={128} height={128} />
17
- <div class="text-center">
18
- <h3 class="text-xl font-semibold">{speakerName}</h3>
19
- <p class="text-gray-600">{speakerTitle}</p>
20
- </div>
21
- <p class="text-gray-700 italic">{words}</p>
22
- </div>
@@ -1,21 +0,0 @@
1
- ---
2
- import Button from './Button.astro';
3
-
4
- interface Props {
5
- theme: string;
6
- label: string;
7
- }
8
-
9
- const { theme, label } = Astro.props;
10
- ---
11
-
12
- <Button
13
- variant="ghost"
14
- size="sm"
15
- block
16
- class="text-left justify-start"
17
- data-set-theme={theme}
18
- >
19
- {label}
20
- </Button>
21
-
@@ -1,32 +0,0 @@
1
- ---
2
- /**
3
- * @component NavSection
4
- *
5
- * @description
6
- * NavSection 组件用于在页脚中创建一个导航部分。
7
- *
8
- * @props
9
- * @prop {string} title - 导航部分的标题
10
- * @prop {Array<Object>} links - 链接数组,每个对象包含name、href和可选的external属性
11
- *
12
- */
13
-
14
- import Link from '../base/Link.astro';
15
-
16
- interface NavSectionProps {
17
- title: string;
18
- links: Array<{ name: string; href: string; external?: boolean }>;
19
- }
20
-
21
- const props = Astro.props as NavSectionProps;
22
- const { title, links } = props;
23
- ---
24
-
25
- <nav class="cosy:flex cosy:flex-col cosy:items-center cosy:gap-3 cosy:hover:bg-base-300 cosy:hover:shadow-lg cosy:p-4 cosy:rounded cosy:h-full! cosy:hover:scale-105 cosy:transition-transform cosy:duration-300">
26
- <h6 class="cosy:footer-title">{title}</h6>
27
- {links.map((link) => (
28
- <Link href={link.href} external={link.external} size='sm' block animation='hover-lift' centerText>
29
- {link.name}
30
- </Link>
31
- ))}
32
- </nav>
File without changes