@demokit-ui/demokit 0.1.0

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 (231) hide show
  1. package/README.md +128 -0
  2. package/dist/app/background-decor.d.ts +1 -0
  3. package/dist/app/background-decor.js +38 -0
  4. package/dist/app/container.d.ts +12 -0
  5. package/dist/app/container.js +29 -0
  6. package/dist/app/demo1-shell.d.ts +43 -0
  7. package/dist/app/demo1-shell.js +616 -0
  8. package/dist/app/tweak-panel.d.ts +22 -0
  9. package/dist/app/tweak-panel.js +182 -0
  10. package/dist/components/apexcharts.css +101 -0
  11. package/dist/components/scrollable.css +120 -0
  12. package/dist/config/settings.config.d.ts +2 -0
  13. package/dist/config/settings.config.js +33 -0
  14. package/dist/config/types.d.ts +50 -0
  15. package/dist/config.reui.css +337 -0
  16. package/dist/demos/demo1.css +176 -0
  17. package/dist/index.d.ts +14 -0
  18. package/dist/index.js +484 -0
  19. package/dist/kit/components/chart/chart/chart.d.ts +57 -0
  20. package/dist/kit/components/chart/chart/chart.js +206 -0
  21. package/dist/kit/components/composite/action-bar/action-bar.d.ts +10 -0
  22. package/dist/kit/components/composite/action-bar/action-bar.js +38 -0
  23. package/dist/kit/components/composite/action-card/action-card.d.ts +13 -0
  24. package/dist/kit/components/composite/action-card/action-card.js +35 -0
  25. package/dist/kit/components/composite/activity-feed/activity-feed.d.ts +17 -0
  26. package/dist/kit/components/composite/activity-feed/activity-feed.js +26 -0
  27. package/dist/kit/components/composite/alert-card/alert-card.d.ts +10 -0
  28. package/dist/kit/components/composite/alert-card/alert-card.js +37 -0
  29. package/dist/kit/components/composite/approval-flow/approval-flow.d.ts +51 -0
  30. package/dist/kit/components/composite/approval-flow/approval-flow.js +185 -0
  31. package/dist/kit/components/composite/auth-shell/auth-shell.d.ts +10 -0
  32. package/dist/kit/components/composite/auth-shell/auth-shell.js +32 -0
  33. package/dist/kit/components/composite/board-toolbar/board-toolbar.d.ts +12 -0
  34. package/dist/kit/components/composite/board-toolbar/board-toolbar.js +44 -0
  35. package/dist/kit/components/composite/chart-card/chart-card.d.ts +14 -0
  36. package/dist/kit/components/composite/chart-card/chart-card.js +64 -0
  37. package/dist/kit/components/composite/chart-toolbar/chart-toolbar.d.ts +17 -0
  38. package/dist/kit/components/composite/chart-toolbar/chart-toolbar.js +48 -0
  39. package/dist/kit/components/composite/data-section/data-section.d.ts +17 -0
  40. package/dist/kit/components/composite/data-section/data-section.js +73 -0
  41. package/dist/kit/components/composite/description-grid/description-grid.d.ts +12 -0
  42. package/dist/kit/components/composite/description-grid/description-grid.js +36 -0
  43. package/dist/kit/components/composite/detail-header/detail-header.d.ts +19 -0
  44. package/dist/kit/components/composite/detail-header/detail-header.js +43 -0
  45. package/dist/kit/components/composite/filter-panel/filter-panel.d.ts +18 -0
  46. package/dist/kit/components/composite/filter-panel/filter-panel.js +86 -0
  47. package/dist/kit/components/composite/filter-toolbar/filter-toolbar.d.ts +14 -0
  48. package/dist/kit/components/composite/filter-toolbar/filter-toolbar.js +59 -0
  49. package/dist/kit/components/composite/forgot-password-form/forgot-password-form.d.ts +9 -0
  50. package/dist/kit/components/composite/forgot-password-form/forgot-password-form.js +34 -0
  51. package/dist/kit/components/composite/form-section/form-section.d.ts +9 -0
  52. package/dist/kit/components/composite/form-section/form-section.js +16 -0
  53. package/dist/kit/components/composite/kanban-board/kanban-board.d.ts +50 -0
  54. package/dist/kit/components/composite/kanban-board/kanban-board.js +55 -0
  55. package/dist/kit/components/composite/login-card/login-card.d.ts +33 -0
  56. package/dist/kit/components/composite/login-card/login-card.js +138 -0
  57. package/dist/kit/components/composite/message-list-card/message-list-card.d.ts +20 -0
  58. package/dist/kit/components/composite/message-list-card/message-list-card.js +83 -0
  59. package/dist/kit/components/composite/metric-card/metric-card.d.ts +18 -0
  60. package/dist/kit/components/composite/metric-card/metric-card.js +37 -0
  61. package/dist/kit/components/composite/milestone-card/milestone-card.d.ts +12 -0
  62. package/dist/kit/components/composite/milestone-card/milestone-card.js +33 -0
  63. package/dist/kit/components/composite/oauth-login-buttons/oauth-login-buttons.d.ts +14 -0
  64. package/dist/kit/components/composite/oauth-login-buttons/oauth-login-buttons.js +32 -0
  65. package/dist/kit/components/composite/page-header/page-header.d.ts +12 -0
  66. package/dist/kit/components/composite/page-header/page-header.js +66 -0
  67. package/dist/kit/components/composite/profile-card/profile-card.d.ts +16 -0
  68. package/dist/kit/components/composite/profile-card/profile-card.js +28 -0
  69. package/dist/kit/components/composite/progress-card/progress-card.d.ts +16 -0
  70. package/dist/kit/components/composite/progress-card/progress-card.js +23 -0
  71. package/dist/kit/components/composite/project-card/project-card.d.ts +17 -0
  72. package/dist/kit/components/composite/project-card/project-card.js +46 -0
  73. package/dist/kit/components/composite/shortcut-card/shortcut-card.d.ts +13 -0
  74. package/dist/kit/components/composite/shortcut-card/shortcut-card.js +35 -0
  75. package/dist/kit/components/composite/sprint-summary/sprint-summary.d.ts +15 -0
  76. package/dist/kit/components/composite/sprint-summary/sprint-summary.js +43 -0
  77. package/dist/kit/components/composite/state-panel/state-panel.d.ts +12 -0
  78. package/dist/kit/components/composite/state-panel/state-panel.js +79 -0
  79. package/dist/kit/components/composite/summary-card/summary-card.d.ts +15 -0
  80. package/dist/kit/components/composite/summary-card/summary-card.js +25 -0
  81. package/dist/kit/components/composite/task-card/task-card.d.ts +14 -0
  82. package/dist/kit/components/composite/task-card/task-card.js +49 -0
  83. package/dist/kit/components/composite/timeline/timeline.d.ts +46 -0
  84. package/dist/kit/components/composite/timeline/timeline.js +176 -0
  85. package/dist/kit/components/composite/todo-card/todo-card.d.ts +26 -0
  86. package/dist/kit/components/composite/todo-card/todo-card.js +101 -0
  87. package/dist/kit/components/data-display/avatar/avatar.d.ts +12 -0
  88. package/dist/kit/components/data-display/avatar/avatar.js +61 -0
  89. package/dist/kit/components/data-display/avatar-group/avatar-group.d.ts +22 -0
  90. package/dist/kit/components/data-display/avatar-group/avatar-group.js +184 -0
  91. package/dist/kit/components/data-display/badge/badge.d.ts +29 -0
  92. package/dist/kit/components/data-display/badge/badge.js +203 -0
  93. package/dist/kit/components/data-display/card/card.d.ts +15 -0
  94. package/dist/kit/components/data-display/card/card.js +119 -0
  95. package/dist/kit/components/data-display/data-grid/data-grid-column-filter.d.ts +15 -0
  96. package/dist/kit/components/data-display/data-grid/data-grid-column-filter.js +74 -0
  97. package/dist/kit/components/data-display/data-grid/data-grid-column-header.d.ts +12 -0
  98. package/dist/kit/components/data-display/data-grid/data-grid-column-header.js +171 -0
  99. package/dist/kit/components/data-display/data-grid/data-grid-column-visibility.d.ts +7 -0
  100. package/dist/kit/components/data-display/data-grid/data-grid-column-visibility.js +24 -0
  101. package/dist/kit/components/data-display/data-grid/data-grid-pagination.d.ts +15 -0
  102. package/dist/kit/components/data-display/data-grid/data-grid-pagination.js +132 -0
  103. package/dist/kit/components/data-display/data-grid/data-grid-table-dnd-rows.d.ts +9 -0
  104. package/dist/kit/components/data-display/data-grid/data-grid-table-dnd-rows.js +61 -0
  105. package/dist/kit/components/data-display/data-grid/data-grid-table-dnd.d.ts +5 -0
  106. package/dist/kit/components/data-display/data-grid/data-grid-table-dnd.js +86 -0
  107. package/dist/kit/components/data-display/data-grid/data-grid-table.d.ts +59 -0
  108. package/dist/kit/components/data-display/data-grid/data-grid-table.js +356 -0
  109. package/dist/kit/components/data-display/data-grid/data-grid.d.ts +87 -0
  110. package/dist/kit/components/data-display/data-grid/data-grid.js +87 -0
  111. package/dist/kit/components/data-display/kbd/kbd.d.ts +8 -0
  112. package/dist/kit/components/data-display/kbd/kbd.js +27 -0
  113. package/dist/kit/components/data-display/money-amount/money-amount.d.ts +27 -0
  114. package/dist/kit/components/data-display/money-amount/money-amount.js +91 -0
  115. package/dist/kit/components/data-display/progress/progress.d.ts +6 -0
  116. package/dist/kit/components/data-display/progress/progress.js +29 -0
  117. package/dist/kit/components/data-display/skeleton/skeleton.d.ts +3 -0
  118. package/dist/kit/components/data-display/skeleton/skeleton.js +8 -0
  119. package/dist/kit/components/data-display/sliding-number/sliding-number.d.ts +7 -0
  120. package/dist/kit/components/data-display/sliding-number/sliding-number.js +41 -0
  121. package/dist/kit/components/data-display/stepper/stepper.d.ts +61 -0
  122. package/dist/kit/components/data-display/stepper/stepper.js +230 -0
  123. package/dist/kit/components/data-display/table/table.d.ts +28 -0
  124. package/dist/kit/components/data-display/table/table.js +156 -0
  125. package/dist/kit/components/decorative/aurora-background/aurora-background.d.ts +7 -0
  126. package/dist/kit/components/decorative/aurora-background/aurora-background.js +60 -0
  127. package/dist/kit/components/decorative/grid-background/grid-background.d.ts +22 -0
  128. package/dist/kit/components/decorative/grid-background/grid-background.js +46 -0
  129. package/dist/kit/components/decorative/shimmering-text/shimmering-text.d.ts +29 -0
  130. package/dist/kit/components/decorative/shimmering-text/shimmering-text.js +64 -0
  131. package/dist/kit/components/decorative/text-reveal/text-reveal.d.ts +17 -0
  132. package/dist/kit/components/decorative/text-reveal/text-reveal.js +277 -0
  133. package/dist/kit/components/feedback/alert/alert.d.ts +21 -0
  134. package/dist/kit/components/feedback/alert/alert.js +236 -0
  135. package/dist/kit/components/feedback/alert-dialog/alert-dialog.d.ts +16 -0
  136. package/dist/kit/components/feedback/alert-dialog/alert-dialog.js +117 -0
  137. package/dist/kit/components/feedback/context-menu/context-menu.d.ts +24 -0
  138. package/dist/kit/components/feedback/context-menu/context-menu.js +183 -0
  139. package/dist/kit/components/feedback/dialog/dialog.d.ts +22 -0
  140. package/dist/kit/components/feedback/dialog/dialog.js +120 -0
  141. package/dist/kit/components/feedback/drawer/drawer.d.ts +13 -0
  142. package/dist/kit/components/feedback/drawer/drawer.js +76 -0
  143. package/dist/kit/components/feedback/dropdown-menu/dropdown-menu.d.ts +25 -0
  144. package/dist/kit/components/feedback/dropdown-menu/dropdown-menu.js +200 -0
  145. package/dist/kit/components/feedback/hover-card/hover-card.d.ts +6 -0
  146. package/dist/kit/components/feedback/hover-card/hover-card.js +34 -0
  147. package/dist/kit/components/feedback/popover/popover.d.ts +6 -0
  148. package/dist/kit/components/feedback/popover/popover.js +34 -0
  149. package/dist/kit/components/feedback/sheet/sheet.d.ts +22 -0
  150. package/dist/kit/components/feedback/sheet/sheet.js +128 -0
  151. package/dist/kit/components/feedback/sonner/sonner.d.ts +5 -0
  152. package/dist/kit/components/feedback/sonner/sonner.js +21 -0
  153. package/dist/kit/components/feedback/title-help/title-help.d.ts +10 -0
  154. package/dist/kit/components/feedback/title-help/title-help.js +44 -0
  155. package/dist/kit/components/feedback/tooltip/tooltip.d.ts +11 -0
  156. package/dist/kit/components/feedback/tooltip/tooltip.js +49 -0
  157. package/dist/kit/components/form/button/button.d.ts +23 -0
  158. package/dist/kit/components/form/button/button.js +380 -0
  159. package/dist/kit/components/form/calendar/calendar.d.ts +4 -0
  160. package/dist/kit/components/form/calendar/calendar.js +47 -0
  161. package/dist/kit/components/form/checkbox/checkbox.d.ts +8 -0
  162. package/dist/kit/components/form/checkbox/checkbox.js +39 -0
  163. package/dist/kit/components/form/command/command.d.ts +21 -0
  164. package/dist/kit/components/form/command/command.js +116 -0
  165. package/dist/kit/components/form/datefield/datefield.d.ts +14 -0
  166. package/dist/kit/components/form/datefield/datefield.js +74 -0
  167. package/dist/kit/components/form/file-upload/file-upload.d.ts +56 -0
  168. package/dist/kit/components/form/file-upload/file-upload.js +338 -0
  169. package/dist/kit/components/form/form/form.d.ts +24 -0
  170. package/dist/kit/components/form/form/form.js +86 -0
  171. package/dist/kit/components/form/input/input.d.ts +22 -0
  172. package/dist/kit/components/form/input/input.js +182 -0
  173. package/dist/kit/components/form/label/label.d.ts +8 -0
  174. package/dist/kit/components/form/label/label.js +28 -0
  175. package/dist/kit/components/form/radio-group/radio-group.d.ts +13 -0
  176. package/dist/kit/components/form/radio-group/radio-group.js +79 -0
  177. package/dist/kit/components/form/select/select.d.ts +25 -0
  178. package/dist/kit/components/form/select/select.js +194 -0
  179. package/dist/kit/components/form/slider/slider.d.ts +5 -0
  180. package/dist/kit/components/form/slider/slider.js +34 -0
  181. package/dist/kit/components/form/switch/switch.d.ts +20 -0
  182. package/dist/kit/components/form/switch/switch.js +158 -0
  183. package/dist/kit/components/form/textarea/textarea.d.ts +7 -0
  184. package/dist/kit/components/form/textarea/textarea.js +34 -0
  185. package/dist/kit/components/form/toggle/toggle.d.ts +9 -0
  186. package/dist/kit/components/form/toggle/toggle.js +36 -0
  187. package/dist/kit/components/form/toggle-group/toggle-group.d.ts +7 -0
  188. package/dist/kit/components/form/toggle-group/toggle-group.js +62 -0
  189. package/dist/kit/components/index.d.ts +108 -0
  190. package/dist/kit/components/layout/accordion/accordion.d.ts +13 -0
  191. package/dist/kit/components/layout/accordion/accordion.js +124 -0
  192. package/dist/kit/components/layout/aspect-ratio/aspect-ratio.d.ts +4 -0
  193. package/dist/kit/components/layout/aspect-ratio/aspect-ratio.js +8 -0
  194. package/dist/kit/components/layout/collapsible/collapsible.d.ts +6 -0
  195. package/dist/kit/components/layout/collapsible/collapsible.js +32 -0
  196. package/dist/kit/components/layout/resizable/resizable.d.ts +24 -0
  197. package/dist/kit/components/layout/resizable/resizable.js +32 -0
  198. package/dist/kit/components/layout/scroll-area/scroll-area.d.ts +8 -0
  199. package/dist/kit/components/layout/scroll-area/scroll-area.js +48 -0
  200. package/dist/kit/components/layout/separator/separator.d.ts +4 -0
  201. package/dist/kit/components/layout/separator/separator.js +23 -0
  202. package/dist/kit/components/navigation/accordion-menu/accordion-menu.d.ts +51 -0
  203. package/dist/kit/components/navigation/accordion-menu/accordion-menu.js +290 -0
  204. package/dist/kit/components/navigation/breadcrumb/breadcrumb.d.ts +13 -0
  205. package/dist/kit/components/navigation/breadcrumb/breadcrumb.js +76 -0
  206. package/dist/kit/components/navigation/menubar/menubar.d.ts +25 -0
  207. package/dist/kit/components/navigation/menubar/menubar.js +218 -0
  208. package/dist/kit/components/navigation/navigation-menu/navigation-menu.d.ts +14 -0
  209. package/dist/kit/components/navigation/navigation-menu/navigation-menu.js +137 -0
  210. package/dist/kit/components/navigation/pagination/pagination.d.ts +6 -0
  211. package/dist/kit/components/navigation/pagination/pagination.js +38 -0
  212. package/dist/kit/components/navigation/scrollspy/scrollspy.d.ts +14 -0
  213. package/dist/kit/components/navigation/scrollspy/scrollspy.js +84 -0
  214. package/dist/kit/components/navigation/tabs/tabs.d.ts +16 -0
  215. package/dist/kit/components/navigation/tabs/tabs.js +172 -0
  216. package/dist/kit/themes/theme-toggle.d.ts +1 -0
  217. package/dist/kit/themes/theme-toggle.js +56 -0
  218. package/dist/kit/tokens/chart-palette.d.ts +1 -0
  219. package/dist/kit/tokens/chart-palette.js +12 -0
  220. package/dist/lib/utils.d.ts +8 -0
  221. package/dist/lib/utils.js +8 -0
  222. package/dist/providers/demokit-provider.d.ts +4 -0
  223. package/dist/providers/demokit-provider.js +9 -0
  224. package/dist/providers/settings-provider.d.ts +15 -0
  225. package/dist/providers/settings-provider.js +78 -0
  226. package/dist/providers/theme-provider.d.ts +4 -0
  227. package/dist/providers/theme-provider.js +9 -0
  228. package/dist/providers/tooltips-provider.d.ts +4 -0
  229. package/dist/providers/tooltips-provider.js +8 -0
  230. package/dist/styles.css +237 -0
  231. package/package.json +72 -0
