@codemonster-ru/vueforge 0.57.0 → 0.58.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 CHANGED
@@ -64,6 +64,7 @@ import {
64
64
  AccordionItem,
65
65
  Slider,
66
66
  Stepper,
67
+ Timeline,
67
68
  Rating,
68
69
  Tree,
69
70
  TreeSelect,
@@ -138,6 +139,7 @@ app.use(VueForge, {
138
139
  />
139
140
  <Slider v-model="volume" :min="0" :max="100" :step="5" show-value />
140
141
  <Stepper v-model="step" :steps="steps" clickable />
142
+ <Timeline :items="timelineItems" />
141
143
  <Rating v-model="rating" allow-half />
142
144
  <Tree v-model="selectedNode" v-model:expandedKeys="expandedKeys" :items="treeItems" />
143
145
  <TreeSelect v-model="selectedNode" v-model:expandedKeys="expandedKeys" :items="treeItems" placeholder="Select node" />
@@ -252,6 +254,7 @@ app.use(VueForge, {
252
254
  - Avatar
253
255
  - Slider
254
256
  - Stepper
257
+ - Timeline
255
258
  - Rating
256
259
  - Tree
257
260
  - TreeSelect
@@ -2189,6 +2192,49 @@ Component tokens (override via `theme.overrides.components.stepper`):
2189
2192
  - `small.indicatorSize`, `small.indicatorFontSize`, `small.labelFontSize`, `small.descriptionFontSize`, `small.lineLength`, `small.itemGap`
2190
2193
  - `large.indicatorSize`, `large.indicatorFontSize`, `large.labelFontSize`, `large.descriptionFontSize`, `large.lineLength`, `large.itemGap`
2191
2194
 
2195
+ ## Timeline
2196
+
2197
+ Props:
2198
+
2199
+ - `items?: Array<{ id?: string | number; title?: string; description?: string; date?: string; icon?: string; status?: 'neutral' | 'info' | 'success' | 'warn' | 'danger' }>` (default `[]`)
2200
+ - `orientation?: 'vertical' | 'horizontal'` (default `vertical`)
2201
+ - `size?: 'small' | 'normal' | 'large'` (default `normal`)
2202
+ - `ariaLabel?: string`
2203
+ - `ariaLabelledby?: string`
2204
+
2205
+ Slots:
2206
+
2207
+ - `marker` (props: `item`, `index`)
2208
+ - `item` (props: `item`, `index`)
2209
+
2210
+ Example:
2211
+
2212
+ ```vue
2213
+ <Timeline
2214
+ :items="[
2215
+ { title: 'Created', description: 'Issue created', date: '2026-02-17', status: 'info' },
2216
+ { title: 'In progress', description: 'Developer started work', date: '2026-02-18', status: 'warn' },
2217
+ { title: 'Done', description: 'Issue closed', date: '2026-02-19', status: 'success' },
2218
+ ]"
2219
+ />
2220
+ <Timeline :items="events" orientation="horizontal" size="small" />
2221
+ ```
2222
+
2223
+ ### Timeline tokens
2224
+
2225
+ Component tokens (override via `theme.overrides.components.timeline`):
2226
+
2227
+ - `gap`, `itemGap`
2228
+ - `markerSize`, `markerBorderRadius`, `markerBorderWidth`, `markerBackgroundColor`, `markerBorderColor`, `markerTextColor`, `markerIconSize`, `dotSize`
2229
+ - `lineThickness`, `lineLength`, `lineColor`
2230
+ - `titleFontSize`, `titleColor`, `descriptionFontSize`, `descriptionColor`, `dateFontSize`, `dateColor`
2231
+ - `info.markerBackgroundColor`, `info.markerBorderColor`, `info.markerTextColor`, `info.lineColor`
2232
+ - `success.markerBackgroundColor`, `success.markerBorderColor`, `success.markerTextColor`, `success.lineColor`
2233
+ - `warn.markerBackgroundColor`, `warn.markerBorderColor`, `warn.markerTextColor`, `warn.lineColor`
2234
+ - `danger.markerBackgroundColor`, `danger.markerBorderColor`, `danger.markerTextColor`, `danger.lineColor`
2235
+ - `small.itemGap`, `small.markerSize`, `small.markerIconSize`, `small.dotSize`, `small.lineLength`, `small.dateFontSize`, `small.titleFontSize`, `small.descriptionFontSize`
2236
+ - `large.itemGap`, `large.markerSize`, `large.markerIconSize`, `large.dotSize`, `large.lineLength`, `large.dateFontSize`, `large.titleFontSize`, `large.descriptionFontSize`
2237
+
2192
2238
  ## Rating
2193
2239
 
2194
2240
  Props: