@sigx/daisyui 0.1.6

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 (146) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +235 -0
  3. package/dist/buttons/Button.d.ts +18 -0
  4. package/dist/buttons/Button.d.ts.map +1 -0
  5. package/dist/buttons/ButtonGroup.d.ts +18 -0
  6. package/dist/buttons/ButtonGroup.d.ts.map +1 -0
  7. package/dist/buttons/index.d.ts +5 -0
  8. package/dist/buttons/index.d.ts.map +1 -0
  9. package/dist/buttons/index.js +2 -0
  10. package/dist/buttons-Dtj_5Uc3.js +61 -0
  11. package/dist/buttons-Dtj_5Uc3.js.map +1 -0
  12. package/dist/data/Table.d.ts +92 -0
  13. package/dist/data/Table.d.ts.map +1 -0
  14. package/dist/data/index.d.ts +3 -0
  15. package/dist/data/index.d.ts.map +1 -0
  16. package/dist/data/index.js +2 -0
  17. package/dist/data-wxNpnX83.js +153 -0
  18. package/dist/data-wxNpnX83.js.map +1 -0
  19. package/dist/feedback/Accordion.d.ts +87 -0
  20. package/dist/feedback/Accordion.d.ts.map +1 -0
  21. package/dist/feedback/Badge.d.ts +73 -0
  22. package/dist/feedback/Badge.d.ts.map +1 -0
  23. package/dist/feedback/Countdown.d.ts +33 -0
  24. package/dist/feedback/Countdown.d.ts.map +1 -0
  25. package/dist/feedback/Diff.d.ts +43 -0
  26. package/dist/feedback/Diff.d.ts.map +1 -0
  27. package/dist/feedback/FileInput.d.ts +28 -0
  28. package/dist/feedback/FileInput.d.ts.map +1 -0
  29. package/dist/feedback/Indicator.d.ts +47 -0
  30. package/dist/feedback/Indicator.d.ts.map +1 -0
  31. package/dist/feedback/Kbd.d.ts +31 -0
  32. package/dist/feedback/Kbd.d.ts.map +1 -0
  33. package/dist/feedback/Modal.d.ts +51 -0
  34. package/dist/feedback/Modal.d.ts.map +1 -0
  35. package/dist/feedback/RadialProgress.d.ts +35 -0
  36. package/dist/feedback/RadialProgress.d.ts.map +1 -0
  37. package/dist/feedback/Rating.d.ts +34 -0
  38. package/dist/feedback/Rating.d.ts.map +1 -0
  39. package/dist/feedback/Skeleton.d.ts +24 -0
  40. package/dist/feedback/Skeleton.d.ts.map +1 -0
  41. package/dist/feedback/Steps.d.ts +60 -0
  42. package/dist/feedback/Steps.d.ts.map +1 -0
  43. package/dist/feedback/Swap.d.ts +53 -0
  44. package/dist/feedback/Swap.d.ts.map +1 -0
  45. package/dist/feedback/Timeline.d.ts +76 -0
  46. package/dist/feedback/Timeline.d.ts.map +1 -0
  47. package/dist/feedback/Toast.d.ts +30 -0
  48. package/dist/feedback/Toast.d.ts.map +1 -0
  49. package/dist/feedback/index.d.ts +31 -0
  50. package/dist/feedback/index.d.ts.map +1 -0
  51. package/dist/feedback/index.js +2 -0
  52. package/dist/feedback-DFutN-Kz.js +817 -0
  53. package/dist/feedback-DFutN-Kz.js.map +1 -0
  54. package/dist/forms/Checkbox.d.ts +15 -0
  55. package/dist/forms/Checkbox.d.ts.map +1 -0
  56. package/dist/forms/FormField.d.ts +16 -0
  57. package/dist/forms/FormField.d.ts.map +1 -0
  58. package/dist/forms/Input.d.ts +19 -0
  59. package/dist/forms/Input.d.ts.map +1 -0
  60. package/dist/forms/Radio.d.ts +78 -0
  61. package/dist/forms/Radio.d.ts.map +1 -0
  62. package/dist/forms/Range.d.ts +15 -0
  63. package/dist/forms/Range.d.ts.map +1 -0
  64. package/dist/forms/Select.d.ts +28 -0
  65. package/dist/forms/Select.d.ts.map +1 -0
  66. package/dist/forms/Textarea.d.ts +17 -0
  67. package/dist/forms/Textarea.d.ts.map +1 -0
  68. package/dist/forms/Toggle.d.ts +15 -0
  69. package/dist/forms/Toggle.d.ts.map +1 -0
  70. package/dist/forms/index.d.ts +17 -0
  71. package/dist/forms/index.d.ts.map +1 -0
  72. package/dist/forms/index.js +2 -0
  73. package/dist/forms-CuvlRMro.js +362 -0
  74. package/dist/forms-CuvlRMro.js.map +1 -0
  75. package/dist/index.d.ts +38 -0
  76. package/dist/index.d.ts.map +1 -0
  77. package/dist/index.js +9 -0
  78. package/dist/layout/Card.d.ts +65 -0
  79. package/dist/layout/Card.d.ts.map +1 -0
  80. package/dist/layout/Carousel.d.ts +56 -0
  81. package/dist/layout/Carousel.d.ts.map +1 -0
  82. package/dist/layout/Chat.d.ts +54 -0
  83. package/dist/layout/Chat.d.ts.map +1 -0
  84. package/dist/layout/Container.d.ts +17 -0
  85. package/dist/layout/Container.d.ts.map +1 -0
  86. package/dist/layout/Divider.d.ts +22 -0
  87. package/dist/layout/Divider.d.ts.map +1 -0
  88. package/dist/layout/Flex.d.ts +59 -0
  89. package/dist/layout/Flex.d.ts.map +1 -0
  90. package/dist/layout/Footer.d.ts +25 -0
  91. package/dist/layout/Footer.d.ts.map +1 -0
  92. package/dist/layout/Hero.d.ts +52 -0
  93. package/dist/layout/Hero.d.ts.map +1 -0
  94. package/dist/layout/Join.d.ts +40 -0
  95. package/dist/layout/Join.d.ts.map +1 -0
  96. package/dist/layout/Link.d.ts +20 -0
  97. package/dist/layout/Link.d.ts.map +1 -0
  98. package/dist/layout/Mask.d.ts +26 -0
  99. package/dist/layout/Mask.d.ts.map +1 -0
  100. package/dist/layout/Mockup.d.ts +95 -0
  101. package/dist/layout/Mockup.d.ts.map +1 -0
  102. package/dist/layout/Stack.d.ts +45 -0
  103. package/dist/layout/Stack.d.ts.map +1 -0
  104. package/dist/layout/index.d.ts +46 -0
  105. package/dist/layout/index.d.ts.map +1 -0
  106. package/dist/layout/index.js +2 -0
  107. package/dist/layout-0aaJX4B2.js +554 -0
  108. package/dist/layout-0aaJX4B2.js.map +1 -0
  109. package/dist/navigation/Breadcrumbs.d.ts +22 -0
  110. package/dist/navigation/Breadcrumbs.d.ts.map +1 -0
  111. package/dist/navigation/Drawer.d.ts +25 -0
  112. package/dist/navigation/Drawer.d.ts.map +1 -0
  113. package/dist/navigation/Dropdown.d.ts +40 -0
  114. package/dist/navigation/Dropdown.d.ts.map +1 -0
  115. package/dist/navigation/MenuComponent.d.ts +54 -0
  116. package/dist/navigation/MenuComponent.d.ts.map +1 -0
  117. package/dist/navigation/Navbar.d.ts +23 -0
  118. package/dist/navigation/Navbar.d.ts.map +1 -0
  119. package/dist/navigation/Pagination.d.ts +12 -0
  120. package/dist/navigation/Pagination.d.ts.map +1 -0
  121. package/dist/navigation/Tabs.d.ts +35 -0
  122. package/dist/navigation/Tabs.d.ts.map +1 -0
  123. package/dist/navigation/index.d.ts +15 -0
  124. package/dist/navigation/index.d.ts.map +1 -0
  125. package/dist/navigation/index.js +2 -0
  126. package/dist/navigation-4cwyfLvr.js +285 -0
  127. package/dist/navigation-4cwyfLvr.js.map +1 -0
  128. package/dist/shared/styles.d.ts +79 -0
  129. package/dist/shared/styles.d.ts.map +1 -0
  130. package/dist/styles-DFkMxi90.js +126 -0
  131. package/dist/styles-DFkMxi90.js.map +1 -0
  132. package/dist/theme/ThemeProvider.d.ts +73 -0
  133. package/dist/theme/ThemeProvider.d.ts.map +1 -0
  134. package/dist/theme/index.d.ts +3 -0
  135. package/dist/theme/index.d.ts.map +1 -0
  136. package/dist/theme/index.js +2 -0
  137. package/dist/theme-D9CUMvuT.js +118 -0
  138. package/dist/theme-D9CUMvuT.js.map +1 -0
  139. package/dist/typography/Text.d.ts +47 -0
  140. package/dist/typography/Text.d.ts.map +1 -0
  141. package/dist/typography/index.d.ts +3 -0
  142. package/dist/typography/index.d.ts.map +1 -0
  143. package/dist/typography/index.js +2 -0
  144. package/dist/typography-CU1RMGKA.js +112 -0
  145. package/dist/typography-CU1RMGKA.js.map +1 -0
  146. package/package.json +88 -0
