@nordhealth/components 1.9.0 → 1.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/custom-elements.json +1971 -1368
- package/lib/AutocompleteMixin-ca948bdb.js +2 -0
- package/lib/AutocompleteMixin-ca948bdb.js.map +1 -0
- package/lib/Button.js +1 -1
- package/lib/Button.js.map +1 -1
- package/lib/{Calendar-e5fc9c3b.js → Calendar-2797d956.js} +1 -1
- package/lib/{Calendar-e5fc9c3b.js.map → Calendar-2797d956.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/Input.js +1 -1
- package/lib/Input.js.map +1 -1
- package/lib/InputMixin-9334d385.js.map +1 -1
- package/lib/Qrcode.js +7 -0
- package/lib/Qrcode.js.map +1 -0
- package/lib/Select.js +1 -1
- package/lib/Select.js.map +1 -1
- package/lib/TextField-f48e2e5c.js +2 -0
- package/lib/TextField-f48e2e5c.js.map +1 -0
- package/lib/Textarea.js +1 -1
- package/lib/Textarea.js.map +1 -1
- package/lib/bundle.js +10 -5
- package/lib/bundle.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/src/checkbox/Checkbox.d.ts +4 -0
- package/lib/src/common/mixins/AutocompleteMixin.d.ts +8 -0
- package/lib/src/common/mixins/InputMixin.d.ts +1 -1
- package/lib/src/common/mixins/ReadonlyMixin.d.ts +7 -0
- package/lib/src/date-picker/DatePicker.d.ts +1 -1
- package/lib/src/index.d.ts +1 -0
- package/lib/src/input/Input.d.ts +1 -1
- package/lib/src/qrcode/Qrcode.d.ts +53 -0
- package/lib/src/qrcode/Qrcode.test.d.ts +2 -0
- package/lib/src/select/Select.d.ts +1 -1
- package/lib/src/textarea/Textarea.d.ts +1 -1
- package/package.json +3 -2
- package/lib/TextField-93a3922f.js +0 -2
- package/lib/TextField-93a3922f.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-2797d956.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 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{default as Popout}from"./Popout.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";import"./query-assigned-elements-ef860822.js";import"./lit-element-67e6cd99.js";import"./property-03f59dce.js";import"./Component-a61df53a.js";import"./ref-57ff8ffc.js";import"./directive-de55b00a.js";import"./EventController-d99ebeef.js";import"./LightDomController-6d26dea2.js";import"./cond-97c45476.js";import"./FocusableMixin-175ea4d7.js";import"./InputMixin-9334d385.js";import"./SlotController-ea6eff46.js";import"./if-defined-fe1a64e3.js";import"./class-map-f1b6f1fa.js";import"./unsafe-html-61a04601.js";import"./FormAssociatedMixin-d0d98a92.js";import"./events-731d0007.js";import"./TextField-f48e2e5c.js";import"./AutocompleteMixin-ca948bdb.js";import"./FormField-d3767c2e.js";import"./state-70f38ceb.js";import"./observe-a9c6dfb6.js";import"./repeat-084c4167.js";import"./collection-800f5002.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"./DirectionController-8b298382.js";import"./query-2d22378e.js";import"./dates-a8de5b83.js";import"./month-view.js";import"./DateSelectEvent.js";import"./interface-close-small-44ababc3.js";import"./date-adapter.js";import"./positioning-b660767c.js";import"./fsm-50373df9.js";import"./en-us.js";import"./localization.js";import"./localization2.js";import"./localization3.js";import"./localization4.js";import"./DraftComponentMixin-9e4b7b34.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -13,6 +13,10 @@ declare const Checkbox_base: (new (...args: any[]) => import("../common/mixins/F
|
|
|
13
13
|
export default class Checkbox extends Checkbox_base {
|
|
14
14
|
static styles: import("lit").CSSResult[];
|
|
15
15
|
protected get formValue(): string | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Controls whether the checkbox is in an indeterminate state.
|
|
18
|
+
*/
|
|
19
|
+
indeterminate: boolean;
|
|
16
20
|
/**
|
|
17
21
|
* Controls whether the checkbox is checked or not.
|
|
18
22
|
*/
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
declare type Constructor<T = Record<string, unknown>> = new (...args: any[]) => T;
|
|
3
|
+
declare type AutocompleteAttribute = "off" | "on" | "name" | "honorific-prefix" | "given-name" | "additional-name" | "family-name" | "honorific-suffix" | "nickname" | "email" | "username" | "new-password" | "current-password" | "one-time-code" | "organization-title" | "organization" | "street-address" | "address-line1" | "address-line2" | "address-line3" | "address-level4" | "address-level3" | "address-level2" | "address-level1" | "country" | "country-name" | "postal-code" | "cc-name" | "cc-given-name" | "cc-additional-name" | "cc-family-name" | "cc-number" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-csc" | "cc-type" | "transaction-currency" | "transaction-amount" | "language" | "bday" | "bday-day" | "bday-month" | "bday-year" | "sex" | "tel" | "tel-country-code" | "tel-national" | "tel-area-code" | "tel-local" | "tel-extension" | "impp" | "url" | "photo";
|
|
4
|
+
export declare class AutocompleteMixinInterface {
|
|
5
|
+
autocomplete: AutocompleteAttribute;
|
|
6
|
+
}
|
|
7
|
+
export declare function AutocompleteMixin<T extends Constructor<LitElement>>(superClass: T): Constructor<AutocompleteMixinInterface> & T;
|
|
8
|
+
export {};
|
|
@@ -4,7 +4,7 @@ export declare class InputMixinInterface {
|
|
|
4
4
|
name: string | undefined;
|
|
5
5
|
value: string;
|
|
6
6
|
disabled: boolean;
|
|
7
|
-
form
|
|
7
|
+
get form(): HTMLFormElement | null;
|
|
8
8
|
}
|
|
9
9
|
export declare function InputMixin<T extends Constructor<LitElement>>(superClass: T): Constructor<InputMixinInterface> & T;
|
|
10
10
|
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
declare type Constructor<T = Record<string, unknown>> = new (...args: any[]) => T;
|
|
3
|
+
export declare class ReadonlyMixinInterface {
|
|
4
|
+
readonly: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare function ReadonlyMixin<T extends Constructor<LitElement>>(superClass: T): Constructor<ReadonlyMixinInterface> & T;
|
|
7
|
+
export {};
|
|
@@ -5,7 +5,7 @@ import "../visually-hidden/VisuallyHidden.js";
|
|
|
5
5
|
import "../calendar/Calendar.js";
|
|
6
6
|
import type { DateDisabledPredicate } from "../calendar/Calendar.js";
|
|
7
7
|
import { DateAdapter } from "./date-adapter.js";
|
|
8
|
-
declare const DatePicker_base: (new (...args: any[]) => import("../common/mixins/FormAssociatedMixin.js").FormAssociatedMixinInterface) & (new (...args: any[]) => import("../common/mixins/InputMixin.js").InputMixinInterface) & (new (...args: any[]) => import("../common/mixins/FocusableMixin.js").FocusableMixinInterface) & typeof LitElement;
|
|
8
|
+
declare const DatePicker_base: (new (...args: any[]) => import("../common/mixins/FormAssociatedMixin.js").FormAssociatedMixinInterface) & (new (...args: any[]) => import("../common/mixins/ReadonlyMixin.js").ReadonlyMixinInterface) & (new (...args: any[]) => import("../common/mixins/InputMixin.js").InputMixinInterface) & (new (...args: any[]) => import("../common/mixins/FocusableMixin.js").FocusableMixinInterface) & typeof LitElement;
|
|
9
9
|
/**
|
|
10
10
|
*
|
|
11
11
|
* Date Picker allows user to enter a date either through text input,
|
package/lib/src/index.d.ts
CHANGED
|
@@ -41,3 +41,4 @@ export { default as Skeleton } from "./skeleton/Skeleton.js";
|
|
|
41
41
|
export { default as Toast } from "./toast/Toast.js";
|
|
42
42
|
export { default as ToastGroup } from "./toast-group/ToastGroup.js";
|
|
43
43
|
export { default as Divider } from "./divider/Divider.js";
|
|
44
|
+
export { default as Qrcode } from "./qrcode/Qrcode.js";
|
package/lib/src/input/Input.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
|
-
declare const Input_base: (new (...args: any[]) => import("../common/mixins/FormAssociatedMixin.js").FormAssociatedMixinInterface) & (new (...args: any[]) => import("../common/mixins/InputMixin.js").InputMixinInterface) & (new (...args: any[]) => import("../common/mixins/FocusableMixin.js").FocusableMixinInterface) & typeof LitElement;
|
|
2
|
+
declare const Input_base: (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/InputMixin.js").InputMixinInterface) & (new (...args: any[]) => import("../common/mixins/FocusableMixin.js").FocusableMixinInterface) & typeof LitElement;
|
|
3
3
|
/**
|
|
4
4
|
* Inputs are used to allow users to provide text input when the expected input is short.
|
|
5
5
|
* As well as plain text, Input supports various types of text, including passwords and numbers.
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
declare const Qrcode_base: typeof LitElement;
|
|
3
|
+
/**
|
|
4
|
+
* QR Code component is used for providing information or links
|
|
5
|
+
* to users which they can quickly scan with their smartphone.
|
|
6
|
+
*
|
|
7
|
+
* @status draft
|
|
8
|
+
* @category image
|
|
9
|
+
* @displayName QR Code
|
|
10
|
+
*/
|
|
11
|
+
export default class Qrcode extends Qrcode_base {
|
|
12
|
+
static styles: import("lit").CSSResult[];
|
|
13
|
+
private canvas;
|
|
14
|
+
private computed;
|
|
15
|
+
/**
|
|
16
|
+
* The value of the QR Code, most commonly an URL.
|
|
17
|
+
*/
|
|
18
|
+
value: string;
|
|
19
|
+
/**
|
|
20
|
+
* Label used by assistive technology. If unspecified, the value will
|
|
21
|
+
* be used instead.
|
|
22
|
+
*/
|
|
23
|
+
label: string;
|
|
24
|
+
/**
|
|
25
|
+
* The size of the rendered QR Code in pixels.
|
|
26
|
+
*/
|
|
27
|
+
size: number;
|
|
28
|
+
/**
|
|
29
|
+
* The fill color of the QR Code.
|
|
30
|
+
* Can accept any valid CSS color value, including custom properties.
|
|
31
|
+
*/
|
|
32
|
+
color: string;
|
|
33
|
+
/**
|
|
34
|
+
* The background color of the QR Code.
|
|
35
|
+
* Can accept any valid CSS color value, including custom properties.
|
|
36
|
+
*/
|
|
37
|
+
background: string;
|
|
38
|
+
/**
|
|
39
|
+
* Error correction level makes the QR Code bigger and helps users to
|
|
40
|
+
* scan it without issues. L, M, Q and H values will use 7%, 15%, 25%
|
|
41
|
+
* and 30% of the QR code for error correction respectively.
|
|
42
|
+
*/
|
|
43
|
+
correction: "L" | "M" | "Q" | "H";
|
|
44
|
+
firstUpdated(): void;
|
|
45
|
+
private generate;
|
|
46
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
47
|
+
}
|
|
48
|
+
declare global {
|
|
49
|
+
interface HTMLElementTagNameMap {
|
|
50
|
+
"nord-qrcode": Qrcode;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
2
|
import "../button/Button.js";
|
|
3
|
-
declare const Select_base: (new (...args: any[]) => import("../common/mixins/FormAssociatedMixin.js").FormAssociatedMixinInterface) & (new (...args: any[]) => import("../common/mixins/InputMixin.js").InputMixinInterface) & (new (...args: any[]) => import("../common/mixins/FocusableMixin.js").FocusableMixinInterface) & typeof LitElement;
|
|
3
|
+
declare const Select_base: (new (...args: any[]) => import("../common/mixins/FormAssociatedMixin.js").FormAssociatedMixinInterface) & (new (...args: any[]) => import("../common/mixins/AutocompleteMixin.js").AutocompleteMixinInterface) & (new (...args: any[]) => import("../common/mixins/InputMixin.js").InputMixinInterface) & (new (...args: any[]) => import("../common/mixins/FocusableMixin.js").FocusableMixinInterface) & typeof LitElement;
|
|
4
4
|
/**
|
|
5
5
|
* Select lets users choose one option from an options menu.
|
|
6
6
|
* Consider using select when you have 5 or more options to choose from.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
|
-
declare const Textarea_base: (new (...args: any[]) => import("../common/mixins/FormAssociatedMixin.js").FormAssociatedMixinInterface) & (new (...args: any[]) => import("../common/mixins/InputMixin.js").InputMixinInterface) & (new (...args: any[]) => import("../common/mixins/FocusableMixin.js").FocusableMixinInterface) & typeof LitElement;
|
|
2
|
+
declare const Textarea_base: (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/InputMixin.js").InputMixinInterface) & (new (...args: any[]) => import("../common/mixins/FocusableMixin.js").FocusableMixinInterface) & typeof LitElement;
|
|
3
3
|
/**
|
|
4
4
|
* Textarea is a component that allows user to write text over
|
|
5
5
|
* multiple rows. Used when the expected user input is long.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nordhealth/components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.11.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",
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"@floating-ui/dom": "0.5.3",
|
|
35
35
|
"@nordhealth/icons": "^1.3.9",
|
|
36
36
|
"lit": "2.2.5",
|
|
37
|
+
"qr-creator": "1.0.0",
|
|
37
38
|
"tinykeys": "1.4.0"
|
|
38
39
|
},
|
|
39
40
|
"devDependencies": {
|
|
@@ -178,5 +179,5 @@
|
|
|
178
179
|
}
|
|
179
180
|
]
|
|
180
181
|
},
|
|
181
|
-
"gitHead": "
|
|
182
|
+
"gitHead": "807c6fb3a4723f457dd1cba5123efd2b7ba4a665"
|
|
182
183
|
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as n}from"./lit-element-67e6cd99.js";const r=n`.n-input-container{position:relative;inline-size:var(--n-input-width,240px)}.n-input{background:var(--n-color-active);color:var(--n-color-text);padding-block-start:calc(var(--n-space-s) - 1px);padding-block-end:calc(var(--n-space-s) - 1px);padding-inline-start:calc(var(--n-space-s) * 1.6);padding-inline-end:calc(var(--n-space-s) * 1.6);border-radius:var(--n-border-radius-s);border:1px solid var(--n-input-border-color,var(--n-color-border-strong));font-family:var(--n-font-family);font-size:var(--n-font-size-m);line-height:var(--n-line-height-form);inline-size:100%;transition:border var(--n-transition-slowly),box-shadow var(--n-transition-slowly),background var(--n-transition-slowly)}@media (max-width:480px){.n-input{font-size:var(--n-font-size-l)}}:host([expand]){--n-input-width:100%;inline-size:100%}.n-input:hover,.n-label-container:hover+.n-input-container .n-input{--n-input-border-color:var(--n-color-border-hover)}.n-input:focus{--n-input-border-color:var(--n-color-accent);background:var(--n-color-surface);outline:0;box-shadow:0 0 0 1px var(--n-input-border-color)}.n-input::placeholder{color:var(--n-color-text-weakest)}.n-input:disabled,.n-label-container:hover+.n-input-container .n-input:disabled{--n-input-border-color:var(--n-color-active);color:var(--n-color-text-weakest)}.n-input[aria-invalid=true]{--n-input-border-color:var(--n-color-status-danger)!important}`;export{r as s};
|
|
2
|
-
//# sourceMappingURL=TextField-93a3922f.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TextField-93a3922f.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|