@fluxdown/solid 0.0.0-stage → 0.2.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 (106) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/LICENSE +21 -0
  3. package/README.md +2 -2
  4. package/dist/cjs/assets/raw-Dob3BCyv.css +56 -0
  5. package/dist/cjs/chunks/raw-DlzW8_Im.cjs +609 -0
  6. package/dist/cjs/components/block-reconciler/index.d.cts +2 -0
  7. package/dist/cjs/components/block-reconciler/type.d.cts +22 -0
  8. package/dist/cjs/components/block-reconciler/utils.d.cts +2 -0
  9. package/dist/cjs/components/index.d.cts +2 -0
  10. package/dist/cjs/components/root-reconciler/index.d.cts +6 -0
  11. package/dist/cjs/consts/config.d.cts +2 -0
  12. package/dist/cjs/consts/defaults.d.cts +2 -0
  13. package/dist/cjs/consts/index.d.cts +4 -0
  14. package/dist/cjs/consts/smooth.d.cts +3 -0
  15. package/dist/cjs/consts/styles.d.cts +1 -0
  16. package/dist/cjs/context/index.d.cts +1 -0
  17. package/dist/cjs/context/render/index.d.cts +6 -0
  18. package/dist/cjs/env.d.cts +1 -0
  19. package/dist/cjs/full.browser.cjs +2 -0
  20. package/dist/cjs/full.cjs +13 -0
  21. package/dist/cjs/hooks/index.d.cts +1 -0
  22. package/dist/cjs/hooks/plugins.d.cts +6 -0
  23. package/dist/cjs/lite.browser.cjs +2 -0
  24. package/dist/cjs/lite.cjs +13 -0
  25. package/dist/cjs/modules/index.d.cts +1 -0
  26. package/dist/cjs/modules/solid-renderer/index.d.cts +9 -0
  27. package/dist/cjs/modules/solid-renderer/type.d.cts +4 -0
  28. package/dist/cjs/packs/full/index.d.cts +5 -0
  29. package/dist/cjs/packs/full/type.d.cts +3 -0
  30. package/dist/cjs/packs/lite/index.d.cts +5 -0
  31. package/dist/cjs/packs/lite/type.d.cts +3 -0
  32. package/dist/cjs/packs/raw/index.d.cts +5 -0
  33. package/dist/cjs/packs/raw/type.d.cts +77 -0
  34. package/dist/cjs/packs/raw/utils.d.cts +2 -0
  35. package/dist/cjs/packs/utils/config.d.cts +13 -0
  36. package/dist/cjs/packs/utils/effect.d.cts +4 -0
  37. package/dist/cjs/packs/utils/index.d.cts +3 -0
  38. package/dist/cjs/packs/utils/patches.d.cts +2 -0
  39. package/dist/cjs/raw.browser.cjs +2 -0
  40. package/dist/cjs/raw.cjs +3 -0
  41. package/dist/cjs/server/full.cjs +13 -0
  42. package/dist/cjs/server/lite.cjs +13 -0
  43. package/dist/cjs/server/raw.cjs +593 -0
  44. package/dist/cjs/styles.css +2 -0
  45. package/dist/cjs/theme/consts.d.cts +4 -0
  46. package/dist/cjs/theme/hooks.d.cts +2 -0
  47. package/dist/cjs/theme/index.d.cts +1 -0
  48. package/dist/cjs/theme/presets/base.d.cts +2 -0
  49. package/dist/cjs/theme/presets/dark.d.cts +2 -0
  50. package/dist/cjs/theme/presets/index.d.cts +4 -0
  51. package/dist/cjs/theme/presets/light.d.cts +2 -0
  52. package/dist/cjs/theme/utils.d.cts +4 -0
  53. package/dist/cjs/types/index.d.cts +2 -0
  54. package/dist/cjs/types/theme.d.cts +138 -0
  55. package/dist/esm/assets/raw-Dob3BCyv.css +56 -0
  56. package/dist/esm/chunks/raw-ULd4Y10B.js +598 -0
  57. package/dist/esm/components/block-reconciler/index.d.ts +2 -0
  58. package/dist/esm/components/block-reconciler/type.d.ts +22 -0
  59. package/dist/esm/components/block-reconciler/utils.d.ts +2 -0
  60. package/dist/esm/components/index.d.ts +2 -0
  61. package/dist/esm/components/root-reconciler/index.d.ts +6 -0
  62. package/dist/esm/consts/config.d.ts +2 -0
  63. package/dist/esm/consts/defaults.d.ts +2 -0
  64. package/dist/esm/consts/index.d.ts +4 -0
  65. package/dist/esm/consts/smooth.d.ts +3 -0
  66. package/dist/esm/consts/styles.d.ts +1 -0
  67. package/dist/esm/context/index.d.ts +1 -0
  68. package/dist/esm/context/render/index.d.ts +6 -0
  69. package/dist/esm/env.d.ts +1 -0
  70. package/dist/esm/full.browser.js +2 -0
  71. package/dist/esm/full.js +12 -0
  72. package/dist/esm/hooks/index.d.ts +1 -0
  73. package/dist/esm/hooks/plugins.d.ts +6 -0
  74. package/dist/esm/lite.browser.js +2 -0
  75. package/dist/esm/lite.js +12 -0
  76. package/dist/esm/modules/index.d.ts +1 -0
  77. package/dist/esm/modules/solid-renderer/index.d.ts +9 -0
  78. package/dist/esm/modules/solid-renderer/type.d.ts +4 -0
  79. package/dist/esm/packs/full/index.d.ts +5 -0
  80. package/dist/esm/packs/full/type.d.ts +3 -0
  81. package/dist/esm/packs/lite/index.d.ts +5 -0
  82. package/dist/esm/packs/lite/type.d.ts +3 -0
  83. package/dist/esm/packs/raw/index.d.ts +5 -0
  84. package/dist/esm/packs/raw/type.d.ts +77 -0
  85. package/dist/esm/packs/raw/utils.d.ts +2 -0
  86. package/dist/esm/packs/utils/config.d.ts +13 -0
  87. package/dist/esm/packs/utils/effect.d.ts +4 -0
  88. package/dist/esm/packs/utils/index.d.ts +3 -0
  89. package/dist/esm/packs/utils/patches.d.ts +2 -0
  90. package/dist/esm/raw.browser.js +2 -0
  91. package/dist/esm/raw.js +2 -0
  92. package/dist/esm/server/full.js +12 -0
  93. package/dist/esm/server/lite.js +12 -0
  94. package/dist/esm/server/raw.js +591 -0
  95. package/dist/esm/styles.css +2 -0
  96. package/dist/esm/theme/consts.d.ts +4 -0
  97. package/dist/esm/theme/hooks.d.ts +2 -0
  98. package/dist/esm/theme/index.d.ts +1 -0
  99. package/dist/esm/theme/presets/base.d.ts +2 -0
  100. package/dist/esm/theme/presets/dark.d.ts +2 -0
  101. package/dist/esm/theme/presets/index.d.ts +4 -0
  102. package/dist/esm/theme/presets/light.d.ts +2 -0
  103. package/dist/esm/theme/utils.d.ts +4 -0
  104. package/dist/esm/types/index.d.ts +2 -0
  105. package/dist/esm/types/theme.d.ts +138 -0
  106. package/package.json +121 -3
