@quilltap/theme-storybook 1.0.98 → 1.0.100

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,112 +1,9 @@
1
- import {
2
- Avatars,
3
- Badges,
4
- Buttons,
5
- Cards,
6
- Chat,
7
- ColorGroup,
8
- ColorPalette,
9
- ColorSwatch,
10
- Dialogs,
11
- EmptyState,
12
- FilePreview,
13
- Icons,
14
- Inputs,
15
- Loading,
16
- Participant,
17
- Spacing,
18
- Surfaces,
19
- Tabs,
20
- Terminal,
21
- ThemeComparison,
22
- Typography,
23
- Workspace
24
- } from "./chunk-KJAOSO6L.mjs";
25
1
  import "./chunk-WUKYLWAZ.mjs";
26
2
 
27
- // src/preview.tsx
28
- import { jsx } from "react/jsx-runtime";
29
- var ThemeDecorator = (Story, context) => {
30
- const globals = context.globals;
31
- const theme = globals.theme || "default";
32
- const colorMode = globals.colorMode || "light";
33
- return /* @__PURE__ */ jsx(
34
- "div",
35
- {
36
- "data-theme": theme === "default" ? void 0 : theme,
37
- className: colorMode === "dark" ? "dark" : "",
38
- style: {
39
- padding: "2rem",
40
- minHeight: "100vh",
41
- backgroundColor: "var(--color-background)",
42
- color: "var(--color-foreground)",
43
- transition: "background-color 0.3s, color 0.3s"
44
- },
45
- children: /* @__PURE__ */ jsx(Story, {})
46
- }
47
- );
48
- };
49
- var defaultPreview = {
50
- globalTypes: {
51
- theme: {
52
- description: "Theme for components",
53
- defaultValue: "default",
54
- toolbar: {
55
- title: "Theme",
56
- icon: "paintbrush",
57
- items: [
58
- { value: "default", title: "Quilltap Default" }
59
- // Theme plugins should add their theme here
60
- ],
61
- dynamicTitle: true
62
- }
63
- },
64
- colorMode: {
65
- description: "Color mode",
66
- defaultValue: "light",
67
- toolbar: {
68
- title: "Color Mode",
69
- icon: "sun",
70
- items: [
71
- { value: "light", title: "Light" },
72
- { value: "dark", title: "Dark" }
73
- ],
74
- dynamicTitle: true
75
- }
76
- }
77
- },
78
- decorators: [ThemeDecorator],
79
- parameters: {
80
- backgrounds: {
81
- disable: true
82
- // We handle backgrounds via theme
83
- },
84
- layout: "padded"
85
- }
86
- };
3
+ // src/index.ts
4
+ import { ThemeDecorator, defaultPreview } from "../src/preview";
5
+ export * from "../src/stories";
87
6
  export {
88
- Avatars,
89
- Badges,
90
- Buttons,
91
- Cards,
92
- Chat,
93
- ColorGroup,
94
- ColorPalette,
95
- ColorSwatch,
96
- Dialogs,
97
- EmptyState,
98
- FilePreview,
99
- Icons,
100
- Inputs,
101
- Loading,
102
- Participant,
103
- Spacing,
104
- Surfaces,
105
- Tabs,
106
- Terminal,
107
- ThemeComparison,
108
7
  ThemeDecorator,
109
- Typography,
110
- Workspace,
111
8
  defaultPreview
112
9
  };