@nordhealth/components 3.11.1 → 3.12.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 +3392 -2617
- package/lib/ButtonGroup.js +1 -1
- package/lib/ButtonGroup.js.map +1 -1
- package/lib/{Calendar-1517347e.js → Calendar-5fbf9d8d.js} +1 -1
- package/lib/{Calendar-1517347e.js.map → Calendar-5fbf9d8d.js.map} +1 -1
- package/lib/Calendar.js +1 -1
- package/lib/DatePicker.js +1 -1
- package/lib/DraftComponentMixin-9e4b7b34.js +2 -0
- package/lib/DraftComponentMixin-9e4b7b34.js.map +1 -0
- package/lib/Icon.js +1 -1
- package/lib/Icon.js.map +1 -1
- package/lib/Layout.js +1 -1
- package/lib/LightSlotController-c51e9cf5.js +2 -0
- package/lib/LightSlotController-c51e9cf5.js.map +1 -0
- package/lib/{NavToggle-b54db654.js → NavToggle-6b13700e.js} +1 -1
- package/lib/{NavToggle-b54db654.js.map → NavToggle-6b13700e.js.map} +1 -1
- package/lib/NavToggle.js +1 -1
- package/lib/Radio.js +1 -1
- package/lib/Radio.js.map +1 -1
- package/lib/SegmentedControl.js +2 -0
- package/lib/SegmentedControl.js.map +1 -0
- package/lib/SegmentedControlItem.js +2 -0
- package/lib/SegmentedControlItem.js.map +1 -0
- package/lib/Select.js +1 -1
- package/lib/Select.js.map +1 -1
- package/lib/Stack.js +1 -1
- package/lib/Stack.js.map +1 -1
- package/lib/Tag.js +1 -1
- package/lib/Tag.js.map +1 -1
- package/lib/TagGroup.js +2 -0
- package/lib/TagGroup.js.map +1 -0
- package/lib/bundle.js +22 -22
- package/lib/bundle.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/src/button-group/ButtonGroup.d.ts +2 -3
- package/lib/src/index.d.ts +5 -2
- package/lib/src/segmented-control/SegmentedControl.d.ts +26 -0
- package/lib/src/segmented-control/SegmentedControl.test.d.ts +8 -0
- package/lib/src/segmented-control-item/SegmentedControlItem.d.ts +59 -0
- package/lib/src/segmented-control-item/SegmentedControlItem.test.d.ts +3 -0
- package/lib/src/stack/Stack.d.ts +1 -1
- package/lib/src/tag/Tag.d.ts +4 -0
- package/lib/src/tag-group/TagGroup.d.ts +40 -0
- package/lib/src/tag-group/TagGroup.test.d.ts +3 -0
- package/package.json +2 -2
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{isTranslationRegistered,registerTranslation}from"./translation.js";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-5fbf9d8d.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-2f9d860d.js";export{default as Dropdown}from"./Dropdown.js";export{default as DropdownItem}from"./DropdownItem.js";export{default as DropdownGroup}from"./DropdownGroup.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-6b13700e.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";export{default as Tag}from"./Tag.js";export{default as TagGroup}from"./TagGroup.js";export{default as SegmentedControl}from"./SegmentedControl.js";export{default as SegmentedControlItem}from"./SegmentedControlItem.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"./localization9.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-3fa55d53.js";import"./FormDataController-592ff3dd.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-11ae4745.js";import"./ShortcutController-87615e31.js";import"./tinykeys.module-84e6cc41.js";import"./KeyboardController.js";import"./SelectEvent.js";import"./LocalizeController.js";import"./dates-5b651fbe.js";import"./DateSelectEvent.js";import"./interface-close-small-f26b0299.js";import"./date-adapter.js";import"./interface-checked-small-07292940.js";import"./positioning-2346bdd6.js";import"./fsm-50373df9.js";import"./LightSlotController-c51e9cf5.js";import"./DropdownItem-588f5a6b.js";import"./Sticky-c34c9b12.js";import"./ScrollbarController-773c79f4.js";import"./ModalController.js";import"./NotificationMixin-207f1f56.js";import"./DraftComponentMixin-9e4b7b34.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -6,9 +6,8 @@ import { LitElement } from "lit";
|
|
|
6
6
|
* @category structure
|
|
7
7
|
* @slot - The button group content
|
|
8
8
|
*
|
|
9
|
-
* @cssprop [--n-button-group-border-radius=var(--n-border-radius-s)] - Controls the rounded corners of the button, using [border radius tokens](/tokens/#border-radius). Only relevant for the default variant.
|
|
9
|
+
* @cssprop [--n-button-group-border-radius=var(--n-border-radius-s)] - Controls the rounded corners of the button group, using [border radius tokens](/tokens/#border-radius). Only relevant for the default variant.
|
|
10
10
|
* @cssprop [--n-button-group-box-shadow=var(--n-box-shadow)] - Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow). Only relevant for the default variant.
|
|
11
|
-
|
|
12
11
|
*/
|
|
13
12
|
export default class ButtonGroup extends LitElement {
|
|
14
13
|
static styles: import("lit").CSSResult[];
|
|
@@ -24,7 +23,7 @@ export default class ButtonGroup extends LitElement {
|
|
|
24
23
|
direction: "vertical" | "horizontal";
|
|
25
24
|
/**
|
|
26
25
|
* Defines whether the buttons are forced in a single line
|
|
27
|
-
* or can be flowed into multiple lines (only
|
|
26
|
+
* or can be flowed into multiple lines (only applied when variant is set to `spaced`).
|
|
28
27
|
*/
|
|
29
28
|
wrap: boolean;
|
|
30
29
|
/**
|
package/lib/src/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export { registerTranslation, isTranslationRegistered } from "./localization/translation.js";
|
|
2
|
+
export type { Translation } from "./localization/translation.js";
|
|
1
3
|
export { default as Badge } from "./badge/Badge.js";
|
|
2
4
|
export { default as Button } from "./button/Button.js";
|
|
3
5
|
export { default as Card } from "./card/Card.js";
|
|
@@ -31,8 +33,6 @@ export { default as Popout } from "./popout/Popout.js";
|
|
|
31
33
|
export { default as Dropdown } from "./dropdown/Dropdown.js";
|
|
32
34
|
export { default as DropdownItem } from "./dropdown-item/DropdownItem.js";
|
|
33
35
|
export { default as DropdownGroup } from "./dropdown-group/DropdownGroup.js";
|
|
34
|
-
export { registerTranslation, isTranslationRegistered } from "./localization/translation.js";
|
|
35
|
-
export type { Translation } from "./localization/translation.js";
|
|
36
36
|
export { default as TabGroup } from "./tab-group/TabGroup.js";
|
|
37
37
|
export { default as Tab } from "./tab/Tab.js";
|
|
38
38
|
export { default as TabPanel } from "./tab-panel/TabPanel.js";
|
|
@@ -52,3 +52,6 @@ export { default as NotificationGroup } from "./notification-group/NotificationG
|
|
|
52
52
|
export { default as TopBar } from "./top-bar/TopBar.js";
|
|
53
53
|
export { default as Footer } from "./footer/Footer.js";
|
|
54
54
|
export { default as Tag } from "./tag/Tag.js";
|
|
55
|
+
export { default as TagGroup } from "./tag-group/TagGroup.js";
|
|
56
|
+
export { default as SegmentedControl } from "./segmented-control/SegmentedControl.js";
|
|
57
|
+
export { default as SegmentedControlItem } from "./segmented-control-item/SegmentedControlItem.js";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
declare const SegmentedControl_base: typeof LitElement;
|
|
3
|
+
/**
|
|
4
|
+
* Segmented control is used to pick one choice from a set of
|
|
5
|
+
* closely related choices, and immediately apply that selection.
|
|
6
|
+
*
|
|
7
|
+
* @status draft
|
|
8
|
+
* @category action
|
|
9
|
+
* @slot - Default slot.
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export default class SegmentedControl extends SegmentedControl_base {
|
|
13
|
+
static styles: import("lit").CSSResult[];
|
|
14
|
+
private defaultSlot;
|
|
15
|
+
/**
|
|
16
|
+
* Controls whether the segmented control expands to fill the width of its container.
|
|
17
|
+
*/
|
|
18
|
+
expand: boolean;
|
|
19
|
+
render(): import("lit").TemplateResult<1>;
|
|
20
|
+
}
|
|
21
|
+
declare global {
|
|
22
|
+
interface HTMLElementTagNameMap {
|
|
23
|
+
"nord-segmented-control": SegmentedControl;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import "../segmented-control-item/SegmentedControlItem.js";
|
|
2
|
+
import "../visually-hidden/VisuallyHidden.js";
|
|
3
|
+
import "../divider/Divider.js";
|
|
4
|
+
import "../button/Button.js";
|
|
5
|
+
import "../select/Select.js";
|
|
6
|
+
import "../input/Input.js";
|
|
7
|
+
import "../stack/Stack.js";
|
|
8
|
+
import "../icon/Icon.js";
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import { LightDomController } from "../common/controllers/LightDomController.js";
|
|
3
|
+
import { LightSlotController } from "../common/controllers/LightSlotController.js";
|
|
4
|
+
declare const SegmentedControlItem_base: (new (...args: any[]) => import("../common/mixins/InputMixin.js").InputMixinInterface) & (new (...args: any[]) => import("../common/mixins/FocusableMixin.js").FocusableMixinInterface) & typeof LitElement;
|
|
5
|
+
/**
|
|
6
|
+
* Segmented control items populate a segmented control with options.
|
|
7
|
+
* Every item should be placed inside a segmented control.
|
|
8
|
+
*
|
|
9
|
+
* @status draft
|
|
10
|
+
* @category action
|
|
11
|
+
* @slot label - Use when a label requires more than plain text.
|
|
12
|
+
*
|
|
13
|
+
* @cssprop [--n-segmented-control-item-border-radius=var(--n-border-radius-s)] - Controls the rounded corners of the item, using [border radius tokens](/tokens/#border-radius).
|
|
14
|
+
* @cssprop [--n-segmented-control-item-gap=var(--n-space-xs)] - Controls the spacing between elements within the item, using our [spacing tokens](/tokens/#space).
|
|
15
|
+
* @cssprop [--n-segmented-control-item-gradient=linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.013) 100%))] - Controls the overlayed gradient background on the item.
|
|
16
|
+
* @cssprop [--n-segmented-control-item-background-color=var(--n-color-nav-hover)] - Controls the background color of the item, using our [color tokens](/tokens/#color).
|
|
17
|
+
* @cssprop [--n-segmented-control-item-color=var(--n-color-text-weaker)] - Controls the color of the text within the item, using our [color tokens](/tokens/#color).
|
|
18
|
+
* @cssprop [--n-segmented-control-item-padding-inline=calc(var(--n-space-m) / 1.2)] - Controls the inline, or left and right, padding of the item.
|
|
19
|
+
* @cssprop [--n-segmented-control-item-box-shadow=none] - Controls the surrounding shadow, using our [box shadow tokens](/tokens/#box-shadow).
|
|
20
|
+
* @cssprop [--n-segmented-control-item-font-size=var(--n-font-size-m)] - Controls the size of the text within the item, using our [font tokens](/tokens/#font).
|
|
21
|
+
* @cssprop [--n-segmented-control-item-font-weight=var(--n-font-weight)] - Controls the weight of the text within the item, using our [font tokens](/tokens/#font).
|
|
22
|
+
* @cssprop [--n-segmented-control-item-min-block-size=calc(var(--n-space-xl) - 2px)] - Controls the minimum block size, or height, of the item using our [spacing tokens](/tokens/#space).
|
|
23
|
+
* @cssprop [--n-segmented-control-item-inline-size=auto] - Controls the inline size of the item.
|
|
24
|
+
*/
|
|
25
|
+
export default class SegmentedControlItem extends SegmentedControlItem_base {
|
|
26
|
+
static styles: import("lit").CSSResult[];
|
|
27
|
+
protected inputId: string;
|
|
28
|
+
/**
|
|
29
|
+
* For accessibility reasons, we render the form parts of the component to the light DOM.
|
|
30
|
+
*/
|
|
31
|
+
protected inputSlot: LightDomController;
|
|
32
|
+
protected labelSlot: LightSlotController;
|
|
33
|
+
/**
|
|
34
|
+
* Controls whether the segmented control item is checked or not.
|
|
35
|
+
*/
|
|
36
|
+
checked: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* The size of the segmented control item.
|
|
39
|
+
* This affects font-size and padding.
|
|
40
|
+
*/
|
|
41
|
+
size: "s" | "m" | "l";
|
|
42
|
+
/**
|
|
43
|
+
* Label for the segmented control item.
|
|
44
|
+
*/
|
|
45
|
+
label: string;
|
|
46
|
+
render(): import("lit").TemplateResult<1>;
|
|
47
|
+
protected handleCheckedChange(previousChecked: boolean): void;
|
|
48
|
+
private uncheckSiblings;
|
|
49
|
+
protected handleChange(e: Event): void;
|
|
50
|
+
private handleBlur;
|
|
51
|
+
private handleFocus;
|
|
52
|
+
protected handleInput(e: Event): void;
|
|
53
|
+
}
|
|
54
|
+
declare global {
|
|
55
|
+
interface HTMLElementTagNameMap {
|
|
56
|
+
"nord-segmented-control-item": SegmentedControlItem;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
export {};
|
package/lib/src/stack/Stack.d.ts
CHANGED
package/lib/src/tag/Tag.d.ts
CHANGED
|
@@ -29,6 +29,10 @@ export default class Tag extends Tag_base {
|
|
|
29
29
|
* The size of the tag. This affects the font-size.
|
|
30
30
|
*/
|
|
31
31
|
size: "s" | "m";
|
|
32
|
+
/**
|
|
33
|
+
* Controls whether the tag expands to fill the width of its container.
|
|
34
|
+
*/
|
|
35
|
+
expand: boolean;
|
|
32
36
|
protected handleChange(e: Event): void;
|
|
33
37
|
protected handleRemove(): void;
|
|
34
38
|
render(): import("lit").TemplateResult<1>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
declare const TagGroup_base: typeof LitElement;
|
|
3
|
+
/**
|
|
4
|
+
* Tag groups are designed to bring together selectable tags that are of a similar nature. For example categories you can filter by.
|
|
5
|
+
*
|
|
6
|
+
* @status draft
|
|
7
|
+
* @category structure
|
|
8
|
+
* @slot - The tag group content
|
|
9
|
+
*
|
|
10
|
+
* @cssprop [--n-tag-group-border-radius=var(--n-border-radius-s)] - Controls the rounded corners of the tag group, using [border radius tokens](/tokens/#border-radius). Only relevant for the default variant.
|
|
11
|
+
* @cssprop [--n-tag-group-box-shadow=var(--n-box-shadow)] - Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow). Only relevant for the default variant.
|
|
12
|
+
*/
|
|
13
|
+
export default class TagGroup extends TagGroup_base {
|
|
14
|
+
static styles: import("lit").CSSResult[];
|
|
15
|
+
private dirController;
|
|
16
|
+
/**
|
|
17
|
+
* The style variant of the tag group.
|
|
18
|
+
*/
|
|
19
|
+
variant: "default" | "spaced";
|
|
20
|
+
/**
|
|
21
|
+
* The direction of the tag group.
|
|
22
|
+
*/
|
|
23
|
+
direction: "vertical" | "horizontal";
|
|
24
|
+
/**
|
|
25
|
+
* Defines whether the tags are forced in a single line
|
|
26
|
+
* or can be flowed into multiple lines (only applied when variant is set to `spaced`).
|
|
27
|
+
*/
|
|
28
|
+
wrap: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* The appropriate role for the containing element.
|
|
31
|
+
*/
|
|
32
|
+
role: string;
|
|
33
|
+
render(): import("lit").TemplateResult<1>;
|
|
34
|
+
}
|
|
35
|
+
declare global {
|
|
36
|
+
interface HTMLElementTagNameMap {
|
|
37
|
+
"nord-tag-group": TagGroup;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nordhealth/components",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.12.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",
|
|
@@ -184,5 +184,5 @@
|
|
|
184
184
|
}
|
|
185
185
|
]
|
|
186
186
|
},
|
|
187
|
-
"gitHead": "
|
|
187
|
+
"gitHead": "80e9ef35e2b2785fcacbf163e4f64ab637e49492"
|
|
188
188
|
}
|