@gravionlabs/helix-ui 22.9.1 → 22.10.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/core.css +13 -1
- package/fesm2022/gravionlabs-helix-ui.mjs +21 -1
- package/fesm2022/gravionlabs-helix-ui.mjs.map +1 -1
- package/package.json +3 -2
- package/styleguide/STYLEGUIDE.md +99 -0
- package/styleguide/color.md +122 -0
- package/styleguide/components.md +150 -0
- package/styleguide/dialogs.md +120 -0
- package/styleguide/form-patterns.md +196 -0
- package/styleguide/forms.md +174 -0
- package/styleguide/platform.md +118 -0
- package/styleguide/ux-review-rubric.md +114 -0
- package/styleguide/ux-rules.md +92 -0
- package/styles.css +13 -1
- package/tokens.css +1 -1
- package/types/gravionlabs-helix-ui.d.ts +11 -2
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# UX rules for desktop apps
|
|
2
|
+
|
|
3
|
+
The rules that apps on Helix (poimen, nixe) follow for feedback. They are short on purpose: an agent that writes UI
|
|
4
|
+
code checks a change against them, and a reviewer checks the same list. An app links to this page from its
|
|
5
|
+
`AGENTS.md`. Each rule names the Helix component or token that carries it.
|
|
6
|
+
|
|
7
|
+
## Feedback by duration
|
|
8
|
+
|
|
9
|
+
Every action answers at once. What else the user sees depends on how long the action takes.
|
|
10
|
+
|
|
11
|
+
| Duration | What the user sees | Helix |
|
|
12
|
+
| --------- | ---------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ |
|
|
13
|
+
| Any | The control that started it is disabled, so it cannot be started twice | `[disabled]`, or `[loading]` on [`hx-button`](https://gravionlabs.github.io/helix/components/button) |
|
|
14
|
+
| Under 1 s | Nothing more | |
|
|
15
|
+
| From 1 s | A spinner, or a changed label ("Saving…") | `[loading]` on `hx-button`, [`hx-progress-spinner`](https://gravionlabs.github.io/helix/components/progress) |
|
|
16
|
+
| From 3 s | Named steps ("Uploading 2 of 5") or a progress bar | [`hx-progress-bar`](https://gravionlabs.github.io/helix/components/progress), [`hx-skeleton`](https://gravionlabs.github.io/helix/components/skeleton) for content |
|
|
17
|
+
|
|
18
|
+
The visible loading state is delayed by about 200 ms. An action that ends before that shows no flash of a spinner.
|
|
19
|
+
Disabling the control is not delayed.
|
|
20
|
+
|
|
21
|
+
## Which element for what
|
|
22
|
+
|
|
23
|
+
| Need | Use | Helix |
|
|
24
|
+
| -------------------------------------------------------------- | ------------------------------------------------------------ | ------------------------------------------------------------------------------------------- |
|
|
25
|
+
| Name a control | Tooltip | [`hx-tooltip`](https://gravionlabs.github.io/helix/components/tooltip) |
|
|
26
|
+
| A small form, a few fields, no decision that blocks the app | Popover | [`hx-popover`](https://gravionlabs.github.io/helix/components/popover) |
|
|
27
|
+
| A decision that blocks: the app cannot go on without an answer | Dialog, and only then | [`hx-dialog`](https://gravionlabs.github.io/helix/components/dialog), [`HxConfirmationService`](https://gravionlabs.github.io/helix/components/confirm) |
|
|
28
|
+
| A result that passes: saved, copied, deleted | Toast | [`hx-toast`](https://gravionlabs.github.io/helix/components/toast), `HxMessageService` |
|
|
29
|
+
| Text the user has to read, retry or copy | Inline message, next to what it is about, until it is solved | [`hx-message`](https://gravionlabs.github.io/helix/components/message) |
|
|
30
|
+
|
|
31
|
+
A toast goes away by itself, so it never carries an error the user has to act on or an error text to copy. Such an
|
|
32
|
+
error is an inline message.
|
|
33
|
+
|
|
34
|
+
## Confirm or undo
|
|
35
|
+
|
|
36
|
+
- A **reversible** action runs at once and shows a toast with an Undo action
|
|
37
|
+
(`HxMessageService.add({ …, action: { label: 'Undo', run } })`).
|
|
38
|
+
- An action that **cannot be undone** asks first, in a dialog whose default is Cancel: the focus starts on the reject
|
|
39
|
+
button and the accept button names the action ("Delete", not "OK"), with `acceptSeverity: 'danger'`.
|
|
40
|
+
`HxConfirmationService` does both.
|
|
41
|
+
|
|
42
|
+
Do not ask before a reversible action: a dialog the user always accepts teaches them to accept every dialog.
|
|
43
|
+
|
|
44
|
+
## Tooltips
|
|
45
|
+
|
|
46
|
+
- Never on a control with a visible label: the tooltip would repeat it. Icon-only buttons get one, together with
|
|
47
|
+
an `aria-label`.
|
|
48
|
+
- Never for content the user must read. A tooltip is not reachable on touch and disappears with the pointer; text
|
|
49
|
+
the user needs is an inline message or visible text.
|
|
50
|
+
- The shortcut goes into the tooltip: `[hxTooltipShortcut]="['Ctrl', 'K']"` (shown as [`hx-kbd`](https://gravionlabs.github.io/helix/components/kbd)),
|
|
51
|
+
and `aria-keyshortcuts` on the control.
|
|
52
|
+
- Text that is cut off with an ellipsis gets a tooltip with the full text, shown only then:
|
|
53
|
+
`hxTooltipWhenTruncated`.
|
|
54
|
+
|
|
55
|
+
## Empty and error states
|
|
56
|
+
|
|
57
|
+
- An empty state and an error state both **name the next action**: "No projects yet. Create a project" with the
|
|
58
|
+
button, or "The order could not be saved. Try again" with a retry. A state that only says what is wrong is not
|
|
59
|
+
finished.
|
|
60
|
+
- Texts are in **sentence case** ("Save changes", not "Save Changes"), and do not use "please", "simply" or "just".
|
|
61
|
+
Say what happened and what to do, in the fewest words.
|
|
62
|
+
- An error says what failed in the words of the user, not an exception text.
|
|
63
|
+
|
|
64
|
+
Carried by [`hx-message`](https://gravionlabs.github.io/helix/components/message) (inline, `severity="error"`) and a button inside it for the action.
|
|
65
|
+
|
|
66
|
+
## Motion
|
|
67
|
+
|
|
68
|
+
- Every movement (slide, scale, spin, shake, slide-in of a toast or drawer) has a `prefers-reduced-motion: reduce`
|
|
69
|
+
variant that removes the movement. Fades may stay.
|
|
70
|
+
- Durations come from the token `transition.duration` (`--h-transition-duration`, 0.2 s), not from a literal
|
|
71
|
+
in a component.
|
|
72
|
+
|
|
73
|
+
Helix components follow this already (toast, drawer, progress, skeleton, carousel, message, menu); an app does the same
|
|
74
|
+
for its own animations:
|
|
75
|
+
|
|
76
|
+
```css
|
|
77
|
+
@media (prefers-reduced-motion: reduce) {
|
|
78
|
+
.my-panel {
|
|
79
|
+
animation: none;
|
|
80
|
+
transition: opacity var(--h-transition-duration);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
## Checklist for a review
|
|
86
|
+
|
|
87
|
+
1. Does the control disable at once, and does a long action show a delayed spinner or progress?
|
|
88
|
+
2. Is each message the right element: tooltip, popover, dialog, toast, inline message?
|
|
89
|
+
3. Reversible: Undo toast. Irreversible: dialog with Cancel as the default.
|
|
90
|
+
4. No tooltip on a labelled control or with text the user must read; shortcuts in the tooltip.
|
|
91
|
+
5. Do empty and error states name the next action, in sentence case, without "please", "simply", "just"?
|
|
92
|
+
6. Does each animation have a `prefers-reduced-motion` variant?
|
package/styles.css
CHANGED
|
@@ -2821,12 +2821,24 @@
|
|
|
2821
2821
|
* Dialog: `<hx-dialog>` and the dialogs of `HxDialogService`. The box (`.hx-dialog`) is a grid of the title, the
|
|
2822
2822
|
* content and the footer, with the close button in the title row (it comes last in the DOM, so the content gets the
|
|
2823
2823
|
* focus first). The mask is `.hx-dialog-backdrop`; the pane and the global positioning are the CDK's. The content
|
|
2824
|
-
* scrolls when the dialog is taller than the screen.
|
|
2824
|
+
* scrolls when the dialog is taller than the screen. `.hx-dialog-size-sm|md|lg` set the width of the pane.
|
|
2825
2825
|
*/
|
|
2826
2826
|
.hx-dialog-anchor {
|
|
2827
2827
|
display: none;
|
|
2828
2828
|
}
|
|
2829
2829
|
|
|
2830
|
+
.hx-dialog-size-sm {
|
|
2831
|
+
width: var(--h-dialog-sm-width);
|
|
2832
|
+
}
|
|
2833
|
+
|
|
2834
|
+
.hx-dialog-size-md {
|
|
2835
|
+
width: var(--h-dialog-md-width);
|
|
2836
|
+
}
|
|
2837
|
+
|
|
2838
|
+
.hx-dialog-size-lg {
|
|
2839
|
+
width: var(--h-dialog-lg-width);
|
|
2840
|
+
}
|
|
2841
|
+
|
|
2830
2842
|
.hx-dialog-backdrop {
|
|
2831
2843
|
background: var(--h-mask-background);
|
|
2832
2844
|
}
|
package/tokens.css
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
:root,:host{--h-confirmpopup-footer-gap:var(--h-space-2);--h-confirmpopup-footer-padding:0 var(--h-overlay-popover-padding) var(--h-overlay-popover-padding) var(--h-overlay-popover-padding);--h-confirmpopup-icon-size:1.5rem;--h-confirmpopup-icon-color:var(--h-overlay-popover-color);--h-confirmpopup-content-padding:var(--h-overlay-popover-padding);--h-confirmpopup-content-gap:var(--h-space-4);--h-confirmpopup-background:var(--h-overlay-popover-background);--h-confirmpopup-border-color:var(--h-overlay-popover-border-color);--h-confirmpopup-color:var(--h-overlay-popover-color);--h-confirmpopup-border-radius:var(--h-overlay-popover-border-radius);--h-confirmpopup-shadow:var(--h-overlay-popover-shadow);--h-confirmpopup-gutter:10px;--h-confirmpopup-arrow-offset:1.25rem;}
|
|
19
19
|
:root,:host{--h-datatable-paginator-bottom-border-color:var(--h-datatable-border-color);--h-datatable-paginator-bottom-border-width:0 0 1px 0;--h-datatable-paginator-top-border-color:var(--h-datatable-border-color);--h-datatable-paginator-top-border-width:0 0 1px 0;--h-datatable-filter-inline-gap:var(--h-space-2);--h-datatable-filter-constraint-focus-background:var(--h-list-option-focus-background);--h-datatable-filter-constraint-selected-background:var(--h-list-option-selected-background);--h-datatable-filter-constraint-selected-focus-background:var(--h-list-option-selected-focus-background);--h-datatable-filter-constraint-color:var(--h-list-option-color);--h-datatable-filter-constraint-focus-color:var(--h-list-option-focus-color);--h-datatable-filter-constraint-selected-color:var(--h-list-option-selected-color);--h-datatable-filter-constraint-selected-focus-color:var(--h-list-option-selected-focus-color);--h-datatable-filter-constraint-padding:var(--h-list-option-padding);--h-datatable-filter-constraint-border-radius:var(--h-list-option-border-radius);--h-datatable-filter-constraint-separator-border-color:var(--h-content-border-color);--h-datatable-filter-constraint-list-padding:var(--h-list-padding);--h-datatable-filter-constraint-list-gap:var(--h-list-gap);--h-datatable-filter-rule-border-color:var(--h-content-border-color);--h-datatable-filter-overlay-popover-background:var(--h-overlay-popover-background);--h-datatable-filter-overlay-popover-border-color:var(--h-overlay-popover-border-color);--h-datatable-filter-overlay-popover-border-radius:var(--h-overlay-popover-border-radius);--h-datatable-filter-overlay-popover-color:var(--h-overlay-popover-color);--h-datatable-filter-overlay-popover-shadow:var(--h-overlay-popover-shadow);--h-datatable-filter-overlay-popover-padding:var(--h-overlay-popover-padding);--h-datatable-filter-overlay-popover-gap:var(--h-space-2);--h-datatable-filter-overlay-select-background:var(--h-overlay-select-background);--h-datatable-filter-overlay-select-border-color:var(--h-overlay-select-border-color);--h-datatable-filter-overlay-select-border-radius:var(--h-overlay-select-border-radius);--h-datatable-filter-overlay-select-color:var(--h-overlay-select-color);--h-datatable-filter-overlay-select-shadow:var(--h-overlay-select-shadow);--h-datatable-row-toggle-button-hover-background:var(--h-content-hover-background);--h-datatable-row-toggle-button-selected-hover-background:var(--h-content-background);--h-datatable-row-toggle-button-color:var(--h-text-muted-color);--h-datatable-row-toggle-button-hover-color:var(--h-text-color);--h-datatable-row-toggle-button-selected-hover-color:var(--h-primary-color);--h-datatable-row-toggle-button-size:1.75rem;--h-datatable-row-toggle-button-border-radius:50%;--h-datatable-row-toggle-button-focus-ring-width:var(--h-focus-ring-width);--h-datatable-row-toggle-button-focus-ring-style:var(--h-focus-ring-style);--h-datatable-row-toggle-button-focus-ring-color:var(--h-focus-ring-color);--h-datatable-row-toggle-button-focus-ring-offset:var(--h-focus-ring-offset);--h-datatable-row-toggle-button-focus-ring-shadow:var(--h-focus-ring-shadow);--h-datatable-loading-icon-size:2rem;--h-datatable-sort-icon-color:var(--h-text-muted-color);--h-datatable-sort-icon-hover-color:var(--h-text-hover-muted-color);--h-datatable-sort-icon-size:0.875rem;--h-datatable-resize-indicator-width:1px;--h-datatable-resize-indicator-color:var(--h-primary-color);--h-datatable-column-resizer-width:0.5rem;--h-datatable-drop-point-color:var(--h-primary-color);--h-datatable-footer-background:var(--h-content-background);--h-datatable-footer-border-color:var(--h-datatable-border-color);--h-datatable-footer-color:var(--h-content-color);--h-datatable-footer-border-width:0 0 1px 0;--h-datatable-footer-padding:0.75rem 1rem;--h-datatable-footer-lg-padding:1rem 1.25rem;--h-datatable-footer-sm-padding:0.375rem 0.5rem;--h-datatable-column-footer-font-weight:600;--h-datatable-footer-cell-background:var(--h-content-background);--h-datatable-footer-cell-border-color:var(--h-datatable-border-color);--h-datatable-footer-cell-color:var(--h-content-color);--h-datatable-footer-cell-padding:0.75rem 1rem;--h-datatable-footer-cell-lg-padding:1rem 1.25rem;--h-datatable-footer-cell-sm-padding:0.375rem 0.5rem;--h-datatable-body-cell-border-color:var(--h-datatable-border-color);--h-datatable-body-cell-padding:0.75rem 1rem;--h-datatable-body-cell-lg-padding:1rem 1.25rem;--h-datatable-body-cell-sm-padding:0.375rem 0.5rem;--h-datatable-row-background:var(--h-content-background);--h-datatable-row-hover-background:var(--h-content-hover-background);--h-datatable-row-selected-background:var(--h-highlight-background);--h-datatable-row-color:var(--h-content-color);--h-datatable-row-hover-color:var(--h-content-hover-color);--h-datatable-row-selected-color:var(--h-highlight-color);--h-datatable-row-focus-ring-width:var(--h-focus-ring-width);--h-datatable-row-focus-ring-style:var(--h-focus-ring-style);--h-datatable-row-focus-ring-color:var(--h-focus-ring-color);--h-datatable-row-focus-ring-offset:-1px;--h-datatable-row-focus-ring-shadow:var(--h-focus-ring-shadow);--h-datatable-column-title-font-weight:600;--h-datatable-header-cell-background:var(--h-surface-card);--h-datatable-header-cell-hover-background:var(--h-content-hover-background);--h-datatable-header-cell-selected-background:var(--h-highlight-background);--h-datatable-header-cell-border-color:var(--h-datatable-border-color);--h-datatable-header-cell-color:var(--h-content-color);--h-datatable-header-cell-hover-color:var(--h-content-hover-color);--h-datatable-header-cell-selected-color:var(--h-highlight-color);--h-datatable-header-cell-gap:var(--h-space-2);--h-datatable-header-cell-padding:0.75rem 1rem;--h-datatable-header-cell-lg-padding:1rem 1.25rem;--h-datatable-header-cell-sm-padding:0.375rem 0.5rem;--h-datatable-header-cell-focus-ring-width:var(--h-focus-ring-width);--h-datatable-header-cell-focus-ring-style:var(--h-focus-ring-style);--h-datatable-header-cell-focus-ring-color:var(--h-focus-ring-color);--h-datatable-header-cell-focus-ring-offset:-1px;--h-datatable-header-cell-focus-ring-shadow:var(--h-focus-ring-shadow);--h-datatable-header-background:var(--h-surface-card);--h-datatable-header-border-color:var(--h-datatable-border-color);--h-datatable-header-color:var(--h-content-color);--h-datatable-header-border-width:0 0 1px 0;--h-datatable-header-padding:0.75rem 1rem;--h-datatable-header-lg-padding:1rem 1.25rem;--h-datatable-header-sm-padding:0.375rem 0.5rem;--h-datatable-transition-duration:var(--h-transition-duration);--h-datatable-body-cell-selected-border-color:var(--h-primary-100);--h-datatable-row-striped-background:var(--h-surface-50);--h-datatable-border-color:var(--h-border-divider);}.app-dark{--h-datatable-body-cell-selected-border-color:var(--h-primary-900);--h-datatable-row-striped-background:var(--h-surface-950);--h-datatable-border-color:var(--h-border-divider);}
|
|
20
20
|
:root,:host{--h-datepicker-time-picker-padding:0.5rem 0 0 0;--h-datepicker-time-picker-border-color:var(--h-content-border-color);--h-datepicker-time-picker-gap:var(--h-space-2);--h-datepicker-time-picker-button-gap:var(--h-space-1);--h-datepicker-buttonbar-padding:0.5rem 0 0 0;--h-datepicker-buttonbar-border-color:var(--h-content-border-color);--h-datepicker-year-padding:0.375rem;--h-datepicker-year-border-radius:var(--h-content-border-radius);--h-datepicker-year-view-margin:0.5rem 0 0 0;--h-datepicker-month-padding:0.375rem;--h-datepicker-month-border-radius:var(--h-content-border-radius);--h-datepicker-month-view-margin:0.5rem 0 0 0;--h-datepicker-date-hover-background:var(--h-content-hover-background);--h-datepicker-date-selected-background:var(--h-primary-color);--h-datepicker-date-range-selected-background:var(--h-highlight-background);--h-datepicker-date-color:var(--h-content-color);--h-datepicker-date-hover-color:var(--h-content-hover-color);--h-datepicker-date-selected-color:var(--h-primary-contrast-color);--h-datepicker-date-range-selected-color:var(--h-highlight-color);--h-datepicker-date-width:2rem;--h-datepicker-date-height:2rem;--h-datepicker-date-border-radius:50%;--h-datepicker-date-padding:var(--h-space-1);--h-datepicker-date-focus-ring-width:var(--h-focus-ring-width);--h-datepicker-date-focus-ring-style:var(--h-focus-ring-style);--h-datepicker-date-focus-ring-color:var(--h-focus-ring-color);--h-datepicker-date-focus-ring-offset:var(--h-focus-ring-offset);--h-datepicker-date-focus-ring-shadow:var(--h-focus-ring-shadow);--h-datepicker-week-day-padding:var(--h-space-1);--h-datepicker-week-day-font-weight:500;--h-datepicker-week-day-color:var(--h-content-color);--h-datepicker-day-view-margin:0.5rem 0 0 0;--h-datepicker-group-border-color:var(--h-content-border-color);--h-datepicker-group-gap:var(--h-overlay-popover-padding);--h-datepicker-select-year-hover-background:var(--h-content-hover-background);--h-datepicker-select-year-color:var(--h-content-color);--h-datepicker-select-year-hover-color:var(--h-content-hover-color);--h-datepicker-select-year-padding:0.25rem 0.5rem;--h-datepicker-select-year-border-radius:var(--h-content-border-radius);--h-datepicker-select-month-hover-background:var(--h-content-hover-background);--h-datepicker-select-month-color:var(--h-content-color);--h-datepicker-select-month-hover-color:var(--h-content-hover-color);--h-datepicker-select-month-padding:0.25rem 0.5rem;--h-datepicker-select-month-border-radius:var(--h-content-border-radius);--h-datepicker-input-icon-color:var(--h-form-field-icon-color);--h-datepicker-dropdown-width:2.5rem;--h-datepicker-dropdown-border-color:var(--h-form-field-border-color);--h-datepicker-dropdown-hover-border-color:var(--h-form-field-border-color);--h-datepicker-dropdown-active-border-color:var(--h-form-field-border-color);--h-datepicker-dropdown-border-radius:var(--h-form-field-border-radius);--h-datepicker-dropdown-focus-ring-width:var(--h-focus-ring-width);--h-datepicker-dropdown-focus-ring-style:var(--h-focus-ring-style);--h-datepicker-dropdown-focus-ring-color:var(--h-focus-ring-color);--h-datepicker-dropdown-focus-ring-offset:var(--h-focus-ring-offset);--h-datepicker-dropdown-focus-ring-shadow:var(--h-focus-ring-shadow);--h-datepicker-dropdown-lg-width:3rem;--h-datepicker-dropdown-sm-width:2rem;--h-datepicker-title-gap:var(--h-space-2);--h-datepicker-title-font-weight:500;--h-datepicker-header-background:var(--h-content-background);--h-datepicker-header-border-color:var(--h-content-border-color);--h-datepicker-header-color:var(--h-content-color);--h-datepicker-header-padding:0 0 0.5rem 0;--h-datepicker-panel-background:var(--h-content-background);--h-datepicker-panel-border-color:var(--h-content-border-color);--h-datepicker-panel-color:var(--h-content-color);--h-datepicker-panel-border-radius:var(--h-content-border-radius);--h-datepicker-panel-shadow:var(--h-overlay-popover-shadow);--h-datepicker-panel-padding:var(--h-overlay-popover-padding);--h-datepicker-transition-duration:var(--h-transition-duration);--h-datepicker-today-background:var(--h-surface-200);--h-datepicker-today-color:var(--h-surface-900);--h-datepicker-dropdown-background:var(--h-surface-100);--h-datepicker-dropdown-hover-background:var(--h-surface-200);--h-datepicker-dropdown-active-background:var(--h-surface-300);--h-datepicker-dropdown-color:var(--h-surface-600);--h-datepicker-dropdown-hover-color:var(--h-surface-700);--h-datepicker-dropdown-active-color:var(--h-surface-800);}.app-dark{--h-datepicker-today-background:var(--h-surface-700);--h-datepicker-today-color:var(--h-surface-0);--h-datepicker-dropdown-background:var(--h-surface-800);--h-datepicker-dropdown-hover-background:var(--h-surface-700);--h-datepicker-dropdown-active-background:var(--h-surface-600);--h-datepicker-dropdown-color:var(--h-surface-300);--h-datepicker-dropdown-hover-color:var(--h-surface-200);--h-datepicker-dropdown-active-color:var(--h-surface-100);}
|
|
21
|
-
:root,:host{--h-dialog-footer-padding:0 var(--h-overlay-modal-padding) var(--h-overlay-modal-padding) var(--h-overlay-modal-padding);--h-dialog-footer-gap:var(--h-space-2);--h-dialog-content-padding:0 var(--h-overlay-modal-padding) var(--h-overlay-modal-padding) var(--h-overlay-modal-padding);--h-dialog-title-font-size:var(--h-font-size-xl);--h-dialog-title-font-weight:600;--h-dialog-header-padding:var(--h-overlay-modal-padding);--h-dialog-header-gap:var(--h-space-2);--h-dialog-background:var(--h-overlay-modal-background);--h-dialog-border-color:var(--h-overlay-modal-border-color);--h-dialog-color:var(--h-overlay-modal-color);--h-dialog-border-radius:var(--h-overlay-modal-border-radius);--h-dialog-shadow:var(--h-overlay-modal-shadow);}
|
|
21
|
+
:root,:host{--h-dialog-footer-padding:0 var(--h-overlay-modal-padding) var(--h-overlay-modal-padding) var(--h-overlay-modal-padding);--h-dialog-footer-gap:var(--h-space-2);--h-dialog-content-padding:0 var(--h-overlay-modal-padding) var(--h-overlay-modal-padding) var(--h-overlay-modal-padding);--h-dialog-title-font-size:var(--h-font-size-xl);--h-dialog-title-font-weight:600;--h-dialog-header-padding:var(--h-overlay-modal-padding);--h-dialog-header-gap:var(--h-space-2);--h-dialog-lg-width:56rem;--h-dialog-md-width:32rem;--h-dialog-sm-width:24rem;--h-dialog-background:var(--h-overlay-modal-background);--h-dialog-border-color:var(--h-overlay-modal-border-color);--h-dialog-color:var(--h-overlay-modal-color);--h-dialog-border-radius:var(--h-overlay-modal-border-radius);--h-dialog-shadow:var(--h-overlay-modal-shadow);}
|
|
22
22
|
:root,:host{--h-divider-vertical-margin:0 1rem;--h-divider-vertical-padding:0.5rem 0;--h-divider-vertical-content-padding:0.5rem 0;--h-divider-horizontal-margin:1rem 0;--h-divider-horizontal-padding:0 1rem;--h-divider-horizontal-content-padding:0 0.5rem;--h-divider-content-background:var(--h-content-background);--h-divider-content-color:var(--h-text-color);--h-divider-border-color:var(--h-border-divider);}
|
|
23
23
|
:root,:host{--h-drawer-footer-padding:var(--h-overlay-modal-padding);--h-drawer-content-padding:0 var(--h-overlay-modal-padding) var(--h-overlay-modal-padding) var(--h-overlay-modal-padding);--h-drawer-title-font-size:var(--h-font-size-2xl);--h-drawer-title-font-weight:600;--h-drawer-header-padding:var(--h-overlay-modal-padding);--h-drawer-background:var(--h-overlay-modal-background);--h-drawer-border-color:var(--h-overlay-modal-border-color);--h-drawer-color:var(--h-overlay-modal-color);--h-drawer-shadow:var(--h-overlay-modal-shadow);}
|
|
24
24
|
:root,:host{--h-fieldset-content-padding:0;--h-fieldset-toggle-icon-color:var(--h-text-muted-color);--h-fieldset-toggle-icon-hover-color:var(--h-text-hover-muted-color);--h-fieldset-legend-background:var(--h-content-background);--h-fieldset-legend-hover-background:var(--h-content-hover-background);--h-fieldset-legend-color:var(--h-content-color);--h-fieldset-legend-hover-color:var(--h-content-hover-color);--h-fieldset-legend-border-radius:var(--h-content-border-radius);--h-fieldset-legend-border-width:1px;--h-fieldset-legend-border-color:transparent;--h-fieldset-legend-padding:0.5rem 0.75rem;--h-fieldset-legend-gap:var(--h-space-2);--h-fieldset-legend-font-weight:600;--h-fieldset-legend-focus-ring-width:var(--h-focus-ring-width);--h-fieldset-legend-focus-ring-style:var(--h-focus-ring-style);--h-fieldset-legend-focus-ring-color:var(--h-focus-ring-color);--h-fieldset-legend-focus-ring-offset:var(--h-focus-ring-offset);--h-fieldset-legend-focus-ring-shadow:var(--h-focus-ring-shadow);--h-fieldset-background:var(--h-content-background);--h-fieldset-border-color:var(--h-content-border-color);--h-fieldset-border-radius:var(--h-content-border-radius);--h-fieldset-color:var(--h-content-color);--h-fieldset-padding:0 1.125rem 1.125rem 1.125rem;--h-fieldset-transition-duration:var(--h-transition-duration);}
|
|
@@ -3376,6 +3376,8 @@ export declare class HxDateTimeRangePicker implements ControlValueAccessor, Form
|
|
|
3376
3376
|
}, never, never, true, never>;
|
|
3377
3377
|
}
|
|
3378
3378
|
type HxDialogPosition = 'center' | 'top' | 'bottom' | 'left' | 'right' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
3379
|
+
/** Width class of `hx-dialog`, by content: a confirmation, a form of a few fields, a wide form or table. */
|
|
3380
|
+
type HxDialogSize = 'sm' | 'md' | 'lg';
|
|
3379
3381
|
/**
|
|
3380
3382
|
* A modal or non-modal dialog, on `@angular/cdk/dialog`.
|
|
3381
3383
|
*
|
|
@@ -3408,7 +3410,9 @@ export declare class HxDialog {
|
|
|
3408
3410
|
/** Clicking the mask closes a modal dialog. */
|
|
3409
3411
|
readonly dismissableMask: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
3410
3412
|
readonly position: import("@angular/core").InputSignal<HxDialogPosition>;
|
|
3411
|
-
/**
|
|
3413
|
+
/** Width class by content, from the `--h-dialog-<size>-width` tokens. */
|
|
3414
|
+
readonly size: import("@angular/core").InputSignal<HxDialogSize>;
|
|
3415
|
+
/** CSS width, e.g. `30rem`; wins over `size`. */
|
|
3412
3416
|
readonly width: import("@angular/core").InputSignal<string | undefined>;
|
|
3413
3417
|
readonly height: import("@angular/core").InputSignal<string | undefined>;
|
|
3414
3418
|
/** Extra CSS classes for the overlay pane. */
|
|
@@ -3460,6 +3464,11 @@ export declare class HxDialog {
|
|
|
3460
3464
|
"required": false;
|
|
3461
3465
|
"isSignal": true;
|
|
3462
3466
|
};
|
|
3467
|
+
"size": {
|
|
3468
|
+
"alias": "size";
|
|
3469
|
+
"required": false;
|
|
3470
|
+
"isSignal": true;
|
|
3471
|
+
};
|
|
3463
3472
|
"width": {
|
|
3464
3473
|
"alias": "width";
|
|
3465
3474
|
"required": false;
|
|
@@ -7606,4 +7615,4 @@ export declare class HxTree {
|
|
|
7606
7615
|
"nodeCollapse": "nodeCollapse";
|
|
7607
7616
|
}, ["template"], never, true, never>;
|
|
7608
7617
|
}
|
|
7609
|
-
export type { HxAccordionValue, HxAutoCompleteEvent, HxAutoCompleteSize, HxAvatarShape, HxAvatarSize, HxBadgeSeverity, HxBadgeSize, HxBreadcrumbItem, HxBundledPreset, HxButtonSeverity, HxButtonSize, HxButtonVariant, HxCarouselItemContext, HxCarouselOrientation, HxCarouselResponsiveOption, HxCellContext, HxCheckboxSize, HxColumn, HxColumnAlign, HxColumnHeaderContext, HxConfirmation, HxDateMathOptions, HxDateMathUnit, HxDatePickerSelectionMode, HxDatePickerValue, HxDateRangeExpression, HxDateRangePresetId, HxDateRangeQuickSelectValue, HxDateTimePickerValue, HxDateTimeRangePreset, HxDateTimeRangePresetContext, HxDateTimeRangeValue, HxDensity, HxDialogConfig, HxDialogPosition, HxDividerAlign, HxDividerLayout, HxDividerType, HxDrawerPosition, HxFileUploadMode, HxFloatLabelVariant, HxGalleriaItem, HxGalleriaItemContext, HxGalleriaThumbnailsPosition, HxIconPosition, HxInputNumberButtonLayout, HxInputNumberMode, HxInputNumberSize, HxInputNumberVariant, HxInputSize, HxInputVariant, HxKbdSeparator, HxKbdSize, HxLazyLoadEvent, HxListRole, HxListRowCurrent, HxMenuItem, HxMenuItemCommandEvent, HxMenuPoint, HxMessageSeverity, HxMessageSize, HxMessageVariant, HxMultiSelectDisplay, HxMultiSelectSize, HxMultiSelectVariant, HxPageEvent, HxPrimaryColor, HxPrimaryScale, HxProgressMode, HxQuickSelectLabels, HxQuickSelectRange, HxRadioSize, HxRowClass, HxSelectButtonSize, HxSelectItem, HxSelectSize, HxSelectVariant, HxSelectionMode, HxSkeletonAnimation, HxSkeletonShape, HxSliderOrientation, HxSliderValue, HxSortFirstOrder, HxSortFunction, HxSortMeta, HxSortMode, HxStepContentContext, HxStepValue, HxSurface, HxTabBarItem, HxTabBarMenuItem, HxTabBarMove, HxTabBarReceive, HxTableColumnsContext, HxTableRowContext, HxTableSize, HxTagSeverity, HxThemeOptions, HxThemePreset, HxTimePickerValue, HxTimelineAlign, HxTimelineContext, HxTimelineLayout, HxToastMessage, HxToastMessageInput, HxToastPosition, HxToastSeverity, HxToggleButtonSize, HxTooltipEvent, HxTooltipPosition, HxTreeFilterMode, HxTreeNode, HxTreeNodeContext, HxTreeNodeEvent, HxTreeSelection, HxTreeSelectionMode };
|
|
7618
|
+
export type { HxAccordionValue, HxAutoCompleteEvent, HxAutoCompleteSize, HxAvatarShape, HxAvatarSize, HxBadgeSeverity, HxBadgeSize, HxBreadcrumbItem, HxBundledPreset, HxButtonSeverity, HxButtonSize, HxButtonVariant, HxCarouselItemContext, HxCarouselOrientation, HxCarouselResponsiveOption, HxCellContext, HxCheckboxSize, HxColumn, HxColumnAlign, HxColumnHeaderContext, HxConfirmation, HxDateMathOptions, HxDateMathUnit, HxDatePickerSelectionMode, HxDatePickerValue, HxDateRangeExpression, HxDateRangePresetId, HxDateRangeQuickSelectValue, HxDateTimePickerValue, HxDateTimeRangePreset, HxDateTimeRangePresetContext, HxDateTimeRangeValue, HxDensity, HxDialogConfig, HxDialogPosition, HxDialogSize, HxDividerAlign, HxDividerLayout, HxDividerType, HxDrawerPosition, HxFileUploadMode, HxFloatLabelVariant, HxGalleriaItem, HxGalleriaItemContext, HxGalleriaThumbnailsPosition, HxIconPosition, HxInputNumberButtonLayout, HxInputNumberMode, HxInputNumberSize, HxInputNumberVariant, HxInputSize, HxInputVariant, HxKbdSeparator, HxKbdSize, HxLazyLoadEvent, HxListRole, HxListRowCurrent, HxMenuItem, HxMenuItemCommandEvent, HxMenuPoint, HxMessageSeverity, HxMessageSize, HxMessageVariant, HxMultiSelectDisplay, HxMultiSelectSize, HxMultiSelectVariant, HxPageEvent, HxPrimaryColor, HxPrimaryScale, HxProgressMode, HxQuickSelectLabels, HxQuickSelectRange, HxRadioSize, HxRowClass, HxSelectButtonSize, HxSelectItem, HxSelectSize, HxSelectVariant, HxSelectionMode, HxSkeletonAnimation, HxSkeletonShape, HxSliderOrientation, HxSliderValue, HxSortFirstOrder, HxSortFunction, HxSortMeta, HxSortMode, HxStepContentContext, HxStepValue, HxSurface, HxTabBarItem, HxTabBarMenuItem, HxTabBarMove, HxTabBarReceive, HxTableColumnsContext, HxTableRowContext, HxTableSize, HxTagSeverity, HxThemeOptions, HxThemePreset, HxTimePickerValue, HxTimelineAlign, HxTimelineContext, HxTimelineLayout, HxToastMessage, HxToastMessageInput, HxToastPosition, HxToastSeverity, HxToggleButtonSize, HxTooltipEvent, HxTooltipPosition, HxTreeFilterMode, HxTreeNode, HxTreeNodeContext, HxTreeNodeEvent, HxTreeSelection, HxTreeSelectionMode };
|