@elegant-soft/design-system 0.0.0-stage → 0.1.0-preview.0.1.1

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 (36) hide show
  1. package/CHANGELOG.md +111 -0
  2. package/DESIGN.md +831 -0
  3. package/LICENSE +21 -0
  4. package/THIRD_PARTY_NOTICES.md +255 -0
  5. package/dist/assets/inter-bold.woff2 +0 -0
  6. package/dist/assets/inter-italic-variable.woff2 +0 -0
  7. package/dist/assets/inter-light.woff2 +0 -0
  8. package/dist/assets/inter-medium.woff2 +0 -0
  9. package/dist/assets/inter-regular.woff2 +0 -0
  10. package/dist/assets/inter-semi-bold.woff2 +0 -0
  11. package/dist/assets/jetbrains-mono-bold.woff2 +0 -0
  12. package/dist/assets/jetbrains-mono-medium.woff2 +0 -0
  13. package/dist/assets/jetbrains-mono-regular.woff2 +0 -0
  14. package/dist/assets/primeicons.eot +0 -0
  15. package/dist/assets/primeicons.svg +345 -0
  16. package/dist/assets/primeicons.ttf +0 -0
  17. package/dist/assets/primeicons.woff +0 -0
  18. package/dist/assets/primeicons.woff2 +0 -0
  19. package/dist/index.d.ts +2 -0
  20. package/dist/index.es.js +636 -0
  21. package/dist/styles.css +1 -0
  22. package/dist/theme/component-tokens.constants.d.ts +2 -0
  23. package/dist/theme/constants.d.ts +6 -0
  24. package/dist/theme/es-tokens.constants.d.ts +3 -0
  25. package/dist/theme/index.d.ts +4 -0
  26. package/dist/theme/preset.d.ts +5 -0
  27. package/dist/theme/preset.utils.d.ts +5 -0
  28. package/dist/theme/semantic-tokens.constants.d.ts +2 -0
  29. package/dist/theme/types.d.ts +11 -0
  30. package/dist/theme-mode/constants.d.ts +4 -0
  31. package/dist/theme-mode/index.d.ts +3 -0
  32. package/dist/theme-mode/theme-mode.utils.d.ts +5 -0
  33. package/dist/theme-mode/types.d.ts +2 -0
  34. package/package.json +91 -4
  35. package/tokens.json +2483 -0
  36. package/README.md +0 -3