@@ -0,0 +1,138 @@
1
+ export interface ThemeTokens {
2
+ /**
3
+ * Foreground, background, border, and interaction colors.
4
+ */
5
+ colors: {
6
+ fg: string;
7
+ fgMuted: string;
8
+ bg: string;
9
+ border: string;
10
+ accent: string;
11
+ accentHover: string;
12
+ surfaceMuted: string;
13
+ surfaceSubtle: string;
14
+ borderEmphasis: string;
15
+ };
16
+ /**
17
+ * Shared font families, sizes, line heights, and weights.
18
+ */
19
+ typography: {
20
+ fontSans: string;
21
+ fontMono: string;
22
+ fontSmoothing: string;
23
+ fontSize: {
24
+ xs: string;
25
+ sm: string;
26
+ md: string;
27
+ };
28
+ lineHeight: {
29
+ sm: number | string;
30
+ md: number | string;
31
+ lg: number | string;
32
+ };
33
+ fontWeight: {
34
+ normal: number | string;
35
+ medium: number | string;
36
+ bold: number | string;
37
+ };
38
+ };
39
+ /**
40
+ * Typography and spacing for each heading level.
41
+ */
42
+ heading: Record<'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6', HeadingThemeTokens>;
43
+ /**
44
+ * Vertical spacing around paragraphs.
45
+ */
46
+ paragraph: {
47
+ marginTop: string;
48
+ marginBottom: string;
49
+ };
50
+ /**
51
+ * Font size and line height for fenced code blocks.
52
+ */
53
+ code: {
54
+ fontSize: string;
55
+ lineHeight: number | string;
56
+ };
57
+ /**
58
+ * Presentation of inline code outside preformatted blocks.
59
+ */
60
+ inlineCode: {
61
+ paddingBlock: string;
62
+ paddingInline: string;
63
+ border: string;
64
+ borderRadius: string;
65
+ background: string;
66
+ fontFamily: string;
67
+ fontSize: string;
68
+ whiteSpace: string;
69
+ };
70
+ /**
71
+ * Dimensions, spacing, and borders of thematic breaks.
72
+ */
73
+ divider: {
74
+ height: string;
75
+ marginBlock: string;
76
+ marginInline: string;
77
+ border: string;
78
+ borderBlockEnd: string;
79
+ background: string;
80
+ };
81
+ /**
82
+ * Spacing, border, and typography of the footnotes section.
83
+ */
84
+ footnotes: {
85
+ marginTop: string;
86
+ paddingTop: string;
87
+ borderTop: string;
88
+ color: string;
89
+ fontSize: string;
90
+ };
91
+ /**
92
+ * Colors for syntax highlighting token categories.
93
+ */
94
+ syntax: {
95
+ comment: string;
96
+ keyword: string;
97
+ string: string;
98
+ number: string;
99
+ function: string;
100
+ variable: string;
101
+ punctuation: string;
102
+ inserted: string;
103
+ deleted: string;
104
+ };
105
+ /**
106
+ * Border radii shared by slot containers and controls.
107
+ */
108
+ radius: {
109
+ sm: string;
110
+ md: string;
111
+ lg: string;
112
+ };
113
+ /**
114
+ * Spacing scale for margins, padding, and gaps.
115
+ */
116
+ spacing: {
117
+ xs: string;
118
+ sm: string;
119
+ md: string;
120
+ lg: string;
121
+ xl: string;
122
+ };
123
+ }
124
+ export interface HeadingThemeTokens {
125
+ fontSize: string;
126
+ fontWeight: number;
127
+ lineHeight: number | string;
128
+ marginTop: string;
129
+ marginBottom: string;
130
+ }
131
+ export interface ThemeConfig {
132
+ tokens: ThemeTokens;
133
+ }
134
+ export type PartialThemeConfig<T = ThemeConfig> = {
135
+ [K in keyof T]?: T[K] extends object ? PartialThemeConfig<T[K]> : T[K];
136
+ };
137
+ export type PresetKeys = 'light' | 'dark';
138
+ export type Theme = PresetKeys | PartialThemeConfig | [PresetKeys, PartialThemeConfig];
@@ -0,0 +1,56 @@
1
+ ._root_f61oc_1 {
2
+ display: flow-root;
3
+ min-width: 0;
4
+ }
5
+ ._root_f61oc_1 > :first-child {
6
+ margin-top: 0;
7
+ }
8
+ ._root_f61oc_1 > :last-child {
9
+ margin-bottom: 0;
10
+ }
11
+ ._root_f61oc_1 {
12
+ color: var(--fluxdown-colors-fg);
13
+ background: var(--fluxdown-colors-bg);
14
+ font-family: var(--fluxdown-typography-font-sans);
15
+ font-size: var(--fluxdown-typography-font-size-md);
16
+ font-weight: var(--fluxdown-typography-font-weight-normal);
17
+ line-height: var(--fluxdown-typography-line-height-md);
18
+ overflow-wrap: anywhere;
19
+ -webkit-font-smoothing: var(--fluxdown-typography-font-smoothing);
20
+ }
21
+ ._root_f61oc_1, ._root_f61oc_1 * {
22
+ box-sizing: border-box;
23
+ }
24
+ ._root_f61oc_1 :not(pre) > code {
25
+ padding-block: var(--fluxdown-inline-code-padding-block);
26
+ padding-inline: var(--fluxdown-inline-code-padding-inline);
27
+ border: var(--fluxdown-inline-code-border);
28
+ border-radius: var(--fluxdown-inline-code-border-radius);
29
+ background: var(--fluxdown-inline-code-background);
30
+ font-family: var(--fluxdown-inline-code-font-family);
31
+ font-size: var(--fluxdown-inline-code-font-size);
32
+ white-space: var(--fluxdown-inline-code-white-space);
33
+ }
34
+ ._root_f61oc_1 hr {
35
+ height: var(--fluxdown-divider-height);
36
+ margin-block: var(--fluxdown-divider-margin-block);
37
+ margin-inline: var(--fluxdown-divider-margin-inline);
38
+ border: var(--fluxdown-divider-border);
39
+ border-block-end: var(--fluxdown-divider-border-block-end);
40
+ background: var(--fluxdown-divider-background);
41
+ }
42
+ ._root_f61oc_1 del {
43
+ color: var(--fluxdown-colors-fg-muted);
44
+ text-decoration-thickness: 1px;
45
+ }
46
+ ._root_f61oc_1 sup {
47
+ font-size: 0.75em;
48
+ line-height: 0;
49
+ }
50
+ ._root_f61oc_1 .footnotes {
51
+ margin-top: var(--fluxdown-footnotes-margin-top);
52
+ padding-top: var(--fluxdown-footnotes-padding-top);
53
+ border-top: var(--fluxdown-footnotes-border-top);
54
+ color: var(--fluxdown-footnotes-color);
55
+ font-size: var(--fluxdown-footnotes-font-size);
56
+ }