package/README.md ADDED
@@ -0,0 +1,128 @@
1
+ # @demokit-ui/demokit
2
+
3
+ `@demokit-ui/demokit` 是 DemoKit workspace 中可独立发布的 React 组件包,提供统一的组件导出、Provider 和样式入口。
4
+
5
+ ## 概览
6
+
7
+ - 常用基础组件和页面拼装所需的通用能力
8
+ - `DemoKitProvider`
9
+ - 主题与全局上下文能力
10
+ - 样式入口 `@demokit-ui/demokit/styles.css`
11
+
12
+ ## 安装
13
+
14
+ ```bash
15
+ npm install @demokit-ui/demokit react react-dom
16
+ ```
17
+
18
+ 当前版本的 peer dependencies 为 `react@^19.1.0` 和 `react-dom@^19.1.0`。
19
+
20
+ ## 快速开始
21
+
22
+ ```tsx
23
+ import '@demokit-ui/demokit/styles.css';
24
+ import { DemoKitProvider, Button, Card } from '@demokit-ui/demokit';
25
+ ```
26
+
27
+ ```tsx
28
+ <DemoKitProvider>
29
+ <App />
30
+ </DemoKitProvider>
31
+ ```
32
+
33
+ 建议在应用入口只引入一次 `@demokit-ui/demokit/styles.css`,并在根节点使用 `DemoKitProvider`。
34
+
35
+ `@demokit-ui/demokit/styles.css` 提供主题变量、基础 body 背景色、组件 CSS、`card-surface` 和 demo 布局 CSS。`DemoKitProvider` 会把当前主题同步到 `<html data-theme="...">`。
36
+
37
+ ## Tailwind v4 扫描
38
+
39
+ 当前样式入口是 Tailwind v4 CSS。消费项目需要让 Tailwind 扫描 `@demokit-ui/demokit` 的构建产物,否则包内部组件和 demo shell 里的 utility class 不会生成。
40
+
41
+ 在消费项目的全局 CSS 中:
42
+
43
+ ```css
44
+ @import '@demokit-ui/demokit/styles.css';
45
+
46
+ /* 路径相对当前 CSS 文件,按项目目录层级调整。 */
47
+ @source '../node_modules/@demokit-ui/demokit/dist/**/*.{js,mjs,jsx,tsx,ts}';
48
+ ```
49
+
50
+ 如果全局 CSS 位于 `src/app/globals.css`,通常应改成:
51
+
52
+ ```css
53
+ @source '../../node_modules/@demokit-ui/demokit/dist/**/*.{js,mjs,jsx,tsx,ts}';
54
+ ```
55
+
56
+ ## Demo1Shell 布局
57
+
58
+ 展示站的后台布局已经作为 `Demo1Shell` 从包中导出。已有项目想复用 demo 页面布局时,应从包导入 `Demo1Shell`,不要复制 `src/showcase` 或内部 layout 源码。
59
+
60
+ ```tsx
61
+ import { Demo1Shell } from '@demokit-ui/demokit';
62
+ ```
63
+
64
+ `@demokit-ui/demokit/styles.css` 已包含 demo1 布局样式。若项目需要单独引入这部分样式,也可以使用:
65
+
66
+ ```css
67
+ @import '@demokit-ui/demokit/demo1.css';
68
+ ```
69
+
70
+ 注意:demo1 布局样式依赖 `Demo1Shell` 生成的 `.demo1`、`.sidebar`、`.header`、`.wrapper` 等结构和 body class。只复制页面 JSX、不使用 `Demo1Shell`,会出现“取不到 demo 样式”的效果。
71
+
72
+ ## 背景与图表颜色
73
+
74
+ Showcase 页面视觉不只来自组件本身,还依赖共享基础:
75
+
76
+ - `BackgroundDecor`:玻璃主题和 navy 主题的页面背景
77
+ - `card-surface`:主题感知的卡片表面
78
+ - `useChartPalette()`:主题感知的图表调色板
79
+
80
+ ```tsx
81
+ import { BackgroundDecor, useChartPalette } from '@demokit-ui/demokit';
82
+ ```
83
+
84
+ 如果使用 `Demo1Shell`,它已经内置 `BackgroundDecor`。如果是自定义布局,需要在页面根部显式渲染 `BackgroundDecor`。
85
+
86
+ ## 页面内容边界
87
+
88
+ Showcase 和 starter 页面里的指标卡、图表、表格、Tabs、假数据和文案都只是示例内容,不是组件库强制的页面结构。正式页面应基于真实业务的信息架构重建内容:列表页用表格和筛选,详情页用信息块和操作区,表单页用表单布局,仪表盘才使用指标卡和图表。
89
+
90
+ ## 导出内容
91
+
92
+ 包的公开导出主要包括:
93
+
94
+ - 组件库统一导出
95
+ - `DemoKitProvider`
96
+ - `Demo1Shell`
97
+ - 主题、设置和 Tooltip 相关 Provider
98
+ - `theme-toggle`
99
+ - `chart-palette`
100
+ - `APP_SETTINGS`、配置类型和 `cn` 等辅助导出
101
+
102
+ ## 本地开发
103
+
104
+ 以下命令需要在仓库根目录执行:
105
+
106
+ ```bash
107
+ npm install --legacy-peer-deps
108
+ npm run build:kit
109
+ ```
110
+
111
+ ## 发布前检查
112
+
113
+ ```bash
114
+ npm run build:kit
115
+ npm run pack:kit
116
+ ```
117
+
118
+ `npm run pack:kit` 会在本地生成可发布 tarball,用于验证包产物是否完整。
119
+
120
+ ## 使用建议
121
+
122
+ - 优先通过 `@demokit-ui/demokit` 的统一导出引用组件
123
+ - 在应用入口使用 `DemoKitProvider` 初始化主题和全局上下文
124
+ - 通用能力优先沉淀回组件包,应用代码专注页面组装和业务逻辑
125
+
126
+ ## License
127
+
128
+ MIT
@@ -0,0 +1 @@
1
+ export declare function BackgroundDecor(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,38 @@
1
+ import { jsxs as e, jsx as a } from "react/jsx-runtime";
2
+ import { AuroraBackground as i } from "../kit/components/decorative/aurora-background/aurora-background.js";
3
+ function t() {
4
+ return /* @__PURE__ */ e(
5
+ "div",
6
+ {
7
+ "aria-hidden": !0,
8
+ className: "pointer-events-none fixed inset-0 -z-10 overflow-hidden",
9
+ children: [
10
+ /* @__PURE__ */ a(
11
+ "div",
12
+ {
13
+ className: "absolute inset-0 transition-opacity duration-500",
14
+ style: { opacity: "var(--decor-opacity)" },
15
+ children: /* @__PURE__ */ a(i, {})
16
+ }
17
+ ),
18
+ /* @__PURE__ */ a(
19
+ "div",
20
+ {
21
+ className: "absolute inset-0 transition-opacity duration-500",
22
+ style: { opacity: "var(--decor-navy-opacity)" },
23
+ children: /* @__PURE__ */ a(
24
+ "div",
25
+ {
26
+ className: "absolute inset-0",
27
+ style: { background: "var(--background)" }
28
+ }
29
+ )
30
+ }
31
+ )
32
+ ]
33
+ }
34
+ );
35
+ }
36
+ export {
37
+ t as BackgroundDecor
38
+ };
@@ -0,0 +1,12 @@
1
+ import { ReactNode } from 'react';
2
+ import { VariantProps } from 'class-variance-authority';
3
+ declare const containerVariants: (props?: ({
4
+ width?: "fixed" | "fluid" | null | undefined;
5
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
+ export interface ContainerProps extends VariantProps<typeof containerVariants> {
7
+ children?: ReactNode;
8
+ width?: 'fixed' | 'fluid';
9
+ className?: string;
10
+ }
11
+ export declare function Container({ children, width, className }: ContainerProps): import("react/jsx-runtime").JSX.Element;
12
+ export {};
@@ -0,0 +1,29 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { cva as e } from "class-variance-authority";
3
+ import { cn as s } from "../lib/utils.js";
4
+ import { useSettings as f } from "../providers/settings-provider.js";
5
+ const m = e("mx-auto w-full min-w-0 px-[var(--dk-container-x)]", {
6
+ variants: {
7
+ width: {
8
+ fixed: "max-w-[min(100%,1320px)]",
9
+ fluid: ""
10
+ }
11
+ },
12
+ defaultVariants: {
13
+ width: "fixed"
14
+ }
15
+ });
16
+ function u({ children: t, width: i, className: n = "" }) {
17
+ const { settings: a } = f(), o = i ?? a.container ?? "fixed";
18
+ return /* @__PURE__ */ r(
19
+ "div",
20
+ {
21
+ "data-slot": "container",
22
+ className: s(m({ width: o }), n),
23
+ children: t
24
+ }
25
+ );
26
+ }
27
+ export {
28
+ u as Container
29
+ };
@@ -0,0 +1,43 @@
1
+ import { ElementType, ReactNode } from 'react';
2
+ import { MenuConfig } from '../config/types';
3
+ export interface Demo1ShellBrand {
4
+ title: string;
5
+ shortTitle?: string;
6
+ href?: string;
7
+ logoIcon?: ElementType;
8
+ logoSrc?: string;
9
+ logoAlt?: string;
10
+ }
11
+ export interface Demo1ShellSearchItem {
12
+ title: string;
13
+ hint?: string;
14
+ path?: string;
15
+ }
16
+ export interface Demo1ShellNotification {
17
+ id: string;
18
+ title: string;
19
+ desc: string;
20
+ time: string;
21
+ unread?: boolean;
22
+ type?: 'info' | 'warning' | 'success';
23
+ }
24
+ export interface Demo1ShellUser {
25
+ name: string;
26
+ description?: string;
27
+ initials?: string;
28
+ permissionsPath?: string;
29
+ }
30
+ export interface Demo1ShellProps {
31
+ menu: MenuConfig;
32
+ brand?: Demo1ShellBrand;
33
+ titleFallback?: string;
34
+ footer?: ReactNode;
35
+ disabledBadgeLabel?: ReactNode;
36
+ searchPlaceholder?: string;
37
+ searchQuickNav?: Demo1ShellSearchItem[];
38
+ searchRecent?: Demo1ShellSearchItem[];
39
+ notifications?: Demo1ShellNotification[];
40
+ user?: Demo1ShellUser;
41
+ children?: ReactNode;
42
+ }
43
+ export declare function Demo1Shell({ menu, brand, titleFallback, footer, disabledBadgeLabel, searchPlaceholder, searchQuickNav, searchRecent, notifications, user, children, }: Demo1ShellProps): import("react/jsx-runtime").JSX.Element;