@demokit-ui/demokit 0.1.0 → 0.1.1

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 (189) hide show
  1. package/README.md +3 -0
  2. package/dist/app/demo1-shell.js +195 -188
  3. package/dist/app/tweak-panel.js +20 -4
  4. package/dist/index.js +811 -479
  5. package/dist/kit/components/chart/chart/chart.examples.d.ts +13 -0
  6. package/dist/kit/components/chart/chart/chart.examples.js +390 -0
  7. package/dist/kit/components/composite/action-bar/action-bar.examples.d.ts +2 -0
  8. package/dist/kit/components/composite/action-bar/action-bar.examples.js +35 -0
  9. package/dist/kit/components/composite/action-card/action-card.examples.d.ts +2 -0
  10. package/dist/kit/components/composite/action-card/action-card.examples.js +34 -0
  11. package/dist/kit/components/composite/activity-feed/activity-feed.examples.d.ts +2 -0
  12. package/dist/kit/components/composite/activity-feed/activity-feed.examples.js +44 -0
  13. package/dist/kit/components/composite/alert-card/alert-card.examples.d.ts +2 -0
  14. package/dist/kit/components/composite/alert-card/alert-card.examples.js +18 -0
  15. package/dist/kit/components/composite/approval-flow/approval-flow.examples.d.ts +2 -0
  16. package/dist/kit/components/composite/approval-flow/approval-flow.examples.js +70 -0
  17. package/dist/kit/components/composite/auth-shell/auth-shell.examples.d.ts +2 -0
  18. package/dist/kit/components/composite/auth-shell/auth-shell.examples.js +23 -0
  19. package/dist/kit/components/composite/board-toolbar/board-toolbar.examples.d.ts +2 -0
  20. package/dist/kit/components/composite/board-toolbar/board-toolbar.examples.js +32 -0
  21. package/dist/kit/components/composite/chart-card/chart-card.examples.d.ts +3 -0
  22. package/dist/kit/components/composite/chart-card/chart-card.examples.js +58 -0
  23. package/dist/kit/components/composite/chart-toolbar/chart-toolbar.examples.d.ts +2 -0
  24. package/dist/kit/components/composite/chart-toolbar/chart-toolbar.examples.js +39 -0
  25. package/dist/kit/components/composite/data-section/data-section.examples.d.ts +3 -0
  26. package/dist/kit/components/composite/data-section/data-section.examples.js +48 -0
  27. package/dist/kit/components/composite/description-grid/description-grid.examples.d.ts +2 -0
  28. package/dist/kit/components/composite/description-grid/description-grid.examples.js +30 -0
  29. package/dist/kit/components/composite/detail-header/detail-header.examples.d.ts +2 -0
  30. package/dist/kit/components/composite/detail-header/detail-header.examples.js +37 -0
  31. package/dist/kit/components/composite/filter-panel/filter-panel.examples.d.ts +2 -0
  32. package/dist/kit/components/composite/filter-panel/filter-panel.examples.js +63 -0
  33. package/dist/kit/components/composite/filter-toolbar/filter-toolbar.examples.d.ts +2 -0
  34. package/dist/kit/components/composite/filter-toolbar/filter-toolbar.examples.js +39 -0
  35. package/dist/kit/components/composite/forgot-password-form/forgot-password-form.examples.d.ts +2 -0
  36. package/dist/kit/components/composite/forgot-password-form/forgot-password-form.examples.js +19 -0
  37. package/dist/kit/components/composite/form-section/form-section.examples.d.ts +2 -0
  38. package/dist/kit/components/composite/form-section/form-section.examples.js +40 -0
  39. package/dist/kit/components/composite/kanban-board/kanban-board.examples.d.ts +2 -0
  40. package/dist/kit/components/composite/kanban-board/kanban-board.examples.js +72 -0
  41. package/dist/kit/components/composite/login-card/login-card.examples.d.ts +3 -0
  42. package/dist/kit/components/composite/login-card/login-card.examples.js +30 -0
  43. package/dist/kit/components/composite/message-list-card/message-list-card.examples.d.ts +2 -0
  44. package/dist/kit/components/composite/message-list-card/message-list-card.examples.js +56 -0
  45. package/dist/kit/components/composite/metric-card/metric-card.examples.d.ts +2 -0
  46. package/dist/kit/components/composite/metric-card/metric-card.examples.js +50 -0
  47. package/dist/kit/components/composite/milestone-card/milestone-card.examples.d.ts +2 -0
  48. package/dist/kit/components/composite/milestone-card/milestone-card.examples.js +54 -0
  49. package/dist/kit/components/composite/oauth-login-buttons/oauth-login-buttons.examples.d.ts +2 -0
  50. package/dist/kit/components/composite/oauth-login-buttons/oauth-login-buttons.examples.js +24 -0
  51. package/dist/kit/components/composite/page-header/page-header.examples.d.ts +3 -0
  52. package/dist/kit/components/composite/page-header/page-header.examples.js +56 -0
  53. package/dist/kit/components/composite/profile-card/profile-card.examples.d.ts +2 -0
  54. package/dist/kit/components/composite/profile-card/profile-card.examples.js +45 -0
  55. package/dist/kit/components/composite/progress-card/progress-card.examples.d.ts +2 -0
  56. package/dist/kit/components/composite/progress-card/progress-card.examples.js +42 -0
  57. package/dist/kit/components/composite/project-card/project-card.examples.d.ts +2 -0
  58. package/dist/kit/components/composite/project-card/project-card.examples.js +48 -0
  59. package/dist/kit/components/composite/shortcut-card/shortcut-card.examples.d.ts +2 -0
  60. package/dist/kit/components/composite/shortcut-card/shortcut-card.examples.js +18 -0
  61. package/dist/kit/components/composite/sprint-summary/sprint-summary.examples.d.ts +2 -0
  62. package/dist/kit/components/composite/sprint-summary/sprint-summary.examples.js +27 -0
  63. package/dist/kit/components/composite/state-panel/state-panel.examples.d.ts +2 -0
  64. package/dist/kit/components/composite/state-panel/state-panel.examples.js +48 -0
  65. package/dist/kit/components/composite/summary-card/summary-card.examples.d.ts +2 -0
  66. package/dist/kit/components/composite/summary-card/summary-card.examples.js +32 -0
  67. package/dist/kit/components/composite/task-card/task-card.examples.d.ts +2 -0
  68. package/dist/kit/components/composite/task-card/task-card.examples.js +39 -0
  69. package/dist/kit/components/composite/timeline/timeline.examples.d.ts +2 -0
  70. package/dist/kit/components/composite/timeline/timeline.examples.js +75 -0
  71. package/dist/kit/components/composite/todo-card/todo-card.examples.d.ts +2 -0
  72. package/dist/kit/components/composite/todo-card/todo-card.examples.js +42 -0
  73. package/dist/kit/components/data-display/avatar/avatar.examples.d.ts +7 -0
  74. package/dist/kit/components/data-display/avatar/avatar.examples.js +48 -0
  75. package/dist/kit/components/data-display/avatar-group/avatar-group.examples.d.ts +3 -0
  76. package/dist/kit/components/data-display/avatar-group/avatar-group.examples.js +35 -0
  77. package/dist/kit/components/data-display/badge/badge.examples.d.ts +9 -0
  78. package/dist/kit/components/data-display/badge/badge.examples.js +57 -0
  79. package/dist/kit/components/data-display/card/card.examples.d.ts +16 -0
  80. package/dist/kit/components/data-display/card/card.examples.js +72 -0
  81. package/dist/kit/components/data-display/data-grid/data-grid.examples.d.ts +2 -0
  82. package/dist/kit/components/data-display/data-grid/data-grid.examples.js +92 -0
  83. package/dist/kit/components/data-display/kbd/kbd.examples.d.ts +3 -0
  84. package/dist/kit/components/data-display/kbd/kbd.examples.js +43 -0
  85. package/dist/kit/components/data-display/money-amount/money-amount.examples.d.ts +1 -0
  86. package/dist/kit/components/data-display/money-amount/money-amount.examples.js +26 -0
  87. package/dist/kit/components/data-display/progress/progress.examples.d.ts +3 -0
  88. package/dist/kit/components/data-display/progress/progress.examples.js +45 -0
  89. package/dist/kit/components/data-display/skeleton/skeleton.examples.d.ts +3 -0
  90. package/dist/kit/components/data-display/skeleton/skeleton.examples.js +37 -0
  91. package/dist/kit/components/data-display/sliding-number/sliding-number.examples.d.ts +3 -0
  92. package/dist/kit/components/data-display/sliding-number/sliding-number.examples.js +42 -0
  93. package/dist/kit/components/data-display/stepper/stepper.examples.d.ts +2 -0
  94. package/dist/kit/components/data-display/stepper/stepper.examples.js +28 -0
  95. package/dist/kit/components/data-display/table/table.examples.d.ts +4 -0
  96. package/dist/kit/components/data-display/table/table.examples.js +78 -0
  97. package/dist/kit/components/decorative/aurora-background/aurora-background.examples.d.ts +2 -0
  98. package/dist/kit/components/decorative/aurora-background/aurora-background.examples.js +22 -0
  99. package/dist/kit/components/decorative/grid-background/grid-background.examples.d.ts +4 -0
  100. package/dist/kit/components/decorative/grid-background/grid-background.examples.js +42 -0
  101. package/dist/kit/components/decorative/shimmering-text/shimmering-text.examples.d.ts +4 -0
  102. package/dist/kit/components/decorative/shimmering-text/shimmering-text.examples.js +54 -0
  103. package/dist/kit/components/decorative/text-reveal/text-reveal.examples.d.ts +2 -0
  104. package/dist/kit/components/decorative/text-reveal/text-reveal.examples.js +46 -0
  105. package/dist/kit/components/feedback/alert/alert.examples.d.ts +2 -0
  106. package/dist/kit/components/feedback/alert/alert.examples.js +37 -0
  107. package/dist/kit/components/feedback/alert-dialog/alert-dialog.examples.d.ts +2 -0
  108. package/dist/kit/components/feedback/alert-dialog/alert-dialog.examples.js +28 -0
  109. package/dist/kit/components/feedback/context-menu/context-menu.examples.d.ts +2 -0
  110. package/dist/kit/components/feedback/context-menu/context-menu.examples.js +33 -0
  111. package/dist/kit/components/feedback/dialog/dialog.examples.d.ts +2 -0
  112. package/dist/kit/components/feedback/dialog/dialog.examples.js +51 -0
  113. package/dist/kit/components/feedback/drawer/drawer.examples.d.ts +2 -0
  114. package/dist/kit/components/feedback/drawer/drawer.examples.js +29 -0
  115. package/dist/kit/components/feedback/dropdown-menu/dropdown-menu.examples.d.ts +3 -0
  116. package/dist/kit/components/feedback/dropdown-menu/dropdown-menu.examples.js +54 -0
  117. package/dist/kit/components/feedback/hover-card/hover-card.examples.d.ts +2 -0
  118. package/dist/kit/components/feedback/hover-card/hover-card.examples.js +27 -0
  119. package/dist/kit/components/feedback/popover/popover.examples.d.ts +2 -0
  120. package/dist/kit/components/feedback/popover/popover.examples.js +42 -0
  121. package/dist/kit/components/feedback/sheet/sheet.examples.d.ts +2 -0
  122. package/dist/kit/components/feedback/sheet/sheet.examples.js +39 -0
  123. package/dist/kit/components/feedback/sonner/sonner.examples.d.ts +3 -0
  124. package/dist/kit/components/feedback/sonner/sonner.examples.js +49 -0
  125. package/dist/kit/components/feedback/title-help/title-help.examples.d.ts +1 -0
  126. package/dist/kit/components/feedback/title-help/title-help.examples.js +25 -0
  127. package/dist/kit/components/feedback/tooltip/tooltip.examples.d.ts +3 -0
  128. package/dist/kit/components/feedback/tooltip/tooltip.examples.js +44 -0
  129. package/dist/kit/components/form/button/button.examples.d.ts +13 -0
  130. package/dist/kit/components/form/button/button.examples.js +84 -0
  131. package/dist/kit/components/form/calendar/calendar.examples.d.ts +2 -0
  132. package/dist/kit/components/form/calendar/calendar.examples.js +23 -0
  133. package/dist/kit/components/form/checkbox/checkbox.examples.d.ts +4 -0
  134. package/dist/kit/components/form/checkbox/checkbox.examples.js +72 -0
  135. package/dist/kit/components/form/command/command.examples.d.ts +3 -0
  136. package/dist/kit/components/form/command/command.examples.js +52 -0
  137. package/dist/kit/components/form/datefield/datefield.examples.d.ts +2 -0
  138. package/dist/kit/components/form/datefield/datefield.examples.js +19 -0
  139. package/dist/kit/components/form/file-upload/file-upload.examples.d.ts +1 -0
  140. package/dist/kit/components/form/file-upload/file-upload.examples.js +18 -0
  141. package/dist/kit/components/form/form/form.examples.d.ts +2 -0
  142. package/dist/kit/components/form/form/form.examples.js +77 -0
  143. package/dist/kit/components/form/input/input.examples.d.ts +5 -0
  144. package/dist/kit/components/form/input/input.examples.js +64 -0
  145. package/dist/kit/components/form/label/label.examples.d.ts +4 -0
  146. package/dist/kit/components/form/label/label.examples.js +49 -0
  147. package/dist/kit/components/form/radio-group/radio-group.examples.d.ts +3 -0
  148. package/dist/kit/components/form/radio-group/radio-group.examples.js +40 -0
  149. package/dist/kit/components/form/select/select.examples.d.ts +3 -0
  150. package/dist/kit/components/form/select/select.examples.js +58 -0
  151. package/dist/kit/components/form/slider/slider.examples.d.ts +3 -0
  152. package/dist/kit/components/form/slider/slider.examples.js +46 -0
  153. package/dist/kit/components/form/switch/switch.examples.d.ts +3 -0
  154. package/dist/kit/components/form/switch/switch.examples.js +37 -0
  155. package/dist/kit/components/form/textarea/textarea.examples.d.ts +3 -0
  156. package/dist/kit/components/form/textarea/textarea.examples.js +49 -0
  157. package/dist/kit/components/form/toggle/toggle.examples.d.ts +3 -0
  158. package/dist/kit/components/form/toggle/toggle.examples.js +33 -0
  159. package/dist/kit/components/form/toggle-group/toggle-group.examples.d.ts +4 -0
  160. package/dist/kit/components/form/toggle-group/toggle-group.examples.js +46 -0
  161. package/dist/kit/components/index.d.ts +91 -0
  162. package/dist/kit/components/layout/accordion/accordion.examples.d.ts +2 -0
  163. package/dist/kit/components/layout/accordion/accordion.examples.js +34 -0
  164. package/dist/kit/components/layout/aspect-ratio/aspect-ratio.examples.d.ts +3 -0
  165. package/dist/kit/components/layout/aspect-ratio/aspect-ratio.examples.js +29 -0
  166. package/dist/kit/components/layout/collapsible/collapsible.examples.d.ts +2 -0
  167. package/dist/kit/components/layout/collapsible/collapsible.examples.js +28 -0
  168. package/dist/kit/components/layout/resizable/resizable.examples.d.ts +2 -0
  169. package/dist/kit/components/layout/resizable/resizable.examples.js +26 -0
  170. package/dist/kit/components/layout/scroll-area/scroll-area.examples.d.ts +2 -0
  171. package/dist/kit/components/layout/scroll-area/scroll-area.examples.js +16 -0
  172. package/dist/kit/components/layout/separator/separator.examples.d.ts +3 -0
  173. package/dist/kit/components/layout/separator/separator.examples.js +35 -0
  174. package/dist/kit/components/navigation/accordion-menu/accordion-menu.examples.d.ts +2 -0
  175. package/dist/kit/components/navigation/accordion-menu/accordion-menu.examples.js +36 -0
  176. package/dist/kit/components/navigation/breadcrumb/breadcrumb.examples.d.ts +3 -0
  177. package/dist/kit/components/navigation/breadcrumb/breadcrumb.examples.js +39 -0
  178. package/dist/kit/components/navigation/menubar/menubar.examples.d.ts +2 -0
  179. package/dist/kit/components/navigation/menubar/menubar.examples.js +54 -0
  180. package/dist/kit/components/navigation/navigation-menu/navigation-menu.examples.d.ts +2 -0
  181. package/dist/kit/components/navigation/navigation-menu/navigation-menu.examples.js +31 -0
  182. package/dist/kit/components/navigation/pagination/pagination.examples.d.ts +2 -0
  183. package/dist/kit/components/navigation/pagination/pagination.examples.js +42 -0
  184. package/dist/kit/components/navigation/scrollspy/scrollspy.examples.d.ts +2 -0
  185. package/dist/kit/components/navigation/scrollspy/scrollspy.examples.js +68 -0
  186. package/dist/kit/components/navigation/tabs/tabs.examples.d.ts +5 -0
  187. package/dist/kit/components/navigation/tabs/tabs.examples.js +43 -0
  188. package/dist/styles.css +29 -12
  189. package/package.json +1 -1
