seblify 0.2.1 → 0.3.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 (47) hide show
  1. package/README.md +118 -45
  2. package/dist/components/action/input/select/checkbox/Checkbox.svelte +378 -16
  3. package/dist/components/action/input/select/checkbox/Checkbox.svelte.d.ts +7 -0
  4. package/dist/components/action/input/select/checkbox/checkbox-relations.svelte.d.ts +47 -0
  5. package/dist/components/action/input/select/checkbox/checkbox-relations.svelte.js +154 -0
  6. package/dist/components/action/input/select/switch/Switch.svelte +349 -40
  7. package/dist/components/action/input/select/switch/Switch.svelte.d.ts +8 -3
  8. package/dist/components/display/annotation/tag/Tag.svelte +19 -0
  9. package/dist/components/display/data-display/metric/duration/Duration.svelte +64 -0
  10. package/dist/components/display/data-display/metric/duration/Duration.svelte.d.ts +16 -0
  11. package/dist/components/display/data-display/metric/relative-time/RelativeTime.svelte +104 -0
  12. package/dist/components/display/data-display/metric/relative-time/RelativeTime.svelte.d.ts +16 -0
  13. package/dist/components/display/data-display/visual/timeline/TimelineItem.svelte +19 -0
  14. package/dist/components/display/feedback/loading/loading-dots/LoadingDots.svelte +19 -0
  15. package/dist/components/display/feedback/loading/spinner/Spinner.svelte +19 -0
  16. package/dist/components/display/motion/collapse/Collapse.svelte +115 -0
  17. package/dist/components/display/motion/collapse/Collapse.svelte.d.ts +17 -0
  18. package/dist/components/display/typography/accordion/Accordion.svelte +347 -0
  19. package/dist/components/display/typography/accordion/Accordion.svelte.d.ts +13 -0
  20. package/dist/components/display/typography/accordion/AccordionGroup.svelte +132 -0
  21. package/dist/components/display/typography/accordion/AccordionGroup.svelte.d.ts +11 -0
  22. package/dist/components/display/typography/accordion/context.d.ts +8 -0
  23. package/dist/components/display/typography/accordion/context.js +8 -0
  24. package/dist/components/framework/overlay/tooltip/Tooltip.svelte +1012 -0
  25. package/dist/components/framework/overlay/tooltip/Tooltip.svelte.d.ts +31 -0
  26. package/dist/components/utility/format/duration/formatDuration.d.ts +15 -0
  27. package/dist/components/utility/format/duration/formatDuration.js +218 -0
  28. package/dist/components/utility/format/relative-time/formatRelativeTime.d.ts +35 -0
  29. package/dist/components/utility/format/relative-time/formatRelativeTime.js +343 -0
  30. package/dist/design-system/reserved-props/allowed-options.d.ts +6 -3
  31. package/dist/design-system/theme/tokens.js +48 -0
  32. package/dist/icons/generated/check-thick.svelte +16 -0
  33. package/dist/icons/generated/check-thick.svelte.d.ts +7 -0
  34. package/dist/icons/generated/check.svelte +16 -0
  35. package/dist/icons/generated/check.svelte.d.ts +7 -0
  36. package/dist/icons/generated/close-thick.svelte +16 -0
  37. package/dist/icons/generated/close-thick.svelte.d.ts +7 -0
  38. package/dist/icons/generated/close.svelte +16 -0
  39. package/dist/icons/generated/close.svelte.d.ts +7 -0
  40. package/dist/icons/generated/index.d.ts +4 -0
  41. package/dist/icons/generated/index.js +4 -0
  42. package/dist/icons/generated/manifest.js +28 -0
  43. package/dist/index.d.ts +9 -0
  44. package/dist/index.js +9 -0
  45. package/dist/styles/tone-context.css +19 -0
  46. package/dist/theme.css +22 -0
  47. package/package.json +15 -3
