@joanroucoux/cairn-ui 0.10.1 → 0.11.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/CHANGELOG.md +11 -0
- package/fesm2022/joanroucoux-cairn-ui-action-bar.mjs +3 -3
- package/fesm2022/joanroucoux-cairn-ui-alert.mjs +3 -3
- package/fesm2022/joanroucoux-cairn-ui-amount.mjs +3 -3
- package/fesm2022/joanroucoux-cairn-ui-async.mjs +85 -81
- package/fesm2022/joanroucoux-cairn-ui-async.mjs.map +1 -1
- package/fesm2022/joanroucoux-cairn-ui-avatar.mjs +6 -6
- package/fesm2022/joanroucoux-cairn-ui-back-link.mjs +3 -3
- package/fesm2022/joanroucoux-cairn-ui-badge.mjs +3 -3
- package/fesm2022/joanroucoux-cairn-ui-button.mjs +3 -3
- package/fesm2022/joanroucoux-cairn-ui-card.mjs +3 -3
- package/fesm2022/joanroucoux-cairn-ui-choice-chips.mjs +3 -3
- package/fesm2022/joanroucoux-cairn-ui-delta.mjs +3 -3
- package/fesm2022/joanroucoux-cairn-ui-dialog.mjs +3 -3
- package/fesm2022/joanroucoux-cairn-ui-donut.mjs +3 -3
- package/fesm2022/joanroucoux-cairn-ui-drawer.mjs +3 -3
- package/fesm2022/joanroucoux-cairn-ui-empty.mjs +3 -3
- package/fesm2022/joanroucoux-cairn-ui-external-link.mjs +3 -3
- package/fesm2022/joanroucoux-cairn-ui-external-link.mjs.map +1 -1
- package/fesm2022/joanroucoux-cairn-ui-fact.mjs +6 -6
- package/fesm2022/joanroucoux-cairn-ui-field.mjs +9 -9
- package/fesm2022/joanroucoux-cairn-ui-filter-chips.mjs +3 -3
- package/fesm2022/joanroucoux-cairn-ui-group-header.mjs +3 -3
- package/fesm2022/joanroucoux-cairn-ui-icon-toggle.mjs +3 -3
- package/fesm2022/joanroucoux-cairn-ui-input.mjs +6 -6
- package/fesm2022/joanroucoux-cairn-ui-input.mjs.map +1 -1
- package/fesm2022/joanroucoux-cairn-ui-line-chart.mjs +3 -3
- package/fesm2022/joanroucoux-cairn-ui-menu.mjs +9 -9
- package/fesm2022/joanroucoux-cairn-ui-meter.mjs +3 -3
- package/fesm2022/joanroucoux-cairn-ui-motion.mjs +12 -12
- package/fesm2022/joanroucoux-cairn-ui-nav-item.mjs +3 -3
- package/fesm2022/joanroucoux-cairn-ui-result-group.mjs +3 -3
- package/fesm2022/joanroucoux-cairn-ui-row.mjs +15 -15
- package/fesm2022/joanroucoux-cairn-ui-segmented.mjs +3 -3
- package/fesm2022/joanroucoux-cairn-ui-select-pill.mjs +3 -3
- package/fesm2022/joanroucoux-cairn-ui-select.mjs +3 -3
- package/fesm2022/joanroucoux-cairn-ui-skeleton.mjs +3 -3
- package/fesm2022/joanroucoux-cairn-ui-stale-link.mjs +3 -3
- package/fesm2022/joanroucoux-cairn-ui-stat.mjs +3 -3
- package/fesm2022/joanroucoux-cairn-ui-switch.mjs +3 -3
- package/fesm2022/joanroucoux-cairn-ui-tab-bar.mjs +6 -6
- package/fesm2022/joanroucoux-cairn-ui-table.mjs +27 -27
- package/fesm2022/joanroucoux-cairn-ui-toast.mjs +6 -6
- package/mcp-manifest.json +1 -1
- package/package.json +1 -1
- package/styles/theme.css +4 -0
- package/styles/tokens.css +0 -4
- package/types/joanroucoux-cairn-ui-async.d.ts +4 -2
- package/types/joanroucoux-cairn-ui-external-link.d.ts +1 -1
- package/types/joanroucoux-cairn-ui-input.d.ts +1 -1
package/package.json
CHANGED
package/styles/theme.css
CHANGED
package/styles/tokens.css
CHANGED
|
@@ -30,11 +30,7 @@
|
|
|
30
30
|
--ramp-5: light-dark(#b0b6b4, #5a605e);
|
|
31
31
|
--ramp-6: light-dark(#ced3d1, #3b403e);
|
|
32
32
|
|
|
33
|
-
--secondary: light-dark(#f1f3f2, #1e2020);
|
|
34
|
-
--secondary-foreground: light-dark(#111414, #edefee);
|
|
35
33
|
--muted: light-dark(#f1f3f2, #1e2020);
|
|
36
|
-
--accent: light-dark(#f1f3f2, #1e2020);
|
|
37
|
-
--accent-foreground: light-dark(#111414, #edefee);
|
|
38
34
|
--destructive: light-dark(#b8443c, #a33a33);
|
|
39
35
|
--destructive-foreground: light-dark(#fafbfa, #fafbfa);
|
|
40
36
|
|
|
@@ -10,7 +10,9 @@ type AsyncVariant = (typeof ASYNC_VARIANTS)[number];
|
|
|
10
10
|
export declare const ASYNC_ALIGNS: readonly ["start", "center", "auto"];
|
|
11
11
|
type AsyncAlign = (typeof ASYNC_ALIGNS)[number];
|
|
12
12
|
/**
|
|
13
|
-
* The three states of a block that depends on a service call, next to the ready content.
|
|
13
|
+
* The three states of a block that depends on a service call, next to the ready content. During the
|
|
14
|
+
* first 150 ms of a load the `[asyncLoading]` content is laid out but invisible and hidden from
|
|
15
|
+
* assistive technology, so the block already holds its skeleton's space.
|
|
14
16
|
*
|
|
15
17
|
* @example
|
|
16
18
|
* <ui-async [state]="totalState()" errorTitle="The total couldn’t be loaded" errorMessage="The server didn’t respond." retryLabel="Try again" (retry)="reload()">
|
|
@@ -96,7 +98,7 @@ declare const SKELETON_MIN_MS = 400;
|
|
|
96
98
|
/**
|
|
97
99
|
* Turns the live state of a call into the state to draw: `loading` only appears once the call has
|
|
98
100
|
* lasted 150 ms and, once shown, stays at least 400 ms. Until then the previous state stays on
|
|
99
|
-
* screen; `null` means
|
|
101
|
+
* screen; `null` means no state to draw yet (a first load under 150 ms), which `ui-async` renders as an invisible skeleton. Call it in an injection context.
|
|
100
102
|
*
|
|
101
103
|
* @example
|
|
102
104
|
* protected readonly shown = delayedState(this.state);
|
|
@@ -3,7 +3,7 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
* Link to another site: the label followed by an external-link icon.
|
|
4
4
|
*
|
|
5
5
|
* @example
|
|
6
|
-
* <a ui-external-link href="https://
|
|
6
|
+
* <a ui-external-link href="https://www.contoso.com" target="_blank" rel="noopener">Page on contoso.com</a>
|
|
7
7
|
*/
|
|
8
8
|
export declare class UiExternalLink {
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<UiExternalLink, never>;
|
|
@@ -17,7 +17,7 @@ export declare const CONTROL_SIZE_CLASSES: Record<ControlSize, string>;
|
|
|
17
17
|
* so a surrounding `ui-field` can show the message.
|
|
18
18
|
*
|
|
19
19
|
* @example
|
|
20
|
-
* <input uiInput type="email" placeholder="you@
|
|
20
|
+
* <input uiInput type="email" placeholder="you@contoso.com" />
|
|
21
21
|
*/
|
|
22
22
|
export declare class UiInput implements UiControl {
|
|
23
23
|
readonly size: import("@angular/core").InputSignal<"sm" | "md" | "lg" | "xl">;
|