@sharadox/graphical-user-interface-web-library 0.2.0-layout.13 → 0.2.0-layout.15

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
@@ -96,6 +96,11 @@ everything below it: on the page, in one part of it, or on one piece.
96
96
  | `…/checkbox` | `Checkbox({ label, checked?, defaultChecked?, onChange? })` | Outlined, filled once checked, the check growing in |
97
97
  | `…/radio-group` | `RadioGroup({ label, options, value?, defaultValue?, onChange?, error? })` | Native radios sharing a name, round, filled once chosen |
98
98
  | `…/switch` | `Switch({ label, checked?, defaultChecked?, onChange? })` | On/off; flips at once, busy while an async change runs, back if refused |
99
+ | `…/wrapper` | `Wrapper(box)` | The page's width: up to 1280, centered, 16 a side |
100
+ | `…/card` | `Card({ title?, headingLevel?, description?, action?, children })` | One thing: content on one side, its actions centered on the other |
101
+ | `…/separator` | `Separator({ orientation?, color?, line? })` | A horizontal (or vertical) line in the line style |
102
+ | `…/badge` | `Badge(box)` | A short label in running text: small, filled, brand |
103
+ | `…/avatar` | `Avatar({ name, src?, size?, color?, corner? })`, `initials(name)` | A picture, or the initials when there is none; round |
99
104
 
100
105
  ### Box
101
106
 
@@ -1 +1 @@
1
- :where(.avatar){overflow:hidden;inline-size:var(--current-minimum-size);block-size:var(--current-minimum-size);font-weight:600;line-height:1}:where(.picture){display:block;inline-size:100%;block-size:100%;object-fit:cover}
1
+ :where(.avatar){overflow:hidden;inline-size:var(--current-minimum-size);block-size:var(--current-minimum-size);font-size:calc(var(--current-minimum-size)*.4);font-weight:600;line-height:1}:where(.picture){display:block;inline-size:100%;block-size:100%;object-fit:cover}
@@ -2,6 +2,8 @@
2
2
  overflow: hidden;
3
3
  inline-size: var(--current-minimum-size);
4
4
  block-size: var(--current-minimum-size);
5
+ // Two letters always fit: the initials grow with the avatar.
6
+ font-size: calc(var(--current-minimum-size) * 0.4);
5
7
  font-weight: 600;
6
8
  line-height: 1;
7
9
  }
@@ -1 +1 @@
1
- :where(.body){flex:1 1 240px;min-inline-size:0}:where(.title){margin:0;font-size:var(--scale-16);font-weight:600}:where(.description){margin:0;color:var(--middleground-color);font-size:var(--scale-14)}:where(.action){flex:none}
1
+ :where(.body){flex:1 1 240px;min-inline-size:0}:where(.title){margin:0;font-size:var(--scale-16);font-weight:600}:where(.description){margin:0;color:inherit;opacity:.7;font-size:var(--scale-14)}:where(.action){flex:none}
@@ -11,7 +11,9 @@
11
11
 
12
12
  :where(.description) {
13
13
  margin: 0;
14
- color: var(--middleground-color);
14
+ // The card's own text, softened, so it reads on any fill.
15
+ color: inherit;
16
+ opacity: 0.7;
15
17
  font-size: var(--scale-14);
16
18
  }
17
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sharadox/graphical-user-interface-web-library",
3
- "version": "0.2.0-layout.13",
3
+ "version": "0.2.0-layout.15",
4
4
  "description": "One generic, accessible, fully configurable component library: every interface piece in every variant, color, corner, line, size and state, styled from a single source of truth that each brand configures.",
5
5
  "private": false,
6
6
  "license": "SEE LICENSE IN LICENCA.md",