package/README.md CHANGED
@@ -36,14 +36,15 @@ import 'seblify/theme.css';
36
36
  Explore the supported components in this library. Components are grouped by purpose and linked to their full documentation, including usage examples, props, accessibility notes, and design-system guidance.
37
37
 
38
38
  [![components-stable](https://img.shields.io/badge/stable-0%20components-brightgreen.svg)](https://seblify.com/components)
39
- [![components-beta](https://img.shields.io/badge/beta-2%20components-yellow.svg)](https://seblify.com/components)
40
- [![components-draft](https://img.shields.io/badge/draft-24%20components-lightgrey.svg)](https://seblify.com/components)
39
+ [![components-beta](https://img.shields.io/badge/beta-6%20components-yellow.svg)](https://seblify.com/components)
40
+ [![components-draft](https://img.shields.io/badge/draft-27%20components-lightgrey.svg)](https://seblify.com/components)
41
41
 
42
42
  ### Quick links
43
43
 
44
44
  - [Input Components](https://seblify.com/sections/action)
45
45
  - [Display Components](https://seblify.com/sections/display)
46
46
  - [Framework Components](https://seblify.com/sections/framework)
47
+ - [Utility](https://seblify.com/sections/utility)
47
48
  - [Design System](https://seblify.com/design-system)
48
49
 
49
50
  <br />
@@ -84,14 +85,10 @@ Controls for selecting boolean, range, or option-based values.
84
85
 
85
86
  ### Display Components
86
87
 
87
- _10 items_
88
+ _14 items_
88
89
 
89
90
  Components for showing content, feedback, media, and motion.
90
91
 
91
- | Component | Summary | Status |
92
- | --- | --- | --- |
93
- | [Timeline](https://seblify.com/components/timeline) | Arranges connected timeline items vertically or horizontally with flexible content, labels, and markers. | Beta |
94
-
95
92
  <details>
96
93
  <summary><strong>Annotation &middot; 3</strong></summary>
97
94
 
@@ -120,12 +117,13 @@ Progress indicators and waiting states.
120
117
  <br />
121
118
 
122
119
  <details>
123
- <summary><strong>Typography &middot; 3</strong></summary>
120
+ <summary><strong>Typography &middot; 4</strong></summary>
124
121
 
125
122
  Text primitives and typographic treatments for readable interfaces.
126
123
 
127
124
  | Component | Summary | Status |
128
125
  | --- | --- | --- |
126
+ | [Accordion](https://seblify.com/components/accordion) | A collapsible text section for optional details, explanations, and supporting content. | Draft |
129
127
  | [CodeSnippet](https://seblify.com/components/code-snippet) | Displays formatted code snippets with Svelte-focused highlighting and optional line numbers. | Draft |
130
128
  | [Eyebrow](https://seblify.com/components/eyebrow) | A short contextual label that sits above a heading or dense content block. | Draft |
131
129
  | [Highlight](https://seblify.com/components/highlight) | Highlights case-insensitive text matches inside a plain text string. | Beta |
@@ -133,6 +131,20 @@ Text primitives and typographic treatments for readable interfaces.
133
131
  </details>
134
132
  <br />
135
133
 
134
+ <details>
135
+ <summary><strong>Data Display &middot; 3</strong></summary>
136
+
137
+ Components for presenting structured values, metrics, and records.
138
+
139
+ | Component | Summary | Status |
140
+ | --- | --- | --- |
141
+ | [Duration](https://seblify.com/components/duration) | Displays millisecond durations as localized unit text or clock-style text. | Beta |
142
+ | [RelativeTime](https://seblify.com/components/relative-time) | Formats dates as relative time, with reusable unit steps and automatic updates. | Beta |
143
+ | [Timeline](https://seblify.com/components/timeline) | Arranges connected timeline items vertically or horizontally with flexible content, labels, and markers. | Beta |
144
+
145
+ </details>
146
+ <br />
147
+
136
148
  <details>
137
149
  <summary><strong>Media &middot; 1</strong></summary>
138
150
 
@@ -145,9 +157,21 @@ Icons, images, video, and other visual media components.
145
157
  </details>
146
158
  <br />
147
159
 
160
+ <details>
161
+ <summary><strong>Motion &middot; 1</strong></summary>
162
+
163
+ Controlled animation helpers for revealing, hiding, and moving UI.
164
+
165
+ | Component | Summary | Status |
166
+ | --- | --- | --- |
167
+ | [Collapse](https://seblify.com/components/collapse) | A controlled wrapper that animates content between its full height and a collapsed height. | Draft |
168
+
169
+ </details>
170
+ <br />
171
+
148
172
  ### Framework Components
149
173
 
150
- _10 items_
174
+ _11 items_
151
175
 
152
176
  Layout, navigation, overlays, and surface primitives.
153
177
 
@@ -205,73 +229,122 @@ Framing primitives for cards, papers, tiles, and other contained regions.
205
229
  </details>
206
230
  <br />
207
231
 
232
+ <details>
233
+ <summary><strong>Overlay &middot; 1</strong></summary>
234
+
235
+ Floating UI that appears above nearby interface content.
236
+
237
+ | Component | Summary | Status |
238
+ | --- | --- | --- |
239
+ | [Tooltip](https://seblify.com/components/tooltip) | A small hover and focus hint that appears beside wrapped content with an arrow pointing back to it. | Draft |
240
+
241
+ </details>
242
+ <br />
243
+
244
+ ### Utility
245
+
246
+ _2 items_
247
+
248
+ Reusable helpers for formatting, behavior, providers, and rendering.
249
+
250
+ <details>
251
+ <summary><strong>Format &middot; 2</strong></summary>
252
+
253
+ Helpers for turning values into localized display text.
254
+
255
+ | Component | Summary | Status |
256
+ | --- | --- | --- |
257
+ | [formatDuration](https://seblify.com/components/format-duration) | Formats millisecond durations as localized unit text or clock-style text. | Beta |
258
+ | [formatRelativeTime](https://seblify.com/components/format-relative-time) | Formats dates as localized relative time text from a reusable utility function. | Beta |
259
+
260
+ </details>
261
+ <br />
262
+
208
263
  ## Design System
209
264
 
210
265
  Theme, tokens, and styling guidance for Seblify.
211
266
 
212
267
  | Guide | Summary |
213
268
  | --- | --- |
214
- | [Component&nbsp;API](https://seblify.com/design-system/component-api) | Shared prop naming rules for variants, tones, size, slots, radius, placement, and contextual inheritance. |
269
+ | [Component&nbsp;API](https://seblify.com/design-system/component-api) | Shared prop naming rules for variants, tones, size, slots, radius, animation, placement, and contextual inheritance. |
215
270
  | [Icons](https://seblify.com/design-system/icons) | Browse all generated Seblify icons, grouped automatically from the SVG source folders. |
216
271
  | [Inheritance](https://seblify.com/design-system/inheritance) | Ambient CSS variables let components inherit tone and size from their context without hard-coded parent-child edge cases. |
217
272
  | [Theme](https://seblify.com/design-system/theme) | Seblify themes use CSS variables for light, dark, system, and custom color modes. |
218
273
 
219
274
  <br />
220
275
 
221
- ## Release Notes <small>&middot; 0.2.1</small>
276
+ ## Release Notes <small>&middot; 0.3.0</small>
222
277
 
223
- _June 3 2026_ &middot; _9 items updated_
278
+ _July 4 2026_ &middot; _12 items updated_
224
279
 
225
280
  Recent changes are summarized below. For the full release history, see the [changelog](https://seblify.com/release-notes).
226
281
 
227
- ### [CodeSnippet](https://seblify.com/components/code-snippet)
282
+ ### [Accordion](https://seblify.com/components/accordion)
228
283
 
229
- - Added code snippet component for readonly code formatting
230
- - Long lines can now optionally wrap
231
- - Changed tokenizer to track word context for smarter token detection
232
- - CodeSnippet no longer enters infinite loop on trailing plain text
284
+ - Created accordion component
285
+ - Added expand/collapse animation for content
286
+ - Created accordion-group component
233
287
 
234
- ### [general](https://seblify.com/components/general)
288
+ ### [Checkbox](https://seblify.com/components/checkbox)
235
289
 
236
- - Documentation can now display code examples
290
+ - Supports tone prop
291
+ - Supports intermediate state
292
+ - Can be indirectly selected
293
+ - Created helper for checkbox relationship management
294
+ - Added automated test coverage
295
+ - Relations helper now supports indirect intermediate states
237
296
 
238
- ### [Highlight](https://seblify.com/components/highlight)
297
+ ### [Collapse](https://seblify.com/components/collapse)
239
298
 
240
- - Added code examples to docs
299
+ - Created collapse controlled wrapper component
300
+ - Added duration prop
301
+ - Added closed min-height prop
241
302
 
242
- ### [inheritance](https://seblify.com/components/inheritance)
303
+ ### [component-api](https://seblify.com/components/component-api)
243
304
 
244
- - Added tone inheritance with consuming and publishing css variables
305
+ - Added tone prop Strong
306
+ - Documented shared animation options
245
307
 
246
- ### [SegmentControl](https://seblify.com/components/segment-control)
308
+ ### [Duration](https://seblify.com/components/duration)
247
309
 
248
- - Selected background moves smoothly between active option
310
+ - Added Duration formatter component
311
+ - Added code snippets to docs examples
249
312
 
250
- ### [Sidenav](https://seblify.com/components/sidenav)
313
+ ### [formatDuration](https://seblify.com/components/format-duration)
251
314
 
252
- - Item can execute a method with a payload
253
- - Item can take custom trailing content
254
- - Item groups can be forced expanded
255
- - Selecting an already selected link item with expanded children will collapse its children
256
- - Sidenav no longer auto-collapses sections
315
+ - Added duration formatter
316
+ - Added code snippets for all docs examples
257
317
 
258
- ### [Spinner](https://seblify.com/components/spinner)
318
+ ### [formatRelativeTime](https://seblify.com/components/format-relative-time)
319
+
320
+ - Added function to format relative time
321
+ - Added support for ranged custom labels
322
+
323
+ ### [general](https://seblify.com/components/general)
259
324
 
260
- - Added code examples to documentation
325
+ - Added automated tests with generated test results displayed in docs
326
+
327
+ ### [RelativeTime](https://seblify.com/components/relative-time)
328
+
329
+ - Added relative-time component
330
+ - Added docs code snippets to all examples
261
331
 
262
332
  ### [Switch](https://seblify.com/components/switch)
263
333
 
264
- - Added tone and variant options
265
- - Radius prop
266
- - Added size prop
267
- - Added shapes Pill, Flat, Long, Floating, Line
268
- - Added optional grip icon to shapes Pill, Floating and Line
269
- - Added optional track I/O icons
270
- - Added animation options
271
- - Focus ring color matches selected tone
334
+ - Added outline variant
335
+ - Added animation duration prop
336
+ - Added switch orientation prop
337
+ - Added focus tone prop
338
+ - Added automated component tests
272
339
 
273
- ### [Timeline](https://seblify.com/components/timeline)
340
+ ### [theme](https://seblify.com/components/theme)
274
341
 
275
- - Added timeline component
276
- - Added node align options
277
- - Timeline can use custom markers
342
+ - Added secondary color option
343
+
344
+ ### [Tooltip](https://seblify.com/components/tooltip)
345
+
346
+ - Added tooltip component
347
+ - Supports tones prop
348
+ - Controlled visibility and emits events
349
+ - Customizable distance to anchor element
350
+ - Added animation options