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.
- package/README.md +118 -45
- package/dist/components/action/input/select/checkbox/Checkbox.svelte +378 -16
- package/dist/components/action/input/select/checkbox/Checkbox.svelte.d.ts +7 -0
- package/dist/components/action/input/select/checkbox/checkbox-relations.svelte.d.ts +47 -0
- package/dist/components/action/input/select/checkbox/checkbox-relations.svelte.js +154 -0
- package/dist/components/action/input/select/switch/Switch.svelte +349 -40
- package/dist/components/action/input/select/switch/Switch.svelte.d.ts +8 -3
- package/dist/components/display/annotation/tag/Tag.svelte +19 -0
- package/dist/components/display/data-display/metric/duration/Duration.svelte +64 -0
- package/dist/components/display/data-display/metric/duration/Duration.svelte.d.ts +16 -0
- package/dist/components/display/data-display/metric/relative-time/RelativeTime.svelte +104 -0
- package/dist/components/display/data-display/metric/relative-time/RelativeTime.svelte.d.ts +16 -0
- package/dist/components/display/data-display/visual/timeline/TimelineItem.svelte +19 -0
- package/dist/components/display/feedback/loading/loading-dots/LoadingDots.svelte +19 -0
- package/dist/components/display/feedback/loading/spinner/Spinner.svelte +19 -0
- package/dist/components/display/motion/collapse/Collapse.svelte +115 -0
- package/dist/components/display/motion/collapse/Collapse.svelte.d.ts +17 -0
- package/dist/components/display/typography/accordion/Accordion.svelte +347 -0
- package/dist/components/display/typography/accordion/Accordion.svelte.d.ts +13 -0
- package/dist/components/display/typography/accordion/AccordionGroup.svelte +132 -0
- package/dist/components/display/typography/accordion/AccordionGroup.svelte.d.ts +11 -0
- package/dist/components/display/typography/accordion/context.d.ts +8 -0
- package/dist/components/display/typography/accordion/context.js +8 -0
- package/dist/components/framework/overlay/tooltip/Tooltip.svelte +1012 -0
- package/dist/components/framework/overlay/tooltip/Tooltip.svelte.d.ts +31 -0
- package/dist/components/utility/format/duration/formatDuration.d.ts +15 -0
- package/dist/components/utility/format/duration/formatDuration.js +218 -0
- package/dist/components/utility/format/relative-time/formatRelativeTime.d.ts +35 -0
- package/dist/components/utility/format/relative-time/formatRelativeTime.js +343 -0
- package/dist/design-system/reserved-props/allowed-options.d.ts +6 -3
- package/dist/design-system/theme/tokens.js +48 -0
- package/dist/icons/generated/check-thick.svelte +16 -0
- package/dist/icons/generated/check-thick.svelte.d.ts +7 -0
- package/dist/icons/generated/check.svelte +16 -0
- package/dist/icons/generated/check.svelte.d.ts +7 -0
- package/dist/icons/generated/close-thick.svelte +16 -0
- package/dist/icons/generated/close-thick.svelte.d.ts +7 -0
- package/dist/icons/generated/close.svelte +16 -0
- package/dist/icons/generated/close.svelte.d.ts +7 -0
- package/dist/icons/generated/index.d.ts +4 -0
- package/dist/icons/generated/index.js +4 -0
- package/dist/icons/generated/manifest.js +28 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +9 -0
- package/dist/styles/tone-context.css +19 -0
- package/dist/theme.css +22 -0
- 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
|
[](https://seblify.com/components)
|
|
39
|
-
[](https://seblify.com/components)
|
|
40
|
+
[](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
|
-
|
|
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 · 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 ·
|
|
120
|
+
<summary><strong>Typography · 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 · 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 · 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 · 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
|
-
|
|
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 · 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 · 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 API](https://seblify.com/design-system/component-api) | Shared prop naming rules for variants, tones, size, slots, radius, placement, and contextual inheritance. |
|
|
269
|
+
| [Component 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>· 0.
|
|
276
|
+
## Release Notes <small>· 0.3.0</small>
|
|
222
277
|
|
|
223
|
-
|
|
278
|
+
_July 4 2026_ · _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
|
-
### [
|
|
282
|
+
### [Accordion](https://seblify.com/components/accordion)
|
|
228
283
|
|
|
229
|
-
-
|
|
230
|
-
-
|
|
231
|
-
-
|
|
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
|
-
### [
|
|
288
|
+
### [Checkbox](https://seblify.com/components/checkbox)
|
|
235
289
|
|
|
236
|
-
-
|
|
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
|
-
### [
|
|
297
|
+
### [Collapse](https://seblify.com/components/collapse)
|
|
239
298
|
|
|
240
|
-
-
|
|
299
|
+
- Created collapse controlled wrapper component
|
|
300
|
+
- Added duration prop
|
|
301
|
+
- Added closed min-height prop
|
|
241
302
|
|
|
242
|
-
### [
|
|
303
|
+
### [component-api](https://seblify.com/components/component-api)
|
|
243
304
|
|
|
244
|
-
- Added tone
|
|
305
|
+
- Added tone prop Strong
|
|
306
|
+
- Documented shared animation options
|
|
245
307
|
|
|
246
|
-
### [
|
|
308
|
+
### [Duration](https://seblify.com/components/duration)
|
|
247
309
|
|
|
248
|
-
-
|
|
310
|
+
- Added Duration formatter component
|
|
311
|
+
- Added code snippets to docs examples
|
|
249
312
|
|
|
250
|
-
### [
|
|
313
|
+
### [formatDuration](https://seblify.com/components/format-duration)
|
|
251
314
|
|
|
252
|
-
-
|
|
253
|
-
-
|
|
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
|
-
### [
|
|
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
|
|
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
|
|
265
|
-
-
|
|
266
|
-
- Added
|
|
267
|
-
- Added
|
|
268
|
-
- Added
|
|
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
|
-
### [
|
|
340
|
+
### [theme](https://seblify.com/components/theme)
|
|
274
341
|
|
|
275
|
-
- Added
|
|
276
|
-
|
|
277
|
-
|
|
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
|