@nordhealth/components 4.12.9 → 4.13.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/custom-elements.json +2733 -2672
- package/lib/Button.js +1 -1
- package/lib/Card.js +1 -1
- package/lib/Card.js.map +1 -1
- package/lib/IconManager.js +1 -1
- package/lib/Input.js +1 -1
- package/lib/Input.js.map +1 -1
- package/lib/Modal.js +1 -1
- package/lib/Modal.js.map +1 -1
- package/lib/Navigation.js +1 -1
- package/lib/Navigation.js.map +1 -1
- package/lib/bundle.js +12 -12
- package/lib/bundle.js.map +1 -1
- package/lib/src/card/Card.d.ts +4 -0
- package/lib/src/input/Input.d.ts +13 -0
- package/lib/src/navigation/Navigation.d.ts +9 -0
- package/package.json +4 -4
package/lib/src/card/Card.d.ts
CHANGED
|
@@ -27,6 +27,10 @@ export default class Card extends LitElement {
|
|
|
27
27
|
* the header and footer slots will still have padding.
|
|
28
28
|
*/
|
|
29
29
|
padding: 'm' | 'l' | 'none';
|
|
30
|
+
/**
|
|
31
|
+
* When set, adds a divider border above the footer slot.
|
|
32
|
+
*/
|
|
33
|
+
footerDivider: boolean;
|
|
30
34
|
render(): import("lit").TemplateResult<1>;
|
|
31
35
|
}
|
|
32
36
|
declare global {
|
package/lib/src/input/Input.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
|
+
type InputMode = 'none' | 'text' | 'tel' | 'url' | 'email' | 'numeric' | 'decimal' | 'search';
|
|
2
3
|
declare const Input_base: (new (...args: any[]) => import("../common/mixins/SizeMixin.js").SizeMixinInterface) & (new (...args: any[]) => import("../common/mixins/FormAssociatedMixin.js").FormAssociatedMixinInterface) & (new (...args: any[]) => import("../common/mixins/AutocompleteMixin.js").AutocompleteMixinInterface) & (new (...args: any[]) => import("../common/mixins/ReadonlyMixin.js").ReadonlyMixinInterface) & (new (...args: any[]) => import("../common/mixins/TextSelectableMixin.js").TextSelectableMixinInterface) & (new (...args: any[]) => import("../common/mixins/InputMixin.js").InputMixinInterface) & (new (...args: any[]) => import("../common/mixins/FocusableMixin.js").FocusableMixinInterface) & typeof LitElement;
|
|
3
4
|
/**
|
|
4
5
|
* Inputs are used to allow users to provide text input when the expected input is short.
|
|
@@ -39,6 +40,18 @@ export default class Input extends Input_base {
|
|
|
39
40
|
* Optionally disallow certain characters from being used inside the input, using a regex pattern.
|
|
40
41
|
*/
|
|
41
42
|
disallowPattern?: string;
|
|
43
|
+
/**
|
|
44
|
+
* The inputmode attribute provides a hint to the browser about what type of keyboard to open on mobile devices.
|
|
45
|
+
* Valid values: none, text, decimal, numeric, tel, search, email, url
|
|
46
|
+
* When not explicitly set, defaults based on input type:
|
|
47
|
+
* - type="number" → inputmode="numeric"
|
|
48
|
+
* - type="email" → inputmode="email"
|
|
49
|
+
* - type="tel" → inputmode="tel"
|
|
50
|
+
* - type="url" → inputmode="url"
|
|
51
|
+
* - type="search" → inputmode="search"
|
|
52
|
+
* Can be explicitly overridden for any type.
|
|
53
|
+
*/
|
|
54
|
+
inputmode?: InputMode;
|
|
42
55
|
render(): import("lit").TemplateResult<1>;
|
|
43
56
|
private handleKeydown;
|
|
44
57
|
private handleInputChange;
|
|
@@ -19,12 +19,21 @@ export default class Navigation extends LitElement {
|
|
|
19
19
|
static styles: import("lit").CSSResult[];
|
|
20
20
|
private headerSlot;
|
|
21
21
|
private events;
|
|
22
|
+
private footerObserver;
|
|
22
23
|
private allowItemsToRemainOpen;
|
|
23
24
|
/**
|
|
24
25
|
* Controls whether the navigations's footer has sticky positioning.
|
|
25
26
|
*/
|
|
26
27
|
stickyFooter: boolean;
|
|
27
28
|
connectedCallback(): void;
|
|
29
|
+
disconnectedCallback(): void;
|
|
30
|
+
/**
|
|
31
|
+
* Observe the footer slot element for visibility changes.
|
|
32
|
+
* Watches style and class attributes on the footer element itself, and
|
|
33
|
+
* childList on the host to detect footer being added/removed (e.g. v-if).
|
|
34
|
+
*/
|
|
35
|
+
private observeFooter;
|
|
36
|
+
private get isFooterVisible();
|
|
28
37
|
render(): import("lit").TemplateResult<1>;
|
|
29
38
|
private handleActivate;
|
|
30
39
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nordhealth/components",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.13.0",
|
|
5
5
|
"description": "This package includes Nord Design System Web Components",
|
|
6
6
|
"author": "Nordhealth <support@nordhealth.design>",
|
|
7
7
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"build:docker": "node scripts/generate-docker-package.mjs && docker compose build test",
|
|
25
25
|
"clean": "rm -rf lib/",
|
|
26
26
|
"clean:snapshots": "rm -rf src/*/screenshots/*/failed/*.png || true",
|
|
27
|
-
"pretest": "node scripts/generate-docker-package.mjs && pnpm clean:snapshots",
|
|
27
|
+
"pretest": "node scripts/generate-docker-package.mjs && pnpm clean:snapshots && mkdir -p coverage",
|
|
28
28
|
"test": "docker compose run --rm -e INCLUDE_VISUAL_REGRESSION test",
|
|
29
29
|
"test:watch": "docker compose run --rm -e INCLUDE_VISUAL_REGRESSION test --watch",
|
|
30
30
|
"test:capture": "pnpm test --update-visual-baseline",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@floating-ui/dom": "^1.7.5",
|
|
39
|
-
"@nordhealth/icons": "^3.15.
|
|
39
|
+
"@nordhealth/icons": "^3.15.4",
|
|
40
40
|
"lit": "^3.3.2",
|
|
41
41
|
"qr": "^0.4.2",
|
|
42
42
|
"tinykeys": "^1.4.0"
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"rollup": "~4.21.3"
|
|
86
86
|
}
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "162d4355eee4d7b1d83e148b71689da9f3a0600d"
|
|
89
89
|
}
|