@@ -0,0 +1,4 @@
1
+ export declare function LabelBasic(): import("react/jsx-runtime").JSX.Element;
2
+ export declare function LabelRequired(): import("react/jsx-runtime").JSX.Element;
3
+ export declare function LabelWithHint(): import("react/jsx-runtime").JSX.Element;
4
+ export declare function LabelShowcase(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,49 @@
1
+ import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
+ import { Label as l } from "./label.js";
3
+ import { Input as s } from "../input/input.js";
4
+ function t() {
5
+ return /* @__PURE__ */ i("div", { className: "space-y-1.5 w-64", children: [
6
+ /* @__PURE__ */ e(l, { htmlFor: "name", children: "姓名" }),
7
+ /* @__PURE__ */ e(s, { id: "name", placeholder: "请输入姓名" })
8
+ ] });
9
+ }
10
+ function n() {
11
+ return /* @__PURE__ */ i("div", { className: "space-y-1.5 w-64", children: [
12
+ /* @__PURE__ */ i(l, { htmlFor: "email", children: [
13
+ "邮箱 ",
14
+ /* @__PURE__ */ e("span", { className: "text-destructive", children: "*" })
15
+ ] }),
16
+ /* @__PURE__ */ e(s, { id: "email", type: "email", required: !0 })
17
+ ] });
18
+ }
19
+ function r() {
20
+ return /* @__PURE__ */ i("div", { className: "space-y-1.5 w-64", children: [
21
+ /* @__PURE__ */ i("div", { className: "flex items-baseline justify-between", children: [
22
+ /* @__PURE__ */ e(l, { htmlFor: "id", children: "员工工号" }),
23
+ /* @__PURE__ */ e("span", { className: "text-xs text-muted-foreground", children: "6 位数字" })
24
+ ] }),
25
+ /* @__PURE__ */ e(s, { id: "id" })
26
+ ] });
27
+ }
28
+ function m() {
29
+ return /* @__PURE__ */ i("div", { className: "flex flex-col gap-6", children: [
30
+ /* @__PURE__ */ i("section", { children: [
31
+ /* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "基础" }),
32
+ /* @__PURE__ */ e(t, {})
33
+ ] }),
34
+ /* @__PURE__ */ i("section", { children: [
35
+ /* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "带必填 *" }),
36
+ /* @__PURE__ */ e(n, {})
37
+ ] }),
38
+ /* @__PURE__ */ i("section", { children: [
39
+ /* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "带辅助说明" }),
40
+ /* @__PURE__ */ e(r, {})
41
+ ] })
42
+ ] });
43
+ }
44
+ export {
45
+ t as LabelBasic,
46
+ n as LabelRequired,
47
+ m as LabelShowcase,
48
+ r as LabelWithHint
49
+ };
@@ -0,0 +1,3 @@
1
+ export declare function RadioGroupBasic(): import("react/jsx-runtime").JSX.Element;
2
+ export declare function RadioGroupHorizontal(): import("react/jsx-runtime").JSX.Element;
3
+ export declare function RadioGroupShowcase(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,40 @@
1
+ import { jsx as e, jsxs as a } from "react/jsx-runtime";
2
+ import { RadioGroup as l, RadioGroupItem as o } from "./radio-group.js";
3
+ import { Label as s } from "../label/label.js";
4
+ function t() {
5
+ return /* @__PURE__ */ e(l, { defaultValue: "weekly", className: "space-y-2", children: [
6
+ ["daily", "每日"],
7
+ ["weekly", "每周"],
8
+ ["monthly", "每月"]
9
+ ].map(([r, i]) => /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
10
+ /* @__PURE__ */ e(o, { value: r, id: `r-${r}` }),
11
+ /* @__PURE__ */ e(s, { htmlFor: `r-${r}`, className: "cursor-pointer", children: i })
12
+ ] }, r)) });
13
+ }
14
+ function c() {
15
+ return /* @__PURE__ */ e(l, { defaultValue: "time", className: "flex gap-6", children: [
16
+ ["time", "按时间"],
17
+ ["priority", "按优先级"],
18
+ ["name", "按名称"]
19
+ ].map(([r, i]) => /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
20
+ /* @__PURE__ */ e(o, { value: r, id: `h-${r}` }),
21
+ /* @__PURE__ */ e(s, { htmlFor: `h-${r}`, className: "cursor-pointer", children: i })
22
+ ] }, r)) });
23
+ }
24
+ function h() {
25
+ return /* @__PURE__ */ a("div", { className: "flex flex-col gap-6", children: [
26
+ /* @__PURE__ */ a("section", { children: [
27
+ /* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "纵向" }),
28
+ /* @__PURE__ */ e(t, {})
29
+ ] }),
30
+ /* @__PURE__ */ a("section", { children: [
31
+ /* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "横向" }),
32
+ /* @__PURE__ */ e(c, {})
33
+ ] })
34
+ ] });
35
+ }
36
+ export {
37
+ t as RadioGroupBasic,
38
+ c as RadioGroupHorizontal,
39
+ h as RadioGroupShowcase
40
+ };
@@ -0,0 +1,3 @@
1
+ export declare function SelectBasic(): import("react/jsx-runtime").JSX.Element;
2
+ export declare function SelectGrouped(): import("react/jsx-runtime").JSX.Element;
3
+ export declare function SelectShowcase(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,58 @@
1
+ import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
+ import { useState as u } from "react";
3
+ import { Label as n } from "../label/label.js";
4
+ import { Select as t, SelectTrigger as d, SelectValue as a, SelectContent as h, SelectItem as c, SelectGroup as r, SelectLabel as i, SelectSeparator as m } from "./select.js";
5
+ function p() {
6
+ const [o, s] = u();
7
+ return /* @__PURE__ */ l("div", { className: "space-y-1.5 w-48", children: [
8
+ /* @__PURE__ */ e(n, { children: "优先级" }),
9
+ /* @__PURE__ */ l(t, { value: o, onValueChange: s, children: [
10
+ /* @__PURE__ */ e(d, { children: /* @__PURE__ */ e(a, { placeholder: "选择优先级" }) }),
11
+ /* @__PURE__ */ l(h, { children: [
12
+ /* @__PURE__ */ e(c, { value: "critical", children: "Critical" }),
13
+ /* @__PURE__ */ e(c, { value: "high", children: "High" }),
14
+ /* @__PURE__ */ e(c, { value: "medium", children: "Medium" }),
15
+ /* @__PURE__ */ e(c, { value: "low", children: "Low" }),
16
+ /* @__PURE__ */ e(c, { value: "none", children: "None" })
17
+ ] })
18
+ ] })
19
+ ] });
20
+ }
21
+ function v() {
22
+ return /* @__PURE__ */ l("div", { className: "space-y-1.5 w-48", children: [
23
+ /* @__PURE__ */ e(n, { children: "选择团队" }),
24
+ /* @__PURE__ */ l(t, { children: [
25
+ /* @__PURE__ */ e(d, { children: /* @__PURE__ */ e(a, { placeholder: "选择团队" }) }),
26
+ /* @__PURE__ */ l(h, { children: [
27
+ /* @__PURE__ */ l(r, { children: [
28
+ /* @__PURE__ */ e(i, { children: "工程部门" }),
29
+ /* @__PURE__ */ e(c, { value: "frontend", children: "前端" }),
30
+ /* @__PURE__ */ e(c, { value: "backend", children: "后端" })
31
+ ] }),
32
+ /* @__PURE__ */ e(m, {}),
33
+ /* @__PURE__ */ l(r, { children: [
34
+ /* @__PURE__ */ e(i, { children: "业务部门" }),
35
+ /* @__PURE__ */ e(c, { value: "sales", children: "销售" }),
36
+ /* @__PURE__ */ e(c, { value: "support", children: "客服" })
37
+ ] })
38
+ ] })
39
+ ] })
40
+ ] });
41
+ }
42
+ function g() {
43
+ return /* @__PURE__ */ l("div", { className: "flex flex-col gap-6", children: [
44
+ /* @__PURE__ */ l("section", { children: [
45
+ /* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "基础" }),
46
+ /* @__PURE__ */ e(p, {})
47
+ ] }),
48
+ /* @__PURE__ */ l("section", { children: [
49
+ /* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "带分组" }),
50
+ /* @__PURE__ */ e(v, {})
51
+ ] })
52
+ ] });
53
+ }
54
+ export {
55
+ p as SelectBasic,
56
+ v as SelectGrouped,
57
+ g as SelectShowcase
58
+ };
@@ -0,0 +1,3 @@
1
+ export declare function SliderBasic(): import("react/jsx-runtime").JSX.Element;
2
+ export declare function SliderRange(): import("react/jsx-runtime").JSX.Element;
3
+ export declare function SliderShowcase(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,46 @@
1
+ import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
+ import { useState as i } from "react";
3
+ import { Label as l } from "../label/label.js";
4
+ import { Slider as r } from "./slider.js";
5
+ function a() {
6
+ const [s, n] = i([50]);
7
+ return /* @__PURE__ */ t("div", { className: "w-80 space-y-2", children: [
8
+ /* @__PURE__ */ t("div", { className: "flex items-center justify-between", children: [
9
+ /* @__PURE__ */ e(l, { children: "音量" }),
10
+ /* @__PURE__ */ e("span", { className: "text-sm text-muted-foreground font-mono", children: s[0] })
11
+ ] }),
12
+ /* @__PURE__ */ e(r, { value: s, onValueChange: n, max: 100, step: 1 })
13
+ ] });
14
+ }
15
+ function c() {
16
+ const [s, n] = i([20, 80]);
17
+ return /* @__PURE__ */ t("div", { className: "w-80 space-y-2", children: [
18
+ /* @__PURE__ */ t("div", { className: "flex items-center justify-between", children: [
19
+ /* @__PURE__ */ e(l, { children: "价格区间" }),
20
+ /* @__PURE__ */ t("span", { className: "text-sm text-muted-foreground font-mono", children: [
21
+ "¥",
22
+ s[0],
23
+ " ~ ¥",
24
+ s[1]
25
+ ] })
26
+ ] }),
27
+ /* @__PURE__ */ e(r, { value: s, onValueChange: n, max: 100, step: 5 })
28
+ ] });
29
+ }
30
+ function h() {
31
+ return /* @__PURE__ */ t("div", { className: "flex flex-col gap-6", children: [
32
+ /* @__PURE__ */ t("section", { children: [
33
+ /* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "单值" }),
34
+ /* @__PURE__ */ e(a, {})
35
+ ] }),
36
+ /* @__PURE__ */ t("section", { children: [
37
+ /* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "区间" }),
38
+ /* @__PURE__ */ e(c, {})
39
+ ] })
40
+ ] });
41
+ }
42
+ export {
43
+ a as SliderBasic,
44
+ c as SliderRange,
45
+ h as SliderShowcase
46
+ };
@@ -0,0 +1,3 @@
1
+ export declare function SwitchBasic(): import("react/jsx-runtime").JSX.Element;
2
+ export declare function SwitchList(): import("react/jsx-runtime").JSX.Element;
3
+ export declare function SwitchShowcase(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,37 @@
1
+ import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
+ import { Switch as d } from "./switch.js";
3
+ import { Label as i } from "../label/label.js";
4
+ function c() {
5
+ return /* @__PURE__ */ l("div", { className: "flex items-center gap-2", children: [
6
+ /* @__PURE__ */ e(d, { id: "s1" }),
7
+ /* @__PURE__ */ e(i, { htmlFor: "s1", className: "cursor-pointer", children: "桌面通知" })
8
+ ] });
9
+ }
10
+ function t() {
11
+ return /* @__PURE__ */ e("div", { className: "space-y-3 w-72", children: [
12
+ { id: "ss-auto", label: "自动保存草稿", defaultChecked: !0 },
13
+ { id: "ss-notify", label: "桌面通知", defaultChecked: !1 },
14
+ { id: "ss-compact", label: "紧凑布局", defaultChecked: !1 },
15
+ { id: "ss-sound", label: "操作音效", disabled: !0 }
16
+ ].map((s) => /* @__PURE__ */ l("div", { className: "flex items-center justify-between", children: [
17
+ /* @__PURE__ */ e(i, { htmlFor: s.id, className: s.disabled ? "text-muted-foreground" : "cursor-pointer", children: s.label }),
18
+ /* @__PURE__ */ e(d, { id: s.id, defaultChecked: s.defaultChecked, disabled: s.disabled })
19
+ ] }, s.id)) });
20
+ }
21
+ function m() {
22
+ return /* @__PURE__ */ l("div", { className: "flex flex-col gap-6", children: [
23
+ /* @__PURE__ */ l("section", { children: [
24
+ /* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "基础" }),
25
+ /* @__PURE__ */ e(c, {})
26
+ ] }),
27
+ /* @__PURE__ */ l("section", { children: [
28
+ /* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "设置项列表" }),
29
+ /* @__PURE__ */ e(t, {})
30
+ ] })
31
+ ] });
32
+ }
33
+ export {
34
+ c as SwitchBasic,
35
+ t as SwitchList,
36
+ m as SwitchShowcase
37
+ };
@@ -0,0 +1,3 @@
1
+ export declare function TextareaBasic(): import("react/jsx-runtime").JSX.Element;
2
+ export declare function TextareaWithCounter(): import("react/jsx-runtime").JSX.Element;
3
+ export declare function TextareaShowcase(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,49 @@
1
+ import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
+ import { useState as c } from "react";
3
+ import { Label as o } from "../label/label.js";
4
+ import { Textarea as n } from "./textarea.js";
5
+ function l() {
6
+ return /* @__PURE__ */ t("div", { className: "space-y-1.5 w-96", children: [
7
+ /* @__PURE__ */ e(o, { htmlFor: "note", children: "备注" }),
8
+ /* @__PURE__ */ e(n, { id: "note", rows: 4, placeholder: "请输入备注..." })
9
+ ] });
10
+ }
11
+ function i() {
12
+ const [r, a] = c("");
13
+ return /* @__PURE__ */ t("div", { className: "space-y-1.5 w-96", children: [
14
+ /* @__PURE__ */ e(o, { htmlFor: "desc", children: "变更说明" }),
15
+ /* @__PURE__ */ e(
16
+ n,
17
+ {
18
+ id: "desc",
19
+ rows: 4,
20
+ maxLength: 200,
21
+ value: r,
22
+ onChange: (s) => a(s.target.value),
23
+ placeholder: "请描述变更原因..."
24
+ }
25
+ ),
26
+ /* @__PURE__ */ t("div", { className: "text-xs text-muted-foreground text-right font-mono", children: [
27
+ r.length,
28
+ " / ",
29
+ 200
30
+ ] })
31
+ ] });
32
+ }
33
+ function u() {
34
+ return /* @__PURE__ */ t("div", { className: "flex flex-col gap-6", children: [
35
+ /* @__PURE__ */ t("section", { children: [
36
+ /* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "基础" }),
37
+ /* @__PURE__ */ e(l, {})
38
+ ] }),
39
+ /* @__PURE__ */ t("section", { children: [
40
+ /* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "带字数计数" }),
41
+ /* @__PURE__ */ e(i, {})
42
+ ] })
43
+ ] });
44
+ }
45
+ export {
46
+ l as TextareaBasic,
47
+ u as TextareaShowcase,
48
+ i as TextareaWithCounter
49
+ };
@@ -0,0 +1,3 @@
1
+ export declare function ToggleBasic(): import("react/jsx-runtime").JSX.Element;
2
+ export declare function ToggleText(): import("react/jsx-runtime").JSX.Element;
3
+ export declare function ToggleShowcase(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,33 @@
1
+ import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
+ import { RiBold as s, RiItalic as a, RiUnderline as r } from "@remixicon/react";
3
+ import { Toggle as i } from "./toggle.js";
4
+ function c() {
5
+ return /* @__PURE__ */ l("div", { className: "flex gap-2", children: [
6
+ /* @__PURE__ */ e(i, { "aria-label": "加粗", children: /* @__PURE__ */ e(s, { className: "size-4" }) }),
7
+ /* @__PURE__ */ e(i, { "aria-label": "斜体", defaultPressed: !0, children: /* @__PURE__ */ e(a, { className: "size-4" }) }),
8
+ /* @__PURE__ */ e(i, { "aria-label": "下划线", children: /* @__PURE__ */ e(r, { className: "size-4" }) })
9
+ ] });
10
+ }
11
+ function n() {
12
+ return /* @__PURE__ */ l("div", { className: "flex gap-2", children: [
13
+ /* @__PURE__ */ e(i, { children: "仅显示我的" }),
14
+ /* @__PURE__ */ e(i, { defaultPressed: !0, children: "只看未读" })
15
+ ] });
16
+ }
17
+ function m() {
18
+ return /* @__PURE__ */ l("div", { className: "flex flex-col gap-6", children: [
19
+ /* @__PURE__ */ l("section", { children: [
20
+ /* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "图标切换" }),
21
+ /* @__PURE__ */ e(c, {})
22
+ ] }),
23
+ /* @__PURE__ */ l("section", { children: [
24
+ /* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "文字切换" }),
25
+ /* @__PURE__ */ e(n, {})
26
+ ] })
27
+ ] });
28
+ }
29
+ export {
30
+ c as ToggleBasic,
31
+ m as ToggleShowcase,
32
+ n as ToggleText
33
+ };
@@ -0,0 +1,4 @@
1
+ export declare function ToggleGroupSingle(): import("react/jsx-runtime").JSX.Element;
2
+ export declare function ToggleGroupMultiple(): import("react/jsx-runtime").JSX.Element;
3
+ export declare function ToggleGroupView(): import("react/jsx-runtime").JSX.Element;
4
+ export declare function ToggleGroupShowcase(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,46 @@
1
+ import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
+ import { ToggleGroup as i, ToggleGroupItem as l } from "./toggle-group.js";
3
+ function r() {
4
+ return /* @__PURE__ */ n(i, { type: "single", defaultValue: "center", children: [
5
+ /* @__PURE__ */ e(l, { value: "left", children: "左" }),
6
+ /* @__PURE__ */ e(l, { value: "center", children: "中" }),
7
+ /* @__PURE__ */ e(l, { value: "right", children: "右" }),
8
+ /* @__PURE__ */ e(l, { value: "justify", children: "两端" })
9
+ ] });
10
+ }
11
+ function t() {
12
+ return /* @__PURE__ */ n(i, { type: "multiple", defaultValue: ["bold"], children: [
13
+ /* @__PURE__ */ e(l, { value: "bold", children: "粗" }),
14
+ /* @__PURE__ */ e(l, { value: "italic", children: "斜" }),
15
+ /* @__PURE__ */ e(l, { value: "underline", children: "下划线" })
16
+ ] });
17
+ }
18
+ function c() {
19
+ return /* @__PURE__ */ n(i, { type: "single", defaultValue: "list", children: [
20
+ /* @__PURE__ */ e(l, { value: "list", children: "列表" }),
21
+ /* @__PURE__ */ e(l, { value: "card", children: "卡片" }),
22
+ /* @__PURE__ */ e(l, { value: "kanban", children: "看板" })
23
+ ] });
24
+ }
25
+ function d() {
26
+ return /* @__PURE__ */ n("div", { className: "flex flex-col gap-6", children: [
27
+ /* @__PURE__ */ n("section", { children: [
28
+ /* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "互斥单选(对齐)" }),
29
+ /* @__PURE__ */ e(r, {})
30
+ ] }),
31
+ /* @__PURE__ */ n("section", { children: [
32
+ /* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "多选(格式)" }),
33
+ /* @__PURE__ */ e(t, {})
34
+ ] }),
35
+ /* @__PURE__ */ n("section", { children: [
36
+ /* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "视图切换" }),
37
+ /* @__PURE__ */ e(c, {})
38
+ ] })
39
+ ] });
40
+ }
41
+ export {
42
+ t as ToggleGroupMultiple,
43
+ d as ToggleGroupShowcase,
44
+ r as ToggleGroupSingle,
45
+ c as ToggleGroupView
46
+ };
@@ -106,3 +106,94 @@ export * from './composite/sprint-summary/sprint-summary';
106
106
  export * from './composite/board-toolbar/board-toolbar';
107
107
  export * from './composite/oauth-login-buttons/oauth-login-buttons';
108
108
  export * from './composite/forgot-password-form/forgot-password-form';
109
+ export * from './chart/chart/chart.examples';
110
+ export * from './composite/action-bar/action-bar.examples';
111
+ export * from './composite/action-card/action-card.examples';
112
+ export * from './composite/activity-feed/activity-feed.examples';
113
+ export * from './composite/alert-card/alert-card.examples';
114
+ export * from './composite/approval-flow/approval-flow.examples';
115
+ export * from './composite/auth-shell/auth-shell.examples';
116
+ export * from './composite/board-toolbar/board-toolbar.examples';
117
+ export * from './composite/chart-card/chart-card.examples';
118
+ export * from './composite/chart-toolbar/chart-toolbar.examples';
119
+ export * from './composite/data-section/data-section.examples';
120
+ export * from './composite/description-grid/description-grid.examples';
121
+ export * from './composite/detail-header/detail-header.examples';
122
+ export * from './composite/filter-panel/filter-panel.examples';
123
+ export * from './composite/filter-toolbar/filter-toolbar.examples';
124
+ export * from './composite/forgot-password-form/forgot-password-form.examples';
125
+ export * from './composite/form-section/form-section.examples';
126
+ export * from './composite/kanban-board/kanban-board.examples';
127
+ export * from './composite/login-card/login-card.examples';
128
+ export * from './composite/message-list-card/message-list-card.examples';
129
+ export * from './composite/metric-card/metric-card.examples';
130
+ export * from './composite/milestone-card/milestone-card.examples';
131
+ export * from './composite/oauth-login-buttons/oauth-login-buttons.examples';
132
+ export * from './composite/page-header/page-header.examples';
133
+ export * from './composite/profile-card/profile-card.examples';
134
+ export * from './composite/progress-card/progress-card.examples';
135
+ export * from './composite/project-card/project-card.examples';
136
+ export * from './composite/shortcut-card/shortcut-card.examples';
137
+ export * from './composite/sprint-summary/sprint-summary.examples';
138
+ export * from './composite/state-panel/state-panel.examples';
139
+ export * from './composite/summary-card/summary-card.examples';
140
+ export * from './composite/task-card/task-card.examples';
141
+ export * from './composite/timeline/timeline.examples';
142
+ export * from './composite/todo-card/todo-card.examples';
143
+ export * from './data-display/avatar-group/avatar-group.examples';
144
+ export * from './data-display/avatar/avatar.examples';
145
+ export * from './data-display/badge/badge.examples';
146
+ export * from './data-display/card/card.examples';
147
+ export * from './data-display/data-grid/data-grid.examples';
148
+ export * from './data-display/kbd/kbd.examples';
149
+ export * from './data-display/money-amount/money-amount.examples';
150
+ export * from './data-display/progress/progress.examples';
151
+ export * from './data-display/skeleton/skeleton.examples';
152
+ export * from './data-display/sliding-number/sliding-number.examples';
153
+ export * from './data-display/stepper/stepper.examples';
154
+ export * from './data-display/table/table.examples';
155
+ export * from './decorative/aurora-background/aurora-background.examples';
156
+ export * from './decorative/grid-background/grid-background.examples';
157
+ export * from './decorative/shimmering-text/shimmering-text.examples';
158
+ export * from './decorative/text-reveal/text-reveal.examples';
159
+ export * from './feedback/alert-dialog/alert-dialog.examples';
160
+ export * from './feedback/alert/alert.examples';
161
+ export * from './feedback/context-menu/context-menu.examples';
162
+ export * from './feedback/dialog/dialog.examples';
163
+ export * from './feedback/drawer/drawer.examples';
164
+ export * from './feedback/dropdown-menu/dropdown-menu.examples';
165
+ export * from './feedback/hover-card/hover-card.examples';
166
+ export * from './feedback/popover/popover.examples';
167
+ export * from './feedback/sheet/sheet.examples';
168
+ export * from './feedback/sonner/sonner.examples';
169
+ export * from './feedback/title-help/title-help.examples';
170
+ export * from './feedback/tooltip/tooltip.examples';
171
+ export * from './form/button/button.examples';
172
+ export * from './form/calendar/calendar.examples';
173
+ export * from './form/checkbox/checkbox.examples';
174
+ export * from './form/command/command.examples';
175
+ export * from './form/datefield/datefield.examples';
176
+ export * from './form/file-upload/file-upload.examples';
177
+ export * from './form/form/form.examples';
178
+ export * from './form/input/input.examples';
179
+ export * from './form/label/label.examples';
180
+ export * from './form/radio-group/radio-group.examples';
181
+ export * from './form/select/select.examples';
182
+ export * from './form/slider/slider.examples';
183
+ export * from './form/switch/switch.examples';
184
+ export * from './form/textarea/textarea.examples';
185
+ export * from './form/toggle-group/toggle-group.examples';
186
+ export * from './form/toggle/toggle.examples';
187
+ export * from './layout/accordion/accordion.examples';
188
+ export * from './layout/aspect-ratio/aspect-ratio.examples';
189
+ export * from './layout/collapsible/collapsible.examples';
190
+ export * from './layout/resizable/resizable.examples';
191
+ export * from './layout/scroll-area/scroll-area.examples';
192
+ export * from './layout/separator/separator.examples';
193
+ export * from './navigation/accordion-menu/accordion-menu.examples';
194
+ export * from './navigation/breadcrumb/breadcrumb.examples';
195
+ export * from './navigation/menubar/menubar.examples';
196
+ export * from './navigation/navigation-menu/navigation-menu.examples';
197
+ export * from './navigation/pagination/pagination.examples';
198
+ export * from './navigation/scrollspy/scrollspy.examples';
199
+ export * from './navigation/tabs/tabs.examples';
@@ -0,0 +1,2 @@
1
+ export declare function AccordionBasic(): import("react/jsx-runtime").JSX.Element;
2
+ export declare function AccordionShowcase(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,34 @@
1
+ import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
+ import { Accordion as n, AccordionItem as c, AccordionTrigger as i, AccordionContent as o } from "./accordion.js";
3
+ function l() {
4
+ return /* @__PURE__ */ r(n, { type: "single", collapsible: !0, className: "w-full max-w-xl", children: [
5
+ /* @__PURE__ */ r(c, { value: "item-1", children: [
6
+ /* @__PURE__ */ e(i, { children: "什么是 DemoKit?" }),
7
+ /* @__PURE__ */ e(o, { children: "一套用于快速产出 Demo 的 React 设计系统:一个 barrel 导入、严格 token 约束、组件选型决策文档齐全。" })
8
+ ] }),
9
+ /* @__PURE__ */ r(c, { value: "item-2", children: [
10
+ /* @__PURE__ */ e(i, { children: "如何切换主题?" }),
11
+ /* @__PURE__ */ e(o, { children: "通过 useSettings().storeOption('theme', 'glass' | 'navy') 切换,自动持久化到 localStorage。" })
12
+ ] }),
13
+ /* @__PURE__ */ r(c, { value: "item-3", children: [
14
+ /* @__PURE__ */ e(i, { children: "如何引入组件?" }),
15
+ /* @__PURE__ */ r(o, { children: [
16
+ "从 barrel 导入:import ",
17
+ "{",
18
+ " Card, Button ",
19
+ "}",
20
+ " from '@/kit/components'。不要走子路径,分类可能调整。"
21
+ ] })
22
+ ] })
23
+ ] });
24
+ }
25
+ function d() {
26
+ return /* @__PURE__ */ e("div", { className: "flex flex-col gap-6", children: /* @__PURE__ */ r("section", { children: [
27
+ /* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "FAQ 折叠" }),
28
+ /* @__PURE__ */ e(l, {})
29
+ ] }) });
30
+ }
31
+ export {
32
+ l as AccordionBasic,
33
+ d as AccordionShowcase
34
+ };
@@ -0,0 +1,3 @@
1
+ export declare function AspectRatioImage(): import("react/jsx-runtime").JSX.Element;
2
+ export declare function AspectRatioSquare(): import("react/jsx-runtime").JSX.Element;
3
+ export declare function AspectRatioShowcase(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,29 @@
1
+ import { jsx as e, jsxs as t } from "react/jsx-runtime";
2
+ import { AspectRatio as r } from "./aspect-ratio.js";
3
+ function i() {
4
+ return /* @__PURE__ */ e("div", { className: "w-64", children: /* @__PURE__ */ e(r, { ratio: 16 / 9, className: "bg-muted rounded-md overflow-hidden", children: /* @__PURE__ */ e("div", { className: "flex h-full items-center justify-center text-sm text-muted-foreground", children: "16:9 占位" }) }) });
5
+ }
6
+ function s() {
7
+ return /* @__PURE__ */ t("div", { className: "flex gap-4", children: [
8
+ /* @__PURE__ */ e("div", { className: "w-32", children: /* @__PURE__ */ e(r, { ratio: 1, className: "bg-primary/10 rounded-md", children: /* @__PURE__ */ e("div", { className: "flex h-full items-center justify-center text-xs text-primary", children: "1:1" }) }) }),
9
+ /* @__PURE__ */ e("div", { className: "w-32", children: /* @__PURE__ */ e(r, { ratio: 4 / 3, className: "bg-primary/10 rounded-md", children: /* @__PURE__ */ e("div", { className: "flex h-full items-center justify-center text-xs text-primary", children: "4:3" }) }) }),
10
+ /* @__PURE__ */ e("div", { className: "w-32", children: /* @__PURE__ */ e(r, { ratio: 16 / 9, className: "bg-primary/10 rounded-md", children: /* @__PURE__ */ e("div", { className: "flex h-full items-center justify-center text-xs text-primary", children: "16:9" }) }) })
11
+ ] });
12
+ }
13
+ function a() {
14
+ return /* @__PURE__ */ t("div", { className: "flex flex-col gap-6", children: [
15
+ /* @__PURE__ */ t("section", { children: [
16
+ /* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "16:9 图片占位" }),
17
+ /* @__PURE__ */ e(i, {})
18
+ ] }),
19
+ /* @__PURE__ */ t("section", { children: [
20
+ /* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "不同比例对比" }),
21
+ /* @__PURE__ */ e(s, {})
22
+ ] })
23
+ ] });
24
+ }
25
+ export {
26
+ i as AspectRatioImage,
27
+ a as AspectRatioShowcase,
28
+ s as AspectRatioSquare
29
+ };
@@ -0,0 +1,2 @@
1
+ export declare function CollapsibleBasic(): import("react/jsx-runtime").JSX.Element;
2
+ export declare function CollapsibleShowcase(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,28 @@
1
+ import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
+ import { RiArrowDownSLine as r } from "@remixicon/react";
3
+ import { Collapsible as l, CollapsibleTrigger as t, CollapsibleContent as o } from "./collapsible.js";
4
+ import { Button as s } from "../../form/button/button.js";
5
+ function n() {
6
+ return /* @__PURE__ */ i(l, { className: "max-w-md border border-border rounded-md", children: [
7
+ /* @__PURE__ */ i("div", { className: "flex items-center justify-between p-3", children: [
8
+ /* @__PURE__ */ e("div", { className: "text-sm font-medium", children: "高级设置" }),
9
+ /* @__PURE__ */ e(t, { asChild: !0, children: /* @__PURE__ */ e(s, { mode: "icon", variant: "ghost", size: "sm", children: /* @__PURE__ */ e(r, { className: "transition-transform [[data-state=open]>&]:rotate-180" }) }) })
10
+ ] }),
11
+ /* @__PURE__ */ i(o, { className: "px-3 pb-3 text-sm text-muted-foreground space-y-2", children: [
12
+ /* @__PURE__ */ e("div", { children: "• 缓存过期时间" }),
13
+ /* @__PURE__ */ e("div", { children: "• 并发请求数" }),
14
+ /* @__PURE__ */ e("div", { children: "• 重试策略" }),
15
+ /* @__PURE__ */ e("div", { children: "• 超时阈值" })
16
+ ] })
17
+ ] });
18
+ }
19
+ function h() {
20
+ return /* @__PURE__ */ e("div", { className: "flex flex-col gap-6", children: /* @__PURE__ */ i("section", { children: [
21
+ /* @__PURE__ */ e("h3", { className: "text-sm font-semibold mb-3", children: "展开 / 收起区域" }),
22
+ /* @__PURE__ */ e(n, {})
23
+ ] }) });
24
+ }
25
+ export {
26
+ n as CollapsibleBasic,
27
+ h as CollapsibleShowcase
28
+ };
@@ -0,0 +1,2 @@
1
+ export declare function ResizableHorizontal(): import("react/jsx-runtime").JSX.Element;
2
+ export declare function ResizableShowcase(): import("react/jsx-runtime").JSX.Element;