package/CHANGELOG.md ADDED
@@ -0,0 +1,111 @@
1
+ # Changelog
2
+
3
+ All notable changes to `@elegant-soft/design-system` are documented here.
4
+
5
+ Format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
6
+
7
+ ---
8
+
9
+ ## [0.1.0-preview.0.1.1] — 2026-11-27
10
+
11
+ ### Changed
12
+
13
+ - The dark accent is light: `es.accent.color` `#101020` → `#ffffff` (`surface.0`),
14
+ `es.accent.contrast` `#ffffff` → `#18181b` (`surface.900`), `es.accent.hover` `#151528` →
15
+ `#e4e4e7` (`surface.200`), `es.accent.active` `#151528` → `#d4d4d8` (`surface.300`). The dark
16
+ `#101020` was not visible on the zinc surfaces (1.06:1 on the card); the light one stands at
17
+ 17.7:1. Affects, in the dark scheme only, everything that reads `--p-primary-color` /
18
+ `--p-es-accent-*`: the primary button (now white with dark text), the checked Checkbox,
19
+ RadioButton and ToggleSwitch, Slider, ProgressBar, Badge, the `text` / `link` / `outlined`
20
+ buttons without a severity, the floating label in focus, and the app styles that tint with the
21
+ accent (`color-mix(in srgb, var(--p-primary-color) 10%, transparent)` — PureQL Builder's picker,
22
+ chips and focus ring). The light scheme does not change.
23
+ - `es.focus.color` and `es.tabs.activeColor` refer to `es.accent.color` in both schemes (they are
24
+ no longer scheme-specific); their values do not change.
25
+ - Dark-only component overrides for the Aura tokens that read the dark primary palette directly:
26
+ `button.outlined.primary.borderColor` (the accent at 40%) and `tag.primary.background` /
27
+ `tag.primary.color` (the accent at 16% under the accent).
28
+ - `DESIGN.md` explains the accent of both schemes; the generated component tables show the Aura
29
+ value of the scheme an override leaves out instead of an empty cell.
30
+ - The compact density of Projector-UI before the move to the system (Aura 3) is back: Aura 2 pads
31
+ and sizes the components larger, so the system overrides the density tokens with the former
32
+ values. Semantic: `formField.paddingX/Y` `0.75rem / 0.5rem` → `0.625rem / 0.375rem` (`sm`
33
+ `0.5rem / 0.25rem`, `lg` `0.75rem / 0.5rem`), `list.option.padding` and
34
+ `list.optionGroup.padding` `0.5rem 0.75rem` → `0.25rem 0.625rem`, `list.header.padding`,
35
+ `navigation.submenuLabel.padding`, `overlay.popover.padding` `0.75rem` → `0.625rem`,
36
+ `overlay.modal.padding` `1.25rem` → `1.125rem`; and the paddings, gaps, widths and heights of 58
37
+ components (Button `iconOnlyWidth`, Select / MultiSelect / DatePicker / AutoComplete dropdowns,
38
+ DataTable and TreeTable cells, Tabs, Message, Toast, Tag, Chip, Badge, Avatar, Checkbox,
39
+ RadioButton, ToggleSwitch, Paginator, Dialog, Panel, Tooltip, …; the full list is in the
40
+ component tables of `DESIGN.md`). Affects every app: a button, a field and a Select are 31px high
41
+ instead of 35px (small 27px, large 39px), an icon-only button is 36px wide, a Select option is
42
+ 25px high, a DataTable cell is `0.5rem 0.875rem`. Colours, shadows, font sizes and the menu
43
+ paddings (`es.spacing.menuList` / `menuItem`) do not change.
44
+ - Smaller icons: `es.iconSize.sm` `1rem` → `0.875rem` (14px, every icon by default, the PrimeVue
45
+ `iconSize` semantic), `es.iconSize.md` `1.5rem` → `1.125rem` (18px, `es-icon-md`); `es.iconSize.lg`
46
+ stays `2rem`. The glyphs of PrimeIcons 7 are larger than those of PrimeIcons 8 in the same
47
+ square, so the icons of the apps look as before. Affects every `pi` icon, the icons of buttons
48
+ (the small button too) and menu items (a menu item is 30px high instead of 32px).
49
+ - No more 13.33px text: `button`, `input`, `select` and `textarea` inherit the font size (they
50
+ inherited only the family, and the browser gave them 13.33px), and the PrimeVue Tab, the
51
+ Paginator and the Stepper step header — `<button>`s PrimeVue gives no size and Aura 2 has no
52
+ token for — take `es.fontSize.sm` (14px). Affects the tab labels (a tab is 46px high instead of
53
+ 45px), the page numbers of the Paginator and the step titles; buttons, fields and menus keep
54
+ their sizes.
55
+ - Every control is `es.fontSize.sm` (14px), not the 16px of the page (Aura 2 has a font size
56
+ token only for the `sm` / `lg` sizes), except the `size="large"` variants: MultiSelect,
57
+ CascadeSelect and TreeSelect (31px high like Select instead of 34px; their chips too),
58
+ InputGroupAddon, the FloatLabel label, the overlays of Select, MultiSelect, AutoComplete,
59
+ CascadeSelect, TreeSelect, DatePicker (days, week days, month and year, time) and Password,
60
+ SelectButton and ToggleButton (31px instead of 34px), Listbox (an option 25px instead of 28px),
61
+ Chip (29px instead of 32px), TieredMenu, ContextMenu, Menubar, MegaMenu, PanelMenu (an item 30px
62
+ instead of 32px) and Breadcrumb. Text content — Dialog, Card, Panel and Accordion bodies,
63
+ Message and Toast — stays 16px.
64
+
65
+ ### Added
66
+
67
+ - The showcase: an «Акцент» section on the components page, in both themes — the PrimeVue controls
68
+ that take the accent and Builder-style selection (a picker with a selected option, chips, a focus
69
+ ring, a field in focus).
70
+ - JetBrains Mono 2.304 (SIL Open Font License 1.1; the NL build without code ligatures, so `!=`,
71
+ `>=` and `=>` show as typed; Regular 400, Medium 500, Bold 700, WOFF2 with Latin and Cyrillic) in
72
+ `styles.css` and `dist/assets`, and the `es.fontFamilyMono` token
73
+ (`--p-es-font-family-mono`, `'JetBrains Mono', ui-monospace, monospace`) for everything «code»:
74
+ JSON, PureQL expressions, identifiers. `code`, `kbd`, `pre` and `samp` take it. The showcase shows
75
+ it on the typography page.
76
+ - `es.radius.inner` (`--p-es-radius-inner`, `6px`) — the radius of a block inside a card (an item of
77
+ an editor list, a JSON or code preview), so such blocks no longer borrow `es.radius.field`.
78
+
79
+ ---
80
+
81
+ ## [0.1.0-preview.0.1.0] — 2026-11-26
82
+
83
+ The first release: the shared theme of the DSS UIs.
84
+
85
+ ### Added
86
+
87
+ - The `es` semantic layer — the tokens apps use: `es.surface.*` (page, card, hover, field, mask),
88
+ `es.text.*`, `es.border.*`, `es.accent.*`, `es.highlight.*`, `es.interactive.hoverBackground`,
89
+ `es.focus.color`, `es.tabs.activeColor`, `es.status.*` (danger, success, warning, info),
90
+ `es.fontFamily`, `es.fontSize.*`, `es.iconSize.*`, `es.radius.*` (field, control, card),
91
+ `es.shadow.*` (raised, raisedHover, ambient, overlay), `es.layout.headerHeight` and
92
+ `es.spacing.menuList` / `menuItem`, light and dark, as `--p-es-*` CSS variables.
93
+ - `esPreset` (Aura 2 + the `es` layer): the PrimeVue semantic tokens of both color schemes and the
94
+ overridden components (Tabs, the Toast / Message close buttons, the Button radius, primary focus
95
+ ring and the transparent secondary) refer to the `es` tokens.
96
+ - Selected items — options of Select, MultiSelect and Listbox, DataTable rows, active menu items —
97
+ take the neutral `es.highlight.*` colour and keep it on focus and on hover.
98
+ - `esPrimeVueConfig`, `ES_THEME_OPTIONS` (`darkModeSelector: '.dark'`), `ES_DANGER_MENU_ITEM_CLASS`.
99
+ - `extendEsPreset(tokens)` — an app adds its own tokens in its own namespace; a name of the system
100
+ (`es`, an Aura primitive or semantic) is refused.
101
+ - The theme mode: `DARK_MODE_CLASS`, `applyThemeMode`, `readStoredThemeMode(key)` /
102
+ `storeThemeMode(key, mode)` — every app keeps its own theme under its own key.
103
+ - `styles.css`: PrimeFlex 4, PrimeIcons 7, Inter (300–700 and italic, WOFF2), the base rules, the
104
+ `color-scheme` of `html` / `html.dark`, the `sm` text of buttons, fields, menus and tooltips, the
105
+ red menu item, the text-button hover, the dialog close button and the `es-icon-sm/md/lg`,
106
+ `es-toolbar-button`, `es-multiline` classes. Fonts ship as files.
107
+ - `DESIGN.md` (Russian) — the rules of the visual language and the generated tables of every token,
108
+ palette, overridden component token and the action icons; `tokens.json` — the same tokens as data.
109
+ - `THIRD_PARTY_NOTICES.md` — the licenses of Inter (SIL OFL 1.1), PrimeIcons and PrimeFlex (MIT).
110
+ - Peer dependencies `primevue` 4.5.5 and `@primeuix/themes` 2.0.3 (exact), the last MIT versions:
111
+ an app lists none of the Prime packages, npm installs them with the package.