@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 +1 -0
- package/chart/package.json +3 -2
- package/core.css +63 -0
- package/fesm2022/gravionlabs-helix-ui-chart.mjs +3 -3
- package/fesm2022/gravionlabs-helix-ui.mjs +812 -334
- package/fesm2022/gravionlabs-helix-ui.mjs.map +1 -1
- package/package.json +10 -8
- package/styles.css +173 -0
- package/tokens.css +40 -39
- package/types/gravionlabs-helix-ui.d.ts +175 -4
- package/validators/package.json +3 -2
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 |
|
package/chart/package.json
CHANGED
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.
|
|
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.
|
|
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.
|
|
317
|
+
version: "22.3.0",
|
|
318
318
|
ngImport: i0,
|
|
319
319
|
type: HxChart,
|
|
320
320
|
decorators: [{
|