@gravionlabs/helix-ui 22.7.0 → 22.9.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
@@ -46,6 +46,7 @@ import { HxChart } from '@gravionlabs/helix-ui/chart';
46
46
  | `HxRadio` | `input[hx-radio]` | native radio |
47
47
  | `HxSelect` | `hx-select` | CDK listbox in an overlay, all three forms APIs |
48
48
  | `HxDivider` | `hx-divider` | horizontal/vertical, labelled |
49
+ | `HxList`, `HxListRow` | `hx-list`, `[hx-list-row]` | list of button and link rows with roving focus, selected and current state |
49
50
  | `HxKbd` | `hx-kbd` | key caps of a shortcut; `hxTooltipShortcut` on the tooltip |
50
51
  | `HxTooltip` | `[hx-tooltip]` | CDK overlay, hover and focus |
51
52
  | `HxAvatar`, `HxAvatarGroup` | `hx-avatar`, `hx-avatar-group` | picture, icon or initials; sizes, shapes; the group overlaps its avatars |
@@ -1,4 +1,5 @@
1
1
  {
2
2
  "module": "../fesm2022/gravionlabs-helix-ui-chart.mjs",
3
- "typings": "../types/gravionlabs-helix-ui-chart.d.ts"
4
- }
3
+ "typings": "../types/gravionlabs-helix-ui-chart.d.ts",
4
+ "types": "../types/gravionlabs-helix-ui-chart.d.ts"
5
+ }
package/core.css CHANGED
@@ -1477,6 +1477,69 @@
1477
1477
  }
1478
1478
  }
1479
1479
 
1480
+ /* field */
1481
+ /*
1482
+ * Form field: `<hx-field>`, a column of label, control, hint and error. A checkbox, radio or switch stands
1483
+ * before its label on one line. Type scale and spacing tokens; the colours are the semantic text and form
1484
+ * field tokens.
1485
+ */
1486
+ .hx-field {
1487
+ display: grid;
1488
+ grid-template-columns: minmax(0, 1fr);
1489
+ row-gap: var(--h-space-1);
1490
+ }
1491
+
1492
+ .hx-field-label {
1493
+ font-size: var(--h-font-size-sm);
1494
+ font-weight: 500;
1495
+ }
1496
+
1497
+ .hx-field-required {
1498
+ color: var(--h-form-field-invalid-placeholder-color);
1499
+ }
1500
+
1501
+ .hx-field-control {
1502
+ display: flex;
1503
+ flex-direction: column;
1504
+ align-items: flex-start;
1505
+ min-width: 0;
1506
+ }
1507
+
1508
+ .hx-field-control > :is(.hx-input, .hx-select) {
1509
+ align-self: stretch;
1510
+ }
1511
+
1512
+ .hx-field-hint {
1513
+ color: var(--h-text-muted-color);
1514
+ font-size: var(--h-font-size-sm);
1515
+ }
1516
+
1517
+ .hx-field-error {
1518
+ color: var(--h-form-field-invalid-placeholder-color);
1519
+ font-size: var(--h-font-size-sm);
1520
+ }
1521
+
1522
+ /* the empty live region stays in the accessibility tree but takes no room, not even a gap */
1523
+ .hx-field-error:not(.hx-field-error-shown) {
1524
+ position: absolute;
1525
+ }
1526
+
1527
+ /* checkbox, radio, switch: control and label on one line, the texts below */
1528
+ .hx-field:has(> .hx-field-control > :is(.hx-checkbox, .hx-radio, .hx-switch)) {
1529
+ grid-template-columns: auto minmax(0, 1fr);
1530
+ align-items: center;
1531
+ column-gap: var(--h-space-2);
1532
+ }
1533
+ .hx-field:has(> .hx-field-control > :is(.hx-checkbox, .hx-radio, .hx-switch)) > .hx-field-control {
1534
+ grid-area: 1/1;
1535
+ }
1536
+ .hx-field:has(> .hx-field-control > :is(.hx-checkbox, .hx-radio, .hx-switch)) > .hx-field-label {
1537
+ grid-area: 1/2;
1538
+ }
1539
+ .hx-field:has(> .hx-field-control > :is(.hx-checkbox, .hx-radio, .hx-switch)) > :is(.hx-field-hint, .hx-field-error) {
1540
+ grid-column: 1/-1;
1541
+ }
1542
+
1480
1543
  /* fieldset */
1481
1544
  /*
1482
1545
  * Fieldset: `<hx-fieldset>`. A native fieldset and legend from the `--h-fieldset-*` tokens; a toggleable legend is a
@@ -214,7 +214,7 @@ var HxChart = class HxChart {
214
214
  }
215
215
  static ɵfac = i0.ɵɵngDeclareFactory({
216
216
  minVersion: "12.0.0",
217
- version: "22.2.6",
217
+ version: "22.3.0",
218
218
  ngImport: i0,
219
219
  type: HxChart,
220
220
  deps: [],
@@ -222,7 +222,7 @@ var HxChart = class HxChart {
222
222
  });
223
223
  static ɵcmp = i0.ɵɵngDeclareComponent({
224
224
  minVersion: "17.2.0",
225
- version: "22.2.6",
225
+ version: "22.3.0",
226
226
  type: HxChart,
227
227
  isStandalone: true,
228
228
  selector: "hx-chart",
@@ -314,7 +314,7 @@ var HxChart = class HxChart {
314
314
  };
315
315
  i0.ɵɵngDeclareClassMetadata({
316
316
  minVersion: "12.0.0",
317
- version: "22.2.6",
317
+ version: "22.3.0",
318
318
  ngImport: i0,
319
319
  type: HxChart,
320
320
  decorators: [{