wertyz-vue 3.16.1 → 3.17.2

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/DESIGN.md CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: Wertyz – Ostrý minimál
3
3
  description: Design system of Wertyz web apps (public transport ticketing, fleet and payment back-office). Vue 3 component library wertyz-vue; dense data screens shown inside the WEB_Wertyz CMS.
4
- version: 3.13.1
4
+ version: 3.17.0
5
5
  colors:
6
6
  primary: "#009999" # --green: actions, active states, accents, links
7
7
  primary-dark: "#006666" # --darkgreen: hover of primary, section titles
@@ -41,7 +41,7 @@ typography:
41
41
  tab-label: { size: 15px, weight: 600 }
42
42
  body: { size: 14px, weight: 400, line-height: 1.35 }
43
43
  label-caps: { size: 12px, weight: 600, letter-spacing: 0.05em, transform: uppercase }
44
- kpi-value: { size: 30px, weight: 500, line-height: 1, color: coal }
44
+ kpi-value: { size: 28px, weight: 600, line-height: 1, color: coal } # orange / red KPI: --orange-strong / --darkred
45
45
  result-count: { size: 20px, weight: 600 }
46
46
  shape:
47
47
  radius-sm: 3px # checkbox, radio, tags, chips, pagination, small icon buttons
@@ -86,15 +86,16 @@ numbers all day**. The visual language is called **"Ostrý minimál"** (sharp mi
86
86
  the light-tint badges (success 2.86, warning 1.80, error 3.27), `--grey` text on white (1.80).
87
87
  Red (decision 2026-11-18): `--red #FF0000` is 4.0:1 on white — red text, red outline buttons, `red--full`
88
88
  fills, required marks, error toasts and the active error badge use `--darkred #AB0101` (7.7:1); raw `--red` only
89
- for error field borders (non-text, 3:1 suffices) and the KPI red edge.
89
+ for error field borders (non-text, 3:1 suffices) and the KPI red head line (non-text).
90
90
  How they are fixed:
91
91
  - Text on a tint uses the dark variant: success `--darkgreen`, warning `--orange-ink`, error `--darkred`.
92
- - Orange fills and orange text use `--orange-strong`; raw `--orange` is only for non-text marks (KPI bar, chart series).
92
+ - Orange fills and orange text use `--orange-strong`; raw `--orange` is only for non-text marks (KPI head line, chart series).
93
93
  - Chart data labels pick coal or white by contrast with the series colour.
94
94
  - **Coal anchors**: the sidebar menu and table headers are near-black `#231F20` with a faint teal
95
95
  radial glow and a 1 px diagonal hairline texture. This dark/light contrast is the signature.
96
96
  - **3 px accent bars** mark "active / selected / important": top border of the active tab, left border of a
97
- hovered table row, left edge of a KPI card, left border of a required input.
97
+ hovered table row, left border of a required input. (KPI cards dropped their left edge in 3.17: a coloured
98
+ left bar on a card is the generic AI-dashboard tell.)
98
99
  - **Snappy motion**: colour changes `.12s linear`. No bounce, no scale, no long fades.
99
100
  - **Density over air.** Base unit 5 px. Data first, chrome second. Light weight (300) for big input values,
100
101
  semibold (600) for labels and headings.
@@ -147,7 +148,7 @@ Apps render inside the WEB_Wertyz CMS (iframe), so there is no app top bar of ou
147
148
  radius 4 px, padding 20 px — list table card, detail content items, chart cards, KPI cards, option tiles.
148
149
  Card titles: 15 px semibold coal, sentence case (`WertyzFormSection`, chart cards). 12 px uppercase is only
149
150
  for micro-labels (table head, KPI label). **The teal mark means active / selected / important only**
150
- (active tab, active menu item, selected row/tile, KPI edge, required input) — never decoration on titles. A tab bar and the card under it form **one box**: the bar
151
+ (active tab, active menu item, selected row/tile, required input; KPI cards use orange / red only for attention) — never decoration on titles. A tab bar and the card under it form **one box**: the bar
151
152
  carries the card's 1 px side edges and the top radius, the card has no top edge — so the active white tab
152
153
  never sticks out past the card border. Inside a card, tool rows (table search / count) are separated by
153
154
  a hairline, never by another tinted band.
@@ -254,12 +255,15 @@ Usually full width of their grid column (`btn-block`). Labels sentence case, sho
254
255
  hangs flush underneath (square top corners, 1 px `#D8D4D4`, bottom radius 4 px, floating shadow,
255
256
  40 px rows, hover = light-teal row + 3 px teal left accent). The active tab always stays in the strip.
256
257
 
257
- ### KPI card
258
- White, radius 4 px, 1 px card border, **3 px coloured left accent** (teal default; dark teal / orange / red /
259
- blue / grey by meaning), padding 14 × 16 px. Label 12 px uppercase semibold muted (+ 14 px icon), value
260
- 30 px medium coal + 14 px unit, optional trend badge (radius 3 px, success/error tint), optional thin progress
261
- bar, optional description. Clickable variant: hover light-teal bg + teal-tinted border. Grid: auto-fill, min
262
- 160 px, gap 10 px.
258
+ ### KPI card (3.17)
259
+ Separate white cards (radius 4 px, 1 px card border, no shadow), grid auto-fit min 160 px, **gap 10 px**.
260
+ **Light head**: `--surface-well`, 12 px uppercase semibold `--darkgrey` label (+ 14 px icon), padding 7 × 16 px,
261
+ **2 px bottom line**: neutral `--card-border` by default, **orange / red only for a state that needs attention**
262
+ (colour on every card was the template look and pulled the eye evenly). `color` still tints the progress bar.
263
+ Body 16 px side padding: value 28 px semibold tabular, coal — **orange and red also colour the value**
264
+ (`--orange-strong`, `--darkred`) because those mean "needs attention"; 14 px unit, optional trend badge
265
+ (radius 3 px, success/error tint), optional thin progress bar, optional 12 px description.
266
+ Clickable variant: hover light-teal body + border in the card's colour. No left accent bar.
263
267
 
264
268
  ### Selectable tiles (WertyzTileSelect)
265
269
  Choice between options as horizontal **option cards** (package, tariff, payment type, card type) — built so
@@ -291,9 +295,10 @@ like the page header and a white 20 px X close (36 px click target, no red icon)
291
295
  focus (multiselect, datepicker, select2) — then the dialog itself, so nothing drops down by itself. Confirmation dialog: `--orange-strong` header bar, red confirm for
292
296
  destructive actions.
293
297
 
294
- ### Empty state
295
- 1 px **dashed** grey box, radius 4 px, padding 18 px: 38 px grey circle with icon, coal semibold title, muted
296
- description, optional `white` button. Compact variant without border.
298
+ ### Empty state (3.17)
299
+ A **grey well** like the table filter bar: `--surface-well`, 1 px card border, radius 4 px, padding 14 × 16 px;
300
+ plain 20 px icon (no circle), coal semibold title, muted description, optional `white` button right.
301
+ Compact variant: no well, no border. (The dashed box with an icon circle was a generic template.)
297
302
 
298
303
  ### Feedback
299
304
  Loader: teal spinner on white scrim. Small inline loader for buttons/sections. Progress bar teal on light
@@ -311,9 +316,10 @@ then dark teal, orange, dark blue, purple, light blue, yellow); light grey grid
311
316
 
