@nordhealth/components 3.14.1 → 3.15.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/README.md +1 -1
- package/custom-elements.json +999 -955
- package/lib/AutocompleteMixin-5a7e10b2.js +2 -0
- package/lib/{AutocompleteMixin-3cf61f49.js.map → AutocompleteMixin-5a7e10b2.js.map} +1 -1
- package/lib/Avatar.js +1 -1
- package/lib/Avatar.js.map +1 -1
- package/lib/Badge.js +1 -1
- package/lib/Badge.js.map +1 -1
- package/lib/Banner.js +1 -1
- package/lib/Banner.js.map +1 -1
- package/lib/Button.js +1 -1
- package/lib/Button.js.map +1 -1
- package/lib/ButtonGroup.js +1 -1
- package/lib/ButtonGroup.js.map +1 -1
- package/lib/{Calendar-a80c53ba.js → Calendar-5fbf9d8d.js} +2 -2
- package/lib/{Calendar-a80c53ba.js.map → Calendar-5fbf9d8d.js.map} +1 -1
- package/lib/Calendar.js +1 -1
- package/lib/Card.js +1 -1
- package/lib/Card.js.map +1 -1
- package/lib/Checkbox.js +1 -1
- package/lib/Checkbox.js.map +1 -1
- package/lib/CommandMenu.js +1 -1
- package/lib/CommandMenu.js.map +1 -1
- package/lib/CommandMenuAction.js +1 -1
- package/lib/CommandMenuAction.js.map +1 -1
- package/lib/{Component-420bbc41.js → Component-2253424f.js} +2 -2
- package/lib/Component-2253424f.js.map +1 -0
- package/lib/DatePicker.js +1 -1
- package/lib/DatePicker.js.map +1 -1
- package/lib/DateSelectEvent.js.map +1 -1
- package/lib/DirectionController-f35f5476.js.map +1 -1
- package/lib/Divider.js +1 -1
- package/lib/Divider.js.map +1 -1
- package/lib/DraftComponentMixin-9e4b7b34.js.map +1 -1
- package/lib/Drawer.js +1 -1
- package/lib/Drawer.js.map +1 -1
- package/lib/Dropdown.js +1 -1
- package/lib/Dropdown.js.map +1 -1
- package/lib/DropdownGroup.js +1 -1
- package/lib/DropdownGroup.js.map +1 -1
- package/lib/{DropdownItem-579d8ef6.js → DropdownItem-32052903.js} +2 -2
- package/lib/DropdownItem-32052903.js.map +1 -0
- package/lib/DropdownItem.js +1 -1
- package/lib/DropdownItem.js.map +1 -1
- package/lib/EmptyState.js +1 -1
- package/lib/EmptyState.js.map +1 -1
- package/lib/EventController-d99ebeef.js.map +1 -1
- package/lib/Fieldset.js +1 -1
- package/lib/Fieldset.js.map +1 -1
- package/lib/{FocusableMixin-4300e44e.js → FocusableMixin-d30213b4.js} +2 -2
- package/lib/{FocusableMixin-4300e44e.js.map → FocusableMixin-d30213b4.js.map} +1 -1
- package/lib/Footer.js +1 -1
- package/lib/Footer.js.map +1 -1
- package/lib/{FormAssociatedMixin-6f1c13ac.js → FormAssociatedMixin-3fa55d53.js} +2 -2
- package/lib/{FormAssociatedMixin-6f1c13ac.js.map → FormAssociatedMixin-3fa55d53.js.map} +1 -1
- package/lib/FormDataController-592ff3dd.js.map +1 -1
- package/lib/{FormField-cbfebb3f.js → FormField-87551be2.js} +2 -2
- package/lib/FormField-87551be2.js.map +1 -0
- package/lib/Header.js +1 -1
- package/lib/Header.js.map +1 -1
- package/lib/Icon.js +1 -1
- package/lib/Icon.js.map +1 -1
- package/lib/IconManager.js.map +1 -1
- package/lib/Input.js +1 -1
- package/lib/Input.js.map +1 -1
- package/lib/{InputMixin-f9fb4034.js → InputMixin-83b5bd46.js} +2 -2
- package/lib/{InputMixin-f9fb4034.js.map → InputMixin-83b5bd46.js.map} +1 -1
- package/lib/KeyboardController.js.map +1 -1
- package/lib/Layout.js +1 -1
- package/lib/Layout.js.map +1 -1
- package/lib/LightDismissController-11ae4745.js.map +1 -1
- package/lib/{LightDomController-3d3edb76.js → LightDomController-5388d84c.js} +2 -2
- package/lib/{LightDomController-3d3edb76.js.map → LightDomController-5388d84c.js.map} +1 -1
- package/lib/{LightSlotController-0953b4d4.js → LightSlotController-c51e9cf5.js} +2 -2
- package/lib/{LightSlotController-0953b4d4.js.map → LightSlotController-c51e9cf5.js.map} +1 -1
- package/lib/LocalizeController.js.map +1 -1
- package/lib/Message.js +1 -1
- package/lib/Message.js.map +1 -1
- package/lib/Modal.js +1 -1
- package/lib/Modal.js.map +1 -1
- package/lib/ModalController.js.map +1 -1
- package/lib/NavGroup.js +1 -1
- package/lib/NavGroup.js.map +1 -1
- package/lib/NavItem.js +1 -1
- package/lib/NavItem.js.map +1 -1
- package/lib/{NavToggle-5620165f.js → NavToggle-6b13700e.js} +2 -2
- package/lib/{NavToggle-5620165f.js.map → NavToggle-6b13700e.js.map} +1 -1
- package/lib/NavToggle.js +1 -1
- package/lib/Navigation.js +1 -1
- package/lib/Navigation.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/{NotificationMixin-c06bb631.js → NotificationMixin-207f1f56.js} +2 -2
- package/lib/{NotificationMixin-c06bb631.js.map → NotificationMixin-207f1f56.js.map} +1 -1
- package/lib/Popout-b6f0175c.js +2 -0
- package/lib/{Popout-e5584f6a.js.map → Popout-b6f0175c.js.map} +1 -1
- package/lib/Popout.js +1 -1
- package/lib/ProgressBar.js +1 -1
- package/lib/ProgressBar.js.map +1 -1
- package/lib/Qrcode.js +1 -1
- package/lib/Qrcode.js.map +1 -1
- package/lib/Radio.js +1 -1
- package/lib/Radio.js.map +1 -1
- package/lib/Range.js +1 -1
- package/lib/Range.js.map +1 -1
- package/lib/ScrollbarController-773c79f4.js.map +1 -1
- package/lib/SegmentedControl.js +1 -1
- package/lib/SegmentedControl.js.map +1 -1
- package/lib/SegmentedControlItem.js +1 -1
- package/lib/SegmentedControlItem.js.map +1 -1
- package/lib/Select.js +1 -1
- package/lib/Select.js.map +1 -1
- package/lib/SelectEvent.js.map +1 -1
- package/lib/ShortcutController-87615e31.js.map +1 -1
- package/lib/SizeMixin-ab074eff.js +2 -0
- package/lib/{SizeMixin-fb379434.js.map → SizeMixin-ab074eff.js.map} +1 -1
- package/lib/Skeleton.js +1 -1
- package/lib/Skeleton.js.map +1 -1
- package/lib/SlotController-d733c575.js.map +1 -1
- package/lib/Spinner.js +1 -1
- package/lib/Spinner.js.map +1 -1
- package/lib/Stack.js +1 -1
- package/lib/Stack.js.map +1 -1
- package/lib/{Sticky-acc92284.js → Sticky-c34c9b12.js} +2 -2
- package/lib/Sticky-c34c9b12.js.map +1 -0
- package/lib/Tab.js +1 -1
- package/lib/Tab.js.map +1 -1
- package/lib/TabGroup.js +1 -1
- package/lib/TabGroup.js.map +1 -1
- package/lib/TabPanel.js +1 -1
- package/lib/TabPanel.js.map +1 -1
- package/lib/Table.js +1 -1
- package/lib/Table.js.map +1 -1
- package/lib/Tag.js +1 -1
- package/lib/Tag.js.map +1 -1
- package/lib/TagGroup.js +1 -1
- package/lib/TagGroup.js.map +1 -1
- package/lib/{TextField-8b226327.js → TextField-2d778949.js} +2 -2
- package/lib/{TextField-8b226327.js.map → TextField-2d778949.js.map} +1 -1
- package/lib/{TextSelectableMixin-f05ce716.js → TextSelectableMixin-aac97d82.js} +2 -2
- package/lib/{TextSelectableMixin-f05ce716.js.map → TextSelectableMixin-aac97d82.js.map} +1 -1
- package/lib/Textarea.js +1 -1
- package/lib/Textarea.js.map +1 -1
- package/lib/Toast.js +1 -1
- package/lib/Toast.js.map +1 -1
- package/lib/ToastGroup.js +1 -1
- package/lib/ToastGroup.js.map +1 -1
- package/lib/Toggle.js +1 -1
- package/lib/Toggle.js.map +1 -1
- package/lib/Tooltip.js +1 -1
- package/lib/Tooltip.js.map +1 -1
- package/lib/TopBar.js +1 -1
- package/lib/TopBar.js.map +1 -1
- package/lib/VisuallyHidden.js +1 -1
- package/lib/VisuallyHidden.js.map +1 -1
- package/lib/bundle.js +35 -18
- package/lib/bundle.js.map +1 -1
- package/lib/{class-map-cb77ead2.js → class-map-512f0bc1.js} +2 -2
- package/lib/class-map-512f0bc1.js.map +1 -0
- package/lib/collection-511dcfac.js +7 -0
- package/lib/collection-511dcfac.js.map +1 -0
- package/lib/cond-bb9ee891.js +2 -0
- package/lib/{cond-44672025.js.map → cond-bb9ee891.js.map} +1 -1
- package/lib/{directive-de55b00a.js → directive-e9ce14b4.js} +1 -1
- package/lib/directive-e9ce14b4.js.map +1 -0
- package/lib/events-d9666e88.js.map +1 -1
- package/lib/{if-defined-9b177db4.js → if-defined-cccde88f.js} +2 -2
- package/lib/if-defined-cccde88f.js.map +1 -0
- package/lib/index.js +1 -1
- package/lib/observe-a9c6dfb6.js.map +1 -1
- package/lib/positioning-35c8d434.js +2 -0
- package/lib/positioning-35c8d434.js.map +1 -0
- package/lib/{property-03f59dce.js → property-c78323b1.js} +2 -2
- package/lib/property-c78323b1.js.map +1 -0
- package/lib/{query-2d22378e.js → query-36bfe0e4.js} +1 -1
- package/lib/query-36bfe0e4.js.map +1 -0
- package/lib/query-assigned-elements-92ce7494.js +51 -0
- package/lib/query-assigned-elements-92ce7494.js.map +1 -0
- package/lib/{ref-5526fb07.js → ref-99418ab4.js} +4 -4
- package/lib/ref-99418ab4.js.map +1 -0
- package/lib/src/avatar/Avatar.d.ts +3 -3
- package/lib/src/badge/Badge.d.ts +1 -1
- package/lib/src/banner/Banner.d.ts +1 -1
- package/lib/src/button-group/ButtonGroup.d.ts +1 -1
- package/lib/src/calendar/Calendar.d.ts +1 -1
- package/lib/src/card/Card.d.ts +1 -1
- package/lib/src/checkbox/Checkbox.d.ts +1 -1
- package/lib/src/command-menu/CommandMenu.d.ts +1 -1
- package/lib/src/command-menu/CommandMenuAction.d.ts +1 -1
- package/lib/src/date-picker/DatePicker.d.ts +1 -1
- package/lib/src/drawer/Drawer.d.ts +1 -1
- package/lib/src/dropdown/Dropdown.d.ts +2 -1
- package/lib/src/dropdown-group/DropdownGroup.d.ts +1 -1
- package/lib/src/dropdown-item/DropdownItem.d.ts +1 -0
- package/lib/src/empty-state/EmptyState.d.ts +1 -1
- package/lib/src/fieldset/Fieldset.d.ts +1 -1
- package/lib/src/footer/Footer.d.ts +1 -1
- package/lib/src/header/Header.d.ts +1 -1
- package/lib/src/icon/Icon.d.ts +1 -1
- package/lib/src/input/Input.d.ts +1 -1
- package/lib/src/layout/Layout.d.ts +1 -1
- package/lib/src/modal/Modal.d.ts +1 -1
- package/lib/src/nav-group/NavGroup.d.ts +1 -1
- package/lib/src/nav-toggle/NavToggle.d.ts +1 -1
- package/lib/src/navigation/Navigation.d.ts +1 -1
- package/lib/src/notification/Notification.d.ts +1 -1
- package/lib/src/notification-group/NotificationGroup.d.ts +1 -1
- package/lib/src/popout/Popout.d.ts +1 -1
- package/lib/src/progress-bar/ProgressBar.d.ts +1 -1
- package/lib/src/qrcode/Qrcode.d.ts +1 -1
- package/lib/src/radio/Radio.d.ts +2 -2
- package/lib/src/range/Range.d.ts +1 -1
- package/lib/src/segmented-control/SegmentedControl.d.ts +1 -1
- package/lib/src/segmented-control-item/SegmentedControlItem.d.ts +1 -1
- package/lib/src/select/Select.d.ts +1 -1
- package/lib/src/skeleton/Skeleton.d.ts +1 -1
- package/lib/src/spinner/Spinner.d.ts +1 -1
- package/lib/src/stack/Stack.d.ts +1 -1
- package/lib/src/tab/Tab.d.ts +1 -1
- package/lib/src/tab-group/TabGroup.d.ts +1 -1
- package/lib/src/tab-panel/TabPanel.d.ts +1 -1
- package/lib/src/tag/Tag.d.ts +1 -1
- package/lib/src/tag-group/TagGroup.d.ts +2 -1
- package/lib/src/tag-group/TagGroup.test.d.ts +1 -0
- package/lib/src/textarea/Textarea.d.ts +1 -1
- package/lib/src/toast/Toast.d.ts +1 -1
- package/lib/src/toast-group/ToastGroup.d.ts +1 -1
- package/lib/src/toggle/Toggle.d.ts +1 -1
- package/lib/src/tooltip/Tooltip.d.ts +1 -1
- package/lib/src/top-bar/TopBar.d.ts +1 -1
- package/lib/src/visually-hidden/VisuallyHidden.d.ts +1 -1
- package/lib/{state-70f38ceb.js → state-d31c6912.js} +2 -2
- package/lib/state-d31c6912.js.map +1 -0
- package/lib/style-map-f8a1c8d5.js +7 -0
- package/lib/style-map-f8a1c8d5.js.map +1 -0
- package/package.json +9 -6
- package/lib/AutocompleteMixin-3cf61f49.js +0 -2
- package/lib/Component-420bbc41.js.map +0 -1
- package/lib/DropdownItem-579d8ef6.js.map +0 -1
- package/lib/FormField-cbfebb3f.js.map +0 -1
- package/lib/Popout-e5584f6a.js +0 -2
- package/lib/SizeMixin-fb379434.js +0 -2
- package/lib/Sticky-acc92284.js.map +0 -1
- package/lib/class-map-cb77ead2.js.map +0 -1
- package/lib/collection-2f8e38bd.js +0 -7
- package/lib/collection-2f8e38bd.js.map +0 -1
- package/lib/cond-44672025.js +0 -2
- package/lib/directive-de55b00a.js.map +0 -1
- package/lib/if-defined-9b177db4.js.map +0 -1
- package/lib/positioning-a572d126.js +0 -2
- package/lib/positioning-a572d126.js.map +0 -1
- package/lib/property-03f59dce.js.map +0 -1
- package/lib/query-2d22378e.js.map +0 -1
- package/lib/query-assigned-elements-15485e3d.js +0 -34
- package/lib/query-assigned-elements-15485e3d.js.map +0 -1
- package/lib/ref-5526fb07.js.map +0 -1
- package/lib/state-70f38ceb.js.map +0 -1
- package/lib/style-map-ed7e6cc6.js +0 -7
- package/lib/style-map-ed7e6cc6.js.map +0 -1
package/custom-elements.json
CHANGED
|
@@ -6669,6 +6669,12 @@
|
|
|
6669
6669
|
}
|
|
6670
6670
|
],
|
|
6671
6671
|
"members": [
|
|
6672
|
+
{
|
|
6673
|
+
"kind": "field",
|
|
6674
|
+
"name": "endSlot",
|
|
6675
|
+
"privacy": "private",
|
|
6676
|
+
"default": "new SlotController(this, \"end\")"
|
|
6677
|
+
},
|
|
6672
6678
|
{
|
|
6673
6679
|
"kind": "field",
|
|
6674
6680
|
"name": "href",
|
|
@@ -9083,6 +9089,211 @@
|
|
|
9083
9089
|
}
|
|
9084
9090
|
]
|
|
9085
9091
|
},
|
|
9092
|
+
{
|
|
9093
|
+
"kind": "javascript-module",
|
|
9094
|
+
"path": "src/message/Message.ts",
|
|
9095
|
+
"declarations": [
|
|
9096
|
+
{
|
|
9097
|
+
"kind": "class",
|
|
9098
|
+
"description": "Message represents a specific item within a collection,\nsuch as notifications, tasks or conversations. Message\ncan be placed directly inside a dropdown component.",
|
|
9099
|
+
"name": "Message",
|
|
9100
|
+
"cssProperties": [
|
|
9101
|
+
{
|
|
9102
|
+
"description": "Controls the border color of the message, using our [color tokens](/tokens/#color).",
|
|
9103
|
+
"name": "--n-message-border-color",
|
|
9104
|
+
"default": "var(--n-color-border)"
|
|
9105
|
+
}
|
|
9106
|
+
],
|
|
9107
|
+
"slots": [
|
|
9108
|
+
{
|
|
9109
|
+
"description": "The message content.",
|
|
9110
|
+
"name": ""
|
|
9111
|
+
},
|
|
9112
|
+
{
|
|
9113
|
+
"description": "Used to place content after the message. Typically used for a timestamp.",
|
|
9114
|
+
"name": "footer"
|
|
9115
|
+
}
|
|
9116
|
+
],
|
|
9117
|
+
"members": [
|
|
9118
|
+
{
|
|
9119
|
+
"kind": "field",
|
|
9120
|
+
"name": "localize",
|
|
9121
|
+
"privacy": "private",
|
|
9122
|
+
"default": "new LocalizeController<\"nord-message\">(this)"
|
|
9123
|
+
},
|
|
9124
|
+
{
|
|
9125
|
+
"kind": "field",
|
|
9126
|
+
"name": "href",
|
|
9127
|
+
"type": {
|
|
9128
|
+
"text": "string | undefined"
|
|
9129
|
+
},
|
|
9130
|
+
"description": "The url the message should link to.",
|
|
9131
|
+
"attribute": "href",
|
|
9132
|
+
"reflects": true
|
|
9133
|
+
},
|
|
9134
|
+
{
|
|
9135
|
+
"kind": "field",
|
|
9136
|
+
"name": "highlight",
|
|
9137
|
+
"type": {
|
|
9138
|
+
"text": "boolean | undefined"
|
|
9139
|
+
},
|
|
9140
|
+
"description": "Highlight the message visually. This is meant for highlighting\na new message that just appeared. Highlight style should be removed\nafter the user has seen the message and there’s been a timeout of\ne.g. 30 seconds.",
|
|
9141
|
+
"attribute": "highlight",
|
|
9142
|
+
"reflects": true
|
|
9143
|
+
},
|
|
9144
|
+
{
|
|
9145
|
+
"kind": "field",
|
|
9146
|
+
"name": "unread",
|
|
9147
|
+
"type": {
|
|
9148
|
+
"text": "boolean | undefined"
|
|
9149
|
+
},
|
|
9150
|
+
"description": "Mark the message as unread. By default messages are read.",
|
|
9151
|
+
"attribute": "unread",
|
|
9152
|
+
"reflects": true
|
|
9153
|
+
},
|
|
9154
|
+
{
|
|
9155
|
+
"kind": "field",
|
|
9156
|
+
"name": "focusableRef",
|
|
9157
|
+
"privacy": "protected",
|
|
9158
|
+
"inheritedFrom": {
|
|
9159
|
+
"name": "FocusableMixin",
|
|
9160
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
9161
|
+
}
|
|
9162
|
+
},
|
|
9163
|
+
{
|
|
9164
|
+
"kind": "method",
|
|
9165
|
+
"name": "focus",
|
|
9166
|
+
"parameters": [
|
|
9167
|
+
{
|
|
9168
|
+
"name": "options",
|
|
9169
|
+
"optional": true,
|
|
9170
|
+
"type": {
|
|
9171
|
+
"text": "FocusOptions"
|
|
9172
|
+
},
|
|
9173
|
+
"description": "An object which controls aspects of the focusing process."
|
|
9174
|
+
}
|
|
9175
|
+
],
|
|
9176
|
+
"description": "Programmatically move focus to the component.",
|
|
9177
|
+
"inheritedFrom": {
|
|
9178
|
+
"name": "FocusableMixin",
|
|
9179
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
9180
|
+
}
|
|
9181
|
+
},
|
|
9182
|
+
{
|
|
9183
|
+
"kind": "method",
|
|
9184
|
+
"name": "blur",
|
|
9185
|
+
"description": "Programmatically remove focus from the component.",
|
|
9186
|
+
"inheritedFrom": {
|
|
9187
|
+
"name": "FocusableMixin",
|
|
9188
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
9189
|
+
}
|
|
9190
|
+
},
|
|
9191
|
+
{
|
|
9192
|
+
"kind": "method",
|
|
9193
|
+
"name": "click",
|
|
9194
|
+
"description": "Programmatically simulates a click on the component.",
|
|
9195
|
+
"inheritedFrom": {
|
|
9196
|
+
"name": "FocusableMixin",
|
|
9197
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
9198
|
+
}
|
|
9199
|
+
}
|
|
9200
|
+
],
|
|
9201
|
+
"attributes": [
|
|
9202
|
+
{
|
|
9203
|
+
"name": "href",
|
|
9204
|
+
"type": {
|
|
9205
|
+
"text": "string | undefined"
|
|
9206
|
+
},
|
|
9207
|
+
"description": "The url the message should link to.",
|
|
9208
|
+
"fieldName": "href"
|
|
9209
|
+
},
|
|
9210
|
+
{
|
|
9211
|
+
"name": "highlight",
|
|
9212
|
+
"type": {
|
|
9213
|
+
"text": "boolean | undefined"
|
|
9214
|
+
},
|
|
9215
|
+
"description": "Highlight the message visually. This is meant for highlighting\na new message that just appeared. Highlight style should be removed\nafter the user has seen the message and there’s been a timeout of\ne.g. 30 seconds.",
|
|
9216
|
+
"fieldName": "highlight"
|
|
9217
|
+
},
|
|
9218
|
+
{
|
|
9219
|
+
"name": "unread",
|
|
9220
|
+
"type": {
|
|
9221
|
+
"text": "boolean | undefined"
|
|
9222
|
+
},
|
|
9223
|
+
"description": "Mark the message as unread. By default messages are read.",
|
|
9224
|
+
"fieldName": "unread"
|
|
9225
|
+
}
|
|
9226
|
+
],
|
|
9227
|
+
"mixins": [
|
|
9228
|
+
{
|
|
9229
|
+
"name": "FocusableMixin",
|
|
9230
|
+
"module": "/src/common/mixins/FocusableMixin.js"
|
|
9231
|
+
}
|
|
9232
|
+
],
|
|
9233
|
+
"superclass": {
|
|
9234
|
+
"name": "LitElement",
|
|
9235
|
+
"package": "lit"
|
|
9236
|
+
},
|
|
9237
|
+
"localization": [
|
|
9238
|
+
{
|
|
9239
|
+
"name": "unreadLabel",
|
|
9240
|
+
"description": "Label for the unread messages."
|
|
9241
|
+
}
|
|
9242
|
+
],
|
|
9243
|
+
"status": "new",
|
|
9244
|
+
"category": "action",
|
|
9245
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Messages should always perform an action when clicked.\n- The click action should navigate to a new page or provide more detail about the message.\n- Mark unread messages as read on user interaction.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t slot other components inside a message.\n\n</div>\n\n---\n\n## Content guidelines\n\nMessage content should be clear, accurate and easy to understand:\n\n<div class=\"n-usage n-usage-do\">Ariel Salminen arrived to clinic with Pixie cat.</div>\n<div class=\"n-usage n-usage-dont\">Patient arrived</div>\n\nWhen writing the message content, be concise. Keep content to 1 to 2 sentence:\n\n<div class=\"n-usage n-usage-do\">You’ve reached the limit of 30 users included in your plan. Upgrade to add more.</div>\n<div class=\"n-usage n-usage-dont\">You have reached the user limit. Your clinic can only have a maximum of 30 users. To add more users, remove users you no longer need or upgrade your plan to add more.</div>\n\nWhen writing the notification content, always write it in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Ariel Salminen arrived to clinic with Pixie cat.</div>\n<div class=\"n-usage n-usage-dont\">Ariel Salminen Arrived To Clinic With Pixie Cat.</div>\n\nAlways end in punctuation:\n\n<div class=\"n-usage n-usage-do\">Ariel Salminen arrived to clinic with Pixie cat.</div>\n<div class=\"n-usage n-usage-dont\">Ariel Salminen arrived to clinic with Pixie cat</div>\n\nAvoid all caps for messages:\n\n<div class=\"n-usage n-usage-do\">Nina Williams arrived to clinic with Norfryd</div>\n<div class=\"n-usage n-usage-dont\">NINA WILLIAMS ARRIVED TO CLINIC WITH NORFRYD</div>\n",
|
|
9246
|
+
"examples": [],
|
|
9247
|
+
"dependencies": [
|
|
9248
|
+
"dropdown-item"
|
|
9249
|
+
],
|
|
9250
|
+
"tagName": "nord-message",
|
|
9251
|
+
"customElement": true
|
|
9252
|
+
}
|
|
9253
|
+
],
|
|
9254
|
+
"exports": [
|
|
9255
|
+
{
|
|
9256
|
+
"kind": "js",
|
|
9257
|
+
"name": "default",
|
|
9258
|
+
"declaration": {
|
|
9259
|
+
"name": "Message",
|
|
9260
|
+
"module": "src/message/Message.ts"
|
|
9261
|
+
}
|
|
9262
|
+
},
|
|
9263
|
+
{
|
|
9264
|
+
"kind": "custom-element-definition",
|
|
9265
|
+
"name": "nord-message",
|
|
9266
|
+
"declaration": {
|
|
9267
|
+
"name": "Message",
|
|
9268
|
+
"module": "src/message/Message.ts"
|
|
9269
|
+
}
|
|
9270
|
+
}
|
|
9271
|
+
]
|
|
9272
|
+
},
|
|
9273
|
+
{
|
|
9274
|
+
"kind": "javascript-module",
|
|
9275
|
+
"path": "src/message/localization.ts",
|
|
9276
|
+
"declarations": [
|
|
9277
|
+
{
|
|
9278
|
+
"kind": "variable",
|
|
9279
|
+
"name": "localization",
|
|
9280
|
+
"type": {
|
|
9281
|
+
"text": "object"
|
|
9282
|
+
},
|
|
9283
|
+
"default": "{\n unreadLabel: \"Unread\",\n}"
|
|
9284
|
+
}
|
|
9285
|
+
],
|
|
9286
|
+
"exports": [
|
|
9287
|
+
{
|
|
9288
|
+
"kind": "js",
|
|
9289
|
+
"name": "default",
|
|
9290
|
+
"declaration": {
|
|
9291
|
+
"name": "localization",
|
|
9292
|
+
"module": "src/message/localization.ts"
|
|
9293
|
+
}
|
|
9294
|
+
}
|
|
9295
|
+
]
|
|
9296
|
+
},
|
|
9086
9297
|
{
|
|
9087
9298
|
"kind": "javascript-module",
|
|
9088
9299
|
"path": "src/localization/LocalizeController.ts",
|
|
@@ -9340,256 +9551,51 @@
|
|
|
9340
9551
|
},
|
|
9341
9552
|
{
|
|
9342
9553
|
"kind": "javascript-module",
|
|
9343
|
-
"path": "src/
|
|
9554
|
+
"path": "src/modal/Modal.ts",
|
|
9344
9555
|
"declarations": [
|
|
9345
9556
|
{
|
|
9346
9557
|
"kind": "class",
|
|
9347
|
-
"description": "
|
|
9348
|
-
"name": "
|
|
9558
|
+
"description": "Modal component is used to display content that temporarily blocks interactions\nwith the main view of an application. Modal should be used sparingly and\nonly when necessary.",
|
|
9559
|
+
"name": "Modal",
|
|
9349
9560
|
"cssProperties": [
|
|
9350
9561
|
{
|
|
9351
|
-
"description": "Controls the
|
|
9352
|
-
"name": "--n-
|
|
9353
|
-
"default": "var(--n-
|
|
9562
|
+
"description": "Controls the padding on the sides of the modal, using our [spacing tokens](/tokens/#space).",
|
|
9563
|
+
"name": "--n-modal-padding-inline",
|
|
9564
|
+
"default": "var(--n-space-m)"
|
|
9565
|
+
},
|
|
9566
|
+
{
|
|
9567
|
+
"description": "Controls the padding above and below the modal, using our [spacing tokens](/tokens/#space).",
|
|
9568
|
+
"name": "--n-modal-padding-block",
|
|
9569
|
+
"default": "var(--n-space-m)"
|
|
9570
|
+
},
|
|
9571
|
+
{
|
|
9572
|
+
"description": "Controls the width of the modal.",
|
|
9573
|
+
"name": "--n-modal-max-inline-size",
|
|
9574
|
+
"default": "620px"
|
|
9354
9575
|
}
|
|
9355
9576
|
],
|
|
9356
9577
|
"slots": [
|
|
9357
9578
|
{
|
|
9358
|
-
"description": "
|
|
9579
|
+
"description": "Default slot",
|
|
9359
9580
|
"name": ""
|
|
9360
9581
|
},
|
|
9361
9582
|
{
|
|
9362
|
-
"description": "
|
|
9583
|
+
"description": "Slot which holds the header of the modal, positioned next to the close button.",
|
|
9584
|
+
"name": "header"
|
|
9585
|
+
},
|
|
9586
|
+
{
|
|
9587
|
+
"description": "Slot which is typically used to hold call to action buttons, but can also be used to build custom footers.",
|
|
9363
9588
|
"name": "footer"
|
|
9364
9589
|
}
|
|
9365
9590
|
],
|
|
9366
9591
|
"members": [
|
|
9367
9592
|
{
|
|
9368
9593
|
"kind": "field",
|
|
9369
|
-
"name": "
|
|
9370
|
-
"privacy": "private",
|
|
9371
|
-
"default": "new LocalizeController<\"nord-message\">(this)"
|
|
9372
|
-
},
|
|
9373
|
-
{
|
|
9374
|
-
"kind": "field",
|
|
9375
|
-
"name": "href",
|
|
9594
|
+
"name": "modal",
|
|
9376
9595
|
"type": {
|
|
9377
|
-
"text": "
|
|
9596
|
+
"text": "HTMLDivElement"
|
|
9378
9597
|
},
|
|
9379
|
-
"
|
|
9380
|
-
"attribute": "href",
|
|
9381
|
-
"reflects": true
|
|
9382
|
-
},
|
|
9383
|
-
{
|
|
9384
|
-
"kind": "field",
|
|
9385
|
-
"name": "highlight",
|
|
9386
|
-
"type": {
|
|
9387
|
-
"text": "boolean | undefined"
|
|
9388
|
-
},
|
|
9389
|
-
"description": "Highlight the message visually. This is meant for highlighting\na new message that just appeared. Highlight style should be removed\nafter the user has seen the message and there’s been a timeout of\ne.g. 30 seconds.",
|
|
9390
|
-
"attribute": "highlight",
|
|
9391
|
-
"reflects": true
|
|
9392
|
-
},
|
|
9393
|
-
{
|
|
9394
|
-
"kind": "field",
|
|
9395
|
-
"name": "unread",
|
|
9396
|
-
"type": {
|
|
9397
|
-
"text": "boolean | undefined"
|
|
9398
|
-
},
|
|
9399
|
-
"description": "Mark the message as unread. By default messages are read.",
|
|
9400
|
-
"attribute": "unread",
|
|
9401
|
-
"reflects": true
|
|
9402
|
-
},
|
|
9403
|
-
{
|
|
9404
|
-
"kind": "field",
|
|
9405
|
-
"name": "focusableRef",
|
|
9406
|
-
"privacy": "protected",
|
|
9407
|
-
"inheritedFrom": {
|
|
9408
|
-
"name": "FocusableMixin",
|
|
9409
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
9410
|
-
}
|
|
9411
|
-
},
|
|
9412
|
-
{
|
|
9413
|
-
"kind": "method",
|
|
9414
|
-
"name": "focus",
|
|
9415
|
-
"parameters": [
|
|
9416
|
-
{
|
|
9417
|
-
"name": "options",
|
|
9418
|
-
"optional": true,
|
|
9419
|
-
"type": {
|
|
9420
|
-
"text": "FocusOptions"
|
|
9421
|
-
},
|
|
9422
|
-
"description": "An object which controls aspects of the focusing process."
|
|
9423
|
-
}
|
|
9424
|
-
],
|
|
9425
|
-
"description": "Programmatically move focus to the component.",
|
|
9426
|
-
"inheritedFrom": {
|
|
9427
|
-
"name": "FocusableMixin",
|
|
9428
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
9429
|
-
}
|
|
9430
|
-
},
|
|
9431
|
-
{
|
|
9432
|
-
"kind": "method",
|
|
9433
|
-
"name": "blur",
|
|
9434
|
-
"description": "Programmatically remove focus from the component.",
|
|
9435
|
-
"inheritedFrom": {
|
|
9436
|
-
"name": "FocusableMixin",
|
|
9437
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
9438
|
-
}
|
|
9439
|
-
},
|
|
9440
|
-
{
|
|
9441
|
-
"kind": "method",
|
|
9442
|
-
"name": "click",
|
|
9443
|
-
"description": "Programmatically simulates a click on the component.",
|
|
9444
|
-
"inheritedFrom": {
|
|
9445
|
-
"name": "FocusableMixin",
|
|
9446
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
9447
|
-
}
|
|
9448
|
-
}
|
|
9449
|
-
],
|
|
9450
|
-
"attributes": [
|
|
9451
|
-
{
|
|
9452
|
-
"name": "href",
|
|
9453
|
-
"type": {
|
|
9454
|
-
"text": "string | undefined"
|
|
9455
|
-
},
|
|
9456
|
-
"description": "The url the message should link to.",
|
|
9457
|
-
"fieldName": "href"
|
|
9458
|
-
},
|
|
9459
|
-
{
|
|
9460
|
-
"name": "highlight",
|
|
9461
|
-
"type": {
|
|
9462
|
-
"text": "boolean | undefined"
|
|
9463
|
-
},
|
|
9464
|
-
"description": "Highlight the message visually. This is meant for highlighting\na new message that just appeared. Highlight style should be removed\nafter the user has seen the message and there’s been a timeout of\ne.g. 30 seconds.",
|
|
9465
|
-
"fieldName": "highlight"
|
|
9466
|
-
},
|
|
9467
|
-
{
|
|
9468
|
-
"name": "unread",
|
|
9469
|
-
"type": {
|
|
9470
|
-
"text": "boolean | undefined"
|
|
9471
|
-
},
|
|
9472
|
-
"description": "Mark the message as unread. By default messages are read.",
|
|
9473
|
-
"fieldName": "unread"
|
|
9474
|
-
}
|
|
9475
|
-
],
|
|
9476
|
-
"mixins": [
|
|
9477
|
-
{
|
|
9478
|
-
"name": "FocusableMixin",
|
|
9479
|
-
"module": "/src/common/mixins/FocusableMixin.js"
|
|
9480
|
-
}
|
|
9481
|
-
],
|
|
9482
|
-
"superclass": {
|
|
9483
|
-
"name": "LitElement",
|
|
9484
|
-
"package": "lit"
|
|
9485
|
-
},
|
|
9486
|
-
"localization": [
|
|
9487
|
-
{
|
|
9488
|
-
"name": "unreadLabel",
|
|
9489
|
-
"description": "Label for the unread messages."
|
|
9490
|
-
}
|
|
9491
|
-
],
|
|
9492
|
-
"status": "new",
|
|
9493
|
-
"category": "action",
|
|
9494
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Messages should always perform an action when clicked.\n- The click action should navigate to a new page or provide more detail about the message.\n- Mark unread messages as read on user interaction.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t slot other components inside a message.\n\n</div>\n\n---\n\n## Content guidelines\n\nMessage content should be clear, accurate and easy to understand:\n\n<div class=\"n-usage n-usage-do\">Ariel Salminen arrived to clinic with Pixie cat.</div>\n<div class=\"n-usage n-usage-dont\">Patient arrived</div>\n\nWhen writing the message content, be concise. Keep content to 1 to 2 sentence:\n\n<div class=\"n-usage n-usage-do\">You’ve reached the limit of 30 users included in your plan. Upgrade to add more.</div>\n<div class=\"n-usage n-usage-dont\">You have reached the user limit. Your clinic can only have a maximum of 30 users. To add more users, remove users you no longer need or upgrade your plan to add more.</div>\n\nWhen writing the notification content, always write it in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Ariel Salminen arrived to clinic with Pixie cat.</div>\n<div class=\"n-usage n-usage-dont\">Ariel Salminen Arrived To Clinic With Pixie Cat.</div>\n\nAlways end in punctuation:\n\n<div class=\"n-usage n-usage-do\">Ariel Salminen arrived to clinic with Pixie cat.</div>\n<div class=\"n-usage n-usage-dont\">Ariel Salminen arrived to clinic with Pixie cat</div>\n\nAvoid all caps for messages:\n\n<div class=\"n-usage n-usage-do\">Nina Williams arrived to clinic with Norfryd</div>\n<div class=\"n-usage n-usage-dont\">NINA WILLIAMS ARRIVED TO CLINIC WITH NORFRYD</div>\n",
|
|
9495
|
-
"examples": [],
|
|
9496
|
-
"dependencies": [
|
|
9497
|
-
"dropdown-item"
|
|
9498
|
-
],
|
|
9499
|
-
"tagName": "nord-message",
|
|
9500
|
-
"customElement": true
|
|
9501
|
-
}
|
|
9502
|
-
],
|
|
9503
|
-
"exports": [
|
|
9504
|
-
{
|
|
9505
|
-
"kind": "js",
|
|
9506
|
-
"name": "default",
|
|
9507
|
-
"declaration": {
|
|
9508
|
-
"name": "Message",
|
|
9509
|
-
"module": "src/message/Message.ts"
|
|
9510
|
-
}
|
|
9511
|
-
},
|
|
9512
|
-
{
|
|
9513
|
-
"kind": "custom-element-definition",
|
|
9514
|
-
"name": "nord-message",
|
|
9515
|
-
"declaration": {
|
|
9516
|
-
"name": "Message",
|
|
9517
|
-
"module": "src/message/Message.ts"
|
|
9518
|
-
}
|
|
9519
|
-
}
|
|
9520
|
-
]
|
|
9521
|
-
},
|
|
9522
|
-
{
|
|
9523
|
-
"kind": "javascript-module",
|
|
9524
|
-
"path": "src/message/localization.ts",
|
|
9525
|
-
"declarations": [
|
|
9526
|
-
{
|
|
9527
|
-
"kind": "variable",
|
|
9528
|
-
"name": "localization",
|
|
9529
|
-
"type": {
|
|
9530
|
-
"text": "object"
|
|
9531
|
-
},
|
|
9532
|
-
"default": "{\n unreadLabel: \"Unread\",\n}"
|
|
9533
|
-
}
|
|
9534
|
-
],
|
|
9535
|
-
"exports": [
|
|
9536
|
-
{
|
|
9537
|
-
"kind": "js",
|
|
9538
|
-
"name": "default",
|
|
9539
|
-
"declaration": {
|
|
9540
|
-
"name": "localization",
|
|
9541
|
-
"module": "src/message/localization.ts"
|
|
9542
|
-
}
|
|
9543
|
-
}
|
|
9544
|
-
]
|
|
9545
|
-
},
|
|
9546
|
-
{
|
|
9547
|
-
"kind": "javascript-module",
|
|
9548
|
-
"path": "src/modal/Modal.ts",
|
|
9549
|
-
"declarations": [
|
|
9550
|
-
{
|
|
9551
|
-
"kind": "class",
|
|
9552
|
-
"description": "Modal component is used to display content that temporarily blocks interactions\nwith the main view of an application. Modal should be used sparingly and\nonly when necessary.",
|
|
9553
|
-
"name": "Modal",
|
|
9554
|
-
"cssProperties": [
|
|
9555
|
-
{
|
|
9556
|
-
"description": "Controls the padding on the sides of the modal, using our [spacing tokens](/tokens/#space).",
|
|
9557
|
-
"name": "--n-modal-padding-inline",
|
|
9558
|
-
"default": "var(--n-space-m)"
|
|
9559
|
-
},
|
|
9560
|
-
{
|
|
9561
|
-
"description": "Controls the padding above and below the modal, using our [spacing tokens](/tokens/#space).",
|
|
9562
|
-
"name": "--n-modal-padding-block",
|
|
9563
|
-
"default": "var(--n-space-m)"
|
|
9564
|
-
},
|
|
9565
|
-
{
|
|
9566
|
-
"description": "Controls the width of the modal.",
|
|
9567
|
-
"name": "--n-modal-max-inline-size",
|
|
9568
|
-
"default": "620px"
|
|
9569
|
-
}
|
|
9570
|
-
],
|
|
9571
|
-
"slots": [
|
|
9572
|
-
{
|
|
9573
|
-
"description": "Default slot",
|
|
9574
|
-
"name": ""
|
|
9575
|
-
},
|
|
9576
|
-
{
|
|
9577
|
-
"description": "Slot which holds the header of the modal, positioned next to the close button.",
|
|
9578
|
-
"name": "header"
|
|
9579
|
-
},
|
|
9580
|
-
{
|
|
9581
|
-
"description": "Slot which is typically used to hold call to action buttons, but can also be used to build custom footers.",
|
|
9582
|
-
"name": "footer"
|
|
9583
|
-
}
|
|
9584
|
-
],
|
|
9585
|
-
"members": [
|
|
9586
|
-
{
|
|
9587
|
-
"kind": "field",
|
|
9588
|
-
"name": "modal",
|
|
9589
|
-
"type": {
|
|
9590
|
-
"text": "HTMLDivElement"
|
|
9591
|
-
},
|
|
9592
|
-
"privacy": "private"
|
|
9598
|
+
"privacy": "private"
|
|
9593
9599
|
},
|
|
9594
9600
|
{
|
|
9595
9601
|
"kind": "field",
|
|
@@ -9973,93 +9979,6 @@
|
|
|
9973
9979
|
}
|
|
9974
9980
|
]
|
|
9975
9981
|
},
|
|
9976
|
-
{
|
|
9977
|
-
"kind": "javascript-module",
|
|
9978
|
-
"path": "src/nav-group/NavGroup.ts",
|
|
9979
|
-
"declarations": [
|
|
9980
|
-
{
|
|
9981
|
-
"kind": "class",
|
|
9982
|
-
"description": "Navigation group includes all the actions or items in a single\ngroup and is used for grouping items into related categories.",
|
|
9983
|
-
"name": "NavGroup",
|
|
9984
|
-
"slots": [
|
|
9985
|
-
{
|
|
9986
|
-
"description": "The default slot used for the nav items.",
|
|
9987
|
-
"name": ""
|
|
9988
|
-
}
|
|
9989
|
-
],
|
|
9990
|
-
"members": [
|
|
9991
|
-
{
|
|
9992
|
-
"kind": "field",
|
|
9993
|
-
"name": "heading",
|
|
9994
|
-
"type": {
|
|
9995
|
-
"text": "string | undefined"
|
|
9996
|
-
},
|
|
9997
|
-
"description": "Heading and accessible label for the nav group",
|
|
9998
|
-
"attribute": "heading",
|
|
9999
|
-
"reflects": true
|
|
10000
|
-
}
|
|
10001
|
-
],
|
|
10002
|
-
"events": [
|
|
10003
|
-
{
|
|
10004
|
-
"type": {
|
|
10005
|
-
"text": "NordEvent"
|
|
10006
|
-
},
|
|
10007
|
-
"description": "Dispatched whenever a nav item's state changes between open and closed.",
|
|
10008
|
-
"name": "toggle"
|
|
10009
|
-
},
|
|
10010
|
-
{
|
|
10011
|
-
"type": {
|
|
10012
|
-
"text": "NordEvent"
|
|
10013
|
-
},
|
|
10014
|
-
"description": "Dispatched whenever a nav item has been marked as active",
|
|
10015
|
-
"name": "activate"
|
|
10016
|
-
}
|
|
10017
|
-
],
|
|
10018
|
-
"attributes": [
|
|
10019
|
-
{
|
|
10020
|
-
"name": "heading",
|
|
10021
|
-
"type": {
|
|
10022
|
-
"text": "string | undefined"
|
|
10023
|
-
},
|
|
10024
|
-
"description": "Heading and accessible label for the nav group",
|
|
10025
|
-
"fieldName": "heading"
|
|
10026
|
-
}
|
|
10027
|
-
],
|
|
10028
|
-
"superclass": {
|
|
10029
|
-
"name": "LitElement",
|
|
10030
|
-
"package": "lit"
|
|
10031
|
-
},
|
|
10032
|
-
"localization": [],
|
|
10033
|
-
"status": "ready",
|
|
10034
|
-
"category": "navigation",
|
|
10035
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Group navigation items into navigation groups based on related categories.\n- Use group headings to clarify the category of a section.\n- Use icons for all top level navigation items.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for grouping other types of content.\n\n</div>\n\n---\n\n## Content guidelines\n\nWhen writing navigation item labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">My tasks</div>\n<div class=\"n-usage n-usage-dont\">My Tasks</div>\n\nAvoid unnecessary words and articles in item labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Change theme</div>\n<div class=\"n-usage n-usage-dont\">Change the theme</div>\n\nAvoid ending item labels in punctuation:\n\n<div class=\"n-usage n-usage-do\">Switch user</div>\n<div class=\"n-usage n-usage-dont\">Switch user.</div>\n\nUse as few words as possible to describe each item label:\n\n<div class=\"n-usage n-usage-do\">Payments</div>\n<div class=\"n-usage n-usage-dont\">Payments in your clinic</div>\n\nAvoid all caps for item labels and group titles:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">DASHBOARD</div>\n",
|
|
10036
|
-
"examples": [],
|
|
10037
|
-
"dependencies": [
|
|
10038
|
-
"icon"
|
|
10039
|
-
],
|
|
10040
|
-
"tagName": "nord-nav-group",
|
|
10041
|
-
"customElement": true
|
|
10042
|
-
}
|
|
10043
|
-
],
|
|
10044
|
-
"exports": [
|
|
10045
|
-
{
|
|
10046
|
-
"kind": "js",
|
|
10047
|
-
"name": "default",
|
|
10048
|
-
"declaration": {
|
|
10049
|
-
"name": "NavGroup",
|
|
10050
|
-
"module": "src/nav-group/NavGroup.ts"
|
|
10051
|
-
}
|
|
10052
|
-
},
|
|
10053
|
-
{
|
|
10054
|
-
"kind": "custom-element-definition",
|
|
10055
|
-
"name": "nord-nav-group",
|
|
10056
|
-
"declaration": {
|
|
10057
|
-
"name": "NavGroup",
|
|
10058
|
-
"module": "src/nav-group/NavGroup.ts"
|
|
10059
|
-
}
|
|
10060
|
-
}
|
|
10061
|
-
]
|
|
10062
|
-
},
|
|
10063
9982
|
{
|
|
10064
9983
|
"kind": "javascript-module",
|
|
10065
9984
|
"path": "src/nav-item/NavItem.ts",
|
|
@@ -10495,55 +10414,143 @@
|
|
|
10495
10414
|
],
|
|
10496
10415
|
"slots": [
|
|
10497
10416
|
{
|
|
10498
|
-
"description": "The main section of the sidebar, for holding nav components.",
|
|
10417
|
+
"description": "The main section of the sidebar, for holding nav components.",
|
|
10418
|
+
"name": ""
|
|
10419
|
+
},
|
|
10420
|
+
{
|
|
10421
|
+
"description": "The top section of the sidebar.",
|
|
10422
|
+
"name": "header"
|
|
10423
|
+
},
|
|
10424
|
+
{
|
|
10425
|
+
"description": "The bottom section of the sidebar.",
|
|
10426
|
+
"name": "footer"
|
|
10427
|
+
}
|
|
10428
|
+
],
|
|
10429
|
+
"members": [
|
|
10430
|
+
{
|
|
10431
|
+
"kind": "field",
|
|
10432
|
+
"name": "headerSlot",
|
|
10433
|
+
"privacy": "private",
|
|
10434
|
+
"default": "new SlotController(this, \"header\")"
|
|
10435
|
+
},
|
|
10436
|
+
{
|
|
10437
|
+
"kind": "field",
|
|
10438
|
+
"name": "events",
|
|
10439
|
+
"privacy": "private",
|
|
10440
|
+
"default": "new EventController(this)"
|
|
10441
|
+
},
|
|
10442
|
+
{
|
|
10443
|
+
"kind": "field",
|
|
10444
|
+
"name": "allowItemsToRemainOpen",
|
|
10445
|
+
"type": {
|
|
10446
|
+
"text": "boolean"
|
|
10447
|
+
},
|
|
10448
|
+
"privacy": "private",
|
|
10449
|
+
"default": "false"
|
|
10450
|
+
},
|
|
10451
|
+
{
|
|
10452
|
+
"kind": "field",
|
|
10453
|
+
"name": "stickyFooter",
|
|
10454
|
+
"type": {
|
|
10455
|
+
"text": "boolean"
|
|
10456
|
+
},
|
|
10457
|
+
"default": "false",
|
|
10458
|
+
"description": "Controls whether the navigations's footer has sticky positioning.",
|
|
10459
|
+
"attribute": "sticky-footer",
|
|
10460
|
+
"reflects": true
|
|
10461
|
+
},
|
|
10462
|
+
{
|
|
10463
|
+
"kind": "field",
|
|
10464
|
+
"name": "handleActivate",
|
|
10465
|
+
"privacy": "private"
|
|
10466
|
+
}
|
|
10467
|
+
],
|
|
10468
|
+
"events": [
|
|
10469
|
+
{
|
|
10470
|
+
"type": {
|
|
10471
|
+
"text": "NordEvent"
|
|
10472
|
+
},
|
|
10473
|
+
"description": "Dispatched whenever a nav item's state changes between open and closed.",
|
|
10474
|
+
"name": "toggle"
|
|
10475
|
+
},
|
|
10476
|
+
{
|
|
10477
|
+
"type": {
|
|
10478
|
+
"text": "NordEvent"
|
|
10479
|
+
},
|
|
10480
|
+
"description": "Dispatched whenever a nav item has been marked as active",
|
|
10481
|
+
"name": "activate"
|
|
10482
|
+
}
|
|
10483
|
+
],
|
|
10484
|
+
"attributes": [
|
|
10485
|
+
{
|
|
10486
|
+
"name": "sticky-footer",
|
|
10487
|
+
"type": {
|
|
10488
|
+
"text": "boolean"
|
|
10489
|
+
},
|
|
10490
|
+
"default": "false",
|
|
10491
|
+
"description": "Controls whether the navigations's footer has sticky positioning.",
|
|
10492
|
+
"fieldName": "stickyFooter"
|
|
10493
|
+
}
|
|
10494
|
+
],
|
|
10495
|
+
"superclass": {
|
|
10496
|
+
"name": "LitElement",
|
|
10497
|
+
"package": "lit"
|
|
10498
|
+
},
|
|
10499
|
+
"localization": [],
|
|
10500
|
+
"status": "ready",
|
|
10501
|
+
"category": "navigation",
|
|
10502
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use for primary navigation items that perform an action when clicked. Each action should navigate to a URL or trigger another action like a modal overlay.\n- Group navigation items into navigation groups based on related categories.\n- Use group headings to clarify the category of a section.\n- Use icons for all top level navigation items.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t place a `<nav>` element inside the navigation component, as it already contains one internally.\n\n</div>\n\n---\n\n## Content guidelines\n\nWhen writing navigation item labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">My tasks</div>\n<div class=\"n-usage n-usage-dont\">My Tasks</div>\n\nAvoid unnecessary words and articles in item labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Change theme</div>\n<div class=\"n-usage n-usage-dont\">Change the theme</div>\n\nAvoid ending item labels in punctuation:\n\n<div class=\"n-usage n-usage-do\">Switch user</div>\n<div class=\"n-usage n-usage-dont\">Switch user.</div>\n\nUse as few words as possible to describe each item label:\n\n<div class=\"n-usage n-usage-do\">Payments</div>\n<div class=\"n-usage n-usage-dont\">Payments in your clinic</div>\n\nAvoid all caps for item labels and group titles:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">DASHBOARD</div>\n",
|
|
10503
|
+
"examples": [],
|
|
10504
|
+
"dependencies": [
|
|
10505
|
+
"nav-item"
|
|
10506
|
+
],
|
|
10507
|
+
"tagName": "nord-navigation",
|
|
10508
|
+
"customElement": true
|
|
10509
|
+
}
|
|
10510
|
+
],
|
|
10511
|
+
"exports": [
|
|
10512
|
+
{
|
|
10513
|
+
"kind": "js",
|
|
10514
|
+
"name": "default",
|
|
10515
|
+
"declaration": {
|
|
10516
|
+
"name": "Navigation",
|
|
10517
|
+
"module": "src/navigation/Navigation.ts"
|
|
10518
|
+
}
|
|
10519
|
+
},
|
|
10520
|
+
{
|
|
10521
|
+
"kind": "custom-element-definition",
|
|
10522
|
+
"name": "nord-navigation",
|
|
10523
|
+
"declaration": {
|
|
10524
|
+
"name": "Navigation",
|
|
10525
|
+
"module": "src/navigation/Navigation.ts"
|
|
10526
|
+
}
|
|
10527
|
+
}
|
|
10528
|
+
]
|
|
10529
|
+
},
|
|
10530
|
+
{
|
|
10531
|
+
"kind": "javascript-module",
|
|
10532
|
+
"path": "src/nav-group/NavGroup.ts",
|
|
10533
|
+
"declarations": [
|
|
10534
|
+
{
|
|
10535
|
+
"kind": "class",
|
|
10536
|
+
"description": "Navigation group includes all the actions or items in a single\ngroup and is used for grouping items into related categories.",
|
|
10537
|
+
"name": "NavGroup",
|
|
10538
|
+
"slots": [
|
|
10539
|
+
{
|
|
10540
|
+
"description": "The default slot used for the nav items.",
|
|
10499
10541
|
"name": ""
|
|
10500
|
-
},
|
|
10501
|
-
{
|
|
10502
|
-
"description": "The top section of the sidebar.",
|
|
10503
|
-
"name": "header"
|
|
10504
|
-
},
|
|
10505
|
-
{
|
|
10506
|
-
"description": "The bottom section of the sidebar.",
|
|
10507
|
-
"name": "footer"
|
|
10508
10542
|
}
|
|
10509
10543
|
],
|
|
10510
10544
|
"members": [
|
|
10511
10545
|
{
|
|
10512
10546
|
"kind": "field",
|
|
10513
|
-
"name": "
|
|
10514
|
-
"privacy": "private",
|
|
10515
|
-
"default": "new SlotController(this, \"header\")"
|
|
10516
|
-
},
|
|
10517
|
-
{
|
|
10518
|
-
"kind": "field",
|
|
10519
|
-
"name": "events",
|
|
10520
|
-
"privacy": "private",
|
|
10521
|
-
"default": "new EventController(this)"
|
|
10522
|
-
},
|
|
10523
|
-
{
|
|
10524
|
-
"kind": "field",
|
|
10525
|
-
"name": "allowItemsToRemainOpen",
|
|
10526
|
-
"type": {
|
|
10527
|
-
"text": "boolean"
|
|
10528
|
-
},
|
|
10529
|
-
"privacy": "private",
|
|
10530
|
-
"default": "false"
|
|
10531
|
-
},
|
|
10532
|
-
{
|
|
10533
|
-
"kind": "field",
|
|
10534
|
-
"name": "stickyFooter",
|
|
10547
|
+
"name": "heading",
|
|
10535
10548
|
"type": {
|
|
10536
|
-
"text": "
|
|
10549
|
+
"text": "string | undefined"
|
|
10537
10550
|
},
|
|
10538
|
-
"
|
|
10539
|
-
"
|
|
10540
|
-
"attribute": "sticky-footer",
|
|
10551
|
+
"description": "Heading and accessible label for the nav group",
|
|
10552
|
+
"attribute": "heading",
|
|
10541
10553
|
"reflects": true
|
|
10542
|
-
},
|
|
10543
|
-
{
|
|
10544
|
-
"kind": "field",
|
|
10545
|
-
"name": "handleActivate",
|
|
10546
|
-
"privacy": "private"
|
|
10547
10554
|
}
|
|
10548
10555
|
],
|
|
10549
10556
|
"events": [
|
|
@@ -10564,13 +10571,12 @@
|
|
|
10564
10571
|
],
|
|
10565
10572
|
"attributes": [
|
|
10566
10573
|
{
|
|
10567
|
-
"name": "
|
|
10574
|
+
"name": "heading",
|
|
10568
10575
|
"type": {
|
|
10569
|
-
"text": "
|
|
10576
|
+
"text": "string | undefined"
|
|
10570
10577
|
},
|
|
10571
|
-
"
|
|
10572
|
-
"
|
|
10573
|
-
"fieldName": "stickyFooter"
|
|
10578
|
+
"description": "Heading and accessible label for the nav group",
|
|
10579
|
+
"fieldName": "heading"
|
|
10574
10580
|
}
|
|
10575
10581
|
],
|
|
10576
10582
|
"superclass": {
|
|
@@ -10580,12 +10586,12 @@
|
|
|
10580
10586
|
"localization": [],
|
|
10581
10587
|
"status": "ready",
|
|
10582
10588
|
"category": "navigation",
|
|
10583
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n-
|
|
10589
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Group navigation items into navigation groups based on related categories.\n- Use group headings to clarify the category of a section.\n- Use icons for all top level navigation items.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for grouping other types of content.\n\n</div>\n\n---\n\n## Content guidelines\n\nWhen writing navigation item labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">My tasks</div>\n<div class=\"n-usage n-usage-dont\">My Tasks</div>\n\nAvoid unnecessary words and articles in item labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Change theme</div>\n<div class=\"n-usage n-usage-dont\">Change the theme</div>\n\nAvoid ending item labels in punctuation:\n\n<div class=\"n-usage n-usage-do\">Switch user</div>\n<div class=\"n-usage n-usage-dont\">Switch user.</div>\n\nUse as few words as possible to describe each item label:\n\n<div class=\"n-usage n-usage-do\">Payments</div>\n<div class=\"n-usage n-usage-dont\">Payments in your clinic</div>\n\nAvoid all caps for item labels and group titles:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">DASHBOARD</div>\n",
|
|
10584
10590
|
"examples": [],
|
|
10585
10591
|
"dependencies": [
|
|
10586
|
-
"
|
|
10592
|
+
"icon"
|
|
10587
10593
|
],
|
|
10588
|
-
"tagName": "nord-
|
|
10594
|
+
"tagName": "nord-nav-group",
|
|
10589
10595
|
"customElement": true
|
|
10590
10596
|
}
|
|
10591
10597
|
],
|
|
@@ -10594,16 +10600,16 @@
|
|
|
10594
10600
|
"kind": "js",
|
|
10595
10601
|
"name": "default",
|
|
10596
10602
|
"declaration": {
|
|
10597
|
-
"name": "
|
|
10598
|
-
"module": "src/
|
|
10603
|
+
"name": "NavGroup",
|
|
10604
|
+
"module": "src/nav-group/NavGroup.ts"
|
|
10599
10605
|
}
|
|
10600
10606
|
},
|
|
10601
10607
|
{
|
|
10602
10608
|
"kind": "custom-element-definition",
|
|
10603
|
-
"name": "nord-
|
|
10609
|
+
"name": "nord-nav-group",
|
|
10604
10610
|
"declaration": {
|
|
10605
|
-
"name": "
|
|
10606
|
-
"module": "src/
|
|
10611
|
+
"name": "NavGroup",
|
|
10612
|
+
"module": "src/nav-group/NavGroup.ts"
|
|
10607
10613
|
}
|
|
10608
10614
|
}
|
|
10609
10615
|
]
|
|
@@ -11261,217 +11267,31 @@
|
|
|
11261
11267
|
"text": "number | undefined"
|
|
11262
11268
|
},
|
|
11263
11269
|
"description": "Specifies how much of the task has been completed. Must be a valid floating\npoint number between 0 and max, or between 0 and 100 if max is omitted. If\nthere is no value, the progress bar is indeterminate; this indicates that\nan activity is ongoing with no indication of how long it’s expected to take.",
|
|
11264
|
-
"fieldName": "value"
|
|
11265
|
-
},
|
|
11266
|
-
{
|
|
11267
|
-
"name": "max",
|
|
11268
|
-
"type": {
|
|
11269
|
-
"text": "number"
|
|
11270
|
-
},
|
|
11271
|
-
"default": "100",
|
|
11272
|
-
"description": "Describes how much work the task indicated by the progress element requires.\nThe max attribute, if present, must have a value greater than 0 and be a\nvalid floating point number.",
|
|
11273
|
-
"fieldName": "max"
|
|
11274
|
-
},
|
|
11275
|
-
{
|
|
11276
|
-
"name": "label",
|
|
11277
|
-
"type": {
|
|
11278
|
-
"text": "string"
|
|
11279
|
-
},
|
|
11280
|
-
"default": "\"Current progress\"",
|
|
11281
|
-
"description": "Accessible label for the progress indicator. Visually hidden, but shown\nfor assistive technology.",
|
|
11282
|
-
"fieldName": "label"
|
|
11283
|
-
}
|
|
11284
|
-
],
|
|
11285
|
-
"mixins": [
|
|
11286
|
-
{
|
|
11287
|
-
"name": "FocusableMixin",
|
|
11288
|
-
"module": "/src/common/mixins/FocusableMixin.js"
|
|
11289
|
-
}
|
|
11290
|
-
],
|
|
11291
|
-
"superclass": {
|
|
11292
|
-
"name": "LitElement",
|
|
11293
|
-
"package": "lit"
|
|
11294
|
-
},
|
|
11295
|
-
"localization": [],
|
|
11296
|
-
"status": "ready",
|
|
11297
|
-
"category": "feedback",
|
|
11298
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use to show the completion status of an ongoing task.\n- Use progress bar when you can determine the percentage of the completed task at any time.\n- Always provide an accessible label when using Progress Bar.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use in constrained spaces indicating indeterminate loading state, see [Spinner](/components/spinner/) instead.\n\n</div>\n",
|
|
11299
|
-
"examples": [],
|
|
11300
|
-
"dependencies": [],
|
|
11301
|
-
"tagName": "nord-progress-bar",
|
|
11302
|
-
"customElement": true
|
|
11303
|
-
}
|
|
11304
|
-
],
|
|
11305
|
-
"exports": [
|
|
11306
|
-
{
|
|
11307
|
-
"kind": "js",
|
|
11308
|
-
"name": "default",
|
|
11309
|
-
"declaration": {
|
|
11310
|
-
"name": "ProgressBar",
|
|
11311
|
-
"module": "src/progress-bar/ProgressBar.ts"
|
|
11312
|
-
}
|
|
11313
|
-
},
|
|
11314
|
-
{
|
|
11315
|
-
"kind": "custom-element-definition",
|
|
11316
|
-
"name": "nord-progress-bar",
|
|
11317
|
-
"declaration": {
|
|
11318
|
-
"name": "ProgressBar",
|
|
11319
|
-
"module": "src/progress-bar/ProgressBar.ts"
|
|
11320
|
-
}
|
|
11321
|
-
}
|
|
11322
|
-
]
|
|
11323
|
-
},
|
|
11324
|
-
{
|
|
11325
|
-
"kind": "javascript-module",
|
|
11326
|
-
"path": "src/qrcode/Qrcode.ts",
|
|
11327
|
-
"declarations": [
|
|
11328
|
-
{
|
|
11329
|
-
"kind": "class",
|
|
11330
|
-
"description": "QR Code component is used for providing information or links\nto users which they can quickly scan with their smartphone.",
|
|
11331
|
-
"name": "Qrcode",
|
|
11332
|
-
"members": [
|
|
11333
|
-
{
|
|
11334
|
-
"kind": "field",
|
|
11335
|
-
"name": "canvas",
|
|
11336
|
-
"type": {
|
|
11337
|
-
"text": "HTMLElement"
|
|
11338
|
-
},
|
|
11339
|
-
"privacy": "private"
|
|
11340
|
-
},
|
|
11341
|
-
{
|
|
11342
|
-
"kind": "field",
|
|
11343
|
-
"name": "computed",
|
|
11344
|
-
"type": {
|
|
11345
|
-
"text": "HTMLElement"
|
|
11346
|
-
},
|
|
11347
|
-
"privacy": "private"
|
|
11348
|
-
},
|
|
11349
|
-
{
|
|
11350
|
-
"kind": "field",
|
|
11351
|
-
"name": "value",
|
|
11352
|
-
"type": {
|
|
11353
|
-
"text": "string"
|
|
11354
|
-
},
|
|
11355
|
-
"default": "\"\"",
|
|
11356
|
-
"description": "The value of the QR Code, most commonly an URL.",
|
|
11357
|
-
"attribute": "value",
|
|
11358
|
-
"reflects": true
|
|
11359
|
-
},
|
|
11360
|
-
{
|
|
11361
|
-
"kind": "field",
|
|
11362
|
-
"name": "label",
|
|
11363
|
-
"type": {
|
|
11364
|
-
"text": "string"
|
|
11365
|
-
},
|
|
11366
|
-
"default": "\"\"",
|
|
11367
|
-
"description": "Label used by assistive technology. If unspecified, the value will\nbe used instead.",
|
|
11368
|
-
"attribute": "label",
|
|
11369
|
-
"reflects": true
|
|
11370
|
-
},
|
|
11371
|
-
{
|
|
11372
|
-
"kind": "field",
|
|
11373
|
-
"name": "size",
|
|
11374
|
-
"type": {
|
|
11375
|
-
"text": "number"
|
|
11376
|
-
},
|
|
11377
|
-
"default": "128",
|
|
11378
|
-
"description": "The size of the rendered QR Code in pixels.",
|
|
11379
|
-
"attribute": "size",
|
|
11380
|
-
"reflects": true
|
|
11381
|
-
},
|
|
11382
|
-
{
|
|
11383
|
-
"kind": "field",
|
|
11384
|
-
"name": "color",
|
|
11385
|
-
"type": {
|
|
11386
|
-
"text": "string"
|
|
11387
|
-
},
|
|
11388
|
-
"default": "\"var(--n-color-text)\"",
|
|
11389
|
-
"description": "The fill color of the QR Code.\nCan accept any valid CSS color value, including custom properties.",
|
|
11390
|
-
"attribute": "color",
|
|
11391
|
-
"reflects": true
|
|
11392
|
-
},
|
|
11393
|
-
{
|
|
11394
|
-
"kind": "field",
|
|
11395
|
-
"name": "background",
|
|
11396
|
-
"type": {
|
|
11397
|
-
"text": "string"
|
|
11398
|
-
},
|
|
11399
|
-
"default": "\"var(--n-color-surface)\"",
|
|
11400
|
-
"description": "The background color of the QR Code.\nCan accept any valid CSS color value, including custom properties.",
|
|
11401
|
-
"attribute": "background",
|
|
11402
|
-
"reflects": true
|
|
11403
|
-
},
|
|
11404
|
-
{
|
|
11405
|
-
"kind": "field",
|
|
11406
|
-
"name": "correction",
|
|
11407
|
-
"type": {
|
|
11408
|
-
"text": "\"L\" | \"M\" | \"Q\" | \"H\""
|
|
11409
|
-
},
|
|
11410
|
-
"default": "\"H\"",
|
|
11411
|
-
"description": "Error correction level makes the QR Code bigger and helps users to\nscan it without issues. L, M, Q and H values will use 7%, 15%, 25%\nand 30% of the QR code for error correction respectively.",
|
|
11412
|
-
"attribute": "correction",
|
|
11413
|
-
"reflects": true
|
|
11414
|
-
},
|
|
11415
|
-
{
|
|
11416
|
-
"kind": "method",
|
|
11417
|
-
"name": "generate",
|
|
11418
|
-
"privacy": "private"
|
|
11419
|
-
}
|
|
11420
|
-
],
|
|
11421
|
-
"attributes": [
|
|
11422
|
-
{
|
|
11423
|
-
"name": "value",
|
|
11424
|
-
"type": {
|
|
11425
|
-
"text": "string"
|
|
11426
|
-
},
|
|
11427
|
-
"default": "\"\"",
|
|
11428
|
-
"description": "The value of the QR Code, most commonly an URL.",
|
|
11429
|
-
"fieldName": "value"
|
|
11430
|
-
},
|
|
11431
|
-
{
|
|
11432
|
-
"name": "label",
|
|
11433
|
-
"type": {
|
|
11434
|
-
"text": "string"
|
|
11435
|
-
},
|
|
11436
|
-
"default": "\"\"",
|
|
11437
|
-
"description": "Label used by assistive technology. If unspecified, the value will\nbe used instead.",
|
|
11438
|
-
"fieldName": "label"
|
|
11439
|
-
},
|
|
11440
|
-
{
|
|
11441
|
-
"name": "size",
|
|
11442
|
-
"type": {
|
|
11443
|
-
"text": "number"
|
|
11444
|
-
},
|
|
11445
|
-
"default": "128",
|
|
11446
|
-
"description": "The size of the rendered QR Code in pixels.",
|
|
11447
|
-
"fieldName": "size"
|
|
11270
|
+
"fieldName": "value"
|
|
11448
11271
|
},
|
|
11449
11272
|
{
|
|
11450
|
-
"name": "
|
|
11273
|
+
"name": "max",
|
|
11451
11274
|
"type": {
|
|
11452
|
-
"text": "
|
|
11275
|
+
"text": "number"
|
|
11453
11276
|
},
|
|
11454
|
-
"default": "
|
|
11455
|
-
"description": "
|
|
11456
|
-
"fieldName": "
|
|
11277
|
+
"default": "100",
|
|
11278
|
+
"description": "Describes how much work the task indicated by the progress element requires.\nThe max attribute, if present, must have a value greater than 0 and be a\nvalid floating point number.",
|
|
11279
|
+
"fieldName": "max"
|
|
11457
11280
|
},
|
|
11458
11281
|
{
|
|
11459
|
-
"name": "
|
|
11282
|
+
"name": "label",
|
|
11460
11283
|
"type": {
|
|
11461
11284
|
"text": "string"
|
|
11462
11285
|
},
|
|
11463
|
-
"default": "\"
|
|
11464
|
-
"description": "
|
|
11465
|
-
"fieldName": "
|
|
11466
|
-
}
|
|
11286
|
+
"default": "\"Current progress\"",
|
|
11287
|
+
"description": "Accessible label for the progress indicator. Visually hidden, but shown\nfor assistive technology.",
|
|
11288
|
+
"fieldName": "label"
|
|
11289
|
+
}
|
|
11290
|
+
],
|
|
11291
|
+
"mixins": [
|
|
11467
11292
|
{
|
|
11468
|
-
"name": "
|
|
11469
|
-
"
|
|
11470
|
-
"text": "\"L\" | \"M\" | \"Q\" | \"H\""
|
|
11471
|
-
},
|
|
11472
|
-
"default": "\"H\"",
|
|
11473
|
-
"description": "Error correction level makes the QR Code bigger and helps users to\nscan it without issues. L, M, Q and H values will use 7%, 15%, 25%\nand 30% of the QR code for error correction respectively.",
|
|
11474
|
-
"fieldName": "correction"
|
|
11293
|
+
"name": "FocusableMixin",
|
|
11294
|
+
"module": "/src/common/mixins/FocusableMixin.js"
|
|
11475
11295
|
}
|
|
11476
11296
|
],
|
|
11477
11297
|
"superclass": {
|
|
@@ -11480,12 +11300,11 @@
|
|
|
11480
11300
|
},
|
|
11481
11301
|
"localization": [],
|
|
11482
11302
|
"status": "ready",
|
|
11483
|
-
"category": "
|
|
11484
|
-
"
|
|
11485
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use to allow people to access information on their smartphone without the need to type.\n- Always provide an alternative way to access the same information.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t hide important information behind a QR Code only.\n\n</div>\n",
|
|
11303
|
+
"category": "feedback",
|
|
11304
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use to show the completion status of an ongoing task.\n- Use progress bar when you can determine the percentage of the completed task at any time.\n- Always provide an accessible label when using Progress Bar.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use in constrained spaces indicating indeterminate loading state, see [Spinner](/components/spinner/) instead.\n\n</div>\n",
|
|
11486
11305
|
"examples": [],
|
|
11487
11306
|
"dependencies": [],
|
|
11488
|
-
"tagName": "nord-
|
|
11307
|
+
"tagName": "nord-progress-bar",
|
|
11489
11308
|
"customElement": true
|
|
11490
11309
|
}
|
|
11491
11310
|
],
|
|
@@ -11494,16 +11313,16 @@
|
|
|
11494
11313
|
"kind": "js",
|
|
11495
11314
|
"name": "default",
|
|
11496
11315
|
"declaration": {
|
|
11497
|
-
"name": "
|
|
11498
|
-
"module": "src/
|
|
11316
|
+
"name": "ProgressBar",
|
|
11317
|
+
"module": "src/progress-bar/ProgressBar.ts"
|
|
11499
11318
|
}
|
|
11500
11319
|
},
|
|
11501
11320
|
{
|
|
11502
11321
|
"kind": "custom-element-definition",
|
|
11503
|
-
"name": "nord-
|
|
11322
|
+
"name": "nord-progress-bar",
|
|
11504
11323
|
"declaration": {
|
|
11505
|
-
"name": "
|
|
11506
|
-
"module": "src/
|
|
11324
|
+
"name": "ProgressBar",
|
|
11325
|
+
"module": "src/progress-bar/ProgressBar.ts"
|
|
11507
11326
|
}
|
|
11508
11327
|
}
|
|
11509
11328
|
]
|
|
@@ -11678,6 +11497,21 @@
|
|
|
11678
11497
|
"name": "handleFocus",
|
|
11679
11498
|
"privacy": "private"
|
|
11680
11499
|
},
|
|
11500
|
+
{
|
|
11501
|
+
"kind": "field",
|
|
11502
|
+
"name": "size",
|
|
11503
|
+
"type": {
|
|
11504
|
+
"text": "\"s\" | \"m\" | \"l\""
|
|
11505
|
+
},
|
|
11506
|
+
"default": "\"m\"",
|
|
11507
|
+
"description": "The size of the component.",
|
|
11508
|
+
"attribute": "size",
|
|
11509
|
+
"reflects": true,
|
|
11510
|
+
"inheritedFrom": {
|
|
11511
|
+
"name": "SizeMixin",
|
|
11512
|
+
"module": "src/common/mixins/SizeMixin.ts"
|
|
11513
|
+
}
|
|
11514
|
+
},
|
|
11681
11515
|
{
|
|
11682
11516
|
"kind": "field",
|
|
11683
11517
|
"name": "formData",
|
|
@@ -12009,6 +11843,19 @@
|
|
|
12009
11843
|
"description": "Controls whether the checkbox is checked or not.",
|
|
12010
11844
|
"fieldName": "checked"
|
|
12011
11845
|
},
|
|
11846
|
+
{
|
|
11847
|
+
"name": "size",
|
|
11848
|
+
"type": {
|
|
11849
|
+
"text": "\"s\" | \"m\" | \"l\""
|
|
11850
|
+
},
|
|
11851
|
+
"default": "\"m\"",
|
|
11852
|
+
"description": "The size of the component.",
|
|
11853
|
+
"fieldName": "size",
|
|
11854
|
+
"inheritedFrom": {
|
|
11855
|
+
"name": "SizeMixin",
|
|
11856
|
+
"module": "src/common/mixins/SizeMixin.ts"
|
|
11857
|
+
}
|
|
11858
|
+
},
|
|
12012
11859
|
{
|
|
12013
11860
|
"name": "label",
|
|
12014
11861
|
"type": {
|
|
@@ -12149,6 +11996,10 @@
|
|
|
12149
11996
|
}
|
|
12150
11997
|
],
|
|
12151
11998
|
"mixins": [
|
|
11999
|
+
{
|
|
12000
|
+
"name": "SizeMixin",
|
|
12001
|
+
"module": "/src/common/mixins/SizeMixin.js"
|
|
12002
|
+
},
|
|
12152
12003
|
{
|
|
12153
12004
|
"name": "FormAssociatedMixin",
|
|
12154
12005
|
"module": "/src/common/mixins/FormAssociatedMixin.js"
|
|
@@ -12187,17 +12038,204 @@
|
|
|
12187
12038
|
}
|
|
12188
12039
|
},
|
|
12189
12040
|
{
|
|
12190
|
-
"name": "change",
|
|
12041
|
+
"name": "change",
|
|
12042
|
+
"type": {
|
|
12043
|
+
"text": "NordEvent"
|
|
12044
|
+
},
|
|
12045
|
+
"description": "Fired whenever the input's value is changed via user interaction.",
|
|
12046
|
+
"inheritedFrom": {
|
|
12047
|
+
"name": "FormAssociatedMixin",
|
|
12048
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
12049
|
+
}
|
|
12050
|
+
}
|
|
12051
|
+
]
|
|
12052
|
+
}
|
|
12053
|
+
],
|
|
12054
|
+
"exports": [
|
|
12055
|
+
{
|
|
12056
|
+
"kind": "js",
|
|
12057
|
+
"name": "default",
|
|
12058
|
+
"declaration": {
|
|
12059
|
+
"name": "Radio",
|
|
12060
|
+
"module": "src/radio/Radio.ts"
|
|
12061
|
+
}
|
|
12062
|
+
},
|
|
12063
|
+
{
|
|
12064
|
+
"kind": "custom-element-definition",
|
|
12065
|
+
"name": "nord-radio",
|
|
12066
|
+
"declaration": {
|
|
12067
|
+
"name": "Radio",
|
|
12068
|
+
"module": "src/radio/Radio.ts"
|
|
12069
|
+
}
|
|
12070
|
+
}
|
|
12071
|
+
]
|
|
12072
|
+
},
|
|
12073
|
+
{
|
|
12074
|
+
"kind": "javascript-module",
|
|
12075
|
+
"path": "src/qrcode/Qrcode.ts",
|
|
12076
|
+
"declarations": [
|
|
12077
|
+
{
|
|
12078
|
+
"kind": "class",
|
|
12079
|
+
"description": "QR Code component is used for providing information or links\nto users which they can quickly scan with their smartphone.",
|
|
12080
|
+
"name": "Qrcode",
|
|
12081
|
+
"members": [
|
|
12082
|
+
{
|
|
12083
|
+
"kind": "field",
|
|
12084
|
+
"name": "canvas",
|
|
12085
|
+
"type": {
|
|
12086
|
+
"text": "HTMLElement"
|
|
12087
|
+
},
|
|
12088
|
+
"privacy": "private"
|
|
12089
|
+
},
|
|
12090
|
+
{
|
|
12091
|
+
"kind": "field",
|
|
12092
|
+
"name": "computed",
|
|
12093
|
+
"type": {
|
|
12094
|
+
"text": "HTMLElement"
|
|
12095
|
+
},
|
|
12096
|
+
"privacy": "private"
|
|
12097
|
+
},
|
|
12098
|
+
{
|
|
12099
|
+
"kind": "field",
|
|
12100
|
+
"name": "value",
|
|
12101
|
+
"type": {
|
|
12102
|
+
"text": "string"
|
|
12103
|
+
},
|
|
12104
|
+
"default": "\"\"",
|
|
12105
|
+
"description": "The value of the QR Code, most commonly an URL.",
|
|
12106
|
+
"attribute": "value",
|
|
12107
|
+
"reflects": true
|
|
12108
|
+
},
|
|
12109
|
+
{
|
|
12110
|
+
"kind": "field",
|
|
12111
|
+
"name": "label",
|
|
12112
|
+
"type": {
|
|
12113
|
+
"text": "string"
|
|
12114
|
+
},
|
|
12115
|
+
"default": "\"\"",
|
|
12116
|
+
"description": "Label used by assistive technology. If unspecified, the value will\nbe used instead.",
|
|
12117
|
+
"attribute": "label",
|
|
12118
|
+
"reflects": true
|
|
12119
|
+
},
|
|
12120
|
+
{
|
|
12121
|
+
"kind": "field",
|
|
12122
|
+
"name": "size",
|
|
12123
|
+
"type": {
|
|
12124
|
+
"text": "number"
|
|
12125
|
+
},
|
|
12126
|
+
"default": "128",
|
|
12127
|
+
"description": "The size of the rendered QR Code in pixels.",
|
|
12128
|
+
"attribute": "size",
|
|
12129
|
+
"reflects": true
|
|
12130
|
+
},
|
|
12131
|
+
{
|
|
12132
|
+
"kind": "field",
|
|
12133
|
+
"name": "color",
|
|
12134
|
+
"type": {
|
|
12135
|
+
"text": "string"
|
|
12136
|
+
},
|
|
12137
|
+
"default": "\"var(--n-color-text)\"",
|
|
12138
|
+
"description": "The fill color of the QR Code.\nCan accept any valid CSS color value, including custom properties.",
|
|
12139
|
+
"attribute": "color",
|
|
12140
|
+
"reflects": true
|
|
12141
|
+
},
|
|
12142
|
+
{
|
|
12143
|
+
"kind": "field",
|
|
12144
|
+
"name": "background",
|
|
12145
|
+
"type": {
|
|
12146
|
+
"text": "string"
|
|
12147
|
+
},
|
|
12148
|
+
"default": "\"var(--n-color-surface)\"",
|
|
12149
|
+
"description": "The background color of the QR Code.\nCan accept any valid CSS color value, including custom properties.",
|
|
12150
|
+
"attribute": "background",
|
|
12151
|
+
"reflects": true
|
|
12152
|
+
},
|
|
12153
|
+
{
|
|
12154
|
+
"kind": "field",
|
|
12155
|
+
"name": "correction",
|
|
12156
|
+
"type": {
|
|
12157
|
+
"text": "\"L\" | \"M\" | \"Q\" | \"H\""
|
|
12158
|
+
},
|
|
12159
|
+
"default": "\"H\"",
|
|
12160
|
+
"description": "Error correction level makes the QR Code bigger and helps users to\nscan it without issues. L, M, Q and H values will use 7%, 15%, 25%\nand 30% of the QR code for error correction respectively.",
|
|
12161
|
+
"attribute": "correction",
|
|
12162
|
+
"reflects": true
|
|
12163
|
+
},
|
|
12164
|
+
{
|
|
12165
|
+
"kind": "method",
|
|
12166
|
+
"name": "generate",
|
|
12167
|
+
"privacy": "private"
|
|
12168
|
+
}
|
|
12169
|
+
],
|
|
12170
|
+
"attributes": [
|
|
12171
|
+
{
|
|
12172
|
+
"name": "value",
|
|
12173
|
+
"type": {
|
|
12174
|
+
"text": "string"
|
|
12175
|
+
},
|
|
12176
|
+
"default": "\"\"",
|
|
12177
|
+
"description": "The value of the QR Code, most commonly an URL.",
|
|
12178
|
+
"fieldName": "value"
|
|
12179
|
+
},
|
|
12180
|
+
{
|
|
12181
|
+
"name": "label",
|
|
12182
|
+
"type": {
|
|
12183
|
+
"text": "string"
|
|
12184
|
+
},
|
|
12185
|
+
"default": "\"\"",
|
|
12186
|
+
"description": "Label used by assistive technology. If unspecified, the value will\nbe used instead.",
|
|
12187
|
+
"fieldName": "label"
|
|
12188
|
+
},
|
|
12189
|
+
{
|
|
12190
|
+
"name": "size",
|
|
12191
|
+
"type": {
|
|
12192
|
+
"text": "number"
|
|
12193
|
+
},
|
|
12194
|
+
"default": "128",
|
|
12195
|
+
"description": "The size of the rendered QR Code in pixels.",
|
|
12196
|
+
"fieldName": "size"
|
|
12197
|
+
},
|
|
12198
|
+
{
|
|
12199
|
+
"name": "color",
|
|
12200
|
+
"type": {
|
|
12201
|
+
"text": "string"
|
|
12202
|
+
},
|
|
12203
|
+
"default": "\"var(--n-color-text)\"",
|
|
12204
|
+
"description": "The fill color of the QR Code.\nCan accept any valid CSS color value, including custom properties.",
|
|
12205
|
+
"fieldName": "color"
|
|
12206
|
+
},
|
|
12207
|
+
{
|
|
12208
|
+
"name": "background",
|
|
12209
|
+
"type": {
|
|
12210
|
+
"text": "string"
|
|
12211
|
+
},
|
|
12212
|
+
"default": "\"var(--n-color-surface)\"",
|
|
12213
|
+
"description": "The background color of the QR Code.\nCan accept any valid CSS color value, including custom properties.",
|
|
12214
|
+
"fieldName": "background"
|
|
12215
|
+
},
|
|
12216
|
+
{
|
|
12217
|
+
"name": "correction",
|
|
12191
12218
|
"type": {
|
|
12192
|
-
"text": "
|
|
12219
|
+
"text": "\"L\" | \"M\" | \"Q\" | \"H\""
|
|
12193
12220
|
},
|
|
12194
|
-
"
|
|
12195
|
-
"
|
|
12196
|
-
|
|
12197
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
12198
|
-
}
|
|
12221
|
+
"default": "\"H\"",
|
|
12222
|
+
"description": "Error correction level makes the QR Code bigger and helps users to\nscan it without issues. L, M, Q and H values will use 7%, 15%, 25%\nand 30% of the QR code for error correction respectively.",
|
|
12223
|
+
"fieldName": "correction"
|
|
12199
12224
|
}
|
|
12200
|
-
]
|
|
12225
|
+
],
|
|
12226
|
+
"superclass": {
|
|
12227
|
+
"name": "LitElement",
|
|
12228
|
+
"package": "lit"
|
|
12229
|
+
},
|
|
12230
|
+
"localization": [],
|
|
12231
|
+
"status": "ready",
|
|
12232
|
+
"category": "image",
|
|
12233
|
+
"displayName": "QR Code",
|
|
12234
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use to allow people to access information on their smartphone without the need to type.\n- Always provide an alternative way to access the same information.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t hide important information behind a QR Code only.\n\n</div>\n",
|
|
12235
|
+
"examples": [],
|
|
12236
|
+
"dependencies": [],
|
|
12237
|
+
"tagName": "nord-qrcode",
|
|
12238
|
+
"customElement": true
|
|
12201
12239
|
}
|
|
12202
12240
|
],
|
|
12203
12241
|
"exports": [
|
|
@@ -12205,16 +12243,16 @@
|
|
|
12205
12243
|
"kind": "js",
|
|
12206
12244
|
"name": "default",
|
|
12207
12245
|
"declaration": {
|
|
12208
|
-
"name": "
|
|
12209
|
-
"module": "src/
|
|
12246
|
+
"name": "Qrcode",
|
|
12247
|
+
"module": "src/qrcode/Qrcode.ts"
|
|
12210
12248
|
}
|
|
12211
12249
|
},
|
|
12212
12250
|
{
|
|
12213
12251
|
"kind": "custom-element-definition",
|
|
12214
|
-
"name": "nord-
|
|
12252
|
+
"name": "nord-qrcode",
|
|
12215
12253
|
"declaration": {
|
|
12216
|
-
"name": "
|
|
12217
|
-
"module": "src/
|
|
12254
|
+
"name": "Qrcode",
|
|
12255
|
+
"module": "src/qrcode/Qrcode.ts"
|
|
12218
12256
|
}
|
|
12219
12257
|
}
|
|
12220
12258
|
]
|
|
@@ -15663,240 +15701,31 @@
|
|
|
15663
15701
|
},
|
|
15664
15702
|
{
|
|
15665
15703
|
"name": "InputMixin",
|
|
15666
|
-
"module": "/src/common/mixins/InputMixin.js"
|
|
15667
|
-
},
|
|
15668
|
-
{
|
|
15669
|
-
"name": "FocusableMixin",
|
|
15670
|
-
"module": "/src/common/mixins/FocusableMixin.js"
|
|
15671
|
-
}
|
|
15672
|
-
],
|
|
15673
|
-
"superclass": {
|
|
15674
|
-
"name": "LitElement",
|
|
15675
|
-
"package": "lit"
|
|
15676
|
-
},
|
|
15677
|
-
"localization": [
|
|
15678
|
-
{
|
|
15679
|
-
"name": "removeLabel",
|
|
15680
|
-
"description": "Accessible label for the remove button."
|
|
15681
|
-
}
|
|
15682
|
-
],
|
|
15683
|
-
"status": "draft",
|
|
15684
|
-
"category": "text",
|
|
15685
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use for labeling, categorizing, or organizing objects.\n- Ensure there is enough space around tags when they are interactive.\n- Always position tags so that it’s easy to understand what object they’re related to.\n- Keep in mind that tags can increase the amount of cognitive noise, particularly when combined with the status component, so use them in moderation.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for showing the status of an object, use the [badge component](/components/badge/) instead.\n- Don’t use when you want to highlight something that has been added recently, use the [badge component](/components/badge/) instead.\n- Don’t use alternatives to existing tag variants.\n\n</div>\n\n---\n\n## Content guidelines\n\nTags should use short and clear labels for easy scanning. They should be concise and informative:\n\n<div class=\"n-usage n-usage-do\">Has seizures</div>\n<div class=\"n-usage n-usage-dont\">This dog has seizures often</div>\n\nWhen writing tag labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Service dog</div>\n<div class=\"n-usage n-usage-dont\">Service Dog</div>\n\nAvoid unnecessary words and articles in tag labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Service dog</div>\n<div class=\"n-usage n-usage-dont\">A service dog</div>\n\n---\n\n## Variants\n\nThis section describes the different component variants, their purpose, and when to use each variant.\n\n| Name | Purpose |\n| ------------ | ------------------------------------------------- |\n| `default` | The default variant for a non-interactive tag. |\n| `removable` | Used for tags that can be removed by the user. |\n| `selectable` | Used for tags that can be selected or deselected. |\n",
|
|
15686
|
-
"examples": [],
|
|
15687
|
-
"dependencies": [
|
|
15688
|
-
"icon"
|
|
15689
|
-
],
|
|
15690
|
-
"tagName": "nord-tag",
|
|
15691
|
-
"customElement": true
|
|
15692
|
-
}
|
|
15693
|
-
],
|
|
15694
|
-
"exports": [
|
|
15695
|
-
{
|
|
15696
|
-
"kind": "js",
|
|
15697
|
-
"name": "default",
|
|
15698
|
-
"declaration": {
|
|
15699
|
-
"name": "Tag",
|
|
15700
|
-
"module": "src/tag/Tag.ts"
|
|
15701
|
-
}
|
|
15702
|
-
},
|
|
15703
|
-
{
|
|
15704
|
-
"kind": "custom-element-definition",
|
|
15705
|
-
"name": "nord-tag",
|
|
15706
|
-
"declaration": {
|
|
15707
|
-
"name": "Tag",
|
|
15708
|
-
"module": "src/tag/Tag.ts"
|
|
15709
|
-
}
|
|
15710
|
-
}
|
|
15711
|
-
]
|
|
15712
|
-
},
|
|
15713
|
-
{
|
|
15714
|
-
"kind": "javascript-module",
|
|
15715
|
-
"path": "src/tag/localization.ts",
|
|
15716
|
-
"declarations": [
|
|
15717
|
-
{
|
|
15718
|
-
"kind": "variable",
|
|
15719
|
-
"name": "localization",
|
|
15720
|
-
"type": {
|
|
15721
|
-
"text": "object"
|
|
15722
|
-
},
|
|
15723
|
-
"default": "{\n removeLabel: \"Remove\",\n}"
|
|
15724
|
-
}
|
|
15725
|
-
],
|
|
15726
|
-
"exports": [
|
|
15727
|
-
{
|
|
15728
|
-
"kind": "js",
|
|
15729
|
-
"name": "default",
|
|
15730
|
-
"declaration": {
|
|
15731
|
-
"name": "localization",
|
|
15732
|
-
"module": "src/tag/localization.ts"
|
|
15733
|
-
}
|
|
15734
|
-
}
|
|
15735
|
-
]
|
|
15736
|
-
},
|
|
15737
|
-
{
|
|
15738
|
-
"kind": "javascript-module",
|
|
15739
|
-
"path": "src/tag-group/TagGroup.ts",
|
|
15740
|
-
"declarations": [
|
|
15741
|
-
{
|
|
15742
|
-
"kind": "class",
|
|
15743
|
-
"description": "Tag groups are designed to bring together selectable tags that are of a similar nature. For example categories you can filter by.",
|
|
15744
|
-
"name": "TagGroup",
|
|
15745
|
-
"cssProperties": [
|
|
15746
|
-
{
|
|
15747
|
-
"description": "Controls the rounded corners of the tag group, using [border radius tokens](/tokens/#border-radius). Only relevant for the default variant.",
|
|
15748
|
-
"name": "--n-tag-group-border-radius",
|
|
15749
|
-
"default": "var(--n-border-radius-s)"
|
|
15750
|
-
},
|
|
15751
|
-
{
|
|
15752
|
-
"description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow). Only relevant for the default variant.",
|
|
15753
|
-
"name": "--n-tag-group-box-shadow",
|
|
15754
|
-
"default": "var(--n-box-shadow)"
|
|
15755
|
-
}
|
|
15756
|
-
],
|
|
15757
|
-
"slots": [
|
|
15758
|
-
{
|
|
15759
|
-
"description": "The tag group content",
|
|
15760
|
-
"name": ""
|
|
15761
|
-
}
|
|
15762
|
-
],
|
|
15763
|
-
"members": [
|
|
15764
|
-
{
|
|
15765
|
-
"kind": "field",
|
|
15766
|
-
"name": "dirController",
|
|
15767
|
-
"privacy": "private",
|
|
15768
|
-
"default": "new DirectionController(this)"
|
|
15769
|
-
},
|
|
15770
|
-
{
|
|
15771
|
-
"kind": "field",
|
|
15772
|
-
"name": "variant",
|
|
15773
|
-
"type": {
|
|
15774
|
-
"text": "\"default\" | \"spaced\""
|
|
15775
|
-
},
|
|
15776
|
-
"default": "\"default\"",
|
|
15777
|
-
"description": "The style variant of the tag group.",
|
|
15778
|
-
"attribute": "variant",
|
|
15779
|
-
"reflects": true
|
|
15780
|
-
},
|
|
15781
|
-
{
|
|
15782
|
-
"kind": "field",
|
|
15783
|
-
"name": "direction",
|
|
15784
|
-
"type": {
|
|
15785
|
-
"text": "\"vertical\" | \"horizontal\""
|
|
15786
|
-
},
|
|
15787
|
-
"default": "\"horizontal\"",
|
|
15788
|
-
"description": "The direction of the tag group.",
|
|
15789
|
-
"attribute": "direction",
|
|
15790
|
-
"reflects": true
|
|
15791
|
-
},
|
|
15792
|
-
{
|
|
15793
|
-
"kind": "field",
|
|
15794
|
-
"name": "wrap",
|
|
15795
|
-
"type": {
|
|
15796
|
-
"text": "boolean"
|
|
15797
|
-
},
|
|
15798
|
-
"default": "false",
|
|
15799
|
-
"description": "Defines whether the tags are forced in a single line\nor can be flowed into multiple lines (only applied when variant is set to `spaced`).",
|
|
15800
|
-
"attribute": "wrap",
|
|
15801
|
-
"reflects": true
|
|
15802
|
-
},
|
|
15803
|
-
{
|
|
15804
|
-
"kind": "field",
|
|
15805
|
-
"name": "role",
|
|
15806
|
-
"type": {
|
|
15807
|
-
"text": "string"
|
|
15808
|
-
},
|
|
15809
|
-
"default": "\"group\"",
|
|
15810
|
-
"description": "The appropriate role for the containing element.",
|
|
15811
|
-
"attribute": "role",
|
|
15812
|
-
"reflects": true
|
|
15813
|
-
},
|
|
15814
|
-
{
|
|
15815
|
-
"kind": "field",
|
|
15816
|
-
"name": "_warningLogged",
|
|
15817
|
-
"type": {
|
|
15818
|
-
"text": "boolean"
|
|
15819
|
-
},
|
|
15820
|
-
"privacy": "private",
|
|
15821
|
-
"static": true,
|
|
15822
|
-
"default": "false",
|
|
15823
|
-
"inheritedFrom": {
|
|
15824
|
-
"name": "DraftComponentMixin",
|
|
15825
|
-
"module": "src/common/mixins/DraftComponentMixin.ts"
|
|
15826
|
-
}
|
|
15827
|
-
}
|
|
15828
|
-
],
|
|
15829
|
-
"events": [
|
|
15830
|
-
{
|
|
15831
|
-
"type": {
|
|
15832
|
-
"text": "NordEvent"
|
|
15833
|
-
},
|
|
15834
|
-
"description": "Fired whenever a tag has been checked or unchecked via user interaction.",
|
|
15835
|
-
"name": "change"
|
|
15836
|
-
},
|
|
15837
|
-
{
|
|
15838
|
-
"type": {
|
|
15839
|
-
"text": "NordEvent"
|
|
15840
|
-
},
|
|
15841
|
-
"description": "Fired when the remove button is activated on a tag. This event should be used to remove the tag from the DOM.",
|
|
15842
|
-
"name": "remove"
|
|
15843
|
-
}
|
|
15844
|
-
],
|
|
15845
|
-
"attributes": [
|
|
15846
|
-
{
|
|
15847
|
-
"name": "variant",
|
|
15848
|
-
"type": {
|
|
15849
|
-
"text": "\"default\" | \"spaced\""
|
|
15850
|
-
},
|
|
15851
|
-
"default": "\"default\"",
|
|
15852
|
-
"description": "The style variant of the tag group.",
|
|
15853
|
-
"fieldName": "variant"
|
|
15854
|
-
},
|
|
15855
|
-
{
|
|
15856
|
-
"name": "direction",
|
|
15857
|
-
"type": {
|
|
15858
|
-
"text": "\"vertical\" | \"horizontal\""
|
|
15859
|
-
},
|
|
15860
|
-
"default": "\"horizontal\"",
|
|
15861
|
-
"description": "The direction of the tag group.",
|
|
15862
|
-
"fieldName": "direction"
|
|
15863
|
-
},
|
|
15864
|
-
{
|
|
15865
|
-
"name": "wrap",
|
|
15866
|
-
"type": {
|
|
15867
|
-
"text": "boolean"
|
|
15868
|
-
},
|
|
15869
|
-
"default": "false",
|
|
15870
|
-
"description": "Defines whether the tags are forced in a single line\nor can be flowed into multiple lines (only applied when variant is set to `spaced`).",
|
|
15871
|
-
"fieldName": "wrap"
|
|
15872
|
-
},
|
|
15873
|
-
{
|
|
15874
|
-
"name": "role",
|
|
15875
|
-
"type": {
|
|
15876
|
-
"text": "string"
|
|
15877
|
-
},
|
|
15878
|
-
"default": "\"group\"",
|
|
15879
|
-
"description": "The appropriate role for the containing element.",
|
|
15880
|
-
"fieldName": "role"
|
|
15881
|
-
}
|
|
15882
|
-
],
|
|
15883
|
-
"mixins": [
|
|
15704
|
+
"module": "/src/common/mixins/InputMixin.js"
|
|
15705
|
+
},
|
|
15884
15706
|
{
|
|
15885
|
-
"name": "
|
|
15886
|
-
"module": "/src/common/mixins/
|
|
15707
|
+
"name": "FocusableMixin",
|
|
15708
|
+
"module": "/src/common/mixins/FocusableMixin.js"
|
|
15887
15709
|
}
|
|
15888
15710
|
],
|
|
15889
15711
|
"superclass": {
|
|
15890
15712
|
"name": "LitElement",
|
|
15891
15713
|
"package": "lit"
|
|
15892
15714
|
},
|
|
15893
|
-
"localization": [
|
|
15715
|
+
"localization": [
|
|
15716
|
+
{
|
|
15717
|
+
"name": "removeLabel",
|
|
15718
|
+
"description": "Accessible label for the remove button."
|
|
15719
|
+
}
|
|
15720
|
+
],
|
|
15894
15721
|
"status": "draft",
|
|
15895
|
-
"category": "
|
|
15896
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use
|
|
15722
|
+
"category": "text",
|
|
15723
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use for labeling, categorizing, or organizing objects.\n- Ensure there is enough space around tags when they are interactive.\n- Always position tags so that it’s easy to understand what object they’re related to.\n- Keep in mind that tags can increase the amount of cognitive noise, particularly when combined with the status component, so use them in moderation.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for showing the status of an object, use the [badge component](/components/badge/) instead.\n- Don’t use when you want to highlight something that has been added recently, use the [badge component](/components/badge/) instead.\n- Don’t use alternatives to existing tag variants.\n\n</div>\n\n---\n\n## Content guidelines\n\nTags should use short and clear labels for easy scanning. They should be concise and informative:\n\n<div class=\"n-usage n-usage-do\">Has seizures</div>\n<div class=\"n-usage n-usage-dont\">This dog has seizures often</div>\n\nWhen writing tag labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Service dog</div>\n<div class=\"n-usage n-usage-dont\">Service Dog</div>\n\nAvoid unnecessary words and articles in tag labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Service dog</div>\n<div class=\"n-usage n-usage-dont\">A service dog</div>\n\n---\n\n## Variants\n\nThis section describes the different component variants, their purpose, and when to use each variant.\n\n| Name | Purpose |\n| ------------ | ------------------------------------------------- |\n| `default` | The default variant for a non-interactive tag. |\n| `removable` | Used for tags that can be removed by the user. |\n| `selectable` | Used for tags that can be selected or deselected. |\n",
|
|
15897
15724
|
"examples": [],
|
|
15898
|
-
"dependencies": [
|
|
15899
|
-
|
|
15725
|
+
"dependencies": [
|
|
15726
|
+
"icon"
|
|
15727
|
+
],
|
|
15728
|
+
"tagName": "nord-tag",
|
|
15900
15729
|
"customElement": true
|
|
15901
15730
|
}
|
|
15902
15731
|
],
|
|
@@ -15905,16 +15734,40 @@
|
|
|
15905
15734
|
"kind": "js",
|
|
15906
15735
|
"name": "default",
|
|
15907
15736
|
"declaration": {
|
|
15908
|
-
"name": "
|
|
15909
|
-
"module": "src/tag
|
|
15737
|
+
"name": "Tag",
|
|
15738
|
+
"module": "src/tag/Tag.ts"
|
|
15910
15739
|
}
|
|
15911
15740
|
},
|
|
15912
15741
|
{
|
|
15913
15742
|
"kind": "custom-element-definition",
|
|
15914
|
-
"name": "nord-tag
|
|
15743
|
+
"name": "nord-tag",
|
|
15915
15744
|
"declaration": {
|
|
15916
|
-
"name": "
|
|
15917
|
-
"module": "src/tag
|
|
15745
|
+
"name": "Tag",
|
|
15746
|
+
"module": "src/tag/Tag.ts"
|
|
15747
|
+
}
|
|
15748
|
+
}
|
|
15749
|
+
]
|
|
15750
|
+
},
|
|
15751
|
+
{
|
|
15752
|
+
"kind": "javascript-module",
|
|
15753
|
+
"path": "src/tag/localization.ts",
|
|
15754
|
+
"declarations": [
|
|
15755
|
+
{
|
|
15756
|
+
"kind": "variable",
|
|
15757
|
+
"name": "localization",
|
|
15758
|
+
"type": {
|
|
15759
|
+
"text": "object"
|
|
15760
|
+
},
|
|
15761
|
+
"default": "{\n removeLabel: \"Remove\",\n}"
|
|
15762
|
+
}
|
|
15763
|
+
],
|
|
15764
|
+
"exports": [
|
|
15765
|
+
{
|
|
15766
|
+
"kind": "js",
|
|
15767
|
+
"name": "default",
|
|
15768
|
+
"declaration": {
|
|
15769
|
+
"name": "localization",
|
|
15770
|
+
"module": "src/tag/localization.ts"
|
|
15918
15771
|
}
|
|
15919
15772
|
}
|
|
15920
15773
|
]
|
|
@@ -16912,34 +16765,249 @@
|
|
|
16912
16765
|
"module": "/src/common/mixins/ReadonlyMixin.js"
|
|
16913
16766
|
},
|
|
16914
16767
|
{
|
|
16915
|
-
"name": "TextSelectableMixin",
|
|
16916
|
-
"module": "/src/common/mixins/TextSelectableMixin.js"
|
|
16768
|
+
"name": "TextSelectableMixin",
|
|
16769
|
+
"module": "/src/common/mixins/TextSelectableMixin.js"
|
|
16770
|
+
},
|
|
16771
|
+
{
|
|
16772
|
+
"name": "InputMixin",
|
|
16773
|
+
"module": "/src/common/mixins/InputMixin.js"
|
|
16774
|
+
},
|
|
16775
|
+
{
|
|
16776
|
+
"name": "FocusableMixin",
|
|
16777
|
+
"module": "/src/common/mixins/FocusableMixin.js"
|
|
16778
|
+
}
|
|
16779
|
+
],
|
|
16780
|
+
"superclass": {
|
|
16781
|
+
"name": "LitElement",
|
|
16782
|
+
"package": "lit"
|
|
16783
|
+
},
|
|
16784
|
+
"localization": [
|
|
16785
|
+
{
|
|
16786
|
+
"name": "remainingCharacters",
|
|
16787
|
+
"description": "A function which receives the number of remaining characters and returns a string to be used as the aria-live message."
|
|
16788
|
+
}
|
|
16789
|
+
],
|
|
16790
|
+
"status": "ready",
|
|
16791
|
+
"category": "form",
|
|
16792
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use to allow text input where the expected input is long.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use when the expected text input is short. Use input component instead.\n\n</div>\n\n---\n\n## Content guidelines\n\nTextarea labels act as a title for the text field. Labels should typically be short and in noun form:\n\n<div class=\"n-usage n-usage-do\">Company name</div>\n<div class=\"n-usage n-usage-dont\">What is your company name?</div>\n\nWhen writing textarea labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Provide description</div>\n<div class=\"n-usage n-usage-dont\">Provide Description</div>\n\nWhen a textarea isn’t part of a form and is placed individually on a page, you could provide the textarea label as a call to action:\n\n<div class=\"n-usage n-usage-do\">Leave a comment</div>\n<div class=\"n-usage n-usage-dont\">Comment</div>\n\nDo not use colons in textarea labels:\n\n<div class=\"n-usage n-usage-do\">Provide description</div>\n<div class=\"n-usage n-usage-dont\">Provide description:</div>\n",
|
|
16793
|
+
"examples": [],
|
|
16794
|
+
"dependencies": [],
|
|
16795
|
+
"tagName": "nord-textarea",
|
|
16796
|
+
"customElement": true
|
|
16797
|
+
}
|
|
16798
|
+
],
|
|
16799
|
+
"exports": [
|
|
16800
|
+
{
|
|
16801
|
+
"kind": "js",
|
|
16802
|
+
"name": "default",
|
|
16803
|
+
"declaration": {
|
|
16804
|
+
"name": "Textarea",
|
|
16805
|
+
"module": "src/textarea/Textarea.ts"
|
|
16806
|
+
}
|
|
16807
|
+
},
|
|
16808
|
+
{
|
|
16809
|
+
"kind": "custom-element-definition",
|
|
16810
|
+
"name": "nord-textarea",
|
|
16811
|
+
"declaration": {
|
|
16812
|
+
"name": "Textarea",
|
|
16813
|
+
"module": "src/textarea/Textarea.ts"
|
|
16814
|
+
}
|
|
16815
|
+
}
|
|
16816
|
+
]
|
|
16817
|
+
},
|
|
16818
|
+
{
|
|
16819
|
+
"kind": "javascript-module",
|
|
16820
|
+
"path": "src/textarea/localization.ts",
|
|
16821
|
+
"declarations": [
|
|
16822
|
+
{
|
|
16823
|
+
"kind": "variable",
|
|
16824
|
+
"name": "localization",
|
|
16825
|
+
"type": {
|
|
16826
|
+
"text": "object"
|
|
16827
|
+
},
|
|
16828
|
+
"default": "{\n remainingCharacters: (remainder: number) => `Characters remaining: ${remainder}`,\n}"
|
|
16829
|
+
}
|
|
16830
|
+
],
|
|
16831
|
+
"exports": [
|
|
16832
|
+
{
|
|
16833
|
+
"kind": "js",
|
|
16834
|
+
"name": "default",
|
|
16835
|
+
"declaration": {
|
|
16836
|
+
"name": "localization",
|
|
16837
|
+
"module": "src/textarea/localization.ts"
|
|
16838
|
+
}
|
|
16839
|
+
}
|
|
16840
|
+
]
|
|
16841
|
+
},
|
|
16842
|
+
{
|
|
16843
|
+
"kind": "javascript-module",
|
|
16844
|
+
"path": "src/tag-group/TagGroup.ts",
|
|
16845
|
+
"declarations": [
|
|
16846
|
+
{
|
|
16847
|
+
"kind": "class",
|
|
16848
|
+
"description": "Tag groups are designed to bring together selectable tags that are of a similar nature. For example categories you can filter by.",
|
|
16849
|
+
"name": "TagGroup",
|
|
16850
|
+
"cssProperties": [
|
|
16851
|
+
{
|
|
16852
|
+
"description": "Controls the rounded corners of the tag group, using [border radius tokens](/tokens/#border-radius). Only relevant for the default variant.",
|
|
16853
|
+
"name": "--n-tag-group-border-radius",
|
|
16854
|
+
"default": "var(--n-border-radius-s)"
|
|
16855
|
+
},
|
|
16856
|
+
{
|
|
16857
|
+
"description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow). Only relevant for the default variant.",
|
|
16858
|
+
"name": "--n-tag-group-box-shadow",
|
|
16859
|
+
"default": "var(--n-box-shadow)"
|
|
16860
|
+
}
|
|
16861
|
+
],
|
|
16862
|
+
"slots": [
|
|
16863
|
+
{
|
|
16864
|
+
"description": "The tag group content",
|
|
16865
|
+
"name": ""
|
|
16866
|
+
}
|
|
16867
|
+
],
|
|
16868
|
+
"members": [
|
|
16869
|
+
{
|
|
16870
|
+
"kind": "field",
|
|
16871
|
+
"name": "defaultSlot",
|
|
16872
|
+
"privacy": "private",
|
|
16873
|
+
"default": "new SlotController(this)"
|
|
16874
|
+
},
|
|
16875
|
+
{
|
|
16876
|
+
"kind": "field",
|
|
16877
|
+
"name": "dirController",
|
|
16878
|
+
"privacy": "private",
|
|
16879
|
+
"default": "new DirectionController(this)"
|
|
16880
|
+
},
|
|
16881
|
+
{
|
|
16882
|
+
"kind": "field",
|
|
16883
|
+
"name": "variant",
|
|
16884
|
+
"type": {
|
|
16885
|
+
"text": "\"default\" | \"spaced\""
|
|
16886
|
+
},
|
|
16887
|
+
"default": "\"default\"",
|
|
16888
|
+
"description": "The style variant of the tag group.",
|
|
16889
|
+
"attribute": "variant",
|
|
16890
|
+
"reflects": true
|
|
16891
|
+
},
|
|
16892
|
+
{
|
|
16893
|
+
"kind": "field",
|
|
16894
|
+
"name": "direction",
|
|
16895
|
+
"type": {
|
|
16896
|
+
"text": "\"vertical\" | \"horizontal\""
|
|
16897
|
+
},
|
|
16898
|
+
"default": "\"horizontal\"",
|
|
16899
|
+
"description": "The direction of the tag group.",
|
|
16900
|
+
"attribute": "direction",
|
|
16901
|
+
"reflects": true
|
|
16902
|
+
},
|
|
16903
|
+
{
|
|
16904
|
+
"kind": "field",
|
|
16905
|
+
"name": "wrap",
|
|
16906
|
+
"type": {
|
|
16907
|
+
"text": "boolean"
|
|
16908
|
+
},
|
|
16909
|
+
"default": "false",
|
|
16910
|
+
"description": "Defines whether the tags are forced in a single line\nor can be flowed into multiple lines (only applied when variant is set to `spaced`).",
|
|
16911
|
+
"attribute": "wrap",
|
|
16912
|
+
"reflects": true
|
|
16913
|
+
},
|
|
16914
|
+
{
|
|
16915
|
+
"kind": "field",
|
|
16916
|
+
"name": "role",
|
|
16917
|
+
"type": {
|
|
16918
|
+
"text": "string"
|
|
16919
|
+
},
|
|
16920
|
+
"default": "\"group\"",
|
|
16921
|
+
"description": "The appropriate role for the containing element.",
|
|
16922
|
+
"attribute": "role",
|
|
16923
|
+
"reflects": true
|
|
16924
|
+
},
|
|
16925
|
+
{
|
|
16926
|
+
"kind": "field",
|
|
16927
|
+
"name": "_warningLogged",
|
|
16928
|
+
"type": {
|
|
16929
|
+
"text": "boolean"
|
|
16930
|
+
},
|
|
16931
|
+
"privacy": "private",
|
|
16932
|
+
"static": true,
|
|
16933
|
+
"default": "false",
|
|
16934
|
+
"inheritedFrom": {
|
|
16935
|
+
"name": "DraftComponentMixin",
|
|
16936
|
+
"module": "src/common/mixins/DraftComponentMixin.ts"
|
|
16937
|
+
}
|
|
16938
|
+
}
|
|
16939
|
+
],
|
|
16940
|
+
"events": [
|
|
16941
|
+
{
|
|
16942
|
+
"type": {
|
|
16943
|
+
"text": "NordEvent"
|
|
16944
|
+
},
|
|
16945
|
+
"description": "Fired whenever a tag has been checked or unchecked via user interaction.",
|
|
16946
|
+
"name": "change"
|
|
16947
|
+
},
|
|
16948
|
+
{
|
|
16949
|
+
"type": {
|
|
16950
|
+
"text": "NordEvent"
|
|
16951
|
+
},
|
|
16952
|
+
"description": "Fired when the remove button is activated on a tag. This event should be used to remove the tag from the DOM.",
|
|
16953
|
+
"name": "remove"
|
|
16954
|
+
}
|
|
16955
|
+
],
|
|
16956
|
+
"attributes": [
|
|
16957
|
+
{
|
|
16958
|
+
"name": "variant",
|
|
16959
|
+
"type": {
|
|
16960
|
+
"text": "\"default\" | \"spaced\""
|
|
16961
|
+
},
|
|
16962
|
+
"default": "\"default\"",
|
|
16963
|
+
"description": "The style variant of the tag group.",
|
|
16964
|
+
"fieldName": "variant"
|
|
16965
|
+
},
|
|
16966
|
+
{
|
|
16967
|
+
"name": "direction",
|
|
16968
|
+
"type": {
|
|
16969
|
+
"text": "\"vertical\" | \"horizontal\""
|
|
16970
|
+
},
|
|
16971
|
+
"default": "\"horizontal\"",
|
|
16972
|
+
"description": "The direction of the tag group.",
|
|
16973
|
+
"fieldName": "direction"
|
|
16917
16974
|
},
|
|
16918
16975
|
{
|
|
16919
|
-
"name": "
|
|
16920
|
-
"
|
|
16976
|
+
"name": "wrap",
|
|
16977
|
+
"type": {
|
|
16978
|
+
"text": "boolean"
|
|
16979
|
+
},
|
|
16980
|
+
"default": "false",
|
|
16981
|
+
"description": "Defines whether the tags are forced in a single line\nor can be flowed into multiple lines (only applied when variant is set to `spaced`).",
|
|
16982
|
+
"fieldName": "wrap"
|
|
16921
16983
|
},
|
|
16922
16984
|
{
|
|
16923
|
-
"name": "
|
|
16924
|
-
"
|
|
16985
|
+
"name": "role",
|
|
16986
|
+
"type": {
|
|
16987
|
+
"text": "string"
|
|
16988
|
+
},
|
|
16989
|
+
"default": "\"group\"",
|
|
16990
|
+
"description": "The appropriate role for the containing element.",
|
|
16991
|
+
"fieldName": "role"
|
|
16992
|
+
}
|
|
16993
|
+
],
|
|
16994
|
+
"mixins": [
|
|
16995
|
+
{
|
|
16996
|
+
"name": "DraftComponentMixin",
|
|
16997
|
+
"module": "/src/common/mixins/DraftComponentMixin.js"
|
|
16925
16998
|
}
|
|
16926
16999
|
],
|
|
16927
17000
|
"superclass": {
|
|
16928
17001
|
"name": "LitElement",
|
|
16929
17002
|
"package": "lit"
|
|
16930
17003
|
},
|
|
16931
|
-
"localization": [
|
|
16932
|
-
|
|
16933
|
-
|
|
16934
|
-
|
|
16935
|
-
}
|
|
16936
|
-
],
|
|
16937
|
-
"status": "ready",
|
|
16938
|
-
"category": "form",
|
|
16939
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use to allow text input where the expected input is long.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use when the expected text input is short. Use input component instead.\n\n</div>\n\n---\n\n## Content guidelines\n\nTextarea labels act as a title for the text field. Labels should typically be short and in noun form:\n\n<div class=\"n-usage n-usage-do\">Company name</div>\n<div class=\"n-usage n-usage-dont\">What is your company name?</div>\n\nWhen writing textarea labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Provide description</div>\n<div class=\"n-usage n-usage-dont\">Provide Description</div>\n\nWhen a textarea isn’t part of a form and is placed individually on a page, you could provide the textarea label as a call to action:\n\n<div class=\"n-usage n-usage-do\">Leave a comment</div>\n<div class=\"n-usage n-usage-dont\">Comment</div>\n\nDo not use colons in textarea labels:\n\n<div class=\"n-usage n-usage-do\">Provide description</div>\n<div class=\"n-usage n-usage-dont\">Provide description:</div>\n",
|
|
17004
|
+
"localization": [],
|
|
17005
|
+
"status": "draft",
|
|
17006
|
+
"category": "structure",
|
|
17007
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use to group together selectable tags.\n- Use the appropriate `role` attribute on the tag group to provide additional semantics.\n- Use an `aria-labelledby` attribute referencing another element to best explain the contents of the tag group.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t add components other than selectable tags and in some instances visually hidden components to the tag group.\n- Don’t skip the addition of an appropriate label if the added `role` attribute value calls for it.\n- Don’t use for building grid based layouts.\n\n</div>\n\n---\n\n## Content guidelines\n\nTags should use short and clear labels for easy scanning. They should be concise and informative:\n\n<div class=\"n-usage n-usage-do\">Has seizures</div>\n<div class=\"n-usage n-usage-dont\">This dog has seizures often</div>\n\nWhen writing tag labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Service dog</div>\n<div class=\"n-usage n-usage-dont\">Service Dog</div>\n\nAvoid unnecessary words and articles in tag labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Service dog</div>\n<div class=\"n-usage n-usage-dont\">A service dog</div>\n\n---\n\n## Variants\n\nThis section describes the different component variants, their purpose, and when to use each variant.\n\n| Name | Purpose |\n| --------- | ------------------------------------------------------------------------------------------- |\n| `default` | The default variant renders a group of tags to emphasize that they’re thematically-related. |\n| `spaced` | The spaced variant renders a gap between the tags to space them out evenly. |\n",
|
|
16940
17008
|
"examples": [],
|
|
16941
17009
|
"dependencies": [],
|
|
16942
|
-
"tagName": "nord-
|
|
17010
|
+
"tagName": "nord-tag-group",
|
|
16943
17011
|
"customElement": true
|
|
16944
17012
|
}
|
|
16945
17013
|
],
|
|
@@ -16948,40 +17016,16 @@
|
|
|
16948
17016
|
"kind": "js",
|
|
16949
17017
|
"name": "default",
|
|
16950
17018
|
"declaration": {
|
|
16951
|
-
"name": "
|
|
16952
|
-
"module": "src/
|
|
17019
|
+
"name": "TagGroup",
|
|
17020
|
+
"module": "src/tag-group/TagGroup.ts"
|
|
16953
17021
|
}
|
|
16954
17022
|
},
|
|
16955
17023
|
{
|
|
16956
17024
|
"kind": "custom-element-definition",
|
|
16957
|
-
"name": "nord-
|
|
16958
|
-
"declaration": {
|
|
16959
|
-
"name": "Textarea",
|
|
16960
|
-
"module": "src/textarea/Textarea.ts"
|
|
16961
|
-
}
|
|
16962
|
-
}
|
|
16963
|
-
]
|
|
16964
|
-
},
|
|
16965
|
-
{
|
|
16966
|
-
"kind": "javascript-module",
|
|
16967
|
-
"path": "src/textarea/localization.ts",
|
|
16968
|
-
"declarations": [
|
|
16969
|
-
{
|
|
16970
|
-
"kind": "variable",
|
|
16971
|
-
"name": "localization",
|
|
16972
|
-
"type": {
|
|
16973
|
-
"text": "object"
|
|
16974
|
-
},
|
|
16975
|
-
"default": "{\n remainingCharacters: (remainder: number) => `Characters remaining: ${remainder}`,\n}"
|
|
16976
|
-
}
|
|
16977
|
-
],
|
|
16978
|
-
"exports": [
|
|
16979
|
-
{
|
|
16980
|
-
"kind": "js",
|
|
16981
|
-
"name": "default",
|
|
17025
|
+
"name": "nord-tag-group",
|
|
16982
17026
|
"declaration": {
|
|
16983
|
-
"name": "
|
|
16984
|
-
"module": "src/
|
|
17027
|
+
"name": "TagGroup",
|
|
17028
|
+
"module": "src/tag-group/TagGroup.ts"
|
|
16985
17029
|
}
|
|
16986
17030
|
}
|
|
16987
17031
|
]
|
|
@@ -17142,93 +17186,6 @@
|
|
|
17142
17186
|
}
|
|
17143
17187
|
]
|
|
17144
17188
|
},
|
|
17145
|
-
{
|
|
17146
|
-
"kind": "javascript-module",
|
|
17147
|
-
"path": "src/toast-group/ToastGroup.ts",
|
|
17148
|
-
"declarations": [
|
|
17149
|
-
{
|
|
17150
|
-
"kind": "class",
|
|
17151
|
-
"description": "Toast group is used to position and style a group of toasts, whilst ensuring they are announced by screen readers.",
|
|
17152
|
-
"name": "ToastGroup",
|
|
17153
|
-
"slots": [
|
|
17154
|
-
{
|
|
17155
|
-
"description": "Default slot in which to place toasts.",
|
|
17156
|
-
"name": ""
|
|
17157
|
-
}
|
|
17158
|
-
],
|
|
17159
|
-
"members": [
|
|
17160
|
-
{
|
|
17161
|
-
"kind": "method",
|
|
17162
|
-
"name": "addToast",
|
|
17163
|
-
"parameters": [
|
|
17164
|
-
{
|
|
17165
|
-
"name": "text",
|
|
17166
|
-
"type": {
|
|
17167
|
-
"text": "string"
|
|
17168
|
-
},
|
|
17169
|
-
"description": "The text/message of the toast."
|
|
17170
|
-
},
|
|
17171
|
-
{
|
|
17172
|
-
"name": "options",
|
|
17173
|
-
"default": "{}",
|
|
17174
|
-
"type": {
|
|
17175
|
-
"text": "ToastOptions"
|
|
17176
|
-
},
|
|
17177
|
-
"description": "An optional object for configuring the toast's `variant` and `autoDismiss`."
|
|
17178
|
-
}
|
|
17179
|
-
],
|
|
17180
|
-
"description": "Convenience method for creating and adding a toast to the group.",
|
|
17181
|
-
"return": {
|
|
17182
|
-
"type": {
|
|
17183
|
-
"text": "Toast"
|
|
17184
|
-
}
|
|
17185
|
-
}
|
|
17186
|
-
}
|
|
17187
|
-
],
|
|
17188
|
-
"events": [
|
|
17189
|
-
{
|
|
17190
|
-
"type": {
|
|
17191
|
-
"text": "NordEvent"
|
|
17192
|
-
},
|
|
17193
|
-
"description": "Fired when a toast is dismissed (via user action or auto-dismiss), and its exit animation has completed. This event should be used to remove the dismissed toast from the DOM.",
|
|
17194
|
-
"name": "dismiss"
|
|
17195
|
-
}
|
|
17196
|
-
],
|
|
17197
|
-
"superclass": {
|
|
17198
|
-
"name": "LitElement",
|
|
17199
|
-
"package": "lit"
|
|
17200
|
-
},
|
|
17201
|
-
"localization": [],
|
|
17202
|
-
"status": "ready",
|
|
17203
|
-
"category": "feedback",
|
|
17204
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use in combination with [Toast](/components/toast/) so that toasts get styled and announced to screen readers correctly.\n- Add as close to the bottom of the document as possible, ideally near the body closing tag, to maintain correct stacking order.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for grouping anything other than toast components\n\n</div>\n\n---\n\n## Content guidelines\n\nToast content should be clear, accurate and understandable by the user:\n\n<div class=\"n-usage n-usage-do\">Message sent</div>\n<div class=\"n-usage n-usage-dont\">Your message has been sent</div>\n\nWhen writing the toast content, use the {noun} + {verb} content formula:\n\n<div class=\"n-usage n-usage-do\">Patient created</div>\n<div class=\"n-usage n-usage-dont\">Your patient has been successfully updated</div>\n\nUse a maximum of 3 words when writing the toast content:\n\n<div class=\"n-usage n-usage-do\">Product updated</div>\n<div class=\"n-usage n-usage-dont\">Your product was updated just now</div>\n\nWhen writing the toast content, always write it in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Message sent</div>\n<div class=\"n-usage n-usage-dont\">Message Sent</div>\n\nAvoid unnecessary words and articles in the toast content, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Changes saved</div>\n<div class=\"n-usage n-usage-dont\">The changes were saved</div>\n\nNever end in punctuation:\n\n<div class=\"n-usage n-usage-do\">Message sent</div>\n<div class=\"n-usage n-usage-dont\">Message sent.</div>\n\n---\n\n## Additional considerations\n\n- Toasts are complicated from an accessibility perspective. Whilst they are a convenient UI pattern for messaging, they present difficulties for keyboard or screen reader users. Therefore careful consideration should be given as to whether a toast is the correct choice.\n- If the message cannot be conveyed in 3 words or less, consider re-wording. If the message cannot be shortened any further, consider choosing a different pattern than toast.\n",
|
|
17205
|
-
"examples": [],
|
|
17206
|
-
"dependencies": [
|
|
17207
|
-
"toast"
|
|
17208
|
-
],
|
|
17209
|
-
"tagName": "nord-toast-group",
|
|
17210
|
-
"customElement": true
|
|
17211
|
-
}
|
|
17212
|
-
],
|
|
17213
|
-
"exports": [
|
|
17214
|
-
{
|
|
17215
|
-
"kind": "js",
|
|
17216
|
-
"name": "default",
|
|
17217
|
-
"declaration": {
|
|
17218
|
-
"name": "ToastGroup",
|
|
17219
|
-
"module": "src/toast-group/ToastGroup.ts"
|
|
17220
|
-
}
|
|
17221
|
-
},
|
|
17222
|
-
{
|
|
17223
|
-
"kind": "custom-element-definition",
|
|
17224
|
-
"name": "nord-toast-group",
|
|
17225
|
-
"declaration": {
|
|
17226
|
-
"name": "ToastGroup",
|
|
17227
|
-
"module": "src/toast-group/ToastGroup.ts"
|
|
17228
|
-
}
|
|
17229
|
-
}
|
|
17230
|
-
]
|
|
17231
|
-
},
|
|
17232
17189
|
{
|
|
17233
17190
|
"kind": "javascript-module",
|
|
17234
17191
|
"path": "src/toggle/Toggle.ts",
|
|
@@ -17945,6 +17902,93 @@
|
|
|
17945
17902
|
}
|
|
17946
17903
|
]
|
|
17947
17904
|
},
|
|
17905
|
+
{
|
|
17906
|
+
"kind": "javascript-module",
|
|
17907
|
+
"path": "src/toast-group/ToastGroup.ts",
|
|
17908
|
+
"declarations": [
|
|
17909
|
+
{
|
|
17910
|
+
"kind": "class",
|
|
17911
|
+
"description": "Toast group is used to position and style a group of toasts, whilst ensuring they are announced by screen readers.",
|
|
17912
|
+
"name": "ToastGroup",
|
|
17913
|
+
"slots": [
|
|
17914
|
+
{
|
|
17915
|
+
"description": "Default slot in which to place toasts.",
|
|
17916
|
+
"name": ""
|
|
17917
|
+
}
|
|
17918
|
+
],
|
|
17919
|
+
"members": [
|
|
17920
|
+
{
|
|
17921
|
+
"kind": "method",
|
|
17922
|
+
"name": "addToast",
|
|
17923
|
+
"parameters": [
|
|
17924
|
+
{
|
|
17925
|
+
"name": "text",
|
|
17926
|
+
"type": {
|
|
17927
|
+
"text": "string"
|
|
17928
|
+
},
|
|
17929
|
+
"description": "The text/message of the toast."
|
|
17930
|
+
},
|
|
17931
|
+
{
|
|
17932
|
+
"name": "options",
|
|
17933
|
+
"default": "{}",
|
|
17934
|
+
"type": {
|
|
17935
|
+
"text": "ToastOptions"
|
|
17936
|
+
},
|
|
17937
|
+
"description": "An optional object for configuring the toast's `variant` and `autoDismiss`."
|
|
17938
|
+
}
|
|
17939
|
+
],
|
|
17940
|
+
"description": "Convenience method for creating and adding a toast to the group.",
|
|
17941
|
+
"return": {
|
|
17942
|
+
"type": {
|
|
17943
|
+
"text": "Toast"
|
|
17944
|
+
}
|
|
17945
|
+
}
|
|
17946
|
+
}
|
|
17947
|
+
],
|
|
17948
|
+
"events": [
|
|
17949
|
+
{
|
|
17950
|
+
"type": {
|
|
17951
|
+
"text": "NordEvent"
|
|
17952
|
+
},
|
|
17953
|
+
"description": "Fired when a toast is dismissed (via user action or auto-dismiss), and its exit animation has completed. This event should be used to remove the dismissed toast from the DOM.",
|
|
17954
|
+
"name": "dismiss"
|
|
17955
|
+
}
|
|
17956
|
+
],
|
|
17957
|
+
"superclass": {
|
|
17958
|
+
"name": "LitElement",
|
|
17959
|
+
"package": "lit"
|
|
17960
|
+
},
|
|
17961
|
+
"localization": [],
|
|
17962
|
+
"status": "ready",
|
|
17963
|
+
"category": "feedback",
|
|
17964
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use in combination with [Toast](/components/toast/) so that toasts get styled and announced to screen readers correctly.\n- Add as close to the bottom of the document as possible, ideally near the body closing tag, to maintain correct stacking order.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for grouping anything other than toast components\n\n</div>\n\n---\n\n## Content guidelines\n\nToast content should be clear, accurate and understandable by the user:\n\n<div class=\"n-usage n-usage-do\">Message sent</div>\n<div class=\"n-usage n-usage-dont\">Your message has been sent</div>\n\nWhen writing the toast content, use the {noun} + {verb} content formula:\n\n<div class=\"n-usage n-usage-do\">Patient created</div>\n<div class=\"n-usage n-usage-dont\">Your patient has been successfully updated</div>\n\nUse a maximum of 3 words when writing the toast content:\n\n<div class=\"n-usage n-usage-do\">Product updated</div>\n<div class=\"n-usage n-usage-dont\">Your product was updated just now</div>\n\nWhen writing the toast content, always write it in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Message sent</div>\n<div class=\"n-usage n-usage-dont\">Message Sent</div>\n\nAvoid unnecessary words and articles in the toast content, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Changes saved</div>\n<div class=\"n-usage n-usage-dont\">The changes were saved</div>\n\nNever end in punctuation:\n\n<div class=\"n-usage n-usage-do\">Message sent</div>\n<div class=\"n-usage n-usage-dont\">Message sent.</div>\n\n---\n\n## Additional considerations\n\n- Toasts are complicated from an accessibility perspective. Whilst they are a convenient UI pattern for messaging, they present difficulties for keyboard or screen reader users. Therefore careful consideration should be given as to whether a toast is the correct choice.\n- If the message cannot be conveyed in 3 words or less, consider re-wording. If the message cannot be shortened any further, consider choosing a different pattern than toast.\n",
|
|
17965
|
+
"examples": [],
|
|
17966
|
+
"dependencies": [
|
|
17967
|
+
"toast"
|
|
17968
|
+
],
|
|
17969
|
+
"tagName": "nord-toast-group",
|
|
17970
|
+
"customElement": true
|
|
17971
|
+
}
|
|
17972
|
+
],
|
|
17973
|
+
"exports": [
|
|
17974
|
+
{
|
|
17975
|
+
"kind": "js",
|
|
17976
|
+
"name": "default",
|
|
17977
|
+
"declaration": {
|
|
17978
|
+
"name": "ToastGroup",
|
|
17979
|
+
"module": "src/toast-group/ToastGroup.ts"
|
|
17980
|
+
}
|
|
17981
|
+
},
|
|
17982
|
+
{
|
|
17983
|
+
"kind": "custom-element-definition",
|
|
17984
|
+
"name": "nord-toast-group",
|
|
17985
|
+
"declaration": {
|
|
17986
|
+
"name": "ToastGroup",
|
|
17987
|
+
"module": "src/toast-group/ToastGroup.ts"
|
|
17988
|
+
}
|
|
17989
|
+
}
|
|
17990
|
+
]
|
|
17991
|
+
},
|
|
17948
17992
|
{
|
|
17949
17993
|
"kind": "javascript-module",
|
|
17950
17994
|
"path": "src/tooltip/Tooltip.ts",
|