@nordhealth/components 3.7.0 → 3.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/custom-elements.json +1830 -1735
- package/lib/Avatar.js +1 -1
- package/lib/Avatar.js.map +1 -1
- package/lib/{Calendar-38b5ce2b.js → Calendar-3170b9d4.js} +2 -2
- package/lib/{Calendar-38b5ce2b.js.map → Calendar-3170b9d4.js.map} +1 -1
- package/lib/Calendar.js +1 -1
- package/lib/Checkbox.js +1 -1
- package/lib/Checkbox.js.map +1 -1
- package/lib/DatePicker.js +1 -1
- package/lib/DatePicker.js.map +1 -1
- package/lib/Drawer.js +1 -1
- package/lib/Drawer.js.map +1 -1
- package/lib/Footer.js +2 -0
- package/lib/Footer.js.map +1 -0
- package/lib/Header.js +1 -1
- package/lib/Header.js.map +1 -1
- package/lib/Layout.js +1 -1
- package/lib/Layout.js.map +1 -1
- package/lib/Message.js.map +1 -1
- package/lib/Modal.js +1 -1
- package/lib/Modal.js.map +1 -1
- package/lib/Notification.js +1 -1
- package/lib/Notification.js.map +1 -1
- package/lib/NotificationGroup.js +1 -1
- package/lib/NotificationGroup.js.map +1 -1
- package/lib/TopBar.js +1 -1
- package/lib/TopBar.js.map +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/src/avatar/Avatar.d.ts +1 -0
- package/lib/src/drawer/Drawer.d.ts +1 -0
- package/lib/src/footer/Footer.d.ts +25 -0
- package/lib/src/footer/Footer.test.d.ts +3 -0
- package/lib/src/index.d.ts +1 -0
- package/lib/src/layout/Layout.d.ts +7 -1
- package/lib/src/layout/Layout.test.d.ts +2 -0
- package/lib/src/message/Message.d.ts +1 -1
- package/lib/src/modal/Modal.d.ts +1 -0
- package/lib/src/notification/Notification.d.ts +1 -1
- package/lib/src/notification-group/NotificationGroup.d.ts +2 -4
- package/package.json +5 -5
- package/lib/DraftComponentMixin-9e4b7b34.js +0 -2
- package/lib/DraftComponentMixin-9e4b7b34.js.map +0 -1
package/lib/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{default as Badge}from"./Badge.js";export{default as Button}from"./Button.js";export{default as Card}from"./Card.js";export{default as Input}from"./Input.js";export{default as Icon}from"./Icon.js";export{default as CommandMenu}from"./CommandMenu.js";export{default as CommandMenuAction}from"./CommandMenuAction.js";export{default as Select}from"./Select.js";export{default as Stack}from"./Stack.js";export{default as Spinner}from"./Spinner.js";export{default as Table}from"./Table.js";export{default as VisuallyHidden}from"./VisuallyHidden.js";export{default as Textarea}from"./Textarea.js";export{C as Calendar}from"./Calendar-
|
|
1
|
+
export{default as Badge}from"./Badge.js";export{default as Button}from"./Button.js";export{default as Card}from"./Card.js";export{default as Input}from"./Input.js";export{default as Icon}from"./Icon.js";export{default as CommandMenu}from"./CommandMenu.js";export{default as CommandMenuAction}from"./CommandMenuAction.js";export{default as Select}from"./Select.js";export{default as Stack}from"./Stack.js";export{default as Spinner}from"./Spinner.js";export{default as Table}from"./Table.js";export{default as VisuallyHidden}from"./VisuallyHidden.js";export{default as Textarea}from"./Textarea.js";export{C as Calendar}from"./Calendar-3170b9d4.js";export{default as DatePicker}from"./DatePicker.js";export{default as Checkbox}from"./Checkbox.js";export{default as Tooltip}from"./Tooltip.js";export{default as Fieldset}from"./Fieldset.js";export{default as Radio}from"./Radio.js";export{default as Header}from"./Header.js";export{default as Message}from"./Message.js";export{default as NavGroup}from"./NavGroup.js";export{default as NavItem}from"./NavItem.js";export{default as Navigation}from"./Navigation.js";export{default as Layout}from"./Layout.js";export{default as EmptyState}from"./EmptyState.js";export{default as Banner}from"./Banner.js";export{default as Avatar}from"./Avatar.js";export{default as ProgressBar}from"./ProgressBar.js";export{P as Popout}from"./Popout-2220e77b.js";export{default as Dropdown}from"./Dropdown.js";export{default as DropdownItem}from"./DropdownItem.js";export{default as DropdownGroup}from"./DropdownGroup.js";export{isTranslationRegistered,registerTranslation}from"./translation.js";export{default as TabGroup}from"./TabGroup.js";export{default as Tab}from"./Tab.js";export{default as TabPanel}from"./TabPanel.js";export{default as Toggle}from"./Toggle.js";export{default as Modal}from"./Modal.js";export{default as Skeleton}from"./Skeleton.js";export{default as Toast}from"./Toast.js";export{default as ToastGroup}from"./ToastGroup.js";export{default as Divider}from"./Divider.js";export{default as Qrcode}from"./Qrcode.js";export{default as Drawer}from"./Drawer.js";export{N as NavToggle}from"./NavToggle-cb2c3648.js";export{default as Range}from"./Range.js";export{default as ButtonGroup}from"./ButtonGroup.js";export{default as Notification}from"./Notification.js";export{default as NotificationGroup}from"./NotificationGroup.js";export{default as TopBar}from"./TopBar.js";export{default as Footer}from"./Footer.js";import"./query-assigned-elements-92ce7494.js";import"./property-c78323b1.js";import"./Component-2253424f.js";import"./ref-99418ab4.js";import"./directive-e9ce14b4.js";import"./EventController-d99ebeef.js";import"./LightDomController-5388d84c.js";import"./cond-bb9ee891.js";import"./FocusableMixin-d30213b4.js";import"./InputMixin-83b5bd46.js";import"./SlotController-d733c575.js";import"./query-36bfe0e4.js";import"./if-defined-cccde88f.js";import"./class-map-512f0bc1.js";import"./style-map-f8a1c8d5.js";import"./FormAssociatedMixin-a278fda4.js";import"./events-d9666e88.js";import"./TextField-2d778949.js";import"./AutocompleteMixin-5a7e10b2.js";import"./SizeMixin-ab074eff.js";import"./FormField-87551be2.js";import"./DirectionController-f35f5476.js";import"./state-d31c6912.js";import"./IconManager.js";import"./observe-a9c6dfb6.js";import"./collection-511dcfac.js";import"./number-c3ab3e95.js";import"./LightDismissController-a2645ae6.js";import"./ShortcutController-87615e31.js";import"./tinykeys.module-84e6cc41.js";import"./KeyboardController.js";import"./SelectEvent.js";import"./LocalizeController.js";import"./en-us.js";import"./localization.js";import"./localization2.js";import"./localization3.js";import"./localization4.js";import"./localization5.js";import"./localization6.js";import"./localization7.js";import"./localization8.js";import"./dates-5b651fbe.js";import"./DateSelectEvent.js";import"./interface-close-small-f26b0299.js";import"./date-adapter.js";import"./positioning-2346bdd6.js";import"./fsm-50373df9.js";import"./DropdownItem-588f5a6b.js";import"./Sticky-c34c9b12.js";import"./ScrollbarController-773c79f4.js";import"./ModalController.js";import"./NotificationMixin-207f1f56.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -11,6 +11,7 @@ import "../icon/Icon.js";
|
|
|
11
11
|
* @cssprop [--n-avatar-color=var(--n-color-status-highlight)] - Controls the color of the avatar fallback, using [color tokens](/tokens/#color).
|
|
12
12
|
* @cssprop [--n-avatar-size=var(--n-size-icon-l)] - Controls the size of the avatar, using [icon sizing tokens](/tokens/#size).
|
|
13
13
|
* @cssprop [--n-avatar-box-shadow=none] - Controls the box shadow for the avatar.
|
|
14
|
+
* @cssprop [--n-avatar-text-color=var(--n-color-text-on-accent)] - Controls the color of the avatar’s text and icon, using [color tokens](/tokens/#color).
|
|
14
15
|
*/
|
|
15
16
|
export default class Avatar extends LitElement {
|
|
16
17
|
static styles: import("lit").CSSResult[];
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
/**
|
|
3
|
+
* The footer is a block of designated space for providing additional information or actions that are positioned below the main content.
|
|
4
|
+
*
|
|
5
|
+
* @status draft
|
|
6
|
+
* @category structure
|
|
7
|
+
* @slot - The footer content.
|
|
8
|
+
*
|
|
9
|
+
* @cssprop [--n-footer-padding-inline=var(--n-space-l)] - Controls the inline padding around the footer’s main slot, using [spacing tokens](/tokens/#space).
|
|
10
|
+
* @cssprop [--n-footer-box-shadow=var(--n-box-shadow-header)] - Controls the box shadow of the footer, using [box shadow tokens](/tokens/#box-shadow).
|
|
11
|
+
* @cssprop [--n-footer-background-color=var(--n-color-surface)] - Controls the background color of the footer, using [color tokens](/tokens/#color).
|
|
12
|
+
*/
|
|
13
|
+
export default class Footer extends LitElement {
|
|
14
|
+
static styles: import("lit").CSSResult[];
|
|
15
|
+
/**
|
|
16
|
+
* Controls the size of the footer component.
|
|
17
|
+
*/
|
|
18
|
+
size: "m" | "s";
|
|
19
|
+
render(): import("lit").TemplateResult<1>;
|
|
20
|
+
}
|
|
21
|
+
declare global {
|
|
22
|
+
interface HTMLElementTagNameMap {
|
|
23
|
+
"nord-footer": Footer;
|
|
24
|
+
}
|
|
25
|
+
}
|
package/lib/src/index.d.ts
CHANGED
|
@@ -50,3 +50,4 @@ export { default as ButtonGroup } from "./button-group/ButtonGroup.js";
|
|
|
50
50
|
export { default as Notification } from "./notification/Notification.js";
|
|
51
51
|
export { default as NotificationGroup } from "./notification-group/NotificationGroup.js";
|
|
52
52
|
export { default as TopBar } from "./top-bar/TopBar.js";
|
|
53
|
+
export { default as Footer } from "./footer/Footer.js";
|
|
@@ -14,7 +14,8 @@ type NavState = States<typeof navMachine>;
|
|
|
14
14
|
* @slot - The default main section content.
|
|
15
15
|
* @slot nav - Used to place content inside the navigation sidebar.
|
|
16
16
|
* @slot top-bar - Used to place the [Top Bar](../top-bar/) component.
|
|
17
|
-
* @slot header - Used to place content inside the header section.
|
|
17
|
+
* @slot header - Used to place content inside the header section. This slot can be made sticky by utilizing the `sticky` property on the layout component.
|
|
18
|
+
* @slot footer - Used to place content inside the footer section. This slot can be made sticky by utilizing the `stickyFooter` property on the layout component.
|
|
18
19
|
* @slot drawer - Used to place additional content/details relating to a selected item.
|
|
19
20
|
* @slot nav-toggle - Used to place a own nav-toggle component, for cases where you might need to add a tooltip.
|
|
20
21
|
*
|
|
@@ -29,6 +30,7 @@ export default class Layout extends LitElement {
|
|
|
29
30
|
private drawerSlot;
|
|
30
31
|
private topBarSlot;
|
|
31
32
|
private headerSlot;
|
|
33
|
+
private footerSlot;
|
|
32
34
|
private direction;
|
|
33
35
|
private events;
|
|
34
36
|
private lightDismiss;
|
|
@@ -62,6 +64,10 @@ export default class Layout extends LitElement {
|
|
|
62
64
|
* Controls whether the layout's header has sticky positioning.
|
|
63
65
|
*/
|
|
64
66
|
sticky: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Controls whether the layout's footer has sticky positioning.
|
|
69
|
+
*/
|
|
70
|
+
stickyFooter: boolean;
|
|
65
71
|
/**
|
|
66
72
|
* A getter whose values reflects whether the layout component considers the viewport to be narrow or not.
|
|
67
73
|
* A narrow viewport is considered to be less than 768px wide.
|
|
@@ -4,6 +4,7 @@ import "../stack/Stack.js";
|
|
|
4
4
|
import "../table/Table.js";
|
|
5
5
|
import "../input/Input.js";
|
|
6
6
|
import "../button/Button.js";
|
|
7
|
+
import "../button-group/ButtonGroup.js";
|
|
7
8
|
import "../header/Header.js";
|
|
8
9
|
import "../card/Card.js";
|
|
9
10
|
import "../badge/Badge.js";
|
|
@@ -22,3 +23,4 @@ import "../tab/Tab.js";
|
|
|
22
23
|
import "../tab-panel/TabPanel.js";
|
|
23
24
|
import "../tab-group/TabGroup.js";
|
|
24
25
|
import "../drawer/Drawer.js";
|
|
26
|
+
import "../footer/Footer.js";
|
|
@@ -5,7 +5,7 @@ declare const Message_base: (new (...args: any[]) => import("../common/mixins/Fo
|
|
|
5
5
|
* such as notifications, tasks or conversations. Message
|
|
6
6
|
* can be placed directly inside a dropdown component.
|
|
7
7
|
*
|
|
8
|
-
* @status
|
|
8
|
+
* @status new
|
|
9
9
|
* @category action
|
|
10
10
|
* @slot - The message content.
|
|
11
11
|
* @slot footer - Used to place content after the message. Typically used for a timestamp.
|
package/lib/src/modal/Modal.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ declare const Notification_base: (new (...args: any[]) => import("../common/mixi
|
|
|
6
6
|
* Notifications provide important information that requires action or acknowledgement.
|
|
7
7
|
* A notification is displayed until the user dismisses it.
|
|
8
8
|
*
|
|
9
|
-
* @status
|
|
9
|
+
* @status new
|
|
10
10
|
* @category feedback
|
|
11
11
|
* @slot - Default slot used for the notification text/message.
|
|
12
12
|
* @slot icon - Slot used for the notification icon.
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
|
-
declare const NotificationGroup_base: typeof LitElement;
|
|
3
2
|
/**
|
|
4
3
|
* Notification group is used to position and style a group of notifications.
|
|
5
4
|
*
|
|
6
|
-
* @status
|
|
5
|
+
* @status new
|
|
7
6
|
* @category feedback
|
|
8
7
|
* @slot - Default slot in which to place notifications.
|
|
9
8
|
*/
|
|
10
|
-
export default class NotificationGroup extends
|
|
9
|
+
export default class NotificationGroup extends LitElement {
|
|
11
10
|
static styles: import("lit").CSSResult[];
|
|
12
11
|
render(): import("lit").TemplateResult<1>;
|
|
13
12
|
}
|
|
@@ -16,4 +15,3 @@ declare global {
|
|
|
16
15
|
"nord-notification-group": NotificationGroup;
|
|
17
16
|
}
|
|
18
17
|
}
|
|
19
|
-
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nordhealth/components",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.9.0",
|
|
4
4
|
"description": "This package includes Nord Design System Web Components",
|
|
5
5
|
"author": "Nordhealth <support@nordhealth.design>",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@custom-elements-manifest/analyzer": "0.8.2",
|
|
46
|
-
"@nordhealth/css": "^3.
|
|
46
|
+
"@nordhealth/css": "^3.2.0",
|
|
47
47
|
"@nordhealth/fonts": "^3.0.0",
|
|
48
|
-
"@nordhealth/themes": "^8.0.
|
|
49
|
-
"@nordhealth/tokens": "^7.0
|
|
48
|
+
"@nordhealth/themes": "^8.0.2",
|
|
49
|
+
"@nordhealth/tokens": "^7.1.0",
|
|
50
50
|
"@open-wc/eslint-config": "10.0.0",
|
|
51
51
|
"@open-wc/testing": "3.1.8",
|
|
52
52
|
"@rollup/plugin-node-resolve": "15.0.2",
|
|
@@ -184,5 +184,5 @@
|
|
|
184
184
|
}
|
|
185
185
|
]
|
|
186
186
|
},
|
|
187
|
-
"gitHead": "
|
|
187
|
+
"gitHead": "f01f00992d6e3935fa7eb879dbf217a51638d397"
|
|
188
188
|
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
function n(n){class e extends n{connectedCallback(){super.connectedCallback(),e._warningLogged||(console.warn(`NORD: %c${this.localName}%c should not be used in production, as it is in draft status.`,"font-weight:bold","font-weight:normal"),e._warningLogged=!0)}}return e._warningLogged=!1,e}export{n as D};
|
|
2
|
-
//# sourceMappingURL=DraftComponentMixin-9e4b7b34.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DraftComponentMixin-9e4b7b34.js","sources":["../src/common/mixins/DraftComponentMixin.ts"],"sourcesContent":["import { LitElement } from \"lit\"\n\ntype Constructable<T = Record<string, unknown>> = new (...args: any[]) => T\n\nexport function DraftComponentMixin<T extends Constructable<LitElement>>(superClass: T): T {\n class DraftComponent extends superClass {\n private static _warningLogged = false\n\n connectedCallback() {\n super.connectedCallback()\n\n if (process.env.NODE_ENV !== \"development\" && !DraftComponent._warningLogged) {\n // eslint-disable-next-line no-console\n console.warn(\n `NORD: %c${this.localName}%c should not be used in production, as it is in draft status.`,\n \"font-weight:bold\",\n \"font-weight:normal\"\n )\n DraftComponent._warningLogged = true\n }\n }\n }\n\n return DraftComponent\n}\n"],"names":["DraftComponentMixin","superClass","DraftComponent","connectedCallback","super","_warningLogged","console","warn","this","localName"],"mappings":"AAIM,SAAUA,EAAyDC,GACvE,MAAMC,UAAuBD,EAG3B,iBAAAE,GACEC,MAAMD,oBAEyCD,EAAeG,iBAE5DC,QAAQC,KACN,WAAWC,KAAKC,0EAChB,mBACA,sBAEFP,EAAeG,gBAAiB,EAEnC,EAGH,OAjBiBH,EAAcG,gBAAG,EAiB3BH,CACT"}
|