@@ -0,0 +1,554 @@
1
+ import { a as resolveRadius, i as resolveBackground, n as directionClasses, o as resolveSize, r as justifyClasses, s as resolveSpacing, t as alignClasses } from "./styles-DFkMxi90.js";
2
+ import { component, compound } from "sigx";
3
+ import { jsx, jsxs } from "sigx/jsx-runtime";
4
+ const Hero = compound(component(({ props, slots }) => {
5
+ const getClasses = () => {
6
+ const classes = ["hero"];
7
+ if (props.minHeight) classes.push(`min-h-[${props.minHeight}]`);
8
+ else classes.push("min-h-96");
9
+ if (props.class) classes.push(props.class);
10
+ return classes.join(" ");
11
+ };
12
+ const getStyle = () => {
13
+ if (props.bgImage) return { backgroundImage: `url(${props.bgImage})` };
14
+ return {};
15
+ };
16
+ return () => /* @__PURE__ */ jsxs("div", {
17
+ class: getClasses(),
18
+ style: getStyle(),
19
+ children: [props.overlay && /* @__PURE__ */ jsx("div", {
20
+ class: "hero-overlay bg-opacity-60",
21
+ children: slots.overlay?.()
22
+ }), slots.default?.()]
23
+ });
24
+ }), { Content: component(({ props, slots }) => {
25
+ const getClasses = () => {
26
+ const classes = ["hero-content", "text-center"];
27
+ if (props.class) classes.push(props.class);
28
+ return classes.join(" ");
29
+ };
30
+ return () => /* @__PURE__ */ jsx("div", {
31
+ class: getClasses(),
32
+ children: /* @__PURE__ */ jsx("div", {
33
+ class: "max-w-md",
34
+ children: slots.default?.()
35
+ })
36
+ });
37
+ }) });
38
+ const Join = compound(component(({ props, slots }) => {
39
+ const getClasses = () => {
40
+ const classes = ["join"];
41
+ if (props.vertical) classes.push("join-vertical");
42
+ if (props.class) classes.push(props.class);
43
+ return classes.join(" ");
44
+ };
45
+ return () => /* @__PURE__ */ jsx("div", {
46
+ class: getClasses(),
47
+ children: slots.default?.()
48
+ });
49
+ }), { Item: component(({ props, slots }) => {
50
+ const getClasses = () => {
51
+ const classes = ["join-item"];
52
+ if (props.class) classes.push(props.class);
53
+ return classes.join(" ");
54
+ };
55
+ return () => /* @__PURE__ */ jsx("div", {
56
+ class: getClasses(),
57
+ children: slots.default?.()
58
+ });
59
+ }) });
60
+ var chatBubbleColorClasses = {
61
+ primary: "chat-bubble-primary",
62
+ secondary: "chat-bubble-secondary",
63
+ accent: "chat-bubble-accent",
64
+ info: "chat-bubble-info",
65
+ success: "chat-bubble-success",
66
+ warning: "chat-bubble-warning",
67
+ error: "chat-bubble-error"
68
+ };
69
+ const Chat = compound(component(({ props, slots }) => {
70
+ const getClasses = () => {
71
+ const classes = ["chat"];
72
+ if (props.start) classes.push("chat-start");
73
+ else if (props.end) classes.push("chat-end");
74
+ else classes.push("chat-start");
75
+ if (props.class) classes.push(props.class);
76
+ return classes.join(" ");
77
+ };
78
+ return () => /* @__PURE__ */ jsx("div", {
79
+ class: getClasses(),
80
+ children: slots.default?.()
81
+ });
82
+ }), {
83
+ Image: component(({ props }) => {
84
+ const getClasses = () => {
85
+ const classes = ["chat-image", "avatar"];
86
+ if (props.class) classes.push(props.class);
87
+ return classes.join(" ");
88
+ };
89
+ return () => /* @__PURE__ */ jsx("div", {
90
+ class: getClasses(),
91
+ children: /* @__PURE__ */ jsx("div", {
92
+ class: "w-10 rounded-full",
93
+ children: /* @__PURE__ */ jsx("img", {
94
+ src: props.src,
95
+ alt: props.alt ?? "Avatar"
96
+ })
97
+ })
98
+ });
99
+ }),
100
+ Header: component(({ props, slots }) => {
101
+ const getClasses = () => {
102
+ const classes = ["chat-header"];
103
+ if (props.class) classes.push(props.class);
104
+ return classes.join(" ");
105
+ };
106
+ return () => /* @__PURE__ */ jsxs("div", {
107
+ class: getClasses(),
108
+ children: [slots.default?.() ?? props.name, props.time && /* @__PURE__ */ jsx("time", {
109
+ class: "text-xs opacity-50 ml-1",
110
+ children: props.time
111
+ })]
112
+ });
113
+ }),
114
+ Bubble: component(({ props, slots }) => {
115
+ const getClasses = () => {
116
+ const classes = ["chat-bubble"];
117
+ if (props.color) classes.push(chatBubbleColorClasses[props.color]);
118
+ if (props.class) classes.push(props.class);
119
+ return classes.join(" ");
120
+ };
121
+ return () => /* @__PURE__ */ jsx("div", {
122
+ class: getClasses(),
123
+ children: slots.default?.()
124
+ });
125
+ }),
126
+ Footer: component(({ props, slots }) => {
127
+ const getClasses = () => {
128
+ const classes = ["chat-footer", "opacity-50"];
129
+ if (props.class) classes.push(props.class);
130
+ return classes.join(" ");
131
+ };
132
+ return () => /* @__PURE__ */ jsx("div", {
133
+ class: getClasses(),
134
+ children: slots.default?.()
135
+ });
136
+ })
137
+ });
138
+ const Carousel = compound(component(({ props, slots }) => {
139
+ const getClasses = () => {
140
+ const classes = ["carousel", "rounded-box"];
141
+ if (props.center) classes.push("carousel-center");
142
+ if (props.vertical) classes.push("carousel-vertical");
143
+ if (props.fullWidth) classes.push("w-full");
144
+ if (props.snap === "start") classes.push("carousel-start");
145
+ if (props.snap === "end") classes.push("carousel-end");
146
+ if (props.class) classes.push(props.class);
147
+ return classes.join(" ");
148
+ };
149
+ return () => /* @__PURE__ */ jsx("div", {
150
+ class: getClasses(),
151
+ children: slots.default?.() ?? props.items?.map((item) => /* @__PURE__ */ jsx("div", {
152
+ id: item.id,
153
+ class: "carousel-item",
154
+ children: item.content()
155
+ }))
156
+ });
157
+ }), { Item: component(({ props, slots, emit }) => {
158
+ const getClasses = () => {
159
+ const classes = ["carousel-item"];
160
+ if (props.fullWidth) classes.push("w-full");
161
+ if (props.class) classes.push(props.class);
162
+ return classes.join(" ");
163
+ };
164
+ return () => /* @__PURE__ */ jsx("div", {
165
+ id: props.id,
166
+ class: getClasses(),
167
+ onClick: (e) => emit("click", e),
168
+ children: slots.default?.()
169
+ });
170
+ }) });
171
+ var sizeClasses = {
172
+ sm: "max-w-sm",
173
+ md: "max-w-md",
174
+ lg: "max-w-lg",
175
+ xl: "max-w-xl",
176
+ "2xl": "max-w-2xl",
177
+ full: "max-w-full"
178
+ };
179
+ const Container = component(({ props, slots }) => {
180
+ const getClasses = () => {
181
+ const classes = [];
182
+ classes.push(sizeClasses[props.size ?? "2xl"]);
183
+ if (props.center !== false) classes.push("mx-auto");
184
+ if (props.padding !== false) classes.push("px-4 py-6");
185
+ if (props.class) classes.push(props.class);
186
+ return classes.join(" ");
187
+ };
188
+ return () => /* @__PURE__ */ jsx("div", {
189
+ class: getClasses(),
190
+ children: slots.default?.()
191
+ });
192
+ });
193
+ const Card = compound(component(({ props, slots }) => {
194
+ const getClasses = () => {
195
+ const classes = ["card"];
196
+ classes.push(props.bgColor ?? "bg-base-100");
197
+ if (props.shadow === true || props.shadow === void 0) classes.push("shadow-xl");
198
+ else if (props.shadow === "sm") classes.push("shadow-sm");
199
+ else if (props.shadow === "md") classes.push("shadow-md");
200
+ else if (props.shadow === "lg") classes.push("shadow-lg");
201
+ if (props.variant === "compact") classes.push("card-compact");
202
+ if (props.variant === "side") classes.push("card-side");
203
+ if (props.bordered) classes.push("card-bordered");
204
+ if (props.glass) classes.push("glass");
205
+ if (props.imageFull) classes.push("image-full");
206
+ if (props.class) classes.push(props.class);
207
+ return classes.join(" ");
208
+ };
209
+ return () => /* @__PURE__ */ jsx("div", {
210
+ class: getClasses(),
211
+ children: slots.default?.()
212
+ });
213
+ }), {
214
+ Body: component(({ props, slots }) => {
215
+ const getClasses = () => {
216
+ const classes = ["card-body"];
217
+ if (props.center) classes.push("items-center", "text-center");
218
+ if (props.class) classes.push(props.class);
219
+ return classes.join(" ");
220
+ };
221
+ return () => /* @__PURE__ */ jsx("div", {
222
+ class: getClasses(),
223
+ children: slots.default?.()
224
+ });
225
+ }),
226
+ Title: component(({ props, slots }) => {
227
+ const getClasses = () => {
228
+ const classes = ["card-title"];
229
+ if (props.class) classes.push(props.class);
230
+ return classes.join(" ");
231
+ };
232
+ return () => /* @__PURE__ */ jsx("h2", {
233
+ class: getClasses(),
234
+ children: slots.default?.()
235
+ });
236
+ }),
237
+ Actions: component(({ props, slots }) => {
238
+ const getClasses = () => {
239
+ const classes = ["card-actions"];
240
+ if (props.justify === "start") classes.push("justify-start");
241
+ else if (props.justify === "center") classes.push("justify-center");
242
+ else classes.push("justify-end");
243
+ if (props.class) classes.push(props.class);
244
+ return classes.join(" ");
245
+ };
246
+ return () => /* @__PURE__ */ jsx("div", {
247
+ class: getClasses(),
248
+ children: slots.default?.()
249
+ });
250
+ }),
251
+ Image: component(({ props }) => {
252
+ return () => /* @__PURE__ */ jsx("figure", {
253
+ class: props.class,
254
+ children: /* @__PURE__ */ jsx("img", {
255
+ src: props.src,
256
+ alt: props.alt ?? ""
257
+ })
258
+ });
259
+ })
260
+ });
261
+ const Stack = component(({ props, slots }) => {
262
+ const getClasses = () => {
263
+ const classes = ["stack"];
264
+ if (props.direction === "top") classes.push("stack-top");
265
+ else if (props.direction === "start") classes.push("stack-start");
266
+ else if (props.direction === "end") classes.push("stack-end");
267
+ if (props.class) classes.push(props.class);
268
+ return classes.join(" ");
269
+ };
270
+ return () => /* @__PURE__ */ jsx("div", {
271
+ class: getClasses(),
272
+ children: slots.default?.()
273
+ });
274
+ });
275
+ const Flex = component(({ props, slots }) => {
276
+ const getClassesAndStyles = () => {
277
+ const classes = [props.inline ? "inline-flex" : "flex"];
278
+ const styles = {};
279
+ classes.push(directionClasses[props.direction ?? "row"]);
280
+ classes.push(...resolveSpacing(props.gap, "gap"));
281
+ if (props.align) classes.push(alignClasses[props.align]);
282
+ if (props.justify) classes.push(justifyClasses[props.justify]);
283
+ if (props.wrap) classes.push("flex-wrap");
284
+ classes.push(...resolveSpacing(props.padding, "p"));
285
+ classes.push(...resolveSpacing(props.margin, "m"));
286
+ const sizeProps = [
287
+ {
288
+ value: props.width,
289
+ prefix: "w"
290
+ },
291
+ {
292
+ value: props.height,
293
+ prefix: "h"
294
+ },
295
+ {
296
+ value: props.minWidth,
297
+ prefix: "min-w"
298
+ },
299
+ {
300
+ value: props.minHeight,
301
+ prefix: "min-h"
302
+ },
303
+ {
304
+ value: props.maxWidth,
305
+ prefix: "max-w"
306
+ },
307
+ {
308
+ value: props.maxHeight,
309
+ prefix: "max-h"
310
+ }
311
+ ];
312
+ for (const { value, prefix } of sizeProps) {
313
+ const result = resolveSize(value, prefix);
314
+ if (result.class) classes.push(result.class);
315
+ if (result.style) styles[result.style.property] = result.style.value;
316
+ }
317
+ const radiusClass = resolveRadius(props.rounded);
318
+ if (radiusClass) classes.push(radiusClass);
319
+ classes.push(...resolveBackground(props.background));
320
+ if (props.grow) classes.push("flex-grow");
321
+ if (props.shrink) classes.push("flex-shrink");
322
+ if (props.class) classes.push(props.class);
323
+ return {
324
+ className: classes.join(" "),
325
+ style: Object.keys(styles).length > 0 ? styles : void 0
326
+ };
327
+ };
328
+ return () => {
329
+ const { className, style } = getClassesAndStyles();
330
+ return /* @__PURE__ */ jsx("div", {
331
+ class: className,
332
+ style,
333
+ children: slots.default?.()
334
+ });
335
+ };
336
+ });
337
+ const Row = component(({ props, slots }) => {
338
+ return () => /* @__PURE__ */ jsx(Flex, {
339
+ direction: props.reverse ? "row-reverse" : "row",
340
+ gap: props.gap,
341
+ align: props.align,
342
+ justify: props.justify,
343
+ wrap: props.wrap,
344
+ inline: props.inline,
345
+ padding: props.padding,
346
+ margin: props.margin,
347
+ width: props.width,
348
+ height: props.height,
349
+ minWidth: props.minWidth,
350
+ minHeight: props.minHeight,
351
+ maxWidth: props.maxWidth,
352
+ maxHeight: props.maxHeight,
353
+ rounded: props.rounded,
354
+ background: props.background,
355
+ grow: props.grow,
356
+ shrink: props.shrink,
357
+ class: props.class,
358
+ children: slots.default?.()
359
+ });
360
+ });
361
+ const Col = component(({ props, slots }) => {
362
+ return () => /* @__PURE__ */ jsx(Flex, {
363
+ direction: props.reverse ? "col-reverse" : "col",
364
+ gap: props.gap,
365
+ align: props.align,
366
+ justify: props.justify,
367
+ wrap: props.wrap,
368
+ inline: props.inline,
369
+ padding: props.padding,
370
+ margin: props.margin,
371
+ width: props.width,
372
+ height: props.height,
373
+ minWidth: props.minWidth,
374
+ minHeight: props.minHeight,
375
+ maxWidth: props.maxWidth,
376
+ maxHeight: props.maxHeight,
377
+ rounded: props.rounded,
378
+ background: props.background,
379
+ grow: props.grow,
380
+ shrink: props.shrink,
381
+ class: props.class,
382
+ children: slots.default?.()
383
+ });
384
+ });
385
+ const Divider = component(({ props, slots }) => {
386
+ const getClasses = () => {
387
+ const classes = ["divider"];
388
+ if (props.vertical) classes.push("divider-horizontal");
389
+ if (props.class) classes.push(props.class);
390
+ return classes.join(" ");
391
+ };
392
+ return () => /* @__PURE__ */ jsx("div", {
393
+ class: getClasses(),
394
+ children: slots.default?.()
395
+ });
396
+ });
397
+ const Footer = component(({ props, slots }) => {
398
+ const getClasses = () => {
399
+ const classes = [
400
+ "footer",
401
+ "footer-center",
402
+ "p-10",
403
+ "bg-base-200",
404
+ "text-base-content"
405
+ ];
406
+ if (props.center) classes.push("items-center");
407
+ if (props.class) classes.push(props.class);
408
+ return classes.join(" ");
409
+ };
410
+ return () => /* @__PURE__ */ jsx("footer", {
411
+ class: getClasses(),
412
+ children: slots.default?.()
413
+ });
414
+ });
415
+ var linkColorClasses = {
416
+ primary: "link-primary",
417
+ secondary: "link-secondary",
418
+ accent: "link-accent",
419
+ neutral: "link-neutral",
420
+ info: "link-info",
421
+ success: "link-success",
422
+ warning: "link-warning",
423
+ error: "link-error"
424
+ };
425
+ const Link = component(({ props, slots, emit }) => {
426
+ const getClasses = () => {
427
+ const classes = ["link"];
428
+ if (props.color) classes.push(linkColorClasses[props.color]);
429
+ if (props.hover) classes.push("link-hover");
430
+ if (props.class) classes.push(props.class);
431
+ return classes.join(" ");
432
+ };
433
+ return () => /* @__PURE__ */ jsx("a", {
434
+ href: props.href,
435
+ class: getClasses(),
436
+ onClick: (e) => emit("click", e),
437
+ children: slots.default?.()
438
+ });
439
+ });
440
+ const Artboard = component(({ props, slots }) => {
441
+ const getClasses = () => {
442
+ const classes = ["artboard", "artboard-demo"];
443
+ if (props.size) classes.push(`phone-${props.size}`);
444
+ else classes.push("phone-1");
445
+ if (props.horizontal) classes.push("horizontal");
446
+ if (props.class) classes.push(props.class);
447
+ return classes.join(" ");
448
+ };
449
+ return () => /* @__PURE__ */ jsx("div", {
450
+ class: getClasses(),
451
+ children: slots.default?.()
452
+ });
453
+ });
454
+ var MockupBrowser = component(({ props, slots }) => {
455
+ const getClasses = () => {
456
+ const classes = [
457
+ "mockup-browser",
458
+ "border",
459
+ "border-base-300"
460
+ ];
461
+ if (props.class) classes.push(props.class);
462
+ return classes.join(" ");
463
+ };
464
+ return () => /* @__PURE__ */ jsxs("div", {
465
+ class: getClasses(),
466
+ children: [/* @__PURE__ */ jsx("div", {
467
+ class: "mockup-browser-toolbar",
468
+ children: /* @__PURE__ */ jsx("div", {
469
+ class: "input border border-base-300",
470
+ children: props.url ?? "https://example.com"
471
+ })
472
+ }), slots.default?.()]
473
+ });
474
+ });
475
+ var MockupCode = component(({ props, slots }) => {
476
+ const getClasses = () => {
477
+ const classes = ["mockup-code"];
478
+ if (props.class) classes.push(props.class);
479
+ return classes.join(" ");
480
+ };
481
+ return () => /* @__PURE__ */ jsx("div", {
482
+ class: getClasses(),
483
+ children: slots.default?.() ?? props.lines?.map((line) => /* @__PURE__ */ jsx("pre", {
484
+ "data-prefix": line.prefix ?? "",
485
+ children: /* @__PURE__ */ jsx("code", {
486
+ class: line.color ? `text-${line.color}` : "",
487
+ children: line.text
488
+ })
489
+ }))
490
+ });
491
+ });
492
+ var MockupPhone = component(({ props, slots }) => {
493
+ const getClasses = () => {
494
+ const classes = ["mockup-phone"];
495
+ if (props.class) classes.push(props.class);
496
+ return classes.join(" ");
497
+ };
498
+ return () => /* @__PURE__ */ jsxs("div", {
499
+ class: getClasses(),
500
+ children: [/* @__PURE__ */ jsx("div", { class: "camera" }), /* @__PURE__ */ jsx("div", {
501
+ class: "display",
502
+ children: /* @__PURE__ */ jsx("div", {
503
+ class: "artboard artboard-demo phone-1",
504
+ children: slots.default?.()
505
+ })
506
+ })]
507
+ });
508
+ });
509
+ var MockupWindow = component(({ props, slots }) => {
510
+ const getClasses = () => {
511
+ const classes = [
512
+ "mockup-window",
513
+ "border",
514
+ "border-base-300"
515
+ ];
516
+ if (props.class) classes.push(props.class);
517
+ return classes.join(" ");
518
+ };
519
+ return () => /* @__PURE__ */ jsx("div", {
520
+ class: getClasses(),
521
+ children: /* @__PURE__ */ jsx("div", {
522
+ class: "flex justify-center px-4 py-16 bg-base-200",
523
+ children: slots.default?.()
524
+ })
525
+ });
526
+ });
527
+ const Mockup = {
528
+ Browser: MockupBrowser,
529
+ Code: MockupCode,
530
+ Phone: MockupPhone,
531
+ Window: MockupWindow
532
+ };
533
+ const Mask = component(({ props, slots }) => {
534
+ const getClasses = () => {
535
+ const classes = ["mask"];
536
+ if (props.shape) classes.push(`mask-${props.shape}`);
537
+ if (props.class) classes.push(props.class);
538
+ return classes.join(" ");
539
+ };
540
+ return () => /* @__PURE__ */ jsx("div", {
541
+ class: getClasses(),
542
+ children: slots.default?.()
543
+ });
544
+ });
545
+ const HeroContent = Hero.Content;
546
+ const JoinItem = Join.Item;
547
+ const ChatImage = Chat.Image;
548
+ const ChatHeader = Chat.Header;
549
+ const ChatBubble = Chat.Bubble;
550
+ const ChatFooter = Chat.Footer;
551
+ const CarouselItem = Carousel.Item;
552
+ export { Container as C, Hero as D, Join as E, Card as S, Chat as T, Divider as _, ChatImage as a, Row as b, Mask as c, MockupBrowser as d, MockupCode as f, Footer as g, Link as h, ChatHeader as i, Artboard as l, MockupWindow as m, ChatBubble as n, HeroContent as o, MockupPhone as p, ChatFooter as r, JoinItem as s, CarouselItem as t, Mockup as u, Col as v, Carousel as w, Stack as x, Flex as y };
553
+
554
+ //# sourceMappingURL=layout-0aaJX4B2.js.map