312
317
  **Do**
313
318
  - Use teal for exactly one primary action per area; secondary actions are `white` outline buttons.
314
- - Mark state with the 3 px accent bar before reaching for new colours.
319
+ - Mark state with the 3 px accent bar (tabs, rows, inputs) or the 2 px line under the KPI head before
320
+ reaching for new colours.
315
321
  - Keep tables dense and scannable; uppercase micro-labels for headers and card field labels.
316
- - Use coal surfaces only for the sidebar and table headers.
322
+ - Use coal surfaces only for the sidebar and table headers (a coal KPI head was tried in 3.17 and was too loud).
317
323
  - Design every list screen also for 375 px: tab strip scrolls, table becomes cards.
318
324
 
319
325
  **Don't**
package/README.md CHANGED
@@ -1183,6 +1183,21 @@ nezmenila.**
1183
1183
 
1184
1184
  ## 12. Zoznam zmien
1185
1185
 
1186
+ ### 3.17.0 (november 2026)
1187
+
1188
+ - **`WertyzTileSelect`**: kompaktná dlaždica ako výber ikony tarify v Onboard (biela, tenký svetlozelený rámik,
1189
+ výber = zelený rámik). Dlaždica môže mať ikonu, text alebo oboje; `label` je nepovinný, nové pole položky `alt`
1190
+ (meno dlaždice len s ikonou). Zmizla značka radio/checkbox. **Predvolený `minWidth` je `'120px'`** (bol `'260px'`).
1191
+ - **`WertyzModal`**: prvok priamo za poslednou `WertyzFormSection` (tlačidlá, pole) má 15px medzeru. Pri svetlej
1192
+ hlavičke (napr. `modalHeaderStyle="background-color: white"`) sú X a titulok tmavé (boli biele, neviditeľné).
1193
+ - **`WertyzKpiCard`**: nový vzhľad – samostatné karty (medzera 10 px) so svetlou hlavičkou (`--surface-well`,
1194
+ uppercase popis) a 2 px čiarou – neutrálnou, oranžovou/červenou len pri `color="orange"`/`"red"`; hodnota 28 px. Zmizol farebný pruh vľavo.
1195
+ `orange` a `red` farbia aj číslo (`--orange-strong`, `--darkred`), preto len pre stav, ktorý si žiada pozornosť.
1196
+ - **`WertyzEmptyState`**: sivá plocha ako filtrovací panel (`--surface-well`, plný 1 px rámik) namiesto
1197
+ prerušovaného rámčeka; ikona bez sivého krúžku. `compact` bez zmeny.
1198
+ - **`WertyzIntervalPanel`**: prilepená lišta pri scrolle má padding, ide cez celú šírku obsahu a má tieň;
1199
+ tlačidlá ostávajú na mieste.
1200
+
1186
1201
  ### 3.16.0 (november 2026)
1187
1202
 
1188
1203
  - **`WertyzModal`**: každý priamy potomok tela má plnú šírku (`flex: 1 1 100%`) — `WertyzFormSection` priamo