@molecule/app-timeline-solid 0.0.0-stage → 0.0.1-stage

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/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
package/README.md CHANGED
@@ -1,3 +1,11 @@
1
- # Temporary Holding Version
1
+ # @molecule/app-timeline-solid
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Solid chronological timeline with event rails and date markers
4
+
5
+ ```
6
+ npm install @molecule/app-timeline-solid
7
+ ```
8
+
9
+ Part of the [Molecule](https://www.molecule.dev) package fleet. This page carries the manifest summary; the full generated documentation ships with the package's first committed version.
10
+
11
+ License: Apache-2.0
@@ -0,0 +1,22 @@
1
+ import { type Component } from 'solid-js';
2
+ import type { TimelineProps } from './types.js';
3
+ /**
4
+ * Vertical chronological list of events. Each event renders with a
5
+ * marker + connector on the left (`<TimelineEvent>`). Optional date separators
6
+ * can be inserted by returning a node from `renderDateSeparator`.
7
+ *
8
+ * React keys each row by the event's `id` value, so a re-passed or re-ordered
9
+ * array keeps (and on a reorder, moves) the rendered rows. Solid's `For` keys
10
+ * by reference, so the rows are keyed through stable per-id records: the record
11
+ * for an id is created once and reused, while the row's content reads the
12
+ * CURRENT event for that id reactively (a changed title updates in place).
13
+ *
14
+ * This is the Solid counterpart of `@molecule/app-timeline-react`'s `Timeline`:
15
+ * the same props (React names), the same ClassMap tokens, and the same DOM for
16
+ * the same input.
17
+ *
18
+ * @param props - Component props (see {@link TimelineProps}).
19
+ * @returns The rendered timeline.
20
+ */
21
+ export declare const Timeline: Component<TimelineProps>;
22
+ //# sourceMappingURL=Timeline.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Timeline.d.ts","sourceRoot":"","sources":["../src/Timeline.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAa,MAAM,UAAU,CAAA;AAKpD,OAAO,KAAK,EAAqB,aAAa,EAAE,MAAM,YAAY,CAAA;AAElE;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,QAAQ,EAAE,SAAS,CAAC,aAAa,CAsD7C,CAAA"}
@@ -0,0 +1,57 @@
1
+ import { For, Show } from 'solid-js';
2
+ import { getClassMap } from '@molecule/app-ui';
3
+ import { TimelineEvent } from './TimelineEvent.jsx';
4
+ /**
5
+ * Vertical chronological list of events. Each event renders with a
6
+ * marker + connector on the left (`<TimelineEvent>`). Optional date separators
7
+ * can be inserted by returning a node from `renderDateSeparator`.
8
+ *
9
+ * React keys each row by the event's `id` value, so a re-passed or re-ordered
10
+ * array keeps (and on a reorder, moves) the rendered rows. Solid's `For` keys
11
+ * by reference, so the rows are keyed through stable per-id records: the record
12
+ * for an id is created once and reused, while the row's content reads the
13
+ * CURRENT event for that id reactively (a changed title updates in place).
14
+ *
15
+ * This is the Solid counterpart of `@molecule/app-timeline-react`'s `Timeline`:
16
+ * the same props (React names), the same ClassMap tokens, and the same DOM for
17
+ * the same input.
18
+ *
19
+ * @param props - Component props (see {@link TimelineProps}).
20
+ * @returns The rendered timeline.
21
+ */
22
+ export const Timeline = (props) => {
23
+ const cm = getClassMap();
24
+ const records = new Map();
25
+ const keyedRows = () => {
26
+ const seen = new Set();
27
+ const rows = props.events.map((event) => {
28
+ seen.add(event.id);
29
+ let row = records.get(event.id);
30
+ if (!row) {
31
+ row = { id: event.id };
32
+ records.set(event.id, row);
33
+ }
34
+ return row;
35
+ });
36
+ for (const id of [...records.keys()])
37
+ if (!seen.has(id))
38
+ records.delete(id);
39
+ return rows;
40
+ };
41
+ const eventFor = (id) => props.events.find((event) => event.id === id);
42
+ const prevFor = (id) => {
43
+ const index = props.events.findIndex((event) => event.id === id);
44
+ return index > 0 ? props.events[index - 1] : undefined;
45
+ };
46
+ return (<Show when={props.events.length === 0 ? props.emptyState : undefined} fallback={<div class={cm.cn(cm.stack(0), props.className)}>
47
+ <For each={keyedRows()}>
48
+ {(row, i) => (<div>
49
+ {props.renderDateSeparator?.(eventFor(row.id), prevFor(row.id))}
50
+ <TimelineEvent event={eventFor(row.id)} isLast={i() === props.events.length - 1}/>
51
+ </div>)}
52
+ </For>
53
+ </div>}>
54
+ {(empty) => empty()}
55
+ </Show>);
56
+ };
57
+ //# sourceMappingURL=Timeline.jsx.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Timeline.jsx","sourceRoot":"","sources":["../src/Timeline.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkB,GAAG,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AAEpD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAGnD;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,CAAC,MAAM,QAAQ,GAA6B,CAAC,KAAK,EAAE,EAAE;IAC1D,MAAM,EAAE,GAAG,WAAW,EAAE,CAAA;IAMxB,MAAM,OAAO,GAAG,IAAI,GAAG,EAAe,CAAA;IACtC,MAAM,SAAS,GAAG,GAAU,EAAE;QAC5B,MAAM,IAAI,GAAG,IAAI,GAAG,EAAU,CAAA;QAC9B,MAAM,IAAI,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;YACtC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CAAA;YAClB,IAAI,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CAAA;YAC/B,IAAI,CAAC,GAAG,EAAE,CAAC;gBACT,GAAG,GAAG,EAAE,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,CAAA;gBACtB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,EAAE,GAAG,CAAC,CAAA;YAC5B,CAAC;YACD,OAAO,GAAG,CAAA;QACZ,CAAC,CAAC,CAAA;QACF,KAAK,MAAM,EAAE,IAAI,CAAC,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC;YAAE,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;gBAAE,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;QAC3E,OAAO,IAAI,CAAA;IACb,CAAC,CAAA;IACD,MAAM,QAAQ,GAAG,CAAC,EAAU,EAAiC,EAAE,CAC7D,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC,CAAA;IAC/C,MAAM,OAAO,GAAG,CAAC,EAAU,EAAiC,EAAE;QAC5D,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC,CAAA;QAChE,OAAO,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAA;IACxD,CAAC,CAAA;IAED,OAAO,CACL,CAAC,IAAI,CACH,IAAI,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,CAC/D,QAAQ,CAAC,CACP,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,CAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,CACvD;UAAA,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,CAAC,CACrB;YAAA,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CACX,CAAC,GAAG,CACF;gBAAA,CAAC,KAAK,CAAC,mBAAmB,EAAE,CAC1B,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAsB,EACrC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAChB,CACD;gBAAA,CAAC,aAAa,CACZ,KAAK,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAsB,CAAC,CAC7C,MAAM,CAAC,CAAC,CAAC,EAAE,KAAK,KAAK,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,EAE5C;cAAA,EAAE,GAAG,CAAC,CACP,CACH;UAAA,EAAE,GAAG,CACP;QAAA,EAAE,GAAG,CACP,CAAC,CAED;MAAA,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,EAAE,CACrB;IAAA,EAAE,IAAI,CAAC,CACR,CAAA;AACH,CAAC,CAAA"}
@@ -0,0 +1,14 @@
1
+ import type { Component } from 'solid-js';
2
+ import type { TimelineDateProps } from './types.js';
3
+ /**
4
+ * Date separator rendered between timeline groups.
5
+ *
6
+ * This is the Solid counterpart of `@molecule/app-timeline-react`'s
7
+ * `TimelineDate`: the same props (React names), the same ClassMap tokens, and
8
+ * the same DOM for the same input.
9
+ *
10
+ * @param props - Component props (see {@link TimelineDateProps}).
11
+ * @returns The rendered date separator.
12
+ */
13
+ export declare const TimelineDate: Component<TimelineDateProps>;
14
+ //# sourceMappingURL=TimelineDate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TimelineDate.d.ts","sourceRoot":"","sources":["../src/TimelineDate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAIzC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAEnD;;;;;;;;;GASG;AACH,eAAO,MAAM,YAAY,EAAE,SAAS,CAAC,iBAAiB,CAerD,CAAA"}
@@ -0,0 +1,18 @@
1
+ import { getClassMap } from '@molecule/app-ui';
2
+ /**
3
+ * Date separator rendered between timeline groups.
4
+ *
5
+ * This is the Solid counterpart of `@molecule/app-timeline-react`'s
6
+ * `TimelineDate`: the same props (React names), the same ClassMap tokens, and
7
+ * the same DOM for the same input.
8
+ *
9
+ * @param props - Component props (see {@link TimelineDateProps}).
10
+ * @returns The rendered date separator.
11
+ */
12
+ export const TimelineDate = (props) => {
13
+ const cm = getClassMap();
14
+ return (<div class={cm.cn(cm.flex({ align: 'center', gap: 'sm' }), cm.sp('py', 2), cm.textSize('xs'), cm.fontWeight('semibold'), props.className)}>
15
+ <span class={cm.flex1}>{props.children}</span>
16
+ </div>);
17
+ };
18
+ //# sourceMappingURL=TimelineDate.jsx.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TimelineDate.jsx","sourceRoot":"","sources":["../src/TimelineDate.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAI9C;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,YAAY,GAAiC,CAAC,KAAK,EAAE,EAAE;IAClE,MAAM,EAAE,GAAG,WAAW,EAAE,CAAA;IACxB,OAAO,CACL,CAAC,GAAG,CACF,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CACV,EAAE,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,EACvC,EAAE,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,EACd,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,EACjB,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC,EACzB,KAAK,CAAC,SAAS,CAChB,CAAC,CAEF;MAAA,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,IAAI,CAC/C;IAAA,EAAE,GAAG,CAAC,CACP,CAAA;AACH,CAAC,CAAA"}
@@ -0,0 +1,15 @@
1
+ import { type Component } from 'solid-js';
2
+ import type { TimelineEventProps } from './types.js';
3
+ /**
4
+ * One row of a `<Timeline>`: [rail (marker + connector)] [timestamp / title /
5
+ * body].
6
+ *
7
+ * This is the Solid counterpart of `@molecule/app-timeline-react`'s
8
+ * `TimelineEvent`: the same props (React names), the same ClassMap tokens, and
9
+ * the same DOM for the same input.
10
+ *
11
+ * @param props - Component props (see {@link TimelineEventProps}).
12
+ * @returns The rendered event row.
13
+ */
14
+ export declare const TimelineEvent: Component<TimelineEventProps>;
15
+ //# sourceMappingURL=TimelineEvent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TimelineEvent.d.ts","sourceRoot":"","sources":["../src/TimelineEvent.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAQ,MAAM,UAAU,CAAA;AAK/C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAEpD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,aAAa,EAAE,SAAS,CAAC,kBAAkB,CAcvD,CAAA"}
@@ -0,0 +1,28 @@
1
+ import { Show } from 'solid-js';
2
+ import { getClassMap } from '@molecule/app-ui';
3
+ import { TimelineRail } from './TimelineRail.jsx';
4
+ /**
5
+ * One row of a `<Timeline>`: [rail (marker + connector)] [timestamp / title /
6
+ * body].
7
+ *
8
+ * This is the Solid counterpart of `@molecule/app-timeline-react`'s
9
+ * `TimelineEvent`: the same props (React names), the same ClassMap tokens, and
10
+ * the same DOM for the same input.
11
+ *
12
+ * @param props - Component props (see {@link TimelineEventProps}).
13
+ * @returns The rendered event row.
14
+ */
15
+ export const TimelineEvent = (props) => {
16
+ const cm = getClassMap();
17
+ return (<div class={cm.cn(cm.flex({ align: 'stretch', gap: 'sm' }), props.className)}>
18
+ <TimelineRail marker={props.event.marker} connector={!props.isLast}/>
19
+ <div class={cm.cn(cm.flex1, cm.stack(1), cm.sp('pb', 4))}>
20
+ <div class={cm.cn(cm.textSize('xs'), cm.fontWeight('medium'))}>{props.event.timestamp}</div>
21
+ <div class={cm.cn(cm.textSize('sm'), cm.fontWeight('semibold'))}>{props.event.title}</div>
22
+ <Show when={props.event.body}>
23
+ <div class={cm.textSize('sm')}>{props.event.body}</div>
24
+ </Show>
25
+ </div>
26
+ </div>);
27
+ };
28
+ //# sourceMappingURL=TimelineEvent.jsx.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TimelineEvent.jsx","sourceRoot":"","sources":["../src/TimelineEvent.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkB,IAAI,EAAE,MAAM,UAAU,CAAA;AAE/C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAGjD;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,aAAa,GAAkC,CAAC,KAAK,EAAE,EAAE;IACpE,MAAM,EAAE,GAAG,WAAW,EAAE,CAAA;IACxB,OAAO,CACL,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,CAC3E;MAAA,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,EACnE;MAAA,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,CAAU,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,CAChE;QAAA,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,GAAG,CAC3F;QAAA,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,GAAG,CACzF;QAAA,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAC3B;UAAA,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,GAAG,CACxD;QAAA,EAAE,IAAI,CACR;MAAA,EAAE,GAAG,CACP;IAAA,EAAE,GAAG,CAAC,CACP,CAAA;AACH,CAAC,CAAA"}
@@ -0,0 +1,15 @@
1
+ import { type Component } from 'solid-js';
2
+ import type { TimelineRailProps } from './types.js';
3
+ /**
4
+ * Left-hand rail of a timeline row — renders the marker and an optional
5
+ * vertical connector extending downward.
6
+ *
7
+ * This is the Solid counterpart of `@molecule/app-timeline-react`'s
8
+ * `TimelineRail`: the same props (React names), the same ClassMap tokens, and
9
+ * the same DOM for the same input (including the connector's inline style).
10
+ *
11
+ * @param props - Component props (see {@link TimelineRailProps}).
12
+ * @returns The rendered rail.
13
+ */
14
+ export declare const TimelineRail: Component<TimelineRailProps>;
15
+ //# sourceMappingURL=TimelineRail.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TimelineRail.d.ts","sourceRoot":"","sources":["../src/TimelineRail.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAQ,MAAM,UAAU,CAAA;AAI/C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAEnD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,YAAY,EAAE,SAAS,CAAC,iBAAiB,CAwBrD,CAAA"}
@@ -0,0 +1,37 @@
1
+ import { Show } from 'solid-js';
2
+ import { getClassMap } from '@molecule/app-ui';
3
+ /**
4
+ * Left-hand rail of a timeline row — renders the marker and an optional
5
+ * vertical connector extending downward.
6
+ *
7
+ * This is the Solid counterpart of `@molecule/app-timeline-react`'s
8
+ * `TimelineRail`: the same props (React names), the same ClassMap tokens, and
9
+ * the same DOM for the same input (including the connector's inline style).
10
+ *
11
+ * @param props - Component props (see {@link TimelineRailProps}).
12
+ * @returns The rendered rail.
13
+ */
14
+ export const TimelineRail = (props) => {
15
+ const cm = getClassMap();
16
+ const connector = () => props.connector ?? true;
17
+ /**
18
+ * The connector's inline style, exactly React's object. A fresh object per
19
+ * call, so Solid applies it through the CSSOM property setter like React and
20
+ * the serialized attribute matches (a static object literal is written as
21
+ * the attribute's text instead, keeping `currentColor`).
22
+ *
23
+ * @returns The style declarations.
24
+ */
25
+ const connectorStyle = () => ({
26
+ 'border-left': '1px solid currentColor',
27
+ opacity: '0.2',
28
+ 'min-height': '24px',
29
+ });
30
+ return (<div class={cm.cn(cm.flex({ direction: 'col', align: 'center' }), cm.shrink0, props.className)}>
31
+ <div>{props.marker ?? <span aria-hidden="true">•</span>}</div>
32
+ <Show when={connector()}>
33
+ <div class={cm.cn(cm.w(0), cm.h('full'))} style={connectorStyle()}/>
34
+ </Show>
35
+ </div>);
36
+ };
37
+ //# sourceMappingURL=TimelineRail.jsx.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TimelineRail.jsx","sourceRoot":"","sources":["../src/TimelineRail.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkB,IAAI,EAAE,MAAM,UAAU,CAAA;AAE/C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAI9C;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,YAAY,GAAiC,CAAC,KAAK,EAAE,EAAE;IAClE,MAAM,EAAE,GAAG,WAAW,EAAE,CAAA;IACxB,MAAM,SAAS,GAAG,GAAY,EAAE,CAAC,KAAK,CAAC,SAAS,IAAI,IAAI,CAAA;IACxD;;;;;;;OAOG;IACH,MAAM,cAAc,GAAG,GAA2B,EAAE,CAAC,CAAC;QACpD,aAAa,EAAE,wBAAwB;QACvC,OAAO,EAAE,KAAK;QACd,YAAY,EAAE,MAAM;KACrB,CAAC,CAAA;IACF,OAAO,CACL,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,EAAE,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,CAC7F;MAAA,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,EAAE,GAAG,CAC7D;MAAA,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,CAAC,CACtB;QAAA,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAU,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,cAAc,EAAE,CAAC,EAC7E;MAAA,EAAE,IAAI,CACR;IAAA,EAAE,GAAG,CAAC,CACP,CAAA;AACH,CAAC,CAAA"}
@@ -0,0 +1,61 @@
1
+ /**
2
+ * Solid chronological timeline primitives.
3
+ *
4
+ * Exports:
5
+ * - `<Timeline>` — vertical list of events with optional date separators.
6
+ * - `<TimelineEvent>` — one event row with rail (marker + connector) + content.
7
+ * - `<TimelineRail>` — standalone rail (marker + connector) for custom rows.
8
+ * - `<TimelineDate>` — date separator rendered between groups.
9
+ * - `TimelineEventData` type for event records.
10
+ *
11
+ * Use for activity chronologies, deal timelines, order tracking, audit logs.
12
+ * It is the Solid counterpart of `@molecule/app-timeline-react`: the same props
13
+ * (React names) and the same DOM for the same input, so switching framework is
14
+ * changing the package name in the imports.
15
+ *
16
+ * @example
17
+ * ```tsx
18
+ * import { Timeline, TimelineDate } from '@molecule/app-timeline-solid'
19
+ *
20
+ * export function Activity() {
21
+ * const events = [
22
+ * { id: '1', timestamp: '2 hours ago', title: 'Order placed' },
23
+ * { id: '2', timestamp: 'Yesterday', title: 'Payment confirmed', body: 'Visa ending 4242' },
24
+ * { id: '3', timestamp: 'Mar 12', title: 'Item shipped' },
25
+ * ]
26
+ * return (
27
+ * <Timeline
28
+ * events={events}
29
+ * renderDateSeparator={(event, prev) =>
30
+ * prev ? undefined : <TimelineDate>{event.timestamp}</TimelineDate>
31
+ * }
32
+ * emptyState={<p>No activity yet.</p>}
33
+ * />
34
+ * )
35
+ * }
36
+ * ```
37
+ *
38
+ * @remarks
39
+ * This is NOT the Solid binding for `@molecule/app-timeline` (the headless
40
+ * provider core wired via `setProvider`) — it is standalone presentational
41
+ * markup with no provider. For domain-specific rows see the sibling
42
+ * `@molecule/app-{activity,order,status,stage,day}-timeline-solid` packages.
43
+ *
44
+ * `TimelineEventData.accent` is currently INERT — no component reads it, so
45
+ * setting it changes nothing; color a row by passing a custom `marker` node
46
+ * instead. `timestamp` is a display node — format/translate it before
47
+ * passing. `Timeline` keys each row by the event's `id` value, like React. The
48
+ * prop surface (documented on the exported `TimelineProps`,
49
+ * `TimelineEventProps`, `TimelineRailProps` and `TimelineDateProps`
50
+ * interfaces): Timeline(events, renderDateSeparator, emptyState, className),
51
+ * TimelineEvent(event, isLast, className), TimelineRail(marker, connector,
52
+ * className), TimelineDate(children, className).
53
+ *
54
+ * @module
55
+ */
56
+ export * from './Timeline.jsx';
57
+ export * from './TimelineDate.jsx';
58
+ export * from './TimelineEvent.jsx';
59
+ export * from './TimelineRail.jsx';
60
+ export * from './types.js';
61
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AAEH,cAAc,gBAAgB,CAAA;AAC9B,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA;AACnC,cAAc,oBAAoB,CAAA;AAClC,cAAc,YAAY,CAAA"}
package/dist/index.js ADDED
@@ -0,0 +1,61 @@
1
+ /**
2
+ * Solid chronological timeline primitives.
3
+ *
4
+ * Exports:
5
+ * - `<Timeline>` — vertical list of events with optional date separators.
6
+ * - `<TimelineEvent>` — one event row with rail (marker + connector) + content.
7
+ * - `<TimelineRail>` — standalone rail (marker + connector) for custom rows.
8
+ * - `<TimelineDate>` — date separator rendered between groups.
9
+ * - `TimelineEventData` type for event records.
10
+ *
11
+ * Use for activity chronologies, deal timelines, order tracking, audit logs.
12
+ * It is the Solid counterpart of `@molecule/app-timeline-react`: the same props
13
+ * (React names) and the same DOM for the same input, so switching framework is
14
+ * changing the package name in the imports.
15
+ *
16
+ * @example
17
+ * ```tsx
18
+ * import { Timeline, TimelineDate } from '@molecule/app-timeline-solid'
19
+ *
20
+ * export function Activity() {
21
+ * const events = [
22
+ * { id: '1', timestamp: '2 hours ago', title: 'Order placed' },
23
+ * { id: '2', timestamp: 'Yesterday', title: 'Payment confirmed', body: 'Visa ending 4242' },
24
+ * { id: '3', timestamp: 'Mar 12', title: 'Item shipped' },
25
+ * ]
26
+ * return (
27
+ * <Timeline
28
+ * events={events}
29
+ * renderDateSeparator={(event, prev) =>
30
+ * prev ? undefined : <TimelineDate>{event.timestamp}</TimelineDate>
31
+ * }
32
+ * emptyState={<p>No activity yet.</p>}
33
+ * />
34
+ * )
35
+ * }
36
+ * ```
37
+ *
38
+ * @remarks
39
+ * This is NOT the Solid binding for `@molecule/app-timeline` (the headless
40
+ * provider core wired via `setProvider`) — it is standalone presentational
41
+ * markup with no provider. For domain-specific rows see the sibling
42
+ * `@molecule/app-{activity,order,status,stage,day}-timeline-solid` packages.
43
+ *
44
+ * `TimelineEventData.accent` is currently INERT — no component reads it, so
45
+ * setting it changes nothing; color a row by passing a custom `marker` node
46
+ * instead. `timestamp` is a display node — format/translate it before
47
+ * passing. `Timeline` keys each row by the event's `id` value, like React. The
48
+ * prop surface (documented on the exported `TimelineProps`,
49
+ * `TimelineEventProps`, `TimelineRailProps` and `TimelineDateProps`
50
+ * interfaces): Timeline(events, renderDateSeparator, emptyState, className),
51
+ * TimelineEvent(event, isLast, className), TimelineRail(marker, connector,
52
+ * className), TimelineDate(children, className).
53
+ *
54
+ * @module
55
+ */
56
+ export * from './Timeline.jsx';
57
+ export * from './TimelineDate.jsx';
58
+ export * from './TimelineEvent.jsx';
59
+ export * from './TimelineRail.jsx';
60
+ export * from './types.js';
61
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AAEH,cAAc,gBAAgB,CAAA;AAC9B,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA;AACnC,cAAc,oBAAoB,CAAA;AAClC,cAAc,YAAY,CAAA"}
@@ -0,0 +1,61 @@
1
+ /**
2
+ * Types for the Solid chronological timeline.
3
+ *
4
+ * @module
5
+ */
6
+ import type { JSX } from 'solid-js';
7
+ /** One entry of a `<Timeline>`. */
8
+ export interface TimelineEventData {
9
+ /** Stable identifier for this event (the row is keyed by it). */
10
+ id: string;
11
+ /** Marker icon / dot — defaults to a small dot. */
12
+ marker?: JSX.Element;
13
+ /** Display timestamp (ISO, relative, etc.). */
14
+ timestamp: JSX.Element;
15
+ /** Headline of the event. */
16
+ title: JSX.Element;
17
+ /** Optional body content. */
18
+ body?: JSX.Element;
19
+ /**
20
+ * Optional accent color hint. Currently INERT — no component consumes it,
21
+ * so setting it changes nothing; pass a custom `marker` node to color a row.
22
+ */
23
+ accent?: 'primary' | 'success' | 'warning' | 'error' | 'info' | 'neutral';
24
+ }
25
+ /** Props accepted by the {@link Timeline} component. */
26
+ export interface TimelineProps {
27
+ /** Events in display order. */
28
+ events: TimelineEventData[];
29
+ /** Optional renderer for date separators between consecutive events. */
30
+ renderDateSeparator?: (event: TimelineEventData, prev?: TimelineEventData) => JSX.Element;
31
+ /** Rendered when there are no events. */
32
+ emptyState?: JSX.Element;
33
+ /** Extra classes on the outer wrapper. */
34
+ className?: string;
35
+ }
36
+ /** Props accepted by the {@link TimelineEvent} component. */
37
+ export interface TimelineEventProps {
38
+ /** The event to render. */
39
+ event: TimelineEventData;
40
+ /** Whether this is the last event in the list (suppresses the connector). */
41
+ isLast?: boolean;
42
+ /** Extra classes. */
43
+ className?: string;
44
+ }
45
+ /** Props accepted by the {@link TimelineRail} component. */
46
+ export interface TimelineRailProps {
47
+ /** Marker for this row — typically a dot or icon. */
48
+ marker?: JSX.Element;
49
+ /** Whether to render the vertical connector below the marker. Defaults to `true`. */
50
+ connector?: boolean;
51
+ /** Extra classes on the outer wrapper. */
52
+ className?: string;
53
+ }
54
+ /** Props accepted by the {@link TimelineDate} component. */
55
+ export interface TimelineDateProps {
56
+ /** Date label ("Today", "Yesterday", "March 12, 2025"). */
57
+ children: JSX.Element;
58
+ /** Extra classes. */
59
+ className?: string;
60
+ }
61
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAEnC,mCAAmC;AACnC,MAAM,WAAW,iBAAiB;IAChC,iEAAiE;IACjE,EAAE,EAAE,MAAM,CAAA;IACV,mDAAmD;IACnD,MAAM,CAAC,EAAE,GAAG,CAAC,OAAO,CAAA;IACpB,+CAA+C;IAC/C,SAAS,EAAE,GAAG,CAAC,OAAO,CAAA;IACtB,6BAA6B;IAC7B,KAAK,EAAE,GAAG,CAAC,OAAO,CAAA;IAClB,6BAA6B;IAC7B,IAAI,CAAC,EAAE,GAAG,CAAC,OAAO,CAAA;IAClB;;;OAGG;IACH,MAAM,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAA;CAC1E;AAED,wDAAwD;AACxD,MAAM,WAAW,aAAa;IAC5B,+BAA+B;IAC/B,MAAM,EAAE,iBAAiB,EAAE,CAAA;IAC3B,wEAAwE;IACxE,mBAAmB,CAAC,EAAE,CAAC,KAAK,EAAE,iBAAiB,EAAE,IAAI,CAAC,EAAE,iBAAiB,KAAK,GAAG,CAAC,OAAO,CAAA;IACzF,yCAAyC;IACzC,UAAU,CAAC,EAAE,GAAG,CAAC,OAAO,CAAA;IACxB,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,6DAA6D;AAC7D,MAAM,WAAW,kBAAkB;IACjC,2BAA2B;IAC3B,KAAK,EAAE,iBAAiB,CAAA;IACxB,6EAA6E;IAC7E,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,qBAAqB;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,4DAA4D;AAC5D,MAAM,WAAW,iBAAiB;IAChC,qDAAqD;IACrD,MAAM,CAAC,EAAE,GAAG,CAAC,OAAO,CAAA;IACpB,qFAAqF;IACrF,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,4DAA4D;AAC5D,MAAM,WAAW,iBAAiB;IAChC,2DAA2D;IAC3D,QAAQ,EAAE,GAAG,CAAC,OAAO,CAAA;IACrB,qBAAqB;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
package/dist/types.js ADDED
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Types for the Solid chronological timeline.
3
+ *
4
+ * @module
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
package/package.json CHANGED
@@ -1,6 +1,64 @@
1
1
  {
2
2
  "name": "@molecule/app-timeline-solid",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.0.1-stage",
4
+ "description": "Solid chronological timeline with event rails and date markers",
5
+ "homepage": "https://www.molecule.dev/packages/app-timeline-solid",
6
+ "type": "module",
7
+ "main": "dist/index.js",
8
+ "types": "dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js"
13
+ }
14
+ },
15
+ "files": [
16
+ "dist",
17
+ "README.md"
18
+ ],
19
+ "scripts": {
20
+ "build": "tsc",
21
+ "dev": "tsc --watch",
22
+ "test": "vitest run",
23
+ "test:watch": "vitest"
24
+ },
25
+ "keywords": [
26
+ "molecule",
27
+ "timeline-ui",
28
+ "solid"
29
+ ],
30
+ "author": "Molecule Dev, Inc. (https://molecule.dev)",
31
+ "license": "Apache-2.0",
32
+ "repository": {
33
+ "type": "git",
34
+ "url": "https://github.com/molecule-dev/molecule.git",
35
+ "directory": "packages/app/features/timeline-solid"
36
+ },
37
+ "engines": {
38
+ "node": ">=20"
39
+ },
40
+ "bugs": "https://github.com/molecule-dev/molecule/issues",
41
+ "publishConfig": {
42
+ "access": "public"
43
+ },
44
+ "peerDependencies": {
45
+ "@molecule/app-solid": "^3.5.0",
46
+ "@molecule/app-ui": "^1.0.1",
47
+ "@molecule/app-ui-solid": "^1.1.0",
48
+ "solid-js": "^1.8.0"
49
+ },
50
+ "devDependencies": {
51
+ "@molecule/app-framework-conformance": "0.0.0",
52
+ "@molecule/app-i18n": "1.2.2",
53
+ "@molecule/app-icons": "1.0.4",
54
+ "@molecule/app-solid": "3.7.2",
55
+ "@molecule/app-ui": "1.4.0",
56
+ "@molecule/app-ui-solid": "1.1.5",
57
+ "@types/node": "26.6.5",
58
+ "jsdom": "30.1.3",
59
+ "solid-js": "1.9.17",
60
+ "typescript": "6.0.3",
61
+ "vite-plugin-solid": "2.11.15",
62
+ "vitest": "4.1.12"
63
+ }
64
+ }